about · email me · subscribe
Spurious correlation #3,732 · 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 Lockheed Martin's stock price (LMT).  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 increased, so did the demand for beer. This led to a spike in social gatherings and backyard BBQs, creating a greater need for entertainment. In a surprising turn of events, people started hosting drone races at these gatherings, resulting in a sudden uptick in sales for Lockheed Martin's recreational drones. Who knew that a passion for craft beer would inadvertently lead to a soaring stock price for Lockheed Martin!

Model: dalle-3
Prompt: An image that looks like it is a scene from a Pixar movie: A sunny, rural landscape with rolling hills and vibrant green hop fields is depicted. In the foreground, a picturesque brewery stands proudly, with smoke rising from its chimney and workers bustling about, ferrying ingredients and crafting beer. In the distance, a fleet of Lockheed Martin planes streak across the sky, symbolizing the company's soaring stock price and the fast-paced world of transportation. The scene captures the energy and excitement of industry and innovation, with the hop shortage evident amidst the flourishing activities. 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 Lockheed Martin's stock price (LMT). 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: Data cyber art Celtic art Psychedelic An image that looks like it is a scene from a Pixar movie Vaporwave
ChatGPT: An image that looks like it is a scene from a Pixar movie

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 Lockheed Martin's stock price (LMT), in the following situation: As the number of breweries in the US increased, so did the demand for hops, causing a hop shortage. Lockheed Martin's stock rose as investors hopped on board, thinking the company could help "hop" with transportation solutions.. Keep the description simple.
ChatGPT: A growing number of breweries dotted the American landscape, each bustling with activity as they brewed more beer. Meanwhile, Lockheed Martin's stock price ascended faster than a rocket, reflecting the excitement of investors looking for transport solutions. In the midst of this, hop fields bustled with activity, but the demand for hops outstripped the supply, creating a hop shortage.

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: [ An image that looks like it is a scene from a Pixar movie ] and depicting this scene: A growing number of breweries dotted the American landscape, each bustling with activity as they brewed more beer. Meanwhile, Lockheed Martin's stock price ascended faster than a rocket, reflecting the excitement of investors looking for transport solutions. In the midst of this, hop fields bustled with activity, but the demand for hops outstripped the supply, creating a hop shortage. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: An image that looks like it is a scene from a Pixar movie: A sunny, rural landscape with rolling hills and vibrant green hop fields is depicted. In the foreground, a picturesque brewery stands proudly, with smoke rising from its chimney and workers bustling about, ferrying ingredients and crafting beer. In the distance, a fleet of Lockheed Martin planes streak across the sky, symbolizing the company's soaring stock price and the fast-paced world of transportation. The scene captures the energy and excitement of industry and innovation, with the hop shortage evident amidst the flourishing activities.

*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 Lockheed Martin's stock price (LMT) to increase.

AI academic paper

(Because p < 0.01)
Brewing Up the Stock Market: A Hoppy Relationship Between Brewery Numbers and Lockheed Martin's 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 Lockheed Martin's stock price (LMT). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

Include a pun 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.9784960 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 the Stock Market: A Hoppy Relationship Between Brewery Numbers and Lockheed Martin's Stock Price

[[ABSTRACT]]
In this brew-tiful study, we conduct a hoppy-go-lucky exploration of the connection between the number of breweries in the United States and Lockheed Martin's stock price. Leveraging data from the Brewers Association and LSEG Analytics (Refinitiv), we embarked on a frothy journey to answer the age-old question: Do breweries and defense stocks share a sudsy relationship?

Our findings revealed a staggering correlation coefficient of 0.9784960 and a p-value less than 0.01 for the period from 2002 to 2022. This spirited correlation suggests a noteworthy connection between the two variables, implying that as the number of breweries bubbles up, Lockheed Martin's stock price follows suit.

In the spirit of good cheer, our results hint that investors may want to keep an eye on brewery trends as an indicator of how Lockheed Martin's stock may ferment. The data seems to suggest that when it comes to stock performance, it's not just about hops, barley, and malt – there might just be a pint-sized relationship with defense stocks. Our research serves as a reminder that sometimes, in the world of stocks and securities, it's not just about holding the stocks, but also about raising a few to uncover unexpected connections.

Well folks, just remember: whether you're investing in hops or missile drops, there's always something brewing in the stock market!


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 Lockheed Martin's stock price (LMT). 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 the Stock Market: A Hoppy Relationship Between Brewery Numbers and Lockheed Martin's Stock Price

[[ABSTRACT]]
In this brew-tiful study, we conduct a hoppy-go-lucky exploration of the connection between the number of breweries in the United States and Lockheed Martin's stock price. Leveraging data from the Brewers Association and LSEG Analytics (Refinitiv), we embarked on a frothy journey to answer the age-old question: Do breweries and defense stocks share a sudsy relationship?

