about · email me · subscribe
Spurious correlation #4,745 · 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 Atlantic City, New Jersey and the second variable is Motor vehicle thefts in New Jersey.  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 air quality improved, the previously smog-camouflaged vehicles became more visible, making it harder for thieves to go unnoticed. With less pollution, the cars were no longer able to make their great escape!

Model: dalle-3
Prompt: Image Generation Prompt: Visualize a futuristic depiction of Atlantic City where vibrant-colored cars are parked outside the illuminated casinos. The once evident gray smog has lifted, revealing the clear, pollution-free environment. In this scene, the absence of thick pollution has brought about a change, making it more difficult for potential thieves to utilize the cover of smog for their escape plan. The cars now stand exposed against the backdrop of the futuristic city, emphasizing the transformation of the environment and its impact on the familiar setting. 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 Atlantic City, New Jersey and Motor vehicle thefts in New Jersey. 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: Low poly Parallax art Hyper-realistic Futuristic Surrealism
ChatGPT: Futuristic

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 Atlantic City, New Jersey and Motor vehicle thefts in New Jersey, in the following situation: As air quality improved, the previously smog-camouflaged vehicles became more visible, making it harder for thieves to go unnoticed. With less pollution, the cars were no longer able to make their great escape!. Keep the description simple.
ChatGPT: The gray smog that once covered Atlantic City has lifted, revealing a row of vibrant-colored cars parked outside the casinos. The clear air now allows passersby to see these cars more clearly, making it harder for thieves to go unnoticed. In the absence of thick pollution, the cars no longer have the cover they once did, thwarting their potential escape plan.

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: [ Futuristic ] and depicting this scene: The gray smog that once covered Atlantic City has lifted, revealing a row of vibrant-colored cars parked outside the casinos. The clear air now allows passersby to see these cars more clearly, making it harder for thieves to go unnoticed. In the absence of thick pollution, the cars no longer have the cover they once did, thwarting their potential escape plan. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Image Generation Prompt: Visualize a futuristic depiction of Atlantic City where vibrant-colored cars are parked outside the illuminated casinos. The once evident gray smog has lifted, revealing the clear, pollution-free environment. In this scene, the absence of thick pollution has brought about a change, making it more difficult for potential thieves to utilize the cover of smog for their escape plan. The cars now stand exposed against the backdrop of the futuristic city, emphasizing the transformation of the environment and its impact on the familiar setting.

*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 Atlantic City, New Jersey caused Motor vehicle thefts in New Jersey to decrease.

AI academic paper

(Because p < 0.01)
Breathing Soot Leads to Theft: The Neat Atlantic City Air Pollution and Motor Vehicle Theft Beat

Journal of Environmental Criminology and Air Quality

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 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 Atlantic City, New Jersey and Motor vehicle thefts in New Jersey. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

Rhyme words in the title.

Your research team used data from Environmental Protection Agency and FBI Criminal Justice Information Services to assess this nagging question. You found a correlation coefficient of 0.8020838 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]]
Breathing Soot Leads to Theft: The Neat Atlantic City Air Pollution and Motor Vehicle Theft Beat

[[ABSTRACT]]
This study delves into the relationship between air pollution levels in Atlantic City, New Jersey and motor vehicle thefts in the greater New Jersey area. Through an extensive analysis of data from the Environmental Protection Agency and the FBI Criminal Justice Information Services, we uncovered a statistically significant correlation between the two variables. The correlation coefficient of 0.8020838 with a p-value of less than 0.01 for the time period spanning from 1985 to 2022 provides compelling evidence of the association. This connection is not to be sniffed at, as it raises questions about whether smog-affected individuals may turn to hotwiring as a coping mechanism. This research sheds light on the unexpected consequences of inhaling polluted air and its potential impact on criminal behavior. Whether you're a car enthusiast or an environmental advocate, this study will leave you breathless.




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

Please make up the introduction section of an academic research paper presenting the findings of the connection between Air pollution in Atlantic City, New Jersey and Motor vehicle thefts in New Jersey. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, 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]]
Breathing Soot Leads to Theft: The Neat Atlantic City Air Pollution and Motor Vehicle Theft Beat

[[ABSTRACT]]
This study delves into the relationship between air pollution levels in Atlantic City, New Jersey and motor vehicle thefts in the greater New Jersey area. Through an extensive analysis of data from the Environmental Protection Agency and the FBI Criminal Justice Information Services, we uncovered a statistically significant correlation between the two variables. The correlation coefficient of 0.8020838 with a p-value of less than 0.01 for the time period spanning from 1985 to 2022 provides compelling evidence of the association. This connection is not to be sniffed at, as it raises questions about whether smog-affected individuals may turn to hotwiring as a coping mechanism. This research sheds light on the unexpected consequences of inhaling polluted air and its potential impact on criminal behavior. Whether you're a car enthusiast or an environmental advocate, this study will leave you breathless.



-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
Introduction

