about · email me · subscribe
Spurious correlation #4,526 · View random

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is Air pollution in Houghton, Michigan and the second variable is Total MLB League Revenue.  The chart goes from 2001 to 2020, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

The smog in Houghton creates a uniquely dense atmosphere, leading to higher air resistance for baseballs. This means batters have to swing harder, resulting in more home runs and ultimately driving up the total MLB league revenue due to increased fan excitement.

Model: dalle-3
Prompt: Create an image of a pollution-choked Houghton, Michigan, with smog hanging in the air. In the distance, a baseball is seen soaring through the haze, barely visible against the polluted sky. As it travels, it encounters resistance, causing batters to swing with extra force. Meanwhile, a rising graphic displays the increasing MLB league revenue, reflecting the heightened excitement and interest in the game due to the surge in home runs. The whole scene should be shrouded in a hazy, dream-like atmospheric aura, with the baseball and the revenue graphic standing out as the focal points. 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: Air pollution in Houghton, Michigan and Total MLB League Revenue. 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: A TIME magazine cover image Sci-fi fantacy Low poly A Discovery magazine cover image Scalar art
ChatGPT: A Discovery magazine cover image

Model: gpt-3.5-turbo-1106
System prompt: You describe simple visual scenes that depict the two variables stated. You combine both variables into one scene.
User prompt: Please describe a visual scene that prominently depicts both Air pollution in Houghton, Michigan and Total MLB League Revenue, in the following situation: The smog in Houghton creates a uniquely dense atmosphere, leading to higher air resistance for baseballs. This means batters have to swing harder, resulting in more home runs and ultimately driving up the total MLB league revenue due to increased fan excitement.. Keep the description simple.
ChatGPT: In Houghton, Michigan, the air is thick with smog, creating a hazy atmosphere. In the distance, a baseball is soaring through the air, barely visible against the smog. As it travels, it encounters resistance, causing batters to swing with extra force. Meanwhile, in another part of the scene, a graphic rises, displaying the increasing MLB league revenue, reflecting the heightened excitement and interest in the game due to the surge in home runs.

Model: gpt-3.5-turbo-1106
System prompt: You write and improve image generation prompts for DALLE-3. You maintain the same subjects, but enhance the visuals.
User prompt: Please respond with an image generation prompt that would be likely to create an interesting visual using DALLE-3, using the following style: [ A Discovery magazine cover image ] and depicting this scene: In Houghton, Michigan, the air is thick with smog, creating a hazy atmosphere. In the distance, a baseball is soaring through the air, barely visible against the smog. As it travels, it encounters resistance, causing batters to swing with extra force. Meanwhile, in another part of the scene, a graphic rises, displaying the increasing MLB league revenue, reflecting the heightened excitement and interest in the game due to the surge in home runs. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Create an image of a pollution-choked Houghton, Michigan, with smog hanging in the air. In the distance, a baseball is seen soaring through the haze, barely visible against the polluted sky. As it travels, it encounters resistance, causing batters to swing with extra force. Meanwhile, a rising graphic displays the increasing MLB league revenue, reflecting the heightened excitement and interest in the game due to the surge in home runs. The whole scene should be shrouded in a hazy, dream-like atmospheric aura, with the baseball and the revenue graphic standing out as the focal points.

*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 Air pollution in Houghton, Michigan caused Total MLB League Revenue to increase.\Make it sound serious until the end.

AI academic paper

(Because p < 0.01)
Pitching Pollution: A Breath of Fresh Air for MLB Revenue in Houghton, Michigan

Journal of Environmental Economics and Sports Management

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 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 Air pollution in Houghton, Michigan and Total MLB League Revenue. Make lots of jokes, goofy observations, and puns.

Include a pun in the title.

Your research team used data from Environmental Protection Agency and Statista to assess this nagging question. You found a correlation coefficient of 0.9999892 and p < 0.01 for 2001 to 2020.

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]]
"Pitching Pollution: A Breath of Fresh Air for MLB Revenue in Houghton, Michigan"

[[ABSTRACT]]
In this study, we take a deep breath and delve into the connection between air pollution in Houghton, Michigan, and the total Major League Baseball (MLB) league revenue. While many may think we're just "fanning the air" with this research, our findings show a striking correlation between the two seemingly unrelated factors. Utilizing data from the Environmental Protection Agency and Statista, we calculated a correlation coefficient of 0.9999892 and p < 0.01 for the period spanning from 2001 to 2020. This statistically significant relationship between air quality in the charming Houghton region and the financial prosperity of America's favorite pastime has left us "gasping for air" in disbelief. Our findings may have folks wondering if there's a “puff piece” in the economic playbook that we're missing. So gear up to "clear the air" and join us as we unravel the "air-raising" connection between air pollution in Houghton, Michigan, and MLB league revenue.


Model: gpt-3.5-turbo-1106
System prompt: You are a 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 Air pollution in Houghton, Michigan and Total MLB League Revenue. Make lots of 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]]
"Pitching Pollution: A Breath of Fresh Air for MLB Revenue in Houghton, Michigan"

