about · email me · subscribe
Spurious correlation #3,887 · View random

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is The number of Breweries in the United States and the second variable is ONEOK's stock price (OKE).  The chart goes from 2002 to 2022, and the two variables track closely in value over that time. Small Image

AI explanation

As the number of breweries in the United States increased, so did the demand for natural gas to power their brewing and bottling operations. This boosted ONEOK's stock price as they are a major player in the natural gas industry, proving that a rising craft beer tide lifts all stock prices - cheers to that!

Model: dalle-3
Prompt: Theme: Data Cyber Art Description: In a bustling cityscape, rows of colorful breweries line the vibrant streets. Their chimneys billow steam into the air, juxtaposed against the towering ONEOK building. A digital billboard nearby displays an ascending stock price graph for ONEOK, while the breweries' vibrant signs reflect the surge in demand for beer, illustrating their role in driving up the need for natural gas, visibly benefiting ONEOK as its stock price rises in response. Image Generation Prompt: Generate an abstract, futuristic cityscape with rows of neon-lit, colorful breweries lined along the streets. The breweries emit vibrant, pulsating energy while their chimneys release billows of steam. In the backdrop, a towering, sleek ONEOK building stands amidst the cityscape, with a digital billboard nearby displaying a dynamic, ascending stock price graph. The scene should exude a fusion of technology, data, and bustling urban activity. The depiction should include only scenes, people, and objects, it should not include text or speech bubbles.
This image generation prompt was also generated by AI, using the following sequence:

Model: gpt-3.5-turbo-1106
System prompt: You select one of a few potential scene descriptors that seems to go along with the variables described. You respond only with the scene descriptions provided and say nothing else.
User prompt: Here are two variables: The number of Breweries in the United States and ONEOK's stock price (OKE). Given these, which of the following image style descriptions seems most appropriate? Pick the one that seems to be related to one of the variables at hand. Please respond with only one of the following potential descriptions: 3D Pixar Style Glitch art Realistic Brutalism Data cyber art
ChatGPT: Data cyber art

Model: gpt-3.5-turbo-1106
System prompt: You describe simple visual scenes that depict the two variables stated. You combine both variables into one scene.
User prompt: Please describe a visual scene that prominently depicts both The number of Breweries in the United States and ONEOK's stock price (OKE), in the following situation: Because the increase in the number of breweries led to a surge in demand for beer, resulting in more natural gas being used for the brewing process. As a major natural gas company, ONEOK benefited from the increased demand, causing their stock price to rise.. Keep the description simple.
ChatGPT: In a bustling city, rows of colorful breweries line the streets, with their chimneys billowing steam into the air. Alongside them, a towering ONEOK building stands proudly, its stock price graph ascending sharply on a nearby digital billboard. The breweries' vibrant signs reflect the surge in demand for beer, illustrating their role in driving up the need for natural gas, which visibly benefits ONEOK as its stock price rises in response.

Model: gpt-3.5-turbo-1106
System prompt: You write and improve image generation prompts for DALLE-3. You maintain the same subjects, but enhance the visuals.
User prompt: Please respond with an image generation prompt that would be likely to create an interesting visual using DALLE-3, using the following style: [ Data cyber art ] and depicting this scene: In a bustling city, rows of colorful breweries line the streets, with their chimneys billowing steam into the air. Alongside them, a towering ONEOK building stands proudly, its stock price graph ascending sharply on a nearby digital billboard. The breweries' vibrant signs reflect the surge in demand for beer, illustrating their role in driving up the need for natural gas, which visibly benefits ONEOK as its stock price rises in response. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Theme: Data Cyber Art Description: In a bustling cityscape, rows of colorful breweries line the vibrant streets. Their chimneys billow steam into the air, juxtaposed against the towering ONEOK building. A digital billboard nearby displays an ascending stock price graph for ONEOK, while the breweries' vibrant signs reflect the surge in demand for beer, illustrating their role in driving up the need for natural gas, visibly benefiting ONEOK as its stock price rises in response. Image Generation Prompt: Generate an abstract, futuristic cityscape with rows of neon-lit, colorful breweries lined along the streets. The breweries emit vibrant, pulsating energy while their chimneys release billows of steam. In the backdrop, a towering, sleek ONEOK building stands amidst the cityscape, with a digital billboard nearby displaying a dynamic, ascending stock price graph. The scene should exude a fusion of technology, data, and bustling urban activity.

*Variations in the User Prompts from chart to chart are just the result of random number generation in Python. I wrote a few arrays of various styles and methods to ask questions to change up the results. Every time this site writes an explanation or generates an image, the script picks from each at random.

I sequence the requests into multiple prompts because I find GPT 3.5 to perform much better with short, well-managed contexts. Thus, I track the context directly in Python and only ask ChatGPT targeted questions.

Model: gpt-3.5-turbo-1106 (fine-tuned)
System prompt: You provide humorous responses in the form of plausible sounding explanations for correlations. You assume the correlation is causative for the purpose of the explanation even if it is ridiculous. You do not chat with the user, you only reply with the causal connection explanation and nothing else.
User prompt: Please make up a funny explanation for how an increase in The number of Breweries in the United States caused ONEOK's stock price (OKE) to increase.

AI academic paper

(Because p < 0.01)
A Brew and OKE Link: The Sync of Beer and Stock

The Journal of Fermented Finance

Jan 2024
Quick note: This sequence is long and repetitive. That's how the prompt engineering works for this one. I manage the output in Python to format it into this PDF.




Model: gpt-3.5-turbo-1106
System prompt: You are a goofy academic researcher writing an academic paper. You follow the rules, but you throw out convention regularly to make jokes and funny asides.You write titles and abstracts of goofy academic research papers.
User prompt:
Pretend you are an academic researcher. Your writing sounds like it belongs in a medical or economics journal. However, you frequently crack jokes, make puns, and add unexpected twists in your writing.

Please draft the title and abstract of an academic research paper presenting the findings of the connection between The number of Breweries in the United States and ONEOK's stock price (OKE). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

Rhyme words in the title.

Your research team used data from Brewers Association and LSEG Analytics (Refinitiv) to assess this nagging question. You found a correlation coefficient of 0.8308802 and p < 0.01 for 2002 to 2022.

Please respond in this format (replace "Lorem ipsum dolor sit" with your title and abstract)

[[TITLE]]
Lorem ipsum dolor sit

[[ABSTRACT]]
Lorem ipsum dolor sit



ChatGPT:
[[TITLE]]
A Brew and OKE Link: The Sync of Beer and Stock

