about · email me · subscribe
Spurious correlation #4,204 · 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 Neptune and Uranus and the second variable is Yum! Brands' stock price (YUM).  The chart goes from 2002 to 2023, and the two variables track closely in value over that time. Small Image

AI explanation

As the gap widened, it created a ripple in the space-time burrito, leading to a surge in cosmic cravings for Taco Bell and a meteoric rise in Yum! Brands' stock price. Remember, in the game of interplanetary finance, it's all about that astronomical appetite appeal!

Model: dalle-3
Prompt: An image that looks like it is a scene from a Pixar movie, depicting this scene: In the vast expanse of space, Neptune and Uranus form a larger gap between them, causing a ripple in space-time. Amidst the cosmic waves, a giant burrito appears, evoking a surge in cosmic cravings for Taco Bell. As the craving intensifies, a meteoric rise in the stock price of Yum! Brands is observed, its value shooting up beyond the stars. The cosmic waves twist and turn, creating a whimsical, colorful display as the celestial bodies react to the unexpected appearance of the oversized burrito, drawing in viewers with its playful and enchanting narrative. 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 Neptune and Uranus and Yum! Brands' stock price (YUM). 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: An image that looks like it is a scene from a Pixar movie Woodblock painting An image that looks like it is a scene from A Disney Movie Magic realism Glitch art
ChatGPT: An image that looks like it is a scene from a Pixar movie

Model: gpt-3.5-turbo-1106
System prompt: You describe simple visual scenes that depict the two variables stated. You combine both variables into one scene.
User prompt: Please describe a visual scene that prominently depicts both The distance between Neptune and Uranus and Yum! Brands' stock price (YUM), in the following situation: As the gap widened, it created a ripple in the space-time burrito, leading to a surge in cosmic cravings for Taco Bell and a meteoric rise in Yum! Brands' stock price. Remember, in the game of interplanetary finance, it's all about that astronomical appetite appeal!. Keep the description simple.
ChatGPT: In the vast expanse of space, Neptune and Uranus form a larger gap between them, causing a ripple in space-time. Amidst the cosmic waves, a giant burrito appears, evoking a surge in cosmic cravings for Taco Bell. As the craving intensifies, a meteoric rise in the stock price of Yum! Brands is observed, its value shooting up beyond the stars.

Model: gpt-3.5-turbo-1106
System prompt: You write and improve image generation prompts for DALLE-3. You maintain the same subjects, but enhance the visuals.
User prompt: Please respond with an image generation prompt that would be likely to create an interesting visual using DALLE-3, using the following style: [ An image that looks like it is a scene from a Pixar movie ] and depicting this scene: In the vast expanse of space, Neptune and Uranus form a larger gap between them, causing a ripple in space-time. Amidst the cosmic waves, a giant burrito appears, evoking a surge in cosmic cravings for Taco Bell. As the craving intensifies, a meteoric rise in the stock price of Yum! Brands is observed, its value shooting up beyond the stars. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: An image that looks like it is a scene from a Pixar movie, depicting this scene: In the vast expanse of space, Neptune and Uranus form a larger gap between them, causing a ripple in space-time. Amidst the cosmic waves, a giant burrito appears, evoking a surge in cosmic cravings for Taco Bell. As the craving intensifies, a meteoric rise in the stock price of Yum! Brands is observed, its value shooting up beyond the stars. The cosmic waves twist and turn, creating a whimsical, colorful display as the celestial bodies react to the unexpected appearance of the oversized burrito, drawing in viewers with its playful and enchanting narrative.

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

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

Model: gpt-3.5-turbo-1106 (fine-tuned)
System prompt: You provide humorous responses in the form of plausible sounding explanations for correlations. You assume the correlation is causative for the purpose of the explanation even if it is ridiculous. You do not chat with the user, you only reply with the causal connection explanation and nothing else.
User prompt: Please make up a funny explanation for how an increase in The distance between Neptune and Uranus caused Yum! Brands' stock price (YUM) to increase. Add a funny one-liner at the end.

AI academic paper

(Because p < 0.01)
The Cosmic Connection: A Stellar Examination of Neptune-Uranus Distance and Yum! Brands' Stock Price

The Journal of Planetary Pastry Studies

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




Model: gpt-3.5-turbo-1106
System prompt: You are a 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 Neptune and Uranus and Yum! Brands' stock price (YUM). 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.9609888 and p < 0.01 for 2002 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]]
The Cosmic Connection: A Stellar Examination of Neptune-Uranus Distance and Yum! Brands' Stock Price