The relationship between air pollution and its impact on human health has been a topic of significant interest in recent years. From respiratory illnesses to cardiovascular diseases, the effects of breathing in polluted air have been well-documented. However, in a thought-provoking twist, our research takes a detour from the beaten path to explore the potential connection between air pollution and motor vehicle thefts.

In particular, we focus our attention on the beguilingly beautiful Atlantic City, New Jersey. Known for its bustling casinos, boardwalks, and – let's not forget – its undeniable charm, Atlantic City also carries a hidden secret in its air – namely, soot, smog, and other air pollutants. Could the not-so-neat air in this picturesque city be contributing to a surge in motor vehicle thefts across New Jersey?

This question lingers in the air, much like the faint scent of exhaust fumes. To unearth the answer, we dive into the realm of data analysis and statistical scrutiny, seeking to unravel the mysterious connection between the murky skies of Atlantic City and the pilfered wheels of New Jersey.

With an air of skepticism but a tireless pursuit of knowledge, we set out on this scholarly expedition. As we venture forth, we invite you to join us in this intellectual journey, one that's sure to leave you pondering the unexpected intersections of air quality, criminal behavior, and the ever-turning wheels of fate. After all, who would have thought that the fumes we inhale might inspire some to embark on a vehicular escapade of their own? It's a chain of events that's both alarming and amusing, much like an ill-timed car alarm in the dead of night. So, buckle up, dear readers, and prepare to be whisked away into the captivating nexus of neat air pollution and the motor vehicle theft beat.


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

Please make up a literature review section of an academic research paper presenting the findings of the connection between Air pollution in Atlantic City, New Jersey and Motor vehicle thefts in New Jersey. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

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

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

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

Here is the title and abstract of the paper:
[[TITLE]]
Breathing Soot Leads to Theft: The Neat Atlantic City Air Pollution and Motor Vehicle Theft Beat

[[ABSTRACT]]
This study delves into the relationship between air pollution levels in Atlantic City, New Jersey and motor vehicle thefts in the greater New Jersey area. Through an extensive analysis of data from the Environmental Protection Agency and the FBI Criminal Justice Information Services, we uncovered a statistically significant correlation between the two variables. The correlation coefficient of 0.8020838 with a p-value of less than 0.01 for the time period spanning from 1985 to 2022 provides compelling evidence of the association. This connection is not to be sniffed at, as it raises questions about whether smog-affected individuals may turn to hotwiring as a coping mechanism. This research sheds light on the unexpected consequences of inhaling polluted air and its potential impact on criminal behavior. Whether you're a car enthusiast or an environmental advocate, this study will leave you breathless.



-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
Introduction
The relationship between air pollution and its impact on human health has been a topic of significant interest in recent years. From respiratory illnesses to cardiovascular diseases, the effects of breathing in polluted air have been well-documented. However, in a thought-provoking twist, our research takes a detour from the beaten path to explore the potential connection between air pollution and motor vehicle thefts.
In particular, we focus our attention on the beguilingly beautiful Atlantic City, New Jersey. Known for its bustling casinos, boardwalks, and – let's not forget – its undeniable charm, Atlantic City also carries a hidden secret in its air – namely, soot, smog, and other air pollutants. Could the not-so-neat air in this picturesque city be contributing to a surge in motor vehicle thefts across New Jersey?
This question lingers in the air, much like the faint scent of exhaust fumes. To unearth the answer, we dive into the realm of data analysis and statistical scrutiny, seeking to unravel the mysterious connection between the murky skies of Atlantic City and the pilfered wheels of New Jersey.
With an air of skepticism but a tireless pursuit of knowledge, we set out on this scholarly expedition. As we venture forth, we invite you to join us in this intellectual journey, one that's sure to leave you pondering the unexpected intersections of air quality, criminal behavior, and the ever-turning wheels of fate. After all, who would have thought that the fumes we inhale might inspire some to embark on a vehicular escapade of their own? It's a chain of events that's both alarming and amusing, much like an ill-timed car alarm in the dead of night. So, buckle up, dear readers, and prepare to be whisked away into the captivating nexus of neat air pollution and the motor vehicle theft beat.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

The exploration of the association between air pollution and criminal behavior has captivated researchers and scholars alike. Smith et al. (2017) unraveled the intricate web of environmental factors and crime, shedding light on the potential influence of polluted air on nefarious activities. Similarly, Doe and Jones (2019) delved into the far-reaching repercussions of air quality on societal behaviors, positioning air pollution as a silent instigator of clandestine deeds.

Turning to related non-fiction works, "The Silent Killer: How Air Pollution Shapes Human Behavior" by Environmentalist et al. elucidates the subtle yet profound ways in which polluted air may sway human conduct. Meanwhile, "Toxic Tales: The Unseen Impact of Environmental Factors on Crime" by Scientist and Analyst provides a comprehensive analysis of the intertwining realms of environmental hazards and criminal acts.

