about · email me · subscribe
Spurious correlation #3,827 · 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 Albuquerque and the second variable is Kerosene used in Bolivia.  The chart goes from 1980 to 2021, and the two variables track closely in value over that time. Small Image

AI explanation

As the air pollution in Albuquerque decreased, it created a ripple effect in the atmosphere, leading to a kerosene-deflating pressure system that wafted its way down to Bolivia, ultimately resulting in a remarkable reduction in kerosene usage. It’s like Mother Nature decided to organize a worldwide emissions-reducing scavenger hunt!

Model: dalle-3
Prompt: ![A Discovery magazine cover image depicting a scene of contrast](https://dalle-3-images.s3.amazonaws.com/imagegen/pg-6kac8999wu.jpg) Create an image showcasing two contrasting scenes. In one part, depict Albuquerque with a thick layer of smog hanging in the air, obscuring buildings and mountains. Show people hurriedly packing their cars to escape, driving towards the clear, pristine mountains. In another part, depict Bolivia with a line of people outside a store with "Kerosene Sold Out" signs, scrambling to find fuel for their camping stoves. Keep the visual depiction clear and impactful without including any words or speech bubbles. 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 Albuquerque and Kerosene used in Bolivia. Given these, which of the following image style descriptions seems most appropriate? Pick the one that seems to be related to one of the variables at hand. Please respond with only one of the following potential descriptions: a Polaroid photo Surrealism Low poly A Discovery magazine cover image An image that looks like it is a scene from 'Star Wars'
ChatGPT: A Discovery magazine cover image

Model: gpt-3.5-turbo-1106
System prompt: You describe simple visual scenes that depict the two variables stated. You combine both variables into one scene.
User prompt: Please describe a visual scene that prominently depicts both Air pollution in Albuquerque and Kerosene used in Bolivia, in the following situation: Changes in air pollution in Albuquerque caused an increased demand for fresh air, so people started taking trips to the mountains for a breath of fresh air. As a result, there was a surge in kerosene sales for camping stoves, which led to a shortage in Bolivia, causing a kerosene crisis.. Keep the description simple.
ChatGPT: In Albuquerque, a thick layer of smog hangs in the air, with buildings and mountains obscured in a hazy veil. People are seen packing their cars, eager to escape the polluted city, and driving towards the clear, pristine mountains. Meanwhile, in Bolivia, a line of people forms outside a store with "Kerosene Sold Out" signs hung up, as they scramble to find fuel for their camping stoves.

Model: gpt-3.5-turbo-1106
System prompt: You write and improve image generation prompts for DALLE-3. You maintain the same subjects, but enhance the visuals.
User prompt: Please respond with an image generation prompt that would be likely to create an interesting visual using DALLE-3, using the following style: [ A Discovery magazine cover image ] and depicting this scene: In Albuquerque, a thick layer of smog hangs in the air, with buildings and mountains obscured in a hazy veil. People are seen packing their cars, eager to escape the polluted city, and driving towards the clear, pristine mountains. Meanwhile, in Bolivia, a line of people forms outside a store with "Kerosene Sold Out" signs hung up, as they scramble to find fuel for their camping stoves. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: ![A Discovery magazine cover image depicting a scene of contrast](https://dalle-3-images.s3.amazonaws.com/imagegen/pg-6kac8999wu.jpg) Create an image showcasing two contrasting scenes. In one part, depict Albuquerque with a thick layer of smog hanging in the air, obscuring buildings and mountains. Show people hurriedly packing their cars to escape, driving towards the clear, pristine mountains. In another part, depict Bolivia with a line of people outside a store with "Kerosene Sold Out" signs, scrambling to find fuel for their camping stoves. Keep the visual depiction clear and impactful without including any words or speech bubbles.

*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 a decrease in Air pollution in Albuquerque caused Kerosene used in Bolivia to decrease. Add a funny one-liner at the end.

AI academic paper

(Because p < 0.01)
In Pursuit of Pollution: The Parallels of Air Quality in Albuquerque and Kerosene Usage in Bolivia

The International Journal of Ecological Connections

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




Model: gpt-3.5-turbo-1106
System prompt: You are a 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 Albuquerque and Kerosene used in Bolivia. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

Rhyme words in the title.

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.7332628 and p < 0.01 for 1980 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]]
In Pursuit of Pollution: The Parallels of Air Quality in Albuquerque and Kerosene Usage in Bolivia

[[ABSTRACT]]
This paper delves into the tangential relationship between air pollution in Albuquerque and the usage of kerosene in Bolivia. Utilizing data from the Environmental Protection Agency and Energy Information Administration, we embarked on an odyssey to uncover the interconnectedness of these seemingly disparate phenomena. Our findings, represented by a correlation coefficient of 0.7332628 and a p-value less than 0.01 for the time period spanning from 1980 to 2021, unearth a surprising parallel trajectory in the two locales. While stoking the flames of curiosity, our research illuminates the tether of influence between the distant lands of New Mexico and Bolivia, provoking contemplation on the interconnectedness of environmental impact across borders.


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 Albuquerque and Kerosene used in Bolivia. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Here is the title and abstract of the paper:
[[TITLE]]
In Pursuit of Pollution: The Parallels of Air Quality in Albuquerque and Kerosene Usage in Bolivia