[[ABSTRACT]]
This paper undertakes a rigorous examination of the relationship between the distance between Neptune and Uranus and Yum! Brands' stock price (YUM). Utilizing data derived from Astropy and LSEG Analytics (Refinitiv), our research team analyzed the fluctuations in Neptune-Uranus distance and the corresponding impact on Yum! Brands' stock performance from 2002 to 2023. We discovered a remarkably high correlation coefficient of 0.9609888 and a significance level of p < 0.01. Our findings shed light on the celestial factors potentially influencing earthly financial markets and provide an illuminating perspective on the interconnectedness of the cosmos and the economy. This research serves as a cosmic reminder that while stock prices may seem otherworldly at times, they are not immune to the gravitational pull of planetary dynamics.


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 Neptune and Uranus and Yum! Brands' stock price (YUM). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Here is the title and abstract of the paper:
[[TITLE]]
The Cosmic Connection: A Stellar Examination of Neptune-Uranus Distance and Yum! Brands' Stock Price

[[ABSTRACT]]
This paper undertakes a rigorous examination of the relationship between the distance between Neptune and Uranus and Yum! Brands' stock price (YUM). Utilizing data derived from Astropy and LSEG Analytics (Refinitiv), our research team analyzed the fluctuations in Neptune-Uranus distance and the corresponding impact on Yum! Brands' stock performance from 2002 to 2023. We discovered a remarkably high correlation coefficient of 0.9609888 and a significance level of p < 0.01. Our findings shed light on the celestial factors potentially influencing earthly financial markets and provide an illuminating perspective on the interconnectedness of the cosmos and the economy. This research serves as a cosmic reminder that while stock prices may seem otherworldly at times, they are not immune to the gravitational pull of planetary dynamics.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
Introduction

The peculiar and often inexplicable correlations between celestial events and financial phenomena have long fascinated both scholars and enthusiasts of the cosmos and the stock market. As we delve into the uncharted territory of the connection between the distance between Neptune and Uranus and Yum! Brands' stock price, we are reminded of the famous words of Sir Isaac Newton: "What goes up must come down, but what goes down must come up – at least in the world of stocks, sometimes."

The adoption of astrophysical data to analyze the fluctuations of a stock price may seem unorthodox at first glance, yet it presents an exciting avenue to explore the potential interconnectedness of distant planets and earthly monetary values. While one might argue that comparing the stock market to the vast expanse of space is like comparing apples and oranges (or should we say planets and moons?), our research seeks to uncover any gravitational pull, metaphorical or otherwise, between cosmic movements and market fluctuations.

Acknowledging the cosmic implications on financial markets can provide an enlightening perspective for investors, reminding them that even the most grounded economic structures may sway under the influence of celestial bodies. As we orbit around the central question of whether Neptune and Uranus's celestial dance influences the earthly movements of Yum! Brands' stock price, we cannot help but wonder if this research will mark the dawn of a new era in financial astrology or if we are merely shooting for the moon.

Our paper aims to offer a comprehensive analysis, steering through the asteroid belt of statistical significance and navigating the nebula of potential confounding variables to unearth whether the cosmic tides truly have an impact on the terrestrial market. With the spirit of curiosity, some statistical stardust, and a dash of market magic, we present our findings as a testament to the interconnectivity of the celestial and the fiscal. After all, in the words of Carl Sagan, "Somewhere, something incredible is waiting to be discovered – even if it's lurking deep within the statistical equations of financial data analysis."


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 Neptune and Uranus and Yum! Brands' stock price (YUM). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

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

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

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

Here is the title and abstract of the paper:
[[TITLE]]
The Cosmic Connection: A Stellar Examination of Neptune-Uranus Distance and Yum! Brands' Stock Price

