about · email me · subscribe
Spurious correlation #4,271 · 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 Sandpoint, Idaho and the second variable is 3M Company's stock price (MMM).  The chart goes from 2002 to 2022, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

The smog particles formed a protective layer around 3M's facilities, inadvertently optimizing their production processes and leading to higher efficiency and output. This ultimately impressed investors, driving up the stock price. Because when life gives 3M air pollution, they make money.

Model: dalle-3
Prompt: Create an image of a TIME magazine cover featuring an aerial view of Sandpoint, Idaho, enveloped in a thick smog. Amidst the haze, 3M's industrial facilities stand tall, emanating a futuristic glow. The smog acts as a protective layer, intricately swirling around 3M's structures. Despite the harmful environmental impact, the smog also optimizes their production processes, depicted as energy waves flowing through the facilities. Investors' attention is symbolized by a graph, visually capturing the significant rise in 3M's stock price. 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 Sandpoint, Idaho and 3M Company's stock price (MMM). 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: Brutalism Cutsy art illustration Symbolism Oragami A TIME magazine cover image
ChatGPT: A TIME 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 Sandpoint, Idaho and 3M Company's stock price (MMM), in the following situation: The smog particles formed a protective layer around 3M's facilities, inadvertently optimizing their production processes and leading to higher efficiency and output. This ultimately impressed investors, driving up the stock price. Because when life gives 3M air pollution, they make money.. Keep the description simple.
ChatGPT: In Sandpoint, Idaho, thick smog hung over the horizon as 3M's facilities stood tall amidst the haze. The air pollution, though harmful to the environment, surprisingly formed a protective layer around 3M, optimizing their production processes. As a result, the company's efficiency increased, and the output soared. This impressive performance caught the eye of investors, leading to a significant rise in 3M's stock price, symbolizing their ability to turn adversity into profit.

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 TIME magazine cover image ] and depicting this scene: In Sandpoint, Idaho, thick smog hung over the horizon as 3M's facilities stood tall amidst the haze. The air pollution, though harmful to the environment, surprisingly formed a protective layer around 3M, optimizing their production processes. As a result, the company's efficiency increased, and the output soared. This impressive performance caught the eye of investors, leading to a significant rise in 3M's stock price, symbolizing their ability to turn adversity into profit. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Create an image of a TIME magazine cover featuring an aerial view of Sandpoint, Idaho, enveloped in a thick smog. Amidst the haze, 3M's industrial facilities stand tall, emanating a futuristic glow. The smog acts as a protective layer, intricately swirling around 3M's structures. Despite the harmful environmental impact, the smog also optimizes their production processes, depicted as energy waves flowing through the facilities. Investors' attention is symbolized by a graph, visually capturing the significant rise in 3M's stock price.

*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 Sandpoint, Idaho caused 3M Company's stock price (MMM) to increase.

AI academic paper

(Because p < 0.01)
Clearing the Air: The Gritty Connection Between Air Pollution in Sandpoint, Idaho, and 3M Company's Stock Price

Journal of Environmental Economics and Corporate Finance

Jan 2024

Reminder: This paper is AI-generated. Not real!
Quick note: This sequence is long and repetitive. That's how the prompt engineering works for this one. I manage the output in Python to format it into this PDF.




Model: gpt-3.5-turbo-1106
System prompt: You are a 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 Sandpoint, Idaho and 3M Company's stock price (MMM). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

Make the title seem clever.

Your research team used data from Environmental Protection Agency and LSEG Analytics (Refinitiv) to assess this nagging question. You found a correlation coefficient of 0.8220522 and p < 0.01 for 2002 to 2022.

Please respond in this format (replace "Lorem ipsum dolor sit" with your title and abstract)

[[TITLE]]
Lorem ipsum dolor sit

[[ABSTRACT]]
Lorem ipsum dolor sit



ChatGPT:
[[TITLE]]
"Clearing the Air: The Gritty Connection Between Air Pollution in Sandpoint, Idaho, and 3M Company's Stock Price"

[[ABSTRACT]]
The relationship between environmental factors and financial markets has long been a subject of intrigue and investigation. In this study, we delve into the airy world of air pollution in Sandpoint, Idaho, and its potential influence on the stock performance of 3M Company (MMM). Our research aims to uncover whether there is a tangible link between the particles in the air and the trajectory of the stocks. It's quite an 'unconventional' topic, we know, but we're hoping to 'clear the air' on this issue.

Drawing upon data from the Environmental Protection Agency and LSEG Analytics (Refinitiv), we embarked on a thorough analysis covering the period from 2002 to 2022. Utilizing advanced statistical methods, we uncovered a striking correlation coefficient of 0.8220522 (p < 0.01) between air pollution levels in Sandpoint and the stock prices of 3M Company. It seems that the air might be whispering secrets to us, though we're not entirely sure what it's saying just yet - hopefully not just "breathe easy"!

As we present our findings, we invite readers to join us in exploring this peculiar relationship and pondering the broader implications. Through our research, we aim to shed light on the often overlooked connections between the environment and economic indicators, offering a breath of fresh air to the world of financial analysis.


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 Sandpoint, Idaho and 3M Company's stock price (MMM). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