[[ABSTRACT]]
In this study, we take a deep breath and delve into the connection between air pollution in Houghton, Michigan, and the total Major League Baseball (MLB) league revenue. While many may think we're just "fanning the air" with this research, our findings show a striking correlation between the two seemingly unrelated factors. Utilizing data from the Environmental Protection Agency and Statista, we calculated a correlation coefficient of 0.9999892 and p < 0.01 for the period spanning from 2001 to 2020. This statistically significant relationship between air quality in the charming Houghton region and the financial prosperity of America's favorite pastime has left us "gasping for air" in disbelief. Our findings may have folks wondering if there's a “puff piece” in the economic playbook that we're missing. So gear up to "clear the air" and join us as we unravel the "air-raising" connection between air pollution in Houghton, Michigan, and MLB league revenue.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:

INTRODUCTION

As we know, the air we breathe plays a critical role in our health and well-being. But who would have thought that it could also have a significant impact on the financial success of Major League Baseball (MLB)? In this paper, we aim to uncover the surprising relationship between air pollution in Houghton, Michigan, and the total MLB league revenue. It's a breath of fresh air in the world of economic analysis, as we navigate through the realms of environmental science and sports finance to untangle this intriguing connection.

Houghton, Michigan, renowned for its picturesque landscapes and pristine natural beauty, might not be the first place that comes to mind when one thinks of baseball revenue. You're more likely to envision grand stadiums, hot dogs, and avid fans cheering on their favorite teams. However, the winds of change have blown in a new perspective, compelling us to ponder whether air pollution could be the unsung hero or villain in the game of economic success.

As we embark on this journey, we must inhale the reality that air pollution is a pervasive issue with potential implications far beyond its apparent environmental consequences. While it’s tempting to “air” on the side of caution with our findings, our analysis “cleared the air” on the link between levels of pollution and the financial health of MLB. We have set out to debunk the myth that the only thing “foul” in baseball is a stray ball. Could it be that smog and financial success have been engaged in a clandestine romance?

The data, gathered from authoritative sources such as the Environmental Protection Agency and Statista, were subjected to rigorous statistical analysis. Lo and behold, the correlation coefficient of 0.9999892 and p < 0.01 for the period from 2001 to 2020 left us stunned. The air pollution levels in Houghton, Michigan, seemed to wield a remarkable influence on the total MLB league revenue, causing us to wonder if there might be a “puff piece” hidden in the annals of economic theory.

As we delve into the nuances of this unusual relationship, we invite our esteemed readers to brace themselves for a whirlwind of insights and, yes, a fair share of wisecracks. Join us in unraveling this “air-raising” connection with a spirit of curiosity as we attempt to go beyond the “smog and mirrors” of traditional economic analysis. So buckle up, and let’s "clear the air" as we explore the unexpected intersection of air pollution in Houghton, Michigan, and the financial fortune of MLB – a story that's sure to take your breath away.


Model: gpt-3.5-turbo-1106
System prompt: You are a 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 Air pollution in Houghton, Michigan and Total MLB League Revenue. Make lots of 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 movies that you watched that are tangentially related to the topic.

Here is the title and abstract of the paper:
[[TITLE]]
"Pitching Pollution: A Breath of Fresh Air for MLB Revenue in Houghton, Michigan"

[[ABSTRACT]]
In this study, we take a deep breath and delve into the connection between air pollution in Houghton, Michigan, and the total Major League Baseball (MLB) league revenue. While many may think we're just "fanning the air" with this research, our findings show a striking correlation between the two seemingly unrelated factors. Utilizing data from the Environmental Protection Agency and Statista, we calculated a correlation coefficient of 0.9999892 and p < 0.01 for the period spanning from 2001 to 2020. This statistically significant relationship between air quality in the charming Houghton region and the financial prosperity of America's favorite pastime has left us "gasping for air" in disbelief. Our findings may have folks wondering if there's a “puff piece” in the economic playbook that we're missing. So gear up to "clear the air" and join us as we unravel the "air-raising" connection between air pollution in Houghton, Michigan, and MLB league revenue.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
INTRODUCTION
As we know, the air we breathe plays a critical role in our health and well-being. But who would have thought that it could also have a significant impact on the financial success of Major League Baseball (MLB)? In this paper, we aim to uncover the surprising relationship between air pollution in Houghton, Michigan, and the total MLB league revenue. It's a breath of fresh air in the world of economic analysis, as we navigate through the realms of environmental science and sports finance to untangle this intriguing connection.
Houghton, Michigan, renowned for its picturesque landscapes and pristine natural beauty, might not be the first place that comes to mind when one thinks of baseball revenue. You're more likely to envision grand stadiums, hot dogs, and avid fans cheering on their favorite teams. However, the winds of change have blown in a new perspective, compelling us to ponder whether air pollution could be the unsung hero or villain in the game of economic success.
As we embark on this journey, we must inhale the reality that air pollution is a pervasive issue with potential implications far beyond its apparent environmental consequences. While it’s tempting to “air” on the side of caution with our findings, our analysis “cleared the air” on the link between levels of pollution and the financial health of MLB. We have set out to debunk the myth that the only thing “foul” in baseball is a stray ball. Could it be that smog and financial success have been engaged in a clandestine romance?
The data, gathered from authoritative sources such as the Environmental Protection Agency and Statista, were subjected to rigorous statistical analysis. Lo and behold, the correlation coefficient of 0.9999892 and p < 0.01 for the period from 2001 to 2020 left us stunned. The air pollution levels in Houghton, Michigan, seemed to wield a remarkable influence on the total MLB league revenue, causing us to wonder if there might be a “puff piece” hidden in the annals of economic theory.
As we delve into the nuances of this unusual relationship, we invite our esteemed readers to brace themselves for a whirlwind of insights and, yes, a fair share of wisecracks. Join us in unraveling this “air-raising” connection with a spirit of curiosity as we attempt to go beyond the “smog and mirrors” of traditional economic analysis. So buckle up, and let’s "clear the air" as we explore the unexpected intersection of air pollution in Houghton, Michigan, and the financial fortune of MLB – a story that's sure to take your breath away.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

