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

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is Air quality in Middlesborough, Kentucky and the second variable is Gasoline pumped in Azerbaijan.  The chart goes from 1992 to 2021, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

The cleaner air in Middlesborough, Kentucky led to happier geese, who in turn honked a catchy tune that inspired a surge in gasoline sales in Azerbaijan as people couldn't resist dancing at the pump.

Model: dalle-3
Prompt: Generate an image of a vibrant, surreal landscape where lush green fields of Middlesborough, Kentucky seamlessly blend into an ethereal vaporwave world. A group of geese, adorned with pastel and neon colors, joyfully honk and flutter about in the iridescent air. The scene seamlessly transitions to a similarly stylized Azerbaijani gas station, where people are filled with infectious energy, grooving and dancing as they pump gasoline. The entire tableau exudes a dreamy, nostalgic vaporwave aesthetic, filled with pastel hues, neon lights, and an unmistakable sense of retro-futurism. 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 quality in Middlesborough, Kentucky and Gasoline pumped in Azerbaijan. 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: Cutsy art illustration Vaporwave a funny image macro Vaporwave High-tech
ChatGPT: Vaporwave

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 quality in Middlesborough, Kentucky and Gasoline pumped in Azerbaijan, in the following situation: The cleaner air in Middlesborough, Kentucky led to happier geese, who in turn honked a catchy tune that inspired a surge in gasoline sales in Azerbaijan as people couldn't resist dancing at the pump.. Keep the description simple.
ChatGPT: In a lush green field in Middlesborough, Kentucky, a group of geese basked in the fresh, clear air, honking joyfully as they fluttered about. The cheerful honking caught the attention of passersby, who couldn't help but dance along. Meanwhile, in Azerbaijan, the catchy tunes echoed through a gas station where people couldn't resist grooving as they pumped gasoline, a surge in sales evident.

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: [ Vaporwave ] and depicting this scene: In a lush green field in Middlesborough, Kentucky, a group of geese basked in the fresh, clear air, honking joyfully as they fluttered about. The cheerful honking caught the attention of passersby, who couldn't help but dance along. Meanwhile, in Azerbaijan, the catchy tunes echoed through a gas station where people couldn't resist grooving as they pumped gasoline, a surge in sales evident. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Generate an image of a vibrant, surreal landscape where lush green fields of Middlesborough, Kentucky seamlessly blend into an ethereal vaporwave world. A group of geese, adorned with pastel and neon colors, joyfully honk and flutter about in the iridescent air. The scene seamlessly transitions to a similarly stylized Azerbaijani gas station, where people are filled with infectious energy, grooving and dancing as they pump gasoline. The entire tableau exudes a dreamy, nostalgic vaporwave aesthetic, filled with pastel hues, neon lights, and an unmistakable sense of retro-futurism.

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

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

Model: gpt-3.5-turbo-1106 (fine-tuned)
System prompt: You provide humorous responses in the form of plausible sounding explanations for correlations. You assume the correlation is causative for the purpose of the explanation even if it is ridiculous. You do not chat with the user, you only reply with the causal connection explanation and nothing else.
User prompt: Please make up a funny explanation for how increases in Air quality in Middlesborough, Kentucky positively influenced Gasoline pumped in Azerbaijan.

AI academic paper

(Because p < 0.01)
Alliterative Analysis: Air Quality in Middlesborough and Gasoline from Azerbaijan

The Journal of Zany Zoological Studies

Jan 2024

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




Model: gpt-3.5-turbo-1106
System prompt: You are a silly researcher writing an academic paper.You write titles and abstracts of goofy academic research papers.
User prompt:
Pretend you are an academic researcher. Your writing sounds like it belongs in a medical or economics journal. However, you frequently crack jokes, make puns, and add unexpected twists in your writing.

Please draft the title and abstract of an academic research paper presenting the findings of the connection between Air quality in Middlesborough, Kentucky and Gasoline pumped in Azerbaijan. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

Make the title an alliteration.

Your research team used data from Environmental Protection Agency and Energy Information Administration to assess this nagging question. You found a correlation coefficient of 0.6384703 and p < 0.01 for 1992 to 2021.

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]]
Alliterative Analysis: Air Quality in Middlesborough and Gasoline from Azerbaijan

[[ABSTRACT]]
In this study, we sought to explore the curious correlation between the air quality in Middlesborough, Kentucky, and the gasoline pumped from Azerbaijan. We harnessed data from the Environmental Protection Agency and the Energy Information Administration to unravel this enigmatic connection. Our findings revealed a surprising correlation coefficient of 0.6384703 with a p-value of less than 0.01 from the analysis of data spanning from 1992 to 2021.

While it may seem as unlikely as finding a gas station in a desert, our research unveiled insights that left us breathless. The results were as clear as clean air after a rain shower, demonstrating a statistically significant link between air quality in Middlesborough and the gasoline sourced from Azerbaijan. It's as if the air quality was saying, "Azerbaijan, I'm gasping for some fresh air!"

Our study sheds light on the intercontinental influence of gasoline composition on local air quality, highlighting the global impact of fuel choices. This correlation, as peculiar as a car running on fumes, emphasizes the importance of understanding the intricate interplay between distant regions in the realm of environmental quality.

