about · email me · subscribe
Spurious correlation #3,896 · View random

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is Arson in Missouri and the second variable is Gasoline pumped in United Kingdom.  The chart goes from 1985 to 2022, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

As the saying goes, "No fire in the Show-Me State means no need for fuel across the pond!" Without as many fiery incidents in Missouri, there was simply less demand for gasoline. This unexpected correlation has sparked a new potential approach to global fuel supply and demand management: fighting fire with, well, not needing fuel in the first place! Watch out, international energy market – Missouri is redefining what it means to "fire up" the economy. The real question now is: Can this trend lead to world peace or intergalactic rocket fuel harmony? Keep your eyes on the pump for the next sizzling installment of "Missouri's Flame-Proof Impact on Global Gas!" Remember to always fuel your day with a healthy dose of skepticism and a spark of laughter!

Model: dalle-3
Prompt: Generate an image of a firefighter in a small Missouri town raising a triumphant fist in the air as a graph chart in the background shows a downward trend in arson incidents. In a bustling United Kingdom city, depict a petrol station with noticeably less crowded petrol pumps, indicating a reduced demand for gasoline due to the decrease in arson cases. Both scenes should be visually distinct yet connected, perhaps through subtle cues like a map or flag. 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: Arson in Missouri and Gasoline pumped in United Kingdom. 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 funny image macro Whimsical illustration a Polaroid photo Vaporwave High-tech
ChatGPT: a funny image macro

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 Arson in Missouri and Gasoline pumped in United Kingdom, in the following situation: As Missouri's arson rates decreased, the demand for gasoline in the United Kingdom also dropped because there were fewer firebugs trying to set things ablaze with a fuel source nearby.. Keep the description simple.
ChatGPT: In a quiet Missouri town, firemen rejoice as they see a decline in arson incidents. Meanwhile, in a bustling United Kingdom city, fewer cars line up at the petrol station, reflecting the decreased demand for gasoline due to the reduction in arson cases.

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 funny image macro ] and depicting this scene: In a quiet Missouri town, firemen rejoice as they see a decline in arson incidents. Meanwhile, in a bustling United Kingdom city, fewer cars line up at the petrol station, reflecting the decreased demand for gasoline due to the reduction in arson cases. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Generate an image of a firefighter in a small Missouri town raising a triumphant fist in the air as a graph chart in the background shows a downward trend in arson incidents. In a bustling United Kingdom city, depict a petrol station with noticeably less crowded petrol pumps, indicating a reduced demand for gasoline due to the decrease in arson cases. Both scenes should be visually distinct yet connected, perhaps through subtle cues like a map or flag.

*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 Arson in Missouri caused Gasoline pumped in United Kingdom to decrease.

AI academic paper

(Because p < 0.01)
Burning Issues: Exploring the Fiery Relationship between Arson in Missouri and Gasoline in the United Kingdom

The Journal of Pyro-Connections

Jan 2024

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




Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics journal.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 Arson in Missouri and Gasoline pumped in United Kingdom. Make lots of jokes, goofy observations, and puns.

Make the title a clever pun.

Your research team used data from FBI Criminal Justice Information Services and Energy Information Administration to assess this nagging question. You found a correlation coefficient of 0.9670490 and p < 0.01 for 1985 to 2022.

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

[[TITLE]]
Lorem ipsum dolor sit

[[ABSTRACT]]
Lorem ipsum dolor sit



ChatGPT:
[[TITLE]]
Burning Issues: Exploring the Fiery Relationship between Arson in Missouri and Gasoline in the United Kingdom

[[ABSTRACT]]
This article pours over the scorching connection between arson cases in Missouri and the gasoline consumption in the United Kingdom from 1985 to 2022. By fueling our study with data from the FBI Criminal Justice Information Services and the Energy Information Administration, we ignite discussions on this burning question. The correlation coefficient of 0.9670490 and a significant p-value of less than 0.01 illuminate a striking relationship between these seemingly unrelated phenomena. Our findings not only kindle curiosity but also fire up the imagination for future research in this combustive area.


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics journal.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 Arson in Missouri and Gasoline pumped in United Kingdom. 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]]
Burning Issues: Exploring the Fiery Relationship between Arson in Missouri and Gasoline in the United Kingdom

[[ABSTRACT]]
This article pours over the scorching connection between arson cases in Missouri and the gasoline consumption in the United Kingdom from 1985 to 2022. By fueling our study with data from the FBI Criminal Justice Information Services and the Energy Information Administration, we ignite discussions on this burning question. The correlation coefficient of 0.9670490 and a significant p-value of less than 0.01 illuminate a striking relationship between these seemingly unrelated phenomena. Our findings not only kindle curiosity but also fire up the imagination for future research in this combustive area.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

Arson has long been a hot topic in the field of law enforcement, igniting fears and concerns about public safety and property damage. Meanwhile, gasoline has been fueling the engines of the economy and transportation in the United Kingdom for decades. However, what if there was a connection between these two seemingly unrelated entities? Could there be a fiery relationship lurking beneath the surface? In this study, we attempt to shed light on this smoldering issue by examining the correlation between arson cases in Missouri and gasoline consumption in the United Kingdom.

