about · email me · subscribe
Spurious correlation #1,668 · View random

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is The distance between Neptune and Earth and the second variable is Burglaries 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 Neptune gets closer, its gravitational pull messes with thieves' getaway cars, leaving them stranded on the Turnpike. Remember, when the planets align, even the burglars stay in line!

Model: dalle-3
Prompt: Generate an image of a serene New Jersey neighborhood at midnight, with a burglar stealthily scaling a fence to attempt a break-in. Above this scene, in the black-and-white newspaper illustration style, let Neptune shimmer in the dark night sky as it orbits at a distant but constant distance from Earth. Emphasize the contrast between the calm suburban setting and the distant, otherworldly beauty of the planet. 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: The distance between Neptune and Earth and Burglaries 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: A black-and-white newspaper illustration Hyper-realistic Magic realism Cute 2D animation Magic realism
ChatGPT: A black-and-white newspaper illustration

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 The distance between Neptune and Earth and Burglaries in New Jersey together. Keep the description simple.
ChatGPT: In the dark night sky, Neptune is shimmering as it orbits at a distant but constant distance from Earth. Below, in a calm New Jersey neighborhood, a burglar quietly scales a fence to attempt a break-in, while the distant planets continue their orbit above.

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 black-and-white newspaper illustration ] and depicting this scene: In the dark night sky, Neptune is shimmering as it orbits at a distant but constant distance from Earth. Below, in a calm New Jersey neighborhood, a burglar quietly scales a fence to attempt a break-in, while the distant planets continue their orbit above. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Generate an image of a serene New Jersey neighborhood at midnight, with a burglar stealthily scaling a fence to attempt a break-in. Above this scene, in the black-and-white newspaper illustration style, let Neptune shimmer in the dark night sky as it orbits at a distant but constant distance from Earth. Emphasize the contrast between the calm suburban setting and the distant, otherworldly beauty of the planet.

*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 The distance between Neptune and Earth caused Burglaries in New Jersey to decrease. Add a funny one-liner at the end.

AI academic paper

(Because p < 0.01)
Out of This World: Exploring the Celestial Influence on Burglaries in New Jersey

Journal of Extraterrestrial Criminology

Jan 2024

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




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

Please draft the title and abstract of an academic research paper presenting the findings of the connection between The distance between Neptune and Earth and Burglaries in New Jersey. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

Make the title punny if you can come up with clever pun. If not, make it sound serious.

Your research team used data from Caclculated using Astropy and FBI Criminal Justice Information Services to assess this nagging question. You found a correlation coefficient of 0.9729159 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]]
Out of This World: Exploring the Celestial Influence on Burglaries in New Jersey

[[ABSTRACT]]
This study delves into the intriguing relationship between the distance between Neptune and Earth and the incidence of burglaries in the state of New Jersey. Leveraging data from Astropy and the FBI Criminal Justice Information Services, we scrutinize this unconventional association over the time period from 1985 to 2022. Our analysis unveils a remarkable correlation coefficient of 0.9729159 and a statistically significant p-value of less than 0.01. While the connection may seem as ethereal as Neptune itself, our findings provide compelling evidence of a cosmic interplay influencing earthly occurrences. This investigation stands as a testament to the peculiar, yet captivating, nexus between celestial phenomena and human behavior, suggesting that the astronomical can, indeed, impact the criminological.


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

Please make up the introduction section of an academic research paper presenting the findings of the connection between The distance between Neptune and Earth and Burglaries in New Jersey. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Here is the title and abstract of the paper:
[[TITLE]]
Out of This World: Exploring the Celestial Influence on Burglaries in New Jersey

[[ABSTRACT]]
This study delves into the intriguing relationship between the distance between Neptune and Earth and the incidence of burglaries in the state of New Jersey. Leveraging data from Astropy and the FBI Criminal Justice Information Services, we scrutinize this unconventional association over the time period from 1985 to 2022. Our analysis unveils a remarkable correlation coefficient of 0.9729159 and a statistically significant p-value of less than 0.01. While the connection may seem as ethereal as Neptune itself, our findings provide compelling evidence of a cosmic interplay influencing earthly occurrences. This investigation stands as a testament to the peculiar, yet captivating, nexus between celestial phenomena and human behavior, suggesting that the astronomical can, indeed, impact the criminological.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

The cosmos has long been a source of fascination and wonder, with celestial bodies exerting their gravitational pull not just on each other, but evidently on the earthly affairs as well. In this study, we embark on an astrological adventure to investigate the unusual and enigmatic link between the distance separating Neptune and Earth and the incidence of burglaries in the state of New Jersey. While some may view this connection as being as elusive as the existence of extraterrestrial life, we have endeavored to bring scientific rigor and statistical analysis to bear on this cosmic conundrum.

The remarkable data sets procured from Astropy and the FBI Criminal Justice Information Services provide the empirical foundation for our celestial-criminal exploration. By examining the time frame from 1985 to 2022 and applying robust statistical methodologies, we seek to unravel the mysteries of Neptune's celestial positioning and its potential impact on criminal activities in the Garden State. As we journey through this cosmic labyrinth, it becomes clear that our research endeavors to shed light not only on the depths of space but also the depths of human behavior.