[[ABSTRACT]]
This paper delves into the tangential relationship between air pollution in Albuquerque and the usage of kerosene in Bolivia. Utilizing data from the Environmental Protection Agency and Energy Information Administration, we embarked on an odyssey to uncover the interconnectedness of these seemingly disparate phenomena. Our findings, represented by a correlation coefficient of 0.7332628 and a p-value less than 0.01 for the time period spanning from 1980 to 2021, unearth a surprising parallel trajectory in the two locales. While stoking the flames of curiosity, our research illuminates the tether of influence between the distant lands of New Mexico and Bolivia, provoking contemplation on the interconnectedness of environmental impact across borders.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

Beneath the surface of our planet, an invisible dance unfolds between air quality in Albuquerque and the clandestine consumption of kerosene in Bolivia. The notion of such a correlation might seem as unlikely as a platypus at a penguin convention, yet the data tells a different story. In this paper, we embark on a journey that transcends geographical boundaries and transcends the ordinary, shedding light on the unexpected entwining of these two seemingly disparate variables.

At first glance, the glint of kerosene lamps in the Bolivian night might seem worlds away from the hazy horizons of Albuquerque, but when we peer through the lens of data and statistical analysis, a peculiar juxtaposition emerges. With statistical sleuthing and the magnifying glass of correlation coefficients, we set forth to unravel the enigmatic ways in which air pollution and kerosene usage intertwine, much like a double helix of environmental influence.

Our pursuit was akin to searching for a needle in a haystack, with the haystack being the myriad factors influencing air quality and the needle being the elusive link to kerosene usage in Bolivia. As we continued our investigation, sifting through mounds of data from the Environmental Protection Agency and Energy Information Administration, a glimmer of connection revealed itself – a glimmer that sparkled with the promise of uncovering an untold story of environmental interconnectivity.

By delving into this unlikely pairing of variables, we invite the reader to ponder the interconnectedness of our planet’s environmental tapestry. Just as the beating wings of a butterfly can set off a chain reaction halfway across the world, our research aims to illuminate the ripple effects of seemingly isolated environmental factors. So, grab a metaphorical magnifying glass and join us on this journey of discovery as we unravel the mysterious connection between air pollution in Albuquerque and the humble glow of kerosene in Bolivia.


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 Albuquerque and Kerosene used in Bolivia. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

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

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

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

Here is the title and abstract of the paper:
[[TITLE]]
In Pursuit of Pollution: The Parallels of Air Quality in Albuquerque and Kerosene Usage in Bolivia

[[ABSTRACT]]
This paper delves into the tangential relationship between air pollution in Albuquerque and the usage of kerosene in Bolivia. Utilizing data from the Environmental Protection Agency and Energy Information Administration, we embarked on an odyssey to uncover the interconnectedness of these seemingly disparate phenomena. Our findings, represented by a correlation coefficient of 0.7332628 and a p-value less than 0.01 for the time period spanning from 1980 to 2021, unearth a surprising parallel trajectory in the two locales. While stoking the flames of curiosity, our research illuminates the tether of influence between the distant lands of New Mexico and Bolivia, provoking contemplation on the interconnectedness of environmental impact across borders.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
Beneath the surface of our planet, an invisible dance unfolds between air quality in Albuquerque and the clandestine consumption of kerosene in Bolivia. The notion of such a correlation might seem as unlikely as a platypus at a penguin convention, yet the data tells a different story. In this paper, we embark on a journey that transcends geographical boundaries and transcends the ordinary, shedding light on the unexpected entwining of these two seemingly disparate variables.
At first glance, the glint of kerosene lamps in the Bolivian night might seem worlds away from the hazy horizons of Albuquerque, but when we peer through the lens of data and statistical analysis, a peculiar juxtaposition emerges. With statistical sleuthing and the magnifying glass of correlation coefficients, we set forth to unravel the enigmatic ways in which air pollution and kerosene usage intertwine, much like a double helix of environmental influence.
Our pursuit was akin to searching for a needle in a haystack, with the haystack being the myriad factors influencing air quality and the needle being the elusive link to kerosene usage in Bolivia. As we continued our investigation, sifting through mounds of data from the Environmental Protection Agency and Energy Information Administration, a glimmer of connection revealed itself – a glimmer that sparkled with the promise of uncovering an untold story of environmental interconnectivity.
By delving into this unlikely pairing of variables, we invite the reader to ponder the interconnectedness of our planet’s environmental tapestry. Just as the beating wings of a butterfly can set off a chain reaction halfway across the world, our research aims to illuminate the ripple effects of seemingly isolated environmental factors. So, grab a metaphorical magnifying glass and join us on this journey of discovery as we unravel the mysterious connection between air pollution in Albuquerque and the humble glow of kerosene in Bolivia.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

