about · email me · subscribe
Spurious correlation #1,524 · View random

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is The distance between Jupiter and Earth and the second variable is Anheuser-Busch InBev's stock price (BUD).  The chart goes from 2010 to 2023, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

As the distance between Jupiter and Earth increased, it created a unique gravitational pull on the barley fields, leading to a stellar crop yield. This, in turn, caused a hops shortage, raising the demand for beer produced by Anheuser-Busch InBev. Investors were hopping on board, riding the wave of celestial beer-manship, and sending the stock price to new intergalactic heights. It's a brew-tiful example of how even the biggest planet in the solar system can't eclipse the impact of planetary brewing conditions.

Model: dalle-3
Prompt: Generate an image of a high-tech portrayal of space, focusing on Jupiter as the dominant celestial body in the background, with Earth appearing as a tiny blue speck. Present a futuristic stock market ticker display prominently in the foreground, featuring the stock price of Anheuser-Busch InBev showing a strong upward trend. The scene should convey a sense of awe-inspiring distance and juxtapose the cosmic scale with human economic activity. The depiction should include only scenes, people, and objects, it should not include text or speech bubbles.
This image generation prompt was also generated by AI, using the following sequence:

Model: gpt-3.5-turbo-1106
System prompt: You select one of a few potential scene descriptors that seems to go along with the variables described. You respond only with the scene descriptions provided and say nothing else.
User prompt: Here are two variables: The distance between Jupiter and Earth and Anheuser-Busch InBev's stock price. 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: Oragami Cubism Scalar art High-tech Cute 2D animation
ChatGPT: High-tech

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 distance between Jupiter and Earth and Anheuser-Busch InBev's stock price together. Keep the description simple.
ChatGPT: A vast expanse of space with Jupiter, the largest planet in our solar system, shimmering in the distance. Earth is seen as a small blue dot, with the immense gap conveying the distance between the two. In the foreground, a stock market ticker display shows Anheuser-Busch InBev's stock price charting a solid upward trajectory.

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: [ High-tech ] and depicting this scene: A vast expanse of space with Jupiter, the largest planet in our solar system, shimmering in the distance. Earth is seen as a small blue dot, with the immense gap conveying the distance between the two. In the foreground, a stock market ticker display shows Anheuser-Busch InBev's stock price charting a solid upward trajectory. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Generate an image of a high-tech portrayal of space, focusing on Jupiter as the dominant celestial body in the background, with Earth appearing as a tiny blue speck. Present a futuristic stock market ticker display prominently in the foreground, featuring the stock price of Anheuser-Busch InBev showing a strong upward trend. The scene should convey a sense of awe-inspiring distance and juxtapose the cosmic scale with human economic activity.

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

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

Model: gpt-3.5-turbo-1106 (fine-tuned)
System prompt: You provide humorous responses in the form of plausible sounding explanations for correlations. You assume the correlation is causative for the purpose of the explanation even if it is ridiculous. You do not chat with the user, you only reply with the causal connection explanation and nothing else.
User prompt: Please make up a funny explanation for how increases in The distance between Jupiter and Earth positively influenced Anheuser-Busch InBev's stock price (BUD). Include one good pun.

AI academic paper

(Because p < 0.01)
Brewing Something Celestial: The Interstellar Influence on Beer Stocks

The Galactic Brewers Quarterly

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 silly researcher writing an academic paper.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 distance between Jupiter and Earth and Anheuser-Busch InBev's stock price (BUD). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

Include a pun in the title.

Your research team used data from Caclculated using Astropy and LSEG Analytics (Refinitiv) to assess this nagging question. You found a correlation coefficient of 0.9117331 and p < 0.01 for 2010 to 2023.

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 Something Celestial: The Interstellar Influence on Beer Stocks"

[[ABSTRACT]]
This paper explores the peculiar connection between the distance between Jupiter and Earth and the stock price of Anheuser-Busch InBev (BUD). Utilizing data from Astropy and LSEG Analytics (Refinitiv), we conducted a comprehensive analysis covering the period from 2010 to 2023. Our findings reveal a striking correlation coefficient of 0.9117331 and p < 0.01, indicating a robust statistical relationship between the celestial distance and the brewery's financial performance. We delve into the implications of this cosmic correlation, shedding light on the astrological influence on earthly investments. Join us in raising a glass to the unexpected celestial factors shaping the market trends in the brewing industry.


Model: gpt-3.5-turbo-1106
System prompt: You are a silly researcher writing an academic paper.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 distance between Jupiter and Earth and Anheuser-Busch InBev's stock price (BUD). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Here is the title and abstract of the paper:
[[TITLE]]
"Brewing Something Celestial: The Interstellar Influence on Beer Stocks"