Our study extends beyond the traditional boundaries of criminology and astronomy, traversing uncharted territories to uncover the interplay between celestial mechanics and human mischief. With a correlation coefficient of 0.9729159 and a p-value that elicits statistical awe with its diminutive nature, the evidence leads us to a proposition that may seem like a planetary quirk – the very distance between Neptune and Earth may influence the frequency of burglaries in New Jersey. Thus, our investigation stands at the intersection of astrophysics and crime, advocating for a broader perspective on the influencing factors behind criminal activity.

As we delve into this celestial chord of crime, the data paints a compelling picture that transcends the mundane confines of earthly explanations. To dismiss this correlation as mere happenstance would be to disregard the cosmic dance that may sway the conduct of individuals on our planet. Our findings serve as a testament to the tantalizing interconnection between the cosmic and the criminological, elevating the discourse surrounding the impact of astronomical phenomena on human deeds. With a twinkle in our eyes and a statistical sparkle in our analysis, we invite you to accompany us on this scholarly odyssey, where the mysteries of the universe collide with the mysteries of human misdeeds.


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

Please make up a literature review section of an academic research paper presenting the findings of the connection between The distance between Neptune and Earth and Burglaries 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]]
Out of This World: Exploring the Celestial Influence on Burglaries in New Jersey

[[ABSTRACT]]
This study delves into the intriguing relationship between the distance between Neptune and Earth and the incidence of burglaries in the state of New Jersey. Leveraging data from Astropy and the FBI Criminal Justice Information Services, we scrutinize this unconventional association over the time period from 1985 to 2022. Our analysis unveils a remarkable correlation coefficient of 0.9729159 and a statistically significant p-value of less than 0.01. While the connection may seem as ethereal as Neptune itself, our findings provide compelling evidence of a cosmic interplay influencing earthly occurrences. This investigation stands as a testament to the peculiar, yet captivating, nexus between celestial phenomena and human behavior, suggesting that the astronomical can, indeed, impact the criminological.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
The cosmos has long been a source of fascination and wonder, with celestial bodies exerting their gravitational pull not just on each other, but evidently on the earthly affairs as well. In this study, we embark on an astrological adventure to investigate the unusual and enigmatic link between the distance separating Neptune and Earth and the incidence of burglaries in the state of New Jersey. While some may view this connection as being as elusive as the existence of extraterrestrial life, we have endeavored to bring scientific rigor and statistical analysis to bear on this cosmic conundrum.
The remarkable data sets procured from Astropy and the FBI Criminal Justice Information Services provide the empirical foundation for our celestial-criminal exploration. By examining the time frame from 1985 to 2022 and applying robust statistical methodologies, we seek to unravel the mysteries of Neptune's celestial positioning and its potential impact on criminal activities in the Garden State. As we journey through this cosmic labyrinth, it becomes clear that our research endeavors to shed light not only on the depths of space but also the depths of human behavior.
Our study extends beyond the traditional boundaries of criminology and astronomy, traversing uncharted territories to uncover the interplay between celestial mechanics and human mischief. With a correlation coefficient of 0.9729159 and a p-value that elicits statistical awe with its diminutive nature, the evidence leads us to a proposition that may seem like a planetary quirk – the very distance between Neptune and Earth may influence the frequency of burglaries in New Jersey. Thus, our investigation stands at the intersection of astrophysics and crime, advocating for a broader perspective on the influencing factors behind criminal activity.
As we delve into this celestial chord of crime, the data paints a compelling picture that transcends the mundane confines of earthly explanations. To dismiss this correlation as mere happenstance would be to disregard the cosmic dance that may sway the conduct of individuals on our planet. Our findings serve as a testament to the tantalizing interconnection between the cosmic and the criminological, elevating the discourse surrounding the impact of astronomical phenomena on human deeds. With a twinkle in our eyes and a statistical sparkle in our analysis, we invite you to accompany us on this scholarly odyssey, where the mysteries of the universe collide with the mysteries of human misdeeds.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

It is astonishing to comprehend that celestial bodies, millions of miles away, may hold sway over the occurrences on Earth. The connection between planetary distances and earthly events, particularly criminal activities, presents a curious avenue for exploration. While the initial inclination may be to dismiss such notions as otherworldly whimsy, a multitude of studies and literary sources beckon us to consider the potential interplay between the abstruse celestial and the mundane criminal.

Smith et al. found celestial influences on earthly phenomena in their landmark study, "Celestial Mechanics and Human Misdeeds: A Statistical Analysis," wherein they identified a tentative correlation between astronomical phenomena and human behavior. This notion finds resonance in the works of Doe and Jones, who expound upon the cosmic influences on terrestrial affairs in "Astrology and Criminology: Exploring Uncharted Territories." While these scholarly contributions set the stage for our celestial-criminal investigation, a broader canvas of literature beckons, teasing out the playful possibilities of planetary pandemonium.

In "Planets and Prowlers: The Intergalactic Interplay of Crime," the non-fiction opus by renowned astronomer Dr. Stella Skygazer, the reader is tantalized with the prospect of cosmic forces shaping criminal behaviors. The author skillfully navigates the constellations of evidence and supposition, painting a celestial tableau that may seem far-fetched but finds remarkable resonance in our current research pursuits.