On a slightly more imaginative note, works of fiction such as "Smog and the Subterfuge: A Crime Thriller Set in a Polluted City" by Novelist delve into the shadowy underbelly of carbon-infused skylines, weaving together tales of intrigue and air pollution. In a similar vein, "Haze Heist: The Art of Atmospheric Anarchy" by Author casts a whimsical yet thought-provoking lens on the unlikely relationship between foul air and felonious exploits.

Delving into the realm of animated entertainment, the classic cartoon "Captain Planet and the Planeteers" illustrates the dire consequences of environmental degradation, underscoring the potential impact of polluted air on societal ethics. Likewise, the children's show "The Magic School Bus" offers a lighthearted yet educational perspective on environmental issues, fostering an understanding of the multifaceted effects of air pollution on human behaviors.

The above studies and literary works provide a rich tapestry of perspectives on the interplay between air pollution and criminal activities. However, as we dig deeper into the annals of research, we aim to unravel the enigmatic connection between the soot-laden skies of Atlantic City and the purloined wheels of New Jersey.


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

Please make up the methodology section of an academic research paper presenting the findings of the connection between Air pollution in Atlantic City, New Jersey and Motor vehicle thefts in New Jersey. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Your research team collected data from all across the internet, but mostly just used information from Environmental Protection Agency and FBI Criminal Justice Information Services . 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]]
Breathing Soot Leads to Theft: The Neat Atlantic City Air Pollution and Motor Vehicle Theft Beat

[[ABSTRACT]]
This study delves into the relationship between air pollution levels in Atlantic City, New Jersey and motor vehicle thefts in the greater New Jersey area. Through an extensive analysis of data from the Environmental Protection Agency and the FBI Criminal Justice Information Services, we uncovered a statistically significant correlation between the two variables. The correlation coefficient of 0.8020838 with a p-value of less than 0.01 for the time period spanning from 1985 to 2022 provides compelling evidence of the association. This connection is not to be sniffed at, as it raises questions about whether smog-affected individuals may turn to hotwiring as a coping mechanism. This research sheds light on the unexpected consequences of inhaling polluted air and its potential impact on criminal behavior. Whether you're a car enthusiast or an environmental advocate, this study will leave you breathless.



[[INTRODUCTION]]
Introduction
The relationship between air pollution and its impact on human health has been a topic of significant interest in recent years. From respiratory illnesses to cardiovascular diseases, the effects of breathing in polluted air have been well-documented. However, in a thought-provoking twist, our research takes a detour from the beaten path to explore the potential connection between air pollution and motor vehicle thefts.
In particular, we focus our attention on the beguilingly beautiful Atlantic City, New Jersey. Known for its bustling casinos, boardwalks, and – let's not forget – its undeniable charm, Atlantic City also carries a hidden secret in its air – namely, soot, smog, and other air pollutants. Could the not-so-neat air in this picturesque city be contributing to a surge in motor vehicle thefts across New Jersey?
This question lingers in the air, much like the faint scent of exhaust fumes. To unearth the answer, we dive into the realm of data analysis and statistical scrutiny, seeking to unravel the mysterious connection between the murky skies of Atlantic City and the pilfered wheels of New Jersey.
With an air of skepticism but a tireless pursuit of knowledge, we set out on this scholarly expedition. As we venture forth, we invite you to join us in this intellectual journey, one that's sure to leave you pondering the unexpected intersections of air quality, criminal behavior, and the ever-turning wheels of fate. After all, who would have thought that the fumes we inhale might inspire some to embark on a vehicular escapade of their own? It's a chain of events that's both alarming and amusing, much like an ill-timed car alarm in the dead of night. So, buckle up, dear readers, and prepare to be whisked away into the captivating nexus of neat air pollution and the motor vehicle theft beat.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

METHODOLOGY

Our methodology employed a multifaceted approach aimed at untangling the complex web of factors linking air pollution levels in Atlantic City, New Jersey, to the incidence of motor vehicle thefts in the broader New Jersey area. We meticulously sourced and scrutinized data from various reputable sources, with a penchant for online repositories and databases, including the Environmental Protection Agency (EPA) and the FBI Criminal Justice Information Services. The data collected spanned an extensive temporal range from 1985 to 2022, providing a comprehensive canvas on which to paint our analytical masterpiece.

To initiate the data collection process, we navigated the labyrinthine corridors of cyberspace, channeling our inner cyber-sleuths in a quest for the most pertinent air quality data emanating from the misty realms of Atlantic City. We then artfully juxtaposed this information with motor vehicle theft statistics acquired from the FBI Criminal Justice Information Services, crafting a mosaic of variables that would later undergo stringent statistical scrutiny.

Our analysis proceeded with the steady hand of seasoned statisticians, who delicately massaged the data, coaxing forth nuggets of insight with the finesse of a diamond cutter. Employing advanced statistical methods such as multiple regression analysis and time-series modeling, we sought to distill the essence of our data, sieving out any extraneous noise to reveal the symphonic interplay between air pollution levels and motor vehicle thefts.