As the flames of curiosity flickered, we delved into the extensive dataset provided by the FBI Criminal Justice Information Services, chronicling arson incidents in the state of Missouri from 1985 to 2022. Simultaneously, we turned our attention across the Atlantic, where the Energy Information Administration generously provided us with data on gasoline consumption in the United Kingdom over the same period. With this incendiary data in hand, we sought to determine if there exists a combustible link between these disparate phenomena.

We primed our analysis by heat-testing the correlation coefficient, and to our surprise, the resulting value of 0.9670490 blazed with significance. Our findings kindled the fire of speculation, leading us to ponder the potential implications of this scorching correlation. Could it be that the sale of gasoline in the UK is inadvertently fueling the flames of arson in Missouri? Or perhaps there are external forces at play, stoking both the arson rates in Missouri and the demand for gasoline across the pond.

Before we torch any preconceptions, it is essential to recognize the limitations of our study. Correlation does not imply causation, and it is entirely plausible that the observed connection is nothing more than a statistical anomaly. Nevertheless, the searing significance of the p-value, clocking in at less than 0.01, suggests that there is more to this conflagration than meets the eye. This study is merely the spark that ignites the bonfire of future research in this combustive and potentially explosive field. By peering through the smoke and flames, we hope to illuminate the underlying factors driving this inferno of statistical correlation.

In the following sections, we will dissect the data with the precision of a fire investigator, scrutinizing the temporal patterns and regional variations in arson cases in Missouri in juxtaposition with the ebb and flow of gasoline consumption in the United Kingdom. Furthermore, we will fan the flames of discussion by considering potential mechanisms through which these two phenomena may be interconnected. Our aim is not to provide a definitive explanation but to spark dialogue and curiosity among our peers, encouraging them to turn up the heat in their own research endeavors.

In conclusion, this study serves as a beacon, casting light on the fiery relationship between arson in Missouri and gasoline in the United Kingdom. Our findings not only stoke the embers of curiosity but also ignite the imagination for future inquiry in this incendiary subject area. As we embark on this smoldering journey, let us tread carefully, for the truth behind this fiery correlation may be as elusive as a flame in the wind.


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics journal.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 Arson in Missouri and Gasoline pumped in United Kingdom. Make lots of jokes, goofy observations, and puns.

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

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

Start by naming serious-sounding studies by authors like Smith, Doe, and Jones - but then quickly devolve. Name some real non-fiction books that would be related to the topic. Then name some real fiction books that sound like they could be related. Then you might move on to cartoons and children's shows that you watched for research.

Here is the title and abstract of the paper:
[[TITLE]]
Burning Issues: Exploring the Fiery Relationship between Arson in Missouri and Gasoline in the United Kingdom

[[ABSTRACT]]
This article pours over the scorching connection between arson cases in Missouri and the gasoline consumption in the United Kingdom from 1985 to 2022. By fueling our study with data from the FBI Criminal Justice Information Services and the Energy Information Administration, we ignite discussions on this burning question. The correlation coefficient of 0.9670490 and a significant p-value of less than 0.01 illuminate a striking relationship between these seemingly unrelated phenomena. Our findings not only kindle curiosity but also fire up the imagination for future research in this combustive area.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
Arson has long been a hot topic in the field of law enforcement, igniting fears and concerns about public safety and property damage. Meanwhile, gasoline has been fueling the engines of the economy and transportation in the United Kingdom for decades. However, what if there was a connection between these two seemingly unrelated entities? Could there be a fiery relationship lurking beneath the surface? In this study, we attempt to shed light on this smoldering issue by examining the correlation between arson cases in Missouri and gasoline consumption in the United Kingdom.
As the flames of curiosity flickered, we delved into the extensive dataset provided by the FBI Criminal Justice Information Services, chronicling arson incidents in the state of Missouri from 1985 to 2022. Simultaneously, we turned our attention across the Atlantic, where the Energy Information Administration generously provided us with data on gasoline consumption in the United Kingdom over the same period. With this incendiary data in hand, we sought to determine if there exists a combustible link between these disparate phenomena.
We primed our analysis by heat-testing the correlation coefficient, and to our surprise, the resulting value of 0.9670490 blazed with significance. Our findings kindled the fire of speculation, leading us to ponder the potential implications of this scorching correlation. Could it be that the sale of gasoline in the UK is inadvertently fueling the flames of arson in Missouri? Or perhaps there are external forces at play, stoking both the arson rates in Missouri and the demand for gasoline across the pond.
Before we torch any preconceptions, it is essential to recognize the limitations of our study. Correlation does not imply causation, and it is entirely plausible that the observed connection is nothing more than a statistical anomaly. Nevertheless, the searing significance of the p-value, clocking in at less than 0.01, suggests that there is more to this conflagration than meets the eye. This study is merely the spark that ignites the bonfire of future research in this combustive and potentially explosive field. By peering through the smoke and flames, we hope to illuminate the underlying factors driving this inferno of statistical correlation.
In the following sections, we will dissect the data with the precision of a fire investigator, scrutinizing the temporal patterns and regional variations in arson cases in Missouri in juxtaposition with the ebb and flow of gasoline consumption in the United Kingdom. Furthermore, we will fan the flames of discussion by considering potential mechanisms through which these two phenomena may be interconnected. Our aim is not to provide a definitive explanation but to spark dialogue and curiosity among our peers, encouraging them to turn up the heat in their own research endeavors.
In conclusion, this study serves as a beacon, casting light on the fiery relationship between arson in Missouri and gasoline in the United Kingdom. Our findings not only stoke the embers of curiosity but also ignite the imagination for future inquiry in this incendiary subject area. As we embark on this smoldering journey, let us tread carefully, for the truth behind this fiery correlation may be as elusive as a flame in the wind.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

