about · email me · subscribe
Spurious correlation #5,649 · 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 Ithaca and the second variable is Arson in United States.  The chart goes from 1990 to 2022, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

As the air in Ithaca cleared up, it also cleared the minds of potential arsonists across the United States. With easier access to clean, oxygen-rich air, their fiery tendencies just couldn't ignite the way they used to. It's a case of environmental improvement leading to a nationwide cool-down in criminal activity.

Model: dalle-3
Prompt: [A comic-book-style illustration with bold lines, muted colors, and a dotted halftone pattern from the 1960s] The illustration shows Ithaca, a picturesque city with a clear sky and scenic landscapes. The sun shines down, casting a golden glow, and the buildings are highlighted in warm tones. The city is surrounded by nature, featuring fresh, clean air and lush greenery. In the background, the rest of the United States is depicted with a similar clear sky, symbolizing a sense of peace and safety. The overall image conveys a serene and idyllic atmosphere, reflecting the calming effect of the clean, clear air on both Ithaca and the nation. 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 Ithaca and Arson in United States. 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: Woodblock painting Woodblock painting Whimsical illustration A comic-book-style illustration with muted colors and a dotted halftone pattern from the 1960s Concept art
ChatGPT: A comic-book-style illustration with muted colors and a dotted halftone pattern from the 1960s

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 Ithaca and Arson in United States, in the following situation: As the air in Ithaca cleared up, it also cleared the minds of potential arsonists across the United States. With easier access to clean, oxygen-rich air, their fiery tendencies just couldn't ignite the way they used to. It's a case of environmental improvement leading to a nationwide cool-down in criminal activity.. Keep the description simple.
ChatGPT: In Ithaca, the sky gradually cleared of smog and pollution, allowing the sun to shine through and paint the city in a golden glow. The air became crisp and fresh, as if nature itself had taken a deep breath. Meanwhile, across the United States, would-be arsonists found themselves cooling off as well. With clean, clear air to breathe, the sparks of mischief and mayhem simply couldn't catch fire like they used to, leaving the nation a little safer and more at peace.

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 comic-book-style illustration with muted colors and a dotted halftone pattern from the 1960s ] and depicting this scene: In Ithaca, the sky gradually cleared of smog and pollution, allowing the sun to shine through and paint the city in a golden glow. The air became crisp and fresh, as if nature itself had taken a deep breath. Meanwhile, across the United States, would-be arsonists found themselves cooling off as well. With clean, clear air to breathe, the sparks of mischief and mayhem simply couldn't catch fire like they used to, leaving the nation a little safer and more at peace. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: [A comic-book-style illustration with bold lines, muted colors, and a dotted halftone pattern from the 1960s] The illustration shows Ithaca, a picturesque city with a clear sky and scenic landscapes. The sun shines down, casting a golden glow, and the buildings are highlighted in warm tones. The city is surrounded by nature, featuring fresh, clean air and lush greenery. In the background, the rest of the United States is depicted with a similar clear sky, symbolizing a sense of peace and safety. The overall image conveys a serene and idyllic atmosphere, reflecting the calming effect of the clean, clear air on both Ithaca and the nation.

*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 Ithaca caused Arson in United States to decrease.

AI academic paper

(Because p < 0.01)
Clearing the Air: An Examination of the Relationship Between Air Pollution in Ithaca and Arson in the United States

The Journal of Ecological Quirkiness

Jan 2024

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




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

Please draft the title and abstract of an academic research paper presenting the findings of the connection between Air pollution in Ithaca and Arson in United States. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

Make the title a clever pun.

Your research team used data from Environmental Protection Agency and FBI Criminal Justice Information Services to assess this nagging question. You found a correlation coefficient of 0.8592484 and p < 0.01 for 1990 to 2022.

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

[[TITLE]]
Lorem ipsum dolor sit

[[ABSTRACT]]
Lorem ipsum dolor sit



ChatGPT:
[[TITLE]]
"Clearing the Air: An Examination of the Relationship Between Air Pollution in Ithaca and Arson in the United States"

[[ABSTRACT]]
The correlation between air pollution in Ithaca and arson in the United States is a burning issue that has ignited the curiosity of researchers. In this study, we set out to investigate this fiery connection, using data from the Environmental Protection Agency and the FBI Criminal Justice Information Services. Our findings set the stage for a compelling argument that would warm the hearts of both environmental and criminology enthusiasts.

Our analysis revealed a correlation coefficient of 0.8592484 and a statistically significant p-value of less than 0.01, spanning over the years from 1990 to 2022. It seems that the air quality in Ithaca has been igniting more than just the passion for clean energy initiatives.

As we delved into this incendiary relationship, our research kindled an unexpected revelation: the presence of air pollution in Ithaca is positively associated with the incidence of arson in the United States. This findings sparks further exploration into the complex dynamics between environmental factors and criminal behavior, adding fuel to the fire of interdisciplinary research.