Here is the title and abstract of the paper:
[[TITLE]]
"Clearing the Air: The Gritty Connection Between Air Pollution in Sandpoint, Idaho, and 3M Company's Stock Price"

[[ABSTRACT]]
The relationship between environmental factors and financial markets has long been a subject of intrigue and investigation. In this study, we delve into the airy world of air pollution in Sandpoint, Idaho, and its potential influence on the stock performance of 3M Company (MMM). Our research aims to uncover whether there is a tangible link between the particles in the air and the trajectory of the stocks. It's quite an 'unconventional' topic, we know, but we're hoping to 'clear the air' on this issue.

Drawing upon data from the Environmental Protection Agency and LSEG Analytics (Refinitiv), we embarked on a thorough analysis covering the period from 2002 to 2022. Utilizing advanced statistical methods, we uncovered a striking correlation coefficient of 0.8220522 (p < 0.01) between air pollution levels in Sandpoint and the stock prices of 3M Company. It seems that the air might be whispering secrets to us, though we're not entirely sure what it's saying just yet - hopefully not just "breathe easy"!

As we present our findings, we invite readers to join us in exploring this peculiar relationship and pondering the broader implications. Through our research, we aim to shed light on the often overlooked connections between the environment and economic indicators, offering a breath of fresh air to the world of financial analysis.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

Have you ever felt like the air you breathe could hold the key to financial success? Well, hold onto your oxygen masks, because our research may just leave you breathless! In the finance and environmental spheres, unusual connections often emerge, and our study dives into the unexpected relationship between air pollution in Sandpoint, Idaho, and the stock price of 3M Company (MMM).

The world of finance is often criticized as being too 'stock-stiff' and 'straight-laced', but believe it or not, it's not all numbers and graphs. Sometimes, the market dances to the tune of the environment, and we've got the statistics to prove it. Our research unearths the 'particle-accelerating' impact of air pollution on the stock price, leaving us 'gasping' for answers.

Picture this: a cloud of dust kicks up in Sandpoint, and suddenly, the stock market gets into a 'haze-y' situation. Who would've thought that the air you breathe in a serene town could be linked to the rise and fall of a multinational corporation's stock? With statistics in hand, we're all set to 'filter' out the noise and 'purify' the truth behind these unexpected connections.

As we embark on our journey, we invite you to take a 'deep breath' and join us in uncovering the 'scent-sational' relationship between environmental factors and financial markets. The findings may just leave you 'air-lifted' and 'refreshed', ready to view the world of financial analysis through a new, clearer lens. After all, sometimes the most astonishing discoveries are right under our noses, or should I say, in the air!


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 Sandpoint, Idaho and 3M Company's stock price (MMM). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

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

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

Start by naming serious-sounding studies by authors like Smith, Doe, and Jones - but then quickly devolve. Name some real non-fiction books that would be related to the topic. Then name some real fiction books that sound like they could be related. Then devolve ever further, and mention something completely ridiculous, like you conducted literature review by reading CVS receipts.

Here is the title and abstract of the paper:
[[TITLE]]
"Clearing the Air: The Gritty Connection Between Air Pollution in Sandpoint, Idaho, and 3M Company's Stock Price"

[[ABSTRACT]]
The relationship between environmental factors and financial markets has long been a subject of intrigue and investigation. In this study, we delve into the airy world of air pollution in Sandpoint, Idaho, and its potential influence on the stock performance of 3M Company (MMM). Our research aims to uncover whether there is a tangible link between the particles in the air and the trajectory of the stocks. It's quite an 'unconventional' topic, we know, but we're hoping to 'clear the air' on this issue.

Drawing upon data from the Environmental Protection Agency and LSEG Analytics (Refinitiv), we embarked on a thorough analysis covering the period from 2002 to 2022. Utilizing advanced statistical methods, we uncovered a striking correlation coefficient of 0.8220522 (p < 0.01) between air pollution levels in Sandpoint and the stock prices of 3M Company. It seems that the air might be whispering secrets to us, though we're not entirely sure what it's saying just yet - hopefully not just "breathe easy"!

As we present our findings, we invite readers to join us in exploring this peculiar relationship and pondering the broader implications. Through our research, we aim to shed light on the often overlooked connections between the environment and economic indicators, offering a breath of fresh air to the world of financial analysis.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
Have you ever felt like the air you breathe could hold the key to financial success? Well, hold onto your oxygen masks, because our research may just leave you breathless! In the finance and environmental spheres, unusual connections often emerge, and our study dives into the unexpected relationship between air pollution in Sandpoint, Idaho, and the stock price of 3M Company (MMM).
The world of finance is often criticized as being too 'stock-stiff' and 'straight-laced', but believe it or not, it's not all numbers and graphs. Sometimes, the market dances to the tune of the environment, and we've got the statistics to prove it. Our research unearths the 'particle-accelerating' impact of air pollution on the stock price, leaving us 'gasping' for answers.
Picture this: a cloud of dust kicks up in Sandpoint, and suddenly, the stock market gets into a 'haze-y' situation. Who would've thought that the air you breathe in a serene town could be linked to the rise and fall of a multinational corporation's stock? With statistics in hand, we're all set to 'filter' out the noise and 'purify' the truth behind these unexpected connections.
As we embark on our journey, we invite you to take a 'deep breath' and join us in uncovering the 'scent-sational' relationship between environmental factors and financial markets. The findings may just leave you 'air-lifted' and 'refreshed', ready to view the world of financial analysis through a new, clearer lens. After all, sometimes the most astonishing discoveries are right under our noses, or should I say, in the air!

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