The literature on the connection between air pollution and economic phenomena offers a rich tapestry of insightful studies and, dare I say, some "punny" insights. In "Air Quality and Major League Baseball Revenues" by Smith et al., the authors find an unexpected correlation between air pollution levels and MLB financial success – a discovery that has us "gasping for air" with anticipation. Similarly, Doe's study "A Breath of Fresh Wealth: The Impact of Air Pollution on MLB Revenue" sheds light on the intricate relationship between airborne contaminants and the bottom line of America's favorite pastime.

Turning the pages to non-fiction works, we encounter "The Economics of Clean Air" by Jones, which, while addressing broader environmental ramifications, intriguingly alludes to the potential ramifications of cleaner air on industries that are seemingly unrelated, such as professional sports. Adding another layer of sophistication to our understanding, "The Financial Winds of Change: How Air Pollution Shapes Economic Landscapes" by Green delves into the broader impact of air quality on economic sectors, from manufacturing to entertainment – a work that blows us away with its relevance.

Venturing into the world of fiction that seems oddly linked to our investigation, we find J.R.R. Tolkien's "The Fellowship of the Clean Air." While not directly related to air pollution and MLB revenue, the title alone sparks creativity in associative thinking that sometimes leads to groundbreaking academic breakthroughs! Adding a dash of whimsy, Terry Pratchett's "Going Postal" humorously explores the realm of economic shenanigans and might just inspire us to uncover some "air" of legitimacy in our unlikely hypothesis.

Taking a cinematic detour, our analysis wouldn’t be complete without acknowledging films that, in some uncanny way, touch upon our research focus. "Moneyball" provides us with a glimpse into the complexities of the MLB financial landscape, urging us to explore uncharted territories in our quest for unanticipated links. Meanwhile, "The Great Outdoors" lightheartedly underscores the aesthetic and atmospheric qualities of the environment, reminding us that the air we breathe may play a larger role in our lives – and the economy – than meets the eye.

As we weave through these scholarly and not-so-scholarly sources, it's evident that our investigation into the correlation between air pollution in Houghton, Michigan, and MLB league revenue is as much an intellectual endeavor as it is a whimsical excursion into uncharted research territory. So, let’s take a deep breath and press on with our analysis, as the unexpected often yields the most delightful surprises.


Model: gpt-3.5-turbo-1106
System prompt: You are a 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 Air pollution in Houghton, Michigan and Total MLB League Revenue. Make lots of 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 Environmental Protection Agency and Statista . You used data from 2001 to 2020

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]]
"Pitching Pollution: A Breath of Fresh Air for MLB Revenue in Houghton, Michigan"

[[ABSTRACT]]
In this study, we take a deep breath and delve into the connection between air pollution in Houghton, Michigan, and the total Major League Baseball (MLB) league revenue. While many may think we're just "fanning the air" with this research, our findings show a striking correlation between the two seemingly unrelated factors. Utilizing data from the Environmental Protection Agency and Statista, we calculated a correlation coefficient of 0.9999892 and p < 0.01 for the period spanning from 2001 to 2020. This statistically significant relationship between air quality in the charming Houghton region and the financial prosperity of America's favorite pastime has left us "gasping for air" in disbelief. Our findings may have folks wondering if there's a “puff piece” in the economic playbook that we're missing. So gear up to "clear the air" and join us as we unravel the "air-raising" connection between air pollution in Houghton, Michigan, and MLB league revenue.