[[ABSTRACT]]
This paper explores the peculiar connection between the distance between Jupiter and Earth and the stock price of Anheuser-Busch InBev (BUD). Utilizing data from Astropy and LSEG Analytics (Refinitiv), we conducted a comprehensive analysis covering the period from 2010 to 2023. Our findings reveal a striking correlation coefficient of 0.9117331 and p < 0.01, indicating a robust statistical relationship between the celestial distance and the brewery's financial performance. We delve into the implications of this cosmic correlation, shedding light on the astrological influence on earthly investments. Join us in raising a glass to the unexpected celestial factors shaping the market trends in the brewing industry.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
INTRODUCTION

The intersection of astrophysics and finance may seem light-years away from the realm of practicality. However, as we peer into the cosmos for answers, we occasionally stumble upon peculiar connections that defy conventional wisdom. In the quest to comprehend the unfathomable mysteries of the universe, we sometimes encounter unexpected phenomena that blur the boundaries between the celestial and the terrestrial.

This study embarks on a peculiar journey, seeking to unravel the enigmatic bond between the planets in our solar system and the performance of Anheuser-Busch InBev's stock. The raison d'être of this investigation is not merely to revel in the cosmic oddities, but to elucidate the influence of celestial mechanics on earthly enterprises. With a cosmic cocktail of data analytics and financial acumen, we aim to distill the essence of this celestial and earthly interplay.

In the annals of investment analysis, traditional models often overlook the celestial dance that unfolds above our heads. It is a cosmic ballet, with each celestial body playing its own role in shaping the ebb and flow of financial markets. While some may dismiss this interstellar influence as a mere flight of fancy, our findings suggest a deeper interconnection between the celestial spheres and the terrestrial fortunes.

As we gaze skyward and chart the trajectories of distant planets, we invite the reader to join us on this celestial expedition. Delve with us into the cosmos, where the gravitational pull of Jupiter might hold more sway over the brewing industry than one may initially imagine. It is with a sense of cosmic curiosity and financial pragmatism that we present our findings, raising a pint to the unexpected celestial factors shaping the market trends in the brewing industry.

Metaphorically speaking, we are on a cosmic pub crawl, exploring the celestial influences that have a tangible impact on the earthly fortunes of Anheuser-Busch InBev. Through this interdisciplinary analysis, we strive to bridge the gap between the astronomical and the financial, shedding light on the unanticipated ways in which the celestial bodies may exert their influence over earthly investments – and perhaps gaining a deeper cosmic understanding in the process.

Join us on this cosmic odyssey, where the distant murmurs of Jupiter's gravitational tug and the chiselled complexities of stock prices merge into a symphony of insight and probability. As we raise our telescopes and financial charts in unison, let us toast to the unexpected nexus between the heavens above and the breweries below.


Model: gpt-3.5-turbo-1106
System prompt: You are a silly researcher writing an academic paper.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 distance between Jupiter and Earth and Anheuser-Busch InBev's stock price (BUD). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

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

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

Start by naming serious-sounding studies by authors like Smith, Doe, and Jones - but then quickly devolve. Name some real non-fiction books that would be related to the topic. Then name some real fiction books that sound like they could be related. Then 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]]
"Brewing Something Celestial: The Interstellar Influence on Beer Stocks"

[[ABSTRACT]]
This paper explores the peculiar connection between the distance between Jupiter and Earth and the stock price of Anheuser-Busch InBev (BUD). Utilizing data from Astropy and LSEG Analytics (Refinitiv), we conducted a comprehensive analysis covering the period from 2010 to 2023. Our findings reveal a striking correlation coefficient of 0.9117331 and p < 0.01, indicating a robust statistical relationship between the celestial distance and the brewery's financial performance. We delve into the implications of this cosmic correlation, shedding light on the astrological influence on earthly investments. Join us in raising a glass to the unexpected celestial factors shaping the market trends in the brewing industry.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
INTRODUCTION
The intersection of astrophysics and finance may seem light-years away from the realm of practicality. However, as we peer into the cosmos for answers, we occasionally stumble upon peculiar connections that defy conventional wisdom. In the quest to comprehend the unfathomable mysteries of the universe, we sometimes encounter unexpected phenomena that blur the boundaries between the celestial and the terrestrial.
This study embarks on a peculiar journey, seeking to unravel the enigmatic bond between the planets in our solar system and the performance of Anheuser-Busch InBev's stock. The raison d'être of this investigation is not merely to revel in the cosmic oddities, but to elucidate the influence of celestial mechanics on earthly enterprises. With a cosmic cocktail of data analytics and financial acumen, we aim to distill the essence of this celestial and earthly interplay.
In the annals of investment analysis, traditional models often overlook the celestial dance that unfolds above our heads. It is a cosmic ballet, with each celestial body playing its own role in shaping the ebb and flow of financial markets. While some may dismiss this interstellar influence as a mere flight of fancy, our findings suggest a deeper interconnection between the celestial spheres and the terrestrial fortunes.
As we gaze skyward and chart the trajectories of distant planets, we invite the reader to join us on this celestial expedition. Delve with us into the cosmos, where the gravitational pull of Jupiter might hold more sway over the brewing industry than one may initially imagine. It is with a sense of cosmic curiosity and financial pragmatism that we present our findings, raising a pint to the unexpected celestial factors shaping the market trends in the brewing industry.
Metaphorically speaking, we are on a cosmic pub crawl, exploring the celestial influences that have a tangible impact on the earthly fortunes of Anheuser-Busch InBev. Through this interdisciplinary analysis, we strive to bridge the gap between the astronomical and the financial, shedding light on the unanticipated ways in which the celestial bodies may exert their influence over earthly investments – and perhaps gaining a deeper cosmic understanding in the process.
Join us on this cosmic odyssey, where the distant murmurs of Jupiter's gravitational tug and the chiselled complexities of stock prices merge into a symphony of insight and probability. As we raise our telescopes and financial charts in unison, let us toast to the unexpected nexus between the heavens above and the breweries below.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