In conclusion, our study demonstrates the need for a comprehensive approach to addressing the hot-button issues of air pollution and arson. It is time to fan the flames of further research and policy initiatives, so that we can collectively extinguish the root causes of both the environmental hazard and the criminal activity. After all, solving these pressing problems is nothing to sniff at - unless it's the sweet smell of success!


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

Please make up the introduction section of an academic research paper presenting the findings of the connection between Air pollution in Ithaca and Arson in United States. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

Here is the title and abstract of the paper:
[[TITLE]]
"Clearing the Air: An Examination of the Relationship Between Air Pollution in Ithaca and Arson in the United States"

[[ABSTRACT]]
The correlation between air pollution in Ithaca and arson in the United States is a burning issue that has ignited the curiosity of researchers. In this study, we set out to investigate this fiery connection, using data from the Environmental Protection Agency and the FBI Criminal Justice Information Services. Our findings set the stage for a compelling argument that would warm the hearts of both environmental and criminology enthusiasts.

Our analysis revealed a correlation coefficient of 0.8592484 and a statistically significant p-value of less than 0.01, spanning over the years from 1990 to 2022. It seems that the air quality in Ithaca has been igniting more than just the passion for clean energy initiatives.

As we delved into this incendiary relationship, our research kindled an unexpected revelation: the presence of air pollution in Ithaca is positively associated with the incidence of arson in the United States. This findings sparks further exploration into the complex dynamics between environmental factors and criminal behavior, adding fuel to the fire of interdisciplinary research.

In conclusion, our study demonstrates the need for a comprehensive approach to addressing the hot-button issues of air pollution and arson. It is time to fan the flames of further research and policy initiatives, so that we can collectively extinguish the root causes of both the environmental hazard and the criminal activity. After all, solving these pressing problems is nothing to sniff at - unless it's the sweet smell of success!

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

The relationship between air pollution and criminal behavior has long been a topic of intense debate, sparking more interest than a wildfire at a fireworks factory. While the effects of air pollution on public health and environmental degradation have been well-documented, its connection to criminal activities, particularly arson, remains a relatively uncharted territory. As researchers, we were eager to shed some light on this burning question and spark a new conversation in the field.

It's no secret that air pollution can cloud your judgment, but who would have thought it could also fuel criminal activity? The smokescreen surrounding this issue has left many scratching their heads, but we are determined to clear the air and bring these findings to light.

Our study aims to bridge the gap between environmental science and criminology by examining the correlation between air pollution levels in Ithaca and incidents of arson across the United States. By analyzing data from the Environmental Protection Agency and the FBI, we aimed to ignite a new understanding of the potential links between air quality and criminal behavior.

Some may argue that this investigation is like chasing smoke, but we were determined to not let this topic go up in flames. In doing so, we hope to lay the groundwork for future research and policy initiatives that can help extinguish the root causes of both environmental hazards and criminal activities.

So, without further ado, let's set the stage for this scorching investigation and see what sparks fly along the way!


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

Please make up a literature review section of an academic research paper presenting the findings of the connection between Air pollution in Ithaca and Arson in United States. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

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

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

Start by naming serious-sounding studies by authors like Smith, Doe, and Jones - but then quickly devolve. Name some real non-fiction books that would be related to the topic. Then name some real fiction books that sound like they could be related. Then name a couple popular internet memes that are related to one of the topics.

Here is the title and abstract of the paper:
[[TITLE]]
"Clearing the Air: An Examination of the Relationship Between Air Pollution in Ithaca and Arson in the United States"

[[ABSTRACT]]
The correlation between air pollution in Ithaca and arson in the United States is a burning issue that has ignited the curiosity of researchers. In this study, we set out to investigate this fiery connection, using data from the Environmental Protection Agency and the FBI Criminal Justice Information Services. Our findings set the stage for a compelling argument that would warm the hearts of both environmental and criminology enthusiasts.

Our analysis revealed a correlation coefficient of 0.8592484 and a statistically significant p-value of less than 0.01, spanning over the years from 1990 to 2022. It seems that the air quality in Ithaca has been igniting more than just the passion for clean energy initiatives.

As we delved into this incendiary relationship, our research kindled an unexpected revelation: the presence of air pollution in Ithaca is positively associated with the incidence of arson in the United States. This findings sparks further exploration into the complex dynamics between environmental factors and criminal behavior, adding fuel to the fire of interdisciplinary research.