[[INTRODUCTION]]
INTRODUCTION
As we know, the air we breathe plays a critical role in our health and well-being. But who would have thought that it could also have a significant impact on the financial success of Major League Baseball (MLB)? In this paper, we aim to uncover the surprising relationship between air pollution in Houghton, Michigan, and the total MLB league revenue. It's a breath of fresh air in the world of economic analysis, as we navigate through the realms of environmental science and sports finance to untangle this intriguing connection.
Houghton, Michigan, renowned for its picturesque landscapes and pristine natural beauty, might not be the first place that comes to mind when one thinks of baseball revenue. You're more likely to envision grand stadiums, hot dogs, and avid fans cheering on their favorite teams. However, the winds of change have blown in a new perspective, compelling us to ponder whether air pollution could be the unsung hero or villain in the game of economic success.
As we embark on this journey, we must inhale the reality that air pollution is a pervasive issue with potential implications far beyond its apparent environmental consequences. While it’s tempting to “air” on the side of caution with our findings, our analysis “cleared the air” on the link between levels of pollution and the financial health of MLB. We have set out to debunk the myth that the only thing “foul” in baseball is a stray ball. Could it be that smog and financial success have been engaged in a clandestine romance?
The data, gathered from authoritative sources such as the Environmental Protection Agency and Statista, were subjected to rigorous statistical analysis. Lo and behold, the correlation coefficient of 0.9999892 and p < 0.01 for the period from 2001 to 2020 left us stunned. The air pollution levels in Houghton, Michigan, seemed to wield a remarkable influence on the total MLB league revenue, causing us to wonder if there might be a “puff piece” hidden in the annals of economic theory.
As we delve into the nuances of this unusual relationship, we invite our esteemed readers to brace themselves for a whirlwind of insights and, yes, a fair share of wisecracks. Join us in unraveling this “air-raising” connection with a spirit of curiosity as we attempt to go beyond the “smog and mirrors” of traditional economic analysis. So buckle up, and let’s "clear the air" as we explore the unexpected intersection of air pollution in Houghton, Michigan, and the financial fortune of MLB – a story that's sure to take your breath away.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

METHODOLOGY

To uncover the hidden relationship between air pollution in Houghton, Michigan, and the total MLB league revenue, we embarked on a research journey as exhilarating as a seventh-inning stretch. Our data collection efforts were as meticulous as a groundskeeper grooming the outfield, covering the period from 2001 to 2020.

First, we harnessed the power of the internet, navigating the virtual bases like skilled outfielders tracking down fly balls. We gallantly scoured through databases, websites, and statistical resources, channeling our inner Sherlock Holmes to unravel clues that could shed light on this surprising connection. The Environmental Protection Agency and Statista emerged as our main sources of data, akin to star players in a championship-winning lineup.

With an analytical arsenal that would make even a sabermetrician proud, we crunched numbers and dove into statistical analyses with the precision of a seasoned umpire calling strikes. We calculated correlation coefficients and p-values with the same focus and determination that a batter brings to the plate, swinging for the fences in pursuit of a home run.

The statistical methods employed in this study had more layers than a well-executed double play, incorporating techniques such as multiple regression analysis, trend analysis, and time series modeling. We tailored our approach to ensure that our findings stood strong like an infield defense, ready to field any potential criticisms with grace and resilience.

It is worth noting, however, that our research methods were not without challenges. Much like a pitcher facing a formidable lineup, we encountered curveballs in the form of data limitations, seasonal fluctuations, and the ever-elusive specter of confounding variables. Yet, true to the spirit of the game, we maneuvered through these obstacles with unwavering determination, aiming to deliver a research grand slam that would leave our audience in awe.

In summary, our methodology was a mix of analytical rigor, tenacity, and a touch of playful creativity—mirroring the spirit of baseball itself. So, as we round the bases, preparing to present our findings, we invite readers to join us in celebrating a research journey that captured the essence of both scientific inquiry and the thrill of the game. And remember, in the game of research, as in baseball, a little levity can make the grandest slam all the more enjoyable.


Model: gpt-3.5-turbo-1106
System prompt: You are a 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 Air pollution in Houghton, Michigan and Total MLB League Revenue. Make lots of 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 Environmental Protection Agency and Statista .

For the time period 2001 to 2020, you found a correlation 0.9999892, r-squared of 0.9999784, 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]]
"Pitching Pollution: A Breath of Fresh Air for MLB Revenue in Houghton, Michigan"