On the other end of the scholarly spectrum, fictional works such as "Neptune Noir: A Burglary Mystery in Space" by the esteemed novelist A. U. Thor whisk the reader away into a world where Neptune's distant allure is entwined with the enigma of burglary. This whimsical foray into the realm of speculative fiction beckons to the imaginations of readers and researchers alike, beckoning us to ponder the playful possibilities of a cosmic caper. Similarly, the renowned book series "Solar System Sleuths" by Luna Lovelace enchants young readers with tales of celestial shenanigans and crime-solving escapades, hinting at the allure of cosmic curiosities and criminal conundrums.

Furthermore, one cannot discount the formative influence of cartoons and children's shows such as "Space Bandits" and "Astro-Adventures" that have woven cosmic capers into the fabric of children's entertainment. These lighthearted depictions, while ostensibly aimed at a younger audience, subtly sow the seeds of celestial intrigue and criminal escapades, teasing us with the potential for otherworldly mischief influencing earthly misdeeds.

As we navigate this realm of celestial and criminal interplay, the scholarly and imaginative works intermingle to form an amusing amalgam of thought-provoking concepts and playful possibilities. In the nexus between serious academic research and whimsical literary musings, the celestial-criminal connection invites us to ponder the cosmic comedy underlying human misdeeds.


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

Please make up the methodology section of an academic research paper presenting the findings of the connection between The distance between Neptune and Earth and Burglaries in New Jersey. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Your research team collected data from all across the internet, but mostly just used information from Caclculated using Astropy 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]]
Out of This World: Exploring the Celestial Influence on Burglaries in New Jersey

[[ABSTRACT]]
This study delves into the intriguing relationship between the distance between Neptune and Earth and the incidence of burglaries in the state of New Jersey. Leveraging data from Astropy and the FBI Criminal Justice Information Services, we scrutinize this unconventional association over the time period from 1985 to 2022. Our analysis unveils a remarkable correlation coefficient of 0.9729159 and a statistically significant p-value of less than 0.01. While the connection may seem as ethereal as Neptune itself, our findings provide compelling evidence of a cosmic interplay influencing earthly occurrences. This investigation stands as a testament to the peculiar, yet captivating, nexus between celestial phenomena and human behavior, suggesting that the astronomical can, indeed, impact the criminological.

[[INTRODUCTION]]
The cosmos has long been a source of fascination and wonder, with celestial bodies exerting their gravitational pull not just on each other, but evidently on the earthly affairs as well. In this study, we embark on an astrological adventure to investigate the unusual and enigmatic link between the distance separating Neptune and Earth and the incidence of burglaries in the state of New Jersey. While some may view this connection as being as elusive as the existence of extraterrestrial life, we have endeavored to bring scientific rigor and statistical analysis to bear on this cosmic conundrum.
The remarkable data sets procured from Astropy and the FBI Criminal Justice Information Services provide the empirical foundation for our celestial-criminal exploration. By examining the time frame from 1985 to 2022 and applying robust statistical methodologies, we seek to unravel the mysteries of Neptune's celestial positioning and its potential impact on criminal activities in the Garden State. As we journey through this cosmic labyrinth, it becomes clear that our research endeavors to shed light not only on the depths of space but also the depths of human behavior.
Our study extends beyond the traditional boundaries of criminology and astronomy, traversing uncharted territories to uncover the interplay between celestial mechanics and human mischief. With a correlation coefficient of 0.9729159 and a p-value that elicits statistical awe with its diminutive nature, the evidence leads us to a proposition that may seem like a planetary quirk – the very distance between Neptune and Earth may influence the frequency of burglaries in New Jersey. Thus, our investigation stands at the intersection of astrophysics and crime, advocating for a broader perspective on the influencing factors behind criminal activity.
As we delve into this celestial chord of crime, the data paints a compelling picture that transcends the mundane confines of earthly explanations. To dismiss this correlation as mere happenstance would be to disregard the cosmic dance that may sway the conduct of individuals on our planet. Our findings serve as a testament to the tantalizing interconnection between the cosmic and the criminological, elevating the discourse surrounding the impact of astronomical phenomena on human deeds. With a twinkle in our eyes and a statistical sparkle in our analysis, we invite you to accompany us on this scholarly odyssey, where the mysteries of the universe collide with the mysteries of human misdeeds.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

1. Data Collection
The data for this study was sourced from a variety of celestial and terrestrial repositories, including Astropy for celestial distances and the FBI Criminal Justice Information Services for burglary statistics in New Jersey. The time span from 1985 to 2022 was chosen to encompass a broad range of celestial configurations and corresponding criminal activities, allowing for a comprehensive investigation into this offbeat relationship.

2. Celestial Metrics
The primary independent variable of interest, the distance between Neptune and Earth, was calculated using state-of-the-art astronomical algorithms provided by Astropy. As these calculations reached into the very depths of the solar system, the team couldn't help but marvel at the cosmic dance unfolding beyond our earthly realm.

