about · email me · subscribe
Spurious correlation #3,351 · 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 Somerset, Pennsylvania and the second variable is Kerosene used in Thailand.  The chart goes from 1990 to 2016, and the two variables track closely in value over that time. Small Image

AI explanation

The cleaner air in Somerset, Pennsylvania led to a decrease in the production of anti-air pollution technology, which in turn caused a worldwide shortage of kerosene, including in Thailand. Remember, when it comes to global kerosene supplies, it's all about that transcontinental air flow! Who would have thought that Pennsylvania's air quality could have such a dynamic impact on Thai kerosene usage!

Model: dalle-3
Prompt: Generate an image of two contrasting peaceful scenes side by side. On the left, depict a serene and pristine landscape in Somerset, Pennsylvania, with clear skies and people enjoying outdoor activities. On the right, show the streets of Thailand illuminated by electric lights in the evening, with families gathered for activities as the cleaner air reduces the need for kerosene lanterns. Capture the tranquility of both scenes and the stark contrast in the use of traditional lighting methods. 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 Somerset, Pennsylvania and Kerosene used in Thailand. 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: Symbolism Glitch art Cyberpunk An image that looks like it is a scene from a Pixar movie A scene from Skyrim
ChatGPT: A scene from Skyrim

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 Somerset, Pennsylvania and Kerosene used in Thailand, in the following situation: The decrease in air pollution in Somerset, Pennsylvania led to a decrease in kerosene used in Thailand because the cleaner air made people less likely to fly kites at night, reducing the demand for kerosene lanterns.. Keep the description simple.
ChatGPT: In Somerset, Pennsylvania, the sky is clear and bright. The air is free of pollution, and people are enjoying the outdoors. On the other side of the world in Thailand, the streets are illuminated by electric lights as the cleaner air reduces the need for kerosene lanterns. Families gather for the evening, but instead of flying kites, they engage in other activities as the demand for kerosene has decreased.

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 scene from Skyrim ] and depicting this scene: In Somerset, Pennsylvania, the sky is clear and bright. The air is free of pollution, and people are enjoying the outdoors. On the other side of the world in Thailand, the streets are illuminated by electric lights as the cleaner air reduces the need for kerosene lanterns. Families gather for the evening, but instead of flying kites, they engage in other activities as the demand for kerosene has decreased. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Generate an image of two contrasting peaceful scenes side by side. On the left, depict a serene and pristine landscape in Somerset, Pennsylvania, with clear skies and people enjoying outdoor activities. On the right, show the streets of Thailand illuminated by electric lights in the evening, with families gathered for activities as the cleaner air reduces the need for kerosene lanterns. Capture the tranquility of both scenes and the stark contrast in the use of traditional lighting methods.

*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 Somerset, Pennsylvania caused Kerosene used in Thailand to decrease. Add a funny one-liner at the end.

AI academic paper

(Because p < 0.01)
Skies and Kerosene: The Relationship Between Air Pollution in Somerset and Kerosene Use in Thailand

Journal of Environmental Science and Quirky 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 Somerset, Pennsylvania and Kerosene used in Thailand. Make lots of 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.8056641 and p < 0.01 for 1990 to 2016.

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]]
"Skies and Kerosene: The Relationship Between Air Pollution in Somerset and Kerosene Use in Thailand"

[[ABSTRACT]]
As the smoke clears on the issue of air pollution, our research team embarked on an unconventional journey to investigate the unlikely correlation between the hazy skies of Somerset, Pennsylvania, and the kerosene-fueled lanterns lighting up nights in Thailand. Armed with data from the Environmental Protection Agency and the Energy Information Administration, we set out to shed light on this burning question. Lo and behold, our analysis revealed a striking correlation coefficient of 0.8056641 and a p-value of less than 0.01 for the years 1990 to 2016. Our findings suggest that there may indeed be a gaseous connection between these two seemingly disparate phenomena. So buckle up, because this paper is about to ignite new discussions and spark some fiery debates in the world of environmental research!


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 Somerset, Pennsylvania and Kerosene used in Thailand. Make lots of jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Here is the title and abstract of the paper:
[[TITLE]]
"Skies and Kerosene: The Relationship Between Air Pollution in Somerset and Kerosene Use in Thailand"

[[ABSTRACT]]
As the smoke clears on the issue of air pollution, our research team embarked on an unconventional journey to investigate the unlikely correlation between the hazy skies of Somerset, Pennsylvania, and the kerosene-fueled lanterns lighting up nights in Thailand. Armed with data from the Environmental Protection Agency and the Energy Information Administration, we set out to shed light on this burning question. Lo and behold, our analysis revealed a striking correlation coefficient of 0.8056641 and a p-value of less than 0.01 for the years 1990 to 2016. Our findings suggest that there may indeed be a gaseous connection between these two seemingly disparate phenomena. So buckle up, because this paper is about to ignite new discussions and spark some fiery debates in the world of environmental research!

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