Our findings not only provide an amusing topic for casual conversation but also underscore the need for comprehensive international cooperation in addressing air quality challenges. As we breathe in the wisdom from this research, it becomes evident that sometimes, the relationship between distant entities leaves us not only astounded but also lightheaded, quite literally. Just like a well-crafted dad joke, this correlation reminds us that unexpected connections can elicit both wonder and laughter.


Model: gpt-3.5-turbo-1106
System prompt: You are a silly researcher writing an academic paper.You draft the introduction section of an academic research paper.
User prompt:
Pretend you are an academic researcher. Your writing sounds like it belongs in a medical or economics journal. However, you frequently crack jokes, make puns, or add unexpected twists in your writing.

Please make up the introduction section of an academic research paper presenting the findings of the connection between Air quality in Middlesborough, Kentucky and Gasoline pumped in Azerbaijan. 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]]
Alliterative Analysis: Air Quality in Middlesborough and Gasoline from Azerbaijan

[[ABSTRACT]]
In this study, we sought to explore the curious correlation between the air quality in Middlesborough, Kentucky, and the gasoline pumped from Azerbaijan. We harnessed data from the Environmental Protection Agency and the Energy Information Administration to unravel this enigmatic connection. Our findings revealed a surprising correlation coefficient of 0.6384703 with a p-value of less than 0.01 from the analysis of data spanning from 1992 to 2021.

While it may seem as unlikely as finding a gas station in a desert, our research unveiled insights that left us breathless. The results were as clear as clean air after a rain shower, demonstrating a statistically significant link between air quality in Middlesborough and the gasoline sourced from Azerbaijan. It's as if the air quality was saying, "Azerbaijan, I'm gasping for some fresh air!"

Our study sheds light on the intercontinental influence of gasoline composition on local air quality, highlighting the global impact of fuel choices. This correlation, as peculiar as a car running on fumes, emphasizes the importance of understanding the intricate interplay between distant regions in the realm of environmental quality.

Our findings not only provide an amusing topic for casual conversation but also underscore the need for comprehensive international cooperation in addressing air quality challenges. As we breathe in the wisdom from this research, it becomes evident that sometimes, the relationship between distant entities leaves us not only astounded but also lightheaded, quite literally. Just like a well-crafted dad joke, this correlation reminds us that unexpected connections can elicit both wonder and laughter.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

As the popular saying goes, "Where there's smoke, there's fire," but what if we were to speculate that the smoke in Middlesborough, Kentucky, can trace its origins to the gasoline pumped from Azerbaijan? It may sound like the beginning of an elaborate joke, but this curious correlation between air quality and the geographical source of gasoline warrants serious investigation. After all, understanding the intercontinental dynamics of air pollution can provide substantial insights into environmental policies and global collaboration. It's as though the gases from our cars and the air quality are engaged in a punny exchange, playing a long-form dad joke on the unsuspecting citizens of Middlesborough.

The aim of this research is not merely to crack dad jokes and wax lyrical about statistical analyses, but to probe the intricate relationship between the air we breathe and the fuel powering our vehicles. The surprising link we uncovered is as unexpected as a silent but deadly emission in a crowded room – it demands our attention and further exploration.

We are traversing uncharted territory here, akin to navigating a foggy path with no GPS. The correlation between air quality in Middlesborough and the gasoline from Azerbaijan is as unexpected as finding a rare Pokémon in a bush – it captures our imagination and beckons us to delve deeper into this conundrum. And just like a well-timed dad joke, this correlation leaves us stupefied, yet somehow charmed.


Model: gpt-3.5-turbo-1106
System prompt: You are a silly researcher writing an academic paper.You draft a literature review section of an academic research paper, that starts out dry for the first few sentences but then becomes hilarious and goofy.
User prompt:
Pretend you are an academic researcher. Your writing sounds like it belongs in a medical or economics journal. However, you frequently crack jokes, make puns, or add unexpected twists in your writing.

Please make up a literature review section of an academic research paper presenting the findings of the connection between Air quality in Middlesborough, Kentucky and Gasoline pumped in Azerbaijan. 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 name some movies that you watched that are tangentially related to the topic.

Here is the title and abstract of the paper:
[[TITLE]]
Alliterative Analysis: Air Quality in Middlesborough and Gasoline from Azerbaijan

[[ABSTRACT]]
In this study, we sought to explore the curious correlation between the air quality in Middlesborough, Kentucky, and the gasoline pumped from Azerbaijan. We harnessed data from the Environmental Protection Agency and the Energy Information Administration to unravel this enigmatic connection. Our findings revealed a surprising correlation coefficient of 0.6384703 with a p-value of less than 0.01 from the analysis of data spanning from 1992 to 2021.

While it may seem as unlikely as finding a gas station in a desert, our research unveiled insights that left us breathless. The results were as clear as clean air after a rain shower, demonstrating a statistically significant link between air quality in Middlesborough and the gasoline sourced from Azerbaijan. It's as if the air quality was saying, "Azerbaijan, I'm gasping for some fresh air!"

Our study sheds light on the intercontinental influence of gasoline composition on local air quality, highlighting the global impact of fuel choices. This correlation, as peculiar as a car running on fumes, emphasizes the importance of understanding the intricate interplay between distant regions in the realm of environmental quality.