The exploration of air quality and its association with kerosene usage has been a topic of interest for researchers over the years. Smith (2005) delved into the impact of air pollutants on human health, highlighting the detrimental effects of particulate matter and nitrogen oxides. Meanwhile, Doe (2010) examined the dynamics of kerosene usage in residential areas, shedding light on the socio-economic factors influencing fuel choices. Additionally, Jones (2013) conducted a comprehensive study on the global energy landscape, emphasizing the role of traditional fuels in developing regions.

Beyond the realm of academic literature, several non-fiction works have offered insights into the complexities of air quality and energy consumption. "The Air Pollution Primer" by Clear (2018) succinctly synthesizes the science behind air pollution, making it accessible to a wide audience. On the other hand, "Kerosene: A Journey Through History" by Flame (2015) provides a captivating historical account of kerosene's evolution from lamp oil to a multipurpose fuel. These sources furnish a foundational understanding of the key variables under scrutiny in our investigation.

Turning to fictional literature, "Smoke and Mirrors" by Smog (2008) presents a whimsical tale of a peculiar affinity between a cloud of smog and an enchanted kerosene lamp. While purely imaginative, this work reminds us of the curious connections that can be woven between seemingly incongruent elements. Similarly, "The Kerosene Diaries" by Wick (2012) weaves a narrative around the mystical properties of kerosene, offering a fantastical perspective on the substance's transcendental qualities. While these works may not contribute directly to empirical research, they serve as reminders of the creative potential in uncovering unexpected relationships.

In a more cinematic realm, the film "Up in Smoke" (1978) provides a lighthearted exploration of the unforeseen consequences of recreational smoke, albeit unrelated to kerosene. Similarly, the documentary "Fire and Air: A Tale of Two Elements" (2015) juxtaposes the elemental forces of fire and air, stimulating thought on the interplay of environmental factors. While the cinematic medium offers entertainment value, it also hints at the multilayered nature of environmental phenomena, much like the intricate web we seek to unravel in our study.

As we tread through the diverse landscape of literature and media, we are reminded of the intricate tapestry that forms the backdrop of our research. While our pursuit may be grounded in data and analysis, it is crucial to appreciate the multidimensionality of the phenomena under investigation. With this eclectic repertoire of sources in mind, we embark on our empirical journey, fueled by the ethos of discovery and an inclination for the unexpected.


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 Albuquerque and Kerosene used in Bolivia. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Your research team collected data from all across the internet, but mostly just used information from Environmental Protection Agency and Energy Information Administration . You used data from 1980 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]]
In Pursuit of Pollution: The Parallels of Air Quality in Albuquerque and Kerosene Usage in Bolivia

[[ABSTRACT]]
This paper delves into the tangential relationship between air pollution in Albuquerque and the usage of kerosene in Bolivia. Utilizing data from the Environmental Protection Agency and Energy Information Administration, we embarked on an odyssey to uncover the interconnectedness of these seemingly disparate phenomena. Our findings, represented by a correlation coefficient of 0.7332628 and a p-value less than 0.01 for the time period spanning from 1980 to 2021, unearth a surprising parallel trajectory in the two locales. While stoking the flames of curiosity, our research illuminates the tether of influence between the distant lands of New Mexico and Bolivia, provoking contemplation on the interconnectedness of environmental impact across borders.

[[INTRODUCTION]]
Beneath the surface of our planet, an invisible dance unfolds between air quality in Albuquerque and the clandestine consumption of kerosene in Bolivia. The notion of such a correlation might seem as unlikely as a platypus at a penguin convention, yet the data tells a different story. In this paper, we embark on a journey that transcends geographical boundaries and transcends the ordinary, shedding light on the unexpected entwining of these two seemingly disparate variables.
At first glance, the glint of kerosene lamps in the Bolivian night might seem worlds away from the hazy horizons of Albuquerque, but when we peer through the lens of data and statistical analysis, a peculiar juxtaposition emerges. With statistical sleuthing and the magnifying glass of correlation coefficients, we set forth to unravel the enigmatic ways in which air pollution and kerosene usage intertwine, much like a double helix of environmental influence.
Our pursuit was akin to searching for a needle in a haystack, with the haystack being the myriad factors influencing air quality and the needle being the elusive link to kerosene usage in Bolivia. As we continued our investigation, sifting through mounds of data from the Environmental Protection Agency and Energy Information Administration, a glimmer of connection revealed itself – a glimmer that sparkled with the promise of uncovering an untold story of environmental interconnectivity.
By delving into this unlikely pairing of variables, we invite the reader to ponder the interconnectedness of our planet’s environmental tapestry. Just as the beating wings of a butterfly can set off a chain reaction halfway across the world, our research aims to illuminate the ripple effects of seemingly isolated environmental factors. So, grab a metaphorical magnifying glass and join us on this journey of discovery as we unravel the mysterious connection between air pollution in Albuquerque and the humble glow of kerosene in Bolivia.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To unravel the mysterious connection between the air quality in Albuquerque and the usage of kerosene in Bolivia, our research team employed a concoction of statistical analyses, data mining, and a pinch of scientific curiosity. Teaming up with the Environmental Protection Agency and the Energy Information Administration, we embarked on a virtual expedition across the vast terrain of internet data, traversing the digital wilderness from the distant past of 1980 to the present day of 2021.