In their study, Smith and Doe (2010) delve into the environmental impacts of industrial activities in small towns and their potential effects on local economies. They posit that air pollution in Sandpoint, Idaho, resulting from industrial operations, may have unforeseen consequences on various economic indicators, including stock prices. These unforeseen consequences really blow us away!

Taking a different angle, Jones et al. (2015) investigate the financial impacts of environmental variables on the stock performance of major corporations. Their findings suggest that air quality, or lack thereof, can indeed influence stock prices, especially for companies with significant operations in areas experiencing high levels of air pollution. It’s like the stock market is suddenly going through an 'air-ritating' transformation!

Expanding beyond academic studies, the book "The Air We Breathe: Pollution, Power, and Privilege" by Richard Monastersky offers an insightful exploration of how environmental pollution can intersect with economic power dynamics. This book really blows the lid off the issue!

Similarly, "The Smoke Jumper" by Nicholas Evans, though a work of fiction, paints a vivid picture of the interconnectedness of human activity and the environment. Just like in the stock market, unexpected plot twists and turns come with the territory.

And as we delved even deeper into the literature, we couldn't help but notice a recurring theme in the footnotes of old CVS receipts – a clear indication of extensive review and comprehensive exploration. Okay, we might be 'pulling your receipt' on that one, but hey, a little humor never hurt anyone!


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 Sandpoint, Idaho and 3M Company's stock price (MMM). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

Your research team collected data from all across the internet, but mostly just used information from Environmental Protection Agency and LSEG Analytics (Refinitiv) . You used data from 2002 to 2022

Make up the research methods you don't know. Make them a bit goofy and convoluted.

Here is the title, abstract, and introduction of the paper:
[[TITLE]]
"Clearing the Air: The Gritty Connection Between Air Pollution in Sandpoint, Idaho, and 3M Company's Stock Price"

[[ABSTRACT]]
The relationship between environmental factors and financial markets has long been a subject of intrigue and investigation. In this study, we delve into the airy world of air pollution in Sandpoint, Idaho, and its potential influence on the stock performance of 3M Company (MMM). Our research aims to uncover whether there is a tangible link between the particles in the air and the trajectory of the stocks. It's quite an 'unconventional' topic, we know, but we're hoping to 'clear the air' on this issue.

Drawing upon data from the Environmental Protection Agency and LSEG Analytics (Refinitiv), we embarked on a thorough analysis covering the period from 2002 to 2022. Utilizing advanced statistical methods, we uncovered a striking correlation coefficient of 0.8220522 (p < 0.01) between air pollution levels in Sandpoint and the stock prices of 3M Company. It seems that the air might be whispering secrets to us, though we're not entirely sure what it's saying just yet - hopefully not just "breathe easy"!

As we present our findings, we invite readers to join us in exploring this peculiar relationship and pondering the broader implications. Through our research, we aim to shed light on the often overlooked connections between the environment and economic indicators, offering a breath of fresh air to the world of financial analysis.

[[INTRODUCTION]]
Have you ever felt like the air you breathe could hold the key to financial success? Well, hold onto your oxygen masks, because our research may just leave you breathless! In the finance and environmental spheres, unusual connections often emerge, and our study dives into the unexpected relationship between air pollution in Sandpoint, Idaho, and the stock price of 3M Company (MMM).
The world of finance is often criticized as being too 'stock-stiff' and 'straight-laced', but believe it or not, it's not all numbers and graphs. Sometimes, the market dances to the tune of the environment, and we've got the statistics to prove it. Our research unearths the 'particle-accelerating' impact of air pollution on the stock price, leaving us 'gasping' for answers.
Picture this: a cloud of dust kicks up in Sandpoint, and suddenly, the stock market gets into a 'haze-y' situation. Who would've thought that the air you breathe in a serene town could be linked to the rise and fall of a multinational corporation's stock? With statistics in hand, we're all set to 'filter' out the noise and 'purify' the truth behind these unexpected connections.
As we embark on our journey, we invite you to take a 'deep breath' and join us in uncovering the 'scent-sational' relationship between environmental factors and financial markets. The findings may just leave you 'air-lifted' and 'refreshed', ready to view the world of financial analysis through a new, clearer lens. After all, sometimes the most astonishing discoveries are right under our noses, or should I say, in the air!

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

In our quest to unravel the enigmatic connection between air pollution in Sandpoint, Idaho, and the stock price of 3M Company (MMM), we adopted a data-driven approach that could be described as a mating dance between the environmental and financial realms. Our research team scoured the depths of the internet, emerging with data from the Environmental Protection Agency and LSEG Analytics (Refinitiv), creating a 'purr-fect' harmony of sources.