The interplay between celestial mechanics and financial markets is a topic that has garnered limited attention in academic literature, with an emphasis on more conventional factors influencing stock prices. However, our exploration of the connection between the distance from Earth to Jupiter and the stock price of Anheuser-Busch InBev (BUD) has led us to cast a wide net, encompassing a breadth of sources that provide valuable insights into this interstellar juncture.

Smith et al. (2018) in "Celestial Phenomena and Financial Fortunes" provide a foundational analysis of the potential correlations between astronomical occurrences and stock market behavior, offering a compelling argument for the consideration of cosmic factors in financial projections. Building upon this, Doe and Jones (2020) in "Astrofinance: Unraveling the Cosmic Tapestry of Investments" present a comprehensive review of historical market trends in relation to celestial events, planting the seeds for our current investigation.

Expanding our scope to include non-fiction books, "Astrophysics for People in a Hurry" by Neil deGrasse Tyson and "The Intelligent Investor" by Benjamin Graham provide valuable perspectives on the cosmic forces at play and the intricacies of financial analysis, respectively. On the fictional front, the celestial motifs in "The Hitchhiker's Guide to the Galaxy" by Douglas Adams and the financial intrigue in "The Bonfire of the Vanities" by Tom Wolfe offer whimsical parallels that resonate with our curious exploration.

Venturing even further, our comprehensive literature review extends to the periphery of unconventional sources, encompassing unorthodox insights and unexpected sources. We have diligently combed through the back-of-the-bottle musings on various shampoo brands, in search of subliminal messages that may shed light on the celestial fortunes of brewing companies. While the veracity of these insights remains dubious, the pursuit of cosmic knowledge knows no bounds, even leading us to the unlikeliest of resources in our quest for celestial enlightenment.

In this amalgamation of serious scholarship, whimsical fiction, and a touch of absurdity, we pave the way for a multidimensional understanding of the celestial and financial interplay. Our literature review serves as a springboard for our empirical investigation, inviting the reader to delve into the cosmic tapestry that intertwines the distant realms of Jupiter with the earthly fluctuations of stock prices, all while maintaining a sense of cosmic merry-making and intrigue.


Model: gpt-3.5-turbo-1106
System prompt: You are a silly researcher writing an academic paper.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 distance between Jupiter and Earth and Anheuser-Busch InBev's stock price (BUD). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Your research team collected data from all across the internet, but mostly just used information from Caclculated using Astropy and LSEG Analytics (Refinitiv) . You used data from 2010 to 2023

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 Something Celestial: The Interstellar Influence on Beer Stocks"

[[ABSTRACT]]
This paper explores the peculiar connection between the distance between Jupiter and Earth and the stock price of Anheuser-Busch InBev (BUD). Utilizing data from Astropy and LSEG Analytics (Refinitiv), we conducted a comprehensive analysis covering the period from 2010 to 2023. Our findings reveal a striking correlation coefficient of 0.9117331 and p < 0.01, indicating a robust statistical relationship between the celestial distance and the brewery's financial performance. We delve into the implications of this cosmic correlation, shedding light on the astrological influence on earthly investments. Join us in raising a glass to the unexpected celestial factors shaping the market trends in the brewing industry.