Our data collection resembled a scientific scavenger hunt, as we combed through the labyrinthine databases of the aforementioned agencies, sifting through bytes and bits in search of elusive nuggets of information. We employed methodologies ranging from time series analysis to geographic information systems, piecing together fragments of data to construct a comprehensive tapestry of air quality metrics in Albuquerque and kerosene usage patterns in Bolivia.

With the fervor of statistical sleuths, we harnessed the power of correlation analysis to ascertain the interwoven nature of these two seemingly incongruous variables. Our statistical arsenal included the formidable correlation coefficient, serving as our compass in navigating the intricate labyrinth of data points. Through rigorous statistical modeling and hypothesis testing, we sought to illuminate the subtle, often enigmatic dance between air pollution and kerosene usage, akin to casting a statistical net over the vast expanse of environmental data.

A caveat must be noted regarding the potential confounding factors that lurk in the shadows of statistical analysis. While our findings reveal a compelling correlation, we acknowledge the potential influence of lurking variables, lurking under the metaphorical scientific bed like mischievous statistical monsters. Despite best efforts to control for extraneous influences, the myriad complexities of environmental dynamics may elude complete capture in our statistical net.

In essence, our methodological odyssey was a blend of scientific inquiry, statistical intrigue, and a dash of digital delving. We acknowledge the limitations of our approach and invite fellow researchers to delve deeper into the convoluted web of environmental interconnectedness, armed with the tools of statistical rigor and unyielding curiosity. As we unveil the parallel trajectories of air quality in Albuquerque and kerosene usage in Bolivia, we traverse beyond the realm of mundane data into the realm of interconnected environmental narratives, where statistical analyses serve as our compass in untangling the intricate threads of environmental influence.


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 Albuquerque and Kerosene used in Bolivia. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Your research team collected data from all across the internet, but mostly just used information from Environmental Protection Agency and Energy Information Administration .

For the time period 1980 to 2021, you found a correlation 0.7332628, r-squared of 0.5376743, 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]]
In Pursuit of Pollution: The Parallels of Air Quality in Albuquerque and Kerosene Usage in Bolivia

[[ABSTRACT]]
This paper delves into the tangential relationship between air pollution in Albuquerque and the usage of kerosene in Bolivia. Utilizing data from the Environmental Protection Agency and Energy Information Administration, we embarked on an odyssey to uncover the interconnectedness of these seemingly disparate phenomena. Our findings, represented by a correlation coefficient of 0.7332628 and a p-value less than 0.01 for the time period spanning from 1980 to 2021, unearth a surprising parallel trajectory in the two locales. While stoking the flames of curiosity, our research illuminates the tether of influence between the distant lands of New Mexico and Bolivia, provoking contemplation on the interconnectedness of environmental impact across borders.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
Beneath the surface of our planet, an invisible dance unfolds between air quality in Albuquerque and the clandestine consumption of kerosene in Bolivia. The notion of such a correlation might seem as unlikely as a platypus at a penguin convention, yet the data tells a different story. In this paper, we embark on a journey that transcends geographical boundaries and transcends the ordinary, shedding light on the unexpected entwining of these two seemingly disparate variables.
At first glance, the glint of kerosene lamps in the Bolivian night might seem worlds away from the hazy horizons of Albuquerque, but when we peer through the lens of data and statistical analysis, a peculiar juxtaposition emerges. With statistical sleuthing and the magnifying glass of correlation coefficients, we set forth to unravel the enigmatic ways in which air pollution and kerosene usage intertwine, much like a double helix of environmental influence.
Our pursuit was akin to searching for a needle in a haystack, with the haystack being the myriad factors influencing air quality and the needle being the elusive link to kerosene usage in Bolivia. As we continued our investigation, sifting through mounds of data from the Environmental Protection Agency and Energy Information Administration, a glimmer of connection revealed itself – a glimmer that sparkled with the promise of uncovering an untold story of environmental interconnectivity.
By delving into this unlikely pairing of variables, we invite the reader to ponder the interconnectedness of our planet’s environmental tapestry. Just as the beating wings of a butterfly can set off a chain reaction halfway across the world, our research aims to illuminate the ripple effects of seemingly isolated environmental factors. So, grab a metaphorical magnifying glass and join us on this journey of discovery as we unravel the mysterious connection between air pollution in Albuquerque and the humble glow of kerosene in Bolivia.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The statistical analysis of our data revealed a notable correlation coefficient of 0.7332628, signifying a strong positive relationship between air pollution in Albuquerque and the usage of kerosene in Bolivia. This striking association was further corroborated by an r-squared value of 0.5376743, indicating that over 53% of the variation in air pollution in Albuquerque can be explained by the variation in kerosene usage in Bolivia. These results were accompanied by a p-value less than 0.01, lending further support to the significance of this unexpected correlation. Our findings present a compelling tale of interconnectedness, much like the plot twists in a thriller novel – albeit with less suspense and more statistical analysis.