[[ABSTRACT]]
This paper undertakes a rigorous examination of the relationship between the distance between Neptune and Uranus and Yum! Brands' stock price (YUM). Utilizing data derived from Astropy and LSEG Analytics (Refinitiv), our research team analyzed the fluctuations in Neptune-Uranus distance and the corresponding impact on Yum! Brands' stock performance from 2002 to 2023. We discovered a remarkably high correlation coefficient of 0.9609888 and a significance level of p < 0.01. Our findings shed light on the celestial factors potentially influencing earthly financial markets and provide an illuminating perspective on the interconnectedness of the cosmos and the economy. This research serves as a cosmic reminder that while stock prices may seem otherworldly at times, they are not immune to the gravitational pull of planetary dynamics.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
Introduction
The peculiar and often inexplicable correlations between celestial events and financial phenomena have long fascinated both scholars and enthusiasts of the cosmos and the stock market. As we delve into the uncharted territory of the connection between the distance between Neptune and Uranus and Yum! Brands' stock price, we are reminded of the famous words of Sir Isaac Newton: "What goes up must come down, but what goes down must come up – at least in the world of stocks, sometimes."
The adoption of astrophysical data to analyze the fluctuations of a stock price may seem unorthodox at first glance, yet it presents an exciting avenue to explore the potential interconnectedness of distant planets and earthly monetary values. While one might argue that comparing the stock market to the vast expanse of space is like comparing apples and oranges (or should we say planets and moons?), our research seeks to uncover any gravitational pull, metaphorical or otherwise, between cosmic movements and market fluctuations.
Acknowledging the cosmic implications on financial markets can provide an enlightening perspective for investors, reminding them that even the most grounded economic structures may sway under the influence of celestial bodies. As we orbit around the central question of whether Neptune and Uranus's celestial dance influences the earthly movements of Yum! Brands' stock price, we cannot help but wonder if this research will mark the dawn of a new era in financial astrology or if we are merely shooting for the moon.
Our paper aims to offer a comprehensive analysis, steering through the asteroid belt of statistical significance and navigating the nebula of potential confounding variables to unearth whether the cosmic tides truly have an impact on the terrestrial market. With the spirit of curiosity, some statistical stardust, and a dash of market magic, we present our findings as a testament to the interconnectivity of the celestial and the fiscal. After all, in the words of Carl Sagan, "Somewhere, something incredible is waiting to be discovered – even if it's lurking deep within the statistical equations of financial data analysis."

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

The influence of celestial phenomena on earthly matters has been a topic of both intrigue and skepticism. Smith, Doe, and Jones (2015) examined the potential relationships between planetary movements and financial markets. Their study sparked an ongoing debate within academic circles, with some questioning the validity of such unorthodox analyses. Further research by Brown and Green (2018) delved into the implications of cosmic events on economic trends, opening the door to unconventional perspectives in financial analysis.

Venturing beyond the traditional realms of financial research, our exploration of the connection between the distance between Neptune and Uranus and Yum! Brands' stock price delves into uncharted territory. The cosmic dance of distant planets and its impact on earthly assets has prompted us to consider a diverse range of literature, from astrophysical studies to fictional narratives that may shed light (or starlight) on the matter at hand.

In "Celestial Mechanics for Night Owls," the authors delve into the intricate dynamics of planetary motions, providing a foundation for understanding the gravitational interactions between celestial bodies. This fundamental knowledge serves as a guiding star in our examination of the potential influence of Uranus and Neptune on earthly financial systems.

Turning to the realm of fiction, "Galactic Gastronomy: Adventures in Interstellar Cuisine" presents a whimsical tale of cosmic culinary delights. While seemingly unrelated to financial markets, this literary escapade reminds us that even the most unexpected connections can yield fascinating insights – much like the unexplored link between celestial distances and stock prices.

Delving deeper into unconventional sources, the animated series "Cosmic Crunch: Adventures Beyond the Milky Way" offers a lighthearted portrayal of interstellar adventures. While ostensibly a children's show, the whimsical depictions of cosmic phenomena have sparked our imagination and prompted us to consider the potential cosmic influences on earthly market fluctuations with a touch of humor and wonder.

As we navigate the intersection of finance and the cosmos, it becomes apparent that the making of a cosmic connection requires not only a serious approach but also an openness to unexpected inspirations and celestial playfulness. The blending of astrophysical knowledge, literary musings, and whimsical reflections prepares us to embark on a journey that transcends conventional boundaries between the celestial and the fiscal.


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 Neptune and Uranus and Yum! Brands' stock price (YUM). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Your research team collected data from all across the internet, but mostly just used information from Caclculated using Astropy and LSEG Analytics (Refinitiv) . You used data from 2002 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]]
The Cosmic Connection: A Stellar Examination of Neptune-Uranus Distance and Yum! Brands' Stock Price

[[ABSTRACT]]
This paper undertakes a rigorous examination of the relationship between the distance between Neptune and Uranus and Yum! Brands' stock price (YUM). Utilizing data derived from Astropy and LSEG Analytics (Refinitiv), our research team analyzed the fluctuations in Neptune-Uranus distance and the corresponding impact on Yum! Brands' stock performance from 2002 to 2023. We discovered a remarkably high correlation coefficient of 0.9609888 and a significance level of p < 0.01. Our findings shed light on the celestial factors potentially influencing earthly financial markets and provide an illuminating perspective on the interconnectedness of the cosmos and the economy. This research serves as a cosmic reminder that while stock prices may seem otherworldly at times, they are not immune to the gravitational pull of planetary dynamics.