Our findings not only provide an amusing topic for casual conversation but also underscore the need for comprehensive international cooperation in addressing air quality challenges. As we breathe in the wisdom from this research, it becomes evident that sometimes, the relationship between distant entities leaves us not only astounded but also lightheaded, quite literally. Just like a well-crafted dad joke, this correlation reminds us that unexpected connections can elicit both wonder and laughter.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
As the popular saying goes, "Where there's smoke, there's fire," but what if we were to speculate that the smoke in Middlesborough, Kentucky, can trace its origins to the gasoline pumped from Azerbaijan? It may sound like the beginning of an elaborate joke, but this curious correlation between air quality and the geographical source of gasoline warrants serious investigation. After all, understanding the intercontinental dynamics of air pollution can provide substantial insights into environmental policies and global collaboration. It's as though the gases from our cars and the air quality are engaged in a punny exchange, playing a long-form dad joke on the unsuspecting citizens of Middlesborough.
The aim of this research is not merely to crack dad jokes and wax lyrical about statistical analyses, but to probe the intricate relationship between the air we breathe and the fuel powering our vehicles. The surprising link we uncovered is as unexpected as a silent but deadly emission in a crowded room – it demands our attention and further exploration.
We are traversing uncharted territory here, akin to navigating a foggy path with no GPS. The correlation between air quality in Middlesborough and the gasoline from Azerbaijan is as unexpected as finding a rare Pokémon in a bush – it captures our imagination and beckons us to delve deeper into this conundrum. And just like a well-timed dad joke, this correlation leaves us stupefied, yet somehow charmed.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

The link between air quality and fuel composition has long been a point of interest for researchers. Smith and Doe (2010) found that the chemical composition of gasoline significantly impacts local air quality, with implications for human health and environmental sustainability. Jones and Smith (2015) further emphasized the need for comprehensive analyses of fuel sources to understand their influence on air pollution, echoing the sentiments of previous studies on the subject.

Now, let's shift gears and take a look at some non-fiction books relevant to our research. In "The Air We Breathe: Understanding Pollution and Its Impact" by Environmental Expert, the authors delve into the intricacies of air quality and its correlation with various environmental factors, offering a comprehensive overview of the subject matter. Similarly, "Fuel for Thought: A Global Perspective on Gasoline Sources" by Energy Analyst et al., provides insights into the sources and implications of gasoline usage on a global scale.

But wait, let's not get too serious just yet. How about some fictional works that sound like they could be related to our research? Picture this – "Smoke Signals and Gasoline Dreams" by Fictional Author draws parallels between air quality concerns and the unseen consequences of gasoline consumption in a whimsical yet thought-provoking narrative. Meanwhile, "Azerbaijan Adventures: A Tale of Gasoline and Intrigue" by Imaginary Writer takes readers on a fictional journey through the landscapes of Azerbaijan and unravels mysterious connections to air quality in far-off lands.

And who can forget the classic movies that may offer tangential relevance to our research topic? "The Airbender" is a riveting tale of elemental mastery and balance, offering a fantasy-filled diversion from our data-driven pursuits. Then there's "Fast and Furious: Baku Drift," a high-octane cinematic spectacle that, while not about air quality, certainly features a lot of gasoline.

Speaking of gasoline, did you hear about the Italian chef who died? He pasta way!


Model: gpt-3.5-turbo-1106
System prompt: You are a silly researcher writing an academic paper.You draft the methodology section of an academic research paper.
User prompt:
Pretend you are an academic researcher. Your writing sounds like it belongs in a medical or economics journal. However, you frequently crack jokes, make puns, or add unexpected twists in your writing.

Please make up the methodology section of an academic research paper presenting the findings of the connection between Air quality in Middlesborough, Kentucky and Gasoline pumped in Azerbaijan. 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 Energy Information Administration . You used data from 1992 to 2021

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]]
Alliterative Analysis: Air Quality in Middlesborough and Gasoline from Azerbaijan

[[ABSTRACT]]
In this study, we sought to explore the curious correlation between the air quality in Middlesborough, Kentucky, and the gasoline pumped from Azerbaijan. We harnessed data from the Environmental Protection Agency and the Energy Information Administration to unravel this enigmatic connection. Our findings revealed a surprising correlation coefficient of 0.6384703 with a p-value of less than 0.01 from the analysis of data spanning from 1992 to 2021.

While it may seem as unlikely as finding a gas station in a desert, our research unveiled insights that left us breathless. The results were as clear as clean air after a rain shower, demonstrating a statistically significant link between air quality in Middlesborough and the gasoline sourced from Azerbaijan. It's as if the air quality was saying, "Azerbaijan, I'm gasping for some fresh air!"

Our study sheds light on the intercontinental influence of gasoline composition on local air quality, highlighting the global impact of fuel choices. This correlation, as peculiar as a car running on fumes, emphasizes the importance of understanding the intricate interplay between distant regions in the realm of environmental quality.

Our findings not only provide an amusing topic for casual conversation but also underscore the need for comprehensive international cooperation in addressing air quality challenges. As we breathe in the wisdom from this research, it becomes evident that sometimes, the relationship between distant entities leaves us not only astounded but also lightheaded, quite literally. Just like a well-crafted dad joke, this correlation reminds us that unexpected connections can elicit both wonder and laughter.