3. Burglary Statistics
The incidence of burglaries in New Jersey, serving as our dependent variable, was obtained from the FBI Criminal Justice Information Services. This provided us with the earthly data necessary to investigate the potential influence of cosmic factors on criminal activity. It was fascinating to see how both earthly and extraterrestrial domains converged in this astronomical inquiry.

4. Statistical Analysis
To explore the relationship between the distance from Neptune to Earth and burglary rates, a range of statistical methodologies were employed. Correlation analysis, regression models, and time series analysis were utilized to scrutinize the data with a keen statistical lens. The juxtaposition of astrophysical data with criminological statistics brought about a unique fusion of scientific domains, creating an intellectual atmosphere that was truly out of this world.

5. Control Variables
Several control variables, including demographic, economic, and seasonal factors, were considered in the analysis to ensure that any observed relationship between the celestial and the criminal remained robust and untangled from confounding influences. It was essential to account for any earthly factors that could potentially overshadow the cosmic signals, bringing a touch of gravity to our celestial pursuit.

6. Interdisciplinary Interpretation
The analysis was guided by an interdisciplinary lens, bridging the realms of celestial mechanics and criminology. This required a delicate balance of astronomical understanding and criminological expertise, resulting in a scientific fusion that bordered on the eccentric, yet was underpinned by rigorous methodological considerations. The sheer cosmic marvel of this inquiry demanded a careful approach that ensured both scientific credibility and celestial wonderment.

7. Ethical Considerations
Throughout the research process, ethical considerations were at the forefront of our endeavors. The data, both celestial and criminal, were handled with the utmost respect and conscientiousness, as the integrity of our findings and the trust of the broader scientific community were of paramount importance. After all, even in the vastness of space and the intricacies of statistical analysis, integrity remains the guiding North Star of all scholarly pursuits.


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

Please make up the results section of an academic research paper presenting the findings of the connection between The distance between Neptune and Earth and Burglaries in New Jersey. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Your research team collected data from all across the internet, but mostly just used information from Caclculated using Astropy and FBI Criminal Justice Information Services .

For the time period 1985 to 2022, you found a correlation 0.9729159, r-squared of 0.9465653, 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]]
Out of This World: Exploring the Celestial Influence on Burglaries in New Jersey

[[ABSTRACT]]
This study delves into the intriguing relationship between the distance between Neptune and Earth and the incidence of burglaries in the state of New Jersey. Leveraging data from Astropy and the FBI Criminal Justice Information Services, we scrutinize this unconventional association over the time period from 1985 to 2022. Our analysis unveils a remarkable correlation coefficient of 0.9729159 and a statistically significant p-value of less than 0.01. While the connection may seem as ethereal as Neptune itself, our findings provide compelling evidence of a cosmic interplay influencing earthly occurrences. This investigation stands as a testament to the peculiar, yet captivating, nexus between celestial phenomena and human behavior, suggesting that the astronomical can, indeed, impact the criminological.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
The cosmos has long been a source of fascination and wonder, with celestial bodies exerting their gravitational pull not just on each other, but evidently on the earthly affairs as well. In this study, we embark on an astrological adventure to investigate the unusual and enigmatic link between the distance separating Neptune and Earth and the incidence of burglaries in the state of New Jersey. While some may view this connection as being as elusive as the existence of extraterrestrial life, we have endeavored to bring scientific rigor and statistical analysis to bear on this cosmic conundrum.
The remarkable data sets procured from Astropy and the FBI Criminal Justice Information Services provide the empirical foundation for our celestial-criminal exploration. By examining the time frame from 1985 to 2022 and applying robust statistical methodologies, we seek to unravel the mysteries of Neptune's celestial positioning and its potential impact on criminal activities in the Garden State. As we journey through this cosmic labyrinth, it becomes clear that our research endeavors to shed light not only on the depths of space but also the depths of human behavior.
Our study extends beyond the traditional boundaries of criminology and astronomy, traversing uncharted territories to uncover the interplay between celestial mechanics and human mischief. With a correlation coefficient of 0.9729159 and a p-value that elicits statistical awe with its diminutive nature, the evidence leads us to a proposition that may seem like a planetary quirk – the very distance between Neptune and Earth may influence the frequency of burglaries in New Jersey. Thus, our investigation stands at the intersection of astrophysics and crime, advocating for a broader perspective on the influencing factors behind criminal activity.
As we delve into this celestial chord of crime, the data paints a compelling picture that transcends the mundane confines of earthly explanations. To dismiss this correlation as mere happenstance would be to disregard the cosmic dance that may sway the conduct of individuals on our planet. Our findings serve as a testament to the tantalizing interconnection between the cosmic and the criminological, elevating the discourse surrounding the impact of astronomical phenomena on human deeds. With a twinkle in our eyes and a statistical sparkle in our analysis, we invite you to accompany us on this scholarly odyssey, where the mysteries of the universe collide with the mysteries of human misdeeds.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The analysis of the relationship between the distance separating Neptune and Earth and the incidence of burglaries in New Jersey revealed a celestial surprise. Our research uncovered a startlingly high correlation coefficient of 0.9729159, indicating a strong positive association between these seemingly disparate variables. Furthermore, the r-squared value of 0.9465653 suggests that a whopping 94.7% of the variation in burglary rates can be explained by changes in the distance between Neptune and Earth. This astronomical revelation was paired with a p-value of less than 0.01, signifying a statistically significant relationship that defies earthly expectations.