[[ABSTRACT]]
This study delves into a seemingly intoxicating topic, exploring the curious relationship between the burgeoning beer industry and the financial performance of ONEOK Inc. (OKE) in the United States. Leveraging data from the Brewers Association and LSEG Analytics (Refinitiv), our rigorous analysis reveals a striking correlation coefficient of 0.8308802 and a statistically significant p-value of less than 0.01 over the period spanning from 2002 to 2022. We offer insightful findings that highlight the potential impact of breweries on OKE’s stock price, shedding light on an inebriating connection that could not be simply brewed off as mere happenstance. This research uncovers the frothy interactions between brewing creativity and market liquidity, prompting both beer aficionados and finance enthusiasts to raise a glass and ponder the curious confluence of suds and stocks.


Model: gpt-3.5-turbo-1106
System prompt: You are a goofy academic researcher writing an academic paper. You follow the rules, but you throw out convention regularly to make jokes and funny asides.You draft the introduction section of an academic research paper.
User prompt:
Pretend you are an academic researcher. Your writing sounds like it belongs in a medical or economics journal. However, you frequently crack jokes, make puns, or add unexpected twists in your writing.

Please make up the introduction section of an academic research paper presenting the findings of the connection between The number of Breweries in the United States and ONEOK's stock price (OKE). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Here is the title and abstract of the paper:
[[TITLE]]
A Brew and OKE Link: The Sync of Beer and Stock

[[ABSTRACT]]
This study delves into a seemingly intoxicating topic, exploring the curious relationship between the burgeoning beer industry and the financial performance of ONEOK Inc. (OKE) in the United States. Leveraging data from the Brewers Association and LSEG Analytics (Refinitiv), our rigorous analysis reveals a striking correlation coefficient of 0.8308802 and a statistically significant p-value of less than 0.01 over the period spanning from 2002 to 2022. We offer insightful findings that highlight the potential impact of breweries on OKE’s stock price, shedding light on an inebriating connection that could not be simply brewed off as mere happenstance. This research uncovers the frothy interactions between brewing creativity and market liquidity, prompting both beer aficionados and finance enthusiasts to raise a glass and ponder the curious confluence of suds and stocks.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:

INTRODUCTION

The intertwining of beer and finance may seem like a hoppy-go-lucky concept, but the relationship between the number of breweries in the United States and ONEOK Inc.'s (OKE) stock price is a topic worthy of sober scrutiny. As the craft beer movement froths and bubbles across the nation, it raises the question: is there a deeper connection between the proliferation of breweries and the performance of ONEOK's stock, or are we simply getting "ale" caught up in our hypotheses? This study aims to untap the potential correlations and pour over the data to determine if there's more than just foam and froth to this relationship.

The world of finance is known for its complex interplay of factors, with stock prices influenced by a myriad of economic, political, and industry-specific variables. On the other hand, the brewing industry is a fermenting cauldron of creativity, innovation, and consumer tastes, which can be difficult to distill into measurable impacts on the stock market. However, as researchers, we relish the opportunity to brew up some statistical magic and savor the unexpected flavors of unearthing connections where none were previously thought to exist.

As we delve into the depths of this unconventional avenue of research, we may encounter some "barley" believable findings and perhaps raise a few eyebrows in the process. While the idea of a brewery's influence on the stock market may initially seem as improbable as a unicorn sighting in Wall Street, our objective analysis aims to bring clarity to this effervescent relationship.

So, grab a frosty mug of curiosity and join us as we embark on a journey to tap into the potential connections between the world of breweries and the financial performance of ONEOK Inc. Remember, in the realm of research, even the most unlikely hypotheses can sometimes ferment into substantial insights.


Model: gpt-3.5-turbo-1106
System prompt: You are a goofy academic researcher writing an academic paper. You follow the rules, but you throw out convention regularly to make jokes and funny asides.You draft a literature review section of an academic research paper, that starts out dry for the first few sentences but then becomes hilarious and goofy.
User prompt:
Pretend you are an academic researcher. Your writing sounds like it belongs in a medical or economics journal. However, you frequently crack jokes, make puns, or add unexpected twists in your writing.

Please make up a literature review section of an academic research paper presenting the findings of the connection between The number of Breweries in the United States and ONEOK's stock price (OKE). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

Speak in the present tense for this section (the authors find...), as is common in academic research paper literature reviews. Name the sources in a format similar to this: In "Book," the authors find lorem and ipsum.

Make up the lorem and ipsum part, but make it sound related to the topic at hand.

Start by naming serious-sounding studies by authors like Smith, Doe, and Jones - but then quickly devolve. Name some real non-fiction books that would be related to the topic. Then name some real fiction books that sound like they could be related. Then name some cartoons and childrens' shows that you watched that are related to the topic.

Here is the title and abstract of the paper:
[[TITLE]]
A Brew and OKE Link: The Sync of Beer and Stock

[[ABSTRACT]]
This study delves into a seemingly intoxicating topic, exploring the curious relationship between the burgeoning beer industry and the financial performance of ONEOK Inc. (OKE) in the United States. Leveraging data from the Brewers Association and LSEG Analytics (Refinitiv), our rigorous analysis reveals a striking correlation coefficient of 0.8308802 and a statistically significant p-value of less than 0.01 over the period spanning from 2002 to 2022. We offer insightful findings that highlight the potential impact of breweries on OKE’s stock price, shedding light on an inebriating connection that could not be simply brewed off as mere happenstance. This research uncovers the frothy interactions between brewing creativity and market liquidity, prompting both beer aficionados and finance enthusiasts to raise a glass and ponder the curious confluence of suds and stocks.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
INTRODUCTION
The intertwining of beer and finance may seem like a hoppy-go-lucky concept, but the relationship between the number of breweries in the United States and ONEOK Inc.'s (OKE) stock price is a topic worthy of sober scrutiny. As the craft beer movement froths and bubbles across the nation, it raises the question: is there a deeper connection between the proliferation of breweries and the performance of ONEOK's stock, or are we simply getting "ale" caught up in our hypotheses? This study aims to untap the potential correlations and pour over the data to determine if there's more than just foam and froth to this relationship.
The world of finance is known for its complex interplay of factors, with stock prices influenced by a myriad of economic, political, and industry-specific variables. On the other hand, the brewing industry is a fermenting cauldron of creativity, innovation, and consumer tastes, which can be difficult to distill into measurable impacts on the stock market. However, as researchers, we relish the opportunity to brew up some statistical magic and savor the unexpected flavors of unearthing connections where none were previously thought to exist.
As we delve into the depths of this unconventional avenue of research, we may encounter some "barley" believable findings and perhaps raise a few eyebrows in the process. While the idea of a brewery's influence on the stock market may initially seem as improbable as a unicorn sighting in Wall Street, our objective analysis aims to bring clarity to this effervescent relationship.
So, grab a frosty mug of curiosity and join us as we embark on a journey to tap into the potential connections between the world of breweries and the financial performance of ONEOK Inc. Remember, in the realm of research, even the most unlikely hypotheses can sometimes ferment into substantial insights.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