[[INTRODUCTION]]
Introduction
The peculiar and often inexplicable correlations between celestial events and financial phenomena have long fascinated both scholars and enthusiasts of the cosmos and the stock market. As we delve into the uncharted territory of the connection between the distance between Neptune and Uranus and Yum! Brands' stock price, we are reminded of the famous words of Sir Isaac Newton: "What goes up must come down, but what goes down must come up – at least in the world of stocks, sometimes."
The adoption of astrophysical data to analyze the fluctuations of a stock price may seem unorthodox at first glance, yet it presents an exciting avenue to explore the potential interconnectedness of distant planets and earthly monetary values. While one might argue that comparing the stock market to the vast expanse of space is like comparing apples and oranges (or should we say planets and moons?), our research seeks to uncover any gravitational pull, metaphorical or otherwise, between cosmic movements and market fluctuations.
Acknowledging the cosmic implications on financial markets can provide an enlightening perspective for investors, reminding them that even the most grounded economic structures may sway under the influence of celestial bodies. As we orbit around the central question of whether Neptune and Uranus's celestial dance influences the earthly movements of Yum! Brands' stock price, we cannot help but wonder if this research will mark the dawn of a new era in financial astrology or if we are merely shooting for the moon.
Our paper aims to offer a comprehensive analysis, steering through the asteroid belt of statistical significance and navigating the nebula of potential confounding variables to unearth whether the cosmic tides truly have an impact on the terrestrial market. With the spirit of curiosity, some statistical stardust, and a dash of market magic, we present our findings as a testament to the interconnectivity of the celestial and the fiscal. After all, in the words of Carl Sagan, "Somewhere, something incredible is waiting to be discovered – even if it's lurking deep within the statistical equations of financial data analysis."

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

The cosmic dance between Neptune and Uranus is a spectacle that has intrigued astronomers for centuries, and our research sought to unravel its potential influence on the earthly domain of financial markets, specifically focusing on Yum! Brands' stock price (YUM). We designed a methodological approach that balanced astrophysical rigor with statistical analysis, akin to navigating the complexities of celestial motion and market dynamics like planetary pathfinders.

To begin, we obtained comprehensive data on the distance between Neptune and Uranus from the Astropy library, known for its celestial accuracy rivaling even the most observant stargazers. This period encompassed the years 2002 to 2023, allowing us to capture the full trajectory of this cosmic journey and its possible reflections in the Earth-bound realm of stock prices. Utilizing the LSEG Analytics (Refinitiv) database, we gathered meticulous records of Yum! Brands' stock prices during the same timeframe, ensuring that our analysis was not merely a brief astronomical phenomenon but rather a comprehensive, long-haul expedition into the celestial influences on financial markets.

With these data in hand, we ventured into the cosmic ocean of statistical analysis, navigating through waves of correlations and gravitational pulls of multivariate regression. We utilized sophisticated statistical software that matched the complexity of the cosmic ballet, applying robust techniques to measure the relationship between Neptune-Uranus distance and Yum! Brands' stock price, unearthing any hidden constellations of influence that may warp the fabric of traditional market analysis.

Furthermore, to account for potential confounding variables that could eclipse our celestial findings, we conducted a sensitivity analysis that would put even the most sensitive telescopes to shame. We diligently combed through economic indicators, planetary alignments, and, of course, chicken consumption trends to ensure that our conclusions were not simply shooting stars in the vast expanse of financial data.

Additionally, we explored alternative regression models to validate the robustness of our findings, ensuring that any cosmic revelations were not mere statistical artifacts – after all, we were not simply stargazing but conducting a rigorous investigation of celestial phenomena and stock prices.

In the spirit of scientific inquiry, we embraced two-tailed tests and rigorous p-values, acknowledging that even in the boundless cosmos of statistical analysis, we must remain steadfast in our pursuit of evidence-based conclusions."

As we set out to untangle the interconnected web of Neptune, Uranus, and financial fortune, we were constantly reminded of a pertinent celestial aphorism: "Astronomy compels the soul to look upwards and leads us from this world to another." With this guiding principle, we endeavored to probe the celestial dance of planets and the earthly rhythms of stock prices, providing a stellar exposition of the potential cosmic ties that bind the universe and the economy.


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 Neptune and Uranus and Yum! Brands' stock price (YUM). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

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

For the time period 2002 to 2023, you found a correlation 0.9609888, r-squared of 0.9234995, 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]]
The Cosmic Connection: A Stellar Examination of Neptune-Uranus Distance and Yum! Brands' Stock Price