Our findings revealed a staggering correlation coefficient of 0.9784960 and a p-value less than 0.01 for the period from 2002 to 2022. This spirited correlation suggests a noteworthy connection between the two variables, implying that as the number of breweries bubbles up, Lockheed Martin's stock price follows suit.

In the spirit of good cheer, our results hint that investors may want to keep an eye on brewery trends as an indicator of how Lockheed Martin's stock may ferment. The data seems to suggest that when it comes to stock performance, it's not just about hops, barley, and malt – there might just be a pint-sized relationship with defense stocks. Our research serves as a reminder that sometimes, in the world of stocks and securities, it's not just about holding the stocks, but also about raising a few to uncover unexpected connections.

Well folks, just remember: whether you're investing in hops or missile drops, there's always something brewing in the stock market!

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

With the stock market being as mercurial as the hop content in your favorite craft brew, investors are constantly seeking new insights and indicators to inform their decisions. In the spirit of uncovering unlikely relationships, we set out to explore the correlation between the number of breweries in the United States and the stock price of Lockheed Martin (LMT). Because, really, who doesn't love a good brew-haha in the world of stock analysis?

You see, just like a fine ale, the stock market is a complex and nuanced entity. It's not just about the highs and the lows, but also the subtle flavors that underlie market movements. So, we sought to pour over the data to determine if there was any frothy relationship between the proliferation of breweries and the performance of a stalwart defense stock like Lockheed Martin. After all, there's a hops-itive chance that unexpected connections can lead to lucrative insights.

But before we dive into our findings, let's hop back a bit and consider the rationale behind this seemingly un-beer-lievable correlation. Not to mention that it gives us the perfect excuse to pepper this introduction with a few hops-able puns. Just remember, in the world of statistics, it's all about the brew-tiful dance between variables, wort-h exploring to uncover sparkling relationships.

Adding a touch of levity in the sometimes dry world of research, our study aims to shed light on the potential link between two seemingly disparate elements – the thriving beer industry and the defense giant's stock performance. After all, who wouldn't want to know if there's a lager-than-life impact brewing beneath the surface of the stock market? And if we can deliver these insights with a side of humor, well, that's just the yeast we can do.


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 Lockheed Martin's stock price (LMT). 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 cite some social media posts you read that seem to be related.

Here is the title and abstract of the paper:
[[TITLE]]
Brewing Up the Stock Market: A Hoppy Relationship Between Brewery Numbers and Lockheed Martin's Stock Price

[[ABSTRACT]]
In this brew-tiful study, we conduct a hoppy-go-lucky exploration of the connection between the number of breweries in the United States and Lockheed Martin's stock price. Leveraging data from the Brewers Association and LSEG Analytics (Refinitiv), we embarked on a frothy journey to answer the age-old question: Do breweries and defense stocks share a sudsy relationship?

Our findings revealed a staggering correlation coefficient of 0.9784960 and a p-value less than 0.01 for the period from 2002 to 2022. This spirited correlation suggests a noteworthy connection between the two variables, implying that as the number of breweries bubbles up, Lockheed Martin's stock price follows suit.

In the spirit of good cheer, our results hint that investors may want to keep an eye on brewery trends as an indicator of how Lockheed Martin's stock may ferment. The data seems to suggest that when it comes to stock performance, it's not just about hops, barley, and malt – there might just be a pint-sized relationship with defense stocks. Our research serves as a reminder that sometimes, in the world of stocks and securities, it's not just about holding the stocks, but also about raising a few to uncover unexpected connections.

Well folks, just remember: whether you're investing in hops or missile drops, there's always something brewing in the stock market!

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
With the stock market being as mercurial as the hop content in your favorite craft brew, investors are constantly seeking new insights and indicators to inform their decisions. In the spirit of uncovering unlikely relationships, we set out to explore the correlation between the number of breweries in the United States and the stock price of Lockheed Martin (LMT). Because, really, who doesn't love a good brew-haha in the world of stock analysis?
You see, just like a fine ale, the stock market is a complex and nuanced entity. It's not just about the highs and the lows, but also the subtle flavors that underlie market movements. So, we sought to pour over the data to determine if there was any frothy relationship between the proliferation of breweries and the performance of a stalwart defense stock like Lockheed Martin. After all, there's a hops-itive chance that unexpected connections can lead to lucrative insights.
But before we dive into our findings, let's hop back a bit and consider the rationale behind this seemingly un-beer-lievable correlation. Not to mention that it gives us the perfect excuse to pepper this introduction with a few hops-able puns. Just remember, in the world of statistics, it's all about the brew-tiful dance between variables, wort-h exploring to uncover sparkling relationships.
Adding a touch of levity in the sometimes dry world of research, our study aims to shed light on the potential link between two seemingly disparate elements – the thriving beer industry and the defense giant's stock performance. After all, who wouldn't want to know if there's a lager-than-life impact brewing beneath the surface of the stock market? And if we can deliver these insights with a side of humor, well, that's just the yeast we can do.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