The environmental impact of air pollution has been a hot topic in recent years, especially in Somerset, Pennsylvania, where the skies have been less than crystal clear. At the same time, on the other side of the globe, in the bustling streets of Thailand, kerosene-fueled lanterns have been casting a warm glow in the night. While these two phenomena may seem worlds apart, our research aims to explore the potential link between the air pollution in Somerset and the kerosene use in Thailand.

As clear as an unobstructed horizon, air pollution has been a cause for concern in many areas, and Somerset, Pennsylvania, is no exception. The sight of hazy skies has raised eyebrows and left residents pondering the impact of pollution on their health and the environment. Meanwhile, in the land of smiles, Thailand, the use of kerosene for lighting continues to be a prevalent practice, illuminating the streets with a flickering luminescence reminiscent of fireflies on a summer night.

The intersection of these two seemingly unrelated phenomena may seem as unlikely as a snowstorm in July, but our research has uncovered compelling evidence to suggest a potential connection. Utilizing data from the Environmental Protection Agency and the Energy Information Administration, our analysis has revealed a startling correlation coefficient and p-value, hinting at a possible relationship between these disparate occurrences.

By shedding light on this unexpected association, our study aims to ignite new discussions and spark further research into the intricate web of factors contributing to air pollution and kerosene use. As we delve into the depths of this intriguing correlation, we invite readers to join us on this illuminating journey and perhaps even kindle a newfound appreciation for the surprising connections that lie beneath the surface of environmental phenomena. So let's strap on our oxygen masks and embark on a voyage of discovery through the smoggy skies of Somerset and the flickering lantern-lit nights of Thailand.


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 Somerset, Pennsylvania and Kerosene used in Thailand. Make lots of jokes, goofy observations, and puns.

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

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

Start by naming serious-sounding studies by authors like Smith, Doe, and Jones - but then quickly devolve. Name some real non-fiction books that would be related to the topic. Then name some real fiction books that sound like they could be related. Perhaps you also got inspiration from some board games that are vaugely related.

Here is the title and abstract of the paper:
[[TITLE]]
"Skies and Kerosene: The Relationship Between Air Pollution in Somerset and Kerosene Use in Thailand"

[[ABSTRACT]]
As the smoke clears on the issue of air pollution, our research team embarked on an unconventional journey to investigate the unlikely correlation between the hazy skies of Somerset, Pennsylvania, and the kerosene-fueled lanterns lighting up nights in Thailand. Armed with data from the Environmental Protection Agency and the Energy Information Administration, we set out to shed light on this burning question. Lo and behold, our analysis revealed a striking correlation coefficient of 0.8056641 and a p-value of less than 0.01 for the years 1990 to 2016. Our findings suggest that there may indeed be a gaseous connection between these two seemingly disparate phenomena. So buckle up, because this paper is about to ignite new discussions and spark some fiery debates in the world of environmental research!

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
The environmental impact of air pollution has been a hot topic in recent years, especially in Somerset, Pennsylvania, where the skies have been less than crystal clear. At the same time, on the other side of the globe, in the bustling streets of Thailand, kerosene-fueled lanterns have been casting a warm glow in the night. While these two phenomena may seem worlds apart, our research aims to explore the potential link between the air pollution in Somerset and the kerosene use in Thailand.
As clear as an unobstructed horizon, air pollution has been a cause for concern in many areas, and Somerset, Pennsylvania, is no exception. The sight of hazy skies has raised eyebrows and left residents pondering the impact of pollution on their health and the environment. Meanwhile, in the land of smiles, Thailand, the use of kerosene for lighting continues to be a prevalent practice, illuminating the streets with a flickering luminescence reminiscent of fireflies on a summer night.
The intersection of these two seemingly unrelated phenomena may seem as unlikely as a snowstorm in July, but our research has uncovered compelling evidence to suggest a potential connection. Utilizing data from the Environmental Protection Agency and the Energy Information Administration, our analysis has revealed a startling correlation coefficient and p-value, hinting at a possible relationship between these disparate occurrences.
By shedding light on this unexpected association, our study aims to ignite new discussions and spark further research into the intricate web of factors contributing to air pollution and kerosene use. As we delve into the depths of this intriguing correlation, we invite readers to join us on this illuminating journey and perhaps even kindle a newfound appreciation for the surprising connections that lie beneath the surface of environmental phenomena. So let's strap on our oxygen masks and embark on a voyage of discovery through the smoggy skies of Somerset and the flickering lantern-lit nights of Thailand.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

Smith et al. (2015) delved into the intricate world of air pollution and its effects on public health, shedding light on the far-reaching implications of hazy skies and contaminated air. Their findings left readers gasping for air as they navigated through the dense fog of atmospheric pollutants. On the other hand, in "The Kerosene Chronicles" by Doe and Jones (2010), the authors uncovered the illuminating history of kerosene use, from its humble beginnings to its flickering presence in lantern-lit nights across the globe. The juxtaposition of these two seemingly unrelated studies sows the seeds of curiosity, much like a moth fluttering towards the flame of knowledge.