To explore the incendiary connection between arson in Missouri and gasoline consumption in the United Kingdom, we have scoured the academic landscape for pertinent literature on this blazing topic. Smith et al. (2015) set the stage for our investigation by examining the spatial and temporal patterns of arson incidents in the United States, providing valuable insights into the geographical distribution of these fiery acts. Meanwhile, Doe and Jones (2018) delved into the socioeconomic factors influencing gasoline demand in European countries, offering a comprehensive analysis of fuel consumption trends. Building upon these foundational works, our study seeks to light a fire under the cross-continental correlation between these two phenomena.

In "The Heat Wave: Gasoline and the Global Economy," author John Burnstin delves into the economic interplay of gasoline consumption and international trade, shedding light on the intricate web of supply and demand dynamics. Similarly, "The Firestarter's Guide to Arson: A Comprehensive Analysis" by Blaze E. Trailblazer presents a comprehensive exploration of arson as a criminal act and its societal implications, offering a gripping narrative of true crime and forensic investigations.

Turning to the realm of fiction, "Inferno: The Arsonist Chronicles" by Ember Sparks and "Gasoline Dreams: A Combustible Love Story" by Ignatius Fumes offer imaginative narratives that, while not grounded in empirical data, capture the fervor and intrigue surrounding the fiery themes of our study.

In our quest for a deeper understanding of this conflagration of topics, we ventured into the realm of children's programming. Through episodes of "Fireman Sam" and "Curious George and the Mystery of the Missing Gas Can," we sought to grasp the public's perception of arson and gasoline usage, albeit through a lighthearted and whimsical lens.

As we take stock of the literature landscape, it becomes evident that the intersection of arson in Missouri and gasoline consumption in the United Kingdom is a topic that ignites both curiosity and creativity. Our study endeavors to fan the flames of discussion in this fiery field, recognizing that the fire of knowledge is often kindled by unexpected sources.


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics journal.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 Arson in Missouri and Gasoline pumped in United Kingdom. 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 FBI Criminal Justice Information Services and Energy Information Administration . You used data from 1985 to 2022

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

Here is the title, abstract, and introduction of the paper:
[[TITLE]]
Burning Issues: Exploring the Fiery Relationship between Arson in Missouri and Gasoline in the United Kingdom

[[ABSTRACT]]
This article pours over the scorching connection between arson cases in Missouri and the gasoline consumption in the United Kingdom from 1985 to 2022. By fueling our study with data from the FBI Criminal Justice Information Services and the Energy Information Administration, we ignite discussions on this burning question. The correlation coefficient of 0.9670490 and a significant p-value of less than 0.01 illuminate a striking relationship between these seemingly unrelated phenomena. Our findings not only kindle curiosity but also fire up the imagination for future research in this combustive area.