Additionally, we employed spatial analysis techniques to discern any geographical patterns or spatial correlations, adopting a cartographer's eye in our quest to chart the unseen cartography of crime amidst the veils of airborne pollution. This spatial lens allowed us to peer through the mist and discern any telltale signs of air quality-motivated misdemeanors, painting a vivid picture of criminal behavior against the hazy backdrop of atmospheric contamination.

Our methodology, though steeped in the rigors of empirical analysis, was not devoid of whimsy. As we traversed the landscape of data, we encountered numerous statistical anomalies and quirks, each bearing the distinctive imprint of an unconventional narrative. From the serendipitous alignment of variables to the delightful dance of outliers, our journey through the data was punctuated by moments of wry amusement, reminiscent of a detective stumbling upon an unexpected clue in a classic whodunit.

Thus, armed with a blend of methodological rigor and a touch of mirth, we ventured forth into the nebulous terrain of data analysis, unearthing the enigmatic ties between Atlantic City's atmospheric chicanery and the vehicular escapades that stem from it.

---


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

Please make up the results section of an academic research paper presenting the findings of the connection between Air pollution in Atlantic City, New Jersey and Motor vehicle thefts in New Jersey. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

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

For the time period 1985 to 2022, you found a correlation 0.8020838, r-squared of 0.6433384, 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]]
Breathing Soot Leads to Theft: The Neat Atlantic City Air Pollution and Motor Vehicle Theft Beat

[[ABSTRACT]]
This study delves into the relationship between air pollution levels in Atlantic City, New Jersey and motor vehicle thefts in the greater New Jersey area. Through an extensive analysis of data from the Environmental Protection Agency and the FBI Criminal Justice Information Services, we uncovered a statistically significant correlation between the two variables. The correlation coefficient of 0.8020838 with a p-value of less than 0.01 for the time period spanning from 1985 to 2022 provides compelling evidence of the association. This connection is not to be sniffed at, as it raises questions about whether smog-affected individuals may turn to hotwiring as a coping mechanism. This research sheds light on the unexpected consequences of inhaling polluted air and its potential impact on criminal behavior. Whether you're a car enthusiast or an environmental advocate, this study will leave you breathless.



-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
Introduction
The relationship between air pollution and its impact on human health has been a topic of significant interest in recent years. From respiratory illnesses to cardiovascular diseases, the effects of breathing in polluted air have been well-documented. However, in a thought-provoking twist, our research takes a detour from the beaten path to explore the potential connection between air pollution and motor vehicle thefts.
In particular, we focus our attention on the beguilingly beautiful Atlantic City, New Jersey. Known for its bustling casinos, boardwalks, and – let's not forget – its undeniable charm, Atlantic City also carries a hidden secret in its air – namely, soot, smog, and other air pollutants. Could the not-so-neat air in this picturesque city be contributing to a surge in motor vehicle thefts across New Jersey?
This question lingers in the air, much like the faint scent of exhaust fumes. To unearth the answer, we dive into the realm of data analysis and statistical scrutiny, seeking to unravel the mysterious connection between the murky skies of Atlantic City and the pilfered wheels of New Jersey.
With an air of skepticism but a tireless pursuit of knowledge, we set out on this scholarly expedition. As we venture forth, we invite you to join us in this intellectual journey, one that's sure to leave you pondering the unexpected intersections of air quality, criminal behavior, and the ever-turning wheels of fate. After all, who would have thought that the fumes we inhale might inspire some to embark on a vehicular escapade of their own? It's a chain of events that's both alarming and amusing, much like an ill-timed car alarm in the dead of night. So, buckle up, dear readers, and prepare to be whisked away into the captivating nexus of neat air pollution and the motor vehicle theft beat.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The analysis of the data revealed a notable correlation between air pollution levels in Atlantic City, New Jersey and motor vehicle thefts in the broader New Jersey region. For the time period examined, 1985 to 2022, the correlation coefficient was calculated to be 0.8020838, with an r-squared value of 0.6433384, and a p-value of less than 0.01. These findings bolster the hypothesis that the quality of the air we breathe may have unintended and unconventional consequences, quite literally driving individuals to engage in criminal activities such as car theft.

The figure (Fig. 1) depicts the scatterplot displaying the robust and undeniable correlation between the air pollution levels in Atlantic City and the incidence of motor vehicle thefts. The visual representation provides a compelling snapshot of the relationship between these seemingly unrelated variables. While the figure speaks for itself, it's worth noting that the connection uncovered in our analysis may not be as air-tight as one might expect.

The surprising strength of the correlation prompts us to consider the potential mechanisms through which air pollution could influence criminal behavior, specifically in the context of motor vehicle thefts. Could it be that breathing in the noxious particles from the city's skyline leads to an urge to take a joyride in a recently purloined automobile? These intriguing questions beg further investigation and ignite the imagination, sparking curiosity about the psychological and behavioral ramifications of environmental exposure.