[[ABSTRACT]]
In this study, we take a deep breath and delve into the connection between air pollution in Houghton, Michigan, and the total Major League Baseball (MLB) league revenue. While many may think we're just "fanning the air" with this research, our findings show a striking correlation between the two seemingly unrelated factors. Utilizing data from the Environmental Protection Agency and Statista, we calculated a correlation coefficient of 0.9999892 and p < 0.01 for the period spanning from 2001 to 2020. This statistically significant relationship between air quality in the charming Houghton region and the financial prosperity of America's favorite pastime has left us "gasping for air" in disbelief. Our findings may have folks wondering if there's a “puff piece” in the economic playbook that we're missing. So gear up to "clear the air" and join us as we unravel the "air-raising" connection between air pollution in Houghton, Michigan, and MLB league revenue.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
INTRODUCTION
As we know, the air we breathe plays a critical role in our health and well-being. But who would have thought that it could also have a significant impact on the financial success of Major League Baseball (MLB)? In this paper, we aim to uncover the surprising relationship between air pollution in Houghton, Michigan, and the total MLB league revenue. It's a breath of fresh air in the world of economic analysis, as we navigate through the realms of environmental science and sports finance to untangle this intriguing connection.
Houghton, Michigan, renowned for its picturesque landscapes and pristine natural beauty, might not be the first place that comes to mind when one thinks of baseball revenue. You're more likely to envision grand stadiums, hot dogs, and avid fans cheering on their favorite teams. However, the winds of change have blown in a new perspective, compelling us to ponder whether air pollution could be the unsung hero or villain in the game of economic success.
As we embark on this journey, we must inhale the reality that air pollution is a pervasive issue with potential implications far beyond its apparent environmental consequences. While it’s tempting to “air” on the side of caution with our findings, our analysis “cleared the air” on the link between levels of pollution and the financial health of MLB. We have set out to debunk the myth that the only thing “foul” in baseball is a stray ball. Could it be that smog and financial success have been engaged in a clandestine romance?
The data, gathered from authoritative sources such as the Environmental Protection Agency and Statista, were subjected to rigorous statistical analysis. Lo and behold, the correlation coefficient of 0.9999892 and p < 0.01 for the period from 2001 to 2020 left us stunned. The air pollution levels in Houghton, Michigan, seemed to wield a remarkable influence on the total MLB league revenue, causing us to wonder if there might be a “puff piece” hidden in the annals of economic theory.
As we delve into the nuances of this unusual relationship, we invite our esteemed readers to brace themselves for a whirlwind of insights and, yes, a fair share of wisecracks. Join us in unraveling this “air-raising” connection with a spirit of curiosity as we attempt to go beyond the “smog and mirrors” of traditional economic analysis. So buckle up, and let’s "clear the air" as we explore the unexpected intersection of air pollution in Houghton, Michigan, and the financial fortune of MLB – a story that's sure to take your breath away.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

RESULTS

The results of our analysis have left us, quite literally, gasping for air. In examining the data collected from the Environmental Protection Agency and Statista for the period from 2001 to 2020, we discovered a stunning correlation between air pollution in Houghton, Michigan and the total Major League Baseball (MLB) league revenue.

The correlation coefficient of 0.9999892 and r-squared of 0.9999784 unveiled a relationship so strong that we had to pause and catch our breath. The p-value of less than 0.01 further solidified the significance of this connection, leaving us in no doubt that there is more to Houghton’s air quality than meets the eye.

Our findings are graphically depicted in Figure 1, where a scatterplot vividly illustrates the tight bond between air pollution levels and MLB league revenue. The steep upward trajectory of the data points practically shouts, "Take a deep breath and pay attention to this correlation!"

While it may seem like a tall tale, our research has, quite unexpectedly, given a new meaning to the phrase "clearing the air." The inescapable conclusion is that the air we breathe in Houghton, Michigan appears to wield a remarkable influence on the financial health of America's favorite pastime.

In conclusion, our results have not only revealed a striking correlation between air pollution in Houghton and MLB league revenue, but they have also blown away any preconceived notions about the impact of environmental factors on economic prosperity. Our findings may inspire a whole new line of inquiry into the intersection of environmental quality and economic success, providing a breath of fresh air in the fields of both environmental science and sports finance. So, let's all take a moment to inhale the significance of this discovery and appreciate the unexpected ways in which the winds of change can shape our economic landscapes.


Model: gpt-3.5-turbo-1106
System prompt: You are a 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 Air pollution in Houghton, Michigan and Total MLB League Revenue. Make lots of 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]]
"Pitching Pollution: A Breath of Fresh Air for MLB Revenue in Houghton, Michigan"

[[ABSTRACT]]
In this study, we take a deep breath and delve into the connection between air pollution in Houghton, Michigan, and the total Major League Baseball (MLB) league revenue. While many may think we're just "fanning the air" with this research, our findings show a striking correlation between the two seemingly unrelated factors. Utilizing data from the Environmental Protection Agency and Statista, we calculated a correlation coefficient of 0.9999892 and p < 0.01 for the period spanning from 2001 to 2020. This statistically significant relationship between air quality in the charming Houghton region and the financial prosperity of America's favorite pastime has left us "gasping for air" in disbelief. Our findings may have folks wondering if there's a “puff piece” in the economic playbook that we're missing. So gear up to "clear the air" and join us as we unravel the "air-raising" connection between air pollution in Houghton, Michigan, and MLB league revenue.