In their seminal work, Smith and Doe (2008) investigated the relationship between industry-specific factors and stock performance, delving into the potential impact of non-traditional variables on market dynamics. Their findings suggested that niche industries, such as craft brewing, may indeed exert a subtle yet perceptible influence on stock prices, challenging conventional wisdom and leaving readers hop-ing for more insight into this unexplored territory.

Expanding on this line of inquiry, Jones (2014) examined the intricate web of consumer preferences and their repercussions on financial markets, emphasizing the need to consider the idiosyncratic nature of consumer-driven industries. Through a meticulous analysis of market data, Jones substantiated the notion that consumer trends in specific sectors, including the beverage industry, can manifest in discernible fluctuations in stock prices, effectively fermenting new avenues for research in the intersection of consumer behavior and financial markets.

Taking a departure from strictly financial analyses, "The Economics of Beer" (Thurlow & Tanner, 2011) provides a comprehensive overview of the economic underpinnings of the brewing industry, offering a frothy blend of economic theory and market realities. This authoritative text presents a nuanced understanding of the interconnectedness between the brewing business and broader economic landscapes, beckoning readers to appreciate the multifaceted dynamics at play in the realms of malt and markets.

On a more speculative note, "Ale Street News: The Journal of Beer and Brewing" (Doe, 2018) explores the intertwining narratives of brews and business, unraveling tales of triumph and turbulence within the beer industry. While not a traditional scholarly source, this publication offers a potpourri of anecdotes and insights that illuminate the colorful and convivial world of craft brewing, providing a spirited backdrop for contemplating the uncharted links between ales and equities.

Venturing further into the realm of literature, the fictional works of "The Brewmaster's Castle" (Smith, 2005) and "Brew to Kill" (Doe, 2019) may initially appear to be unrelated to our research topic, but their narratives entertwine the captivating stories of brewing artistry with unexpected twists and turns. While not academic in nature, these novels offer a frothy escapade into the realm of breweries, infusing our scholarly pursuits with a dash of fiction and fanciful storytelling.

In a somewhat unexpected turn, cartoons and children's shows also prove to have a tangential connection to our research subject. In the animated world, "The Simpsons" and "Family Guy" have occasionally featured storylines revolving around beer brewing and the vicissitudes of the beverage industry. While certainly not scholarly sources, these lighthearted portrayals provide a whimsical lens through which to view the world of breweries, reminding us that even the most unexpected sources can concoct sparks of inspiration in our research endeavors.

So, as we distill the findings from diverse realms of literature and entertainment, we embark on a journey that's not just scholarly, but also a reflective of the quirks and curiosities inherent in the interplay between breweries and the stock market. We brew-dly forge ahead, mindful of the unexpected insights that may bubble to the surface as we navigate this uncharted terrain of sudsy stock market musings.


Model: gpt-3.5-turbo-1106
System prompt: You are a goofy academic researcher writing an academic paper. You follow the rules, but you throw out convention regularly to make jokes and funny asides.You draft the methodology section of an academic research paper.
User prompt:
Pretend you are an academic researcher. Your writing sounds like it belongs in a medical or economics journal. However, you frequently crack jokes, make puns, or add unexpected twists in your writing.

Please make up the methodology section of an academic research paper presenting the findings of the connection between The number of Breweries in the United States and ONEOK's stock price (OKE). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Your research team collected data from all across the internet, but mostly just used information from Brewers Association and LSEG Analytics (Refinitiv) . You used data from 2002 to 2022

Make up the research methods you don't know. Make them a bit goofy and convoluted.

Here is the title, abstract, and introduction of the paper:
[[TITLE]]
A Brew and OKE Link: The Sync of Beer and Stock

[[ABSTRACT]]
This study delves into a seemingly intoxicating topic, exploring the curious relationship between the burgeoning beer industry and the financial performance of ONEOK Inc. (OKE) in the United States. Leveraging data from the Brewers Association and LSEG Analytics (Refinitiv), our rigorous analysis reveals a striking correlation coefficient of 0.8308802 and a statistically significant p-value of less than 0.01 over the period spanning from 2002 to 2022. We offer insightful findings that highlight the potential impact of breweries on OKE’s stock price, shedding light on an inebriating connection that could not be simply brewed off as mere happenstance. This research uncovers the frothy interactions between brewing creativity and market liquidity, prompting both beer aficionados and finance enthusiasts to raise a glass and ponder the curious confluence of suds and stocks.

[[INTRODUCTION]]
INTRODUCTION
The intertwining of beer and finance may seem like a hoppy-go-lucky concept, but the relationship between the number of breweries in the United States and ONEOK Inc.'s (OKE) stock price is a topic worthy of sober scrutiny. As the craft beer movement froths and bubbles across the nation, it raises the question: is there a deeper connection between the proliferation of breweries and the performance of ONEOK's stock, or are we simply getting "ale" caught up in our hypotheses? This study aims to untap the potential correlations and pour over the data to determine if there's more than just foam and froth to this relationship.
The world of finance is known for its complex interplay of factors, with stock prices influenced by a myriad of economic, political, and industry-specific variables. On the other hand, the brewing industry is a fermenting cauldron of creativity, innovation, and consumer tastes, which can be difficult to distill into measurable impacts on the stock market. However, as researchers, we relish the opportunity to brew up some statistical magic and savor the unexpected flavors of unearthing connections where none were previously thought to exist.
As we delve into the depths of this unconventional avenue of research, we may encounter some "barley" believable findings and perhaps raise a few eyebrows in the process. While the idea of a brewery's influence on the stock market may initially seem as improbable as a unicorn sighting in Wall Street, our objective analysis aims to bring clarity to this effervescent relationship.
So, grab a frosty mug of curiosity and join us as we embark on a journey to tap into the potential connections between the world of breweries and the financial performance of ONEOK Inc. Remember, in the realm of research, even the most unlikely hypotheses can sometimes ferment into substantial insights.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To concoct this heady brew of statistical analysis, we harnessed a combination of robust research methodologies, data collection techniques, and a dash of scholarly intuition. Our team scoured the depths of the digital realm, sifting through a bubbling cauldron of data sources to source our ingredients for this study. Information from the Brewers Association and LSEG Analytics (Refinitiv) was our main recipe, providing a rich blend of historical brewery data and ONEOK Inc.'s (OKE) stock price movements from the years 2002 to 2022.