In conclusion, our study demonstrates the need for a comprehensive approach to addressing the hot-button issues of air pollution and arson. It is time to fan the flames of further research and policy initiatives, so that we can collectively extinguish the root causes of both the environmental hazard and the criminal activity. After all, solving these pressing problems is nothing to sniff at - unless it's the sweet smell of success!

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
The relationship between air pollution and criminal behavior has long been a topic of intense debate, sparking more interest than a wildfire at a fireworks factory. While the effects of air pollution on public health and environmental degradation have been well-documented, its connection to criminal activities, particularly arson, remains a relatively uncharted territory. As researchers, we were eager to shed some light on this burning question and spark a new conversation in the field.
It's no secret that air pollution can cloud your judgment, but who would have thought it could also fuel criminal activity? The smokescreen surrounding this issue has left many scratching their heads, but we are determined to clear the air and bring these findings to light.
Our study aims to bridge the gap between environmental science and criminology by examining the correlation between air pollution levels in Ithaca and incidents of arson across the United States. By analyzing data from the Environmental Protection Agency and the FBI, we aimed to ignite a new understanding of the potential links between air quality and criminal behavior.
Some may argue that this investigation is like chasing smoke, but we were determined to not let this topic go up in flames. In doing so, we hope to lay the groundwork for future research and policy initiatives that can help extinguish the root causes of both environmental hazards and criminal activities.
So, without further ado, let's set the stage for this scorching investigation and see what sparks fly along the way!

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

Previous research has explored the multifaceted impact of air pollution on public health, environmental quality, and even economic productivity. Smith et al. (2015) uncovered the detrimental effects of air pollution on respiratory health, while Doe (2018) detailed the widespread ecological harm caused by pollutants in the atmosphere. Jones (2020) delved into the socioeconomic repercussions of poor air quality, shedding light on the far-reaching consequences of environmental degradation.

But what about its connection to criminal activities such as arson? It's like air pollution is playing with fire, quite literally!

In "Air Pollution and Crimes," the authors find that increases in air pollution levels are associated with a rise in property crimes, but the specific link to arson remains largely unexplored. Similarly, "Criminal Minds: Environmental Edition" highlights the complex interplay between environmental factors and criminal behavior, opening the door for further investigation into the fiery relationship between air pollution and arson.

Turning to fictional works, "Smoke and Ashes: A Crime Novel" and "The Arsonist's Handbook" may not contribute directly to empirical research, but their titles certainly stoke the flames of curiosity about the intersection of air quality and criminal mischief.

Now, who would have thought that the meme "This is fine," featuring a dog calmly sipping coffee in a completely engulfed room, would resonate so deeply with our findings? Maybe the dog isn't so relaxed about the situation after all - perhaps it's just a coping mechanism for the overwhelming relationship between air pollution and arson!

As we ignite this discussion and fan the flames of curiosity, it becomes increasingly clear that the fiery connection between air pollution in Ithaca and arson in the United States is no laughing matter... well, maybe just a little bit.


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

Please make up the methodology section of an academic research paper presenting the findings of the connection between Air pollution in Ithaca and Arson in United States. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

Your research team collected data from all across the internet, but mostly just used information from Environmental Protection Agency and FBI Criminal Justice Information Services . You used data from 1990 to 2022

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

Here is the title, abstract, and introduction of the paper:
[[TITLE]]
"Clearing the Air: An Examination of the Relationship Between Air Pollution in Ithaca and Arson in the United States"

[[ABSTRACT]]
The correlation between air pollution in Ithaca and arson in the United States is a burning issue that has ignited the curiosity of researchers. In this study, we set out to investigate this fiery connection, using data from the Environmental Protection Agency and the FBI Criminal Justice Information Services. Our findings set the stage for a compelling argument that would warm the hearts of both environmental and criminology enthusiasts.

Our analysis revealed a correlation coefficient of 0.8592484 and a statistically significant p-value of less than 0.01, spanning over the years from 1990 to 2022. It seems that the air quality in Ithaca has been igniting more than just the passion for clean energy initiatives.

As we delved into this incendiary relationship, our research kindled an unexpected revelation: the presence of air pollution in Ithaca is positively associated with the incidence of arson in the United States. This findings sparks further exploration into the complex dynamics between environmental factors and criminal behavior, adding fuel to the fire of interdisciplinary research.

In conclusion, our study demonstrates the need for a comprehensive approach to addressing the hot-button issues of air pollution and arson. It is time to fan the flames of further research and policy initiatives, so that we can collectively extinguish the root causes of both the environmental hazard and the criminal activity. After all, solving these pressing problems is nothing to sniff at - unless it's the sweet smell of success!

[[INTRODUCTION]]
The relationship between air pollution and criminal behavior has long been a topic of intense debate, sparking more interest than a wildfire at a fireworks factory. While the effects of air pollution on public health and environmental degradation have been well-documented, its connection to criminal activities, particularly arson, remains a relatively uncharted territory. As researchers, we were eager to shed some light on this burning question and spark a new conversation in the field.
It's no secret that air pollution can cloud your judgment, but who would have thought it could also fuel criminal activity? The smokescreen surrounding this issue has left many scratching their heads, but we are determined to clear the air and bring these findings to light.
Our study aims to bridge the gap between environmental science and criminology by examining the correlation between air pollution levels in Ithaca and incidents of arson across the United States. By analyzing data from the Environmental Protection Agency and the FBI, we aimed to ignite a new understanding of the potential links between air quality and criminal behavior.
Some may argue that this investigation is like chasing smoke, but we were determined to not let this topic go up in flames. In doing so, we hope to lay the groundwork for future research and policy initiatives that can help extinguish the root causes of both environmental hazards and criminal activities.
So, without further ado, let's set the stage for this scorching investigation and see what sparks fly along the way!

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To investigate the sizzling relationship between air pollution in Ithaca and arson in the United States, our research team utilized a smorgasbord of data sources, including the Environmental Protection Agency's Air Quality System and the FBI's Uniform Crime Reporting Program. We wanted to leave no stone unturned in our quest to illuminate this fiery correlation, so we cast our net wide, like a fisherman trying to catch a criminal mastermind who specializes in pyromania.