We treated our methodology like a delicate soufflé, combining various statistical techniques to capture the essence of the relationship we sought to measure. Imagine a cooking show, but instead of ingredients, we had stacked regression analysis, time series models, and cross-correlation methods, all seasoned with a pinch of error analysis. It was quite a 'recipe' for success, if I do say so myself!

To commence our investigation, we harnessed the power of regression analysis to suss out the nuances of the relationship between air pollution levels in Sandpoint and the stock prices of 3M Company. Our statistical models were like Sherlock Holmes, carefully scrutinizing the evidence to uncover any hidden financial 'mystery.' We were determined to 'clear the air' on this perplexing conundrum, and our models led the charge.

Next, we ventured into the intriguing domain of time series models, where we dissected the temporal patterns of air pollution and the corresponding movements in 3M Company's stock price. Think of it as studying the 'tango' between these variables over time - sometimes in perfect harmony, and other times, a bit of a misstep. Nevertheless, our analysis waltzed through the data, revealing the captivating interplay between pollution and stock prices.

As if that weren't enough, we embraced the majestic cross-correlation method, akin to a majestic ballet between these disparate elements. This technique allowed us to discern the synchronicities and lags between fluctuations in air pollution and the ripples they created in MMM's stock price. It was a bit like synchronizing a choreographed performance, where each movement, or in this case, each data point, held the key to our understanding.

Finally, we seasoned our analysis with a sprinkle of error analysis to ensure that our findings were as robust as a bear family in a suburban backyard. We meticulously evaluated the margins of error and the reliability of our calculations, leaving no stone unturned in our pursuit of scientific adequacy.

In the end, our methodology resembled a colorful tapestry, weaving together disparate statistical methods to capture the essence of this captivating connection. Our journey was rife with calculation and analysis, but at its core, it was an explorative odyssey to demystify the curious amalgamation of air pollution and stock prices. Or should I say, a refreshing breath of statistical 'fresh air'?


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 Sandpoint, Idaho and 3M Company's stock price (MMM). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

Your research team collected data from all across the internet, but mostly just used information from Environmental Protection Agency and LSEG Analytics (Refinitiv) .

For the time period 2002 to 2022, you found a correlation 0.8220522, r-squared of 0.6757698, 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]]
"Clearing the Air: The Gritty Connection Between Air Pollution in Sandpoint, Idaho, and 3M Company's Stock Price"

[[ABSTRACT]]
The relationship between environmental factors and financial markets has long been a subject of intrigue and investigation. In this study, we delve into the airy world of air pollution in Sandpoint, Idaho, and its potential influence on the stock performance of 3M Company (MMM). Our research aims to uncover whether there is a tangible link between the particles in the air and the trajectory of the stocks. It's quite an 'unconventional' topic, we know, but we're hoping to 'clear the air' on this issue.

Drawing upon data from the Environmental Protection Agency and LSEG Analytics (Refinitiv), we embarked on a thorough analysis covering the period from 2002 to 2022. Utilizing advanced statistical methods, we uncovered a striking correlation coefficient of 0.8220522 (p < 0.01) between air pollution levels in Sandpoint and the stock prices of 3M Company. It seems that the air might be whispering secrets to us, though we're not entirely sure what it's saying just yet - hopefully not just "breathe easy"!

As we present our findings, we invite readers to join us in exploring this peculiar relationship and pondering the broader implications. Through our research, we aim to shed light on the often overlooked connections between the environment and economic indicators, offering a breath of fresh air to the world of financial analysis.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
Have you ever felt like the air you breathe could hold the key to financial success? Well, hold onto your oxygen masks, because our research may just leave you breathless! In the finance and environmental spheres, unusual connections often emerge, and our study dives into the unexpected relationship between air pollution in Sandpoint, Idaho, and the stock price of 3M Company (MMM).
The world of finance is often criticized as being too 'stock-stiff' and 'straight-laced', but believe it or not, it's not all numbers and graphs. Sometimes, the market dances to the tune of the environment, and we've got the statistics to prove it. Our research unearths the 'particle-accelerating' impact of air pollution on the stock price, leaving us 'gasping' for answers.
Picture this: a cloud of dust kicks up in Sandpoint, and suddenly, the stock market gets into a 'haze-y' situation. Who would've thought that the air you breathe in a serene town could be linked to the rise and fall of a multinational corporation's stock? With statistics in hand, we're all set to 'filter' out the noise and 'purify' the truth behind these unexpected connections.
As we embark on our journey, we invite you to take a 'deep breath' and join us in uncovering the 'scent-sational' relationship between environmental factors and financial markets. The findings may just leave you 'air-lifted' and 'refreshed', ready to view the world of financial analysis through a new, clearer lens. After all, sometimes the most astonishing discoveries are right under our noses, or should I say, in the air!

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The results of our rigorous analysis revealed a strong correlation coefficient of 0.8220522 between air pollution levels in Sandpoint, Idaho, and the stock prices of 3M Company (MMM) over the period from 2002 to 2022. This significant correlation highlights the potential influence of airborne particles on the trajectory of a major corporation's stock. It seems the air quality might be doing more than just providing a breath of fresh air - it's stirring up the stock market too!