We acknowledge that our findings raise eyebrows and even prompt a chuckle or two, as the idea of air pollution driving individuals to steal cars may seem far-fetched at first blush. However, our results underscore the intricate and often unexpected interplay between environmental factors and human actions. It's a connection that may not be immediately perceptible, but once uncovered, it leaves an indelible impression, much like a vivid and unexpected reflection on a vehicle's shiny exterior.

In light of these findings, we invite further inquiry and discussion into the potential avenues through which air quality may influence criminal conduct, albeit in a manner that's as intriguing as it is perplexing. This research offers a fresh perspective on the multifaceted impact of environmental conditions on human behavior and serves as a testament to the inextricable link between the air we breathe and the choices we make. After all, who could have anticipated that a lungful of pollutants might fuel a desire for a speedy getaway behind the wheel? It's a discovery that's as surreal as it is substantial, and one that solidifies the enthralling nexus between the neat Atlantic City air pollution and the motor vehicle theft beat.


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

Please make up the discussion section of an academic research paper presenting the findings of the connection between Air pollution in Atlantic City, New Jersey and Motor vehicle thefts in New Jersey. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, 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]]
Breathing Soot Leads to Theft: The Neat Atlantic City Air Pollution and Motor Vehicle Theft Beat

[[ABSTRACT]]
This study delves into the relationship between air pollution levels in Atlantic City, New Jersey and motor vehicle thefts in the greater New Jersey area. Through an extensive analysis of data from the Environmental Protection Agency and the FBI Criminal Justice Information Services, we uncovered a statistically significant correlation between the two variables. The correlation coefficient of 0.8020838 with a p-value of less than 0.01 for the time period spanning from 1985 to 2022 provides compelling evidence of the association. This connection is not to be sniffed at, as it raises questions about whether smog-affected individuals may turn to hotwiring as a coping mechanism. This research sheds light on the unexpected consequences of inhaling polluted air and its potential impact on criminal behavior. Whether you're a car enthusiast or an environmental advocate, this study will leave you breathless.



[[LITERATURE REVIEW]]
The exploration of the association between air pollution and criminal behavior has captivated researchers and scholars alike. Smith et al. (2017) unraveled the intricate web of environmental factors and crime, shedding light on the potential influence of polluted air on nefarious activities. Similarly, Doe and Jones (2019) delved into the far-reaching repercussions of air quality on societal behaviors, positioning air pollution as a silent instigator of clandestine deeds.
Turning to related non-fiction works, "The Silent Killer: How Air Pollution Shapes Human Behavior" by Environmentalist et al. elucidates the subtle yet profound ways in which polluted air may sway human conduct. Meanwhile, "Toxic Tales: The Unseen Impact of Environmental Factors on Crime" by Scientist and Analyst provides a comprehensive analysis of the intertwining realms of environmental hazards and criminal acts.
On a slightly more imaginative note, works of fiction such as "Smog and the Subterfuge: A Crime Thriller Set in a Polluted City" by Novelist delve into the shadowy underbelly of carbon-infused skylines, weaving together tales of intrigue and air pollution. In a similar vein, "Haze Heist: The Art of Atmospheric Anarchy" by Author casts a whimsical yet thought-provoking lens on the unlikely relationship between foul air and felonious exploits.
Delving into the realm of animated entertainment, the classic cartoon "Captain Planet and the Planeteers" illustrates the dire consequences of environmental degradation, underscoring the potential impact of polluted air on societal ethics. Likewise, the children's show "The Magic School Bus" offers a lighthearted yet educational perspective on environmental issues, fostering an understanding of the multifaceted effects of air pollution on human behaviors.
The above studies and literary works provide a rich tapestry of perspectives on the interplay between air pollution and criminal activities. However, as we dig deeper into the annals of research, we aim to unravel the enigmatic connection between the soot-laden skies of Atlantic City and the purloined wheels of New Jersey.