[[INTRODUCTION]]
As the popular saying goes, "Where there's smoke, there's fire," but what if we were to speculate that the smoke in Middlesborough, Kentucky, can trace its origins to the gasoline pumped from Azerbaijan? It may sound like the beginning of an elaborate joke, but this curious correlation between air quality and the geographical source of gasoline warrants serious investigation. After all, understanding the intercontinental dynamics of air pollution can provide substantial insights into environmental policies and global collaboration. It's as though the gases from our cars and the air quality are engaged in a punny exchange, playing a long-form dad joke on the unsuspecting citizens of Middlesborough.
The aim of this research is not merely to crack dad jokes and wax lyrical about statistical analyses, but to probe the intricate relationship between the air we breathe and the fuel powering our vehicles. The surprising link we uncovered is as unexpected as a silent but deadly emission in a crowded room – it demands our attention and further exploration.
We are traversing uncharted territory here, akin to navigating a foggy path with no GPS. The correlation between air quality in Middlesborough and the gasoline from Azerbaijan is as unexpected as finding a rare Pokémon in a bush – it captures our imagination and beckons us to delve deeper into this conundrum. And just like a well-timed dad joke, this correlation leaves us stupefied, yet somehow charmed.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To unravel the enigmatic connection between air quality in Middlesborough, Kentucky, and the gasoline pumped from Azerbaijan, our research team embarked on a journey as curious as a cat chasing its tail. We scoured the digital realms for data like a prospector searching for gold, mining information from the Environmental Protection Agency and the Energy Information Administration.

Our methodology hinged on a convoluted concoction of statistical analyses as intricate as trying to unravel a Gordian knot. We employed a mix of time-series analysis, multivariate regressions, and perhaps a sprinkle of magic dust to scrutinize the comprehensive dataset spanning from 1992 to 2021. Our approach was as multifaceted as a disco ball, aiming to capture the complexity of factors influencing air quality and the composition of gasoline.

Employing statistical software more sophisticated than a stand-up comedian's repertoire, we meticulously computed correlation coefficients and their associated p-values. This analytical process was as rigorous as a marathon runner's training regimen, ensuring that our findings were as robust as a sturdy dad joke.

To further enhance our investigation, we indulged in spatial analysis to explore the spatial patterns of air quality and gasoline composition. Our spatial approach was as dynamic as a game of musical chairs, as we sought to decipher the intricate dance between local air quality and the global source of gasoline.

Like a detective examining a crime scene, we carefully scrutinized the whispers of data for any clues that could unlock the mystery of this cross-continental correlation. Our process was as methodical as a symphony conductor directing a masterpiece, orchestrating the harmonious interplay of variables to unveil the unexpected connection between Middlesborough's air and Azerbaijani gasoline.

At every step of the analysis, we acknowledged the inherent complexity and potential for hidden confounders, just as a seasoned detective stays alert for red herrings. Our pursuit was as gripping as a suspense novel, with each turn of the page revealing new insights into this captivating correlation.

In the end, our approach may have been as intricate as untangling headphone wires, but the resulting findings shed light on this unexpected relationship, leaving us both enlightened and entertained. Just like a clever dad joke, our methodology, while rigorous, also maintained an element of light-hearted whimsy.


Model: gpt-3.5-turbo-1106
System prompt: You are a silly researcher writing an academic paper.You draft the results section of an academic research paper. You speak in the past tense (you found...).
User prompt:
Pretend you are an academic researcher. Your writing sounds like it belongs in a medical or economics journal. However, you frequently crack jokes, make puns, or add unexpected twists in your writing.

Please make up the results section of an academic research paper presenting the findings of the connection between Air quality in Middlesborough, Kentucky and Gasoline pumped in Azerbaijan. 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 Energy Information Administration .

For the time period 1992 to 2021, you found a correlation 0.6384703, r-squared of 0.4076443, 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]]
Alliterative Analysis: Air Quality in Middlesborough and Gasoline from Azerbaijan

[[ABSTRACT]]
In this study, we sought to explore the curious correlation between the air quality in Middlesborough, Kentucky, and the gasoline pumped from Azerbaijan. We harnessed data from the Environmental Protection Agency and the Energy Information Administration to unravel this enigmatic connection. Our findings revealed a surprising correlation coefficient of 0.6384703 with a p-value of less than 0.01 from the analysis of data spanning from 1992 to 2021.

While it may seem as unlikely as finding a gas station in a desert, our research unveiled insights that left us breathless. The results were as clear as clean air after a rain shower, demonstrating a statistically significant link between air quality in Middlesborough and the gasoline sourced from Azerbaijan. It's as if the air quality was saying, "Azerbaijan, I'm gasping for some fresh air!"

Our study sheds light on the intercontinental influence of gasoline composition on local air quality, highlighting the global impact of fuel choices. This correlation, as peculiar as a car running on fumes, emphasizes the importance of understanding the intricate interplay between distant regions in the realm of environmental quality.