Fig. 1 illustrates the scatterplot that encapsulates the compelling relationship between air pollution in Albuquerque and kerosene usage in Bolivia. The data points form a cohesive pattern, akin to stars aligning in the night sky, revealing the tie that binds these two seemingly distant variables. This visual representation serves as a testament to the robustness of our findings and provides a snapshot of the symbiotic dance between air quality in Albuquerque and the utilization of kerosene in Bolivia. It's almost as if the scatterplot is a map leading to buried treasure, with the "X" marking the spot of this unexpected correlation.

The strength of this correlation defies conventional wisdom, much like a unicorn confounding the laws of biology. The implications of our discovery extend beyond the realms of statistical analysis; they beckon us to consider the interconnectedness of environmental phenomena across geographic and cultural borders. Our research paints a captivating picture of the intricate web of influence that spans continents, weaving a narrative of environmental impact as compelling as a best-selling mystery novel – albeit with fewer red herrings and more data points.

In conclusion, our exploration into the parallel trajectories of air pollution in Albuquerque and kerosene usage in Bolivia uncovers a hitherto uncharted synergy between these variables. The unexpected interconnectedness between these two distant locales challenges our preconceived notions and invites a broader contemplation of the global interplay of environmental factors. It's as if Mother Nature herself has crafted a tale of intrigue and interconnectedness, utilizing statistical analysis and data as her protagonists in this environmental saga.


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 Albuquerque and Kerosene used in Bolivia. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Limit your response to 500 tokens.

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

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

[[TITLE]]
In Pursuit of Pollution: The Parallels of Air Quality in Albuquerque and Kerosene Usage in Bolivia

[[ABSTRACT]]
This paper delves into the tangential relationship between air pollution in Albuquerque and the usage of kerosene in Bolivia. Utilizing data from the Environmental Protection Agency and Energy Information Administration, we embarked on an odyssey to uncover the interconnectedness of these seemingly disparate phenomena. Our findings, represented by a correlation coefficient of 0.7332628 and a p-value less than 0.01 for the time period spanning from 1980 to 2021, unearth a surprising parallel trajectory in the two locales. While stoking the flames of curiosity, our research illuminates the tether of influence between the distant lands of New Mexico and Bolivia, provoking contemplation on the interconnectedness of environmental impact across borders.

[[LITERATURE REVIEW]]
The exploration of air quality and its association with kerosene usage has been a topic of interest for researchers over the years. Smith (2005) delved into the impact of air pollutants on human health, highlighting the detrimental effects of particulate matter and nitrogen oxides. Meanwhile, Doe (2010) examined the dynamics of kerosene usage in residential areas, shedding light on the socio-economic factors influencing fuel choices. Additionally, Jones (2013) conducted a comprehensive study on the global energy landscape, emphasizing the role of traditional fuels in developing regions.
Beyond the realm of academic literature, several non-fiction works have offered insights into the complexities of air quality and energy consumption. "The Air Pollution Primer" by Clear (2018) succinctly synthesizes the science behind air pollution, making it accessible to a wide audience. On the other hand, "Kerosene: A Journey Through History" by Flame (2015) provides a captivating historical account of kerosene's evolution from lamp oil to a multipurpose fuel. These sources furnish a foundational understanding of the key variables under scrutiny in our investigation.
Turning to fictional literature, "Smoke and Mirrors" by Smog (2008) presents a whimsical tale of a peculiar affinity between a cloud of smog and an enchanted kerosene lamp. While purely imaginative, this work reminds us of the curious connections that can be woven between seemingly incongruent elements. Similarly, "The Kerosene Diaries" by Wick (2012) weaves a narrative around the mystical properties of kerosene, offering a fantastical perspective on the substance's transcendental qualities. While these works may not contribute directly to empirical research, they serve as reminders of the creative potential in uncovering unexpected relationships.
In a more cinematic realm, the film "Up in Smoke" (1978) provides a lighthearted exploration of the unforeseen consequences of recreational smoke, albeit unrelated to kerosene. Similarly, the documentary "Fire and Air: A Tale of Two Elements" (2015) juxtaposes the elemental forces of fire and air, stimulating thought on the interplay of environmental factors. While the cinematic medium offers entertainment value, it also hints at the multilayered nature of environmental phenomena, much like the intricate web we seek to unravel in our study.
As we tread through the diverse landscape of literature and media, we are reminded of the intricate tapestry that forms the backdrop of our research. While our pursuit may be grounded in data and analysis, it is crucial to appreciate the multidimensionality of the phenomena under investigation. With this eclectic repertoire of sources in mind, we embark on our empirical journey, fueled by the ethos of discovery and an inclination for the unexpected.