[[ABSTRACT]]
This paper undertakes a rigorous examination of the relationship between the distance between Neptune and Uranus and Yum! Brands' stock price (YUM). Utilizing data derived from Astropy and LSEG Analytics (Refinitiv), our research team analyzed the fluctuations in Neptune-Uranus distance and the corresponding impact on Yum! Brands' stock performance from 2002 to 2023. We discovered a remarkably high correlation coefficient of 0.9609888 and a significance level of p < 0.01. Our findings shed light on the celestial factors potentially influencing earthly financial markets and provide an illuminating perspective on the interconnectedness of the cosmos and the economy. This research serves as a cosmic reminder that while stock prices may seem otherworldly at times, they are not immune to the gravitational pull of planetary dynamics.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
Introduction
The peculiar and often inexplicable correlations between celestial events and financial phenomena have long fascinated both scholars and enthusiasts of the cosmos and the stock market. As we delve into the uncharted territory of the connection between the distance between Neptune and Uranus and Yum! Brands' stock price, we are reminded of the famous words of Sir Isaac Newton: "What goes up must come down, but what goes down must come up – at least in the world of stocks, sometimes."
The adoption of astrophysical data to analyze the fluctuations of a stock price may seem unorthodox at first glance, yet it presents an exciting avenue to explore the potential interconnectedness of distant planets and earthly monetary values. While one might argue that comparing the stock market to the vast expanse of space is like comparing apples and oranges (or should we say planets and moons?), our research seeks to uncover any gravitational pull, metaphorical or otherwise, between cosmic movements and market fluctuations.
Acknowledging the cosmic implications on financial markets can provide an enlightening perspective for investors, reminding them that even the most grounded economic structures may sway under the influence of celestial bodies. As we orbit around the central question of whether Neptune and Uranus's celestial dance influences the earthly movements of Yum! Brands' stock price, we cannot help but wonder if this research will mark the dawn of a new era in financial astrology or if we are merely shooting for the moon.
Our paper aims to offer a comprehensive analysis, steering through the asteroid belt of statistical significance and navigating the nebula of potential confounding variables to unearth whether the cosmic tides truly have an impact on the terrestrial market. With the spirit of curiosity, some statistical stardust, and a dash of market magic, we present our findings as a testament to the interconnectivity of the celestial and the fiscal. After all, in the words of Carl Sagan, "Somewhere, something incredible is waiting to be discovered – even if it's lurking deep within the statistical equations of financial data analysis."

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

Our analysis of the relationship between the distance between Neptune and Uranus and Yum! Brands' stock price has unearthed some truly stellar findings. From 2002 to 2023, we observed a remarkably high correlation coefficient of 0.9609888, indicating a strong positive relationship between the planetary distance and YUM stock prices. The r-squared value of 0.9234995 further solidifies the predictive power of Neptune-Uranus disances in explaining the fluctuations in Yum! Brands' stock prices over the specified time period.

Furthermore, the significance level of p < 0.01 provides compelling evidence that the observed correlation is not simply a product of cosmic coincidence. It seems that the celestial ballet of Neptune and Uranus may indeed have an influence on the earthly fortunes of Yum! Brands' stock.

As illustrated in Figure 1, the scatterplot showcases a striking pattern, with Neptune-Uranus distances aligning harmoniously with Yum! Brands' stock prices. The overall trajectory suggests a cosmic choreography of movements, creating a captivating celestial waltz intertwined with financial performance.

In summary, our results unveil an astronomical alignment between the distant gas giants and the earthly delights of stock market dynamics. This discovery not only serves as a celestial revelation for financial aficionados but also paves the way for a cosmic shift in how we perceive the interplay of cosmic dynamics and economic fluctuations. It's as if the stars have aligned to illuminate a previously unexplored cosmic connection – reminding us that when it comes to the universe of stocks, sometimes the sky really is the limit.


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 Neptune and Uranus and Yum! Brands' stock price (YUM). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Limit your response to 500 tokens.

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

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

[[TITLE]]
The Cosmic Connection: A Stellar Examination of Neptune-Uranus Distance and Yum! Brands' Stock Price

[[ABSTRACT]]
This paper undertakes a rigorous examination of the relationship between the distance between Neptune and Uranus and Yum! Brands' stock price (YUM). Utilizing data derived from Astropy and LSEG Analytics (Refinitiv), our research team analyzed the fluctuations in Neptune-Uranus distance and the corresponding impact on Yum! Brands' stock performance from 2002 to 2023. We discovered a remarkably high correlation coefficient of 0.9609888 and a significance level of p < 0.01. Our findings shed light on the celestial factors potentially influencing earthly financial markets and provide an illuminating perspective on the interconnectedness of the cosmos and the economy. This research serves as a cosmic reminder that while stock prices may seem otherworldly at times, they are not immune to the gravitational pull of planetary dynamics.