First, we gathered air quality data from various monitoring stations across Ithaca, taking care to account for factors such as particulate matter, ozone levels, and other pollutants that might be lurking in the atmosphere like a mischievous fire sprite. This data was then compared to the incidence of arson reported to the FBI, ensuring that we were not merely blowing smoke when analyzing the statistical connection between air pollution and incendiary criminal behavior.

To account for potential confounding variables such as population density, economic indicators, and even the local weather patterns, we employed a sophisticated statistical technique that would make even the most seasoned data analyst do a double take. Our approach was as rigorous as a firefighter combating a five-alarm blaze, as we sought to tease out the true association between air pollution in Ithaca and the propensity for arson across the United States.

In addition to our quantitative analysis, we also conducted qualitative interviews with local residents and law enforcement officials in Ithaca, aiming to gather firsthand insights into the on-the-ground perceptions of air quality and its potential influence on fire-related criminal incidents. This allowed us to capture the nuanced experiences and perspectives of individuals who live and work in the area, providing a more holistic understanding of the interplay between environmental factors and criminal behavior.

Of course, no research endeavor is complete without a healthy dose of skepticism and self-reflection. In that spirit, we continually evaluated and refined our methodology, ensuring that our findings were as sturdy as a fire-resistant building. Our goal was to avoid any smoke and mirrors and present a robust, transparent analysis that would stand up to scrutiny like a firefighter's bunker gear in the heat of battle.

It's important to note that while our findings highlight a compelling correlation between air pollution in Ithaca and arson in the United States, our research is just the spark that ignites a larger conversation. It's like we've opened the flue on a fireplace of potential research, inviting others to stoke the flames of inquiry and delve deeper into the underlying mechanisms at play.

In summary, our methodology was designed to be as thorough as a fire safety inspection, employing a combination of quantitative data analysis and qualitative insights to shed light on this burning question. With this approach, we hope to fuel further exploration and understanding of the complex nexus between environmental conditions and criminal behavior, illuminating a path forward that is both illuminating and transformative. And remember, when it comes to research, it's always better to be safe than sorry - much like checking the batteries in your smoke detector!


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

Please make up the results section of an academic research paper presenting the findings of the connection between Air pollution in Ithaca and Arson in United States. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

Your research team collected data from all across the internet, but mostly just used information from Environmental Protection Agency and FBI Criminal Justice Information Services .

For the time period 1990 to 2022, you found a correlation 0.8592484, r-squared of 0.7383079, and p < 0.01.

One figure will be included. The figure (Fig. 1) is a scatterplot showing the strong correlation between the two variables. You don't need to specify where; I will add the figure.

Here is the title and abstract of the paper:
[[TITLE]]
"Clearing the Air: An Examination of the Relationship Between Air Pollution in Ithaca and Arson in the United States"

[[ABSTRACT]]
The correlation between air pollution in Ithaca and arson in the United States is a burning issue that has ignited the curiosity of researchers. In this study, we set out to investigate this fiery connection, using data from the Environmental Protection Agency and the FBI Criminal Justice Information Services. Our findings set the stage for a compelling argument that would warm the hearts of both environmental and criminology enthusiasts.

Our analysis revealed a correlation coefficient of 0.8592484 and a statistically significant p-value of less than 0.01, spanning over the years from 1990 to 2022. It seems that the air quality in Ithaca has been igniting more than just the passion for clean energy initiatives.

As we delved into this incendiary relationship, our research kindled an unexpected revelation: the presence of air pollution in Ithaca is positively associated with the incidence of arson in the United States. This findings sparks further exploration into the complex dynamics between environmental factors and criminal behavior, adding fuel to the fire of interdisciplinary research.

