about · email me · subscribe
Spurious correlation #2,660 · 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 Edwards Lifesciences' stock price (EW).  The chart goes from 2002 to 2022, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

As the number of breweries in the United States increases, so does the demand for beer. This leads to more people indulging in hearty, malty beverages, which in turn creates a greater need for heart-related medical devices, like the ones produced by Edwards Lifesciences. After all, nothing gets the heart pumping like a new, refreshing craft beer, leading to a surge in stock prices for the company. Cheers to heart health and hoppiness!

Model: dalle-3
Prompt: Generate an image of a TIME magazine cover with a colorful and vibrant depiction of a bustling city scene. In the foreground, show a row of trendy craft beer taprooms, each with lively patrons and stylish decor. Alongside the taprooms, display a graphical representation of the stock price of Edwards Lifesciences (EW) trending upwards, visually linking the demand for heart valves to the increased consumption of beer in the lively social hotspots. The overall imagery should capture the energetic atmosphere of the city and convey the interconnectedness of craft beer culture and medical advancements. 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 Edwards Lifesciences' stock price (EW). 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: Brutalism A TIME magazine cover image Sci-fi fantacy A scene from Skyrim Pop art
ChatGPT: A TIME magazine cover image

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 Edwards Lifesciences' stock price (EW), in the following situation: Because the increase in the number of breweries in the United States led to an uptick in social gatherings, resulting in more people enjoying alcoholic beverages. This also led to a spike in demand for heart valves, boosting Edwards Lifesciences' stock price as a result of increased beer consumption!. Keep the description simple.
ChatGPT: In a bustling city, the number of breweries in the United States is represented by a row of trendy craft beer taprooms, each one bustling with enthusiastic patrons. Alongside them, the stock price of Edwards Lifesciences (EW) is depicted as a graph trending upwards, mirroring the excitement and demand for heart valves due to the increased consumption of beer at these lively social hotspots.

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: [ A TIME magazine cover image ] and depicting this scene: In a bustling city, the number of breweries in the United States is represented by a row of trendy craft beer taprooms, each one bustling with enthusiastic patrons. Alongside them, the stock price of Edwards Lifesciences (EW) is depicted as a graph trending upwards, mirroring the excitement and demand for heart valves due to the increased consumption of beer at these lively social hotspots. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Generate an image of a TIME magazine cover with a colorful and vibrant depiction of a bustling city scene. In the foreground, show a row of trendy craft beer taprooms, each with lively patrons and stylish decor. Alongside the taprooms, display a graphical representation of the stock price of Edwards Lifesciences (EW) trending upwards, visually linking the demand for heart valves to the increased consumption of beer in the lively social hotspots. The overall imagery should capture the energetic atmosphere of the city and convey the interconnectedness of craft beer culture and medical advancements.

*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 Edwards Lifesciences' stock price (EW) to increase.

AI academic paper

(Because p < 0.01)
Brewing up Stock Success: The Fermentation of Breweries in the United States and Edwards Lifesciences' Stock Price

The Journal of Fermented Finance

Jan 2024

Reminder: This paper is AI-generated. Not real!
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 witty academic researcher. Your writing sounds like it belongs in a statistics journal.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 Edwards Lifesciences' stock price (EW). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

Make the title punny if you can come up with clever pun. If not, just make it sound clever.

Your research team used data from Brewers Association and LSEG Analytics (Refinitiv) to assess this nagging question. You found a correlation coefficient of 0.9007346 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]]
Brewing up Stock Success: The Fermentation of Breweries in the United States and Edwards Lifesciences' Stock Price

[[ABSTRACT]]
This research paper investigates the relationship between the proliferation of breweries in the United States and the stock price of Edwards Lifesciences (EW), using data from the Brewers Association and LSEG Analytics (Refinitiv). We use statistical analysis to delve into the frothy question of whether the number of breweries can predict fluctuations in Edwards Lifesciences' stock price. Our findings reveal a correlation coefficient of 0.9007346 and p < 0.01 over the period from 2002 to 2022.

Our results unfold the striking connection between the burgeoning brewery scene and the performance of Edwards Lifesciences' stock, providing a refreshing perspective on market dynamics. With this high correlation coefficient, one might say that the craft beer industry and Edwards Lifesciences' stock have taken a real "ale from the same brew," indicating a potential interconnectedness worth toasting. In conclusion, as the craft beer market continues to foam over, investors should keep an eye on the beer taps as well as the stock ticker for potential brewing profits.


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics journal.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 Edwards Lifesciences' stock price (EW). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Here is the title and abstract of the paper:
[[TITLE]]
Brewing up Stock Success: The Fermentation of Breweries in the United States and Edwards Lifesciences' Stock Price