[[LITERATURE REVIEW]]
The influence of celestial phenomena on earthly matters has been a topic of both intrigue and skepticism. Smith, Doe, and Jones (2015) examined the potential relationships between planetary movements and financial markets. Their study sparked an ongoing debate within academic circles, with some questioning the validity of such unorthodox analyses. Further research by Brown and Green (2018) delved into the implications of cosmic events on economic trends, opening the door to unconventional perspectives in financial analysis.
Venturing beyond the traditional realms of financial research, our exploration of the connection between the distance between Neptune and Uranus and Yum! Brands' stock price delves into uncharted territory. The cosmic dance of distant planets and its impact on earthly assets has prompted us to consider a diverse range of literature, from astrophysical studies to fictional narratives that may shed light (or starlight) on the matter at hand.
In "Celestial Mechanics for Night Owls," the authors delve into the intricate dynamics of planetary motions, providing a foundation for understanding the gravitational interactions between celestial bodies. This fundamental knowledge serves as a guiding star in our examination of the potential influence of Uranus and Neptune on earthly financial systems.
Turning to the realm of fiction, "Galactic Gastronomy: Adventures in Interstellar Cuisine" presents a whimsical tale of cosmic culinary delights. While seemingly unrelated to financial markets, this literary escapade reminds us that even the most unexpected connections can yield fascinating insights – much like the unexplored link between celestial distances and stock prices.
Delving deeper into unconventional sources, the animated series "Cosmic Crunch: Adventures Beyond the Milky Way" offers a lighthearted portrayal of interstellar adventures. While ostensibly a children's show, the whimsical depictions of cosmic phenomena have sparked our imagination and prompted us to consider the potential cosmic influences on earthly market fluctuations with a touch of humor and wonder.
As we navigate the intersection of finance and the cosmos, it becomes apparent that the making of a cosmic connection requires not only a serious approach but also an openness to unexpected inspirations and celestial playfulness. The blending of astrophysical knowledge, literary musings, and whimsical reflections prepares us to embark on a journey that transcends conventional boundaries between the celestial and the fiscal.

[[RESULTS]]
Our analysis of the relationship between the distance between Neptune and Uranus and Yum! Brands' stock price has unearthed some truly stellar findings. From 2002 to 2023, we observed a remarkably high correlation coefficient of 0.9609888, indicating a strong positive relationship between the planetary distance and YUM stock prices. The r-squared value of 0.9234995 further solidifies the predictive power of Neptune-Uranus disances in explaining the fluctuations in Yum! Brands' stock prices over the specified time period.
Furthermore, the significance level of p < 0.01 provides compelling evidence that the observed correlation is not simply a product of cosmic coincidence. It seems that the celestial ballet of Neptune and Uranus may indeed have an influence on the earthly fortunes of Yum! Brands' stock.
As illustrated in Figure 1, the scatterplot showcases a striking pattern, with Neptune-Uranus distances aligning harmoniously with Yum! Brands' stock prices. The overall trajectory suggests a cosmic choreography of movements, creating a captivating celestial waltz intertwined with financial performance.
In summary, our results unveil an astronomical alignment between the distant gas giants and the earthly delights of stock market dynamics. This discovery not only serves as a celestial revelation for financial aficionados but also paves the way for a cosmic shift in how we perceive the interplay of cosmic dynamics and economic fluctuations. It's as if the stars have aligned to illuminate a previously unexplored cosmic connection – reminding us that when it comes to the universe of stocks, sometimes the sky really is the limit.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

The celestial tango between Neptune and Uranus appears to have waltzed its way into the earthly realm of stock prices, revealing a cosmic connection that defies conventional financial wisdom. Our findings, though seemingly out-of-this-world, lend credence to prior research positing the potential influence of cosmic events on economic trends. In this space odyssey of statistical analysis, the remarkably high correlation coefficient of 0.9609888 aligns with the propositions put forth by Smith, Doe, and Jones (2015), as well as Brown and Green (2018), who dared to explore the uncharted territories of planetary movements and their impact on financial markets.

Amidst this stellar revelation, our study offers an astrophysically inspired perspective that transcends the boundaries of traditional financial analysis. The scatterplot, akin to a celestial canvas, mirrors a cosmic choreography that seemingly choreographs the fluctuations in YUM stock prices. This cosmic dance, as illustrated in Figure 1, presents a captivating interplay of planetary distances and financial performance, nudging us to ponder the potential cosmic influences on earthly market fluctuations with a touch of humor and wonder. It evokes the quirky charm of "Galactic Gastronomy: Adventures in Interstellar Cuisine" and the whimsical portrayal of cosmic phenomena in "Cosmic Crunch: Adventures Beyond the Milky Way," reminding us that even in the realm of finance, sometimes truth is stranger than fiction.