Our findings indicate an r-squared value of 0.6757698, suggesting that approximately 67.6% of the variability in 3M Company's stock prices can be explained by the fluctuations in air pollution levels in Sandpoint. That's a lot of influence for something as intangible as air particles! It's as if the stock market is whispering, "Let me air out my grievances."

Moreover, the p-value of less than 0.01 provides strong evidence to reject the null hypothesis, supporting the idea that there is a meaningful relationship between air pollution and 3M Company's stock performance. It's like the air pollution in Sandpoint is letting investors know when to hold their breath - or avoid a potential financial 'haze'.

Fig. 1 illustrates the remarkable correlation between air pollution levels in Sandpoint and the stock prices of 3M Company, painting a clear picture of the connection we uncovered. This correlation is so compelling, it's as if the stocks and air pollution are engaged in a high-stakes game of "what goes up, must come down".

Our unexpected findings shed light on the previously overlooked connections between environmental factors and economic indicators, offering a breath of fresh air to the world of financial analysis. It appears that the stocks might be whispering secrets to us through the air, and by unraveling these connections, we hope to purify the truth and leave you 'air-lifted' and 'refreshed', just like a lungful of cleaner air.


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 Sandpoint, Idaho and 3M Company's stock price (MMM). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

Limit your response to 500 tokens.

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

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

[[TITLE]]
"Clearing the Air: The Gritty Connection Between Air Pollution in Sandpoint, Idaho, and 3M Company's Stock Price"

[[ABSTRACT]]
The relationship between environmental factors and financial markets has long been a subject of intrigue and investigation. In this study, we delve into the airy world of air pollution in Sandpoint, Idaho, and its potential influence on the stock performance of 3M Company (MMM). Our research aims to uncover whether there is a tangible link between the particles in the air and the trajectory of the stocks. It's quite an 'unconventional' topic, we know, but we're hoping to 'clear the air' on this issue.

Drawing upon data from the Environmental Protection Agency and LSEG Analytics (Refinitiv), we embarked on a thorough analysis covering the period from 2002 to 2022. Utilizing advanced statistical methods, we uncovered a striking correlation coefficient of 0.8220522 (p < 0.01) between air pollution levels in Sandpoint and the stock prices of 3M Company. It seems that the air might be whispering secrets to us, though we're not entirely sure what it's saying just yet - hopefully not just "breathe easy"!

As we present our findings, we invite readers to join us in exploring this peculiar relationship and pondering the broader implications. Through our research, we aim to shed light on the often overlooked connections between the environment and economic indicators, offering a breath of fresh air to the world of financial analysis.

[[LITERATURE REVIEW]]
In their study, Smith and Doe (2010) delve into the environmental impacts of industrial activities in small towns and their potential effects on local economies. They posit that air pollution in Sandpoint, Idaho, resulting from industrial operations, may have unforeseen consequences on various economic indicators, including stock prices. These unforeseen consequences really blow us away!
Taking a different angle, Jones et al. (2015) investigate the financial impacts of environmental variables on the stock performance of major corporations. Their findings suggest that air quality, or lack thereof, can indeed influence stock prices, especially for companies with significant operations in areas experiencing high levels of air pollution. It’s like the stock market is suddenly going through an 'air-ritating' transformation!
Expanding beyond academic studies, the book "The Air We Breathe: Pollution, Power, and Privilege" by Richard Monastersky offers an insightful exploration of how environmental pollution can intersect with economic power dynamics. This book really blows the lid off the issue!
Similarly, "The Smoke Jumper" by Nicholas Evans, though a work of fiction, paints a vivid picture of the interconnectedness of human activity and the environment. Just like in the stock market, unexpected plot twists and turns come with the territory.
And as we delved even deeper into the literature, we couldn't help but notice a recurring theme in the footnotes of old CVS receipts – a clear indication of extensive review and comprehensive exploration. Okay, we might be 'pulling your receipt' on that one, but hey, a little humor never hurt anyone!

[[RESULTS]]
The results of our rigorous analysis revealed a strong correlation coefficient of 0.8220522 between air pollution levels in Sandpoint, Idaho, and the stock prices of 3M Company (MMM) over the period from 2002 to 2022. This significant correlation highlights the potential influence of airborne particles on the trajectory of a major corporation's stock. It seems the air quality might be doing more than just providing a breath of fresh air - it's stirring up the stock market too!
Our findings indicate an r-squared value of 0.6757698, suggesting that approximately 67.6% of the variability in 3M Company's stock prices can be explained by the fluctuations in air pollution levels in Sandpoint. That's a lot of influence for something as intangible as air particles! It's as if the stock market is whispering, "Let me air out my grievances."
Moreover, the p-value of less than 0.01 provides strong evidence to reject the null hypothesis, supporting the idea that there is a meaningful relationship between air pollution and 3M Company's stock performance. It's like the air pollution in Sandpoint is letting investors know when to hold their breath - or avoid a potential financial 'haze'.
Fig. 1 illustrates the remarkable correlation between air pollution levels in Sandpoint and the stock prices of 3M Company, painting a clear picture of the connection we uncovered. This correlation is so compelling, it's as if the stocks and air pollution are engaged in a high-stakes game of "what goes up, must come down".
Our unexpected findings shed light on the previously overlooked connections between environmental factors and economic indicators, offering a breath of fresh air to the world of financial analysis. It appears that the stocks might be whispering secrets to us through the air, and by unraveling these connections, we hope to purify the truth and leave you 'air-lifted' and 'refreshed', just like a lungful of cleaner air.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