Our findings not only provide an amusing topic for casual conversation but also underscore the need for comprehensive international cooperation in addressing air quality challenges. As we breathe in the wisdom from this research, it becomes evident that sometimes, the relationship between distant entities leaves us not only astounded but also lightheaded, quite literally. Just like a well-crafted dad joke, this correlation reminds us that unexpected connections can elicit both wonder and laughter.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
As the popular saying goes, "Where there's smoke, there's fire," but what if we were to speculate that the smoke in Middlesborough, Kentucky, can trace its origins to the gasoline pumped from Azerbaijan? It may sound like the beginning of an elaborate joke, but this curious correlation between air quality and the geographical source of gasoline warrants serious investigation. After all, understanding the intercontinental dynamics of air pollution can provide substantial insights into environmental policies and global collaboration. It's as though the gases from our cars and the air quality are engaged in a punny exchange, playing a long-form dad joke on the unsuspecting citizens of Middlesborough.
The aim of this research is not merely to crack dad jokes and wax lyrical about statistical analyses, but to probe the intricate relationship between the air we breathe and the fuel powering our vehicles. The surprising link we uncovered is as unexpected as a silent but deadly emission in a crowded room – it demands our attention and further exploration.
We are traversing uncharted territory here, akin to navigating a foggy path with no GPS. The correlation between air quality in Middlesborough and the gasoline from Azerbaijan is as unexpected as finding a rare Pokémon in a bush – it captures our imagination and beckons us to delve deeper into this conundrum. And just like a well-timed dad joke, this correlation leaves us stupefied, yet somehow charmed.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The correlation analysis between the air quality in Middlesborough, Kentucky, and the gasoline sourced from Azerbaijan yielded a striking correlation coefficient of 0.6384703, with an r-squared value of 0.4076443, and a p-value less than 0.01. This robust correlation implies a substantial association between the two variables, enough to make even the most seasoned statistician chuckle at the unexpected link. It's as if the gasoline and the air quality are engaged in a spirited game of "got your nose" with statistical significance as the punchline!

Fig. 1 presents a scatterplot illustrating the strong positive correlation between the air quality in Middlesborough and the source of gasoline from Azerbaijan. The data points form a pattern so coherent and dependable, you'd think it could tell a knock-knock joke without skipping a beat.

Our findings not only confirm the presence of a statistically significant relationship between air quality in Middlesborough and gasoline from Azerbaijan but also underscore the potential impact on environmental and policy decisions. It's as if the two variables got together and said, "Let's air out some dirty laundry and clean up our act, Azerbaijan!"

These results illuminate the importance of considering international influences on local air quality, evoking a realization as unexpected as realizing that raincoats and umbrellas are relatives – timely precipitation is in their genes. The correlation discovered in this study emphasizes the need for comprehensive measures that account for the broader intercontinental dynamics affecting air quality. It's as if the air quality and gasoline source are whispering a punchline in our ears, urging us to take a deep breath and consider the global implications of our environmental choices.


Model: gpt-3.5-turbo-1106
System prompt: You are a silly researcher writing an academic paper.You draft the discussion section of an academic research paper.
User prompt:
Pretend you are an academic researcher. Your writing sounds like it belongs in a medical or economics journal. However, you frequently crack jokes, make puns, or add unexpected twists in your writing.

Please make up the discussion section of an academic research paper presenting the findings of the connection between Air quality in Middlesborough, Kentucky and Gasoline pumped in Azerbaijan. 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]]
Alliterative Analysis: Air Quality in Middlesborough and Gasoline from Azerbaijan

[[ABSTRACT]]
In this study, we sought to explore the curious correlation between the air quality in Middlesborough, Kentucky, and the gasoline pumped from Azerbaijan. We harnessed data from the Environmental Protection Agency and the Energy Information Administration to unravel this enigmatic connection. Our findings revealed a surprising correlation coefficient of 0.6384703 with a p-value of less than 0.01 from the analysis of data spanning from 1992 to 2021.

While it may seem as unlikely as finding a gas station in a desert, our research unveiled insights that left us breathless. The results were as clear as clean air after a rain shower, demonstrating a statistically significant link between air quality in Middlesborough and the gasoline sourced from Azerbaijan. It's as if the air quality was saying, "Azerbaijan, I'm gasping for some fresh air!"

Our study sheds light on the intercontinental influence of gasoline composition on local air quality, highlighting the global impact of fuel choices. This correlation, as peculiar as a car running on fumes, emphasizes the importance of understanding the intricate interplay between distant regions in the realm of environmental quality.

Our findings not only provide an amusing topic for casual conversation but also underscore the need for comprehensive international cooperation in addressing air quality challenges. As we breathe in the wisdom from this research, it becomes evident that sometimes, the relationship between distant entities leaves us not only astounded but also lightheaded, quite literally. Just like a well-crafted dad joke, this correlation reminds us that unexpected connections can elicit both wonder and laughter.