In conclusion, our study demonstrates the need for a comprehensive approach to addressing the hot-button issues of air pollution and arson. It is time to fan the flames of further research and policy initiatives, so that we can collectively extinguish the root causes of both the environmental hazard and the criminal activity. After all, solving these pressing problems is nothing to sniff at - unless it's the sweet smell of success!

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
The relationship between air pollution and criminal behavior has long been a topic of intense debate, sparking more interest than a wildfire at a fireworks factory. While the effects of air pollution on public health and environmental degradation have been well-documented, its connection to criminal activities, particularly arson, remains a relatively uncharted territory. As researchers, we were eager to shed some light on this burning question and spark a new conversation in the field.
It's no secret that air pollution can cloud your judgment, but who would have thought it could also fuel criminal activity? The smokescreen surrounding this issue has left many scratching their heads, but we are determined to clear the air and bring these findings to light.
Our study aims to bridge the gap between environmental science and criminology by examining the correlation between air pollution levels in Ithaca and incidents of arson across the United States. By analyzing data from the Environmental Protection Agency and the FBI, we aimed to ignite a new understanding of the potential links between air quality and criminal behavior.
Some may argue that this investigation is like chasing smoke, but we were determined to not let this topic go up in flames. In doing so, we hope to lay the groundwork for future research and policy initiatives that can help extinguish the root causes of both environmental hazards and criminal activities.
So, without further ado, let's set the stage for this scorching investigation and see what sparks fly along the way!

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The statistical analysis of the relationship between air pollution in Ithaca and arson in the United States yielded a striking correlation coefficient of 0.8592484. This robust correlation indicates a strong positive association between air pollution levels in Ithaca and the incidence of arson across the United States. It seems that the air in Ithaca has been fanning the flames of criminal activity across the nation.

Fig. 1 illustrates the strong positive correlation between air pollution in Ithaca and arson in the United States, emphasizing the incendiary nature of this relationship.

Now to address the elephant in the room – or should I say, the arsonist in the room? It seems that the old adage "where there's smoke, there's fire" holds true in the case of our findings, as the presence of air pollution in Ithaca is indeed associated with a higher incidence of arson.

The r-squared value of 0.7383079 further reinforces the solidity of this relationship, indicating that approximately 73.83% of the variability in arson rates across the United States can be explained by variations in air pollution levels in Ithaca. This finding kindles a greater understanding of the impact of local environmental conditions on broader criminal behavior trends.

In the words of a true dad, "I asked the arsonist why he set fires, and he said it was all for the 'a-fume-ment.' Well, our research certainly adds fuel to that argument!"

Furthermore, the p-value of less than 0.01 signifies the statistical significance of our results, providing a sturdy foundation for the argument that the relationship between air pollution in Ithaca and arson in the United States is no mere brushfire of an association.

These findings contribute to a burgeoning literature on the intersection of environmental factors and criminal behavior, igniting an urgent call for interdisciplinary research and policy initiatives to address these flaming issues. It is time to stoke the flames of progress and blaze a trail towards a clearer understanding of the complex dynamics at play.

In conclusion, our research sets the stage for a scorching debate on the implications of air quality for crime rates, warming the hearts of both environmental and criminology enthusiasts. After all, in the words of a classic dad, "It's time to clear the air and put these fiery issues to rest – before they spark any more trouble!"


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

Please make up the discussion section of an academic research paper presenting the findings of the connection between Air pollution in Ithaca and Arson in United States. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

Limit your response to 500 tokens.

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

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

[[TITLE]]
"Clearing the Air: An Examination of the Relationship Between Air Pollution in Ithaca and Arson in the United States"

[[ABSTRACT]]
The correlation between air pollution in Ithaca and arson in the United States is a burning issue that has ignited the curiosity of researchers. In this study, we set out to investigate this fiery connection, using data from the Environmental Protection Agency and the FBI Criminal Justice Information Services. Our findings set the stage for a compelling argument that would warm the hearts of both environmental and criminology enthusiasts.

Our analysis revealed a correlation coefficient of 0.8592484 and a statistically significant p-value of less than 0.01, spanning over the years from 1990 to 2022. It seems that the air quality in Ithaca has been igniting more than just the passion for clean energy initiatives.

As we delved into this incendiary relationship, our research kindled an unexpected revelation: the presence of air pollution in Ithaca is positively associated with the incidence of arson in the United States. This findings sparks further exploration into the complex dynamics between environmental factors and criminal behavior, adding fuel to the fire of interdisciplinary research.

In conclusion, our study demonstrates the need for a comprehensive approach to addressing the hot-button issues of air pollution and arson. It is time to fan the flames of further research and policy initiatives, so that we can collectively extinguish the root causes of both the environmental hazard and the criminal activity. After all, solving these pressing problems is nothing to sniff at - unless it's the sweet smell of success!

[[LITERATURE REVIEW]]
Previous research has explored the multifaceted impact of air pollution on public health, environmental quality, and even economic productivity. Smith et al. (2015) uncovered the detrimental effects of air pollution on respiratory health, while Doe (2018) detailed the widespread ecological harm caused by pollutants in the atmosphere. Jones (2020) delved into the socioeconomic repercussions of poor air quality, shedding light on the far-reaching consequences of environmental degradation.
But what about its connection to criminal activities such as arson? It's like air pollution is playing with fire, quite literally!
In "Air Pollution and Crimes," the authors find that increases in air pollution levels are associated with a rise in property crimes, but the specific link to arson remains largely unexplored. Similarly, "Criminal Minds: Environmental Edition" highlights the complex interplay between environmental factors and criminal behavior, opening the door for further investigation into the fiery relationship between air pollution and arson.
Turning to fictional works, "Smoke and Ashes: A Crime Novel" and "The Arsonist's Handbook" may not contribute directly to empirical research, but their titles certainly stoke the flames of curiosity about the intersection of air quality and criminal mischief.
Now, who would have thought that the meme "This is fine," featuring a dog calmly sipping coffee in a completely engulfed room, would resonate so deeply with our findings? Maybe the dog isn't so relaxed about the situation after all - perhaps it's just a coping mechanism for the overwhelming relationship between air pollution and arson!
As we ignite this discussion and fan the flames of curiosity, it becomes increasingly clear that the fiery connection between air pollution in Ithaca and arson in the United States is no laughing matter... well, maybe just a little bit.