Our investigation into the relationship between air pollution in Sandpoint, Idaho, and the stock price of 3M Company has blown our socks off – and not just because Sandpoint is notoriously windy! With a striking correlation coefficient of 0.8220522 and a p-value of less than 0.01, our findings unraveled a compelling relationship that cannot be brushed aside. It seems that the connection between air pollution and stock prices is as palpable as the air we breathe – pun intended!

Heating things up, our results lent support to previous research by Smith and Doe (2010) and Jones et al. (2015), whose work hinted at the potential influence of air pollution on local economies and stock performances. It appears that the air in Sandpoint is not just carrying dusty particles, but also a message for investors and financial analysts. While the idea of air pollution affecting the stock market may initially seem far-fetched, our findings provide substantive evidence that the air quality in this small Idaho town does indeed resonate with the stock prices of a major corporation. It’s almost as if the atmospherically significant relationship between air pollution and stock prices gives new meaning to the phrase “market volatility”!

Our results also shed light on the broader implications of environmental factors on economic indicators, offering a breath of fresh air to the world of financial analysis. In line with the insightful work by Richard Monastersky in "The Air We Breathe: Pollution, Power, and Privilege," our findings underscore how environmental pollution can intersect with economic power dynamics, challenging traditional notions of market influences. It’s like a Balloon Fiesta for economic theories, with the unexpected twists and turns keeping everyone on their toes – or perhaps, in this case, on their heels, as stocks rise and fall in sync with air pollution levels.

As we unravel this airy connection, we hope to inspire further exploration into the influences of environmental variables on financial markets. The strong relationship we uncovered not only raises eyebrows, but also invites others to breathe easy in exploring the intricate web of connections between seemingly unrelated phenomena. After all, as the saying goes, "where there's air pollution, there's the potential for stock revolution" – a pun-derful revelation indeed!

This discussion presents a first step in unmasking the enigmatic link between air pollution and stock prices, providing a gust of fresh insight into the often overlooked influence of environmental factors on financial markets. Our research, like a breath of fresh air in a stuffy room, offers a refreshing perspective on the interplay between air quality and stock market performance, leaving readers with a newfound appreciation for the 'airresistible' mysteries of financial analysis.


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 Sandpoint, Idaho and 3M Company's stock price (MMM). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

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

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
"Clearing the Air: The Gritty Connection Between Air Pollution in Sandpoint, Idaho, and 3M Company's Stock Price"

[[ABSTRACT]]
The relationship between environmental factors and financial markets has long been a subject of intrigue and investigation. In this study, we delve into the airy world of air pollution in Sandpoint, Idaho, and its potential influence on the stock performance of 3M Company (MMM). Our research aims to uncover whether there is a tangible link between the particles in the air and the trajectory of the stocks. It's quite an 'unconventional' topic, we know, but we're hoping to 'clear the air' on this issue.

Drawing upon data from the Environmental Protection Agency and LSEG Analytics (Refinitiv), we embarked on a thorough analysis covering the period from 2002 to 2022. Utilizing advanced statistical methods, we uncovered a striking correlation coefficient of 0.8220522 (p < 0.01) between air pollution levels in Sandpoint and the stock prices of 3M Company. It seems that the air might be whispering secrets to us, though we're not entirely sure what it's saying just yet - hopefully not just "breathe easy"!

As we present our findings, we invite readers to join us in exploring this peculiar relationship and pondering the broader implications. Through our research, we aim to shed light on the often overlooked connections between the environment and economic indicators, offering a breath of fresh air to the world of financial analysis.

[[INTRDUCTION]]
Have you ever felt like the air you breathe could hold the key to financial success? Well, hold onto your oxygen masks, because our research may just leave you breathless! In the finance and environmental spheres, unusual connections often emerge, and our study dives into the unexpected relationship between air pollution in Sandpoint, Idaho, and the stock price of 3M Company (MMM).
The world of finance is often criticized as being too 'stock-stiff' and 'straight-laced', but believe it or not, it's not all numbers and graphs. Sometimes, the market dances to the tune of the environment, and we've got the statistics to prove it. Our research unearths the 'particle-accelerating' impact of air pollution on the stock price, leaving us 'gasping' for answers.
Picture this: a cloud of dust kicks up in Sandpoint, and suddenly, the stock market gets into a 'haze-y' situation. Who would've thought that the air you breathe in a serene town could be linked to the rise and fall of a multinational corporation's stock? With statistics in hand, we're all set to 'filter' out the noise and 'purify' the truth behind these unexpected connections.
As we embark on our journey, we invite you to take a 'deep breath' and join us in uncovering the 'scent-sational' relationship between environmental factors and financial markets. The findings may just leave you 'air-lifted' and 'refreshed', ready to view the world of financial analysis through a new, clearer lens. After all, sometimes the most astonishing discoveries are right under our noses, or should I say, in the air!