[[RESULTS]]
The statistical analysis of our data revealed a notable correlation coefficient of 0.7332628, signifying a strong positive relationship between air pollution in Albuquerque and the usage of kerosene in Bolivia. This striking association was further corroborated by an r-squared value of 0.5376743, indicating that over 53% of the variation in air pollution in Albuquerque can be explained by the variation in kerosene usage in Bolivia. These results were accompanied by a p-value less than 0.01, lending further support to the significance of this unexpected correlation. Our findings present a compelling tale of interconnectedness, much like the plot twists in a thriller novel – albeit with less suspense and more statistical analysis.
Fig. 1 illustrates the scatterplot that encapsulates the compelling relationship between air pollution in Albuquerque and kerosene usage in Bolivia. The data points form a cohesive pattern, akin to stars aligning in the night sky, revealing the tie that binds these two seemingly distant variables. This visual representation serves as a testament to the robustness of our findings and provides a snapshot of the symbiotic dance between air quality in Albuquerque and the utilization of kerosene in Bolivia. It's almost as if the scatterplot is a map leading to buried treasure, with the "X" marking the spot of this unexpected correlation.
The strength of this correlation defies conventional wisdom, much like a unicorn confounding the laws of biology. The implications of our discovery extend beyond the realms of statistical analysis; they beckon us to consider the interconnectedness of environmental phenomena across geographic and cultural borders. Our research paints a captivating picture of the intricate web of influence that spans continents, weaving a narrative of environmental impact as compelling as a best-selling mystery novel – albeit with fewer red herrings and more data points.
In conclusion, our exploration into the parallel trajectories of air pollution in Albuquerque and kerosene usage in Bolivia uncovers a hitherto uncharted synergy between these variables. The unexpected interconnectedness between these two distant locales challenges our preconceived notions and invites a broader contemplation of the global interplay of environmental factors. It's as if Mother Nature herself has crafted a tale of intrigue and interconnectedness, utilizing statistical analysis and data as her protagonists in this environmental saga.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The revelatory nature of our results not only corroborates the prior research conducted by Smith, Doe, and Jones but also amplifies the relevance of their findings in a real-world context. Our statistical analysis fortuitously aligns with the implications drawn from the fictional texts we referenced in the literature review. The whimsical tales of "Smoke and Mirrors" and "The Kerosene Diaries," albeit fantastical, subtly beckon us to ponder the unexpected correlations that transcend the ordinary realms of scientific exploration. Much like the figures in our scatterplot forming a harmonious pattern, these literary works seamlessly interweave the notion of improbable connections.

Furthermore, the cinematic portrayals of elemental forces in "Up in Smoke" and "Fire and Air: A Tale of Two Elements" evoke a similar resonance with the improbable correlation we have unearthed. While the former is a comical depiction of the unforeseen consequences of recreational smoke, and the latter an exploration of elemental forces, both subtly hint at the unpredictability and intertwined nature of environmental phenomena. In a way, our findings stand testament to the unexpected twists that underlie the complex and multi-layered nature of our environment.

The robustness of the correlation coefficient and the resounding significance indicated by the p-value emphasize the importance of our findings. Much like a brilliant plot twist, our research shuns conventional assumptions and illuminates the unsuspecting ties between distant environmental variables. It showcases that, akin to the intricate web of influence that spans continents, the narrative of environmental impact can be as spellbinding as a mystery novel, with each data point acting as a protagonist in this compelling environmental saga.

In essence, our investigation into the interconnectedness of air pollution in Albuquerque and kerosene usage in Bolivia emboldens us to embrace the unexpected and ponder the enigmatic ties that thread through our environment. Our results not only deepen our understanding of the global interplay of environmental factors but also remind us of the compelling narratives that statistics and data can unfurl, much like the captivating tale of intrigue and interconnectedness crafted by Mother Nature herself. If nothing else, this study demonstrates that in the realm of science, truth can indeed be stranger than fiction.


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 Albuquerque and Kerosene used in Bolivia. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

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

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
In Pursuit of Pollution: The Parallels of Air Quality in Albuquerque and Kerosene Usage in Bolivia

[[ABSTRACT]]
This paper delves into the tangential relationship between air pollution in Albuquerque and the usage of kerosene in Bolivia. Utilizing data from the Environmental Protection Agency and Energy Information Administration, we embarked on an odyssey to uncover the interconnectedness of these seemingly disparate phenomena. Our findings, represented by a correlation coefficient of 0.7332628 and a p-value less than 0.01 for the time period spanning from 1980 to 2021, unearth a surprising parallel trajectory in the two locales. While stoking the flames of curiosity, our research illuminates the tether of influence between the distant lands of New Mexico and Bolivia, provoking contemplation on the interconnectedness of environmental impact across borders.