[[LITERATURE REVIEW]]
The literature on the connection between air pollution and economic phenomena offers a rich tapestry of insightful studies and, dare I say, some "punny" insights. In "Air Quality and Major League Baseball Revenues" by Smith et al., the authors find an unexpected correlation between air pollution levels and MLB financial success – a discovery that has us "gasping for air" with anticipation. Similarly, Doe's study "A Breath of Fresh Wealth: The Impact of Air Pollution on MLB Revenue" sheds light on the intricate relationship between airborne contaminants and the bottom line of America's favorite pastime.
Turning the pages to non-fiction works, we encounter "The Economics of Clean Air" by Jones, which, while addressing broader environmental ramifications, intriguingly alludes to the potential ramifications of cleaner air on industries that are seemingly unrelated, such as professional sports. Adding another layer of sophistication to our understanding, "The Financial Winds of Change: How Air Pollution Shapes Economic Landscapes" by Green delves into the broader impact of air quality on economic sectors, from manufacturing to entertainment – a work that blows us away with its relevance.
Venturing into the world of fiction that seems oddly linked to our investigation, we find J.R.R. Tolkien's "The Fellowship of the Clean Air." While not directly related to air pollution and MLB revenue, the title alone sparks creativity in associative thinking that sometimes leads to groundbreaking academic breakthroughs! Adding a dash of whimsy, Terry Pratchett's "Going Postal" humorously explores the realm of economic shenanigans and might just inspire us to uncover some "air" of legitimacy in our unlikely hypothesis.
Taking a cinematic detour, our analysis wouldn’t be complete without acknowledging films that, in some uncanny way, touch upon our research focus. "Moneyball" provides us with a glimpse into the complexities of the MLB financial landscape, urging us to explore uncharted territories in our quest for unanticipated links. Meanwhile, "The Great Outdoors" lightheartedly underscores the aesthetic and atmospheric qualities of the environment, reminding us that the air we breathe may play a larger role in our lives – and the economy – than meets the eye.
As we weave through these scholarly and not-so-scholarly sources, it's evident that our investigation into the correlation between air pollution in Houghton, Michigan, and MLB league revenue is as much an intellectual endeavor as it is a whimsical excursion into uncharted research territory. So, let’s take a deep breath and press on with our analysis, as the unexpected often yields the most delightful surprises.

[[RESULTS]]
RESULTS
The results of our analysis have left us, quite literally, gasping for air. In examining the data collected from the Environmental Protection Agency and Statista for the period from 2001 to 2020, we discovered a stunning correlation between air pollution in Houghton, Michigan and the total Major League Baseball (MLB) league revenue.
The correlation coefficient of 0.9999892 and r-squared of 0.9999784 unveiled a relationship so strong that we had to pause and catch our breath. The p-value of less than 0.01 further solidified the significance of this connection, leaving us in no doubt that there is more to Houghton’s air quality than meets the eye.
Our findings are graphically depicted in Figure 1, where a scatterplot vividly illustrates the tight bond between air pollution levels and MLB league revenue. The steep upward trajectory of the data points practically shouts, "Take a deep breath and pay attention to this correlation!"
While it may seem like a tall tale, our research has, quite unexpectedly, given a new meaning to the phrase "clearing the air." The inescapable conclusion is that the air we breathe in Houghton, Michigan appears to wield a remarkable influence on the financial health of America's favorite pastime.
In conclusion, our results have not only revealed a striking correlation between air pollution in Houghton and MLB league revenue, but they have also blown away any preconceived notions about the impact of environmental factors on economic prosperity. Our findings may inspire a whole new line of inquiry into the intersection of environmental quality and economic success, providing a breath of fresh air in the fields of both environmental science and sports finance. So, let's all take a moment to inhale the significance of this discovery and appreciate the unexpected ways in which the winds of change can shape our economic landscapes.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The results of this study certainly breath new life into the realm of air pollution research. The striking correlation we've unearthed between air quality in Houghton, Michigan and the total Major League Baseball (MLB) league revenue not only serves as a testament to the interconnectedness of seemingly unrelated phenomena but also gives us a reason to ponder whether there's a "breeze" of legitimacy in our unexpected hypothesis.

Our findings, which align with the prior research conducted by Smith et al. and Doe, offer compelling evidence that cleaner air might indeed translate into greater financial success for MLB. It seems that the whimsical associations we’ve drawn from the likes of J.R.R. Tolkien's "The Fellowship of the Clean Air" have, in their own quirky way, nudged us toward a fascinating academic revelation – one that’s pointing toward a potential winning streak for businesses rooted in cleaner air environments.

Our analysis, buoyed by the statistical significance of the correlation coefficient, renders a powerful blow to any lingering doubts about the influential role of environmental factors in economic prosperity. If anything, our data paints a clear picture that we've not just been "blowing hot air" in our examination.

It’s worth noting that the relationship we’ve uncovered doesn’t just stop at the financial health of the MLB. It whispers echoes of a broader impact, urging us to revisit Green’s work on the broader implications of air quality on economic sectors. Could it be that the answer to bolstering economic prosperity lies in "clearing the air" in more ways than one?

As we reflect on the unexpected twists in our research journey, it’s clear that the discoveries we’ve made aren’t just a "puff piece." Instead, they breathe a fresh breath of air into the economic playbook, paving the way for further exploration of the subtle tendrils that connect the environment and financial landscapes. So, let’s raise a toast to the "air-raising" connections that continue to blow our minds and inspire new avenues of inquiry.


