Download png, svg
AI explanation
As the number of breweries in the United States increased, so did the demand for kegs to store and transport all that craft beer. This unexpected surge in keg demand put pressure on metal and component suppliers, including those used by TransDigm Group. With their products suddenly being sought after for reasons hoppier than usual, TransDigm saw a frothy rise in their stock price. It seems like the business of beer and the business of aerospace and defense have more in common than we thought - they both know a thing or two about reaching new heights!Model: dalle-3
Prompt: Create an image of a vibrant cityscape crowded with diverse breweries, each building exuding character and charm with unique architecture. Show a continuous line of people eagerly waiting outside each brewery, animatedly chatting with one another while eagerly anticipating the experience inside. Meanwhile, in the distance, portray the city's skyline encompassing various aircraft circling above, symbolizing the surge in airline business, with a digital ticker tape prominently displaying the soaring stock price of TransDigm Group. The scene should be bustling, with an atmosphere filled with excitement and anticipation. 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 TransDigm Group's stock price (TDG). 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: Psychedelic Cutsy art illustration Psychedelic 3D Pixar Style A Discovery magazine cover image
ChatGPT: A Discovery 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 TransDigm Group's stock price (TDG), in the following situation: Because as the number of breweries increased, so did the demand for pretzels. And since a lot of people love to enjoy a cold one with a side of pretzels, TransDigm Group, being the largest supplier of aircraft components, saw a surge in demand for their products as airlines rushed to stock up on pretzels for all the beer-loving passengers. This increased demand caused their stock price to soar. Cheers to that!. Keep the description simple.
ChatGPT: In a bustling city, numerous breweries dot the landscape, each one with a line of people waiting to savor their latest craft creations. Meanwhile, at the airport, TransDigm Group's stock price steadily rises on the ticker tape, reflecting the surge in demand for aircraft components as airlines hurriedly stock up on pretzels to cater to the growing number of beer-loving passengers.
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 Discovery magazine cover image ] and depicting this scene: In a bustling city, numerous breweries dot the landscape, each one with a line of people waiting to savor their latest craft creations. Meanwhile, at the airport, TransDigm Group's stock price steadily rises on the ticker tape, reflecting the surge in demand for aircraft components as airlines hurriedly stock up on pretzels to cater to the growing number of beer-loving passengers. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Create an image of a vibrant cityscape crowded with diverse breweries, each building exuding character and charm with unique architecture. Show a continuous line of people eagerly waiting outside each brewery, animatedly chatting with one another while eagerly anticipating the experience inside. Meanwhile, in the distance, portray the city's skyline encompassing various aircraft circling above, symbolizing the surge in airline business, with a digital ticker tape prominently displaying the soaring stock price of TransDigm Group. The scene should be bustling, with an atmosphere filled with excitement and anticipation.
*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.
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 TransDigm Group's stock price (TDG) to increase.
AI academic paper
Brewery Boom: Breweries and TransDigm's Stock Prices The Fermentation Finance Quarterly Jan 2024 Reminder: This paper is AI-generated. Not real! |
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 TransDigm Group's stock price (TDG). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.
Make the title an alliteration.
Your research team used data from Brewers Association and LSEG Analytics (Refinitiv) to assess this nagging question. You found a correlation coefficient of 0.9431363 and p < 0.01 for 2007 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]]
Brewery Boom: Breweries and TransDigm's Stock Prices
[[ABSTRACT]]
This paper quenches the thirst for understanding the curious connection between the number of breweries in the United States and the stock prices of TransDigm Group (TDG). We brewed up a potent potion of data from the Brewers Association and LSEG Analytics (Refinitiv) to ferment our analysis spanning 2007 to 2022. Our findings yielded a frothy correlation coefficient of 0.9431363 and p < 0.01, revealing a robust link between the proliferation of breweries and the fluctuation of TDG stock prices. This correlation is so clear, it might make you wonder if hops are the new hot stock commodity.
As we malt-tiple regression analysis, we uncovered a significant relationship that hops beyond mere coincidence. Our results suggest that the craft beer renaissance has a noteworthy impact on the financial performance of TransDigm Group. This phenomenon may lead investors to ponder: is the secret ingredient to financial success barley discovered?
In conclusion, our study adds a valuable pint of insight into the economic implications of the brewery boom and its unexpected influence on the stock market. As the old saying goes, "Don't cry over spilled beer – unless it's a stock portfolio dripping with gains!"
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 TransDigm Group's stock price (TDG). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.
Here is the title and abstract of the paper:
[[TITLE]]
Brewery Boom: Breweries and TransDigm's Stock Prices
[[ABSTRACT]]
This paper quenches the thirst for understanding the curious connection between the number of breweries in the United States and the stock prices of TransDigm Group (TDG). We brewed up a potent potion of data from the Brewers Association and LSEG Analytics (Refinitiv) to ferment our analysis spanning 2007 to 2022. Our findings yielded a frothy correlation coefficient of 0.9431363 and p < 0.01, revealing a robust link between the proliferation of breweries and the fluctuation of TDG stock prices. This correlation is so clear, it might make you wonder if hops are the new hot stock commodity.
As we malt-tiple regression analysis, we uncovered a significant relationship that hops beyond mere coincidence. Our results suggest that the craft beer renaissance has a noteworthy impact on the financial performance of TransDigm Group. This phenomenon may lead investors to ponder: is the secret ingredient to financial success barley discovered?
In conclusion, our study adds a valuable pint of insight into the economic implications of the brewery boom and its unexpected influence on the stock market. As the old saying goes, "Don't cry over spilled beer – unless it's a stock portfolio dripping with gains!"
-------
Your response should start like this:
[[INTRODUCTION]]
ChatGPT:
[[INTRODUCTION]]
The intersection of craft beer and corporate finance may seem like an unusual pairing, but our research aims to shed light on the curious relationship between the number of breweries in the United States and the stock prices of TransDigm Group (TDG). Much like a well-crafted IPA, our investigation delves into the complex and multifaceted flavors of the market to discern whether there is a tangible connection or if it's all just frothy speculation.
Let's hop right into the heart of the matter. Did you hear about the brewery that opened next to a bakery? It's making dough! Speaking of dough, the financial implications of the burgeoning brewery scene in the United States have caught the eye of many investors and analysts. With craft beer's popularity fizzing over in recent years, the question naturally arises: could there be a link between the rise of breweries and the performance of a major player in the aerospace and defense industry, such as TransDigm Group?
Our investigation aims to pour over this question by fermenting a rich concoction of data sourced from the Brewers Association and LSEG Analytics (Refinitiv). Through careful analysis spanning the years 2007 to 2022, we aim to decipher whether the beer business is leaving a noteworthy taste on the market trends of TransDigm Group. As we embark on this journey, we can't help but raise a glass to the unexpected connections we may uncover – after all, it's not every day that the stock market and the craft beer scene collide in a statistical study.
In the spirit of this unconventional investigation, here's a quip for you: What do you call a bear with no teeth? A gummy bear – and perhaps our study will uncover some surprising "gummy" findings when it comes to the relationship between breweries and stock prices. As we proceed with our analysis, we raise a glass to the unexpected, the unexplored, and the sheer delight in uncovering correlations that may leave us saying, "Ale's well that ends well!"
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 TransDigm Group's stock price (TDG). 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 devolve ever further, and mention something completely ridiculous, like you conducted literature review by reading the backs of shampoo bottles.
Here is the title and abstract of the paper:
[[TITLE]]
Brewery Boom: Breweries and TransDigm's Stock Prices
[[ABSTRACT]]
This paper quenches the thirst for understanding the curious connection between the number of breweries in the United States and the stock prices of TransDigm Group (TDG). We brewed up a potent potion of data from the Brewers Association and LSEG Analytics (Refinitiv) to ferment our analysis spanning 2007 to 2022. Our findings yielded a frothy correlation coefficient of 0.9431363 and p < 0.01, revealing a robust link between the proliferation of breweries and the fluctuation of TDG stock prices. This correlation is so clear, it might make you wonder if hops are the new hot stock commodity.
As we malt-tiple regression analysis, we uncovered a significant relationship that hops beyond mere coincidence. Our results suggest that the craft beer renaissance has a noteworthy impact on the financial performance of TransDigm Group. This phenomenon may lead investors to ponder: is the secret ingredient to financial success barley discovered?
In conclusion, our study adds a valuable pint of insight into the economic implications of the brewery boom and its unexpected influence on the stock market. As the old saying goes, "Don't cry over spilled beer – unless it's a stock portfolio dripping with gains!"
-------
And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
The intersection of craft beer and corporate finance may seem like an unusual pairing, but our research aims to shed light on the curious relationship between the number of breweries in the United States and the stock prices of TransDigm Group (TDG). Much like a well-crafted IPA, our investigation delves into the complex and multifaceted flavors of the market to discern whether there is a tangible connection or if it's all just frothy speculation.
Let's hop right into the heart of the matter. Did you hear about the brewery that opened next to a bakery? It's making dough! Speaking of dough, the financial implications of the burgeoning brewery scene in the United States have caught the eye of many investors and analysts. With craft beer's popularity fizzing over in recent years, the question naturally arises: could there be a link between the rise of breweries and the performance of a major player in the aerospace and defense industry, such as TransDigm Group?
Our investigation aims to pour over this question by fermenting a rich concoction of data sourced from the Brewers Association and LSEG Analytics (Refinitiv). Through careful analysis spanning the years 2007 to 2022, we aim to decipher whether the beer business is leaving a noteworthy taste on the market trends of TransDigm Group. As we embark on this journey, we can't help but raise a glass to the unexpected connections we may uncover – after all, it's not every day that the stock market and the craft beer scene collide in a statistical study.
In the spirit of this unconventional investigation, here's a quip for you: What do you call a bear with no teeth? A gummy bear – and perhaps our study will uncover some surprising "gummy" findings when it comes to the relationship between breweries and stock prices. As we proceed with our analysis, we raise a glass to the unexpected, the unexplored, and the sheer delight in uncovering correlations that may leave us saying, "Ale's well that ends well!"
-------
Your response should start like this:
[[LITERATURE REVIEW]]
ChatGPT:
[[LITERATURE REVIEW]]
The number of breweries in the United States has been a topic of interest for researchers and enthusiasts alike. In "Brewery Economics" by Smith, the authors find that the brewery industry has experienced a renaissance in recent years, with a surge in microbreweries and craft beer establishments. This trend has raised questions about its potential economic impact and spillover effects into other industries.
The growing popularity of craft beer has led to a frothy market, stimulating discussions on its correlation with the stock prices of companies like TransDigm Group (TDG). A study by Doe et al. delves into the financial implications of the craft beer boom and its ripples throughout the market. The findings suggest that the rise in breweries may indeed have intriguing connections to stock price movements, prompting further examination and analysis.
Now, let's turn the page and explore some non-fiction books that could offer valuable insights into the intricacies of the brewery industry and its potential influence on stock markets. "The Art of Fermentation" by Sandor Ellix Katz provides a comprehensive exploration of the fermentation process, offering a unique perspective on the craft beer industry's growth and its implications for economic dynamics. Similarly, "Beeronomics: How Beer Explains the World" by Johan Swinnen and Devin Briski delves into the economic principles that underpin the beer industry, hinting at possible linkages with broader financial trends.
In the realm of fiction, "Barrel-Aged Stout and Selling Out: Goose Island, Anheuser-Busch, and How Craft Beer Became Big Business" by Josh Noel unravels the captivating narrative of craft beer's journey into the mainstream market, offering a blend of storytelling and industry analysis. Additionally, "A Brew to a Kill" by Cleo Coyle, while a murder mystery novel, playfully weaves in elements of the craft beer world, adding a frothy twist to the usual crime fiction genre.
Our literature review, however, does not simply foam over with serious studies and literature. In conducting our comprehensive review, we also perused unconventional sources to capture a wide range of perspectives. Surprisingly, the back labels of various shampoo bottles offered intriguing musings on the art of fermentation, though their relevance to stock prices remained rather sudsy.
The fusion of these diverse sources and perspectives sets the stage for our own investigation into the potential interplay between the brewery boom and TransDigm Group's stock prices – a study that endeavors to bring a refreshing blend of statistical rigor and lighthearted discovery to the forefront of economic research. As we embark on this journey, we aim to infuse the sometimes dry world of financial analysis with a touch of humor and whimsy – after all, nothing pairs quite like dad jokes and complex statistical analysis!
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 TransDigm Group's stock price (TDG). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.
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 2007 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]]
Brewery Boom: Breweries and TransDigm's Stock Prices
[[ABSTRACT]]
This paper quenches the thirst for understanding the curious connection between the number of breweries in the United States and the stock prices of TransDigm Group (TDG). We brewed up a potent potion of data from the Brewers Association and LSEG Analytics (Refinitiv) to ferment our analysis spanning 2007 to 2022. Our findings yielded a frothy correlation coefficient of 0.9431363 and p < 0.01, revealing a robust link between the proliferation of breweries and the fluctuation of TDG stock prices. This correlation is so clear, it might make you wonder if hops are the new hot stock commodity.
As we malt-tiple regression analysis, we uncovered a significant relationship that hops beyond mere coincidence. Our results suggest that the craft beer renaissance has a noteworthy impact on the financial performance of TransDigm Group. This phenomenon may lead investors to ponder: is the secret ingredient to financial success barley discovered?
In conclusion, our study adds a valuable pint of insight into the economic implications of the brewery boom and its unexpected influence on the stock market. As the old saying goes, "Don't cry over spilled beer – unless it's a stock portfolio dripping with gains!"
[[INTRODUCTION]]
The intersection of craft beer and corporate finance may seem like an unusual pairing, but our research aims to shed light on the curious relationship between the number of breweries in the United States and the stock prices of TransDigm Group (TDG). Much like a well-crafted IPA, our investigation delves into the complex and multifaceted flavors of the market to discern whether there is a tangible connection or if it's all just frothy speculation.
Let's hop right into the heart of the matter. Did you hear about the brewery that opened next to a bakery? It's making dough! Speaking of dough, the financial implications of the burgeoning brewery scene in the United States have caught the eye of many investors and analysts. With craft beer's popularity fizzing over in recent years, the question naturally arises: could there be a link between the rise of breweries and the performance of a major player in the aerospace and defense industry, such as TransDigm Group?
Our investigation aims to pour over this question by fermenting a rich concoction of data sourced from the Brewers Association and LSEG Analytics (Refinitiv). Through careful analysis spanning the years 2007 to 2022, we aim to decipher whether the beer business is leaving a noteworthy taste on the market trends of TransDigm Group. As we embark on this journey, we can't help but raise a glass to the unexpected connections we may uncover – after all, it's not every day that the stock market and the craft beer scene collide in a statistical study.
In the spirit of this unconventional investigation, here's a quip for you: What do you call a bear with no teeth? A gummy bear – and perhaps our study will uncover some surprising "gummy" findings when it comes to the relationship between breweries and stock prices. As we proceed with our analysis, we raise a glass to the unexpected, the unexplored, and the sheer delight in uncovering correlations that may leave us saying, "Ale's well that ends well!"
-------
Your response should start like this:
[[METHODOLOGY]]
ChatGPT:
[[METHODOLOGY]]
To distill the relationship between the number of breweries in the United States and the stock prices of TransDigm Group (TDG), our research team concocted a methodological brew that marries statistical rigor with a dash of whimsy. We employed a blend of quantitative techniques and data analysis to froth up meaningful insights from 2007 to 2022.
Firstly, we hopped on over to the Brewers Association database, where we tapped into a wealth of information on the proliferation of breweries in the United States. This data allowed us to gauge the growth of the craft beer industry and its impact on the market landscape. Our glee was unBEERable as we navigated through the sea of brews and charts, setting the stage for our analysis with a refreshing pint of data.
As our journey continued, we fermented our methodology with data from LSEG Analytics (Refinitiv), seeking to distill the stock performance of TransDigm Group across the same time period. With a malt-tifaceted approach, we threaded together these datasets to brew a comprehensive understanding of the interplay between craft breweries and TDG stock prices.
Our statistical cauldron bubbled with excitement as we dived into the caBEERnet of regression analysis. We unleashed the power of multiple regression models, teasing out the nuanced relationship between the number of breweries in the U.S. and the stock prices of TDG. This malt-tiple regression approach allowed us to account for potential confounding variables and identify the robustness of our findings.
In the spirit of continuous improvement, we lager-ed on with sensitivity analysis to test the robustness of our results under various conditions. This rigorous approach ensured that our findings remained as robust as a well-aged stout, with minimal susceptibility to outliers or unforeseen fluctuations.
To complement our quantitative analysis, we brewed up some qualitative assessments, leveraging industry reports and expert interviews to add depth to our understanding of the craft beer market's influence on TDG stock prices. This holistic approach enabled us to craft a compelling narrative around the unexpected intersection of these seemingly unrelated domains.
As a fond admirer of both data and dad jokes, here's one to top off our methodology: Why did the barley refuse to sink in the pint glass? Because it had too much ale-gorithm! Our methodology, however, resists floating away from the core objective of uncovering the intriguing relationship between breweries and stock prices with fervent dedication and meticulous attention to detail.
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 TransDigm Group's stock price (TDG). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.
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 2007 to 2022, you found a correlation 0.9431363, r-squared of 0.8895060, 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]]
Brewery Boom: Breweries and TransDigm's Stock Prices
[[ABSTRACT]]
This paper quenches the thirst for understanding the curious connection between the number of breweries in the United States and the stock prices of TransDigm Group (TDG). We brewed up a potent potion of data from the Brewers Association and LSEG Analytics (Refinitiv) to ferment our analysis spanning 2007 to 2022. Our findings yielded a frothy correlation coefficient of 0.9431363 and p < 0.01, revealing a robust link between the proliferation of breweries and the fluctuation of TDG stock prices. This correlation is so clear, it might make you wonder if hops are the new hot stock commodity.
As we malt-tiple regression analysis, we uncovered a significant relationship that hops beyond mere coincidence. Our results suggest that the craft beer renaissance has a noteworthy impact on the financial performance of TransDigm Group. This phenomenon may lead investors to ponder: is the secret ingredient to financial success barley discovered?
In conclusion, our study adds a valuable pint of insight into the economic implications of the brewery boom and its unexpected influence on the stock market. As the old saying goes, "Don't cry over spilled beer – unless it's a stock portfolio dripping with gains!"
-------
And here is the methodology section that led to this result:
[[METHODOLOGY]]
The intersection of craft beer and corporate finance may seem like an unusual pairing, but our research aims to shed light on the curious relationship between the number of breweries in the United States and the stock prices of TransDigm Group (TDG). Much like a well-crafted IPA, our investigation delves into the complex and multifaceted flavors of the market to discern whether there is a tangible connection or if it's all just frothy speculation.
Let's hop right into the heart of the matter. Did you hear about the brewery that opened next to a bakery? It's making dough! Speaking of dough, the financial implications of the burgeoning brewery scene in the United States have caught the eye of many investors and analysts. With craft beer's popularity fizzing over in recent years, the question naturally arises: could there be a link between the rise of breweries and the performance of a major player in the aerospace and defense industry, such as TransDigm Group?
Our investigation aims to pour over this question by fermenting a rich concoction of data sourced from the Brewers Association and LSEG Analytics (Refinitiv). Through careful analysis spanning the years 2007 to 2022, we aim to decipher whether the beer business is leaving a noteworthy taste on the market trends of TransDigm Group. As we embark on this journey, we can't help but raise a glass to the unexpected connections we may uncover – after all, it's not every day that the stock market and the craft beer scene collide in a statistical study.
In the spirit of this unconventional investigation, here's a quip for you: What do you call a bear with no teeth? A gummy bear – and perhaps our study will uncover some surprising "gummy" findings when it comes to the relationship between breweries and stock prices. As we proceed with our analysis, we raise a glass to the unexpected, the unexplored, and the sheer delight in uncovering correlations that may leave us saying, "Ale's well that ends well!"
-------
Your response should start like this:
[[RESULTS]]
ChatGPT:
[[RESULTS]]
The data analysis revealed a strikingly high correlation of 0.9431363 between the number of breweries in the United States and the stock prices of TransDigm Group (TDG). This finding suggests a remarkably strong relationship between these seemingly unrelated factors. It's almost like they're brewing something special in the stock market! This correlation coefficient, coupled with an r-squared of 0.8895060 and p < 0.01, provides compelling evidence of the significant impact of the brewery boom on TDG stock prices.
Fig. 1 displays a scatterplot illustrating the robust correlation between the number of breweries and TransDigm Group's stock prices. The plot clearly indicates a positive trend, as the proliferation of breweries coincides with notable fluctuations in TDG's stock performance. It's almost as if the market is saying, "Let's raise a toast to brewery growth and stock market dynamics – cheers to that!"
The notable correlation uncovered in this analysis suggests that the craft beer renaissance has indeed left its mark on the financial performance of TransDigm Group. It's as if the old adage "Stay true to your craft" holds true not only for brewers but also for corporations navigating market trends. This unexpected connection between craft beer and corporate finance has truly fermented into a substantial finding, revealing that there's more to the stock market than meets the eye – or should we say, the beer mug!
In conclusion, the results of this study underscore the significant impact of the brewery boom on the stock market, particularly with regard to TransDigm Group. The unexpected relationship uncovered in this investigation calls for a reevaluation of the factors influencing stock performance. As we reflect on these findings, let's remember the wise words of Benjamin Franklin: "Beer is proof that God loves us and wants us to be happy" – and it seems that the stock market might just agree!
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 TransDigm Group's stock price (TDG). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.
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]]
Brewery Boom: Breweries and TransDigm's Stock Prices
[[ABSTRACT]]
This paper quenches the thirst for understanding the curious connection between the number of breweries in the United States and the stock prices of TransDigm Group (TDG). We brewed up a potent potion of data from the Brewers Association and LSEG Analytics (Refinitiv) to ferment our analysis spanning 2007 to 2022. Our findings yielded a frothy correlation coefficient of 0.9431363 and p < 0.01, revealing a robust link between the proliferation of breweries and the fluctuation of TDG stock prices. This correlation is so clear, it might make you wonder if hops are the new hot stock commodity.
As we malt-tiple regression analysis, we uncovered a significant relationship that hops beyond mere coincidence. Our results suggest that the craft beer renaissance has a noteworthy impact on the financial performance of TransDigm Group. This phenomenon may lead investors to ponder: is the secret ingredient to financial success barley discovered?
In conclusion, our study adds a valuable pint of insight into the economic implications of the brewery boom and its unexpected influence on the stock market. As the old saying goes, "Don't cry over spilled beer – unless it's a stock portfolio dripping with gains!"
[[LITERATURE REVIEW]]
The number of breweries in the United States has been a topic of interest for researchers and enthusiasts alike. In "Brewery Economics" by Smith, the authors find that the brewery industry has experienced a renaissance in recent years, with a surge in microbreweries and craft beer establishments. This trend has raised questions about its potential economic impact and spillover effects into other industries.
The growing popularity of craft beer has led to a frothy market, stimulating discussions on its correlation with the stock prices of companies like TransDigm Group (TDG). A study by Doe et al. delves into the financial implications of the craft beer boom and its ripples throughout the market. The findings suggest that the rise in breweries may indeed have intriguing connections to stock price movements, prompting further examination and analysis.
Now, let's turn the page and explore some non-fiction books that could offer valuable insights into the intricacies of the brewery industry and its potential influence on stock markets. "The Art of Fermentation" by Sandor Ellix Katz provides a comprehensive exploration of the fermentation process, offering a unique perspective on the craft beer industry's growth and its implications for economic dynamics. Similarly, "Beeronomics: How Beer Explains the World" by Johan Swinnen and Devin Briski delves into the economic principles that underpin the beer industry, hinting at possible linkages with broader financial trends.
In the realm of fiction, "Barrel-Aged Stout and Selling Out: Goose Island, Anheuser-Busch, and How Craft Beer Became Big Business" by Josh Noel unravels the captivating narrative of craft beer's journey into the mainstream market, offering a blend of storytelling and industry analysis. Additionally, "A Brew to a Kill" by Cleo Coyle, while a murder mystery novel, playfully weaves in elements of the craft beer world, adding a frothy twist to the usual crime fiction genre.
Our literature review, however, does not simply foam over with serious studies and literature. In conducting our comprehensive review, we also perused unconventional sources to capture a wide range of perspectives. Surprisingly, the back labels of various shampoo bottles offered intriguing musings on the art of fermentation, though their relevance to stock prices remained rather sudsy.
The fusion of these diverse sources and perspectives sets the stage for our own investigation into the potential interplay between the brewery boom and TransDigm Group's stock prices – a study that endeavors to bring a refreshing blend of statistical rigor and lighthearted discovery to the forefront of economic research. As we embark on this journey, we aim to infuse the sometimes dry world of financial analysis with a touch of humor and whimsy – after all, nothing pairs quite like dad jokes and complex statistical analysis!
[[RESULTS]]
The data analysis revealed a strikingly high correlation of 0.9431363 between the number of breweries in the United States and the stock prices of TransDigm Group (TDG). This finding suggests a remarkably strong relationship between these seemingly unrelated factors. It's almost like they're brewing something special in the stock market! This correlation coefficient, coupled with an r-squared of 0.8895060 and p < 0.01, provides compelling evidence of the significant impact of the brewery boom on TDG stock prices.
Fig. 1 displays a scatterplot illustrating the robust correlation between the number of breweries and TransDigm Group's stock prices. The plot clearly indicates a positive trend, as the proliferation of breweries coincides with notable fluctuations in TDG's stock performance. It's almost as if the market is saying, "Let's raise a toast to brewery growth and stock market dynamics – cheers to that!"
The notable correlation uncovered in this analysis suggests that the craft beer renaissance has indeed left its mark on the financial performance of TransDigm Group. It's as if the old adage "Stay true to your craft" holds true not only for brewers but also for corporations navigating market trends. This unexpected connection between craft beer and corporate finance has truly fermented into a substantial finding, revealing that there's more to the stock market than meets the eye – or should we say, the beer mug!
In conclusion, the results of this study underscore the significant impact of the brewery boom on the stock market, particularly with regard to TransDigm Group. The unexpected relationship uncovered in this investigation calls for a reevaluation of the factors influencing stock performance. As we reflect on these findings, let's remember the wise words of Benjamin Franklin: "Beer is proof that God loves us and wants us to be happy" – and it seems that the stock market might just agree!
-------
Your response should start like this:
[[DISCUSSION]]
ChatGPT:
[[DISCUSSION]]
Our study set out to investigate the peculiar relationship between the burgeoning brewery industry in the United States and the stock prices of TransDigm Group (TDG). We embarked on this frothy journey amidst the bubbling excitement surrounding craft beer and its potential impact on the financial market. Our findings certainly did not fall flat, as we unraveled a substantial correlation between the two seemingly unrelated phenomena.
The robust correlation coefficient of 0.9431363 that we uncovered can certainly brew some thought-provoking discussions. It's almost as if the beer market and the stock market have tapped into a shared rhythm, with each pint of progress leaving a lasting impression on TDG stock prices. One might even say that this correlation is as strong as an IPA's hoppy flavor – it simply cannot be ignored!
Our results align with prior research by Smith and Doe, who hinted at the intriguing connections between the craft beer boom and stock price movements. The frothy market of craft brewing seems to stir up more than just a good time; it also stirs up the interest of investors and market analysts. As we contemplated the implications of our findings, we couldn't help but reflect on the old brewing adage, "There's always room for one more, especially when it comes to examining the economics of beer."
The significant relationship we observed speaks volumes about the interplay between the brewery boom and corporate finance. It's as if the craft beer renaissance has become a key ingredient in the financial recipe, blending seamlessly with the factors that influence stock performance. This unexpected connection certainly adds a refreshing twist to the otherwise serious world of economic analysis. Who would have thought that the delicious aroma of hops could waft its way into the stock market, leaving a hoppy trail of influence on companies like TDG?
Our study suggests that the brewery boom has overflowed into the realm of stock market dynamics, leaving a lasting imprint on the financial landscape. The lighthearted vibes of our literature review, peppered with quirky references like shampoo bottles offering musings on fermentation, served as a reminder that in the world of research, unexpected sources can often yield the most surprising and enlightening revelations.
Ultimately, our findings offer a compelling addition to the academic ferment on the economic implications of the brewery boom. As we toast to the unexpected connections between craft beer and corporate finance, we are reminded that in the grand symphony of market dynamics, even the humble brewery holds its own melodic sway. So, let's clink our glasses to the intriguing interplay between hops and stocks – a timeless pairing that has certainly poured out some compelling insights.
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 TransDigm Group's stock price (TDG). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.
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]]
Brewery Boom: Breweries and TransDigm's Stock Prices
[[ABSTRACT]]
This paper quenches the thirst for understanding the curious connection between the number of breweries in the United States and the stock prices of TransDigm Group (TDG). We brewed up a potent potion of data from the Brewers Association and LSEG Analytics (Refinitiv) to ferment our analysis spanning 2007 to 2022. Our findings yielded a frothy correlation coefficient of 0.9431363 and p < 0.01, revealing a robust link between the proliferation of breweries and the fluctuation of TDG stock prices. This correlation is so clear, it might make you wonder if hops are the new hot stock commodity.
As we malt-tiple regression analysis, we uncovered a significant relationship that hops beyond mere coincidence. Our results suggest that the craft beer renaissance has a noteworthy impact on the financial performance of TransDigm Group. This phenomenon may lead investors to ponder: is the secret ingredient to financial success barley discovered?
In conclusion, our study adds a valuable pint of insight into the economic implications of the brewery boom and its unexpected influence on the stock market. As the old saying goes, "Don't cry over spilled beer – unless it's a stock portfolio dripping with gains!"
[[INTRDUCTION]]
The intersection of craft beer and corporate finance may seem like an unusual pairing, but our research aims to shed light on the curious relationship between the number of breweries in the United States and the stock prices of TransDigm Group (TDG). Much like a well-crafted IPA, our investigation delves into the complex and multifaceted flavors of the market to discern whether there is a tangible connection or if it's all just frothy speculation.
Let's hop right into the heart of the matter. Did you hear about the brewery that opened next to a bakery? It's making dough! Speaking of dough, the financial implications of the burgeoning brewery scene in the United States have caught the eye of many investors and analysts. With craft beer's popularity fizzing over in recent years, the question naturally arises: could there be a link between the rise of breweries and the performance of a major player in the aerospace and defense industry, such as TransDigm Group?
Our investigation aims to pour over this question by fermenting a rich concoction of data sourced from the Brewers Association and LSEG Analytics (Refinitiv). Through careful analysis spanning the years 2007 to 2022, we aim to decipher whether the beer business is leaving a noteworthy taste on the market trends of TransDigm Group. As we embark on this journey, we can't help but raise a glass to the unexpected connections we may uncover – after all, it's not every day that the stock market and the craft beer scene collide in a statistical study.
In the spirit of this unconventional investigation, here's a quip for you: What do you call a bear with no teeth? A gummy bear – and perhaps our study will uncover some surprising "gummy" findings when it comes to the relationship between breweries and stock prices. As we proceed with our analysis, we raise a glass to the unexpected, the unexplored, and the sheer delight in uncovering correlations that may leave us saying, "Ale's well that ends well!"
[[RESULTS]]
The data analysis revealed a strikingly high correlation of 0.9431363 between the number of breweries in the United States and the stock prices of TransDigm Group (TDG). This finding suggests a remarkably strong relationship between these seemingly unrelated factors. It's almost like they're brewing something special in the stock market! This correlation coefficient, coupled with an r-squared of 0.8895060 and p < 0.01, provides compelling evidence of the significant impact of the brewery boom on TDG stock prices.
Fig. 1 displays a scatterplot illustrating the robust correlation between the number of breweries and TransDigm Group's stock prices. The plot clearly indicates a positive trend, as the proliferation of breweries coincides with notable fluctuations in TDG's stock performance. It's almost as if the market is saying, "Let's raise a toast to brewery growth and stock market dynamics – cheers to that!"
The notable correlation uncovered in this analysis suggests that the craft beer renaissance has indeed left its mark on the financial performance of TransDigm Group. It's as if the old adage "Stay true to your craft" holds true not only for brewers but also for corporations navigating market trends. This unexpected connection between craft beer and corporate finance has truly fermented into a substantial finding, revealing that there's more to the stock market than meets the eye – or should we say, the beer mug!
In conclusion, the results of this study underscore the significant impact of the brewery boom on the stock market, particularly with regard to TransDigm Group. The unexpected relationship uncovered in this investigation calls for a reevaluation of the factors influencing stock performance. As we reflect on these findings, let's remember the wise words of Benjamin Franklin: "Beer is proof that God loves us and wants us to be happy" – and it seems that the stock market might just agree!
-------
Your response should start like this:
[[CONCLUSION]]
ChatGPT:
[[CONCLUSION]]
In the spirit of this hops-tastic journey, it's clear that the craft beer phenomena have indeed brewed up a flavorful impact on the stock market dynamics, notably on the performance of TransDigm Group (TDG). It's as if the market is saying, "Don't worry, beer hoppy!" Our findings reveal a striking correlation that adds a refreshing twist to the traditional understanding of market influences.
The potent correlation coefficient of 0.9431363 and p < 0.01 not only raises a glass to the significant relationship between the proliferation of breweries and TDG stock prices but also underscores the unexpected effervescence in market dynamics. It's almost as if the market is exclaiming, "This relationship is ale I've ever wanted!"
Our results provide a compelling toast to the substantial impact of the brewery boom on corporate finance, serving as a malt-iple reminder that market trends can be influenced by the unlikeliest of factors. As we raise a glass to the unforeseen connections between craft beer and stock performance, it's essential to savor the flavorful insights uncovered in our analysis. After all, who knew that hops and stocks could ferment such a fascinating relationship?
In the immortal words of Sir Isaac Hopton: "For every action, there is an equal and opposite ale reaction." With this in mind, it's evident that the beer boom is leaving an effervescent mark on the financial landscape. As we conclude this frothy endeavor, it's safe to say that the brew-ha-ha of brewery proliferation on stock prices is a topic that has been thoroughly tapped, leaving no more brews for additional research.
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 Brewery Boom: Breweries and TransDigm's Stock Prices. Respond only with the name of a fictional academic journal.
ChatGPT:
The Fermentation Finance Quarterly
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 Brewery Boom: Breweries and TransDigm's Stock Prices. Respond only with the name of a fictional organization.
ChatGPT:
The Institute for Hoppy Economic Analysis
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 Brewery Boom: Breweries and TransDigm's Stock Prices with an abstract of This paper quenches the thirst for understanding the curious connection between the number of breweries in the United States and the stock prices of TransDigm Group (TDG). We brewed up a potent potion of data from the Brewers Association and LSEG Analytics (Refinitiv) to ferment our analysis spanning 2007 to 2022. Our findings yielded a frothy correlation coefficient of 0.9431363 and p < 0.01, revealing a robust link between the proliferation of breweries and the fluctuation of TDG stock prices. This correlation is so clear, it might make you wonder if hops are the new hot stock commodity.
As we malt-tiple regression analysis, we uncovered a significant relationship that hops beyond mere coincidence. Our results suggest that the craft beer renaissance has a noteworthy impact on the financial performance of TransDigm Group. This phenomenon may lead investors to ponder: is the secret ingredient to financial success barley discovered?
In conclusion, our study adds a valuable pint of insight into the economic implications of the brewery boom and its unexpected influence on the stock market. As the old saying goes, "Don't cry over spilled beer – unless it's a stock portfolio dripping with gains!
ChatGPT:
brewery, brewer's association, craft beer, beer industry, TransDigm Group, stock prices, correlation analysis, regression analysis, financial performance, brewery boom, economic implications, stock market, United States, LSEG Analytics, Refinitiv, hops, barley
*There is a bunch of Python happening behind the scenes to turn this prompt sequence into a PDF.
Discover a new correlation
View all correlations
View all research papers
Report an error
Data details
The number of Breweries in the United StatesDetailed 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
TransDigm Group's stock price (TDG)
Detailed data title: Opening price of TransDigm Group (TDG) on the first trading day of the year
Source: LSEG Analytics (Refinitiv)
Additional Info: Via Microsoft Excel Stockhistory function
See what else correlates with TransDigm Group's stock price (TDG)
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.8895060 (Coefficient of determination)
This means 89% of the change in the one variable (i.e., TransDigm Group's stock price (TDG)) is predictable based on the change in the other (i.e., The number of Breweries in the United States) over the 16 years from 2007 through 2022.
p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 4.4E-8. 0.0000000443207131613182200000
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.94 in 4.4E-6% of random cases. Said differently, if you correlated 22,562,814 random variables You don't actually need 22 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 15 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 15 because we have two variables measured over a period of 16 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.84, 0.98 ] 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.
2007 | 2008 | 2009 | 2010 | 2011 | 2012 | 2013 | 2014 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | |
The number of Breweries in the United States (Number of breweries) | 1805 | 1896 | 1933 | 2131 | 2525 | 2670 | 3162 | 4014 | 4847 | 5780 | 6767 | 7722 | 8557 | 9092 | 9384 | 9709 |
TransDigm Group's stock price (TDG) (Stock price) | 19.53 | 33.15 | 24.68 | 35.36 | 53.2 | 72.6 | 101.91 | 117.91 | 165.67 | 192.15 | 231.35 | 275.46 | 335.51 | 560.8 | 611.94 | 638.92 |
Why this works
- 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.
- 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. - 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([1805,1896,1933,2131,2525,2670,3162,4014,4847,5780,6767,7722,8557,9092,9384,9709,])
array_2 = np.array([19.53,33.15,24.68,35.36,53.2,72.6,101.91,117.91,165.67,192.15,231.35,275.46,335.51,560.8,611.94,638.92,])
array_1_name = "The number of Breweries in the United States"
array_2_name = "TransDigm Group's stock price (TDG)"
# 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:
- High resolution line chart
The image linked here is a Scalable Vector Graphic (SVG). It is the highest resolution that is possible to achieve. It scales up beyond the size of the observable universe without pixelating. You do not need to email me asking if I have a higher resolution image. I do not. The physical limitations of our universe prevent me from providing you with an image that is any higher resolution than this one.
If you insert it into a PowerPoint presentation (a tool well-known for managing things that are the scale of the universe), you can right-click > "Ungroup" or "Create Shape" and then edit the lines and text directly. You can also change the colors this way.
Alternatively you can use a tool like Inkscape. - High resolution line chart, optimized for mobile
- Alternative high resolution line chart
- Scatterplot
- Portable line chart (png)
- Portable line chart (png), optimized for mobile
- Line chart for only The number of Breweries in the United States
- Line chart for only TransDigm Group's stock price (TDG)
- AI-generated correlation image
- The spurious research paper: Brewery Boom: Breweries and TransDigm's Stock Prices
You're a rater extraordinaire!
Correlation ID: 3412 · Black Variable ID: 34 · Red Variable ID: 1738