Now, the process of identifying the exact relationship between the number of breweries and OKE's stock price was a bit like navigating through a labyrinth of hop vines and financial reports. To cut through the froth and get to the meat of the matter, we brewed up a potent concoction of statistical analyses.

Firstly, we engaged in a frothy dance of data cleaning, ensuring that any impurities or outliers were strained out from our datasets. After all, we couldn't let any rogue data points sour the taste of our findings! Once we had a pure blend of data, we started the fermentation process of correlation analysis. We used the Pearson correlation coefficient to gauge the strength and direction of the relationship between the number of breweries and OKE's stock price. This allowed us to determine if there was a "hoppy" positive correlation, a "stout" negative correlation, or if our findings were as flat as day-old beer.

Additionally, we stirred in a hearty dose of time-series analysis to assess the dynamic interactions between the variables over the 20-year period. This involved examining how changes in the number of breweries might influence OKE's stock price over different timeframes, akin to assessing the aging process of a fine ale.

Finally, to ensure that our findings weren't just a result of chance, we conducted hypothesis testing using a multitude of statistical tests. We applied a significance level of alpha = 0.01, making sure that any conclusions we drew were stronger than the aroma of a freshly poured IPA.

The culmination of these methods resulted in a robust and well-balanced empirical brew, allowing us to extract the aromatic bouquet of insights that we present in the subsequent sections of this study. With our methodologies tapping into the essence of both brewing and finance, we believe we've painted a rich, flavorful portrait of the tantalizing relationship between breweries and OKE's stock price.


Model: gpt-3.5-turbo-1106
System prompt: You are a goofy academic researcher writing an academic paper. You follow the rules, but you throw out convention regularly to make jokes and funny asides.You draft the results section of an academic research paper. You speak in the past tense (you found...).
User prompt:
Pretend you are an academic researcher. Your writing sounds like it belongs in a medical or economics journal. However, you frequently crack jokes, make puns, or add unexpected twists in your writing.

Please make up the results section of an academic research paper presenting the findings of the connection between The number of Breweries in the United States and ONEOK's stock price (OKE). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Your research team collected data from all across the internet, but mostly just used information from Brewers Association and LSEG Analytics (Refinitiv) .

For the time period 2002 to 2022, you found a correlation 0.8308802, r-squared of 0.6903620, and p < 0.01.

One figure will be included. The figure (Fig. 1) is a scatterplot showing the strong correlation between the two variables. You don't need to specify where; I will add the figure.

Here is the title and abstract of the paper:
[[TITLE]]
A Brew and OKE Link: The Sync of Beer and Stock

[[ABSTRACT]]
This study delves into a seemingly intoxicating topic, exploring the curious relationship between the burgeoning beer industry and the financial performance of ONEOK Inc. (OKE) in the United States. Leveraging data from the Brewers Association and LSEG Analytics (Refinitiv), our rigorous analysis reveals a striking correlation coefficient of 0.8308802 and a statistically significant p-value of less than 0.01 over the period spanning from 2002 to 2022. We offer insightful findings that highlight the potential impact of breweries on OKE’s stock price, shedding light on an inebriating connection that could not be simply brewed off as mere happenstance. This research uncovers the frothy interactions between brewing creativity and market liquidity, prompting both beer aficionados and finance enthusiasts to raise a glass and ponder the curious confluence of suds and stocks.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
INTRODUCTION
The intertwining of beer and finance may seem like a hoppy-go-lucky concept, but the relationship between the number of breweries in the United States and ONEOK Inc.'s (OKE) stock price is a topic worthy of sober scrutiny. As the craft beer movement froths and bubbles across the nation, it raises the question: is there a deeper connection between the proliferation of breweries and the performance of ONEOK's stock, or are we simply getting "ale" caught up in our hypotheses? This study aims to untap the potential correlations and pour over the data to determine if there's more than just foam and froth to this relationship.
The world of finance is known for its complex interplay of factors, with stock prices influenced by a myriad of economic, political, and industry-specific variables. On the other hand, the brewing industry is a fermenting cauldron of creativity, innovation, and consumer tastes, which can be difficult to distill into measurable impacts on the stock market. However, as researchers, we relish the opportunity to brew up some statistical magic and savor the unexpected flavors of unearthing connections where none were previously thought to exist.
As we delve into the depths of this unconventional avenue of research, we may encounter some "barley" believable findings and perhaps raise a few eyebrows in the process. While the idea of a brewery's influence on the stock market may initially seem as improbable as a unicorn sighting in Wall Street, our objective analysis aims to bring clarity to this effervescent relationship.
So, grab a frosty mug of curiosity and join us as we embark on a journey to tap into the potential connections between the world of breweries and the financial performance of ONEOK Inc. Remember, in the realm of research, even the most unlikely hypotheses can sometimes ferment into substantial insights.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

A Brew and OKE Link: The Sync of Beer and Stock

The results of our analysis revealed a robust and intoxicating correlation between the number of breweries in the United States and ONEOK Inc.'s (OKE) stock price over the period of 2002 to 2022. The correlation coefficient of 0.8308802 suggests a strong positive relationship between these seemingly unrelated entities. It appears that the stock market and the brewing industry are not just brewing an aleatory relationship, but rather exhibiting a cohesive and fermenting correlation.

The coefficient of determination, or R-squared value, of 0.6903620 further reinforces the significant and notable relationship between the variables under investigation. This indicates that approximately 69.04% of the variability in ONEOK's stock price can be explained by the number of breweries in the United States. It's as if the breweries are fermenting some sort of financial potion that has considerable impact on OKE's stock price – a truly heady discovery indeed.

Furthermore, the p-value of less than 0.01 adds statistical gravity to our findings, implying that the observed correlation is highly unlikely to have occurred by chance. In other words, the probability of observing such a strong relationship between breweries and ONEOK's stock price purely by accident is as low as finding a sober person at a beer festival – nearly impossible!

To visually convey the illuminating correlation we uncovered, we present Fig. 1, a scatterplot that vividly illustrates the positive relationship between the number of breweries and ONEOK's stock price. We invite the reader to behold this graphical depiction of the bubbling and frothy connection between beer and stocks, a sight as captivating as witnessing the birth of a new beer style in a craft brewery.

In conclusion, our findings offer compelling evidence of a notable linkage between the number of breweries in the United States and the financial performance of ONEOK Inc. This research not only highlights the potential influence of the brewing industry on stock prices but also underscores the dynamic and unexpected interplay between seemingly incongruent sectors. It seems that when it comes to the intersection of suds and stocks, there's more than meets the ale – I mean, eye.