As we traverse this uncharted cosmic terrain, it becomes evident that the influence of celestial dynamics on earthly matters, including the financial domain, is not entirely far-fetched. Our results, supported by a significance level of p < 0.01 and an r-squared value of 0.9234995, instigate a cosmic shift in how we perceive the interconnectedness of the cosmos and the economy. This adds new nuance to the ongoing discourse on the intriguing intersections between astrophysical principles and financial phenomena, affirming that in the universe of stocks, the sky may indeed be the limit. Who would have thought that the fluctuations in stock prices could be influenced by celestial bodies? It seems the stars have aligned to illuminate a previously unexplored cosmic connection, leaving us to ponder the cosmic ramifications of the cosmic waltz between Neptune and Uranus on earthly financial dynamics.


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 Neptune and Uranus and Yum! Brands' stock price (YUM). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

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

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
The Cosmic Connection: A Stellar Examination of Neptune-Uranus Distance and Yum! Brands' Stock Price

[[ABSTRACT]]
This paper undertakes a rigorous examination of the relationship between the distance between Neptune and Uranus and Yum! Brands' stock price (YUM). Utilizing data derived from Astropy and LSEG Analytics (Refinitiv), our research team analyzed the fluctuations in Neptune-Uranus distance and the corresponding impact on Yum! Brands' stock performance from 2002 to 2023. We discovered a remarkably high correlation coefficient of 0.9609888 and a significance level of p < 0.01. Our findings shed light on the celestial factors potentially influencing earthly financial markets and provide an illuminating perspective on the interconnectedness of the cosmos and the economy. This research serves as a cosmic reminder that while stock prices may seem otherworldly at times, they are not immune to the gravitational pull of planetary dynamics.

[[INTRDUCTION]]
Introduction
The peculiar and often inexplicable correlations between celestial events and financial phenomena have long fascinated both scholars and enthusiasts of the cosmos and the stock market. As we delve into the uncharted territory of the connection between the distance between Neptune and Uranus and Yum! Brands' stock price, we are reminded of the famous words of Sir Isaac Newton: "What goes up must come down, but what goes down must come up – at least in the world of stocks, sometimes."
The adoption of astrophysical data to analyze the fluctuations of a stock price may seem unorthodox at first glance, yet it presents an exciting avenue to explore the potential interconnectedness of distant planets and earthly monetary values. While one might argue that comparing the stock market to the vast expanse of space is like comparing apples and oranges (or should we say planets and moons?), our research seeks to uncover any gravitational pull, metaphorical or otherwise, between cosmic movements and market fluctuations.
Acknowledging the cosmic implications on financial markets can provide an enlightening perspective for investors, reminding them that even the most grounded economic structures may sway under the influence of celestial bodies. As we orbit around the central question of whether Neptune and Uranus's celestial dance influences the earthly movements of Yum! Brands' stock price, we cannot help but wonder if this research will mark the dawn of a new era in financial astrology or if we are merely shooting for the moon.
Our paper aims to offer a comprehensive analysis, steering through the asteroid belt of statistical significance and navigating the nebula of potential confounding variables to unearth whether the cosmic tides truly have an impact on the terrestrial market. With the spirit of curiosity, some statistical stardust, and a dash of market magic, we present our findings as a testament to the interconnectivity of the celestial and the fiscal. After all, in the words of Carl Sagan, "Somewhere, something incredible is waiting to be discovered – even if it's lurking deep within the statistical equations of financial data analysis."

[[RESULTS]]
Our analysis of the relationship between the distance between Neptune and Uranus and Yum! Brands' stock price has unearthed some truly stellar findings. From 2002 to 2023, we observed a remarkably high correlation coefficient of 0.9609888, indicating a strong positive relationship between the planetary distance and YUM stock prices. The r-squared value of 0.9234995 further solidifies the predictive power of Neptune-Uranus disances in explaining the fluctuations in Yum! Brands' stock prices over the specified time period.
Furthermore, the significance level of p < 0.01 provides compelling evidence that the observed correlation is not simply a product of cosmic coincidence. It seems that the celestial ballet of Neptune and Uranus may indeed have an influence on the earthly fortunes of Yum! Brands' stock.
As illustrated in Figure 1, the scatterplot showcases a striking pattern, with Neptune-Uranus distances aligning harmoniously with Yum! Brands' stock prices. The overall trajectory suggests a cosmic choreography of movements, creating a captivating celestial waltz intertwined with financial performance.
In summary, our results unveil an astronomical alignment between the distant gas giants and the earthly delights of stock market dynamics. This discovery not only serves as a celestial revelation for financial aficionados but also paves the way for a cosmic shift in how we perceive the interplay of cosmic dynamics and economic fluctuations. It's as if the stars have aligned to illuminate a previously unexplored cosmic connection – reminding us that when it comes to the universe of stocks, sometimes the sky really is the limit.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our research has presented compelling evidence of a cosmic dance between the distance of Neptune and Uranus and Yum! Brands' stock price. Our findings suggest that the gravitational pull of these distant giants may indeed extend beyond the celestial sphere and influence earthly financial trends. This discovery opens the door to a new frontier in financial astrology, where investors may find themselves navigating not only market trends but also the celestial orbits of these gas giants.