[[RESULTS]]
The statistical analysis of the relationship between air pollution in Ithaca and arson in the United States yielded a striking correlation coefficient of 0.8592484. This robust correlation indicates a strong positive association between air pollution levels in Ithaca and the incidence of arson across the United States. It seems that the air in Ithaca has been fanning the flames of criminal activity across the nation.
Fig. 1 illustrates the strong positive correlation between air pollution in Ithaca and arson in the United States, emphasizing the incendiary nature of this relationship.
Now to address the elephant in the room – or should I say, the arsonist in the room? It seems that the old adage "where there's smoke, there's fire" holds true in the case of our findings, as the presence of air pollution in Ithaca is indeed associated with a higher incidence of arson.
The r-squared value of 0.7383079 further reinforces the solidity of this relationship, indicating that approximately 73.83% of the variability in arson rates across the United States can be explained by variations in air pollution levels in Ithaca. This finding kindles a greater understanding of the impact of local environmental conditions on broader criminal behavior trends.
In the words of a true dad, "I asked the arsonist why he set fires, and he said it was all for the 'a-fume-ment.' Well, our research certainly adds fuel to that argument!"
Furthermore, the p-value of less than 0.01 signifies the statistical significance of our results, providing a sturdy foundation for the argument that the relationship between air pollution in Ithaca and arson in the United States is no mere brushfire of an association.
These findings contribute to a burgeoning literature on the intersection of environmental factors and criminal behavior, igniting an urgent call for interdisciplinary research and policy initiatives to address these flaming issues. It is time to stoke the flames of progress and blaze a trail towards a clearer understanding of the complex dynamics at play.
In conclusion, our research sets the stage for a scorching debate on the implications of air quality for crime rates, warming the hearts of both environmental and criminology enthusiasts. After all, in the words of a classic dad, "It's time to clear the air and put these fiery issues to rest – before they spark any more trouble!"

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The scorching results of our study have illuminated a compelling relationship between air pollution in Ithaca and the incidence of arson across the United States. As we fan the flames of discussion, it becomes increasingly clear that the hot-headed nature of criminal behavior may be influenced by the fiery presence of air pollutants. It seems that cleaning up the environment could also extinguish some criminal activity - talk about killing two birds with one 'Clean Air Act'!

Our findings align with previous research that has highlighted the multifaceted impact of air pollution on various aspects of society. Just as Smith et al. (2015) uncovered the detrimental effects of air pollution on respiratory health, our study has uncovered the incendiary effects of poor air quality on criminal behavior. This certainly adds a new meaning to the phrase "playing with fire!"

Moreover, the strong positive correlation coefficient and statistically significant p-value in our analysis provide a solid foundation for the argument that there is indeed a hot relationship between air pollution in Ithaca and arson in the United States. It's like the environmental quality in Ithaca is sending smoke signals to potential arsonists across the nation!

Returning to the literature review, the meme "This is fine" has taken on a whole new level of relevance with our findings. Perhaps the dog's calm demeanor amidst the engulfing flames is the perfect metaphor for the stark reality that our research has unearthed – that the relationship between air pollution and arson is indeed a burning issue that demands attention. After all, in the immortal words of a true dad, "Looks like the dog's finally out of the house, but our findings are still on fire!"

We can't ignore the fact that our results contribute significantly to the intersection of environmental factors and criminal behavior. In the words of the timeless dad joke, "Who knew that clearing the air in Ithaca could potentially put these fiery issues to rest?" Our study emphasizes the need for further interdisciplinary research and policy initiatives to address the smoldering issues of air pollution and arson. It's time to stoke the flames of progress and ignite a concerted effort to extinguish the root causes of both environmental hazards and criminal activity. After all, as every dad knows, solving these hot-button issues is nothing to take lightly - except for the occasional pun!


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

Please make up a short conclusion of an academic research paper presenting the findings of the connection between Air pollution in Ithaca and Arson in United States. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

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

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
"Clearing the Air: An Examination of the Relationship Between Air Pollution in Ithaca and Arson in the United States"

[[ABSTRACT]]
The correlation between air pollution in Ithaca and arson in the United States is a burning issue that has ignited the curiosity of researchers. In this study, we set out to investigate this fiery connection, using data from the Environmental Protection Agency and the FBI Criminal Justice Information Services. Our findings set the stage for a compelling argument that would warm the hearts of both environmental and criminology enthusiasts.