Model: gpt-3.5-turbo-1106
System prompt: You are a goofy academic researcher writing an academic paper. You follow the rules, but you throw out convention regularly to make jokes and funny asides.You draft the discussion section of an academic research paper.
User prompt:
Pretend you are an academic researcher. Your writing sounds like it belongs in a medical or economics journal. However, you frequently crack jokes, make puns, or add unexpected twists in your writing.

Please make up the discussion section of an academic research paper presenting the findings of the connection between The number of Breweries in the United States and ONEOK's stock price (OKE). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Limit your response to 500 tokens.

Here are the title, abstract, literature review, and results sections. Please harken back to 1-2 of the goofy items in the literature review, but pretend to take them completely seriously. Discuss how your results supported the prior research.

Do not write a conclusion. I will add a conclusion after this.

[[TITLE]]
A Brew and OKE Link: The Sync of Beer and Stock

[[ABSTRACT]]
This study delves into a seemingly intoxicating topic, exploring the curious relationship between the burgeoning beer industry and the financial performance of ONEOK Inc. (OKE) in the United States. Leveraging data from the Brewers Association and LSEG Analytics (Refinitiv), our rigorous analysis reveals a striking correlation coefficient of 0.8308802 and a statistically significant p-value of less than 0.01 over the period spanning from 2002 to 2022. We offer insightful findings that highlight the potential impact of breweries on OKE’s stock price, shedding light on an inebriating connection that could not be simply brewed off as mere happenstance. This research uncovers the frothy interactions between brewing creativity and market liquidity, prompting both beer aficionados and finance enthusiasts to raise a glass and ponder the curious confluence of suds and stocks.

[[LITERATURE REVIEW]]
In their seminal work, Smith and Doe (2008) investigated the relationship between industry-specific factors and stock performance, delving into the potential impact of non-traditional variables on market dynamics. Their findings suggested that niche industries, such as craft brewing, may indeed exert a subtle yet perceptible influence on stock prices, challenging conventional wisdom and leaving readers hop-ing for more insight into this unexplored territory.
Expanding on this line of inquiry, Jones (2014) examined the intricate web of consumer preferences and their repercussions on financial markets, emphasizing the need to consider the idiosyncratic nature of consumer-driven industries. Through a meticulous analysis of market data, Jones substantiated the notion that consumer trends in specific sectors, including the beverage industry, can manifest in discernible fluctuations in stock prices, effectively fermenting new avenues for research in the intersection of consumer behavior and financial markets.
Taking a departure from strictly financial analyses, "The Economics of Beer" (Thurlow & Tanner, 2011) provides a comprehensive overview of the economic underpinnings of the brewing industry, offering a frothy blend of economic theory and market realities. This authoritative text presents a nuanced understanding of the interconnectedness between the brewing business and broader economic landscapes, beckoning readers to appreciate the multifaceted dynamics at play in the realms of malt and markets.
On a more speculative note, "Ale Street News: The Journal of Beer and Brewing" (Doe, 2018) explores the intertwining narratives of brews and business, unraveling tales of triumph and turbulence within the beer industry. While not a traditional scholarly source, this publication offers a potpourri of anecdotes and insights that illuminate the colorful and convivial world of craft brewing, providing a spirited backdrop for contemplating the uncharted links between ales and equities.
Venturing further into the realm of literature, the fictional works of "The Brewmaster's Castle" (Smith, 2005) and "Brew to Kill" (Doe, 2019) may initially appear to be unrelated to our research topic, but their narratives entertwine the captivating stories of brewing artistry with unexpected twists and turns. While not academic in nature, these novels offer a frothy escapade into the realm of breweries, infusing our scholarly pursuits with a dash of fiction and fanciful storytelling.
In a somewhat unexpected turn, cartoons and children's shows also prove to have a tangential connection to our research subject. In the animated world, "The Simpsons" and "Family Guy" have occasionally featured storylines revolving around beer brewing and the vicissitudes of the beverage industry. While certainly not scholarly sources, these lighthearted portrayals provide a whimsical lens through which to view the world of breweries, reminding us that even the most unexpected sources can concoct sparks of inspiration in our research endeavors.
So, as we distill the findings from diverse realms of literature and entertainment, we embark on a journey that's not just scholarly, but also a reflective of the quirks and curiosities inherent in the interplay between breweries and the stock market. We brew-dly forge ahead, mindful of the unexpected insights that may bubble to the surface as we navigate this uncharted terrain of sudsy stock market musings.

[[RESULTS]]
A Brew and OKE Link: The Sync of Beer and Stock
The results of our analysis revealed a robust and intoxicating correlation between the number of breweries in the United States and ONEOK Inc.'s (OKE) stock price over the period of 2002 to 2022. The correlation coefficient of 0.8308802 suggests a strong positive relationship between these seemingly unrelated entities. It appears that the stock market and the brewing industry are not just brewing an aleatory relationship, but rather exhibiting a cohesive and fermenting correlation.
The coefficient of determination, or R-squared value, of 0.6903620 further reinforces the significant and notable relationship between the variables under investigation. This indicates that approximately 69.04% of the variability in ONEOK's stock price can be explained by the number of breweries in the United States. It's as if the breweries are fermenting some sort of financial potion that has considerable impact on OKE's stock price – a truly heady discovery indeed.
Furthermore, the p-value of less than 0.01 adds statistical gravity to our findings, implying that the observed correlation is highly unlikely to have occurred by chance. In other words, the probability of observing such a strong relationship between breweries and ONEOK's stock price purely by accident is as low as finding a sober person at a beer festival – nearly impossible!
To visually convey the illuminating correlation we uncovered, we present Fig. 1, a scatterplot that vividly illustrates the positive relationship between the number of breweries and ONEOK's stock price. We invite the reader to behold this graphical depiction of the bubbling and frothy connection between beer and stocks, a sight as captivating as witnessing the birth of a new beer style in a craft brewery.
In conclusion, our findings offer compelling evidence of a notable linkage between the number of breweries in the United States and the financial performance of ONEOK Inc. This research not only highlights the potential influence of the brewing industry on stock prices but also underscores the dynamic and unexpected interplay between seemingly incongruent sectors. It seems that when it comes to the intersection of suds and stocks, there's more than meets the ale – I mean, eye.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The results of our study resonate with the prior research, mirroring the findings of Smith and Doe (2008) who ventured into the uncharted territory of non-traditional variables and market dynamics. It appears that the "hop-scotch" between the brewing industry and stock prices is not just a frothy flight of fancy, but rather a pronounced and discernible relationship. Similarly, Jones (2014) emphasized the impact of consumer preferences on stock prices, and our findings indeed signify that the consumer's thirst for craft brews can manifest in tangible fluctuations in market valuations. It seems that the market may be brewing up a considerable reaction to the fermentation of the brewing industry, much like a lively yeast culture in a fermenting vessel.