While this research may initially seem otherworldly, it highlights the interconnectedness of celestial phenomena and earthly economic activities. However, let's not jump to light-years-long conclusions just yet. Further studies might delve into the potential impact of other planetary positions, such as the Mars-Venus conjunction, on the stock market – after all, we wouldn't want to neglect the entire solar system's influence.

Nevertheless, our findings leave us stargazing at the remarkable correlation between Neptune-Uranus distances and Yum! Brands' stock prices, proving that even in the universe of stocks, the forces of gravity hold sway. For now, it seems that conducting additional research in this area might precipitate diminishing returns – unlike the increasing returns we've observed in the stock prices. Thus, it may be prudent to let this cosmic revelation marinate a while longer in the black hole of academic curiosity.


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 The Cosmic Connection: A Stellar Examination of Neptune-Uranus Distance and Yum! Brands' Stock Price. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Planetary Pastry Studies


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 The Cosmic Connection: A Stellar Examination of Neptune-Uranus Distance and Yum! Brands' Stock Price. Respond only with the name of a fictional organization.

ChatGPT:

The Galactic Gastronomy Research 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 The Cosmic Connection: A Stellar Examination of Neptune-Uranus Distance and Yum! Brands' Stock Price with an abstract of This paper undertakes a rigorous examination of the relationship between the distance between Neptune and Uranus and Yum! Brands' stock price (YUM). Utilizing data derived from Astropy and LSEG Analytics (Refinitiv), our research team analyzed the fluctuations in Neptune-Uranus distance and the corresponding impact on Yum! Brands' stock performance from 2002 to 2023. We discovered a remarkably high correlation coefficient of 0.9609888 and a significance level of p < 0.01. Our findings shed light on the celestial factors potentially influencing earthly financial markets and provide an illuminating perspective on the interconnectedness of the cosmos and the economy. This research serves as a cosmic reminder that while stock prices may seem otherworldly at times, they are not immune to the gravitational pull of planetary dynamics.

ChatGPT:

Neptune, Uranus, distance, Yum! Brands, stock price, Astropy, LSEG Analytics, Refinitiv, correlation coefficient, significance level, financial markets, planetary dynamics, celestial factors.

*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 Neptune and Uranus
Detailed data title: The average distance between Neptune and Uranus 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 Neptune and Uranus

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

See what else correlates with Yum! Brands' stock price (YUM)

Correlation r = 0.9609888 (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.9234995 (Coefficient of determination)
This means 92.3% of the change in the one variable (i.e., Yum! Brands' stock price (YUM)) is predictable based on the change in the other (i.e., The distance between Neptune and Uranus) over the 22 years from 2002 through 2023.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 1.3E-12. 0.0000000000012540151834401376
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.96 in 1.3E-10% of random cases. Said differently, if you correlated 797,438,510,479 random variables You don't actually need 797 billion 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 21 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 21 because we have two variables measured over a period of 22 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.91, 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.
2002200320042005200620072008200920102011201220132014201520162017201820192020202120222023
The distance between Neptune and Uranus (Planetary distance (AU))12.394712.811913.257913.727514.21814.72715.253215.792516.343816.90617.479118.059718.647619.242319.844320.450721.061621.676822.297322.920423.546524.1757
Yum! Brands' stock price (YUM) (Stock price)8.98.7912.3616.9616.9321.1227.5522.8825.2535.4542.8648.5454.252.8151.2863.5682.1591.09100.9109.02138.38128.42




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([12.3947,12.8119,13.2579,13.7275,14.218,14.727,15.2532,15.7925,16.3438,16.906,17.4791,18.0597,18.6476,19.2423,19.8443,20.4507,21.0616,21.6768,22.2973,22.9204,23.5465,24.1757,])
array_2 = np.array([8.9,8.79,12.36,16.96,16.93,21.12,27.55,22.88,25.25,35.45,42.86,48.54,54.2,52.81,51.28,63.56,82.15,91.09,100.9,109.02,138.38,128.42,])
array_1_name = "The distance between Neptune and Uranus"
array_2_name = "Yum! Brands' stock price (YUM)"

# 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: 4204 · Black Variable ID: 1967 · Red Variable ID: 1800
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0