Figure 1 presents a scatterplot depicting the striking correlation between the distance from Neptune and burglary incidents in New Jersey. The data points form a visually compelling pattern that suggests an otherworldly influence at play in the realm of criminology.

Our findings not only challenge conventional wisdom but also thrust celestial dynamics into the orbit of criminological inquiry. The sheer magnitude of the correlation coefficient propels us beyond the realm of mere coincidence and encourages contemplation of the cosmic forces that may influence human behavior on Earth. This celestial-crime connection serves as a cosmic riddle, inviting researchers to probe the celestial depths for answers to terrestrial enigmas.

In summary, our research illuminates a remarkable correlation between the celestial distances and earthly burglaries, challenging traditional notions of causal relationships. These findings beckon us to consider the cosmic ballet of planets as a potential influence on the everyday conduct of individuals, adding a celestial twist to the criminological narrative.


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

Please make up the discussion section of an academic research paper presenting the findings of the connection between The distance between Neptune and Earth and Burglaries in New Jersey. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Limit your response to 500 tokens.

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

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

[[TITLE]]
Out of This World: Exploring the Celestial Influence on Burglaries in New Jersey

[[ABSTRACT]]
This study delves into the intriguing relationship between the distance between Neptune and Earth and the incidence of burglaries in the state of New Jersey. Leveraging data from Astropy and the FBI Criminal Justice Information Services, we scrutinize this unconventional association over the time period from 1985 to 2022. Our analysis unveils a remarkable correlation coefficient of 0.9729159 and a statistically significant p-value of less than 0.01. While the connection may seem as ethereal as Neptune itself, our findings provide compelling evidence of a cosmic interplay influencing earthly occurrences. This investigation stands as a testament to the peculiar, yet captivating, nexus between celestial phenomena and human behavior, suggesting that the astronomical can, indeed, impact the criminological.

[[LITERATURE REVIEW]]
It is astonishing to comprehend that celestial bodies, millions of miles away, may hold sway over the occurrences on Earth. The connection between planetary distances and earthly events, particularly criminal activities, presents a curious avenue for exploration. While the initial inclination may be to dismiss such notions as otherworldly whimsy, a multitude of studies and literary sources beckon us to consider the potential interplay between the abstruse celestial and the mundane criminal.
Smith et al. found celestial influences on earthly phenomena in their landmark study, "Celestial Mechanics and Human Misdeeds: A Statistical Analysis," wherein they identified a tentative correlation between astronomical phenomena and human behavior. This notion finds resonance in the works of Doe and Jones, who expound upon the cosmic influences on terrestrial affairs in "Astrology and Criminology: Exploring Uncharted Territories." While these scholarly contributions set the stage for our celestial-criminal investigation, a broader canvas of literature beckons, teasing out the playful possibilities of planetary pandemonium.
In "Planets and Prowlers: The Intergalactic Interplay of Crime," the non-fiction opus by renowned astronomer Dr. Stella Skygazer, the reader is tantalized with the prospect of cosmic forces shaping criminal behaviors. The author skillfully navigates the constellations of evidence and supposition, painting a celestial tableau that may seem far-fetched but finds remarkable resonance in our current research pursuits.
On the other end of the scholarly spectrum, fictional works such as "Neptune Noir: A Burglary Mystery in Space" by the esteemed novelist A. U. Thor whisk the reader away into a world where Neptune's distant allure is entwined with the enigma of burglary. This whimsical foray into the realm of speculative fiction beckons to the imaginations of readers and researchers alike, beckoning us to ponder the playful possibilities of a cosmic caper. Similarly, the renowned book series "Solar System Sleuths" by Luna Lovelace enchants young readers with tales of celestial shenanigans and crime-solving escapades, hinting at the allure of cosmic curiosities and criminal conundrums.
Furthermore, one cannot discount the formative influence of cartoons and children's shows such as "Space Bandits" and "Astro-Adventures" that have woven cosmic capers into the fabric of children's entertainment. These lighthearted depictions, while ostensibly aimed at a younger audience, subtly sow the seeds of celestial intrigue and criminal escapades, teasing us with the potential for otherworldly mischief influencing earthly misdeeds.
As we navigate this realm of celestial and criminal interplay, the scholarly and imaginative works intermingle to form an amusing amalgam of thought-provoking concepts and playful possibilities. In the nexus between serious academic research and whimsical literary musings, the celestial-criminal connection invites us to ponder the cosmic comedy underlying human misdeeds.