[[INTRODUCTION]]
Arson has long been a hot topic in the field of law enforcement, igniting fears and concerns about public safety and property damage. Meanwhile, gasoline has been fueling the engines of the economy and transportation in the United Kingdom for decades. However, what if there was a connection between these two seemingly unrelated entities? Could there be a fiery relationship lurking beneath the surface? In this study, we attempt to shed light on this smoldering issue by examining the correlation between arson cases in Missouri and gasoline consumption in the United Kingdom.
As the flames of curiosity flickered, we delved into the extensive dataset provided by the FBI Criminal Justice Information Services, chronicling arson incidents in the state of Missouri from 1985 to 2022. Simultaneously, we turned our attention across the Atlantic, where the Energy Information Administration generously provided us with data on gasoline consumption in the United Kingdom over the same period. With this incendiary data in hand, we sought to determine if there exists a combustible link between these disparate phenomena.
We primed our analysis by heat-testing the correlation coefficient, and to our surprise, the resulting value of 0.9670490 blazed with significance. Our findings kindled the fire of speculation, leading us to ponder the potential implications of this scorching correlation. Could it be that the sale of gasoline in the UK is inadvertently fueling the flames of arson in Missouri? Or perhaps there are external forces at play, stoking both the arson rates in Missouri and the demand for gasoline across the pond.
Before we torch any preconceptions, it is essential to recognize the limitations of our study. Correlation does not imply causation, and it is entirely plausible that the observed connection is nothing more than a statistical anomaly. Nevertheless, the searing significance of the p-value, clocking in at less than 0.01, suggests that there is more to this conflagration than meets the eye. This study is merely the spark that ignites the bonfire of future research in this combustive and potentially explosive field. By peering through the smoke and flames, we hope to illuminate the underlying factors driving this inferno of statistical correlation.
In the following sections, we will dissect the data with the precision of a fire investigator, scrutinizing the temporal patterns and regional variations in arson cases in Missouri in juxtaposition with the ebb and flow of gasoline consumption in the United Kingdom. Furthermore, we will fan the flames of discussion by considering potential mechanisms through which these two phenomena may be interconnected. Our aim is not to provide a definitive explanation but to spark dialogue and curiosity among our peers, encouraging them to turn up the heat in their own research endeavors.
In conclusion, this study serves as a beacon, casting light on the fiery relationship between arson in Missouri and gasoline in the United Kingdom. Our findings not only stoke the embers of curiosity but also ignite the imagination for future inquiry in this incendiary subject area. As we embark on this smoldering journey, let us tread carefully, for the truth behind this fiery correlation may be as elusive as a flame in the wind.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To kindle an understanding of the fiery relationship between arson in Missouri and gasoline consumption in the United Kingdom, our research team embarked on a data-gathering expedition that would rival the intensity of a five-alarm fire. We carefully selected data sources that would fuel our investigation, primarily relying on the comprehensive databases of the FBI Criminal Justice Information Services and the Energy Information Administration. The arson incident data from the state of Missouri, spanning from 1985 to 2022, was meticulously extracted from the FBI's repository, while the gasoline consumption figures in the United Kingdom over the same period were sourced from the flamethrower of information that is the Energy Information Administration.

With our data sources ablaze, we methodically scrutinized the patterns and trends over the years, employing statistical tools and inferential analyses to tease out any potential correlations between these seemingly disparate phenomena. Our investigation was akin to conducting a forensic examination, carefully sifting through the data for any sparks of connection.

In order to heat up our data analysis, we employed a variety of statistical techniques, including correlation analysis, to gauge the degree of association between arson incidents in Missouri and gasoline consumption in the United Kingdom. We diligently calculated the correlation coefficient, bolstered by our trusty statistical software, to determine the strength and direction of the relationship between these variables. Additionally, we meticulously scrutinized the p-value to assess the significance of our findings, ensuring that our conclusions were not merely smoke and mirrors.

To add a dash of complexity to our scorching investigation, we also explored potential confounding variables and covariates that could potentially inflame the observed correlation. Through rigorous sensitivity analyses and robust statistical modeling, we aimed to quench any doubts about the robustness of our findings and prevent any false alarms from igniting within the scientific community.

Furthermore, we embraced the heat of multivariate regression analyses to ferret out any potential mediating or moderating factors that may stoke the flames of correlation between these two phenomena. Our quest for understanding was akin to navigating a labyrinth of statistical inferno, where each turn revealed new insights into the complex interplay between arson in Missouri and gasoline consumption in the United Kingdom.

Throughout our methodological journey, we remained vigilant against the dangers of spurious correlations and statistical mirages, ensuring that our findings were as resilient as a flame resistant material. We also rigorously tested the assumptions underlying our analytical approaches, ensuring that the inferno of correlation we identified was not a mere statistical artifact.

In conclusion, our methodological approach was designed to stoke the embers of scientific inquiry and illuminate the potential nexus between arson in Missouri and gasoline consumption in the United Kingdom. We meticulously tended to the flames of data analysis, ensuring that our conclusions were not consumed by the inferno of statistical noise but instead soared as brightly as a well-tended bonfire.


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics journal.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 Arson in Missouri and Gasoline pumped in United Kingdom. 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 FBI Criminal Justice Information Services and Energy Information Administration .

For the time period 1985 to 2022, you found a correlation 0.9670490, r-squared of 0.9351838, 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]]
Burning Issues: Exploring the Fiery Relationship between Arson in Missouri and Gasoline in the United Kingdom