Our exploration of the nexus between the number of breweries in the United States and Lockheed Martin's stock price extends our understanding of the interconnections within the stock market. While this may seem like a somewhat unorthodox relationship to investigate, it is important to recognize that the stock market, much like a good beer, contains layers of complexity that warrant thorough examination. As such, our study is in line with recent research that has sought to uncover unexpected correlations within financial markets. In "Hoponomics: Exploring Unconventional Indicators in Financial Markets," Smith et al. delve into the potential impact of beer consumption trends on stock performance, providing a contextual backdrop for our investigations.

It is worth noting that our findings are not just a flight of fancy. Indeed, our analysis builds upon theoretical insights from economic literature, such as Doe's "Brews and Bulls: Unearthing Unusual Economic Indicators," where the author discusses the relevance of unconventional indicators in informing stock market behavior. In a similar vein, Jones's work, "Malt Metrics: Brewing Up New Measures for Stock Predictions," underscores the importance of considering non-traditional factors in understanding stock price movements. These serious, scholarly works lay the foundation for our own frothy foray into the relationship between breweries and stock prices.

Now, as we move into less traditional scholarly sources, we must acknowledge the influence of non-fiction books that have contributed to our understanding of the larger economic landscape. The works of Michael Lewis, particularly "Flash Boys: A Wall Street Revolt," have revolutionized our perception of financial markets. While this book is not directly related to breweries or defense stocks, it is important to recognize the broader lens through which we view market dynamics. Furthermore, "Freakonomics" by Steven D. Levitt and Stephen J. Dubner challenges conventional wisdom and serves as a reminder that seemingly unrelated factors may have surprising effects on economic outcomes.

Transitioning into the realm of fiction, we cannot overlook the potential insights that literature provides. Works such as "Brews and Bullets" by Jane Investor draw attention to the intertwining of seemingly disparate elements, reflecting the spirit of our own exploratory study. Evidently, the influence of fictional narratives on our understanding of market interconnections is substantial, a sentiment echoed in "Machiavelli on Wall Street" by Tim Phillips, where the author elucidates on the versatile nature of economic insight, even in fictional constructs.

Lastly, our review would be remiss without acknowledging the role of social media in shaping contemporary discourse. A tweet by @AleAnalyst remarks, "The correlation between breweries and defense stocks is ale-arming, yet fascinating. #BrewsandBombs". While Twitter may not be the traditional platform for economic discourse, it is testament to the pervasive nature of this line of inquiry in contemporary discussions.

As we progress through our literature review, we recognize the diverse sources that have informed our understanding of the relationship between breweries and Lockheed Martin's stock price, from scholarly publications to works of fiction and social media commentary. With this contextual backdrop, we are poised to present our own findings that add to the growing corpus of research in this realm. And remember, when it comes to beer and stocks, there's always a stout possibility of uncovering unexpected connections!


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 Lockheed Martin's stock price (LMT). 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 the Stock Market: A Hoppy Relationship Between Brewery Numbers and Lockheed Martin's Stock Price

[[ABSTRACT]]
In this brew-tiful study, we conduct a hoppy-go-lucky exploration of the connection between the number of breweries in the United States and Lockheed Martin's stock price. Leveraging data from the Brewers Association and LSEG Analytics (Refinitiv), we embarked on a frothy journey to answer the age-old question: Do breweries and defense stocks share a sudsy relationship?

Our findings revealed a staggering correlation coefficient of 0.9784960 and a p-value less than 0.01 for the period from 2002 to 2022. This spirited correlation suggests a noteworthy connection between the two variables, implying that as the number of breweries bubbles up, Lockheed Martin's stock price follows suit.

In the spirit of good cheer, our results hint that investors may want to keep an eye on brewery trends as an indicator of how Lockheed Martin's stock may ferment. The data seems to suggest that when it comes to stock performance, it's not just about hops, barley, and malt – there might just be a pint-sized relationship with defense stocks. Our research serves as a reminder that sometimes, in the world of stocks and securities, it's not just about holding the stocks, but also about raising a few to uncover unexpected connections.

Well folks, just remember: whether you're investing in hops or missile drops, there's always something brewing in the stock market!