However, as we wade deeper into the pool of literature, let us not overlook the enlightening insights provided by real-life tales such as "The Somerset Smog Mystery" by A. Reader (2008). This gripping account of atmospheric adversity captures the essence of the struggle against air pollution in Somerset, immersing readers in a tumultuous storm of hazardous particles and the quest for breathable air.

As we step into the realm of fiction, works such as "The Lantern Legacy" by Lumina Brightly (2016) and "Whispers in the Wind" by Rusty Flame (2013) offer us a fantastical glimpse into the world of illuminated nights and the enigmatic allure of kerosene-fueled lanterns. The juxtaposition of reality and fiction in these literary works mirrors the intertwined nature of our research endeavor, where the boundaries between truth and imagination blur like a foggy morning gradually giving way to the light of day.

Our exploration does not end here. The influence of board games such as "Smog City" and "Kerosene Quest" cannot be overlooked, as they playfully intertwine the themes of air pollution and kerosene use in a tapestry of strategic gameplay and atmospheric challenges. Like pieces on a chessboard, our research aims to move beyond the surface and uncover the interconnected dynamics at play in these seemingly disparate phenomena.

With a weighty tome of scholarly investigations and an eclectic mix of literature illuminating our path, our endeavor to unravel the connection between air pollution in Somerset and kerosene use in Thailand takes flight. As we march onward with lantern in hand and goggles at the ready, the discoveries that await us are sure to sparkle like a diamond in the rough, lending a luminous glow to the enigmatic relationship between these distant beacons on our planetary stage.


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 Somerset, Pennsylvania and Kerosene used in Thailand. Make lots of jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

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

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]]
"Skies and Kerosene: The Relationship Between Air Pollution in Somerset and Kerosene Use in Thailand"

[[ABSTRACT]]
As the smoke clears on the issue of air pollution, our research team embarked on an unconventional journey to investigate the unlikely correlation between the hazy skies of Somerset, Pennsylvania, and the kerosene-fueled lanterns lighting up nights in Thailand. Armed with data from the Environmental Protection Agency and the Energy Information Administration, we set out to shed light on this burning question. Lo and behold, our analysis revealed a striking correlation coefficient of 0.8056641 and a p-value of less than 0.01 for the years 1990 to 2016. Our findings suggest that there may indeed be a gaseous connection between these two seemingly disparate phenomena. So buckle up, because this paper is about to ignite new discussions and spark some fiery debates in the world of environmental research!

[[INTRODUCTION]]
The environmental impact of air pollution has been a hot topic in recent years, especially in Somerset, Pennsylvania, where the skies have been less than crystal clear. At the same time, on the other side of the globe, in the bustling streets of Thailand, kerosene-fueled lanterns have been casting a warm glow in the night. While these two phenomena may seem worlds apart, our research aims to explore the potential link between the air pollution in Somerset and the kerosene use in Thailand.
As clear as an unobstructed horizon, air pollution has been a cause for concern in many areas, and Somerset, Pennsylvania, is no exception. The sight of hazy skies has raised eyebrows and left residents pondering the impact of pollution on their health and the environment. Meanwhile, in the land of smiles, Thailand, the use of kerosene for lighting continues to be a prevalent practice, illuminating the streets with a flickering luminescence reminiscent of fireflies on a summer night.
The intersection of these two seemingly unrelated phenomena may seem as unlikely as a snowstorm in July, but our research has uncovered compelling evidence to suggest a potential connection. Utilizing data from the Environmental Protection Agency and the Energy Information Administration, our analysis has revealed a startling correlation coefficient and p-value, hinting at a possible relationship between these disparate occurrences.
By shedding light on this unexpected association, our study aims to ignite new discussions and spark further research into the intricate web of factors contributing to air pollution and kerosene use. As we delve into the depths of this intriguing correlation, we invite readers to join us on this illuminating journey and perhaps even kindle a newfound appreciation for the surprising connections that lie beneath the surface of environmental phenomena. So let's strap on our oxygen masks and embark on a voyage of discovery through the smoggy skies of Somerset and the flickering lantern-lit nights of Thailand.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To unravel the enigmatic connection between the atmospheric haze in Somerset, Pennsylvania, and the glow of kerosene-fueled lanterns in Thailand, our research team set out on an intrepid quest. We delved into the digital archives of the Environmental Protection Agency and the Energy Information Administration like modern-day Indiana Joneses, braving the tangled jungle of data and statistical analyses.

Our first task was to gather historical air quality data for Somerset, Pennsylvania, from the Environmental Protection Agency. We scrutinized pollutant levels with the precision of a detective examining clues at a crime scene. We examined the concentrations of particulate matter, sulfur dioxide, nitrogen dioxide, and other pollutants with keen eyes, seeking to unveil any patterns or anomalies that might provide insight into the murky shroud hanging over Somerset.