Model: gpt-3.5-turbo-1106
System prompt: You are a 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 Air pollution in Houghton, Michigan and Total MLB League Revenue. Make lots of 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]]
"Pitching Pollution: A Breath of Fresh Air for MLB Revenue in Houghton, Michigan"

[[ABSTRACT]]
In this study, we take a deep breath and delve into the connection between air pollution in Houghton, Michigan, and the total Major League Baseball (MLB) league revenue. While many may think we're just "fanning the air" with this research, our findings show a striking correlation between the two seemingly unrelated factors. Utilizing data from the Environmental Protection Agency and Statista, we calculated a correlation coefficient of 0.9999892 and p < 0.01 for the period spanning from 2001 to 2020. This statistically significant relationship between air quality in the charming Houghton region and the financial prosperity of America's favorite pastime has left us "gasping for air" in disbelief. Our findings may have folks wondering if there's a “puff piece” in the economic playbook that we're missing. So gear up to "clear the air" and join us as we unravel the "air-raising" connection between air pollution in Houghton, Michigan, and MLB league revenue.

[[INTRDUCTION]]
INTRODUCTION
As we know, the air we breathe plays a critical role in our health and well-being. But who would have thought that it could also have a significant impact on the financial success of Major League Baseball (MLB)? In this paper, we aim to uncover the surprising relationship between air pollution in Houghton, Michigan, and the total MLB league revenue. It's a breath of fresh air in the world of economic analysis, as we navigate through the realms of environmental science and sports finance to untangle this intriguing connection.
Houghton, Michigan, renowned for its picturesque landscapes and pristine natural beauty, might not be the first place that comes to mind when one thinks of baseball revenue. You're more likely to envision grand stadiums, hot dogs, and avid fans cheering on their favorite teams. However, the winds of change have blown in a new perspective, compelling us to ponder whether air pollution could be the unsung hero or villain in the game of economic success.
As we embark on this journey, we must inhale the reality that air pollution is a pervasive issue with potential implications far beyond its apparent environmental consequences. While it’s tempting to “air” on the side of caution with our findings, our analysis “cleared the air” on the link between levels of pollution and the financial health of MLB. We have set out to debunk the myth that the only thing “foul” in baseball is a stray ball. Could it be that smog and financial success have been engaged in a clandestine romance?
The data, gathered from authoritative sources such as the Environmental Protection Agency and Statista, were subjected to rigorous statistical analysis. Lo and behold, the correlation coefficient of 0.9999892 and p < 0.01 for the period from 2001 to 2020 left us stunned. The air pollution levels in Houghton, Michigan, seemed to wield a remarkable influence on the total MLB league revenue, causing us to wonder if there might be a “puff piece” hidden in the annals of economic theory.
As we delve into the nuances of this unusual relationship, we invite our esteemed readers to brace themselves for a whirlwind of insights and, yes, a fair share of wisecracks. Join us in unraveling this “air-raising” connection with a spirit of curiosity as we attempt to go beyond the “smog and mirrors” of traditional economic analysis. So buckle up, and let’s "clear the air" as we explore the unexpected intersection of air pollution in Houghton, Michigan, and the financial fortune of MLB – a story that's sure to take your breath away.

[[RESULTS]]
RESULTS
The results of our analysis have left us, quite literally, gasping for air. In examining the data collected from the Environmental Protection Agency and Statista for the period from 2001 to 2020, we discovered a stunning correlation between air pollution in Houghton, Michigan and the total Major League Baseball (MLB) league revenue.
The correlation coefficient of 0.9999892 and r-squared of 0.9999784 unveiled a relationship so strong that we had to pause and catch our breath. The p-value of less than 0.01 further solidified the significance of this connection, leaving us in no doubt that there is more to Houghton’s air quality than meets the eye.
Our findings are graphically depicted in Figure 1, where a scatterplot vividly illustrates the tight bond between air pollution levels and MLB league revenue. The steep upward trajectory of the data points practically shouts, "Take a deep breath and pay attention to this correlation!"
While it may seem like a tall tale, our research has, quite unexpectedly, given a new meaning to the phrase "clearing the air." The inescapable conclusion is that the air we breathe in Houghton, Michigan appears to wield a remarkable influence on the financial health of America's favorite pastime.
In conclusion, our results have not only revealed a striking correlation between air pollution in Houghton and MLB league revenue, but they have also blown away any preconceived notions about the impact of environmental factors on economic prosperity. Our findings may inspire a whole new line of inquiry into the intersection of environmental quality and economic success, providing a breath of fresh air in the fields of both environmental science and sports finance. So, let's all take a moment to inhale the significance of this discovery and appreciate the unexpected ways in which the winds of change can shape our economic landscapes.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In closing, our research has gone beyond simply "blowing hot air" and has uncovered a compelling relationship between air pollution in Houghton, Michigan and the total MLB league revenue. The statistically significant correlation coefficient of 0.9999892 and p < 0.01 for the period from 2001 to 2020 has left us winded. The "smoggy romance" between air quality and baseball revenue has underscored the need for a deeper understanding of the unexpected intersections of environmental and economic factors. Our findings beckon us to ponder whether there's a "draft" in the world of sports finance that can explain this phenomenon.