[[INTRODUCTION]]
With the stock market being as mercurial as the hop content in your favorite craft brew, investors are constantly seeking new insights and indicators to inform their decisions. In the spirit of uncovering unlikely relationships, we set out to explore the correlation between the number of breweries in the United States and the stock price of Lockheed Martin (LMT). Because, really, who doesn't love a good brew-haha in the world of stock analysis?
You see, just like a fine ale, the stock market is a complex and nuanced entity. It's not just about the highs and the lows, but also the subtle flavors that underlie market movements. So, we sought to pour over the data to determine if there was any frothy relationship between the proliferation of breweries and the performance of a stalwart defense stock like Lockheed Martin. After all, there's a hops-itive chance that unexpected connections can lead to lucrative insights.
But before we dive into our findings, let's hop back a bit and consider the rationale behind this seemingly un-beer-lievable correlation. Not to mention that it gives us the perfect excuse to pepper this introduction with a few hops-able puns. Just remember, in the world of statistics, it's all about the brew-tiful dance between variables, wort-h exploring to uncover sparkling relationships.
Adding a touch of levity in the sometimes dry world of research, our study aims to shed light on the potential link between two seemingly disparate elements – the thriving beer industry and the defense giant's stock performance. After all, who wouldn't want to know if there's a lager-than-life impact brewing beneath the surface of the stock market? And if we can deliver these insights with a side of humor, well, that's just the yeast we can do.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

Our methodology involved a brew-tiful blend of quantitative analysis and frothy statistical techniques to investigate the relationship between the number of breweries in the United States and the stock price of Lockheed Martin (LMT). We acquired data from the Brewers Association, providing comprehensive information on brewery counts, and LSEG Analytics (Refinitiv), offering detailed stock price data for Lockheed Martin from 2002 to 2022. With a touch of statistical sorcery and a hint of whimsy, we embarked on this hoppy endeavor to ferment refreshing insights.

To concoct this hop-forward analysis, we utilized a statistical technique known as regression analysis to froth up the relationship between the number of breweries and Lockheed Martin's stock price. This approach allowed us to pour over the historical data and capture the interplay between these variables, teasing out any underlying patterns that might be bubbling beneath the surface. With a wink and a nod to the world of finance, we utilized a series of outlandish mathematical equations to distill the essence of this sudsy relationship, all while embracing the occasional dad joke to keep things lighthearted.

Our analysis considered the annual count of breweries in the United States as the independent variable, while Lockheed Martin's stock price served as the dependent variable. Through a potent combination of data wrangling and statistical wizardry, we sought to unravel any potential correlations between these seemingly disparate elements. It was all about finding the hoppy balance between scientific rigor and a touch of whimsy, just like crafting the perfect pint of ale.

In the spirit of celebrating unexpected connections, our methodology also included the incorporation of macroeconomic indicators such as consumer spending, employment levels, and interest rates. Much like blending different hops to achieve the perfect brew, we incorporated these macroeconomic variables as covariates in our analysis, recognizing that the stock market is a complex ecosystem influenced by myriad factors – and a good pun never hurts when discussing covariates. After all, it's not just about the hops and barley – it's about understanding the entire recipe that flavors stock market movements.

We poured over the data, conducting rigorous sensitivity analyses and diagnostic tests to ensure that our findings were not just a fluke, but a genuine reflection of the relationship between brewery counts and Lockheed Martin's stock price. With a dash of skepticism and a heap of statistical scrutiny, we sifted through the data to uncover any potential outliers or anomalies, all while keeping our spirits high and our pun game strong. Because really, what's a statistical analysis without a few laughs along the way?

Finally, we employed time series analysis to capture any temporal dynamics in the relationship, recognizing that market trends and brewery dynamics evolve over time. This approach allowed us to discern whether the correlation between brewery numbers and Lockheed Martin's stock price was a fleeting fizz or a durable, long-lasting bond. In the world of statistical analysis, timing is everything – and a well-timed pun never hurts, either.

In summary, our methodology was a blend of rigorous statistical analyses, a sprinkling of economic nuance, and a generous serving of humor to breathe life into our exploration of this unconventional, yet surprisingly compelling relationship between breweries and the stock market. After all, when it comes to statistics and stock analysis, a little humor can go a long way – just like a well-crafted ale. Cheers to the methods that brought a touch of whimsy to our research!


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 Lockheed Martin's stock price (LMT). 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.9784960, r-squared of 0.9574544, 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 the Stock Market: A Hoppy Relationship Between Brewery Numbers and Lockheed Martin's Stock Price

[[ABSTRACT]]
In this brew-tiful study, we conduct a hoppy-go-lucky exploration of the connection between the number of breweries in the United States and Lockheed Martin's stock price. Leveraging data from the Brewers Association and LSEG Analytics (Refinitiv), we embarked on a frothy journey to answer the age-old question: Do breweries and defense stocks share a sudsy relationship?

Our findings revealed a staggering correlation coefficient of 0.9784960 and a p-value less than 0.01 for the period from 2002 to 2022. This spirited correlation suggests a noteworthy connection between the two variables, implying that as the number of breweries bubbles up, Lockheed Martin's stock price follows suit.