[[ABSTRACT]]
This research paper investigates the relationship between the proliferation of breweries in the United States and the stock price of Edwards Lifesciences (EW), using data from the Brewers Association and LSEG Analytics (Refinitiv). We use statistical analysis to delve into the frothy question of whether the number of breweries can predict fluctuations in Edwards Lifesciences' stock price. Our findings reveal a correlation coefficient of 0.9007346 and p < 0.01 over the period from 2002 to 2022.

Our results unfold the striking connection between the burgeoning brewery scene and the performance of Edwards Lifesciences' stock, providing a refreshing perspective on market dynamics. With this high correlation coefficient, one might say that the craft beer industry and Edwards Lifesciences' stock have taken a real "ale from the same brew," indicating a potential interconnectedness worth toasting. In conclusion, as the craft beer market continues to foam over, investors should keep an eye on the beer taps as well as the stock ticker for potential brewing profits.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

The world of finance and the world of brews may seem like they belong in separate kegs, but this research aims to bring them together in a harmonious pour of data analysis. We delve into the frothy relationship between the number of breweries in the United States and the stock price of Edwards Lifesciences (EW), exploring whether a hoppy trend in breweries can predict the hoppiness of the stock market.

As we embark on this hoppy journey, we aim to blend the art of statistical analysis with the science of brewing, to discover whether there's more than just a casual "ale-iance" between craft beer and stock market performance. This study seeks to uncap the potential connections and pour out some fresh insights into market behavior.

Now, some might question the relevance of breweries to the stock price of a medical technology company, but as we'll see, the relationship between these variables might just be the hoppiest surprise of the decade! Just as a well-crafted brew can surprise the palate with unexpected flavors, the correlation between breweries and Edwards Lifesciences' stock price might just leave investors pleasantly surprised.

In our analysis, we employ rigorous statistical methods to uncork the potential links between these seemingly disparate variables. The aim is to provide a solid empirical foundation for understanding the interaction between the craft beer industry's growth and the performance of Edwards Lifesciences' stock. And who knows, we might even stumble upon a "hopportunity" for investors to tap into a new market indicator.

The unearthing of a strong correlation between these variables could provide investors with a "brew-tiful" new perspective on market dynamics. So, grab a cold one and let's hop into the fascinating world of statistics, finance, and fermentation. As we raise a glass to bold hypotheses and crisp findings, it's time to tap into the unexpected connections that might just brew up stock success.


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics journal.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 Edwards Lifesciences' stock price (EW). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

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 a couple popular internet memes that are related to one of the topics.

Here is the title and abstract of the paper:
[[TITLE]]
Brewing up Stock Success: The Fermentation of Breweries in the United States and Edwards Lifesciences' Stock Price

[[ABSTRACT]]
This research paper investigates the relationship between the proliferation of breweries in the United States and the stock price of Edwards Lifesciences (EW), using data from the Brewers Association and LSEG Analytics (Refinitiv). We use statistical analysis to delve into the frothy question of whether the number of breweries can predict fluctuations in Edwards Lifesciences' stock price. Our findings reveal a correlation coefficient of 0.9007346 and p < 0.01 over the period from 2002 to 2022.

Our results unfold the striking connection between the burgeoning brewery scene and the performance of Edwards Lifesciences' stock, providing a refreshing perspective on market dynamics. With this high correlation coefficient, one might say that the craft beer industry and Edwards Lifesciences' stock have taken a real "ale from the same brew," indicating a potential interconnectedness worth toasting. In conclusion, as the craft beer market continues to foam over, investors should keep an eye on the beer taps as well as the stock ticker for potential brewing profits.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
The world of finance and the world of brews may seem like they belong in separate kegs, but this research aims to bring them together in a harmonious pour of data analysis. We delve into the frothy relationship between the number of breweries in the United States and the stock price of Edwards Lifesciences (EW), exploring whether a hoppy trend in breweries can predict the hoppiness of the stock market.
As we embark on this hoppy journey, we aim to blend the art of statistical analysis with the science of brewing, to discover whether there's more than just a casual "ale-iance" between craft beer and stock market performance. This study seeks to uncap the potential connections and pour out some fresh insights into market behavior.
Now, some might question the relevance of breweries to the stock price of a medical technology company, but as we'll see, the relationship between these variables might just be the hoppiest surprise of the decade! Just as a well-crafted brew can surprise the palate with unexpected flavors, the correlation between breweries and Edwards Lifesciences' stock price might just leave investors pleasantly surprised.
In our analysis, we employ rigorous statistical methods to uncork the potential links between these seemingly disparate variables. The aim is to provide a solid empirical foundation for understanding the interaction between the craft beer industry's growth and the performance of Edwards Lifesciences' stock. And who knows, we might even stumble upon a "hopportunity" for investors to tap into a new market indicator.
The unearthing of a strong correlation between these variables could provide investors with a "brew-tiful" new perspective on market dynamics. So, grab a cold one and let's hop into the fascinating world of statistics, finance, and fermentation. As we raise a glass to bold hypotheses and crisp findings, it's time to tap into the unexpected connections that might just brew up stock success.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