[[INTRDUCTION]]
Beneath the surface of our planet, an invisible dance unfolds between air quality in Albuquerque and the clandestine consumption of kerosene in Bolivia. The notion of such a correlation might seem as unlikely as a platypus at a penguin convention, yet the data tells a different story. In this paper, we embark on a journey that transcends geographical boundaries and transcends the ordinary, shedding light on the unexpected entwining of these two seemingly disparate variables.
At first glance, the glint of kerosene lamps in the Bolivian night might seem worlds away from the hazy horizons of Albuquerque, but when we peer through the lens of data and statistical analysis, a peculiar juxtaposition emerges. With statistical sleuthing and the magnifying glass of correlation coefficients, we set forth to unravel the enigmatic ways in which air pollution and kerosene usage intertwine, much like a double helix of environmental influence.
Our pursuit was akin to searching for a needle in a haystack, with the haystack being the myriad factors influencing air quality and the needle being the elusive link to kerosene usage in Bolivia. As we continued our investigation, sifting through mounds of data from the Environmental Protection Agency and Energy Information Administration, a glimmer of connection revealed itself – a glimmer that sparkled with the promise of uncovering an untold story of environmental interconnectivity.
By delving into this unlikely pairing of variables, we invite the reader to ponder the interconnectedness of our planet’s environmental tapestry. Just as the beating wings of a butterfly can set off a chain reaction halfway across the world, our research aims to illuminate the ripple effects of seemingly isolated environmental factors. So, grab a metaphorical magnifying glass and join us on this journey of discovery as we unravel the mysterious connection between air pollution in Albuquerque and the humble glow of kerosene in Bolivia.

[[RESULTS]]
The statistical analysis of our data revealed a notable correlation coefficient of 0.7332628, signifying a strong positive relationship between air pollution in Albuquerque and the usage of kerosene in Bolivia. This striking association was further corroborated by an r-squared value of 0.5376743, indicating that over 53% of the variation in air pollution in Albuquerque can be explained by the variation in kerosene usage in Bolivia. These results were accompanied by a p-value less than 0.01, lending further support to the significance of this unexpected correlation. Our findings present a compelling tale of interconnectedness, much like the plot twists in a thriller novel – albeit with less suspense and more statistical analysis.
Fig. 1 illustrates the scatterplot that encapsulates the compelling relationship between air pollution in Albuquerque and kerosene usage in Bolivia. The data points form a cohesive pattern, akin to stars aligning in the night sky, revealing the tie that binds these two seemingly distant variables. This visual representation serves as a testament to the robustness of our findings and provides a snapshot of the symbiotic dance between air quality in Albuquerque and the utilization of kerosene in Bolivia. It's almost as if the scatterplot is a map leading to buried treasure, with the "X" marking the spot of this unexpected correlation.
The strength of this correlation defies conventional wisdom, much like a unicorn confounding the laws of biology. The implications of our discovery extend beyond the realms of statistical analysis; they beckon us to consider the interconnectedness of environmental phenomena across geographic and cultural borders. Our research paints a captivating picture of the intricate web of influence that spans continents, weaving a narrative of environmental impact as compelling as a best-selling mystery novel – albeit with fewer red herrings and more data points.
In conclusion, our exploration into the parallel trajectories of air pollution in Albuquerque and kerosene usage in Bolivia uncovers a hitherto uncharted synergy between these variables. The unexpected interconnectedness between these two distant locales challenges our preconceived notions and invites a broader contemplation of the global interplay of environmental factors. It's as if Mother Nature herself has crafted a tale of intrigue and interconnectedness, utilizing statistical analysis and data as her protagonists in this environmental saga.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In the immortal words of Sir Isaac Newton, "We have sailed through the statistical seas and discovered the gravitational pull between air pollution in Albuquerque and the utilization of kerosene in Bolivia." Our findings, akin to a majestic unicorn in the world of statistical analysis, have unearthed a correlation coefficient of 0.7332628, standing as a testament to the unexpected symbiosis between these two variables. Employing the metaphorical magnifying glass of statistical analysis, we have illuminated the interconnected dance of environmental impact, much like a scholarly Sherlock Holmes unraveling a mystery. Our results, akin to a rare gemstone in the realm of environmental research, urge us to re-evaluate our understanding of the intercontinental influences on air quality. It's almost as if the statistical analysis was a recipe, and the unexpected correlation was the surprise ingredient that elevated our understanding of environmental interconnectivity.

In the grand tapestry of research, our paper stands as a beacon of illumination, shedding light on the clandestine connection between these two distant lands. Much like a clever pun in the midst of serious conversation, our findings provoke contemplation and ignite a spark of curiosity about the hidden threads that weave our planet's environmental fabric. This correlation, like a good joke, is both surprising and thought-provoking, challenging traditional paradigms about the boundaries of environmental influence. Consequently, one might argue that our research has left no stone unturned, much like a diligent researcher scouring through every nook and cranny of the data.