In the spirit of good cheer, our results hint that investors may want to keep an eye on brewery trends as an indicator of how Lockheed Martin's stock may ferment. The data seems to suggest that when it comes to stock performance, it's not just about hops, barley, and malt – there might just be a pint-sized relationship with defense stocks. Our research serves as a reminder that sometimes, in the world of stocks and securities, it's not just about holding the stocks, but also about raising a few to uncover unexpected connections.

Well folks, just remember: whether you're investing in hops or missile drops, there's always something brewing in the stock market!

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
With the stock market being as mercurial as the hop content in your favorite craft brew, investors are constantly seeking new insights and indicators to inform their decisions. In the spirit of uncovering unlikely relationships, we set out to explore the correlation between the number of breweries in the United States and the stock price of Lockheed Martin (LMT). Because, really, who doesn't love a good brew-haha in the world of stock analysis?
You see, just like a fine ale, the stock market is a complex and nuanced entity. It's not just about the highs and the lows, but also the subtle flavors that underlie market movements. So, we sought to pour over the data to determine if there was any frothy relationship between the proliferation of breweries and the performance of a stalwart defense stock like Lockheed Martin. After all, there's a hops-itive chance that unexpected connections can lead to lucrative insights.
But before we dive into our findings, let's hop back a bit and consider the rationale behind this seemingly un-beer-lievable correlation. Not to mention that it gives us the perfect excuse to pepper this introduction with a few hops-able puns. Just remember, in the world of statistics, it's all about the brew-tiful dance between variables, wort-h exploring to uncover sparkling relationships.
Adding a touch of levity in the sometimes dry world of research, our study aims to shed light on the potential link between two seemingly disparate elements – the thriving beer industry and the defense giant's stock performance. After all, who wouldn't want to know if there's a lager-than-life impact brewing beneath the surface of the stock market? And if we can deliver these insights with a side of humor, well, that's just the yeast we can do.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The data analysis yielded a striking correlation coefficient of 0.9784960 between the number of breweries in the United States and Lockheed Martin's stock price, demonstrating a remarkably hoppy relationship between the two variables. It seems that when it comes to stock market performance, the more breweries there are, the hoppier the stock prices.

If you're wondering how we feel about these results, we're feeling pretty hop-timistic about the implications. It's clear that the stock market and breweries are not as unrelated as they may ale-pear. It's a reminder that in the world of statistics, there's always the potential for a brewtiful surprise!

The r-squared value of 0.9574544 further illuminates the substantial explanatory power of the number of breweries on Lockheed Martin's stock price. It's like the perfect blend of hops, malt, and barley, resulting in a robust and flavorful relationship between two seemingly unrelated factors.

And as for the p-value being less than 0.01, well, we can't help but toast to that level of statistical significance. This finding leaves little room for doubt: the connection between breweries and defense stocks is no froth – it's the real deal.

Now, for the figure (Fig. 1) – let's just say it's a thing of beauty. It visually encapsulates the resolute correlation we uncovered, demonstrating how the number of breweries and Lockheed Martin's stock price move in harmony, much like the perfect pairing of beer and good company.

In conclusion, our research has uncorked a compelling relationship between the number of breweries and Lockheed Martin's stock price. These findings have the potential to hop-ify investors' insights and add a refreshing twist to stock market analysis. So, here's to hoping that investors can tap into this hoppy relationship for a flavor of success in their stock portfolios!


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 Lockheed Martin's stock price (LMT). 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 the Stock Market: A Hoppy Relationship Between Brewery Numbers and Lockheed Martin's Stock Price

[[ABSTRACT]]
In this brew-tiful study, we conduct a hoppy-go-lucky exploration of the connection between the number of breweries in the United States and Lockheed Martin's stock price. Leveraging data from the Brewers Association and LSEG Analytics (Refinitiv), we embarked on a frothy journey to answer the age-old question: Do breweries and defense stocks share a sudsy relationship?

Our findings revealed a staggering correlation coefficient of 0.9784960 and a p-value less than 0.01 for the period from 2002 to 2022. This spirited correlation suggests a noteworthy connection between the two variables, implying that as the number of breweries bubbles up, Lockheed Martin's stock price follows suit.

In the spirit of good cheer, our results hint that investors may want to keep an eye on brewery trends as an indicator of how Lockheed Martin's stock may ferment. The data seems to suggest that when it comes to stock performance, it's not just about hops, barley, and malt – there might just be a pint-sized relationship with defense stocks. Our research serves as a reminder that sometimes, in the world of stocks and securities, it's not just about holding the stocks, but also about raising a few to uncover unexpected connections.

Well folks, just remember: whether you're investing in hops or missile drops, there's always something brewing in the stock market!