From the "air-raising" influence of pollution to the "puff piece" hidden in economic theory, our study has certainly blown the lid off conventional wisdom. It seems that the financial fate of MLB may not solely rest on players' home runs or fans' ticket purchases, but rather on the unseen dance of air molecules in Houghton, Michigan. As researchers, we cannot help but marvel at the "air-ruption" of new knowledge this investigation has brought.

In light of these revelations, we assert that no more research is needed in this area. The winds of change have spoken, leaving us breathless with their unexpected impact on the world of sports finance. It is, indeed, time to "clear the air" and acknowledge the pivotal role of air quality in shaping the financial destinies of our favorite pastimes.


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 Pitching Pollution: A Breath of Fresh Air for MLB Revenue in Houghton, Michigan. Respond only with the name of a fictional academic journal.

ChatGPT:

Journal of Environmental Economics and Sports Management


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 Pitching Pollution: A Breath of Fresh Air for MLB Revenue in Houghton, Michigan. Respond only with the name of a fictional organization.

ChatGPT:

The Institute for Sports Economics and Environmental Sustainability


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 Pitching Pollution: A Breath of Fresh Air for MLB Revenue in Houghton, Michigan with an abstract of In this study, we take a deep breath and delve into the connection between air pollution in Houghton, Michigan, and the total Major League Baseball (MLB) league revenue. While many may think we're just "fanning the air" with this research, our findings show a striking correlation between the two seemingly unrelated factors. Utilizing data from the Environmental Protection Agency and Statista, we calculated a correlation coefficient of 0.9999892 and p < 0.01 for the period spanning from 2001 to 2020. This statistically significant relationship between air quality in the charming Houghton region and the financial prosperity of America's favorite pastime has left us "gasping for air" in disbelief. Our findings may have folks wondering if there's a “puff piece” in the economic playbook that we're missing. So gear up to "clear the air" and join us as we unravel the "air-raising" connection between air pollution in Houghton, Michigan, and MLB league revenue.

ChatGPT:

Houghton, Michigan, air pollution, Major League Baseball revenue, correlation coefficient, Environmental Protection Agency, Statista, air quality, Houghton region, economic impact, pollution research

*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

Air pollution in Houghton, Michigan
Detailed data title: Percentage of days with air quality at 'unhealthy for sensitive groups' or worse in Houghton, MI
Source: Environmental Protection Agency
See what else correlates with Air pollution in Houghton, Michigan

Total MLB League Revenue
Source: Statista
See what else correlates with Total MLB League Revenue

Correlation r = 0.9999892 (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.9999784 (Coefficient of determination)
This means 100% of the change in the one variable (i.e., Total MLB League Revenue) is predictable based on the change in the other (i.e., Air pollution in Houghton, Michigan) over the 20 years from 2001 through 2020.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 0. 0.0000000000000000000000000000
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 1 in 0% of random cases. Said differently, if you correlated
Warning: Division by zero in /var/www/html/spurious/_CORRELATION_VIEW_PAGE.php on line 631
inf random variables
Warning: Division by zero in /var/www/html/spurious/_CORRELATION_VIEW_PAGE.php on line 633
You don't actually need
Warning: Division by zero in /var/www/html/spurious/_CORRELATION_VIEW_PAGE.php on line 638

Notice: Undefined offset: 10 in /var/www/html/spurious/_CORRELATION_VIEW_PAGE.php on line 567
INF variables to find a correlation like this one.
Warning: Division by zero in /var/www/html/spurious/_CORRELATION_VIEW_PAGE.php on line 638
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.
Warning: Division by zero in /var/www/html/spurious/_CORRELATION_VIEW_PAGE.php on line 641


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 19 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 19 because we have two variables measured over a period of 20 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.

[ 1, 1 ] 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.
20012002200320042005200620072008200920102011201220132014201520162017201820192020
Air pollution in Houghton, Michigan (Bad air quality days)00000000000000000000.00854701
Total MLB League Revenue (Billion US Dollars)3.583.653.884.274.735.115.485.825.96.146.366.817.17.868.399.039.469.910.372020




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. Confounding variable: 2020 is particularly different from the other years on this graph. Confounding variables (like global pandemics) will cause two variables to look connected when in fact a "sneaky third" variable is influencing both of them behind the scenes.




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([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.00854701,])
array_2 = np.array([3.58,3.65,3.88,4.27,4.73,5.11,5.48,5.82,5.9,6.14,6.36,6.81,7.1,7.86,8.39,9.03,9.46,9.9,10.37,2020,])
array_1_name = "Air pollution in Houghton, Michigan"
array_2_name = "Total MLB League Revenue"

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

Hats off to you for rating!


Correlation ID: 4526 · Black Variable ID: 22086 · Red Variable ID: 412
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0