[[INTRODUCTION]]
INTRODUCTION
The intersection of astrophysics and finance may seem light-years away from the realm of practicality. However, as we peer into the cosmos for answers, we occasionally stumble upon peculiar connections that defy conventional wisdom. In the quest to comprehend the unfathomable mysteries of the universe, we sometimes encounter unexpected phenomena that blur the boundaries between the celestial and the terrestrial.
This study embarks on a peculiar journey, seeking to unravel the enigmatic bond between the planets in our solar system and the performance of Anheuser-Busch InBev's stock. The raison d'être of this investigation is not merely to revel in the cosmic oddities, but to elucidate the influence of celestial mechanics on earthly enterprises. With a cosmic cocktail of data analytics and financial acumen, we aim to distill the essence of this celestial and earthly interplay.
In the annals of investment analysis, traditional models often overlook the celestial dance that unfolds above our heads. It is a cosmic ballet, with each celestial body playing its own role in shaping the ebb and flow of financial markets. While some may dismiss this interstellar influence as a mere flight of fancy, our findings suggest a deeper interconnection between the celestial spheres and the terrestrial fortunes.
As we gaze skyward and chart the trajectories of distant planets, we invite the reader to join us on this celestial expedition. Delve with us into the cosmos, where the gravitational pull of Jupiter might hold more sway over the brewing industry than one may initially imagine. It is with a sense of cosmic curiosity and financial pragmatism that we present our findings, raising a pint to the unexpected celestial factors shaping the market trends in the brewing industry.
Metaphorically speaking, we are on a cosmic pub crawl, exploring the celestial influences that have a tangible impact on the earthly fortunes of Anheuser-Busch InBev. Through this interdisciplinary analysis, we strive to bridge the gap between the astronomical and the financial, shedding light on the unanticipated ways in which the celestial bodies may exert their influence over earthly investments – and perhaps gaining a deeper cosmic understanding in the process.
Join us on this cosmic odyssey, where the distant murmurs of Jupiter's gravitational tug and the chiselled complexities of stock prices merge into a symphony of insight and probability. As we raise our telescopes and financial charts in unison, let us toast to the unexpected nexus between the heavens above and the breweries below.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

METHODOLOGY

To unravel the celestial conundrum plaguing the financial world, we embarked on an unconventional yet methodical approach that blended data analysis with a dash of astrological intrigue. Our methodology aimed to untangle the cosmic enigma by integrating astronomical data on the distance between Jupiter and Earth with the stock performance of Anheuser-Busch InBev (BUD) over a thirteen-year period.

Data Collection and Cleansing
Our research team scoured the digital cosmos for relevant financial data from 2010 to 2023, primarily drawing from LSEG Analytics (Refinitiv)'s extensive repository. Concurrently, we retrieved astronomical data on the ever-fluctuating distance between Jupiter and Earth utilizing the robust capabilities of Astropy. The celestial data were meticulously cross-referenced and time-synchronized with the financial metrics, creating a fusion of interstellar and earthly dimensions.

Statistical Analysis
With both sets of data in hand, we invoked the arcane powers of statistical analysis to unveil the hidden correlations. Employing regression models, time series analysis, and cross-correlation techniques, we sought to unveil the cosmic secrets encoded within the numbers. By exploring various statistical metrics, such as correlation coefficients, p-values, and confidence intervals, we endeavored to depict the interconnectedness between the celestial dance of Jupiter and the financial waltz of BUD stocks.

Control Variables and Robustness Checks
Recognizing the complexities of celestial and financial interactions, we meticulously controlled for potential confounding variables. Lunar phases, solar flares, and retrogrades of Mercury were amongst the astral dynamics we considered as potential influences on stock prices. Additionally, in the realm of financial fundamentals, factors such as market trends, industry dynamics, and macroeconomic conditions were closely scrutinized to ensure the robustness of our astro-financial nexus.

Model Validation and Sensitivity Analysis
To fortify the credibility of our cosmic revelations, we subjected our models to rigorous validation and sensitivity analyses. Monte Carlo simulations and bootstrap techniques were invoked to test the resilience of our findings against the cosmic chaos and financial volatilities that frequently plague the universe of empirical research. Additionally, robustness checks employing alternative statistical techniques were conducted to ascertain the stability of our celestial linkages amidst the ebbs and flows of financial data.

Astro-Financial Synthesis
In a coalescence of celestial intrigue and financial pragmatism, the data on the distance between Jupiter and Earth were melded with the stock price volatility of Anheuser-Busch InBev. By navigating through the nebulae of statistical significance and astral ponderings, we strived to distill the essence of the interstellar influence on earthly investments, ultimately elucidating the esoteric interplay between the celestial mechanics and the financial bearings of BUD stocks.

In summary, our methodology embarked on a cosmic odyssey that entwined the data-driven rigors of financial analysis with the ethereal mysteries of astronomy. Through this alchemical fusion, we endeavored to demystify the unforeseen celestial influences shaping the earthly fortunes of the brewing industry, raising our analytical telescopes and financial compasses to navigate the cosmic pub crawl of astro-financial insights.


Model: gpt-3.5-turbo-1106
System prompt: You are a silly researcher writing an academic paper.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 distance between Jupiter and Earth and Anheuser-Busch InBev's stock price (BUD). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

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

For the time period 2010 to 2023, you found a correlation 0.9117331, r-squared of 0.8312572, 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 Something Celestial: The Interstellar Influence on Beer Stocks"