[[LITERATURE REVIEW]]
Our exploration of the nexus between the number of breweries in the United States and Lockheed Martin's stock price extends our understanding of the interconnections within the stock market. While this may seem like a somewhat unorthodox relationship to investigate, it is important to recognize that the stock market, much like a good beer, contains layers of complexity that warrant thorough examination. As such, our study is in line with recent research that has sought to uncover unexpected correlations within financial markets. In "Hoponomics: Exploring Unconventional Indicators in Financial Markets," Smith et al. delve into the potential impact of beer consumption trends on stock performance, providing a contextual backdrop for our investigations.
It is worth noting that our findings are not just a flight of fancy. Indeed, our analysis builds upon theoretical insights from economic literature, such as Doe's "Brews and Bulls: Unearthing Unusual Economic Indicators," where the author discusses the relevance of unconventional indicators in informing stock market behavior. In a similar vein, Jones's work, "Malt Metrics: Brewing Up New Measures for Stock Predictions," underscores the importance of considering non-traditional factors in understanding stock price movements. These serious, scholarly works lay the foundation for our own frothy foray into the relationship between breweries and stock prices.
Now, as we move into less traditional scholarly sources, we must acknowledge the influence of non-fiction books that have contributed to our understanding of the larger economic landscape. The works of Michael Lewis, particularly "Flash Boys: A Wall Street Revolt," have revolutionized our perception of financial markets. While this book is not directly related to breweries or defense stocks, it is important to recognize the broader lens through which we view market dynamics. Furthermore, "Freakonomics" by Steven D. Levitt and Stephen J. Dubner challenges conventional wisdom and serves as a reminder that seemingly unrelated factors may have surprising effects on economic outcomes.
Transitioning into the realm of fiction, we cannot overlook the potential insights that literature provides. Works such as "Brews and Bullets" by Jane Investor draw attention to the intertwining of seemingly disparate elements, reflecting the spirit of our own exploratory study. Evidently, the influence of fictional narratives on our understanding of market interconnections is substantial, a sentiment echoed in "Machiavelli on Wall Street" by Tim Phillips, where the author elucidates on the versatile nature of economic insight, even in fictional constructs.
Lastly, our review would be remiss without acknowledging the role of social media in shaping contemporary discourse. A tweet by @AleAnalyst remarks, "The correlation between breweries and defense stocks is ale-arming, yet fascinating. #BrewsandBombs". While Twitter may not be the traditional platform for economic discourse, it is testament to the pervasive nature of this line of inquiry in contemporary discussions.
As we progress through our literature review, we recognize the diverse sources that have informed our understanding of the relationship between breweries and Lockheed Martin's stock price, from scholarly publications to works of fiction and social media commentary. With this contextual backdrop, we are poised to present our own findings that add to the growing corpus of research in this realm. And remember, when it comes to beer and stocks, there's always a stout possibility of uncovering unexpected connections!

[[RESULTS]]
The data analysis yielded a striking correlation coefficient of 0.9784960 between the number of breweries in the United States and Lockheed Martin's stock price, demonstrating a remarkably hoppy relationship between the two variables. It seems that when it comes to stock market performance, the more breweries there are, the hoppier the stock prices.
If you're wondering how we feel about these results, we're feeling pretty hop-timistic about the implications. It's clear that the stock market and breweries are not as unrelated as they may ale-pear. It's a reminder that in the world of statistics, there's always the potential for a brewtiful surprise!
The r-squared value of 0.9574544 further illuminates the substantial explanatory power of the number of breweries on Lockheed Martin's stock price. It's like the perfect blend of hops, malt, and barley, resulting in a robust and flavorful relationship between two seemingly unrelated factors.
And as for the p-value being less than 0.01, well, we can't help but toast to that level of statistical significance. This finding leaves little room for doubt: the connection between breweries and defense stocks is no froth – it's the real deal.
Now, for the figure (Fig. 1) – let's just say it's a thing of beauty. It visually encapsulates the resolute correlation we uncovered, demonstrating how the number of breweries and Lockheed Martin's stock price move in harmony, much like the perfect pairing of beer and good company.
In conclusion, our research has uncorked a compelling relationship between the number of breweries and Lockheed Martin's stock price. These findings have the potential to hop-ify investors' insights and add a refreshing twist to stock market analysis. So, here's to hoping that investors can tap into this hoppy relationship for a flavor of success in their stock portfolios!

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

Our study has bubbled up an interesting brew of findings, shedding light on the surprising relationship between the number of breweries in the United States and Lockheed Martin's stock price. It's fascinating to see how these seemingly unrelated variables have come together to form a hoppy connection, and our results have poured cold beer – I mean, water – on any skepticism.

Our findings support and amplify the prior research that dared to explore the unconventional links within financial markets. Like a good IPA, our study complements Smith et al.'s "Hoponomics," further solidifying the notion that beer-related indicators could hold some frothy weight in stock performance. It seems that there's more to beer trends than meets the eye – or rather, the taste buds.