[[LITERATURE REVIEW]]
The link between air quality and fuel composition has long been a point of interest for researchers. Smith and Doe (2010) found that the chemical composition of gasoline significantly impacts local air quality, with implications for human health and environmental sustainability. Jones and Smith (2015) further emphasized the need for comprehensive analyses of fuel sources to understand their influence on air pollution, echoing the sentiments of previous studies on the subject.
Now, let's shift gears and take a look at some non-fiction books relevant to our research. In "The Air We Breathe: Understanding Pollution and Its Impact" by Environmental Expert, the authors delve into the intricacies of air quality and its correlation with various environmental factors, offering a comprehensive overview of the subject matter. Similarly, "Fuel for Thought: A Global Perspective on Gasoline Sources" by Energy Analyst et al., provides insights into the sources and implications of gasoline usage on a global scale.
But wait, let's not get too serious just yet. How about some fictional works that sound like they could be related to our research? Picture this – "Smoke Signals and Gasoline Dreams" by Fictional Author draws parallels between air quality concerns and the unseen consequences of gasoline consumption in a whimsical yet thought-provoking narrative. Meanwhile, "Azerbaijan Adventures: A Tale of Gasoline and Intrigue" by Imaginary Writer takes readers on a fictional journey through the landscapes of Azerbaijan and unravels mysterious connections to air quality in far-off lands.
And who can forget the classic movies that may offer tangential relevance to our research topic? "The Airbender" is a riveting tale of elemental mastery and balance, offering a fantasy-filled diversion from our data-driven pursuits. Then there's "Fast and Furious: Baku Drift," a high-octane cinematic spectacle that, while not about air quality, certainly features a lot of gasoline.
Speaking of gasoline, did you hear about the Italian chef who died? He pasta way!

[[RESULTS]]
The correlation analysis between the air quality in Middlesborough, Kentucky, and the gasoline sourced from Azerbaijan yielded a striking correlation coefficient of 0.6384703, with an r-squared value of 0.4076443, and a p-value less than 0.01. This robust correlation implies a substantial association between the two variables, enough to make even the most seasoned statistician chuckle at the unexpected link. It's as if the gasoline and the air quality are engaged in a spirited game of "got your nose" with statistical significance as the punchline!
Fig. 1 presents a scatterplot illustrating the strong positive correlation between the air quality in Middlesborough and the source of gasoline from Azerbaijan. The data points form a pattern so coherent and dependable, you'd think it could tell a knock-knock joke without skipping a beat.
Our findings not only confirm the presence of a statistically significant relationship between air quality in Middlesborough and gasoline from Azerbaijan but also underscore the potential impact on environmental and policy decisions. It's as if the two variables got together and said, "Let's air out some dirty laundry and clean up our act, Azerbaijan!"
These results illuminate the importance of considering international influences on local air quality, evoking a realization as unexpected as realizing that raincoats and umbrellas are relatives – timely precipitation is in their genes. The correlation discovered in this study emphasizes the need for comprehensive measures that account for the broader intercontinental dynamics affecting air quality. It's as if the air quality and gasoline source are whispering a punchline in our ears, urging us to take a deep breath and consider the global implications of our environmental choices.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

Our study delved into the whimsical world of air quality and gasoline sourcing, uncovering a correlation that's as unexpected as finding a "No Smoking" sign in a fireworks factory. The findings not only provide empirical evidence supporting prior research on the relationship between fuel composition and air quality, but they also leave us pondering the intercontinental web of connections, like a global game of six degrees of separation played out in airborne particles.

The robust correlation coefficient of 0.6384703 we uncovered is a real knee-slapper in the world of statistical analyses, akin to a hidden punchline revealing itself at the end of a long-winded joke. Just like well-timed comedic timing, the p-value of less than 0.01 adds a touch of drama, leaving us on the edge of our seats, waiting for the unexpected twist.

Our results align with the insightful work of Smith and Doe (2010) and Jones and Smith (2015), affirming the significant impact of fuel composition on air quality. It's as if our findings are the punchline to a joke that researchers have been setting up for years, leaving us all nodding in amused agreement – "Ah, that makes sense!"

Furthermore, the scatterplot in Fig. 1 paints a hilarious picture, as if the data points are standing shoulder to shoulder, getting ready to deliver a punchline that defies conventional wisdom. It's as if the plot itself is a cleverly crafted setup, leading us to a conclusion that's both surprising and inevitable, much like an unexpected twist in a good mystery novel.

The interplay between air quality in Middlesborough and the gasoline sourced from Azerbaijan is not just a statistical curiosity; it's a reminder that even the most unexpected entities can share a common storyline, much like a good ol' "two men walk into a bar" gag. The correlation we uncovered emphasizes the need for international cooperation and policy strategies to address the far-reaching implications of fuel choices, leaving us with a chuckle and a raised eyebrow at the interconnectedness of our world, much like a comedy of errors playing out on a global stage.

In conclusion, our study not only adds a punchline to the ongoing conversation about air quality and gasoline sourcing but also highlights the need for interdisciplinary and international collaboration. The unexpected correlation we unraveled is like a good dad joke – it's both surprising and inevitable, leaving us laughing and pondering the interconnectedness of our world. As we wrap up this discussion, let's leave the reader with a parting pun: "Who knew that air quality and gasoline could be the ultimate 'power couple'? It's a real breath of fresh air!"


Model: gpt-3.5-turbo-1106
System prompt: You are a silly researcher writing an academic paper.You draft the discussion section of goofy academic research papers that sounds like it belongs based on the title and abstract provided.
User prompt:
Pretend you are an academic researcher. Your writing sounds like it belongs in a medical or economics journal. However, you frequently crack jokes, make puns, or add unexpected twists in your writing.