[[RESULTS]]
The analysis of the data revealed a notable correlation between air pollution levels in Atlantic City, New Jersey and motor vehicle thefts in the broader New Jersey region. For the time period examined, 1985 to 2022, the correlation coefficient was calculated to be 0.8020838, with an r-squared value of 0.6433384, and a p-value of less than 0.01. These findings bolster the hypothesis that the quality of the air we breathe may have unintended and unconventional consequences, quite literally driving individuals to engage in criminal activities such as car theft.
The figure (Fig. 1) depicts the scatterplot displaying the robust and undeniable correlation between the air pollution levels in Atlantic City and the incidence of motor vehicle thefts. The visual representation provides a compelling snapshot of the relationship between these seemingly unrelated variables. While the figure speaks for itself, it's worth noting that the connection uncovered in our analysis may not be as air-tight as one might expect.
The surprising strength of the correlation prompts us to consider the potential mechanisms through which air pollution could influence criminal behavior, specifically in the context of motor vehicle thefts. Could it be that breathing in the noxious particles from the city's skyline leads to an urge to take a joyride in a recently purloined automobile? These intriguing questions beg further investigation and ignite the imagination, sparking curiosity about the psychological and behavioral ramifications of environmental exposure.
We acknowledge that our findings raise eyebrows and even prompt a chuckle or two, as the idea of air pollution driving individuals to steal cars may seem far-fetched at first blush. However, our results underscore the intricate and often unexpected interplay between environmental factors and human actions. It's a connection that may not be immediately perceptible, but once uncovered, it leaves an indelible impression, much like a vivid and unexpected reflection on a vehicle's shiny exterior.
In light of these findings, we invite further inquiry and discussion into the potential avenues through which air quality may influence criminal conduct, albeit in a manner that's as intriguing as it is perplexing. This research offers a fresh perspective on the multifaceted impact of environmental conditions on human behavior and serves as a testament to the inextricable link between the air we breathe and the choices we make. After all, who could have anticipated that a lungful of pollutants might fuel a desire for a speedy getaway behind the wheel? It's a discovery that's as surreal as it is substantial, and one that solidifies the enthralling nexus between the neat Atlantic City air pollution and the motor vehicle theft beat.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The results of our study provide compelling support for the prior research that has suggested a connection between air pollution and criminal behavior. The correlation coefficient of 0.8020838, along with a p-value of less than 0.01, emphasizes the robustness of the relationship between air pollution levels in Atlantic City and motor vehicle thefts in New Jersey. While the strength of this correlation might initially seem like a whiff of suspicious air, it is consistent with the findings of Smith et al. (2017) and Doe and Jones (2019), who have previously highlighted the potential influence of polluted air on illicit activities.

Returning to our literature review, we revisit the mildly speculative yet remarkably prescient works of fiction that have explored the underbelly of carbon-infused skylines and the clandestine acts that may arise from them. The insights from "Smog and the Subterfuge: A Crime Thriller Set in a Polluted City" and "Haze Heist: The Art of Atmospheric Anarchy" are indeed intriguing, as they echo the substantial correlation revealed in our analysis. It seems that reality may indeed be stranger than fiction, and the air of suspicion surrounding the influence of air pollution on criminal behavior is not merely an airy fairy concept.

Our findings reinforce the notion that the quality of the air we breathe can have unexpected consequences. While the idea of polluted air driving individuals to steal cars may seem like a stretch at first glance, it certainly adds a breath of fresh air to the ongoing discourse on the multifaceted impacts of environmental conditions on human behavior. This connection is not to be taken lightly, as it highlights the far-reaching reach of air pollution and its potential role in influencing criminal conduct.

The visual representation of the scatterplot in Figure 1 serves as a clarion call to further explore the potential mechanisms through which air pollution could influence criminal behavior, specifically in the context of motor vehicle thefts. The view from this vantage point is quite clear: the correlation uncovered in our analysis is a significant breathrough, one with potential implications that are indeed awe-inspiring. While the concept of polluted air motivating individuals to engage in car theft might provoke a fair amount of gasps and sighs, it's a discovery that merits further study and contemplation.

As we move forward, the findings of this research beckon for a deeper understanding of the ways in which environmental factors may shape human conduct. This study highlights the unexpected nexus between the ne'er-do-wells of Atlantic City air pollution and the stolen car accomplices across New Jersey. It may just be the case that the next time you take a deep breath, you're unwittingly inhaling a desire for a speedy drive behind the wheel, steered by the invisible hand of air pollution. After all, it's a hit-and-run of sorts, perpetrated by the unseen particles lingering in the atmosphere.

In conclusion, our study not only affirms previous research but also adds a new dimension to the discussion surrounding the unforeseen impact of air pollution on criminal behavior. While the relationship between these seemingly disparate variables may be foggy at first, our findings clear the air and reveal an undeniable connection that's as stark as a neon-lit road sign. Indeed, the neat Atlantic City air pollution and the motor vehicle theft beat make for a duo that's quite the steal, shedding light on the unexpected consequences of breathing in soot-filled atmospheres.


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

Please make up a short conclusion of an academic research paper presenting the findings of the connection between Air pollution in Atlantic City, New Jersey and Motor vehicle thefts in New Jersey. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, 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]]
Breathing Soot Leads to Theft: The Neat Atlantic City Air Pollution and Motor Vehicle Theft Beat

[[ABSTRACT]]
This study delves into the relationship between air pollution levels in Atlantic City, New Jersey and motor vehicle thefts in the greater New Jersey area. Through an extensive analysis of data from the Environmental Protection Agency and the FBI Criminal Justice Information Services, we uncovered a statistically significant correlation between the two variables. The correlation coefficient of 0.8020838 with a p-value of less than 0.01 for the time period spanning from 1985 to 2022 provides compelling evidence of the association. This connection is not to be sniffed at, as it raises questions about whether smog-affected individuals may turn to hotwiring as a coping mechanism. This research sheds light on the unexpected consequences of inhaling polluted air and its potential impact on criminal behavior. Whether you're a car enthusiast or an environmental advocate, this study will leave you breathless.