Doe's work on "Brews and Bulls" and Jones's "Malt Metrics" have clearly set the stage for our investigation, emphasizing the importance of unconventional factors in shaping stock prices. It's like they were saying, "Don't just focus on the hops; remember the stocks too!" And boy, were they right on the money – or should I say, stock price?

Speaking of being right, let's not overlook the influence of non-fiction books and even fictional narratives on our understanding of market dynamics. Sometimes real-life market relationships can be just as unexpected and captivating as a well-crafted novel. Who would've thought that "Brews and Bullets" by Jane Investor could hold a foamy grain of truth, albeit in a fictional realm?

Now, let's not forget the tweet by @AleAnalyst – it seems like social media plays a larger role in shaping economic discourse than one might ale-low. Perhaps it's high time we embrace the potential insights lurking beneath the frothy surface of social media chatter. After all, a good discussion can be as refreshing as a perfectly poured pint.

In the end, our findings have proven to be the perfect match for the prior research, like a well-paired beer and cheese combination. Our results have certainly stirred up a heady mix of excitement and insight, showing that even the most unusual variables in the stock market can have a tangible impact. It's both a surprising and fascinating endeavor, much like stumbling upon an unexpected brewery in the midst of a desert – you never know what hop-pens next!


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 Lockheed Martin's stock price (LMT). 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 the Stock Market: A Hoppy Relationship Between Brewery Numbers and Lockheed Martin's Stock Price

[[ABSTRACT]]
In this brew-tiful study, we conduct a hoppy-go-lucky exploration of the connection between the number of breweries in the United States and Lockheed Martin's stock price. Leveraging data from the Brewers Association and LSEG Analytics (Refinitiv), we embarked on a frothy journey to answer the age-old question: Do breweries and defense stocks share a sudsy relationship?

Our findings revealed a staggering correlation coefficient of 0.9784960 and a p-value less than 0.01 for the period from 2002 to 2022. This spirited correlation suggests a noteworthy connection between the two variables, implying that as the number of breweries bubbles up, Lockheed Martin's stock price follows suit.

In the spirit of good cheer, our results hint that investors may want to keep an eye on brewery trends as an indicator of how Lockheed Martin's stock may ferment. The data seems to suggest that when it comes to stock performance, it's not just about hops, barley, and malt – there might just be a pint-sized relationship with defense stocks. Our research serves as a reminder that sometimes, in the world of stocks and securities, it's not just about holding the stocks, but also about raising a few to uncover unexpected connections.

Well folks, just remember: whether you're investing in hops or missile drops, there's always something brewing in the stock market!

[[INTRDUCTION]]
With the stock market being as mercurial as the hop content in your favorite craft brew, investors are constantly seeking new insights and indicators to inform their decisions. In the spirit of uncovering unlikely relationships, we set out to explore the correlation between the number of breweries in the United States and the stock price of Lockheed Martin (LMT). Because, really, who doesn't love a good brew-haha in the world of stock analysis?
You see, just like a fine ale, the stock market is a complex and nuanced entity. It's not just about the highs and the lows, but also the subtle flavors that underlie market movements. So, we sought to pour over the data to determine if there was any frothy relationship between the proliferation of breweries and the performance of a stalwart defense stock like Lockheed Martin. After all, there's a hops-itive chance that unexpected connections can lead to lucrative insights.
But before we dive into our findings, let's hop back a bit and consider the rationale behind this seemingly un-beer-lievable correlation. Not to mention that it gives us the perfect excuse to pepper this introduction with a few hops-able puns. Just remember, in the world of statistics, it's all about the brew-tiful dance between variables, wort-h exploring to uncover sparkling relationships.
Adding a touch of levity in the sometimes dry world of research, our study aims to shed light on the potential link between two seemingly disparate elements – the thriving beer industry and the defense giant's stock performance. After all, who wouldn't want to know if there's a lager-than-life impact brewing beneath the surface of the stock market? And if we can deliver these insights with a side of humor, well, that's just the yeast we can do.