In light of these revelations, we assert, with scientific confidence and a touch of whimsy, that the case of air pollution in Albuquerque and kerosene usage in Bolivia may be considered closed. Our sleuthing efforts have unraveled the enigmatic connection between these variables, and it seems that no more research is needed in this area. Like a great punchline that lands with precision, our conclusion instills a sense of resolution, signaling the end of this chapter in the annals of environmental research.


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 In Pursuit of Pollution: The Parallels of Air Quality in Albuquerque and Kerosene Usage in Bolivia. Respond only with the name of a fictional academic journal.

ChatGPT:

The International Journal of Ecological Connections


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 In Pursuit of Pollution: The Parallels of Air Quality in Albuquerque and Kerosene Usage in Bolivia. Respond only with the name of a fictional organization.

ChatGPT:

The International Society for Atmospheric Chemistry and Sustainability


Model: gpt-3.5-turbo-1106
System prompt: You provide potential search keywords separated by commas. You say nothing else, and you do not chat with the user.
User prompt: Please provide potential search keywords for a paper titled In Pursuit of Pollution: The Parallels of Air Quality in Albuquerque and Kerosene Usage in Bolivia with an abstract of This paper delves into the tangential relationship between air pollution in Albuquerque and the usage of kerosene in Bolivia. Utilizing data from the Environmental Protection Agency and Energy Information Administration, we embarked on an odyssey to uncover the interconnectedness of these seemingly disparate phenomena. Our findings, represented by a correlation coefficient of 0.7332628 and a p-value less than 0.01 for the time period spanning from 1980 to 2021, unearth a surprising parallel trajectory in the two locales. While stoking the flames of curiosity, our research illuminates the tether of influence between the distant lands of New Mexico and Bolivia, provoking contemplation on the interconnectedness of environmental impact across borders.

ChatGPT:

Air quality, pollution, Albuquerque, kerosene usage, Bolivia, correlation coefficient, p-value, Environmental Protection Agency, Energy Information Administration, interconnectedness, environmental impact, New Mexico, data analysis

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

Kerosene used in Bolivia
Detailed data title: Volume of kerosene used consumed in Bolivia in millions of barrels per day
Source: Energy Information Administration
See what else correlates with Kerosene used in Bolivia

Correlation r = 0.7332628 (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.5376743 (Coefficient of determination)
This means 53.8% of the change in the one variable (i.e., Kerosene used in Bolivia) is predictable based on the change in the other (i.e., Air pollution in Albuquerque) over the 42 years from 1980 through 2021.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 3.3E-8. 0.0000000333734733415355000000
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.73 in 3.3E-6% of random cases. Said differently, if you correlated 29,963,917 random variables You don't actually need 29 million 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 41 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 41 because we have two variables measured over a period of 42 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.55, 0.85 ] 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.
198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021
Air pollution in Albuquerque (Bad air quality days)13.934420.547913.972616.986314.48095.2054810.684915.89045.73778.767127.123294.109591.912572.465754.657534.109595.73774.109595.753425.479459.562844.657537.6712315.61646.284157.123297.397267.123291.639340.8219181.369867.671236.83062.465750.2739731.095890.8196721.095896.575341.095892.732245.75342
Kerosene used in Bolivia (Million Barrels/Day)1.184831.279621.184831.184831.137441.0426510.80.70.90.60.60.70.075120.40.70.50.50.60.50.6547270.3812050.3812050.4659180.3801640.4023840.3812050.3600270.3168030.3388490.3388490.3388490.3168030.3176710.3176710.3388490.3910680.3476160.3910680.4345210.3659010.304164




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([13.9344,20.5479,13.9726,16.9863,14.4809,5.20548,10.6849,15.8904,5.7377,8.76712,7.12329,4.10959,1.91257,2.46575,4.65753,4.10959,5.7377,4.10959,5.75342,5.47945,9.56284,4.65753,7.67123,15.6164,6.28415,7.12329,7.39726,7.12329,1.63934,0.821918,1.36986,7.67123,6.8306,2.46575,0.273973,1.09589,0.819672,1.09589,6.57534,1.09589,2.73224,5.75342,])
array_2 = np.array([1.18483,1.27962,1.18483,1.18483,1.13744,1.04265,1,0.8,0.7,0.9,0.6,0.6,0.7,0.07512,0.4,0.7,0.5,0.5,0.6,0.5,0.654727,0.381205,0.381205,0.465918,0.380164,0.402384,0.381205,0.360027,0.316803,0.338849,0.338849,0.338849,0.316803,0.317671,0.317671,0.338849,0.391068,0.347616,0.391068,0.434521,0.365901,0.304164,])
array_1_name = "Air pollution in Albuquerque"
array_2_name = "Kerosene used in Bolivia"

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

You're a rater extraordinaire!


Correlation ID: 3827 · Black Variable ID: 20246 · Red Variable ID: 24217
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0