Taking a cue from "The Economics of Beer" (Thurlow & Tanner, 2011), our research underscores the multifaceted connections between brewing creativity and market realities. The intricate nuances of this relationship are akin to the delicate balance of flavors in a well-crafted beer, blending economic theory with market dynamics to yield a piquant understanding of the interplay between hops and high finance.

Leaning into more eclectic sources, "The Brewmaster's Castle" (Smith, 2005) and "Brew to Kill" (Doe, 2019) may not have been scholarly in nature, but their narratives wove a tapestry of intrigue and mystery around the brewing industry. It seems their fictional tales may indeed contain strands of reality, pointing to a substantive connection between the world of brewing artistry and the ebbs and flows of stock prices. These literary escapades are a reminder that sometimes truth is stranger than fiction, resembling the unexpected twists and turns of a good mystery novel – or a well-crafted stock market saga.

Our findings also lend credence to the unexpected sources that can yield insights, with even cartoons and children's shows offering a tangential connection to our research. Perhaps the buoyant antics of "The Simpsons" and "Family Guy" reflect a lighthearted yet nugget of truth in their portrayal of the beer industry. These whimsical portrayals remind us that even the most unexpected sources can uncork flashes of inspiration, much like finding a hidden gem in a crate of freshly imported hops.

In essence, the findings from our study not only align with the scholarly discourse but also reflect the whimsical blend of reality and conjecture inherent in the interplay between breweries and the stock market. It's as if the market has cultivated its own distinct brew, creating a heady concoction of statistics and stock prices that sparkles with the effervescence of a well-carbonated beer. This uncharted terrain of sudsy stock market musings invites us to partake in a sip of insight, as we toast to the unexpected harmony between hops and high finance. Cheers to the capricious link between suds and stocks – it seems that when it comes to this field of research, there's more than meets the ale, I mean, eye!


Model: gpt-3.5-turbo-1106
System prompt: You are a goofy academic researcher writing an academic paper. You follow the rules, but you throw out convention regularly to make jokes and funny asides.You draft the discussion section of goofy academic research papers that sounds like it belongs based on the title and abstract provided.
User prompt:
Pretend you are an academic researcher. Your writing sounds like it belongs in a medical or economics journal. However, you frequently crack jokes, make puns, or add unexpected twists in your writing.

Please make up a short conclusion of an academic research paper presenting the findings of the connection between The number of Breweries in the United States and ONEOK's stock price (OKE). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Limit your response to 300 tokens. At the very end, assert that no more research is needed in this area.

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
A Brew and OKE Link: The Sync of Beer and Stock

[[ABSTRACT]]
This study delves into a seemingly intoxicating topic, exploring the curious relationship between the burgeoning beer industry and the financial performance of ONEOK Inc. (OKE) in the United States. Leveraging data from the Brewers Association and LSEG Analytics (Refinitiv), our rigorous analysis reveals a striking correlation coefficient of 0.8308802 and a statistically significant p-value of less than 0.01 over the period spanning from 2002 to 2022. We offer insightful findings that highlight the potential impact of breweries on OKE’s stock price, shedding light on an inebriating connection that could not be simply brewed off as mere happenstance. This research uncovers the frothy interactions between brewing creativity and market liquidity, prompting both beer aficionados and finance enthusiasts to raise a glass and ponder the curious confluence of suds and stocks.

[[INTRDUCTION]]
INTRODUCTION
The intertwining of beer and finance may seem like a hoppy-go-lucky concept, but the relationship between the number of breweries in the United States and ONEOK Inc.'s (OKE) stock price is a topic worthy of sober scrutiny. As the craft beer movement froths and bubbles across the nation, it raises the question: is there a deeper connection between the proliferation of breweries and the performance of ONEOK's stock, or are we simply getting "ale" caught up in our hypotheses? This study aims to untap the potential correlations and pour over the data to determine if there's more than just foam and froth to this relationship.
The world of finance is known for its complex interplay of factors, with stock prices influenced by a myriad of economic, political, and industry-specific variables. On the other hand, the brewing industry is a fermenting cauldron of creativity, innovation, and consumer tastes, which can be difficult to distill into measurable impacts on the stock market. However, as researchers, we relish the opportunity to brew up some statistical magic and savor the unexpected flavors of unearthing connections where none were previously thought to exist.
As we delve into the depths of this unconventional avenue of research, we may encounter some "barley" believable findings and perhaps raise a few eyebrows in the process. While the idea of a brewery's influence on the stock market may initially seem as improbable as a unicorn sighting in Wall Street, our objective analysis aims to bring clarity to this effervescent relationship.
So, grab a frosty mug of curiosity and join us as we embark on a journey to tap into the potential connections between the world of breweries and the financial performance of ONEOK Inc. Remember, in the realm of research, even the most unlikely hypotheses can sometimes ferment into substantial insights.

[[RESULTS]]
A Brew and OKE Link: The Sync of Beer and Stock
The results of our analysis revealed a robust and intoxicating correlation between the number of breweries in the United States and ONEOK Inc.'s (OKE) stock price over the period of 2002 to 2022. The correlation coefficient of 0.8308802 suggests a strong positive relationship between these seemingly unrelated entities. It appears that the stock market and the brewing industry are not just brewing an aleatory relationship, but rather exhibiting a cohesive and fermenting correlation.
The coefficient of determination, or R-squared value, of 0.6903620 further reinforces the significant and notable relationship between the variables under investigation. This indicates that approximately 69.04% of the variability in ONEOK's stock price can be explained by the number of breweries in the United States. It's as if the breweries are fermenting some sort of financial potion that has considerable impact on OKE's stock price – a truly heady discovery indeed.
Furthermore, the p-value of less than 0.01 adds statistical gravity to our findings, implying that the observed correlation is highly unlikely to have occurred by chance. In other words, the probability of observing such a strong relationship between breweries and ONEOK's stock price purely by accident is as low as finding a sober person at a beer festival – nearly impossible!
To visually convey the illuminating correlation we uncovered, we present Fig. 1, a scatterplot that vividly illustrates the positive relationship between the number of breweries and ONEOK's stock price. We invite the reader to behold this graphical depiction of the bubbling and frothy connection between beer and stocks, a sight as captivating as witnessing the birth of a new beer style in a craft brewery.
In conclusion, our findings offer compelling evidence of a notable linkage between the number of breweries in the United States and the financial performance of ONEOK Inc. This research not only highlights the potential influence of the brewing industry on stock prices but also underscores the dynamic and unexpected interplay between seemingly incongruent sectors. It seems that when it comes to the intersection of suds and stocks, there's more than meets the ale – I mean, eye.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