Several studies have investigated the relationship between various industries and stock market performance. Smith et al. (2015) examined the impact of agricultural production on tech stocks, while Doe and Jones (2018) explored the influence of music streaming services on healthcare sector investments. These studies set the stage for our investigation into the intriguing correlation between the number of breweries in the United States and the stock price of Edwards Lifesciences (EW).

But let's not "beer" around the bush - the ale-ure of this research lies in the potential interplay between an industry known for its hops and malts and a medical technology company focused on cardiovascular innovations.

In "The Economics of Beer and Brewing," the authors delve into the historical evolution of the brewing industry, providing a comprehensive backdrop for our examination of current trends. This literary "brew-ha-ha" takes us through the economic dynamics of beer production and consumption, offering valuable insights into the industry's relationship with broader economic indicators.

However, the real "hop-ortunity" here lies in the unexpected potential for a brewery boom to send ripples through the stock market. As we turn to more theoretical frameworks in "The Economics of Ale: Macrobrewing Models," we find ourselves contemplating the frothy possibility of a "brew-nomic" indicator that could leave investors hopsolutely thrilled.

Moving from the world of economic analyses to the realm of fiction, "The Brews of Wrath" paints a vivid picture of the tumultuous intersections between a craft beer revolution and the shifting tides of the stock market. This literary concoction offers a whimsical take on the potential reverberations of a brewery uprising on the financial landscape.

Now, it wouldn't be a true academic pursuit without a nod to the internet culture that permeates our everyday existence. The viral meme "Distracted Boyfriend" takes on a new twist in the meme “Distracted Investor," where the boyfriend is represented by a delightfully frothy craft beer tap, drawing the gaze of the distracted investor away from traditional stock market indicators.

But enough with the "hop-stacles" and let's raise a glass to the unexpected connections we're about to uncover in our statistical analysis of the brewery-stock nexus. As we journey through the pints of data, we may just stumble upon the hopsolutely "ale-gorical" link between breweries and Edwards Lifesciences' stock price.

So, grab a seat at the brewpub of statistical discovery, because we're about to craft some findings that are as refreshing as a cold pint on a hot summer day. Cheers to the intersection of statistics, finance, and fermentation - where the only thing we take seriously is the p-value!


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics journal.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 Edwards Lifesciences' stock price (EW). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences. 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]]
Brewing up Stock Success: The Fermentation of Breweries in the United States and Edwards Lifesciences' Stock Price

[[ABSTRACT]]
This research paper investigates the relationship between the proliferation of breweries in the United States and the stock price of Edwards Lifesciences (EW), using data from the Brewers Association and LSEG Analytics (Refinitiv). We use statistical analysis to delve into the frothy question of whether the number of breweries can predict fluctuations in Edwards Lifesciences' stock price. Our findings reveal a correlation coefficient of 0.9007346 and p < 0.01 over the period from 2002 to 2022.

Our results unfold the striking connection between the burgeoning brewery scene and the performance of Edwards Lifesciences' stock, providing a refreshing perspective on market dynamics. With this high correlation coefficient, one might say that the craft beer industry and Edwards Lifesciences' stock have taken a real "ale from the same brew," indicating a potential interconnectedness worth toasting. In conclusion, as the craft beer market continues to foam over, investors should keep an eye on the beer taps as well as the stock ticker for potential brewing profits.

[[INTRODUCTION]]
The world of finance and the world of brews may seem like they belong in separate kegs, but this research aims to bring them together in a harmonious pour of data analysis. We delve into the frothy relationship between the number of breweries in the United States and the stock price of Edwards Lifesciences (EW), exploring whether a hoppy trend in breweries can predict the hoppiness of the stock market.
As we embark on this hoppy journey, we aim to blend the art of statistical analysis with the science of brewing, to discover whether there's more than just a casual "ale-iance" between craft beer and stock market performance. This study seeks to uncap the potential connections and pour out some fresh insights into market behavior.
Now, some might question the relevance of breweries to the stock price of a medical technology company, but as we'll see, the relationship between these variables might just be the hoppiest surprise of the decade! Just as a well-crafted brew can surprise the palate with unexpected flavors, the correlation between breweries and Edwards Lifesciences' stock price might just leave investors pleasantly surprised.
In our analysis, we employ rigorous statistical methods to uncork the potential links between these seemingly disparate variables. The aim is to provide a solid empirical foundation for understanding the interaction between the craft beer industry's growth and the performance of Edwards Lifesciences' stock. And who knows, we might even stumble upon a "hopportunity" for investors to tap into a new market indicator.
The unearthing of a strong correlation between these variables could provide investors with a "brew-tiful" new perspective on market dynamics. So, grab a cold one and let's hop into the fascinating world of statistics, finance, and fermentation. As we raise a glass to bold hypotheses and crisp findings, it's time to tap into the unexpected connections that might just brew up stock success.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To ferment our research design, we opted for a comprehensive quantitative approach to analyze the relationship between the number of breweries in the United States and the stock price of Edwards Lifesciences (EW). Our data sources primarily included information from the Brewers Association and LSEG Analytics (Refinitiv), providing us with a rich blend of data spanning from 2002 to 2022.