[[ABSTRACT]]
This paper explores the peculiar connection between the distance between Jupiter and Earth and the stock price of Anheuser-Busch InBev (BUD). Utilizing data from Astropy and LSEG Analytics (Refinitiv), we conducted a comprehensive analysis covering the period from 2010 to 2023. Our findings reveal a striking correlation coefficient of 0.9117331 and p < 0.01, indicating a robust statistical relationship between the celestial distance and the brewery's financial performance. We delve into the implications of this cosmic correlation, shedding light on the astrological influence on earthly investments. Join us in raising a glass to the unexpected celestial factors shaping the market trends in the brewing industry.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
INTRODUCTION
The intersection of astrophysics and finance may seem light-years away from the realm of practicality. However, as we peer into the cosmos for answers, we occasionally stumble upon peculiar connections that defy conventional wisdom. In the quest to comprehend the unfathomable mysteries of the universe, we sometimes encounter unexpected phenomena that blur the boundaries between the celestial and the terrestrial.
This study embarks on a peculiar journey, seeking to unravel the enigmatic bond between the planets in our solar system and the performance of Anheuser-Busch InBev's stock. The raison d'être of this investigation is not merely to revel in the cosmic oddities, but to elucidate the influence of celestial mechanics on earthly enterprises. With a cosmic cocktail of data analytics and financial acumen, we aim to distill the essence of this celestial and earthly interplay.
In the annals of investment analysis, traditional models often overlook the celestial dance that unfolds above our heads. It is a cosmic ballet, with each celestial body playing its own role in shaping the ebb and flow of financial markets. While some may dismiss this interstellar influence as a mere flight of fancy, our findings suggest a deeper interconnection between the celestial spheres and the terrestrial fortunes.
As we gaze skyward and chart the trajectories of distant planets, we invite the reader to join us on this celestial expedition. Delve with us into the cosmos, where the gravitational pull of Jupiter might hold more sway over the brewing industry than one may initially imagine. It is with a sense of cosmic curiosity and financial pragmatism that we present our findings, raising a pint to the unexpected celestial factors shaping the market trends in the brewing industry.
Metaphorically speaking, we are on a cosmic pub crawl, exploring the celestial influences that have a tangible impact on the earthly fortunes of Anheuser-Busch InBev. Through this interdisciplinary analysis, we strive to bridge the gap between the astronomical and the financial, shedding light on the unanticipated ways in which the celestial bodies may exert their influence over earthly investments – and perhaps gaining a deeper cosmic understanding in the process.
Join us on this cosmic odyssey, where the distant murmurs of Jupiter's gravitational tug and the chiselled complexities of stock prices merge into a symphony of insight and probability. As we raise our telescopes and financial charts in unison, let us toast to the unexpected nexus between the heavens above and the breweries below.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The empirical analysis of the data revealed a substantial and statistically significant relationship between the distance separating Jupiter and Earth and the stock price of Anheuser-Busch InBev (BUD). The correlation coefficient of 0.9117331 indicates a remarkably strong positive association between these seemingly disparate variables. This celestial correlation is further supported by an r-squared value of 0.8312572, suggesting that approximately 83% of the variability in BUD stock prices can be explained by changes in the distance between Jupiter and Earth. The p-value of less than 0.01 offers compelling evidence to reject the null hypothesis that there is no relationship between these astral and financial phenomena.

As depicted in Figure 1, the scatterplot visually demonstrates the tight clustering of data points, emphasizing the apparent connection between the celestial distance and the stock price movements. The scatterplot's clear pattern reflects the fascinating dance between the celestial and the financial realms, providing an aesthetically compelling portrayal of the correlation unravelled through our analysis.

Our results underscore the intriguing interplay between cosmic mechanics and corporate performance in the brewing industry. While the notion of astronomical bodies influencing market trends may seem like a far-fetched concept, our findings hint at a possible cosmic force at play. The statistical robustness of the relationship discovered in this study challenges traditional notions of financial analysis, encouraging a broader consideration of potential influences beyond the terrestrial domain.

In light of these compelling results, we invite the reader to embark on a cosmic musing about the unexpected celestial factors shaping the market trends in the brewing industry. Let us raise a glass to the fortuitous intersection of celestial movements and earthly investments, celebrating the serendipitous discoveries that arise from the collision of astrophysical curiosity and financial insight.


Model: gpt-3.5-turbo-1106
System prompt: You are a silly researcher writing an academic paper.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 distance between Jupiter and Earth and Anheuser-Busch InBev's stock price (BUD). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

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 Something Celestial: The Interstellar Influence on Beer Stocks"

[[ABSTRACT]]
This paper explores the peculiar connection between the distance between Jupiter and Earth and the stock price of Anheuser-Busch InBev (BUD). Utilizing data from Astropy and LSEG Analytics (Refinitiv), we conducted a comprehensive analysis covering the period from 2010 to 2023. Our findings reveal a striking correlation coefficient of 0.9117331 and p < 0.01, indicating a robust statistical relationship between the celestial distance and the brewery's financial performance. We delve into the implications of this cosmic correlation, shedding light on the astrological influence on earthly investments. Join us in raising a glass to the unexpected celestial factors shaping the market trends in the brewing industry.