Simultaneously, we embarked on a parallel investigation into kerosene consumption and production in Thailand. The boisterous streets and quiet countryside alike were scoured for evidence of kerosene usage, as we scoured statistics from the Energy Information Administration with the dogged determination of a Sherlock Holmes in pursuit of a clue.

Having amassed a wealth of data from 1990 to 2016, we employed statistical software to perform a rigorous analysis worthy of the most discerning empirical critic. Utilizing the powers of correlation analysis, we calculated the correlation coefficient between air pollution levels in Somerset and kerosene use in Thailand. Our calculations were carried out with the precision of a chef measuring spices for a delicate soufflé—no haphazard sprinkling here.

In addition to the correlation coefficient, we subjected our findings to the crucible of statistical significance testing, yielding p-values that spoke volumes about the strength and reliability of the observed relationship. Our statistical arsenal was deployed with the finesse of a seasoned archer, aiming for the elusive bullseye of scientific rigor and accuracy.

Armed with our weapons of mass analysis—statistical software, regression models, and a healthy dose of skepticism— we persisted through the labyrinth of data, emerging triumphant with our findings that could potentially ignite new perspectives on the interwoven fates of air quality in Somerset and kerosene use in Thailand.


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 Somerset, Pennsylvania and Kerosene used in Thailand. Make lots of jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

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

For the time period 1990 to 2016, you found a correlation 0.8056641, r-squared of 0.6490946, 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]]
"Skies and Kerosene: The Relationship Between Air Pollution in Somerset and Kerosene Use in Thailand"

[[ABSTRACT]]
As the smoke clears on the issue of air pollution, our research team embarked on an unconventional journey to investigate the unlikely correlation between the hazy skies of Somerset, Pennsylvania, and the kerosene-fueled lanterns lighting up nights in Thailand. Armed with data from the Environmental Protection Agency and the Energy Information Administration, we set out to shed light on this burning question. Lo and behold, our analysis revealed a striking correlation coefficient of 0.8056641 and a p-value of less than 0.01 for the years 1990 to 2016. Our findings suggest that there may indeed be a gaseous connection between these two seemingly disparate phenomena. So buckle up, because this paper is about to ignite new discussions and spark some fiery debates in the world of environmental research!

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
The environmental impact of air pollution has been a hot topic in recent years, especially in Somerset, Pennsylvania, where the skies have been less than crystal clear. At the same time, on the other side of the globe, in the bustling streets of Thailand, kerosene-fueled lanterns have been casting a warm glow in the night. While these two phenomena may seem worlds apart, our research aims to explore the potential link between the air pollution in Somerset and the kerosene use in Thailand.
As clear as an unobstructed horizon, air pollution has been a cause for concern in many areas, and Somerset, Pennsylvania, is no exception. The sight of hazy skies has raised eyebrows and left residents pondering the impact of pollution on their health and the environment. Meanwhile, in the land of smiles, Thailand, the use of kerosene for lighting continues to be a prevalent practice, illuminating the streets with a flickering luminescence reminiscent of fireflies on a summer night.
The intersection of these two seemingly unrelated phenomena may seem as unlikely as a snowstorm in July, but our research has uncovered compelling evidence to suggest a potential connection. Utilizing data from the Environmental Protection Agency and the Energy Information Administration, our analysis has revealed a startling correlation coefficient and p-value, hinting at a possible relationship between these disparate occurrences.
By shedding light on this unexpected association, our study aims to ignite new discussions and spark further research into the intricate web of factors contributing to air pollution and kerosene use. As we delve into the depths of this intriguing correlation, we invite readers to join us on this illuminating journey and perhaps even kindle a newfound appreciation for the surprising connections that lie beneath the surface of environmental phenomena. So let's strap on our oxygen masks and embark on a voyage of discovery through the smoggy skies of Somerset and the flickering lantern-lit nights of Thailand.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

**[[RESULTS]]**

The analysis of the data collected from the Environmental Protection Agency and the Energy Information Administration unveiled some enlightening findings regarding the relationship between air pollution in Somerset, Pennsylvania, and kerosene use in Thailand. Our research uncovered a robust correlation coefficient of 0.8056641, with an r-squared value of 0.6490946 and a p-value of less than 0.01, indicating a highly significant association between these seemingly unrelated phenomena.
Fig. 1 illustrates the remarkable relationship between air pollution in Somerset and kerosene use in Thailand, showcasing the strong positive correlation observed during the years 1990 to 2016. It's almost as if the hazy skies in Somerset are sending smoke signals across the globe, urging a closer inspection of the kerosene-fueled lanterns in Thailand!

The statistical analysis has yielded results that are as clear as a cloudless day, indicating that the level of air pollution in Somerset appears to be intimately tied to the consumption of kerosene in Thailand. As the saying goes, "Where there's smoke, there's fire," and our findings certainly suggest that there may be more than meets the eye when it comes to the atmospheric relationship between these two geographically distant locations.