We concocted a meticulously crafted dataset, where the number of breweries acted as our independent variable, and Edwards Lifesciences' stock price served as the dependent variable. This allowed us to hop right into the analysis and discern any frothy patterns between the two.

Our statistical arsenal featured a mix of regression analysis, time-series modeling, and correlation calculations, ensuring that we left no hop cone unturned in our quest for insights. We also included control variables to ensure our analysis wasn't hopped up on spurious correlations.

With the precision of a skilled brewmaster, we employed multiple regression models, including both ordinary least squares (OLS) and robust regression techniques. This allowed us to uncover the most robust relationships between the proliferation of breweries and Edwards Lifesciences' stock price, ensuring that our findings weren't just a result of statistical "brew-haha."

Furthermore, to ferment our results into a comprehensive analysis, we supplemented our quantitative methods with qualitative insights from industry experts. This ensured that we didn't just rely on numbers but also tapped into the nuanced dynamics of the craft beer industry and the healthcare sector. It also provided some refreshing anecdotes to lighten the scientific brew of our research.

In brewing up our analysis, we made sure to account for any potential confounding factors, such as macroeconomic trends and regulatory changes in the brewing and healthcare industries. This helped us avoid getting muddled in a concoction of unrelated trends and ensured that our findings were as crisp and clear as a well-poured pint of pale ale.

As we sifted through the data, we also employed robust sensitivity analyses to gauge the sturdiness of our findings. Like a finely crafted stout, we aimed for a research design that could stand up to the test of various statistical scenarios and assumptions.

To capture the temporal dynamics of the relationship between breweries and Edwards Lifesciences' stock price, we also utilized time series analysis, allowing us to examine how changes in the brewery landscape correlated with shifts in the stock performance of Edwards Lifesciences. This method provided us with a frothy look at the trend's evolution over time.

In summary, our methodology aimed to brew up a comprehensive and robust analysis that not only hopped over statistical hurdles but also poured out insights that could quench the thirst for fresh perspectives in the world of finance and fermentation.


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics journal.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 Edwards Lifesciences' stock price (EW). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences. 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.9007346, r-squared of 0.8113228, 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]]
Brewing up Stock Success: The Fermentation of Breweries in the United States and Edwards Lifesciences' Stock Price

[[ABSTRACT]]
This research paper investigates the relationship between the proliferation of breweries in the United States and the stock price of Edwards Lifesciences (EW), using data from the Brewers Association and LSEG Analytics (Refinitiv). We use statistical analysis to delve into the frothy question of whether the number of breweries can predict fluctuations in Edwards Lifesciences' stock price. Our findings reveal a correlation coefficient of 0.9007346 and p < 0.01 over the period from 2002 to 2022.

Our results unfold the striking connection between the burgeoning brewery scene and the performance of Edwards Lifesciences' stock, providing a refreshing perspective on market dynamics. With this high correlation coefficient, one might say that the craft beer industry and Edwards Lifesciences' stock have taken a real "ale from the same brew," indicating a potential interconnectedness worth toasting. In conclusion, as the craft beer market continues to foam over, investors should keep an eye on the beer taps as well as the stock ticker for potential brewing profits.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
The world of finance and the world of brews may seem like they belong in separate kegs, but this research aims to bring them together in a harmonious pour of data analysis. We delve into the frothy relationship between the number of breweries in the United States and the stock price of Edwards Lifesciences (EW), exploring whether a hoppy trend in breweries can predict the hoppiness of the stock market.
As we embark on this hoppy journey, we aim to blend the art of statistical analysis with the science of brewing, to discover whether there's more than just a casual "ale-iance" between craft beer and stock market performance. This study seeks to uncap the potential connections and pour out some fresh insights into market behavior.
Now, some might question the relevance of breweries to the stock price of a medical technology company, but as we'll see, the relationship between these variables might just be the hoppiest surprise of the decade! Just as a well-crafted brew can surprise the palate with unexpected flavors, the correlation between breweries and Edwards Lifesciences' stock price might just leave investors pleasantly surprised.
In our analysis, we employ rigorous statistical methods to uncork the potential links between these seemingly disparate variables. The aim is to provide a solid empirical foundation for understanding the interaction between the craft beer industry's growth and the performance of Edwards Lifesciences' stock. And who knows, we might even stumble upon a "hopportunity" for investors to tap into a new market indicator.
The unearthing of a strong correlation between these variables could provide investors with a "brew-tiful" new perspective on market dynamics. So, grab a cold one and let's hop into the fascinating world of statistics, finance, and fermentation. As we raise a glass to bold hypotheses and crisp findings, it's time to tap into the unexpected connections that might just brew up stock success.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The analysis of the relationship between the number of breweries in the United States and Edwards Lifesciences' stock price (EW) for the period 2002 to 2022 revealed a strikingly high correlation coefficient of 0.9007346. This indicates a strong positive linear relationship between the two variables, suggesting that as the number of breweries increases, so does the stock price of Edwards Lifesciences. It seems that the market is saying, "hops" to the brewery scene and "hop up" to the stock price of Edwards Lifesciences!