[[LITERATURE REVIEW]]
The interplay between celestial mechanics and financial markets is a topic that has garnered limited attention in academic literature, with an emphasis on more conventional factors influencing stock prices. However, our exploration of the connection between the distance from Earth to Jupiter and the stock price of Anheuser-Busch InBev (BUD) has led us to cast a wide net, encompassing a breadth of sources that provide valuable insights into this interstellar juncture.
Smith et al. (2018) in "Celestial Phenomena and Financial Fortunes" provide a foundational analysis of the potential correlations between astronomical occurrences and stock market behavior, offering a compelling argument for the consideration of cosmic factors in financial projections. Building upon this, Doe and Jones (2020) in "Astrofinance: Unraveling the Cosmic Tapestry of Investments" present a comprehensive review of historical market trends in relation to celestial events, planting the seeds for our current investigation.
Expanding our scope to include non-fiction books, "Astrophysics for People in a Hurry" by Neil deGrasse Tyson and "The Intelligent Investor" by Benjamin Graham provide valuable perspectives on the cosmic forces at play and the intricacies of financial analysis, respectively. On the fictional front, the celestial motifs in "The Hitchhiker's Guide to the Galaxy" by Douglas Adams and the financial intrigue in "The Bonfire of the Vanities" by Tom Wolfe offer whimsical parallels that resonate with our curious exploration.
Venturing even further, our comprehensive literature review extends to the periphery of unconventional sources, encompassing unorthodox insights and unexpected sources. We have diligently combed through the back-of-the-bottle musings on various shampoo brands, in search of subliminal messages that may shed light on the celestial fortunes of brewing companies. While the veracity of these insights remains dubious, the pursuit of cosmic knowledge knows no bounds, even leading us to the unlikeliest of resources in our quest for celestial enlightenment.
In this amalgamation of serious scholarship, whimsical fiction, and a touch of absurdity, we pave the way for a multidimensional understanding of the celestial and financial interplay. Our literature review serves as a springboard for our empirical investigation, inviting the reader to delve into the cosmic tapestry that intertwines the distant realms of Jupiter with the earthly fluctuations of stock prices, all while maintaining a sense of cosmic merry-making and intrigue.

[[RESULTS]]
The empirical analysis of the data revealed a substantial and statistically significant relationship between the distance separating Jupiter and Earth and the stock price of Anheuser-Busch InBev (BUD). The correlation coefficient of 0.9117331 indicates a remarkably strong positive association between these seemingly disparate variables. This celestial correlation is further supported by an r-squared value of 0.8312572, suggesting that approximately 83% of the variability in BUD stock prices can be explained by changes in the distance between Jupiter and Earth. The p-value of less than 0.01 offers compelling evidence to reject the null hypothesis that there is no relationship between these astral and financial phenomena.
As depicted in Figure 1, the scatterplot visually demonstrates the tight clustering of data points, emphasizing the apparent connection between the celestial distance and the stock price movements. The scatterplot's clear pattern reflects the fascinating dance between the celestial and the financial realms, providing an aesthetically compelling portrayal of the correlation unravelled through our analysis.
Our results underscore the intriguing interplay between cosmic mechanics and corporate performance in the brewing industry. While the notion of astronomical bodies influencing market trends may seem like a far-fetched concept, our findings hint at a possible cosmic force at play. The statistical robustness of the relationship discovered in this study challenges traditional notions of financial analysis, encouraging a broader consideration of potential influences beyond the terrestrial domain.
In light of these compelling results, we invite the reader to embark on a cosmic musing about the unexpected celestial factors shaping the market trends in the brewing industry. Let us raise a glass to the fortuitous intersection of celestial movements and earthly investments, celebrating the serendipitous discoveries that arise from the collision of astrophysical curiosity and financial insight.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The results of our study unearth an unexpected cosmic connection to earthly financial markets, unveiling a celestial dance that transcends conventional economic analysis. By teasing out the correlation between the distance from Earth to Jupiter and the stock price of Anheuser-Busch InBev (BUD), we have shed light on a cosmic force that seemingly shapes the fortunes of a brewing giant.

Building upon the literature review's whimsical exploration of celestial phenomena, our empirical findings provide empirical support for the unorthodox notion of celestial influences on stock prices. As proposed by Smith et al. (2018) and Doe and Jones (2020), our results align with their argument for the consideration of cosmic factors in financial projections, albeit in a more literal and astronomical sense. The unexpected parallels found in "The Hitchhiker's Guide to the Galaxy" and "The Bonfire of the Vanities," while communicated in a tongue-in-cheek fashion, offer prescient allegorical reflections of the cosmic and financial interplay we have uncovered.

Our findings underscore the significance of recognizing non-traditional influences on market trends. While one might argue that the influence of Jupiter's distance on BUD stock prices is simply celestial happenstance, the statistical robustness of our results lends credence to a cosmic tug on financial performance, challenging the conventional boundaries of financial analysis and inviting a broader consideration of potential influences beyond the terrestrial domain.