This significant correlation between air pollution in Somerset and kerosene use in Thailand prompts further investigation into the potential mechanisms and interconnected factors at play. Our results not only shine a light on this unexpected association but also ignite new discussions and spark renewed interest in unraveling the complexities of environmental phenomena. It seems that the connection is not just up in the air but also firmly grounded in empirical evidence, much like a smoggy 'Eureka!' moment in the world of environmental research.

In conclusion, our findings add fuel to the fire of scholarly inquiry, prompting future studies to delve deeper into the underlying causes and implications of this illuminating correlation. As we clear the air on this intriguing relationship, we invite fellow researchers to join us in exploring the captivating interplay between air pollution in Somerset and kerosene use in Thailand, and perhaps even shed some light on the unexpected connections that lie beneath the surface of environmental phenomena.

It appears that the haze in Somerset and the glow of kerosene in Thailand are not just separate dots on the map but are, in fact, part of an intriguing constellation of environmental factors. Let's hope that our research adds some much-needed clarity to this mist-ifying relationship and propels us into a brighter, cleaner future.


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 Somerset, Pennsylvania and Kerosene used in Thailand. Make lots of jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Limit your response to 500 tokens.

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

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

[[TITLE]]
"Skies and Kerosene: The Relationship Between Air Pollution in Somerset and Kerosene Use in Thailand"

[[ABSTRACT]]
As the smoke clears on the issue of air pollution, our research team embarked on an unconventional journey to investigate the unlikely correlation between the hazy skies of Somerset, Pennsylvania, and the kerosene-fueled lanterns lighting up nights in Thailand. Armed with data from the Environmental Protection Agency and the Energy Information Administration, we set out to shed light on this burning question. Lo and behold, our analysis revealed a striking correlation coefficient of 0.8056641 and a p-value of less than 0.01 for the years 1990 to 2016. Our findings suggest that there may indeed be a gaseous connection between these two seemingly disparate phenomena. So buckle up, because this paper is about to ignite new discussions and spark some fiery debates in the world of environmental research!

[[LITERATURE REVIEW]]
Smith et al. (2015) delved into the intricate world of air pollution and its effects on public health, shedding light on the far-reaching implications of hazy skies and contaminated air. Their findings left readers gasping for air as they navigated through the dense fog of atmospheric pollutants. On the other hand, in "The Kerosene Chronicles" by Doe and Jones (2010), the authors uncovered the illuminating history of kerosene use, from its humble beginnings to its flickering presence in lantern-lit nights across the globe. The juxtaposition of these two seemingly unrelated studies sows the seeds of curiosity, much like a moth fluttering towards the flame of knowledge.
However, as we wade deeper into the pool of literature, let us not overlook the enlightening insights provided by real-life tales such as "The Somerset Smog Mystery" by A. Reader (2008). This gripping account of atmospheric adversity captures the essence of the struggle against air pollution in Somerset, immersing readers in a tumultuous storm of hazardous particles and the quest for breathable air.
As we step into the realm of fiction, works such as "The Lantern Legacy" by Lumina Brightly (2016) and "Whispers in the Wind" by Rusty Flame (2013) offer us a fantastical glimpse into the world of illuminated nights and the enigmatic allure of kerosene-fueled lanterns. The juxtaposition of reality and fiction in these literary works mirrors the intertwined nature of our research endeavor, where the boundaries between truth and imagination blur like a foggy morning gradually giving way to the light of day.
Our exploration does not end here. The influence of board games such as "Smog City" and "Kerosene Quest" cannot be overlooked, as they playfully intertwine the themes of air pollution and kerosene use in a tapestry of strategic gameplay and atmospheric challenges. Like pieces on a chessboard, our research aims to move beyond the surface and uncover the interconnected dynamics at play in these seemingly disparate phenomena.
With a weighty tome of scholarly investigations and an eclectic mix of literature illuminating our path, our endeavor to unravel the connection between air pollution in Somerset and kerosene use in Thailand takes flight. As we march onward with lantern in hand and goggles at the ready, the discoveries that await us are sure to sparkle like a diamond in the rough, lending a luminous glow to the enigmatic relationship between these distant beacons on our planetary stage.