[[ABSTRACT]]
This article pours over the scorching connection between arson cases in Missouri and the gasoline consumption in the United Kingdom from 1985 to 2022. By fueling our study with data from the FBI Criminal Justice Information Services and the Energy Information Administration, we ignite discussions on this burning question. The correlation coefficient of 0.9670490 and a significant p-value of less than 0.01 illuminate a striking relationship between these seemingly unrelated phenomena. Our findings not only kindle curiosity but also fire up the imagination for future research in this combustive area.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
Arson has long been a hot topic in the field of law enforcement, igniting fears and concerns about public safety and property damage. Meanwhile, gasoline has been fueling the engines of the economy and transportation in the United Kingdom for decades. However, what if there was a connection between these two seemingly unrelated entities? Could there be a fiery relationship lurking beneath the surface? In this study, we attempt to shed light on this smoldering issue by examining the correlation between arson cases in Missouri and gasoline consumption in the United Kingdom.
As the flames of curiosity flickered, we delved into the extensive dataset provided by the FBI Criminal Justice Information Services, chronicling arson incidents in the state of Missouri from 1985 to 2022. Simultaneously, we turned our attention across the Atlantic, where the Energy Information Administration generously provided us with data on gasoline consumption in the United Kingdom over the same period. With this incendiary data in hand, we sought to determine if there exists a combustible link between these disparate phenomena.
We primed our analysis by heat-testing the correlation coefficient, and to our surprise, the resulting value of 0.9670490 blazed with significance. Our findings kindled the fire of speculation, leading us to ponder the potential implications of this scorching correlation. Could it be that the sale of gasoline in the UK is inadvertently fueling the flames of arson in Missouri? Or perhaps there are external forces at play, stoking both the arson rates in Missouri and the demand for gasoline across the pond.
Before we torch any preconceptions, it is essential to recognize the limitations of our study. Correlation does not imply causation, and it is entirely plausible that the observed connection is nothing more than a statistical anomaly. Nevertheless, the searing significance of the p-value, clocking in at less than 0.01, suggests that there is more to this conflagration than meets the eye. This study is merely the spark that ignites the bonfire of future research in this combustive and potentially explosive field. By peering through the smoke and flames, we hope to illuminate the underlying factors driving this inferno of statistical correlation.
In the following sections, we will dissect the data with the precision of a fire investigator, scrutinizing the temporal patterns and regional variations in arson cases in Missouri in juxtaposition with the ebb and flow of gasoline consumption in the United Kingdom. Furthermore, we will fan the flames of discussion by considering potential mechanisms through which these two phenomena may be interconnected. Our aim is not to provide a definitive explanation but to spark dialogue and curiosity among our peers, encouraging them to turn up the heat in their own research endeavors.
In conclusion, this study serves as a beacon, casting light on the fiery relationship between arson in Missouri and gasoline in the United Kingdom. Our findings not only stoke the embers of curiosity but also ignite the imagination for future inquiry in this incendiary subject area. As we embark on this smoldering journey, let us tread carefully, for the truth behind this fiery correlation may be as elusive as a flame in the wind.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The correlation analysis between arson cases in Missouri and gasoline consumption in the United Kingdom yielded a scorching correlation coefficient of 0.9670490. This high correlation coefficient indicates a strong positive linear relationship between the two seemingly unrelated variables. The R-squared value of 0.9351838 further underscores the robustness of this connection, suggesting that a blazing 93.52% of the variability in arson cases in Missouri can be explained by the variation in gasoline consumption in the United Kingdom.

The significance of this correlation was confirmed by the p-value, which was found to be less than 0.01. This indicates that there is less than a 1% probability that the observed correlation is due to random chance. In other words, the likelihood of such a fiery association occurring by accident is less than that of finding a fire hydrant in the middle of the Sahara Desert.

To visually encapsulate the fervent relationship between arson in Missouri and gasoline in the United Kingdom, we present Figure 1, a scorching scatterplot illustrating the strong positive correlation between the two variables. One look at this plot, and it becomes clear that the connection between these variables is hotter than a summer day in the Mojave Desert.

The results of this study not only fan the flames of curiosity but also stoke the imagination for future research in this combustive area. While we must exercise caution in drawing definitive causal conclusions, the strength of this correlation invites further exploration into the potential mechanisms underlying this incendiary relationship. Let this research be the spark that ignites further inquiry, fueling discussions and prompting future investigations into this fiery nexus between arson in Missouri and gasoline in the United Kingdom.


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics journal.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 Arson in Missouri and Gasoline pumped in United Kingdom. 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]]
Burning Issues: Exploring the Fiery Relationship between Arson in Missouri and Gasoline in the United Kingdom

[[ABSTRACT]]
This article pours over the scorching connection between arson cases in Missouri and the gasoline consumption in the United Kingdom from 1985 to 2022. By fueling our study with data from the FBI Criminal Justice Information Services and the Energy Information Administration, we ignite discussions on this burning question. The correlation coefficient of 0.9670490 and a significant p-value of less than 0.01 illuminate a striking relationship between these seemingly unrelated phenomena. Our findings not only kindle curiosity but also fire up the imagination for future research in this combustive area.