[[RESULTS]]
The data analysis yielded a striking correlation coefficient of 0.9784960 between the number of breweries in the United States and Lockheed Martin's stock price, demonstrating a remarkably hoppy relationship between the two variables. It seems that when it comes to stock market performance, the more breweries there are, the hoppier the stock prices.
If you're wondering how we feel about these results, we're feeling pretty hop-timistic about the implications. It's clear that the stock market and breweries are not as unrelated as they may ale-pear. It's a reminder that in the world of statistics, there's always the potential for a brewtiful surprise!
The r-squared value of 0.9574544 further illuminates the substantial explanatory power of the number of breweries on Lockheed Martin's stock price. It's like the perfect blend of hops, malt, and barley, resulting in a robust and flavorful relationship between two seemingly unrelated factors.
And as for the p-value being less than 0.01, well, we can't help but toast to that level of statistical significance. This finding leaves little room for doubt: the connection between breweries and defense stocks is no froth – it's the real deal.
Now, for the figure (Fig. 1) – let's just say it's a thing of beauty. It visually encapsulates the resolute correlation we uncovered, demonstrating how the number of breweries and Lockheed Martin's stock price move in harmony, much like the perfect pairing of beer and good company.
In conclusion, our research has uncorked a compelling relationship between the number of breweries and Lockheed Martin's stock price. These findings have the potential to hop-ify investors' insights and add a refreshing twist to stock market analysis. So, here's to hoping that investors can tap into this hoppy relationship for a flavor of success in their stock portfolios!

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our findings have effervesced with tantalizing implications, demonstrating an unequivocal connection between the number of breweries in the United States and Lockheed Martin's stock price. The hoppy relationship revealed in our research illuminates the potential for savvy investors to incorporate brewery trends into their stock analyses. It's like finding the perfect balance between a pale ale and a stout – unexpected, but undeniably satisfying.

As we close this chapter on our hoppy-go-lucky exploration, we can't resist sharing a relevant dad joke: Why did the statistician go to the brewery? To find the mean of the beer distribution! There's always room for a statistical punchline, even in the world of stock market analysis.

With a correlation coefficient of 0.9784960 and an r-squared value of 0.9574544, our results offer a brew-tiful reminder that uncovering unexpected relationships in data is akin to discovering the hidden notes in a complex craft beer. As we raise a glass to these findings, it's clear that our study has uncorked a blend of statistical validity and lighthearted revelry.

And with that, we assert that no further research is needed in this area. It seems we've brewed up a potent concoction of statistical insight and market merriment, providing investors with a frothy new avenue to stir into their analyses. After all, who would have thought that the world of breweries and defense stocks could share such a sudsy relationship? As the old saying goes, in vino veritas, but in statistics, there's truth in the brew-tiful dance between unexpected variables. Cheers to a hoppy future in stock market analysis!


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 the Stock Market: A Hoppy Relationship Between Brewery Numbers and Lockheed Martin's 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 the Stock Market: A Hoppy Relationship Between Brewery Numbers and Lockheed Martin's Stock Price. Respond only with the name of a fictional organization.

ChatGPT:

The Society for Fermentation Economics and Market Dynamics


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 the Stock Market: A Hoppy Relationship Between Brewery Numbers and Lockheed Martin's Stock Price with an abstract of In this brew-tiful study, we conduct a hoppy-go-lucky exploration of the connection between the number of breweries in the United States and Lockheed Martin's stock price. Leveraging data from the Brewers Association and LSEG Analytics (Refinitiv), we embarked on a frothy journey to answer the age-old question: Do breweries and defense stocks share a sudsy relationship?
Our findings revealed a staggering correlation coefficient of 0.9784960 and a p-value less than 0.01 for the period from 2002 to 2022. This spirited correlation suggests a noteworthy connection between the two variables, implying that as the number of breweries bubbles up, Lockheed Martin's stock price follows suit.
In the spirit of good cheer, our results hint that investors may want to keep an eye on brewery trends as an indicator of how Lockheed Martin's stock may ferment. The data seems to suggest that when it comes to stock performance, it's not just about hops, barley, and malt – there might just be a pint-sized relationship with defense stocks. Our research serves as a reminder that sometimes, in the world of stocks and securities, it's not just about holding the stocks, but also about raising a few to uncover unexpected connections.
Well folks, just remember: whether you're investing in hops or missile drops, there's always something brewing in the stock market!

ChatGPT:

Lockheed Martin, brewery numbers, stock price correlation, defense stocks, investment indicators, Brewers Association data, LSEG Analytics, stock market trends, financial research, stock market performance, investment strategies, brewery industry, defense industry, 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

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

See what else correlates with Lockheed Martin's stock price (LMT)

Correlation r = 0.9784960 (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.9574544 (Coefficient of determination)
This means 95.7% of the change in the one variable (i.e., Lockheed Martin's stock price (LMT)) 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 1.7E-14. 0.0000000000000173579419377566
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.98 in 1.7E-12% of random cases. Said differently, if you correlated 57,610,516,476,312 random variables You don't actually need 57 trillion 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.95, 0.99 ] 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
Lockheed Martin's stock price (LMT) (Stock price)46.1558.0751.455.463.391.6105.7784.3475.8770.282.1293.79147.05192.1214251.2322258.36392.86354.98354.68




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([46.15,58.07,51.4,55.4,63.3,91.6,105.77,84.34,75.87,70.2,82.12,93.79,147.05,192.1,214,251.2,322,258.36,392.86,354.98,354.68,])
array_1_name = "The number of Breweries in the United States"
array_2_name = "Lockheed Martin's stock price (LMT)"

# 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 shining a light on this correlation!


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

CC BY 4.0