Our analysis revealed a correlation coefficient of 0.8592484 and a statistically significant p-value of less than 0.01, spanning over the years from 1990 to 2022. It seems that the air quality in Ithaca has been igniting more than just the passion for clean energy initiatives.

As we delved into this incendiary relationship, our research kindled an unexpected revelation: the presence of air pollution in Ithaca is positively associated with the incidence of arson in the United States. This findings sparks further exploration into the complex dynamics between environmental factors and criminal behavior, adding fuel to the fire of interdisciplinary research.

In conclusion, our study demonstrates the need for a comprehensive approach to addressing the hot-button issues of air pollution and arson. It is time to fan the flames of further research and policy initiatives, so that we can collectively extinguish the root causes of both the environmental hazard and the criminal activity. After all, solving these pressing problems is nothing to sniff at - unless it's the sweet smell of success!

[[INTRDUCTION]]
The relationship between air pollution and criminal behavior has long been a topic of intense debate, sparking more interest than a wildfire at a fireworks factory. While the effects of air pollution on public health and environmental degradation have been well-documented, its connection to criminal activities, particularly arson, remains a relatively uncharted territory. As researchers, we were eager to shed some light on this burning question and spark a new conversation in the field.
It's no secret that air pollution can cloud your judgment, but who would have thought it could also fuel criminal activity? The smokescreen surrounding this issue has left many scratching their heads, but we are determined to clear the air and bring these findings to light.
Our study aims to bridge the gap between environmental science and criminology by examining the correlation between air pollution levels in Ithaca and incidents of arson across the United States. By analyzing data from the Environmental Protection Agency and the FBI, we aimed to ignite a new understanding of the potential links between air quality and criminal behavior.
Some may argue that this investigation is like chasing smoke, but we were determined to not let this topic go up in flames. In doing so, we hope to lay the groundwork for future research and policy initiatives that can help extinguish the root causes of both environmental hazards and criminal activities.
So, without further ado, let's set the stage for this scorching investigation and see what sparks fly along the way!

[[RESULTS]]
The statistical analysis of the relationship between air pollution in Ithaca and arson in the United States yielded a striking correlation coefficient of 0.8592484. This robust correlation indicates a strong positive association between air pollution levels in Ithaca and the incidence of arson across the United States. It seems that the air in Ithaca has been fanning the flames of criminal activity across the nation.
Fig. 1 illustrates the strong positive correlation between air pollution in Ithaca and arson in the United States, emphasizing the incendiary nature of this relationship.
Now to address the elephant in the room – or should I say, the arsonist in the room? It seems that the old adage "where there's smoke, there's fire" holds true in the case of our findings, as the presence of air pollution in Ithaca is indeed associated with a higher incidence of arson.
The r-squared value of 0.7383079 further reinforces the solidity of this relationship, indicating that approximately 73.83% of the variability in arson rates across the United States can be explained by variations in air pollution levels in Ithaca. This finding kindles a greater understanding of the impact of local environmental conditions on broader criminal behavior trends.
In the words of a true dad, "I asked the arsonist why he set fires, and he said it was all for the 'a-fume-ment.' Well, our research certainly adds fuel to that argument!"
Furthermore, the p-value of less than 0.01 signifies the statistical significance of our results, providing a sturdy foundation for the argument that the relationship between air pollution in Ithaca and arson in the United States is no mere brushfire of an association.
These findings contribute to a burgeoning literature on the intersection of environmental factors and criminal behavior, igniting an urgent call for interdisciplinary research and policy initiatives to address these flaming issues. It is time to stoke the flames of progress and blaze a trail towards a clearer understanding of the complex dynamics at play.
In conclusion, our research sets the stage for a scorching debate on the implications of air quality for crime rates, warming the hearts of both environmental and criminology enthusiasts. After all, in the words of a classic dad, "It's time to clear the air and put these fiery issues to rest – before they spark any more trouble!"

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our research highlights the fiery connection between air pollution in Ithaca and arson in the United States, shedding light on a scorching new avenue in interdisciplinary studies. Our findings add fuel to the fire of research in environmental criminology, sparking interest in understanding the smoldering relationship between environmental factors and criminal behavior. It turns out that the old saying "where there's smoke, there's fire" holds true not only in the literal sense but also in the statistical landscape of our findings.

As we close this burning chapter, let's not forget the important role of firefighters in combating arson. You might say our research is like a fire department - putting out the hot theories and extinguishing the burning questions in the field.

With the flames of curiosity stoked and the inferno of knowledge burning bright, we confidently assert that no more research is needed in this area. After all, we've already set the research world ablaze with our findings!


Model: gpt-3.5-turbo-1106
System prompt: You provide fictional names of academic journals. You say nothing else, and you do not chat with the user.
User prompt: Please provide the name of a funny but plausible sounding research, scientific, or academic journal that would publish a paper entited Clearing the Air: An Examination of the Relationship Between Air Pollution in Ithaca and Arson in the United States. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Ecological Quirkiness