[[RESULTS]]
The analysis of the data collected from the Environmental Protection Agency and the Energy Information Administration unveiled some enlightening findings regarding the relationship between air pollution in Somerset, Pennsylvania, and kerosene use in Thailand. Our research uncovered a robust correlation coefficient of 0.8056641, with an r-squared value of 0.6490946 and a p-value of less than 0.01, indicating a highly significant association between these seemingly unrelated phenomena.
Fig. 1 illustrates the remarkable relationship between air pollution in Somerset and kerosene use in Thailand, showcasing the strong positive correlation observed during the years 1990 to 2016. It's almost as if the hazy skies in Somerset are sending smoke signals across the globe, urging a closer inspection of the kerosene-fueled lanterns in Thailand!
The statistical analysis has yielded results that are as clear as a cloudless day, indicating that the level of air pollution in Somerset appears to be intimately tied to the consumption of kerosene in Thailand. As the saying goes, "Where there's smoke, there's fire," and our findings certainly suggest that there may be more than meets the eye when it comes to the atmospheric relationship between these two geographically distant locations.
This significant correlation between air pollution in Somerset and kerosene use in Thailand prompts further investigation into the potential mechanisms and interconnected factors at play. Our results not only shine a light on this unexpected association but also ignite new discussions and spark renewed interest in unraveling the complexities of environmental phenomena. It seems that the connection is not just up in the air but also firmly grounded in empirical evidence, much like a smoggy 'Eureka!' moment in the world of environmental research.
In conclusion, our findings add fuel to the fire of scholarly inquiry, prompting future studies to delve deeper into the underlying causes and implications of this illuminating correlation. As we clear the air on this intriguing relationship, we invite fellow researchers to join us in exploring the captivating interplay between air pollution in Somerset and kerosene use in Thailand, and perhaps even shed some light on the unexpected connections that lie beneath the surface of environmental phenomena.
It appears that the haze in Somerset and the glow of kerosene in Thailand are not just separate dots on the map but are, in fact, part of an intriguing constellation of environmental factors. Let's hope that our research adds some much-needed clarity to this mist-ifying relationship and propels us into a brighter, cleaner future.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The findings of our study provide compelling evidence supporting the notion that there is indeed a notable association between air pollution in Somerset, Pennsylvania, and the use of kerosene in Thailand. Our research embarks on uncharted territories by shedding light on this unexpected connection, revealing a correlation coefficient reminiscent of a tightly interwoven smog blanket. This significant correlation aligns with the prior research by Smith et al. (2015) on the implications of air pollution, as our findings underscore the pervasive nature of atmospheric factors that transcend geographical boundaries, much like billowing clouds transcending national borders.

Furthermore, the illumination provided by the historical accounts of kerosene use in "The Kerosene Chronicles" by Doe and Jones (2010) takes on a new, glowingly relevant light in the context of our study. The flickering presence of kerosene lanterns in Thailand seems to cast a figurative shadow all the way to the skies of Somerset, creating a surprisingly tangible link between these two seemingly disparate phenomena. The flame of curiosity has been fanned, and our findings add kindling to the burgeoning discourse on interconnected environmental factors, much like a rallying cry for further investigation.

As we traverse the terrain of literature and reel in our unexpected discoveries, it becomes increasingly clear that the boundaries between reality and fiction, scholarly inquiry and playful exploration, are as nebulous as the hazy skies themselves. Our results mirror the storytelling prowess of "The Somerset Smog Mystery" by A. Reader (2008) and the fantastical allure of "The Lantern Legacy." By uncovering a statistical relationship between air pollution in Somerset and kerosene use in Thailand, our research adds a compelling chapter to the ongoing narrative of environmental inquiry, much like a plot twist in an electrifying novel.

In essence, our findings corroborate and extend the existing body of literature, reasserting the interconnectedness of seemingly disparate environmental phenomena. The statistical relationship between air pollution in Somerset and kerosene use in Thailand blazes a trail for future investigations, igniting renewed interest in unraveling the complex web of environmental factors that transcend borders and illuminate the ongoing challenges of global sustainability. Our work amplifies the call for a more integrated, global approach to understanding and mitigating environmental issues, much like a beacon of hope shining through the fog of data analysis. The interconnected nature of our findings not only sparks timely debates but paints a vivid picture of the inextricable links that underpin the health of our planet.

As we leave this ember of inquiry smoldering, we invite our colleagues to join us in fanning the flames of discussion and collaboration, charting a course towards a clearer, brighter future for environmental research. The relationship between air pollution in Somerset and kerosene use in Thailand may at first seem like a whimsical juxtaposition, but as our research has shown, the unexpected connections that lurk within the tapestry of environmental phenomena are as real as the air we breathe and the light that guides our way. So let's not just clear the air but also shed light on the untold stories that emanate from the swirling mists of empirical inquiry.


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

Please make up a short conclusion of an academic research paper presenting the findings of the connection between Air pollution in Somerset, Pennsylvania and Kerosene used in Thailand. Make lots of jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

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

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
"Skies and Kerosene: The Relationship Between Air Pollution in Somerset and Kerosene Use in Thailand"

[[ABSTRACT]]
As the smoke clears on the issue of air pollution, our research team embarked on an unconventional journey to investigate the unlikely correlation between the hazy skies of Somerset, Pennsylvania, and the kerosene-fueled lanterns lighting up nights in Thailand. Armed with data from the Environmental Protection Agency and the Energy Information Administration, we set out to shed light on this burning question. Lo and behold, our analysis revealed a striking correlation coefficient of 0.8056641 and a p-value of less than 0.01 for the years 1990 to 2016. Our findings suggest that there may indeed be a gaseous connection between these two seemingly disparate phenomena. So buckle up, because this paper is about to ignite new discussions and spark some fiery debates in the world of environmental research!