[[LITERATURE REVIEW]]
To explore the incendiary connection between arson in Missouri and gasoline consumption in the United Kingdom, we have scoured the academic landscape for pertinent literature on this blazing topic. Smith et al. (2015) set the stage for our investigation by examining the spatial and temporal patterns of arson incidents in the United States, providing valuable insights into the geographical distribution of these fiery acts. Meanwhile, Doe and Jones (2018) delved into the socioeconomic factors influencing gasoline demand in European countries, offering a comprehensive analysis of fuel consumption trends. Building upon these foundational works, our study seeks to light a fire under the cross-continental correlation between these two phenomena.
In "The Heat Wave: Gasoline and the Global Economy," author John Burnstin delves into the economic interplay of gasoline consumption and international trade, shedding light on the intricate web of supply and demand dynamics. Similarly, "The Firestarter's Guide to Arson: A Comprehensive Analysis" by Blaze E. Trailblazer presents a comprehensive exploration of arson as a criminal act and its societal implications, offering a gripping narrative of true crime and forensic investigations.
Turning to the realm of fiction, "Inferno: The Arsonist Chronicles" by Ember Sparks and "Gasoline Dreams: A Combustible Love Story" by Ignatius Fumes offer imaginative narratives that, while not grounded in empirical data, capture the fervor and intrigue surrounding the fiery themes of our study.
In our quest for a deeper understanding of this conflagration of topics, we ventured into the realm of children's programming. Through episodes of "Fireman Sam" and "Curious George and the Mystery of the Missing Gas Can," we sought to grasp the public's perception of arson and gasoline usage, albeit through a lighthearted and whimsical lens.
As we take stock of the literature landscape, it becomes evident that the intersection of arson in Missouri and gasoline consumption in the United Kingdom is a topic that ignites both curiosity and creativity. Our study endeavors to fan the flames of discussion in this fiery field, recognizing that the fire of knowledge is often kindled by unexpected sources.

[[RESULTS]]
The correlation analysis between arson cases in Missouri and gasoline consumption in the United Kingdom yielded a scorching correlation coefficient of 0.9670490. This high correlation coefficient indicates a strong positive linear relationship between the two seemingly unrelated variables. The R-squared value of 0.9351838 further underscores the robustness of this connection, suggesting that a blazing 93.52% of the variability in arson cases in Missouri can be explained by the variation in gasoline consumption in the United Kingdom.
The significance of this correlation was confirmed by the p-value, which was found to be less than 0.01. This indicates that there is less than a 1% probability that the observed correlation is due to random chance. In other words, the likelihood of such a fiery association occurring by accident is less than that of finding a fire hydrant in the middle of the Sahara Desert.
To visually encapsulate the fervent relationship between arson in Missouri and gasoline in the United Kingdom, we present Figure 1, a scorching scatterplot illustrating the strong positive correlation between the two variables. One look at this plot, and it becomes clear that the connection between these variables is hotter than a summer day in the Mojave Desert.
The results of this study not only fan the flames of curiosity but also stoke the imagination for future research in this combustive area. While we must exercise caution in drawing definitive causal conclusions, the strength of this correlation invites further exploration into the potential mechanisms underlying this incendiary relationship. Let this research be the spark that ignites further inquiry, fueling discussions and prompting future investigations into this fiery nexus between arson in Missouri and gasoline in the United Kingdom.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The scorching correlation coefficient of 0.9670490 between arson cases in Missouri and gasoline consumption in the United Kingdom sets the stage for a fiery discussion concerning the interconnectedness of these seemingly unrelated variables. Our findings not only fan the flames of curiosity but also bolster the previous research that hinted at a burning correlation.

Building upon the foundational works of Smith et al. (2015) and Doe and Jones (2018), our study adds fuel to the fire by confirming and amplifying their observations about the spatial and temporal patterns of arson incidents in the United States and the socioeconomic factors influencing gasoline demand in European countries. It's evident that these previous researchers were onto something hot when they laid the groundwork for our investigation. They might not have been deliberately trying to stoke the flames of curiosity, but they certainly didn't dampen them.

Furthermore, the economic interplay of gasoline consumption and international trade, as illuminated by John Burnstin in "The Heat Wave," seems to have sparked a greater understanding of the intricate web of supply and demand dynamics that could explain the robust correlation we observed. Similarly, Blaze E. Trailblazer's comprehensive analysis of arson as a criminal act and its societal implications provided a gripping narrative that could have easily fueled our own investigation. It's as if the literature was trying to ignite our curiosity with its blazing relevance to our study.

Even our foray into children's programming cannot be dismissed as mere frivolity. The whimsical lens through which we viewed the public's perception of arson and gasoline usage shed some unexpected light on the intersections of these incendiary topics. Who knew that "Fireman Sam" and "Curious George and the Mystery of the Missing Gas Can" would play a role in igniting our understanding of this blazing nexus? It goes to show that sometimes the most unexpected sources can kindle the fire of knowledge.

In conclusion, our results not only confirm the robust correlation between arson in Missouri and gasoline consumption in the United Kingdom but also serve as a spark for future inquiry. The fire of knowledge has been stoked, and it's clear that this area of research is hotter than a jalapeno-laced gasoline. Let our findings serve as the kindling for future investigations into this combustive area, and may the flames of curiosity continue to burn bright in the pursuit of understanding this fiery nexus.


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics journal.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 Arson in Missouri and Gasoline pumped in United Kingdom. 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]]
Burning Issues: Exploring the Fiery Relationship between Arson in Missouri and Gasoline in the United Kingdom

[[ABSTRACT]]
This article pours over the scorching connection between arson cases in Missouri and the gasoline consumption in the United Kingdom from 1985 to 2022. By fueling our study with data from the FBI Criminal Justice Information Services and the Energy Information Administration, we ignite discussions on this burning question. The correlation coefficient of 0.9670490 and a significant p-value of less than 0.01 illuminate a striking relationship between these seemingly unrelated phenomena. Our findings not only kindle curiosity but also fire up the imagination for future research in this combustive area.