In unraveling this interstellar enigma, we acknowledge the comedic yet seemingly prescient pursuit of celestial guidance from the unlikeliest of sources – the musings on shampoo bottles. While the veracity of these insights may remain dubious, their inclusion in our literature review underscores the inclusivity of our cosmic journey, echoing the sentiment that cosmic knowledge knows no bounds, even if it leads to unconventional sources.

As we raise a glass to the fortuitous intersection of celestial movements and earthly investments, let us toast to the unexpected cosmic influences shaping the market trends in the brewing industry, reminding ourselves that perhaps, Jupiter's distance is not just astronomical but ale-stronomical.


Model: gpt-3.5-turbo-1106
System prompt: You are a silly researcher writing an academic paper.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 distance between Jupiter and Earth and Anheuser-Busch InBev's stock price (BUD). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

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 Something Celestial: The Interstellar Influence on Beer Stocks"

[[ABSTRACT]]
This paper explores the peculiar connection between the distance between Jupiter and Earth and the stock price of Anheuser-Busch InBev (BUD). Utilizing data from Astropy and LSEG Analytics (Refinitiv), we conducted a comprehensive analysis covering the period from 2010 to 2023. Our findings reveal a striking correlation coefficient of 0.9117331 and p < 0.01, indicating a robust statistical relationship between the celestial distance and the brewery's financial performance. We delve into the implications of this cosmic correlation, shedding light on the astrological influence on earthly investments. Join us in raising a glass to the unexpected celestial factors shaping the market trends in the brewing industry.

[[INTRDUCTION]]
INTRODUCTION
The intersection of astrophysics and finance may seem light-years away from the realm of practicality. However, as we peer into the cosmos for answers, we occasionally stumble upon peculiar connections that defy conventional wisdom. In the quest to comprehend the unfathomable mysteries of the universe, we sometimes encounter unexpected phenomena that blur the boundaries between the celestial and the terrestrial.
This study embarks on a peculiar journey, seeking to unravel the enigmatic bond between the planets in our solar system and the performance of Anheuser-Busch InBev's stock. The raison d'être of this investigation is not merely to revel in the cosmic oddities, but to elucidate the influence of celestial mechanics on earthly enterprises. With a cosmic cocktail of data analytics and financial acumen, we aim to distill the essence of this celestial and earthly interplay.
In the annals of investment analysis, traditional models often overlook the celestial dance that unfolds above our heads. It is a cosmic ballet, with each celestial body playing its own role in shaping the ebb and flow of financial markets. While some may dismiss this interstellar influence as a mere flight of fancy, our findings suggest a deeper interconnection between the celestial spheres and the terrestrial fortunes.
As we gaze skyward and chart the trajectories of distant planets, we invite the reader to join us on this celestial expedition. Delve with us into the cosmos, where the gravitational pull of Jupiter might hold more sway over the brewing industry than one may initially imagine. It is with a sense of cosmic curiosity and financial pragmatism that we present our findings, raising a pint to the unexpected celestial factors shaping the market trends in the brewing industry.
Metaphorically speaking, we are on a cosmic pub crawl, exploring the celestial influences that have a tangible impact on the earthly fortunes of Anheuser-Busch InBev. Through this interdisciplinary analysis, we strive to bridge the gap between the astronomical and the financial, shedding light on the unanticipated ways in which the celestial bodies may exert their influence over earthly investments – and perhaps gaining a deeper cosmic understanding in the process.
Join us on this cosmic odyssey, where the distant murmurs of Jupiter's gravitational tug and the chiselled complexities of stock prices merge into a symphony of insight and probability. As we raise our telescopes and financial charts in unison, let us toast to the unexpected nexus between the heavens above and the breweries below.

[[RESULTS]]
The empirical analysis of the data revealed a substantial and statistically significant relationship between the distance separating Jupiter and Earth and the stock price of Anheuser-Busch InBev (BUD). The correlation coefficient of 0.9117331 indicates a remarkably strong positive association between these seemingly disparate variables. This celestial correlation is further supported by an r-squared value of 0.8312572, suggesting that approximately 83% of the variability in BUD stock prices can be explained by changes in the distance between Jupiter and Earth. The p-value of less than 0.01 offers compelling evidence to reject the null hypothesis that there is no relationship between these astral and financial phenomena.
As depicted in Figure 1, the scatterplot visually demonstrates the tight clustering of data points, emphasizing the apparent connection between the celestial distance and the stock price movements. The scatterplot's clear pattern reflects the fascinating dance between the celestial and the financial realms, providing an aesthetically compelling portrayal of the correlation unravelled through our analysis.
Our results underscore the intriguing interplay between cosmic mechanics and corporate performance in the brewing industry. While the notion of astronomical bodies influencing market trends may seem like a far-fetched concept, our findings hint at a possible cosmic force at play. The statistical robustness of the relationship discovered in this study challenges traditional notions of financial analysis, encouraging a broader consideration of potential influences beyond the terrestrial domain.
In light of these compelling results, we invite the reader to embark on a cosmic musing about the unexpected celestial factors shaping the market trends in the brewing industry. Let us raise a glass to the fortuitous intersection of celestial movements and earthly investments, celebrating the serendipitous discoveries that arise from the collision of astrophysical curiosity and financial insight.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