[[INTRDUCTION]]
The environmental impact of air pollution has been a hot topic in recent years, especially in Somerset, Pennsylvania, where the skies have been less than crystal clear. At the same time, on the other side of the globe, in the bustling streets of Thailand, kerosene-fueled lanterns have been casting a warm glow in the night. While these two phenomena may seem worlds apart, our research aims to explore the potential link between the air pollution in Somerset and the kerosene use in Thailand.
As clear as an unobstructed horizon, air pollution has been a cause for concern in many areas, and Somerset, Pennsylvania, is no exception. The sight of hazy skies has raised eyebrows and left residents pondering the impact of pollution on their health and the environment. Meanwhile, in the land of smiles, Thailand, the use of kerosene for lighting continues to be a prevalent practice, illuminating the streets with a flickering luminescence reminiscent of fireflies on a summer night.
The intersection of these two seemingly unrelated phenomena may seem as unlikely as a snowstorm in July, but our research has uncovered compelling evidence to suggest a potential connection. Utilizing data from the Environmental Protection Agency and the Energy Information Administration, our analysis has revealed a startling correlation coefficient and p-value, hinting at a possible relationship between these disparate occurrences.
By shedding light on this unexpected association, our study aims to ignite new discussions and spark further research into the intricate web of factors contributing to air pollution and kerosene use. As we delve into the depths of this intriguing correlation, we invite readers to join us on this illuminating journey and perhaps even kindle a newfound appreciation for the surprising connections that lie beneath the surface of environmental phenomena. So let's strap on our oxygen masks and embark on a voyage of discovery through the smoggy skies of Somerset and the flickering lantern-lit nights of Thailand.

[[RESULTS]]
The analysis of the data collected from the Environmental Protection Agency and the Energy Information Administration unveiled some enlightening findings regarding the relationship between air pollution in Somerset, Pennsylvania, and kerosene use in Thailand. Our research uncovered a robust correlation coefficient of 0.8056641, with an r-squared value of 0.6490946 and a p-value of less than 0.01, indicating a highly significant association between these seemingly unrelated phenomena.
Fig. 1 illustrates the remarkable relationship between air pollution in Somerset and kerosene use in Thailand, showcasing the strong positive correlation observed during the years 1990 to 2016. It's almost as if the hazy skies in Somerset are sending smoke signals across the globe, urging a closer inspection of the kerosene-fueled lanterns in Thailand!
The statistical analysis has yielded results that are as clear as a cloudless day, indicating that the level of air pollution in Somerset appears to be intimately tied to the consumption of kerosene in Thailand. As the saying goes, "Where there's smoke, there's fire," and our findings certainly suggest that there may be more than meets the eye when it comes to the atmospheric relationship between these two geographically distant locations.
This significant correlation between air pollution in Somerset and kerosene use in Thailand prompts further investigation into the potential mechanisms and interconnected factors at play. Our results not only shine a light on this unexpected association but also ignite new discussions and spark renewed interest in unraveling the complexities of environmental phenomena. It seems that the connection is not just up in the air but also firmly grounded in empirical evidence, much like a smoggy 'Eureka!' moment in the world of environmental research.
In conclusion, our findings add fuel to the fire of scholarly inquiry, prompting future studies to delve deeper into the underlying causes and implications of this illuminating correlation. As we clear the air on this intriguing relationship, we invite fellow researchers to join us in exploring the captivating interplay between air pollution in Somerset and kerosene use in Thailand, and perhaps even shed some light on the unexpected connections that lie beneath the surface of environmental phenomena.
It appears that the haze in Somerset and the glow of kerosene in Thailand are not just separate dots on the map but are, in fact, part of an intriguing constellation of environmental factors. Let's hope that our research adds some much-needed clarity to this mist-ifying relationship and propels us into a brighter, cleaner future.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In the words of the great philosopher, Smokey Bear, "Only you can prevent forest fires - and apparently, air pollution in Somerset, Pennsylvania!" Our study has illuminated a connection as clear as the smog-filled skies in Somerset, establishing a fiery correlation with kerosene use in Thailand that's hotter than a flame under a magnifying glass.

The findings suggest that the atmosphere in Somerset is literally reaching out to Thailand with its pollution levels, like a long-distance relationship but with airborne particles instead of love letters. It seems that the hazy skies are not just a local affair but have developed a global reach, embracing the lanterns of Thailand with an atmospheric embrace that's more than just a breath of fresh air.

Our research has sparked more interest than a bonfire at a firework festival, igniting discussions and kindling a newfound appreciation for the interconnected web of environmental phenomena. But fear not! With these statistically significant results, we can confidently say, "Breathe easy, Somerset – we've shed some light on this kerosene connection."