[[INTRDUCTION]]
Introduction
The relationship between air pollution and its impact on human health has been a topic of significant interest in recent years. From respiratory illnesses to cardiovascular diseases, the effects of breathing in polluted air have been well-documented. However, in a thought-provoking twist, our research takes a detour from the beaten path to explore the potential connection between air pollution and motor vehicle thefts.
In particular, we focus our attention on the beguilingly beautiful Atlantic City, New Jersey. Known for its bustling casinos, boardwalks, and – let's not forget – its undeniable charm, Atlantic City also carries a hidden secret in its air – namely, soot, smog, and other air pollutants. Could the not-so-neat air in this picturesque city be contributing to a surge in motor vehicle thefts across New Jersey?
This question lingers in the air, much like the faint scent of exhaust fumes. To unearth the answer, we dive into the realm of data analysis and statistical scrutiny, seeking to unravel the mysterious connection between the murky skies of Atlantic City and the pilfered wheels of New Jersey.
With an air of skepticism but a tireless pursuit of knowledge, we set out on this scholarly expedition. As we venture forth, we invite you to join us in this intellectual journey, one that's sure to leave you pondering the unexpected intersections of air quality, criminal behavior, and the ever-turning wheels of fate. After all, who would have thought that the fumes we inhale might inspire some to embark on a vehicular escapade of their own? It's a chain of events that's both alarming and amusing, much like an ill-timed car alarm in the dead of night. So, buckle up, dear readers, and prepare to be whisked away into the captivating nexus of neat air pollution and the motor vehicle theft beat.

[[RESULTS]]
The analysis of the data revealed a notable correlation between air pollution levels in Atlantic City, New Jersey and motor vehicle thefts in the broader New Jersey region. For the time period examined, 1985 to 2022, the correlation coefficient was calculated to be 0.8020838, with an r-squared value of 0.6433384, and a p-value of less than 0.01. These findings bolster the hypothesis that the quality of the air we breathe may have unintended and unconventional consequences, quite literally driving individuals to engage in criminal activities such as car theft.
The figure (Fig. 1) depicts the scatterplot displaying the robust and undeniable correlation between the air pollution levels in Atlantic City and the incidence of motor vehicle thefts. The visual representation provides a compelling snapshot of the relationship between these seemingly unrelated variables. While the figure speaks for itself, it's worth noting that the connection uncovered in our analysis may not be as air-tight as one might expect.
The surprising strength of the correlation prompts us to consider the potential mechanisms through which air pollution could influence criminal behavior, specifically in the context of motor vehicle thefts. Could it be that breathing in the noxious particles from the city's skyline leads to an urge to take a joyride in a recently purloined automobile? These intriguing questions beg further investigation and ignite the imagination, sparking curiosity about the psychological and behavioral ramifications of environmental exposure.
We acknowledge that our findings raise eyebrows and even prompt a chuckle or two, as the idea of air pollution driving individuals to steal cars may seem far-fetched at first blush. However, our results underscore the intricate and often unexpected interplay between environmental factors and human actions. It's a connection that may not be immediately perceptible, but once uncovered, it leaves an indelible impression, much like a vivid and unexpected reflection on a vehicle's shiny exterior.
In light of these findings, we invite further inquiry and discussion into the potential avenues through which air quality may influence criminal conduct, albeit in a manner that's as intriguing as it is perplexing. This research offers a fresh perspective on the multifaceted impact of environmental conditions on human behavior and serves as a testament to the inextricable link between the air we breathe and the choices we make. After all, who could have anticipated that a lungful of pollutants might fuel a desire for a speedy getaway behind the wheel? It's a discovery that's as surreal as it is substantial, and one that solidifies the enthralling nexus between the neat Atlantic City air pollution and the motor vehicle theft beat.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In closing, our study illuminates the enthralling nexus between air pollution in Atlantic City, New Jersey, and motor vehicle thefts in the greater New Jersey area. The statistically significant correlation coefficient of 0.8020838 with a p-value of less than 0.01 presents compelling evidence of the association, leaving us with a startling realization of the unintended consequences of inhaling polluted air. The figurative "smokescreen" around this correlation prompts further investigation into the potential psychological and behavioral mechanisms at play. While the notion of car theft being influenced by dirty air may seem like a stretch, our findings call for a deeper exploration, much like a detective peering under the hood of a stolen vehicle, searching for clues.

Indeed, the unexpected intersection of air quality and criminal behavior may arouse a fair share of raised eyebrows and puzzled expressions, akin to the befuddlement of witnessing a car chase in a quaint neighborhood. Nonetheless, our results beckon researchers to ponder the complications and peculiarities of human actions when exposed to environmental factors, much like a convoluted maze of crossroads that leads to an unforeseen destination. With this, we assert that no more research is needed in this area, as we have unequivocally dispelled any doubts about the fascinating connection between the air we breathe and the curious decisions it may inspire. This conclusion is as clear as the open road, beckoning us to ceaselessly chase after the next intellectual adventure.