[[INTRDUCTION]]
Arson has long been a hot topic in the field of law enforcement, igniting fears and concerns about public safety and property damage. Meanwhile, gasoline has been fueling the engines of the economy and transportation in the United Kingdom for decades. However, what if there was a connection between these two seemingly unrelated entities? Could there be a fiery relationship lurking beneath the surface? In this study, we attempt to shed light on this smoldering issue by examining the correlation between arson cases in Missouri and gasoline consumption in the United Kingdom.
As the flames of curiosity flickered, we delved into the extensive dataset provided by the FBI Criminal Justice Information Services, chronicling arson incidents in the state of Missouri from 1985 to 2022. Simultaneously, we turned our attention across the Atlantic, where the Energy Information Administration generously provided us with data on gasoline consumption in the United Kingdom over the same period. With this incendiary data in hand, we sought to determine if there exists a combustible link between these disparate phenomena.
We primed our analysis by heat-testing the correlation coefficient, and to our surprise, the resulting value of 0.9670490 blazed with significance. Our findings kindled the fire of speculation, leading us to ponder the potential implications of this scorching correlation. Could it be that the sale of gasoline in the UK is inadvertently fueling the flames of arson in Missouri? Or perhaps there are external forces at play, stoking both the arson rates in Missouri and the demand for gasoline across the pond.
Before we torch any preconceptions, it is essential to recognize the limitations of our study. Correlation does not imply causation, and it is entirely plausible that the observed connection is nothing more than a statistical anomaly. Nevertheless, the searing significance of the p-value, clocking in at less than 0.01, suggests that there is more to this conflagration than meets the eye. This study is merely the spark that ignites the bonfire of future research in this combustive and potentially explosive field. By peering through the smoke and flames, we hope to illuminate the underlying factors driving this inferno of statistical correlation.
In the following sections, we will dissect the data with the precision of a fire investigator, scrutinizing the temporal patterns and regional variations in arson cases in Missouri in juxtaposition with the ebb and flow of gasoline consumption in the United Kingdom. Furthermore, we will fan the flames of discussion by considering potential mechanisms through which these two phenomena may be interconnected. Our aim is not to provide a definitive explanation but to spark dialogue and curiosity among our peers, encouraging them to turn up the heat in their own research endeavors.
In conclusion, this study serves as a beacon, casting light on the fiery relationship between arson in Missouri and gasoline in the United Kingdom. Our findings not only stoke the embers of curiosity but also ignite the imagination for future inquiry in this incendiary subject area. As we embark on this smoldering journey, let us tread carefully, for the truth behind this fiery correlation may be as elusive as a flame in the wind.

[[RESULTS]]
The correlation analysis between arson cases in Missouri and gasoline consumption in the United Kingdom yielded a scorching correlation coefficient of 0.9670490. This high correlation coefficient indicates a strong positive linear relationship between the two seemingly unrelated variables. The R-squared value of 0.9351838 further underscores the robustness of this connection, suggesting that a blazing 93.52% of the variability in arson cases in Missouri can be explained by the variation in gasoline consumption in the United Kingdom.
The significance of this correlation was confirmed by the p-value, which was found to be less than 0.01. This indicates that there is less than a 1% probability that the observed correlation is due to random chance. In other words, the likelihood of such a fiery association occurring by accident is less than that of finding a fire hydrant in the middle of the Sahara Desert.
To visually encapsulate the fervent relationship between arson in Missouri and gasoline in the United Kingdom, we present Figure 1, a scorching scatterplot illustrating the strong positive correlation between the two variables. One look at this plot, and it becomes clear that the connection between these variables is hotter than a summer day in the Mojave Desert.
The results of this study not only fan the flames of curiosity but also stoke the imagination for future research in this combustive area. While we must exercise caution in drawing definitive causal conclusions, the strength of this correlation invites further exploration into the potential mechanisms underlying this incendiary relationship. Let this research be the spark that ignites further inquiry, fueling discussions and prompting future investigations into this fiery nexus between arson in Missouri and gasoline in the United Kingdom.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our study has set the research world ablaze with its scorching findings on the relationship between arson in Missouri and gasoline consumption in the United Kingdom. The inferno of statistical correlation we uncovered, with a correlation coefficient hotter than a firefighter's chili and a p-value lower than the odds of finding a fire hydrant in the Sahara, has left us all feeling a bit singed.

However, we must approach these findings with the caution of a fire marshal in a dynamite factory. Correlation does not imply causation, and it's entirely possible that this blazing connection is no more than a statistical anomaly – a statistical wildfire that's all heat and no light, if you will.

Nevertheless, our incendiary findings kindle the flames of curiosity and spark the imagination for future research in this combustive area. We've thrown fuel on the fire of scientific inquiry, and now it's up to our fellow researchers to grab the extinguisher and douse this scorching question with rigorous investigation.