Now, as the kerosene lantern of inquiry flickers into the night, we firmly assert that no more research is needed in this area. After all, we've already turned over every stone and lit every candle in our pursuit of understanding this illuminating correlation. Let's close the book on this smoky tale and move on to less hazy subjects. After all, there are plenty more fish in the sea – and hopefully, fewer pollutants in the air!


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 Skies and Kerosene: The Relationship Between Air Pollution in Somerset and Kerosene Use in Thailand. Respond only with the name of a fictional academic journal.

ChatGPT:

Journal of Environmental Science and Quirky 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 Skies and Kerosene: The Relationship Between Air Pollution in Somerset and Kerosene Use in Thailand. Respond only with the name of a fictional organization.

ChatGPT:

The Institute for Global Environmental Research and Analysis


Model: gpt-3.5-turbo-1106
System prompt: You provide potential search keywords separated by commas. You say nothing else, and you do not chat with the user.
User prompt: Please provide potential search keywords for a paper titled Skies and Kerosene: The Relationship Between Air Pollution in Somerset and Kerosene Use in Thailand with an abstract of As the smoke clears on the issue of air pollution, our research team embarked on an unconventional journey to investigate the unlikely correlation between the hazy skies of Somerset, Pennsylvania, and the kerosene-fueled lanterns lighting up nights in Thailand. Armed with data from the Environmental Protection Agency and the Energy Information Administration, we set out to shed light on this burning question. Lo and behold, our analysis revealed a striking correlation coefficient of 0.8056641 and a p-value of less than 0.01 for the years 1990 to 2016. Our findings suggest that there may indeed be a gaseous connection between these two seemingly disparate phenomena. So buckle up, because this paper is about to ignite new discussions and spark some fiery debates in the world of environmental research!

ChatGPT:

Skies, Kerosene, Air Pollution, Somerset, Pennsylvania, Thailand, Lanterns, Environmental Protection Agency, Energy Information Administration, Correlation Coefficient, Gaseous Connection, Environmental Research

*There is a bunch of Python happening behind the scenes to turn this prompt sequence into a PDF.



Random correlation

Discover a new correlation

View all correlations

View all research papers

Report an error


Data details

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

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

Correlation r = 0.8056641 (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.6490946 (Coefficient of determination)
This means 64.9% of the change in the one variable (i.e., Kerosene used in Thailand) is predictable based on the change in the other (i.e., Air pollution in Somerset, Pennsylvania) over the 27 years from 1990 through 2016.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 4.0E-7. 0.0000003972121698693989000000
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.81 in 4.0E-5% of random cases. Said differently, if you correlated 2,517,546 random variables You don't actually need 2 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 26 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 26 because we have two variables measured over a period of 27 years. It's just the number of years minus ( the number of variables minus one ), which in this case simplifies to the number of years minus one.
you would randomly expect to find a correlation as strong as this one.

[ 0.61, 0.91 ] 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.
199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016
Air pollution in Somerset, Pennsylvania (Bad air quality days)0.0664820.1186440.01928370.07458560.06111110.1156720.06572770.05555560.06179780.028089900.02808990.06963790.01492540.002785520.03038670.02298850.01759530.002777780.002865330.01648350.002923980.006289310.00314465000.00280112
Kerosene used in Thailand (Million Barrels/Day)2.11.921.921.71.71.510.90.8402930.9752741.392260.6168690.4003850.367020.339450.3136040.2697870.3032650.2636340.2240030.2302640.1895410.1860950.1826480.189022




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. Outlandish outliers: There are "outliers" in this data. In concept, "outlier" just means "way different than the rest of your dataset." When calculating a correlation like this, they are particularly impactful because a single outlier can substantially increase your correlation.

    For the purposes of this project, I counted a point as an outlier if it the residual was two standard deviations from the mean.

    (This bullet point only shows up in the details page on charts that do, in fact, have outliers.)
    They stand out on the scatterplot above: notice the dots that are far away from any other dots. I intentionally mishandeled outliers, which makes the correlation look extra strong.




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.066482,0.118644,0.0192837,0.0745856,0.0611111,0.115672,0.0657277,0.0555556,0.0617978,0.0280899,0,0.0280899,0.0696379,0.0149254,0.00278552,0.0303867,0.0229885,0.0175953,0.00277778,0.00286533,0.0164835,0.00292398,0.00628931,0.00314465,0,0,0.00280112,])
array_2 = np.array([2.1,1.9,2,1.9,2,1.7,1.7,1.5,1,0.9,0.840293,0.975274,1.39226,0.616869,0.400385,0.36702,0.33945,0.313604,0.269787,0.303265,0.263634,0.224003,0.230264,0.189541,0.186095,0.182648,0.189022,])
array_1_name = "Air pollution in Somerset, Pennsylvania"
array_2_name = "Kerosene used in Thailand"

# 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: 3351 · Black Variable ID: 22246 · Red Variable ID: 24984
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0