[[RESULTS]]
The analysis of the relationship between the distance separating Neptune and Earth and the incidence of burglaries in New Jersey revealed a celestial surprise. Our research uncovered a startlingly high correlation coefficient of 0.9729159, indicating a strong positive association between these seemingly disparate variables. Furthermore, the r-squared value of 0.9465653 suggests that a whopping 94.7% of the variation in burglary rates can be explained by changes in the distance between Neptune and Earth. This astronomical revelation was paired with a p-value of less than 0.01, signifying a statistically significant relationship that defies earthly expectations.
Figure 1 presents a scatterplot depicting the striking correlation between the distance from Neptune and burglary incidents in New Jersey. The data points form a visually compelling pattern that suggests an otherworldly influence at play in the realm of criminology.
Our findings not only challenge conventional wisdom but also thrust celestial dynamics into the orbit of criminological inquiry. The sheer magnitude of the correlation coefficient propels us beyond the realm of mere coincidence and encourages contemplation of the cosmic forces that may influence human behavior on Earth. This celestial-crime connection serves as a cosmic riddle, inviting researchers to probe the celestial depths for answers to terrestrial enigmas.
In summary, our research illuminates a remarkable correlation between the celestial distances and earthly burglaries, challenging traditional notions of causal relationships. These findings beckon us to consider the cosmic ballet of planets as a potential influence on the everyday conduct of individuals, adding a celestial twist to the criminological narrative.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The results of our study provide compelling support for the notion that planetary positions, specifically the distance between Neptune and Earth, may exert a substantial influence on the occurrence of burglaries in New Jersey. This finding, while seemingly surreal, aligns with prior research that has hinted at the celestial ties to terrestrial phenomena.

Our investigation delved into the realm of "planetary pandemonium," a term playfully coined by Dr. Stella Skygazer, which has long tantalized our imaginations and beckoned us to unravel the cosmic conundrum underlying earthly misdeeds. The remarkably high correlation coefficient we uncovered echoes the findings of Smith et al., who similarly hinted at an interplay between astronomical phenomena and human behavior. It seems that the whimsical musings of speculative fiction authors, like the esteemed A. U. Thor, have not been in vain, as our research sheds light on a celestial caper that involves Neptune and nefarious activities.

The strikingly high r-squared value indicates that an overwhelming 94.7% of the variability in burglary rates can be explained by changes in the distance between Neptune and Earth. This aligns with the persuasive arguments put forth by Luna Lovelace in her "Solar System Sleuths" series, which cleverly insinuates the potential for planetary mischief influencing earthly criminal conundrums. Indeed, the playful possibilities of a cosmic caper have found unexpected resonance in our rigorous statistical analysis.

The statistically significant relationship revealed by our study challenges conventional criminological paradigms and underscores the need to consider the celestial ballet of planets as a potential influencer of human behavior. This deviation from earthly expectations nudges us to ponder the cosmic comedy underlying human misdeeds, as alluded to in the lighthearted depictions found in cartoons and children's shows. The presence of a cosmic riddle in the form of the celestial-crime connection invites researchers to explore the celestial depths for answers to terrestrial enigmas, tying directly to the imaginative yet pertinent narratives woven into children's entertainment.

In conclusion, our research highlights the celestial surprise embedded in the seemingly mundane occurrence of burglaries in New Jersey. The compelling correlation between cosmic distances and earthly misdeeds supplants traditional causal relationships with an otherworldly influence, embodying the celestial twist in the criminological narrative. This manifestation of celestial dynamics within the realm of criminological inquiry not only demands further exploration but invites playful contemplation of the cosmic forces that may shape human conduct on Earth.


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

Please make up a short conclusion of an academic research paper presenting the findings of the connection between The distance between Neptune and Earth and Burglaries in New Jersey. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

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

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
Out of This World: Exploring the Celestial Influence on Burglaries in New Jersey

[[ABSTRACT]]
This study delves into the intriguing relationship between the distance between Neptune and Earth and the incidence of burglaries in the state of New Jersey. Leveraging data from Astropy and the FBI Criminal Justice Information Services, we scrutinize this unconventional association over the time period from 1985 to 2022. Our analysis unveils a remarkable correlation coefficient of 0.9729159 and a statistically significant p-value of less than 0.01. While the connection may seem as ethereal as Neptune itself, our findings provide compelling evidence of a cosmic interplay influencing earthly occurrences. This investigation stands as a testament to the peculiar, yet captivating, nexus between celestial phenomena and human behavior, suggesting that the astronomical can, indeed, impact the criminological.

[[INTRDUCTION]]
The cosmos has long been a source of fascination and wonder, with celestial bodies exerting their gravitational pull not just on each other, but evidently on the earthly affairs as well. In this study, we embark on an astrological adventure to investigate the unusual and enigmatic link between the distance separating Neptune and Earth and the incidence of burglaries in the state of New Jersey. While some may view this connection as being as elusive as the existence of extraterrestrial life, we have endeavored to bring scientific rigor and statistical analysis to bear on this cosmic conundrum.
The remarkable data sets procured from Astropy and the FBI Criminal Justice Information Services provide the empirical foundation for our celestial-criminal exploration. By examining the time frame from 1985 to 2022 and applying robust statistical methodologies, we seek to unravel the mysteries of Neptune's celestial positioning and its potential impact on criminal activities in the Garden State. As we journey through this cosmic labyrinth, it becomes clear that our research endeavors to shed light not only on the depths of space but also the depths of human behavior.
Our study extends beyond the traditional boundaries of criminology and astronomy, traversing uncharted territories to uncover the interplay between celestial mechanics and human mischief. With a correlation coefficient of 0.9729159 and a p-value that elicits statistical awe with its diminutive nature, the evidence leads us to a proposition that may seem like a planetary quirk – the very distance between Neptune and Earth may influence the frequency of burglaries in New Jersey. Thus, our investigation stands at the intersection of astrophysics and crime, advocating for a broader perspective on the influencing factors behind criminal activity.
As we delve into this celestial chord of crime, the data paints a compelling picture that transcends the mundane confines of earthly explanations. To dismiss this correlation as mere happenstance would be to disregard the cosmic dance that may sway the conduct of individuals on our planet. Our findings serve as a testament to the tantalizing interconnection between the cosmic and the criminological, elevating the discourse surrounding the impact of astronomical phenomena on human deeds. With a twinkle in our eyes and a statistical sparkle in our analysis, we invite you to accompany us on this scholarly odyssey, where the mysteries of the universe collide with the mysteries of human misdeeds.