The r-squared value of 0.8113228 further emphasizes the strength of this relationship, explaining approximately 81% of the variation in Edwards Lifesciences' stock price based on the number of breweries. It's as if the brewery count is a key ingredient in predicting the stock price – a bit like the secret hops in a well-crafted IPA!

The p-value of less than 0.01 indicates that the observed correlation is statistically significant, providing strong evidence to support the relationship between the variables. This suggests that the connection we've uncovered is not just a random "ale-lusion"; it holds weight in the world of statistical analysis. It's as if the number of breweries is not just "brewing up" stock success for Edwards Lifesciences, but rather "crafting" it with statistical significance.

As shown in Fig. 1, the scatterplot visually confirms the strong positive relationship between the variables, with the data points aligning along a clear upward trend. It seems that as the breweries bubble up, so does the stock price of Edwards Lifesciences – a correlation worth raising a pint to!

Overall, our findings unveil a remarkable connection between the proliferation of breweries in the United States and the stock performance of Edwards Lifesciences, highlighting the potential predictive power of the brewing industry on stock market dynamics. It appears that when it comes to stock success, investors should keep their glasses half full with both craft beer and Edwards Lifesciences' stock.


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics journal.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 Edwards Lifesciences' stock price (EW). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences. 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]]
Brewing up Stock Success: The Fermentation of Breweries in the United States and Edwards Lifesciences' Stock Price

[[ABSTRACT]]
This research paper investigates the relationship between the proliferation of breweries in the United States and the stock price of Edwards Lifesciences (EW), using data from the Brewers Association and LSEG Analytics (Refinitiv). We use statistical analysis to delve into the frothy question of whether the number of breweries can predict fluctuations in Edwards Lifesciences' stock price. Our findings reveal a correlation coefficient of 0.9007346 and p < 0.01 over the period from 2002 to 2022.

Our results unfold the striking connection between the burgeoning brewery scene and the performance of Edwards Lifesciences' stock, providing a refreshing perspective on market dynamics. With this high correlation coefficient, one might say that the craft beer industry and Edwards Lifesciences' stock have taken a real "ale from the same brew," indicating a potential interconnectedness worth toasting. In conclusion, as the craft beer market continues to foam over, investors should keep an eye on the beer taps as well as the stock ticker for potential brewing profits.

[[LITERATURE REVIEW]]
Several studies have investigated the relationship between various industries and stock market performance. Smith et al. (2015) examined the impact of agricultural production on tech stocks, while Doe and Jones (2018) explored the influence of music streaming services on healthcare sector investments. These studies set the stage for our investigation into the intriguing correlation between the number of breweries in the United States and the stock price of Edwards Lifesciences (EW).
But let's not "beer" around the bush - the ale-ure of this research lies in the potential interplay between an industry known for its hops and malts and a medical technology company focused on cardiovascular innovations.
In "The Economics of Beer and Brewing," the authors delve into the historical evolution of the brewing industry, providing a comprehensive backdrop for our examination of current trends. This literary "brew-ha-ha" takes us through the economic dynamics of beer production and consumption, offering valuable insights into the industry's relationship with broader economic indicators.
However, the real "hop-ortunity" here lies in the unexpected potential for a brewery boom to send ripples through the stock market. As we turn to more theoretical frameworks in "The Economics of Ale: Macrobrewing Models," we find ourselves contemplating the frothy possibility of a "brew-nomic" indicator that could leave investors hopsolutely thrilled.
Moving from the world of economic analyses to the realm of fiction, "The Brews of Wrath" paints a vivid picture of the tumultuous intersections between a craft beer revolution and the shifting tides of the stock market. This literary concoction offers a whimsical take on the potential reverberations of a brewery uprising on the financial landscape.
Now, it wouldn't be a true academic pursuit without a nod to the internet culture that permeates our everyday existence. The viral meme "Distracted Boyfriend" takes on a new twist in the meme “Distracted Investor," where the boyfriend is represented by a delightfully frothy craft beer tap, drawing the gaze of the distracted investor away from traditional stock market indicators.
But enough with the "hop-stacles" and let's raise a glass to the unexpected connections we're about to uncover in our statistical analysis of the brewery-stock nexus. As we journey through the pints of data, we may just stumble upon the hopsolutely "ale-gorical" link between breweries and Edwards Lifesciences' stock price.
So, grab a seat at the brewpub of statistical discovery, because we're about to craft some findings that are as refreshing as a cold pint on a hot summer day. Cheers to the intersection of statistics, finance, and fermentation - where the only thing we take seriously is the p-value!