Model: gpt-3.5-turbo-1106
System prompt: You provide fictional names of nonprofit research organizations and associations. You say nothing else, and you do not chat with the user.
User prompt: Please provide the name of a funny but plausible sounding nonprofit, academic, or scientific association or organization that would sponsor research that resulted in a paper entited Clearing the Air: An Examination of the Relationship Between Air Pollution in Ithaca and Arson in the United States. Respond only with the name of a fictional organization.

ChatGPT:

The Society for Quirky Research and Unconventional 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 Clearing the Air: An Examination of the Relationship Between Air Pollution in Ithaca and Arson in the United States with an abstract of The correlation between air pollution in Ithaca and arson in the United States is a burning issue that has ignited the curiosity of researchers. In this study, we set out to investigate this fiery connection, using data from the Environmental Protection Agency and the FBI Criminal Justice Information Services. Our findings set the stage for a compelling argument that would warm the hearts of both environmental and criminology enthusiasts.
Our analysis revealed a correlation coefficient of 0.8592484 and a statistically significant p-value of less than 0.01, spanning over the years from 1990 to 2022. It seems that the air quality in Ithaca has been igniting more than just the passion for clean energy initiatives.
As we delved into this incendiary relationship, our research kindled an unexpected revelation: the presence of air pollution in Ithaca is positively associated with the incidence of arson in the United States. This findings sparks further exploration into the complex dynamics between environmental factors and criminal behavior, adding fuel to the fire of interdisciplinary research.
In conclusion, our study demonstrates the need for a comprehensive approach to addressing the hot-button issues of air pollution and arson. It is time to fan the flames of further research and policy initiatives, so that we can collectively extinguish the root causes of both the environmental hazard and the criminal activity. After all, solving these pressing problems is nothing to sniff at - unless it's the sweet smell of success!

ChatGPT:

air pollution, arson, Ithaca, United States, correlation, Environmental Protection Agency, FBI Criminal Justice Information Services, criminology, correlation coefficient, p-value, 1990-2022, environmental factors, criminal behavior, interdisciplinary research, policy initiatives, root causes

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

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

Correlation r = 0.8592484 (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.7383079 (Coefficient of determination)
This means 73.8% of the change in the one variable (i.e., Arson in United States) is predictable based on the change in the other (i.e., Air pollution in Ithaca) over the 33 years from 1990 through 2022.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 1.5E-10. 0.0000000001548249543410184000
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.86 in 1.5E-8% of random cases. Said differently, if you correlated 6,458,907,120 random variables You don't actually need 6 billion 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 32 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 32 because we have two variables measured over a period of 33 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.73, 0.93 ] 95% correlation confidence interval (using the Fisher z-transformation)
The confidence interval is an estimate the range of the value of the correlation coefficient, using the correlation itself as an input. The values are meant to be the low and high end of the correlation coefficient with 95% confidence.

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


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

Still, sometimes one of the variables has more years of data available than the other. This page only shows the overlapping years. To see all the years, click on "See what else correlates with..." link above.
199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022
Air pollution in Ithaca (Bad air quality days)0.2212640.2734810.1456040.2945210.2909840.2602230.2341460.2361110.2777780.2586210.1465520.2256270.2299170.1863350.1420450.2148760.1149430.1516850.08587260.0547550.1362320.06920420.1285710.06837610.05382440.05413110.08310250.03966010.07777780.01966290.01373630.07222220.033241
Arson in United States (Arson rate)41.74140.837.339.636.734.632.629.728.824.727.726.82523.623.124.422.621.619.518.117.517.614.914.513.714.113.2121113.98.911.6




Why this works

  1. Data dredging: I have 25,237 variables in my database. I compare all these variables against each other to find ones that randomly match up. That's 636,906,169 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.221264,0.273481,0.145604,0.294521,0.290984,0.260223,0.234146,0.236111,0.277778,0.258621,0.146552,0.225627,0.229917,0.186335,0.142045,0.214876,0.114943,0.151685,0.0858726,0.054755,0.136232,0.0692042,0.128571,0.0683761,0.0538244,0.0541311,0.0831025,0.0396601,0.0777778,0.0196629,0.0137363,0.0722222,0.033241,])
array_2 = np.array([41.7,41,40.8,37.3,39.6,36.7,34.6,32.6,29.7,28.8,24.7,27.7,26.8,25,23.6,23.1,24.4,22.6,21.6,19.5,18.1,17.5,17.6,14.9,14.5,13.7,14.1,13.2,12,11,13.9,8.9,11.6,])
array_1_name = "Air pollution in Ithaca"
array_2_name = "Arson in United States"

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

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



Reuseable content

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

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

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

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

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

Download images for these variables:


View another random correlation

How fun was this correlation?

Your rating is stellar!


Correlation ID: 5649 · Black Variable ID: 22195 · Red Variable ID: 20038
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0