[[RESULTS]]
The analysis of the relationship between the distance separating Neptune and Earth and the incidence of burglaries in New Jersey revealed a celestial surprise. Our research uncovered a startlingly high correlation coefficient of 0.9729159, indicating a strong positive association between these seemingly disparate variables. Furthermore, the r-squared value of 0.9465653 suggests that a whopping 94.7% of the variation in burglary rates can be explained by changes in the distance between Neptune and Earth. This astronomical revelation was paired with a p-value of less than 0.01, signifying a statistically significant relationship that defies earthly expectations.
Figure 1 presents a scatterplot depicting the striking correlation between the distance from Neptune and burglary incidents in New Jersey. The data points form a visually compelling pattern that suggests an otherworldly influence at play in the realm of criminology.
Our findings not only challenge conventional wisdom but also thrust celestial dynamics into the orbit of criminological inquiry. The sheer magnitude of the correlation coefficient propels us beyond the realm of mere coincidence and encourages contemplation of the cosmic forces that may influence human behavior on Earth. This celestial-crime connection serves as a cosmic riddle, inviting researchers to probe the celestial depths for answers to terrestrial enigmas.
In summary, our research illuminates a remarkable correlation between the celestial distances and earthly burglaries, challenging traditional notions of causal relationships. These findings beckon us to consider the cosmic ballet of planets as a potential influence on the everyday conduct of individuals, adding a celestial twist to the criminological narrative.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our study has unraveled a celestial mystery that extends beyond the boundaries of conventional criminological inquiry. The substantial correlation coefficient of 0.9729159 between the distance from Neptune and burglary incidents in New Jersey eclipses many traditional terrestrial correlations, almost as if Neptune itself were pulling the strings of criminal activity in the Garden State. Our research suggests that while "Neptune" may further be an understudy in the celestial cast, its influence on earthly affairs cannot be overlooked. These findings not only elevate the discourse surrounding the impact of astronomical phenomena on human behavior but also cast a celestial sheen on the conventional criminal narrative. In the cosmic dance of statistics and space, we have waltzed our way through a sophisticated astrological analysis to present the compelling evidence that the astronomical can indeed hold sway over the criminological.

As for future research, it is, without a doubt, imperative that further studies are conducted to delve into the intricacies of the cosmic influence on earthly misdeeds. However, in the spirit of good humor, we might say that any more research in this area would surely be 'astronomically' unnecessary, as we have already achieved a celestial alignment of statistical significance in our findings. So, let us bid adieu to this celestial-crime connection, content in the knowledge that we have shed light on a most unexpected and, dare we say, out-of-this-world linkage.


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 Out of This World: Exploring the Celestial Influence on Burglaries in New Jersey. Respond only with the name of a fictional academic journal.

ChatGPT:

Journal of Extraterrestrial Criminology


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 Out of This World: Exploring the Celestial Influence on Burglaries in New Jersey. Respond only with the name of a fictional organization.

ChatGPT:

The Center for Interstellar Criminology and Extraterrestrial Sociology


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 Out of This World: Exploring the Celestial Influence on Burglaries in New Jersey with an abstract of This study delves into the intriguing relationship between the distance between Neptune and Earth and the incidence of burglaries in the state of New Jersey. Leveraging data from Astropy and the FBI Criminal Justice Information Services, we scrutinize this unconventional association over the time period from 1985 to 2022. Our analysis unveils a remarkable correlation coefficient of 0.9729159 and a statistically significant p-value of less than 0.01. While the connection may seem as ethereal as Neptune itself, our findings provide compelling evidence of a cosmic interplay influencing earthly occurrences. This investigation stands as a testament to the peculiar, yet captivating, nexus between celestial phenomena and human behavior, suggesting that the astronomical can, indeed, impact the criminological.

ChatGPT:

Neptune distance, Earth, burglaries, New Jersey, Astropy, FBI Crime data, celestial influence, correlation coefficient, p-value, cosmic interplay, celestial phenomena, human behavior, criminological impact

*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

The distance between Neptune and Earth
Detailed data title: The average distance between Neptune and Earth as measured on the first day of each month
Source: Caclculated using Astropy
Additional Info: I wrote a Python script using Astropy to calculate the distance between the named planets on the first day of each month for every year.

See what else correlates with The distance between Neptune and Earth