We thank you for joining us in this peculiar pursuit of knowledge, and hope that our findings leave you with a newfound appreciation for the quirky and inexplicable ways in which our world operates. After all, who could have foreseen that the hazy skies of Atlantic City would lead us down a path of stolen rides and smog-filled escapades?


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 Breathing Soot Leads to Theft: The Neat Atlantic City Air Pollution and Motor Vehicle Theft Beat. Respond only with the name of a fictional academic journal.

ChatGPT:

Journal of Environmental Criminology and Air Quality


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 Breathing Soot Leads to Theft: The Neat Atlantic City Air Pollution and Motor Vehicle Theft Beat. Respond only with the name of a fictional organization.

ChatGPT:

The Institute for Silly Science 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 Breathing Soot Leads to Theft: The Neat Atlantic City Air Pollution and Motor Vehicle Theft Beat with an abstract of This study delves into the relationship between air pollution levels in Atlantic City, New Jersey and motor vehicle thefts in the greater New Jersey area. Through an extensive analysis of data from the Environmental Protection Agency and the FBI Criminal Justice Information Services, we uncovered a statistically significant correlation between the two variables. The correlation coefficient of 0.8020838 with a p-value of less than 0.01 for the time period spanning from 1985 to 2022 provides compelling evidence of the association. This connection is not to be sniffed at, as it raises questions about whether smog-affected individuals may turn to hotwiring as a coping mechanism. This research sheds light on the unexpected consequences of inhaling polluted air and its potential impact on criminal behavior. Whether you're a car enthusiast or an environmental advocate, this study will leave you breathless.

ChatGPT:

Air pollution, Atlantic City, New Jersey, motor vehicle theft, Environmental Protection Agency, FBI Criminal Justice Information Services, correlation, smog, hotwiring, criminal behavior, polluted air, criminal activity

*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 Atlantic City, New Jersey
Detailed data title: Percentage of days 'unhealthy' or worse air quality in Atlantic City-Hammonton, NJ
Source: Environmental Protection Agency
See what else correlates with Air pollution in Atlantic City, New Jersey

Motor vehicle thefts in New Jersey
Detailed data title: The motor vehicle theft rate per 100,000 residents in New Jersey
Source: FBI Criminal Justice Information Services
See what else correlates with Motor vehicle thefts in New Jersey

Correlation r = 0.8020838 (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.6433384 (Coefficient of determination)
This means 64.3% of the change in the one variable (i.e., Motor vehicle thefts in New Jersey) is predictable based on the change in the other (i.e., Air pollution in Atlantic City, New Jersey) over the 38 years from 1985 through 2022.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 1.4E-9. 0.0000000014159144877150633000
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.8 in 1.4E-7% of random cases. Said differently, if you correlated 706,257,340 random variables You don't actually need 706 million variables to find a correlation like this one. I don't have that many variables in my database. You can also correlate variables that are not independent. I do this a lot.

p-value calculations are useful for understanding the probability of a result happening by chance. They are most useful when used to highlight the risk of a fluke outcome. For example, if you calculate a p-value of 0.30, the risk that the result is a fluke is high. It is good to know that! But there are lots of ways to get a p-value of less than 0.01, as evidenced by this project.

In this particular case, the values are so extreme as to be meaningless. That's why no one reports p-values with specificity after they drop below 0.01.

Just to be clear: I'm being completely transparent about the calculations. There is no math trickery. This is just how statistics shakes out when you calculate hundreds of millions of random correlations.
with the same 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.65, 0.89 ] 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
Air pollution in Atlantic City, New Jersey (Bad air quality days)5.479452.203866.976745.915493.790094.545459.392272.185793.01370.5479452.465753.01374.109595.769233.361340.8379892.19783.29670.82191800.5681820.557103000000.5617980.2777780.27548200000000.273973
Motor vehicle thefts in New Jersey (Motor Vehicle Theft rate)664.3775.5845.4894.4919.2939.5925.9815.6714660631.6581.3511.2433.6434.2405.9443417400.4348.9318.1283.7252.8232.4178176.8197.1185.9154.3130.9131.8126.1136.9124.2116.2115.7132.1159.6




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([5.47945,2.20386,6.97674,5.91549,3.79009,4.54545,9.39227,2.18579,3.0137,0.547945,2.46575,3.0137,4.10959,5.76923,3.36134,0.837989,2.1978,3.2967,0.821918,0,0.568182,0.557103,0,0,0,0,0,0.561798,0.277778,0.275482,0,0,0,0,0,0,0,0.273973,])
array_2 = np.array([664.3,775.5,845.4,894.4,919.2,939.5,925.9,815.6,714,660,631.6,581.3,511.2,433.6,434.2,405.9,443,417,400.4,348.9,318.1,283.7,252.8,232.4,178,176.8,197.1,185.9,154.3,130.9,131.8,126.1,136.9,124.2,116.2,115.7,132.1,159.6,])
array_1_name = "Air pollution in Atlantic City, New Jersey"
array_2_name = "Motor vehicle thefts in New Jersey"

# 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: 4745 · Black Variable ID: 20294 · Red Variable ID: 20150
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0