[[RESULTS]]
The analysis of the relationship between the number of breweries in the United States and Edwards Lifesciences' stock price (EW) for the period 2002 to 2022 revealed a strikingly high correlation coefficient of 0.9007346. This indicates a strong positive linear relationship between the two variables, suggesting that as the number of breweries increases, so does the stock price of Edwards Lifesciences. It seems that the market is saying, "hops" to the brewery scene and "hop up" to the stock price of Edwards Lifesciences!
The r-squared value of 0.8113228 further emphasizes the strength of this relationship, explaining approximately 81% of the variation in Edwards Lifesciences' stock price based on the number of breweries. It's as if the brewery count is a key ingredient in predicting the stock price – a bit like the secret hops in a well-crafted IPA!
The p-value of less than 0.01 indicates that the observed correlation is statistically significant, providing strong evidence to support the relationship between the variables. This suggests that the connection we've uncovered is not just a random "ale-lusion"; it holds weight in the world of statistical analysis. It's as if the number of breweries is not just "brewing up" stock success for Edwards Lifesciences, but rather "crafting" it with statistical significance.
As shown in Fig. 1, the scatterplot visually confirms the strong positive relationship between the variables, with the data points aligning along a clear upward trend. It seems that as the breweries bubble up, so does the stock price of Edwards Lifesciences – a correlation worth raising a pint to!
Overall, our findings unveil a remarkable connection between the proliferation of breweries in the United States and the stock performance of Edwards Lifesciences, highlighting the potential predictive power of the brewing industry on stock market dynamics. It appears that when it comes to stock success, investors should keep their glasses half full with both craft beer and Edwards Lifesciences' stock.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

Our investigation into the relationship between the number of breweries in the United States and the stock price of Edwards Lifesciences (EW) has left us with quite the "ale-mentary" conclusion. We can confidently "beerify" that the proliferation of breweries indeed has a statistically significant and positively associated impact on Edwards Lifesciences' stock price. In other words, the more the merrier in terms of breweries, as they appear to "hop" up the stock success of Edwards Lifesciences.

Our results align with prior literature that hinted at the potential impact of seemingly unrelated industries on stock market dynamics. The whimsical pursuits of Smith et al. (2015) and Doe and Jones (2018) may have initially raised some eyebrows, but our findings now offer a "hop-dash" of credibility to the notion that unexpected sectors can indeed influence stock market performance. It seems that the financial market is more interconnected than previously thought, akin to a well-blended beer where each ingredient plays a role in creating the final flavor profile.

The strikingly high correlation coefficient of 0.9007346 we uncovered suggests that there is a strong linear relationship between the number of breweries and Edwards Lifesciences' stock price. One might even say that the market is "hopping on" to this relationship, as it seems to be quite "ale-lluring" for investors and statisticians alike. The r-squared value of 0.8113228 further reinforces the strength of this connection, highlighting that the brewery count explains approximately 81% of the variation in Edwards Lifesciences' stock price. It's almost like the number of breweries is the secret recipe for stock success, much like the secret hops in a well-crafted IPA – a "hoptimistic" twist in the world of stock market predictions!

The statistically significant p-value further cements the legitimacy of our findings, dispelling any notion that the observed correlation could be just a random "ale-lusion." It seems that our results are "brewing" up more than just stock success for Edwards Lifesciences – they are adding a touch of statistical significance to the craft beer industry. This "hopportunity" to integrate seemingly distant sectors into our predictive models undoubtedly adds a frothy layer of complexity to the world of finance and economics.

Our visually appealing scatterplot confirms the strong positive relationship between the variables, offering a pictorial representation of the "hopsolutely" uplifting trajectory of Edwards Lifesciences' stock prices alongside the proliferation of breweries. It seems that as the breweries bubble up, so does the stock price – a correlation worth raising a pint to indeed!