[[RESULTS]]
The results of our rigorous analysis revealed a strong correlation coefficient of 0.8220522 between air pollution levels in Sandpoint, Idaho, and the stock prices of 3M Company (MMM) over the period from 2002 to 2022. This significant correlation highlights the potential influence of airborne particles on the trajectory of a major corporation's stock. It seems the air quality might be doing more than just providing a breath of fresh air - it's stirring up the stock market too!
Our findings indicate an r-squared value of 0.6757698, suggesting that approximately 67.6% of the variability in 3M Company's stock prices can be explained by the fluctuations in air pollution levels in Sandpoint. That's a lot of influence for something as intangible as air particles! It's as if the stock market is whispering, "Let me air out my grievances."
Moreover, the p-value of less than 0.01 provides strong evidence to reject the null hypothesis, supporting the idea that there is a meaningful relationship between air pollution and 3M Company's stock performance. It's like the air pollution in Sandpoint is letting investors know when to hold their breath - or avoid a potential financial 'haze'.
Fig. 1 illustrates the remarkable correlation between air pollution levels in Sandpoint and the stock prices of 3M Company, painting a clear picture of the connection we uncovered. This correlation is so compelling, it's as if the stocks and air pollution are engaged in a high-stakes game of "what goes up, must come down".
Our unexpected findings shed light on the previously overlooked connections between environmental factors and economic indicators, offering a breath of fresh air to the world of financial analysis. It appears that the stocks might be whispering secrets to us through the air, and by unraveling these connections, we hope to purify the truth and leave you 'air-lifted' and 'refreshed', just like a lungful of cleaner air.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our study has unveiled a compelling link between air pollution in Sandpoint, Idaho, and 3M Company's stock price. It seems that the whispers of the air may hold more weight than we realized - talk about air-raising revelations! The statistical evidence we've gathered suggests that the market may be breathing in the influence of environmental factors more than we ever imagined.

Our findings indicate that approximately 67.6% of the variability in 3M Company's stock prices can be attributed to the fluctuations in air pollution levels in Sandpoint. It's as if the market has been inhaling deeply and saying, "Ah, that's the stuff!"

With a p-value of less than 0.01, we have strong evidence to reject the null hypothesis. It's like the universe is telling us, "There's no need to air out any doubts about this relationship - it's as clear as the atmosphere in Sandpoint on a crisp morning."

This unconventional connection between the environment and financial markets serves as a breath of fresh air in the often stuffy world of economic analysis. Who would have thought that the invisible particles in the air could have such a tangible impact on stock prices? It's enough to leave us all gasping for more.

However, despite the "air-tight" nature of our findings, we assert that "air only" kidding when we say no further research is needed in this area. This study might just be the breeze of change that the financial world needs!


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 Clearing the Air: The Gritty Connection Between Air Pollution in Sandpoint, Idaho, and 3M Company's Stock Price. Respond only with the name of a fictional academic journal.

ChatGPT:

Journal of Environmental Economics and Corporate Finance


Model: gpt-3.5-turbo-1106
System prompt: You provide fictional names of nonprofit research organizations and associations. You say nothing else, and you do not chat with the user.
User prompt: Please provide the name of a funny but plausible sounding nonprofit, academic, or scientific association or organization that would sponsor research that resulted in a paper entited Clearing the Air: The Gritty Connection Between Air Pollution in Sandpoint, Idaho, and 3M Company's Stock Price. Respond only with the name of a fictional organization.

ChatGPT:

The Institute for Environmental Economics and Stock Market Analysis


Model: gpt-3.5-turbo-1106
System prompt: You provide potential search keywords separated by commas. You say nothing else, and you do not chat with the user.
User prompt: Please provide potential search keywords for a paper titled Clearing the Air: The Gritty Connection Between Air Pollution in Sandpoint, Idaho, and 3M Company's Stock Price with an abstract of The relationship between environmental factors and financial markets has long been a subject of intrigue and investigation. In this study, we delve into the airy world of air pollution in Sandpoint, Idaho, and its potential influence on the stock performance of 3M Company (MMM). Our research aims to uncover whether there is a tangible link between the particles in the air and the trajectory of the stocks. It's quite an 'unconventional' topic, we know, but we're hoping to 'clear the air' on this issue.
Drawing upon data from the Environmental Protection Agency and LSEG Analytics (Refinitiv), we embarked on a thorough analysis covering the period from 2002 to 2022. Utilizing advanced statistical methods, we uncovered a striking correlation coefficient of 0.8220522 (p < 0.01) between air pollution levels in Sandpoint and the stock prices of 3M Company. It seems that the air might be whispering secrets to us, though we're not entirely sure what it's saying just yet - hopefully not just "breathe easy"!
As we present our findings, we invite readers to join us in exploring this peculiar relationship and pondering the broader implications. Through our research, we aim to shed light on the often overlooked connections between the environment and economic indicators, offering a breath of fresh air to the world of financial analysis.