As we raise our metaphorical beer steins in contemplation of the results gleaned from this frothy foray into the realms of brewing and stock market performance, it becomes evident that the connection between the number of breweries in the United States and ONEOK Inc.'s (OKE) stock price offers a compelling tale of intertwined fates. The statistical analyses have fermented, yielding a correlation coefficient as robust as a stout and a p-value as rare as a perfectly aged barleywine.

Our findings not only tap into the intriguing relationship between breweries and stock prices but also bubble to the surface the unexpected effervescence of financial influence from the world of craft brewing. It's clear that the intermingling of suds and stocks is not as ale-inated as one might have initially thought. In the realm of financial markets, it appears that the beer industry has indeed brewed up a heady concoction that leaves a lasting impact on the performance of ONEOK's stock, creating a symbiotic relationship as harmonious as a well-crafted beer pairing.

To nudge the beer barrel on the door of concluding remarks, it seems that further research endeavors in this area might only yield results as predictable as the head on a poorly poured pint – in other words, we see no compelling reason to extensively ferment additional investigations into this curious correlation. It appears that our findings are as strong and full-bodied as a barrel-aged imperial stout, leaving little room for doubt or further analysis.

In closing, as we savor the findings and potential implications of this research, we can confidently assert that there's no need for further fermentation, so to speak, in this area of study. It seems that the flavorful connection between beer and stocks has been thoroughly uncorked, leaving us with a satisfying aftertaste of statistical correlation and a lingering aroma of unexpected interplay between disparate industries. Cheers to the unexpected interconnectedness of the worlds of finance and fermentation!


Model: gpt-3.5-turbo-1106
System prompt: You provide fictional names of academic journals. You say nothing else, and you do not chat with the user.
User prompt: Please provide the name of a funny but plausible sounding research, scientific, or academic journal that would publish a paper entited A Brew and OKE Link: The Sync of Beer and Stock. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Fermented Finance


Model: gpt-3.5-turbo-1106
System prompt: You provide fictional names of nonprofit research organizations and associations. You say nothing else, and you do not chat with the user.
User prompt: Please provide the name of a funny but plausible sounding nonprofit, academic, or scientific association or organization that would sponsor research that resulted in a paper entited A Brew and OKE Link: The Sync of Beer and Stock. Respond only with the name of a fictional organization.

ChatGPT:

The Institute for Sudsy Securities Studies


Model: gpt-3.5-turbo-1106
System prompt: You provide potential search keywords separated by commas. You say nothing else, and you do not chat with the user.
User prompt: Please provide potential search keywords for a paper titled A Brew and OKE Link: The Sync of Beer and Stock with an abstract of This study delves into a seemingly intoxicating topic, exploring the curious relationship between the burgeoning beer industry and the financial performance of ONEOK Inc. (OKE) in the United States. Leveraging data from the Brewers Association and LSEG Analytics (Refinitiv), our rigorous analysis reveals a striking correlation coefficient of 0.8308802 and a statistically significant p-value of less than 0.01 over the period spanning from 2002 to 2022. We offer insightful findings that highlight the potential impact of breweries on OKE’s stock price, shedding light on an inebriating connection that could not be simply brewed off as mere happenstance. This research uncovers the frothy interactions between brewing creativity and market liquidity, prompting both beer aficionados and finance enthusiasts to raise a glass and ponder the curious confluence of suds and stocks.

ChatGPT:

beer industry, ONEOK Inc., OKE stock, financial performance, Brewers Association data, LSEG Analytics, correlation coefficient, statistical significance, brewery impact on stock price, market liquidity, brewing creativity, suds and stocks, beer and finance, stock market analysis

*There is a bunch of Python happening behind the scenes to turn this prompt sequence into a PDF.



Random correlation

Discover a new correlation

View all correlations

View all research papers

Report an error


Data details

The number of Breweries in the United States
Detailed data title: Number of Breweries in the United States
Source: Brewers Association
See what else correlates with The number of Breweries in the United States

ONEOK's stock price (OKE)
Detailed data title: Opening price of ONEOK (OKE) on the first trading day of the year
Source: LSEG Analytics (Refinitiv)
Additional Info: Via Microsoft Excel Stockhistory function

See what else correlates with ONEOK's stock price (OKE)

Correlation r = 0.8308802 (Pearson correlation coefficient)
Correlation is a measure of how much the variables move together. If it is 0.99, when one goes up the other goes up. If it is 0.02, the connection is very weak or non-existent. If it is -0.99, then when one goes up the other goes down. If it is 1.00, you probably messed up your correlation function.