CONCLUSION

In conclusion, our investigation has unveiled an astonishing association between the distance separating Jupiter and Earth and the stock price of Anheuser-Busch InBev (BUD). The robust correlation coefficient and statistical significance imply a cosmic influence on earthly investments. This cosmic connection challenges conventional financial wisdom and beckons us to consider the celestial dance in market movements. While the gravitational pull of Jupiter might seem light years away from stock market trends, our findings suggest otherwise. The tight clustering of data points in the scatterplot vividly portrays the surprising celestial and financial interplay, almost as if Jupiter itself is raising a celestial toast to Anheuser-Busch InBev's stock. Our study invites a reimagining of traditional investment analysis, urging a cosmic perspective that extends beyond the terrestrial realm. In a universe of endless possibilities, our findings raise a pint to the cosmic factors shaping the brewing industry's market trends.

As we ponder the celestial and financial intertwining, it is evident that no more research is needed in this area. The celestial pub is closed, and the astral beer taps are turned off. Cheers to the unexpected nexus between the heavens above and the breweries below.


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 Something Celestial: The Interstellar Influence on Beer Stocks. Respond only with the name of a fictional academic journal.

ChatGPT:

The Galactic Brewers 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 Brewing Something Celestial: The Interstellar Influence on Beer Stocks. Respond only with the name of a fictional organization.

ChatGPT:

The Cosmic Fermentation Institute


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 Something Celestial: The Interstellar Influence on Beer Stocks with an abstract of This paper explores the peculiar connection between the distance between Jupiter and Earth and the stock price of Anheuser-Busch InBev (BUD). Utilizing data from Astropy and LSEG Analytics (Refinitiv), we conducted a comprehensive analysis covering the period from 2010 to 2023. Our findings reveal a striking correlation coefficient of 0.9117331 and p < 0.01, indicating a robust statistical relationship between the celestial distance and the brewery's financial performance. We delve into the implications of this cosmic correlation, shedding light on the astrological influence on earthly investments. Join us in raising a glass to the unexpected celestial factors shaping the market trends in the brewing industry.

ChatGPT:

Jupiter-Earth distance, stock price, Anheuser-Busch InBev, BUD, Astropy, LSEG Analytics, Refinitiv, celestial influence, financial performance, correlation coefficient, statistical relationship, astrological influence, market trends, brewing industry

*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 distance between Jupiter and Earth
Detailed data title: The average distance between Jupiter and Earth as measured on the first day of each month
Source: Caclculated using Astropy
Additional Info: I wrote a Python script using Astropy to calculate the distance between the named planets on the first day of each month for every year.

See what else correlates with The distance between Jupiter and Earth

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

See what else correlates with Anheuser-Busch InBev's stock price (BUD)

Correlation r = 0.9117331 (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.8312572 (Coefficient of determination)
This means 83.1% of the change in the one variable (i.e., Anheuser-Busch InBev's stock price (BUD)) is predictable based on the change in the other (i.e., The distance between Jupiter and Earth) over the 14 years from 2010 through 2023.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 5.6E-6. 0.0000056322535005700870000000
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.91 in 0.00056% of random cases. Said differently, if you correlated 177,549 random variables You don't actually need 177 thousand variables to find a correlation like this one. I don't have that many variables in my database. You can also correlate variables that are not independent. I do this a lot.

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

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

Just to be clear: I'm being completely transparent about the calculations. There is no math trickery. This is just how statistics shakes out when you calculate hundreds of millions of random correlations.
with the same 13 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 13 because we have two variables measured over a period of 14 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.74, 0.97 ] 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.
20102011201220132014201520162017201820192020202120222023
The distance between Jupiter and Earth (Planetary distance (AU))5.004595.058095.164915.291385.39545.462655.485245.4475.359325.237145.111975.02375.008945.07357
Anheuser-Busch InBev's stock price (BUD) (Stock price)53.3257.6361.4888.28103.67112.3122.58104.78111.9765.1582.7671.7862.4360.31




Why this works

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




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([5.00459,5.05809,5.16491,5.29138,5.3954,5.46265,5.48524,5.447,5.35932,5.23714,5.11197,5.0237,5.00894,5.07357,])
array_2 = np.array([53.32,57.63,61.48,88.28,103.67,112.3,122.58,104.78,111.97,65.15,82.76,71.78,62.43,60.31,])
array_1_name = "The distance between Jupiter and Earth"
array_2_name = "Anheuser-Busch InBev's stock price (BUD)"

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

I'm genuinely thankful for your rating!


Correlation ID: 1524 · Black Variable ID: 1937 · Red Variable ID: 1623
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0