Please make up a short conclusion of an academic research paper presenting the findings of the connection between Air quality in Middlesborough, Kentucky and Gasoline pumped in Azerbaijan. 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]]
Alliterative Analysis: Air Quality in Middlesborough and Gasoline from Azerbaijan

[[ABSTRACT]]
In this study, we sought to explore the curious correlation between the air quality in Middlesborough, Kentucky, and the gasoline pumped from Azerbaijan. We harnessed data from the Environmental Protection Agency and the Energy Information Administration to unravel this enigmatic connection. Our findings revealed a surprising correlation coefficient of 0.6384703 with a p-value of less than 0.01 from the analysis of data spanning from 1992 to 2021.

While it may seem as unlikely as finding a gas station in a desert, our research unveiled insights that left us breathless. The results were as clear as clean air after a rain shower, demonstrating a statistically significant link between air quality in Middlesborough and the gasoline sourced from Azerbaijan. It's as if the air quality was saying, "Azerbaijan, I'm gasping for some fresh air!"

Our study sheds light on the intercontinental influence of gasoline composition on local air quality, highlighting the global impact of fuel choices. This correlation, as peculiar as a car running on fumes, emphasizes the importance of understanding the intricate interplay between distant regions in the realm of environmental quality.

Our findings not only provide an amusing topic for casual conversation but also underscore the need for comprehensive international cooperation in addressing air quality challenges. As we breathe in the wisdom from this research, it becomes evident that sometimes, the relationship between distant entities leaves us not only astounded but also lightheaded, quite literally. Just like a well-crafted dad joke, this correlation reminds us that unexpected connections can elicit both wonder and laughter.

[[INTRDUCTION]]
As the popular saying goes, "Where there's smoke, there's fire," but what if we were to speculate that the smoke in Middlesborough, Kentucky, can trace its origins to the gasoline pumped from Azerbaijan? It may sound like the beginning of an elaborate joke, but this curious correlation between air quality and the geographical source of gasoline warrants serious investigation. After all, understanding the intercontinental dynamics of air pollution can provide substantial insights into environmental policies and global collaboration. It's as though the gases from our cars and the air quality are engaged in a punny exchange, playing a long-form dad joke on the unsuspecting citizens of Middlesborough.
The aim of this research is not merely to crack dad jokes and wax lyrical about statistical analyses, but to probe the intricate relationship between the air we breathe and the fuel powering our vehicles. The surprising link we uncovered is as unexpected as a silent but deadly emission in a crowded room – it demands our attention and further exploration.
We are traversing uncharted territory here, akin to navigating a foggy path with no GPS. The correlation between air quality in Middlesborough and the gasoline from Azerbaijan is as unexpected as finding a rare Pokémon in a bush – it captures our imagination and beckons us to delve deeper into this conundrum. And just like a well-timed dad joke, this correlation leaves us stupefied, yet somehow charmed.

[[RESULTS]]
The correlation analysis between the air quality in Middlesborough, Kentucky, and the gasoline sourced from Azerbaijan yielded a striking correlation coefficient of 0.6384703, with an r-squared value of 0.4076443, and a p-value less than 0.01. This robust correlation implies a substantial association between the two variables, enough to make even the most seasoned statistician chuckle at the unexpected link. It's as if the gasoline and the air quality are engaged in a spirited game of "got your nose" with statistical significance as the punchline!
Fig. 1 presents a scatterplot illustrating the strong positive correlation between the air quality in Middlesborough and the source of gasoline from Azerbaijan. The data points form a pattern so coherent and dependable, you'd think it could tell a knock-knock joke without skipping a beat.
Our findings not only confirm the presence of a statistically significant relationship between air quality in Middlesborough and gasoline from Azerbaijan but also underscore the potential impact on environmental and policy decisions. It's as if the two variables got together and said, "Let's air out some dirty laundry and clean up our act, Azerbaijan!"
These results illuminate the importance of considering international influences on local air quality, evoking a realization as unexpected as realizing that raincoats and umbrellas are relatives – timely precipitation is in their genes. The correlation discovered in this study emphasizes the need for comprehensive measures that account for the broader intercontinental dynamics affecting air quality. It's as if the air quality and gasoline source are whispering a punchline in our ears, urging us to take a deep breath and consider the global implications of our environmental choices.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our research has unveiled a surprising connection between air quality in Middlesborough, Kentucky, and the gasoline pumped from Azerbaijan. This correlation coefficient of 0.6384703 with a p-value of less than 0.01 is as solid as a well-inflated tire - leaving little room for doubt. It's as if the air quality in Middlesborough and the gasoline from Azerbaijan are engaged in a global game of "tag, you're it," and the statistical significance is the tagline!

Our findings emphasize the intercontinental influence of gasoline composition on local air quality, highlighting the need for international collaboration like a team of synchronized swimmers. This correlation leaves us not only "gasping for breath" but also "fueling" our interest in understanding the broader impacts of fuel choices. It's as if the air quality is delivering a punchline that leaves us both breathless and chuckling.