Burglaries in New Jersey
Detailed data title: The burglary rate per 100,000 residents in New Jersey
Source: FBI Criminal Justice Information Services
See what else correlates with Burglaries in New Jersey

Correlation r = 0.9729159 (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.9465653 (Coefficient of determination)
This means 94.7% of the change in the one variable (i.e., Burglaries in New Jersey) is predictable based on the change in the other (i.e., The distance between Neptune and Earth) over the 38 years from 1985 through 2022.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 1.71E-24. 0.0000000000000000000000017095
The p-value is a measure of how probable it is that we would randomly find a result this extreme. More specifically the p-value is a measure of how probable it is that we would randomly find a result this extreme if we had only tested one pair of variables one time.

But I am a p-villain. I absolutely did not test only one pair of variables one time. I correlated hundreds of millions of pairs of variables. I threw boatloads of data into an industrial-sized blender to find this correlation.

Who is going to stop me? p-value reporting doesn't require me to report how many calculations I had to go through in order to find a low p-value!
On average, you will find a correaltion as strong as 0.97 in 1.71E-22% of random cases. Said differently, if you correlated 584,966,364,434,045,123,690,496 random variables You don't actually need 584 sextillion variables to find a correlation like this one. I don't have that many variables in my database. You can also correlate variables that are not independent. I do this a lot.

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

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

Just to be clear: I'm being completely transparent about the calculations. There is no math trickery. This is just how statistics shakes out when you calculate hundreds of millions of random correlations.
with the same 37 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 37 because we have two variables measured over a period of 38 years. It's just the number of years minus ( the number of variables minus one ), which in this case simplifies to the number of years minus one.
you would randomly expect to find a correlation as strong as this one.

[ 0.95, 0.99 ] 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
The distance between Neptune and Earth (Planetary distance (AU))30.233330.224530.214830.205830.195630.187130.179530.172930.16630.159430.152130.143730.134230.123430.111830.099430.088130.077230.067430.057930.051230.044330.037430.028930.021930.012830.002829.990729.981729.971829.962829.953229.948829.943429.938729.931729.928629.9224
Burglaries in New Jersey (Burglary rate)1056.91070.81008.8980.2976.61017.21015.7969.4974911.9875.2791.9756.2671.1577.1522550511.9502.8472.4447.9451.4428.7465.3424.3440.2489.4477.4402.7354.7312.9281268.8216.4184.4146.2124.4148




Why this works

  1. Data dredging: I have 25,153 variables in my database. I compare all these variables against each other to find ones that randomly match up. That's 632,673,409 correlation calculations! This is called “data dredging.” Instead of starting with a hypothesis and testing it, I instead abused the data to see what correlations shake out. It’s a dangerous way to go about analysis, because any sufficiently large dataset will yield strong correlations completely at random.
  2. Lack of causal connection: There is probably Because these pages are automatically generated, it's possible that the two variables you are viewing are in fact causually related. I take steps to prevent the obvious ones from showing on the site (I don't let data about the weather in one city correlate with the weather in a neighboring city, for example), but sometimes they still pop up. If they are related, cool! You found a loophole.
    no direct connection between these variables, despite what the AI says above. This is exacerbated by the fact that I used "Years" as the base variable. Lots of things happen in a year that are not related to each other! Most studies would use something like "one person" in stead of "one year" to be the "thing" studied.
  3. Observations not independent: For many variables, sequential years are not independent of each other. If a population of people is continuously doing something every day, there is no reason to think they would suddenly change how they are doing that thing on January 1. A simple Personally I don't find any p-value calculation to be 'simple,' but you know what I mean.
    p-value calculation does not take this into account, so mathematically it appears less probable than it really is.
  4. Y-axis doesn't start at zero: I truncated the Y-axes of the graph above. I also used a line graph, which makes the visual connection stand out more than it deserves. Nothing against line graphs. They are great at telling a story when you have linear data! But visually it is deceptive because the only data is at the points on the graph, not the lines on the graph. In between each point, the data could have been doing anything. Like going for a random walk by itself!
    Mathematically what I showed is true, but it is intentionally misleading. Below is the same chart but with both Y-axes starting at zero.




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([30.2333,30.2245,30.2148,30.2058,30.1956,30.1871,30.1795,30.1729,30.166,30.1594,30.1521,30.1437,30.1342,30.1234,30.1118,30.0994,30.0881,30.0772,30.0674,30.0579,30.0512,30.0443,30.0374,30.0289,30.0219,30.0128,30.0028,29.9907,29.9817,29.9718,29.9628,29.9532,29.9488,29.9434,29.9387,29.9317,29.9286,29.9224,])
array_2 = np.array([1056.9,1070.8,1008.8,980.2,976.6,1017.2,1015.7,969.4,974,911.9,875.2,791.9,756.2,671.1,577.1,522,550,511.9,502.8,472.4,447.9,451.4,428.7,465.3,424.3,440.2,489.4,477.4,402.7,354.7,312.9,281,268.8,216.4,184.4,146.2,124.4,148,])
array_1_name = "The distance between Neptune and Earth"
array_2_name = "Burglaries 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?

Bravo! Your evaluation rocks!


Correlation ID: 1668 · Black Variable ID: 1941 · Red Variable ID: 20108
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0