r2 = 0.6903620 (Coefficient of determination)
This means 69% of the change in the one variable (i.e., ONEOK's stock price (OKE)) is predictable based on the change in the other (i.e., The number of Breweries in the United States) over the 21 years from 2002 through 2022.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 3.1E-6. 0.0000031014340808641426000000
The p-value is a measure of how probable it is that we would randomly find a result this extreme. More specifically the p-value is a measure of how probable it is that we would randomly find a result this extreme if we had only tested one pair of variables one time.

But I am a p-villain. I absolutely did not test only one pair of variables one time. I correlated hundreds of millions of pairs of variables. I threw boatloads of data into an industrial-sized blender to find this correlation.

Who is going to stop me? p-value reporting doesn't require me to report how many calculations I had to go through in order to find a low p-value!
On average, you will find a correaltion as strong as 0.83 in 0.00031% of random cases. Said differently, if you correlated 322,431 random variables You don't actually need 322 thousand variables to find a correlation like this one. I don't have that many variables in my database. You can also correlate variables that are not independent. I do this a lot.

p-value calculations are useful for understanding the probability of a result happening by chance. They are most useful when used to highlight the risk of a fluke outcome. For example, if you calculate a p-value of 0.30, the risk that the result is a fluke is high. It is good to know that! But there are lots of ways to get a p-value of less than 0.01, as evidenced by this project.

In this particular case, the values are so extreme as to be meaningless. That's why no one reports p-values with specificity after they drop below 0.01.

Just to be clear: I'm being completely transparent about the calculations. There is no math trickery. This is just how statistics shakes out when you calculate hundreds of millions of random correlations.
with the same 20 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 20 because we have two variables measured over a period of 21 years. It's just the number of years minus ( the number of variables minus one ), which in this case simplifies to the number of years minus one.
you would randomly expect to find a correlation as strong as this one.

[ 0.62, 0.93 ] 95% correlation confidence interval (using the Fisher z-transformation)
The confidence interval is an estimate the range of the value of the correlation coefficient, using the correlation itself as an input. The values are meant to be the low and high end of the correlation coefficient with 95% confidence.

This one is a bit more complciated than the other calculations, but I include it because many people have been pushing for confidence intervals instead of p-value calculations (for example: NEJM. However, if you are dredging data, you can reliably find yourself in the 5%. That's my goal!


All values for the years included above: If I were being very sneaky, I could trim years from the beginning or end of the datasets to increase the correlation on some pairs of variables. I don't do that because there are already plenty of correlations in my database without monkeying with the years.

Still, sometimes one of the variables has more years of data available than the other. This page only shows the overlapping years. To see all the years, click on "See what else correlates with..." link above.
200220032004200520062007200820092010201120122013201420152016201720182019202020212022
The number of Breweries in the United States (Number of breweries)157516291635161217411805189619332131252526703162401448475780676777228557909293849709
ONEOK's stock price (OKE) (Stock price)7.878.439.712.4811.7618.9819.5612.7919.6524.4438.5237.9454.4149.924.6658.1453.7653.0575.923958.96




Why this works

  1. Data dredging: I have 25,153 variables in my database. I compare all these variables against each other to find ones that randomly match up. That's 632,673,409 correlation calculations! This is called “data dredging.” Instead of starting with a hypothesis and testing it, I instead abused the data to see what correlations shake out. It’s a dangerous way to go about analysis, because any sufficiently large dataset will yield strong correlations completely at random.
  2. Lack of causal connection: There is probably Because these pages are automatically generated, it's possible that the two variables you are viewing are in fact causually related. I take steps to prevent the obvious ones from showing on the site (I don't let data about the weather in one city correlate with the weather in a neighboring city, for example), but sometimes they still pop up. If they are related, cool! You found a loophole.
    no direct connection between these variables, despite what the AI says above. This is exacerbated by the fact that I used "Years" as the base variable. Lots of things happen in a year that are not related to each other! Most studies would use something like "one person" in stead of "one year" to be the "thing" studied.
  3. Observations not independent: For many variables, sequential years are not independent of each other. If a population of people is continuously doing something every day, there is no reason to think they would suddenly change how they are doing that thing on January 1. A simple Personally I don't find any p-value calculation to be 'simple,' but you know what I mean.
    p-value calculation does not take this into account, so mathematically it appears less probable than it really is.




Try it yourself

You can calculate the values on this page on your own! Try running the Python code to see the calculation results. Step 1: Download and install Python on your computer.

Step 2: Open a plaintext editor like Notepad and paste the code below into it.

Step 3: Save the file as "calculate_correlation.py" in a place you will remember, like your desktop. Copy the file location to your clipboard. On Windows, you can right-click the file and click "Properties," and then copy what comes after "Location:" As an example, on my computer the location is "C:\Users\tyler\Desktop"

Step 4: Open a command line window. For example, by pressing start and typing "cmd" and them pressing enter.

Step 5: Install the required modules by typing "pip install numpy", then pressing enter, then typing "pip install scipy", then pressing enter.

Step 6: Navigate to the location where you saved the Python file by using the "cd" command. For example, I would type "cd C:\Users\tyler\Desktop" and push enter.

Step 7: Run the Python script by typing "python calculate_correlation.py"

If you run into any issues, I suggest asking ChatGPT to walk you through installing Python and running the code below on your system. Try this question:

"Walk me through installing Python on my computer to run a script that uses scipy and numpy. Go step-by-step and ask me to confirm before moving on. Start by asking me questions about my operating system so that you know how to proceed. Assume I want the simplest installation with the latest version of Python and that I do not currently have any of the necessary elements installed. Remember to only give me one step per response and confirm I have done it before proceeding."


# These modules make it easier to perform the calculation
import numpy as np
from scipy import stats

# We'll define a function that we can call to return the correlation calculations
def calculate_correlation(array1, array2):

    # Calculate Pearson correlation coefficient and p-value
    correlation, p_value = stats.pearsonr(array1, array2)

    # Calculate R-squared as the square of the correlation coefficient
    r_squared = correlation**2

    return correlation, r_squared, p_value

# These are the arrays for the variables shown on this page, but you can modify them to be any two sets of numbers
array_1 = np.array([1575,1629,1635,1612,1741,1805,1896,1933,2131,2525,2670,3162,4014,4847,5780,6767,7722,8557,9092,9384,9709,])
array_2 = np.array([7.87,8.43,9.7,12.48,11.76,18.98,19.56,12.79,19.65,24.44,38.52,37.94,54.41,49.9,24.66,58.14,53.76,53.05,75.92,39,58.96,])
array_1_name = "The number of Breweries in the United States"
array_2_name = "ONEOK's stock price (OKE)"

# Perform the calculation
print(f"Calculating the correlation between {array_1_name} and {array_2_name}...")
correlation, r_squared, p_value = calculate_correlation(array_1, array_2)

# Print the results
print("Correlation Coefficient:", correlation)
print("R-squared:", r_squared)
print("P-value:", p_value)



Reuseable content

You may re-use the images on this page for any purpose, even commercial purposes, without asking for permission. The only requirement is that you attribute Tyler Vigen. Attribution can take many different forms. If you leave the "tylervigen.com" link in the image, that satisfies it just fine. If you remove it and move it to a footnote, that's fine too. You can also just write "Charts courtesy of Tyler Vigen" at the bottom of an article.

You do not need to attribute "the spurious correlations website," and you don't even need to link here if you don't want to. I don't gain anything from pageviews. There are no ads on this site, there is nothing for sale, and I am not for hire.

For the record, I am just one person. Tyler Vigen, he/him/his. I do have degrees, but they should not go after my name unless you want to annoy my wife. If that is your goal, then go ahead and cite me as "Tyler Vigen, A.A. A.A.S. B.A. J.D." Otherwise it is just "Tyler Vigen."

When spoken, my last name is pronounced "vegan," like I don't eat meat.

Full license details.
For more on re-use permissions, or to get a signed release form, see tylervigen.com/permission.

Download images for these variables:


View another random correlation

How fun was this correlation?

Thanks for being the explorer we needed!


Correlation ID: 3887 · Black Variable ID: 34 · Red Variable ID: 1837
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0