We assert with confidence that no further research is needed in this area, as our results leave little room for doubt. The correlation between air quality in Middlesborough, Kentucky, and the gasoline from Azerbaijan has been thoroughly examined and presented. It's as if the answer to this mystery is as clear as day, like a dad joke one cannot resist laughing at.


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 Alliterative Analysis: Air Quality in Middlesborough and Gasoline from Azerbaijan. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Zany Zoological Studies


Model: gpt-3.5-turbo-1106
System prompt: You provide fictional names of nonprofit research organizations and associations. You say nothing else, and you do not chat with the user.
User prompt: Please provide the name of a funny but plausible sounding nonprofit, academic, or scientific association or organization that would sponsor research that resulted in a paper entited Alliterative Analysis: Air Quality in Middlesborough and Gasoline from Azerbaijan. Respond only with the name of a fictional organization.

ChatGPT:

Circumnavigators Consortium for Curious Research


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 Alliterative Analysis: Air Quality in Middlesborough and Gasoline from Azerbaijan with an abstract of In this study, we sought to explore the curious correlation between the air quality in Middlesborough, Kentucky, and the gasoline pumped from Azerbaijan. We harnessed data from the Environmental Protection Agency and the Energy Information Administration to unravel this enigmatic connection. Our findings revealed a surprising correlation coefficient of 0.6384703 with a p-value of less than 0.01 from the analysis of data spanning from 1992 to 2021.
While it may seem as unlikely as finding a gas station in a desert, our research unveiled insights that left us breathless. The results were as clear as clean air after a rain shower, demonstrating a statistically significant link between air quality in Middlesborough and the gasoline sourced from Azerbaijan. It's as if the air quality was saying, "Azerbaijan, I'm gasping for some fresh air!"
Our study sheds light on the intercontinental influence of gasoline composition on local air quality, highlighting the global impact of fuel choices. This correlation, as peculiar as a car running on fumes, emphasizes the importance of understanding the intricate interplay between distant regions in the realm of environmental quality.
Our findings not only provide an amusing topic for casual conversation but also underscore the need for comprehensive international cooperation in addressing air quality challenges. As we breathe in the wisdom from this research, it becomes evident that sometimes, the relationship between distant entities leaves us not only astounded but also lightheaded, quite literally. Just like a well-crafted dad joke, this correlation reminds us that unexpected connections can elicit both wonder and laughter.

ChatGPT:

air quality, Middlesborough, Kentucky, gasoline, Azerbaijan, correlation, Environmental Protection Agency, Energy Information Administration, intercontinental influence, global impact, fuel choices, international cooperation, air quality challenges

*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 quality in Middlesborough, Kentucky
Detailed data title: Percentage of days with good or moderate air quality in Middlesborough, KY
Source: Environmental Protection Agency
See what else correlates with Air quality in Middlesborough, Kentucky

Gasoline pumped in Azerbaijan
Detailed data title: Volume of gasoline pumped consumed in Azerbaijan in millions of barrels per day
Source: Energy Information Administration
See what else correlates with Gasoline pumped in Azerbaijan

Correlation r = 0.6384703 (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.4076443 (Coefficient of determination)
This means 40.8% of the change in the one variable (i.e., Gasoline pumped in Azerbaijan) is predictable based on the change in the other (i.e., Air quality in Middlesborough, Kentucky) over the 30 years from 1992 through 2021.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 0.00015. 0.0001467014991661922700000000
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.64 in 0.015% of random cases. Said differently, if you correlated 6,817 random variables Which I absolutely did.
with the same 29 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 29 because we have two variables measured over a period of 30 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.36, 0.81 ] 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.
199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021
Air quality in Middlesborough, Kentucky (Good air quality)0.9890710.9808220.9863010.9534250.9781420.9726030.9506850.920330.8989070.9358970.8712120.9660380.9923950.9529910.9962550.8598480.98098910.97348510.9845561110.99233711110.994506
Gasoline pumped in Azerbaijan (Million Barrels/Day)22212516171118197.481239.23119.3012110.539810.930513.46116.826318.532322.187323.299824.655227.436229.492830.778132.4607302930.544430.334131.712927.553127.5531




Why this works

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




Try it yourself

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

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

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

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

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

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

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

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

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


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

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

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

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

    return correlation, r_squared, p_value

# These are the arrays for the variables shown on this page, but you can modify them to be any two sets of numbers
array_1 = np.array([0.989071,0.980822,0.986301,0.953425,0.978142,0.972603,0.950685,0.92033,0.898907,0.935897,0.871212,0.966038,0.992395,0.952991,0.996255,0.859848,0.980989,1,0.973485,1,0.984556,1,1,1,0.992337,1,1,1,1,0.994506,])
array_2 = np.array([22,21,25,16,17,11,18,19,7.48123,9.2311,9.30121,10.5398,10.9305,13.461,16.8263,18.5323,22.1873,23.2998,24.6552,27.4362,29.4928,30.7781,32.4607,30,29,30.5444,30.3341,31.7129,27.5531,27.5531,])
array_1_name = "Air quality in Middlesborough, Kentucky"
array_2_name = "Gasoline pumped in Azerbaijan"

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

Your rating is stellar!


Correlation ID: 4258 · Black Variable ID: 22353 · Red Variable ID: 24167
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0