In conclusion, our findings shed light on the unexpected interplay between the craft beer industry and the stock market, offering a refreshing perspective on market dynamics. As investors navigate the financial landscape, perhaps it's time to heed the advice to keep an eye on the beer taps as well as the stock ticker – after all, when it comes to stock success, it's always good to have a "hoppy" forecast.

After all, who knew that the key to stock success might involve a cold one from the local brewery?


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics journal.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 Edwards Lifesciences' stock price (EW). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences. 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]]
Brewing up Stock Success: The Fermentation of Breweries in the United States and Edwards Lifesciences' Stock Price

[[ABSTRACT]]
This research paper investigates the relationship between the proliferation of breweries in the United States and the stock price of Edwards Lifesciences (EW), using data from the Brewers Association and LSEG Analytics (Refinitiv). We use statistical analysis to delve into the frothy question of whether the number of breweries can predict fluctuations in Edwards Lifesciences' stock price. Our findings reveal a correlation coefficient of 0.9007346 and p < 0.01 over the period from 2002 to 2022.

Our results unfold the striking connection between the burgeoning brewery scene and the performance of Edwards Lifesciences' stock, providing a refreshing perspective on market dynamics. With this high correlation coefficient, one might say that the craft beer industry and Edwards Lifesciences' stock have taken a real "ale from the same brew," indicating a potential interconnectedness worth toasting. In conclusion, as the craft beer market continues to foam over, investors should keep an eye on the beer taps as well as the stock ticker for potential brewing profits.

[[INTRDUCTION]]
The world of finance and the world of brews may seem like they belong in separate kegs, but this research aims to bring them together in a harmonious pour of data analysis. We delve into the frothy relationship between the number of breweries in the United States and the stock price of Edwards Lifesciences (EW), exploring whether a hoppy trend in breweries can predict the hoppiness of the stock market.
As we embark on this hoppy journey, we aim to blend the art of statistical analysis with the science of brewing, to discover whether there's more than just a casual "ale-iance" between craft beer and stock market performance. This study seeks to uncap the potential connections and pour out some fresh insights into market behavior.
Now, some might question the relevance of breweries to the stock price of a medical technology company, but as we'll see, the relationship between these variables might just be the hoppiest surprise of the decade! Just as a well-crafted brew can surprise the palate with unexpected flavors, the correlation between breweries and Edwards Lifesciences' stock price might just leave investors pleasantly surprised.
In our analysis, we employ rigorous statistical methods to uncork the potential links between these seemingly disparate variables. The aim is to provide a solid empirical foundation for understanding the interaction between the craft beer industry's growth and the performance of Edwards Lifesciences' stock. And who knows, we might even stumble upon a "hopportunity" for investors to tap into a new market indicator.
The unearthing of a strong correlation between these variables could provide investors with a "brew-tiful" new perspective on market dynamics. So, grab a cold one and let's hop into the fascinating world of statistics, finance, and fermentation. As we raise a glass to bold hypotheses and crisp findings, it's time to tap into the unexpected connections that might just brew up stock success.

[[RESULTS]]
The analysis of the relationship between the number of breweries in the United States and Edwards Lifesciences' stock price (EW) for the period 2002 to 2022 revealed a strikingly high correlation coefficient of 0.9007346. This indicates a strong positive linear relationship between the two variables, suggesting that as the number of breweries increases, so does the stock price of Edwards Lifesciences. It seems that the market is saying, "hops" to the brewery scene and "hop up" to the stock price of Edwards Lifesciences!
The r-squared value of 0.8113228 further emphasizes the strength of this relationship, explaining approximately 81% of the variation in Edwards Lifesciences' stock price based on the number of breweries. It's as if the brewery count is a key ingredient in predicting the stock price – a bit like the secret hops in a well-crafted IPA!
The p-value of less than 0.01 indicates that the observed correlation is statistically significant, providing strong evidence to support the relationship between the variables. This suggests that the connection we've uncovered is not just a random "ale-lusion"; it holds weight in the world of statistical analysis. It's as if the number of breweries is not just "brewing up" stock success for Edwards Lifesciences, but rather "crafting" it with statistical significance.
As shown in Fig. 1, the scatterplot visually confirms the strong positive relationship between the variables, with the data points aligning along a clear upward trend. It seems that as the breweries bubble up, so does the stock price of Edwards Lifesciences – a correlation worth raising a pint to!
Overall, our findings unveil a remarkable connection between the proliferation of breweries in the United States and the stock performance of Edwards Lifesciences, highlighting the potential predictive power of the brewing industry on stock market dynamics. It appears that when it comes to stock success, investors should keep their glasses half full with both craft beer and Edwards Lifesciences' stock.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our research has demonstrated a robust correlation between the number of breweries in the United States and the stock price of Edwards Lifesciences (EW). The frothy coefficient of 0.9007346 and a p-value of less than 0.01 leave no room for a "beer-ied" relationship - it's as clear as a pilsner in a stein. This indicates a strong connection between the craft beer boom and Edwards Lifesciences' stock performance, proving that when it comes to market trends, it's not just about hops and barley, but also "stocks" and bonds.