ChatGPT:

air pollution, Sandpoint Idaho, 3M Company, stock price, environmental factors, financial markets, Environmental Protection Agency, LSEG Analytics, Refinitiv, correlation coefficient, statistical analysis, economic indicators, environmental influence, stock performance

*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 Sandpoint, Idaho
Detailed data title: Percentage of days with air quality at 'unhealthy for sensitive groups' or worse in Sandpoint, ID
Source: Environmental Protection Agency
See what else correlates with Air pollution in Sandpoint, Idaho

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

See what else correlates with 3M Company's stock price (MMM)

Correlation r = 0.8220522 (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.6757698 (Coefficient of determination)
This means 67.6% of the change in the one variable (i.e., 3M Company's stock price (MMM)) is predictable based on the change in the other (i.e., Air pollution in Sandpoint, Idaho) over the 21 years from 2002 through 2022.

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

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

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

Just to be clear: I'm being completely transparent about the calculations. There is no math trickery. This is just how statistics shakes out when you calculate hundreds of millions of random correlations.
with the same 20 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 20 because we have two variables measured over a period of 21 years. It's just the number of years minus ( the number of variables minus one ), which in this case simplifies to the number of years minus one.
you would randomly expect to find a correlation as strong as this one.

[ 0.61, 0.93 ] 95% correlation confidence interval (using the Fisher z-transformation)
The confidence interval is an estimate the range of the value of the correlation coefficient, using the correlation itself as an input. The values are meant to be the low and high end of the correlation coefficient with 95% confidence.

This one is a bit more complciated than the other calculations, but I include it because many people have been pushing for confidence intervals instead of p-value calculations (for example: NEJM. However, if you are dredging data, you can reliably find yourself in the 5%. That's my goal!


All values for the years included above: If I were being very sneaky, I could trim years from the beginning or end of the datasets to increase the correlation on some pairs of variables. I don't do that because there are already plenty of correlations in my database without monkeying with the years.

Still, sometimes one of the variables has more years of data available than the other. This page only shows the overlapping years. To see all the years, click on "See what else correlates with..." link above.
200220032004200520062007200820092010201120122013201420152016201720182019202020212022
Air pollution in Sandpoint, Idaho (Bad air quality days)000000000.0031152600000.032876700.03314920.04407710.002739730.02739730.02747250.021978
3M Company's stock price (MMM) (Stock price)58.5261.668582.1777.7677.5384.2457.5583.0986.7583.7694.19138.05164.71148.05178.83235.78187.82177.68175178.32




Why this works

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




Try it yourself

You can calculate the values on this page on your own! Try running the Python code to see the calculation results. Step 1: Download and install Python on your computer.

Step 2: Open a plaintext editor like Notepad and paste the code below into it.

Step 3: Save the file as "calculate_correlation.py" in a place you will remember, like your desktop. Copy the file location to your clipboard. On Windows, you can right-click the file and click "Properties," and then copy what comes after "Location:" As an example, on my computer the location is "C:\Users\tyler\Desktop"

Step 4: Open a command line window. For example, by pressing start and typing "cmd" and them pressing enter.

Step 5: Install the required modules by typing "pip install numpy", then pressing enter, then typing "pip install scipy", then pressing enter.

Step 6: Navigate to the location where you saved the Python file by using the "cd" command. For example, I would type "cd C:\Users\tyler\Desktop" and push enter.

Step 7: Run the Python script by typing "python calculate_correlation.py"

If you run into any issues, I suggest asking ChatGPT to walk you through installing Python and running the code below on your system. Try this question:

"Walk me through installing Python on my computer to run a script that uses scipy and numpy. Go step-by-step and ask me to confirm before moving on. Start by asking me questions about my operating system so that you know how to proceed. Assume I want the simplest installation with the latest version of Python and that I do not currently have any of the necessary elements installed. Remember to only give me one step per response and confirm I have done it before proceeding."


# These modules make it easier to perform the calculation
import numpy as np
from scipy import stats

# We'll define a function that we can call to return the correlation calculations
def calculate_correlation(array1, array2):

    # Calculate Pearson correlation coefficient and p-value
    correlation, p_value = stats.pearsonr(array1, array2)

    # Calculate R-squared as the square of the correlation coefficient
    r_squared = correlation**2

    return correlation, r_squared, p_value

# These are the arrays for the variables shown on this page, but you can modify them to be any two sets of numbers
array_1 = np.array([0,0,0,0,0,0,0,0,0.00311526,0,0,0,0,0.0328767,0,0.0331492,0.0440771,0.00273973,0.0273973,0.0274725,0.021978,])
array_2 = np.array([58.52,61.66,85,82.17,77.76,77.53,84.24,57.55,83.09,86.75,83.76,94.19,138.05,164.71,148.05,178.83,235.78,187.82,177.68,175,178.32,])
array_1_name = "Air pollution in Sandpoint, Idaho"
array_2_name = "3M Company's stock price (MMM)"

# 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: 4271 · Black Variable ID: 22121 · Red Variable ID: 1715
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0