As we smother this dissertation with our conclusion, we assert that no more research is needed in this area. The heat is just too much for us to handle.


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 Burning Issues: Exploring the Fiery Relationship between Arson in Missouri and Gasoline in the United Kingdom. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Pyro-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 Burning Issues: Exploring the Fiery Relationship between Arson in Missouri and Gasoline in the United Kingdom. Respond only with the name of a fictional organization.

ChatGPT:

The Institute for Comparative Combustion Studies


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 Burning Issues: Exploring the Fiery Relationship between Arson in Missouri and Gasoline in the United Kingdom with an abstract of This article pours over the scorching connection between arson cases in Missouri and the gasoline consumption in the United Kingdom from 1985 to 2022. By fueling our study with data from the FBI Criminal Justice Information Services and the Energy Information Administration, we ignite discussions on this burning question. The correlation coefficient of 0.9670490 and a significant p-value of less than 0.01 illuminate a striking relationship between these seemingly unrelated phenomena. Our findings not only kindle curiosity but also fire up the imagination for future research in this combustive area.

ChatGPT:

arson cases, Missouri, gasoline consumption, United Kingdom, correlation coefficient, FBI Criminal Justice Information Services, Energy Information Administration, arson statistics, gasoline usage, fire incidents, crime data

*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

Arson in Missouri
Detailed data title: The arson rate per 100,000 residents in Missouri
Source: FBI Criminal Justice Information Services
See what else correlates with Arson in Missouri

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

Correlation r = 0.9670490 (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.9351838 (Coefficient of determination)
This means 93.5% of the change in the one variable (i.e., Gasoline pumped in United Kingdom) is predictable based on the change in the other (i.e., Arson in Missouri) over the 38 years from 1985 through 2022.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 5.6E-23. 0.0000000000000000000000555703
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.97 in 5.6E-21% of random cases. Said differently, if you correlated 17,995,224,067,532,476,383,232 random variables You don't actually need 17 sextillion 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 37 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 37 because we have two variables measured over a period of 38 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.94, 0.98 ] 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.
19851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022
Arson in Missouri (Arson rate)32.1393742.438.240.642.744.541.241.940.540.139.837.136.838.336.835.933.33333.636.531.830.627.125.725.125.62023.221.322.116.917.514.819.219.116.8
Gasoline pumped in United Kingdom (Million Barrels/Day)472.342497.047513.575536.76553.86562.836556.101555.115550.195528.827508.227517.415515.153505.797523.134498.757484.611481.718461.115449.839434.767421.156410.603385.678367.337349.551333.671319.667306.195300.31294.334289.844286.868282.162284.997222.093249.762275.233




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([32.1,39,37,42.4,38.2,40.6,42.7,44.5,41.2,41.9,40.5,40.1,39.8,37.1,36.8,38.3,36.8,35.9,33.3,33,33.6,36.5,31.8,30.6,27.1,25.7,25.1,25.6,20,23.2,21.3,22.1,16.9,17.5,14.8,19.2,19.1,16.8,])
array_2 = np.array([472.342,497.047,513.575,536.76,553.86,562.836,556.101,555.115,550.195,528.827,508.227,517.415,515.153,505.797,523.134,498.757,484.611,481.718,461.115,449.839,434.767,421.156,410.603,385.678,367.337,349.551,333.671,319.667,306.195,300.31,294.334,289.844,286.868,282.162,284.997,222.093,249.762,275.233,])
array_1_name = "Arson in Missouri"
array_2_name = "Gasoline pumped in United Kingdom"

# Perform the calculation
print(f"Calculating the correlation between {array_1_name} and {array_2_name}...")
correlation, r_squared, p_value = calculate_correlation(array_1, array_2)

# Print the results
print("Correlation Coefficient:", correlation)
print("R-squared:", r_squared)
print("P-value:", p_value)



Reuseable content

You may re-use the images on this page for any purpose, even commercial purposes, without asking for permission. The only requirement is that you attribute Tyler Vigen. Attribution can take many different forms. If you leave the "tylervigen.com" link in the image, that satisfies it just fine. If you remove it and move it to a footnote, that's fine too. You can also just write "Charts courtesy of Tyler Vigen" at the bottom of an article.

You do not need to attribute "the spurious correlations website," and you don't even need to link here if you don't want to. I don't gain anything from pageviews. There are no ads on this site, there is nothing for sale, and I am not for hire.

For the record, I am just one person. Tyler Vigen, he/him/his. I do have degrees, but they should not go after my name unless you want to annoy my wife. If that is your goal, then go ahead and cite me as "Tyler Vigen, A.A. A.A.S. B.A. J.D." Otherwise it is just "Tyler Vigen."

When spoken, my last name is pronounced "vegan," like I don't eat meat.

Full license details.
For more on re-use permissions, or to get a signed release form, see tylervigen.com/permission.

Download images for these variables:


View another random correlation

How fun was this correlation?

Your rating is much appreciated!


Correlation ID: 3896 · Black Variable ID: 20053 · Red Variable ID: 25046
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0