Our findings suggest that as the craft beer industry flourishes, so does the stock price of Edwards Lifesciences, revealing a symbiotic relationship that's akin to a perfect beer and burger pairing - a match made in financial heaven. It seems that the market is saying, "hops" to the brewery scene and "hop up" to the stock price of Edwards Lifesciences! As they say, when life gives you hops, make beer – and lucrative stock investments!

With an r-squared value of 0.8113228, we can confidently say that the number of breweries wields considerable predictive power over Edwards Lifesciences' stock price, just like the perfect blend of malt and hops in a stellar IPA. It's clear that the craft beer industry is not just fermenting beverages; it's fermenting wealth, and investors might want to tap into this "brew-tiful" correlation for potential financial gains.

Therefore, it is safe to say that no more research is needed in this area as we seem to have "brewed up" a comprehensive understanding of the relationship between the proliferation of breweries and the stock performance of Edwards Lifesciences. It's time to raise a glass to this unexpected but fruitful connection and let the data ferment in the minds of investors and researchers alike. Cheers to statistics, finance, and a good old dad joke – it's quite "a-ale-ghty" good fun!


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 Brewing up Stock Success: The Fermentation of Breweries in the United States and Edwards Lifesciences' Stock Price. 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 Brewing up Stock Success: The Fermentation of Breweries in the United States and Edwards Lifesciences' Stock Price. Respond only with the name of a fictional organization.

ChatGPT:

The Institute for Fermentation 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 Brewing up Stock Success: The Fermentation of Breweries in the United States and Edwards Lifesciences' Stock Price with an abstract of This research paper investigates the relationship between the proliferation of breweries in the United States and the stock price of Edwards Lifesciences (EW), using data from the Brewers Association and LSEG Analytics (Refinitiv). We use statistical analysis to delve into the frothy question of whether the number of breweries can predict fluctuations in Edwards Lifesciences' stock price. Our findings reveal a correlation coefficient of 0.9007346 and p < 0.01 over the period from 2002 to 2022.
Our results unfold the striking connection between the burgeoning brewery scene and the performance of Edwards Lifesciences' stock, providing a refreshing perspective on market dynamics. With this high correlation coefficient, one might say that the craft beer industry and Edwards Lifesciences' stock have taken a real "ale from the same brew," indicating a potential interconnectedness worth toasting. In conclusion, as the craft beer market continues to foam over, investors should keep an eye on the beer taps as well as the stock ticker for potential brewing profits.

ChatGPT:

Breweries in the United States, Edwards Lifesciences stock price, correlation between breweries and stock price, craft beer industry impact on stock market, brewers association data, LSEG Analytics stock data, market dynamics interconnectedness, brewery scene and stock performance, craft beer market and investments, financial analysis of breweries and stock prices

*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

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

See what else correlates with Edwards Lifesciences' stock price (EW)

Correlation r = 0.9007346 (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.8113228 (Coefficient of determination)
This means 81.1% of the change in the one variable (i.e., Edwards Lifesciences' stock price (EW)) 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 2.6E-8. 0.0000000261152036619494670000
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.9 in 2.6E-6% of random cases. Said differently, if you correlated 38,291,871 random variables You don't actually need 38 million 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.77, 0.96 ] 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
Edwards Lifesciences' stock price (EW) (Stock price)2.32.112.513.443.463.93.814.527.3113.5912.0115.3210.9521.3626.0331.2737.2350.6476.6791.5129.07




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.
  4. Outlandish outliers: There are "outliers" in this data. In concept, "outlier" just means "way different than the rest of your dataset." When calculating a correlation like this, they are particularly impactful because a single outlier can substantially increase your correlation.

    For the purposes of this project, I counted a point as an outlier if it the residual was two standard deviations from the mean.

    (This bullet point only shows up in the details page on charts that do, in fact, have outliers.)
    They stand out on the scatterplot above: notice the dots that are far away from any other dots. I intentionally mishandeled outliers, which makes the correlation look extra strong.




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([2.3,2.11,2.51,3.44,3.46,3.9,3.81,4.52,7.31,13.59,12.01,15.32,10.95,21.36,26.03,31.27,37.23,50.64,76.67,91.5,129.07,])
array_1_name = "The number of Breweries in the United States"
array_2_name = "Edwards Lifesciences' stock price (EW)"

# 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?

Kudos for rating!


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

CC BY 4.0