about · email me · subscribe
Spurious correlation #3,750 · 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 the Sun and the second variable is Burglaries in Nevada.  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

It seems that Neptune's gravitational pull was keeping the thieves at bay, creating a safe space in Nevada. You could say the lack of space crimes was all thanks to Neptune's close 'watch' on the state!

Model: dalle-3
Prompt: An image that looks like it is a scene from 'Star Wars': Prompt: In a quiet Nevada neighborhood, under the distant glow of Neptune in the night sky, a row of houses stands peacefully. With the planet's reduced distance from the Sun weakening its gravitational pull, potential burglars find it harder to make quick escape routes. As a result, the number of reported burglaries in the state has decreased notably, with lawns and streets undisturbed. Enhanced Visual Prompt: Generate an image of a serene Nevada neighborhood at night, with a noticeable glow in the sky resembling Neptune. The row of houses should be depicted peacefully, with clear indications of security measures. The visual should capture the unique tranquility of the neighborhood due to the weakened gravitational pull, without including any words or speech bubbles. 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 the Sun and Burglaries in Nevada. 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: An image that looks like it is a scene from 'Star Wars' 3D Pixar Style 3D Pixar Style An image that looks like it is a scene from a Pixar movie Pop art
ChatGPT: An image that looks like it is a scene from 'Star Wars'

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 the Sun and Burglaries in Nevada, in the following situation: Because the decrease in distance between Neptune and the Sun led to a decrease in gravitational pull on Earth, causing a reduction in criminal "activity" due to the lack of "pull" for potential burglars in Nevada.. Keep the description simple.
ChatGPT: In a quiet Nevada neighborhood, under the distant glow of Neptune in the night sky, a row of houses stands peacefully. With the planet's reduced distance from the Sun weakening its gravitational pull, potential burglars find it harder to make quick escape routes. As a result, the number of reported burglaries in the state has decreased notably, with lawns and streets undisturbed.

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: [ An image that looks like it is a scene from 'Star Wars' ] and depicting this scene: In a quiet Nevada neighborhood, under the distant glow of Neptune in the night sky, a row of houses stands peacefully. With the planet's reduced distance from the Sun weakening its gravitational pull, potential burglars find it harder to make quick escape routes. As a result, the number of reported burglaries in the state has decreased notably, with lawns and streets undisturbed. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: An image that looks like it is a scene from 'Star Wars': Prompt: In a quiet Nevada neighborhood, under the distant glow of Neptune in the night sky, a row of houses stands peacefully. With the planet's reduced distance from the Sun weakening its gravitational pull, potential burglars find it harder to make quick escape routes. As a result, the number of reported burglaries in the state has decreased notably, with lawns and streets undisturbed. Enhanced Visual Prompt: Generate an image of a serene Nevada neighborhood at night, with a noticeable glow in the sky resembling Neptune. The row of houses should be depicted peacefully, with clear indications of security measures. The visual should capture the unique tranquility of the neighborhood due to the weakened gravitational pull, without including any words or speech bubbles.

*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 the Sun caused Burglaries in Nevada to decrease. Include one good pun.

AI academic paper

(Because p < 0.01)
Stellar Stealing: Unraveling the Inexplicable Connection Between Neptune's Orbit and Burglaries in Nevada

The Journal of Celestial 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 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 The distance between Neptune and the Sun and Burglaries in Nevada. Make lots of jokes, goofy observations, and puns.

Make the title seem clever.

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.9552268 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]]
"Stellar Stealing: Unraveling the Inexplicable Connection Between Neptune's Orbit and Burglaries in Nevada"

[[ABSTRACT]]
In this research study, we delved into the out-of-this-world question: could the distance between Neptune and the Sun be influencing the frequency of burglaries in Nevada? This cosmic caper led us to analyze data from Astropy to determine the definitive distance between Neptune and the Sun, and paired it with statistics from the FBI's Criminal Justice Information Services on burglary rates in the Silver State. To our amazement, we uncovered a startling correlation coefficient of 0.9552268, with a p-value less than 0.01 for the period from 1985 to 2022. Our findings serve as an astronomical reminder that in the realm of statistical analysis, no variable should be overlooked, even if it's millions of miles away. So, next time you're stargazing, keep an eye on Neptune's position – and maybe double-check your home security while you're at it!


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 The distance between Neptune and the Sun and Burglaries in Nevada. Make lots of jokes, goofy observations, and puns.

Here is the title and abstract of the paper:
[[TITLE]]
"Stellar Stealing: Unraveling the Inexplicable Connection Between Neptune's Orbit and Burglaries in Nevada"

[[ABSTRACT]]
In this research study, we delved into the out-of-this-world question: could the distance between Neptune and the Sun be influencing the frequency of burglaries in Nevada? This cosmic caper led us to analyze data from Astropy to determine the definitive distance between Neptune and the Sun, and paired it with statistics from the FBI's Criminal Justice Information Services on burglary rates in the Silver State. To our amazement, we uncovered a startling correlation coefficient of 0.9552268, with a p-value less than 0.01 for the period from 1985 to 2022. Our findings serve as an astronomical reminder that in the realm of statistical analysis, no variable should be overlooked, even if it's millions of miles away. So, next time you're stargazing, keep an eye on Neptune's position – and maybe double-check your home security while you're at it!

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

As researchers, we often find ourselves exploring the uncharted territories of the cosmos, seeking to unravel the mysteries that lie beyond our terrestrial realm. In this pursuit, we stumbled upon a rather peculiar and eyebrow-raising question: could there be a celestial connection between the distance separating Neptune and the Sun and the prevalence of burglaries in the enigmatic expanse of Nevada?

Much like a cunning intergalactic detective, we set out to investigate this celestial caper, armed with an arsenal of statistical tools and an insatiable curiosity. After all, when pondering the astronomical, why not delve into the criminological too?

The notion of a link between Neptune's celestial ballet and criminal antics in the Silver State may at first seem as improbable as interstellar travel via potato-propelled spacecraft. Yet, with an open mind and a penchant for cosmic puns, we seized the opportunity to scrutinize these seemingly disparate phenomena and determine if there might indeed be a gravitational pull between them, albeit of an entirely different nature.

Our exploration led us to Astropy, where we eagerly extracted data on the ever-shifting orbit of Neptune, dancing amidst the celestial symphony. Paired with this celestial insight, we tunneled into the archives of the FBI's Criminal Justice Information Services, where a trove of burglary statistics awaited our analytical scrutiny.

To our astonishment, the cosmic tumblers aligned in the most unexpected of ways. A correlation coefficient of 0.9552268 emerged from the data, with a p-value communicating a significance that would make even the most imperturbable statistician raise an eyebrow. From 1985 to 2022, the cosmic juxtaposition of Neptune's distance and Nevada's burglary rates formed a perplexing yet compelling connection, leaving us awestruck to ponder the cosmic dance of variables, shifting and swaying across unimaginable expanses.

In the pages that follow, prepare to embark on a journey that peers beyond the mundane and mundane, into a realm where the cosmic and the criminal intersect. Join us as we unravel the enigmatic threads that bind astronomical happenings and human perpetrations – a journey that will undoubtedly leave you starry-eyed and pondering the celestial mysteries that may subtly influence our earthly pursuits.


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 The distance between Neptune and the Sun and Burglaries in Nevada. Make lots of jokes, goofy observations, and puns.

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

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

Start by naming serious-sounding studies by authors like Smith, Doe, and Jones - but then quickly devolve. Name some real non-fiction books that would be related to the topic. Then name some real fiction books that sound like they could be related. Then devolve ever further, and mention something completely ridiculous, like you conducted literature review by reading CVS receipts.

Here is the title and abstract of the paper:
[[TITLE]]
"Stellar Stealing: Unraveling the Inexplicable Connection Between Neptune's Orbit and Burglaries in Nevada"

[[ABSTRACT]]
In this research study, we delved into the out-of-this-world question: could the distance between Neptune and the Sun be influencing the frequency of burglaries in Nevada? This cosmic caper led us to analyze data from Astropy to determine the definitive distance between Neptune and the Sun, and paired it with statistics from the FBI's Criminal Justice Information Services on burglary rates in the Silver State. To our amazement, we uncovered a startling correlation coefficient of 0.9552268, with a p-value less than 0.01 for the period from 1985 to 2022. Our findings serve as an astronomical reminder that in the realm of statistical analysis, no variable should be overlooked, even if it's millions of miles away. So, next time you're stargazing, keep an eye on Neptune's position – and maybe double-check your home security while you're at it!

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
As researchers, we often find ourselves exploring the uncharted territories of the cosmos, seeking to unravel the mysteries that lie beyond our terrestrial realm. In this pursuit, we stumbled upon a rather peculiar and eyebrow-raising question: could there be a celestial connection between the distance separating Neptune and the Sun and the prevalence of burglaries in the enigmatic expanse of Nevada?
Much like a cunning intergalactic detective, we set out to investigate this celestial caper, armed with an arsenal of statistical tools and an insatiable curiosity. After all, when pondering the astronomical, why not delve into the criminological too?
The notion of a link between Neptune's celestial ballet and criminal antics in the Silver State may at first seem as improbable as interstellar travel via potato-propelled spacecraft. Yet, with an open mind and a penchant for cosmic puns, we seized the opportunity to scrutinize these seemingly disparate phenomena and determine if there might indeed be a gravitational pull between them, albeit of an entirely different nature.
Our exploration led us to Astropy, where we eagerly extracted data on the ever-shifting orbit of Neptune, dancing amidst the celestial symphony. Paired with this celestial insight, we tunneled into the archives of the FBI's Criminal Justice Information Services, where a trove of burglary statistics awaited our analytical scrutiny.
To our astonishment, the cosmic tumblers aligned in the most unexpected of ways. A correlation coefficient of 0.9552268 emerged from the data, with a p-value communicating a significance that would make even the most imperturbable statistician raise an eyebrow. From 1985 to 2022, the cosmic juxtaposition of Neptune's distance and Nevada's burglary rates formed a perplexing yet compelling connection, leaving us awestruck to ponder the cosmic dance of variables, shifting and swaying across unimaginable expanses.
In the pages that follow, prepare to embark on a journey that peers beyond the mundane and mundane, into a realm where the cosmic and the criminal intersect. Join us as we unravel the enigmatic threads that bind astronomical happenings and human perpetrations – a journey that will undoubtedly leave you starry-eyed and pondering the celestial mysteries that may subtly influence our earthly pursuits.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

In "Planetary Influence on Terrestrial Events," Smith et al. delve into the contentious issue of astronomical bodies impacting earthly occurrences. While the paper primarily focuses on the lunar cycle and its purported effects on human behavior, the authors briefly touch upon the potential influence of other celestial bodies. However, they stop short of considering the outer planets such as Neptune, leaving us to wonder if they missed the mark by light-years.

Doe and Jones (2018) in "Celestial Synchronicities: Exploring Cosmic Coincidences" take a more eccentric approach, entertaining the idea of cosmic correlations between planetary movements and human activities. They present intriguing correlations between Mars's retrograde motion and traffic accidents, as well as Saturn's position and political scandals. Although their work sheds light on the potential interplanetary influences, Neptune's position and burglary rates remain conspicuously absent from their cosmic symphony.

Moving beyond scholarly articles, books such as "The Science of Astrological Anomalies" by Lisa Stardust and "Astrology for Dummies" by Rae Orion, while not in the traditional academic sphere, provide fascinating insights into celestial phenomena and their purported impact on everyday life. Despite the skepticism often surrounding these topics, they offer a thought-provoking perspective on the potential influence of distant planets on human affairs.

Shifting our focus to the realm of fiction, novels such as "Neptune's Mischief" by Stella Starr and "The Robbery Constellation" by Luna Light, though purely imaginative, skillfully weave tales of cosmic mischief and earthly misdemeanors. While these works are clearly fictional, they serve as a reminder of the fascinating narratives that can intertwine celestial mechanics and human misadventures.

Beyond conventional scholarly works and literary endeavors, we ventured into uncharted territory, scouring the most unlikely sources for insights into the improbable nexus between Neptune's orbit and burglary rates in Nevada. Surprisingly, we stumbled upon a treasure trove of information that reshaped our approach to this investigation. Indeed, our literature review extended to perusing grocery lists, deciphering coded messages in cereal boxes, and perhaps most surprisingly, conducting a thorough analysis of CVS receipts.

This unexpected journey led us to ponder the cosmic conspiracy that may be at play, with Neptune potentially casting its ethereal influence over earthly theft. While this unorthodox approach may raise a celestial eyebrow or two, our findings invite you to accompany us on a cosmic caper that transcends traditional research avenues, delving into the absurd and the extraordinary, much like the improbable yet undeniable connection between Neptune's distance from the Sun and burglaries in Nevada.


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 The distance between Neptune and the Sun and Burglaries in Nevada. Make lots of jokes, goofy observations, and puns.

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]]
"Stellar Stealing: Unraveling the Inexplicable Connection Between Neptune's Orbit and Burglaries in Nevada"

[[ABSTRACT]]
In this research study, we delved into the out-of-this-world question: could the distance between Neptune and the Sun be influencing the frequency of burglaries in Nevada? This cosmic caper led us to analyze data from Astropy to determine the definitive distance between Neptune and the Sun, and paired it with statistics from the FBI's Criminal Justice Information Services on burglary rates in the Silver State. To our amazement, we uncovered a startling correlation coefficient of 0.9552268, with a p-value less than 0.01 for the period from 1985 to 2022. Our findings serve as an astronomical reminder that in the realm of statistical analysis, no variable should be overlooked, even if it's millions of miles away. So, next time you're stargazing, keep an eye on Neptune's position – and maybe double-check your home security while you're at it!

[[INTRODUCTION]]
As researchers, we often find ourselves exploring the uncharted territories of the cosmos, seeking to unravel the mysteries that lie beyond our terrestrial realm. In this pursuit, we stumbled upon a rather peculiar and eyebrow-raising question: could there be a celestial connection between the distance separating Neptune and the Sun and the prevalence of burglaries in the enigmatic expanse of Nevada?
Much like a cunning intergalactic detective, we set out to investigate this celestial caper, armed with an arsenal of statistical tools and an insatiable curiosity. After all, when pondering the astronomical, why not delve into the criminological too?
The notion of a link between Neptune's celestial ballet and criminal antics in the Silver State may at first seem as improbable as interstellar travel via potato-propelled spacecraft. Yet, with an open mind and a penchant for cosmic puns, we seized the opportunity to scrutinize these seemingly disparate phenomena and determine if there might indeed be a gravitational pull between them, albeit of an entirely different nature.
Our exploration led us to Astropy, where we eagerly extracted data on the ever-shifting orbit of Neptune, dancing amidst the celestial symphony. Paired with this celestial insight, we tunneled into the archives of the FBI's Criminal Justice Information Services, where a trove of burglary statistics awaited our analytical scrutiny.
To our astonishment, the cosmic tumblers aligned in the most unexpected of ways. A correlation coefficient of 0.9552268 emerged from the data, with a p-value communicating a significance that would make even the most imperturbable statistician raise an eyebrow. From 1985 to 2022, the cosmic juxtaposition of Neptune's distance and Nevada's burglary rates formed a perplexing yet compelling connection, leaving us awestruck to ponder the cosmic dance of variables, shifting and swaying across unimaginable expanses.
In the pages that follow, prepare to embark on a journey that peers beyond the mundane and mundane, into a realm where the cosmic and the criminal intersect. Join us as we unravel the enigmatic threads that bind astronomical happenings and human perpetrations – a journey that will undoubtedly leave you starry-eyed and pondering the celestial mysteries that may subtly influence our earthly pursuits.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To investigate the seemingly cosmic correlation between the distance of Neptune from the Sun and the occurrence of burglaries in Nevada, our research team embarked on a quest that would make even the most intrepid space voyager do a double take. Our methodology involved a fusion of astronomical data analysis, statistical inference, and a sprinkle of cosmic curiosity.

First, let’s talk data collection. We scoured the virtual cosmos, journeying through the realms of the internet to gather information on the ever-fluctuating distance of Neptune from the Sun. Our primary source? The reliable and boundless expanse of data provided by Astropy, serving as our celestial compass in charting the dance of the distant planet.

As for the earthly element of our investigation, we turned our gaze towards the FBI's Criminal Justice Information Services. Unraveling the statistical tapestry of burglary rates in Nevada, we found ourselves diving headfirst into the depths of criminological data, seeking to uncover any glimmers of celestial influence hidden amidst the earthly fray. It was a bit like hunting for stardust in a field of earthly pebbles - a challenge befitting our cosmic curiosity.

Now, onto the statistical orbit of our analysis. Armed with the power of correlation coefficients and p-values, we sought to unveil the potential cosmic choreography at play. We employed a correlation analysis to explore the relationship between the distance of Neptune from the Sun and the ebb and flow of burglary rates in the Silver State. The shiny correlation coefficient of 0.9552268 that emerged from our analysis has even left our resident statistics aficionado moonstruck!

But hold on to your spacesuits, because there’s more. The p-value – our trusty guide to statistical significance – led us to a revelation that was as startling as stumbling upon a glittering comet in the uncharted cosmos: a p-value of less than 0.01. Such cosmic alignments of statistical significance are rarer than finding a diamond asteroid adrift in the cosmic sea of statistical analyses.

As with any voyage – cosmic or otherwise – our research methodology was not without its intricacies. Navigating the cosmic and criminological realms required a dedication to precision and an appreciation for the unexpected interplay of variables, much like the celestial bodies that grace the night sky.

In the pages that follow, prepare to delve into a journey that spans the cosmic and the criminal, guided by the twinkling lights of statistical insight and the enigmatic allure of celestial intrigue. And remember, as we unveil the veil between Neptune's distance and Nevada's burglaries, let your imagination take flight and consider the cosmic threads that may, in ways yet unfathomed, intertwine with our earthly experiences.


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 The distance between Neptune and the Sun and Burglaries in Nevada. Make lots of jokes, goofy observations, and puns.

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.9552268, r-squared of 0.9124582, 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]]
"Stellar Stealing: Unraveling the Inexplicable Connection Between Neptune's Orbit and Burglaries in Nevada"

[[ABSTRACT]]
In this research study, we delved into the out-of-this-world question: could the distance between Neptune and the Sun be influencing the frequency of burglaries in Nevada? This cosmic caper led us to analyze data from Astropy to determine the definitive distance between Neptune and the Sun, and paired it with statistics from the FBI's Criminal Justice Information Services on burglary rates in the Silver State. To our amazement, we uncovered a startling correlation coefficient of 0.9552268, with a p-value less than 0.01 for the period from 1985 to 2022. Our findings serve as an astronomical reminder that in the realm of statistical analysis, no variable should be overlooked, even if it's millions of miles away. So, next time you're stargazing, keep an eye on Neptune's position – and maybe double-check your home security while you're at it!

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
As researchers, we often find ourselves exploring the uncharted territories of the cosmos, seeking to unravel the mysteries that lie beyond our terrestrial realm. In this pursuit, we stumbled upon a rather peculiar and eyebrow-raising question: could there be a celestial connection between the distance separating Neptune and the Sun and the prevalence of burglaries in the enigmatic expanse of Nevada?
Much like a cunning intergalactic detective, we set out to investigate this celestial caper, armed with an arsenal of statistical tools and an insatiable curiosity. After all, when pondering the astronomical, why not delve into the criminological too?
The notion of a link between Neptune's celestial ballet and criminal antics in the Silver State may at first seem as improbable as interstellar travel via potato-propelled spacecraft. Yet, with an open mind and a penchant for cosmic puns, we seized the opportunity to scrutinize these seemingly disparate phenomena and determine if there might indeed be a gravitational pull between them, albeit of an entirely different nature.
Our exploration led us to Astropy, where we eagerly extracted data on the ever-shifting orbit of Neptune, dancing amidst the celestial symphony. Paired with this celestial insight, we tunneled into the archives of the FBI's Criminal Justice Information Services, where a trove of burglary statistics awaited our analytical scrutiny.
To our astonishment, the cosmic tumblers aligned in the most unexpected of ways. A correlation coefficient of 0.9552268 emerged from the data, with a p-value communicating a significance that would make even the most imperturbable statistician raise an eyebrow. From 1985 to 2022, the cosmic juxtaposition of Neptune's distance and Nevada's burglary rates formed a perplexing yet compelling connection, leaving us awestruck to ponder the cosmic dance of variables, shifting and swaying across unimaginable expanses.
In the pages that follow, prepare to embark on a journey that peers beyond the mundane and mundane, into a realm where the cosmic and the criminal intersect. Join us as we unravel the enigmatic threads that bind astronomical happenings and human perpetrations – a journey that will undoubtedly leave you starry-eyed and pondering the celestial mysteries that may subtly influence our earthly pursuits.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

In investigating the uncanny connection between Neptune's orbital distance and the occurrences of burglaries in Nevada, our research has unveiled a correlation coefficient of 0.9552268, accompanied by an r-squared value of 0.9124582. These statistical measures, along with a p-value of less than 0.01, astoundingly demonstrate a robust and significant relationship between these seemingly unrelated phenomena.

To visually encapsulate the intergalactic intrigue we've uncovered, we present Fig. 1, a scatterplot that vividly illustrates the unmistakable correlation between the distance from the Sun to Neptune and the incidence of burglaries in the Silver State. The scatterplot not only serves as a reminder of the cosmic dance of variables but also adds a sprinkle of stellar charm to our findings.

So, while pondering the celestial ballet of our solar system, remember that even the most distant planets may exert their influence on our earthly endeavors. Perhaps it's not just the stars that have a say in our affairs, but the planets too – an astronomical reminder that even in matters of statistical analysis, there's always an opportunity for celestial surprises.


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 The distance between Neptune and the Sun and Burglaries in Nevada. Make lots of jokes, goofy observations, and puns.

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]]
"Stellar Stealing: Unraveling the Inexplicable Connection Between Neptune's Orbit and Burglaries in Nevada"

[[ABSTRACT]]
In this research study, we delved into the out-of-this-world question: could the distance between Neptune and the Sun be influencing the frequency of burglaries in Nevada? This cosmic caper led us to analyze data from Astropy to determine the definitive distance between Neptune and the Sun, and paired it with statistics from the FBI's Criminal Justice Information Services on burglary rates in the Silver State. To our amazement, we uncovered a startling correlation coefficient of 0.9552268, with a p-value less than 0.01 for the period from 1985 to 2022. Our findings serve as an astronomical reminder that in the realm of statistical analysis, no variable should be overlooked, even if it's millions of miles away. So, next time you're stargazing, keep an eye on Neptune's position – and maybe double-check your home security while you're at it!

[[LITERATURE REVIEW]]
In "Planetary Influence on Terrestrial Events," Smith et al. delve into the contentious issue of astronomical bodies impacting earthly occurrences. While the paper primarily focuses on the lunar cycle and its purported effects on human behavior, the authors briefly touch upon the potential influence of other celestial bodies. However, they stop short of considering the outer planets such as Neptune, leaving us to wonder if they missed the mark by light-years.
Doe and Jones (2018) in "Celestial Synchronicities: Exploring Cosmic Coincidences" take a more eccentric approach, entertaining the idea of cosmic correlations between planetary movements and human activities. They present intriguing correlations between Mars's retrograde motion and traffic accidents, as well as Saturn's position and political scandals. Although their work sheds light on the potential interplanetary influences, Neptune's position and burglary rates remain conspicuously absent from their cosmic symphony.
Moving beyond scholarly articles, books such as "The Science of Astrological Anomalies" by Lisa Stardust and "Astrology for Dummies" by Rae Orion, while not in the traditional academic sphere, provide fascinating insights into celestial phenomena and their purported impact on everyday life. Despite the skepticism often surrounding these topics, they offer a thought-provoking perspective on the potential influence of distant planets on human affairs.
Shifting our focus to the realm of fiction, novels such as "Neptune's Mischief" by Stella Starr and "The Robbery Constellation" by Luna Light, though purely imaginative, skillfully weave tales of cosmic mischief and earthly misdemeanors. While these works are clearly fictional, they serve as a reminder of the fascinating narratives that can intertwine celestial mechanics and human misadventures.
Beyond conventional scholarly works and literary endeavors, we ventured into uncharted territory, scouring the most unlikely sources for insights into the improbable nexus between Neptune's orbit and burglary rates in Nevada. Surprisingly, we stumbled upon a treasure trove of information that reshaped our approach to this investigation. Indeed, our literature review extended to perusing grocery lists, deciphering coded messages in cereal boxes, and perhaps most surprisingly, conducting a thorough analysis of CVS receipts.
This unexpected journey led us to ponder the cosmic conspiracy that may be at play, with Neptune potentially casting its ethereal influence over earthly theft. While this unorthodox approach may raise a celestial eyebrow or two, our findings invite you to accompany us on a cosmic caper that transcends traditional research avenues, delving into the absurd and the extraordinary, much like the improbable yet undeniable connection between Neptune's distance from the Sun and burglaries in Nevada.

[[RESULTS]]
In investigating the uncanny connection between Neptune's orbital distance and the occurrences of burglaries in Nevada, our research has unveiled a correlation coefficient of 0.9552268, accompanied by an r-squared value of 0.9124582. These statistical measures, along with a p-value of less than 0.01, astoundingly demonstrate a robust and significant relationship between these seemingly unrelated phenomena.
To visually encapsulate the intergalactic intrigue we've uncovered, we present Fig. 1, a scatterplot that vividly illustrates the unmistakable correlation between the distance from the Sun to Neptune and the incidence of burglaries in the Silver State. The scatterplot not only serves as a reminder of the cosmic dance of variables but also adds a sprinkle of stellar charm to our findings.
So, while pondering the celestial ballet of our solar system, remember that even the most distant planets may exert their influence on our earthly endeavors. Perhaps it's not just the stars that have a say in our affairs, but the planets too – an astronomical reminder that even in matters of statistical analysis, there's always an opportunity for celestial surprises.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

Our findings paint a celestial picture that extends far beyond the confines of our terrestrial understanding, bolstering the burgeoning body of research on the cosmic influence on earthly events. Smith et al.'s "Planetary Influence on Terrestrial Events" provided a launching point for our investigation. Although they focused mainly on the lunar cycle, their work cast a lunar light on the potential impact of celestial bodies on earthly affairs. Despite the vast distance between Neptune and the Sun, our results signaled a cosmic connection that aligns with the notion that planetary movements may affect occurrences on Earth.

Doe and Jones (2018) entertained the potential interplanetary influences on Earth and offered compelling connections between other planetary movements and human activities. Their work, albeit eccentric, paved the way for our own cosmic sleuthing, affirming the plausibility of seemingly outlandish correlations. Surprisingly, their work may have landed closer to home than they anticipated, as our evidence supports the notion of interstellar influence on earthly events, albeit in a less conventional context.

Furthermore, our literature review took us to the far reaches of unorthodox sources, including the whimsical musings of fiction authors such as Stella Starr and Luna Light. While their works may dance around the border between fact and fantasy, they offer a whimsical perspective on the potential interplay between distant planets and earthly occurrences. Their fanciful tales may not be far from reality, as our findings indicate a tangible link between Neptune's position and the incidence of burglaries in Nevada.

As we dare to venture into this uncharted cosmic territory, our study stands as a testament to the potential intersections between the celestial and the mundane. By shedding light on the enigmatic correlation between Neptune's orbital distance and burglary rates, we hope to spark a wider conversation about the interconnectedness of the cosmos and human affairs. Our study defies the gravitational pull of conventional research, reaching for the stars to uncover the unexpected and the improbable. So, as we contemplate the cosmic riddle of Neptune's influence, let's not underestimate the far-reaching impact of our celestial neighbors.

Our results underscore the astronomical reminder that the universe holds captivating surprises, even in the realm of statistical analysis. As we continue to ponder the profound implications of our findings, it's clear that the oddities of the cosmos may just hold the keys to unlocking the mysteries of our earthly experiences. Indeed, the cosmic ballet continues, and perhaps, it's time to embrace the idea that even distant planets may have a hand in our earthly escapades. So, as we gaze at the heavens, let's not forget to keep our earthly affairs in check, for the stars may have a hand in it – and who knows, maybe Neptune is up to some mischief after all!


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 The distance between Neptune and the Sun and Burglaries in Nevada. Make lots of jokes, goofy observations, and puns.

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]]
"Stellar Stealing: Unraveling the Inexplicable Connection Between Neptune's Orbit and Burglaries in Nevada"

[[ABSTRACT]]
In this research study, we delved into the out-of-this-world question: could the distance between Neptune and the Sun be influencing the frequency of burglaries in Nevada? This cosmic caper led us to analyze data from Astropy to determine the definitive distance between Neptune and the Sun, and paired it with statistics from the FBI's Criminal Justice Information Services on burglary rates in the Silver State. To our amazement, we uncovered a startling correlation coefficient of 0.9552268, with a p-value less than 0.01 for the period from 1985 to 2022. Our findings serve as an astronomical reminder that in the realm of statistical analysis, no variable should be overlooked, even if it's millions of miles away. So, next time you're stargazing, keep an eye on Neptune's position – and maybe double-check your home security while you're at it!

[[INTRDUCTION]]
As researchers, we often find ourselves exploring the uncharted territories of the cosmos, seeking to unravel the mysteries that lie beyond our terrestrial realm. In this pursuit, we stumbled upon a rather peculiar and eyebrow-raising question: could there be a celestial connection between the distance separating Neptune and the Sun and the prevalence of burglaries in the enigmatic expanse of Nevada?
Much like a cunning intergalactic detective, we set out to investigate this celestial caper, armed with an arsenal of statistical tools and an insatiable curiosity. After all, when pondering the astronomical, why not delve into the criminological too?
The notion of a link between Neptune's celestial ballet and criminal antics in the Silver State may at first seem as improbable as interstellar travel via potato-propelled spacecraft. Yet, with an open mind and a penchant for cosmic puns, we seized the opportunity to scrutinize these seemingly disparate phenomena and determine if there might indeed be a gravitational pull between them, albeit of an entirely different nature.
Our exploration led us to Astropy, where we eagerly extracted data on the ever-shifting orbit of Neptune, dancing amidst the celestial symphony. Paired with this celestial insight, we tunneled into the archives of the FBI's Criminal Justice Information Services, where a trove of burglary statistics awaited our analytical scrutiny.
To our astonishment, the cosmic tumblers aligned in the most unexpected of ways. A correlation coefficient of 0.9552268 emerged from the data, with a p-value communicating a significance that would make even the most imperturbable statistician raise an eyebrow. From 1985 to 2022, the cosmic juxtaposition of Neptune's distance and Nevada's burglary rates formed a perplexing yet compelling connection, leaving us awestruck to ponder the cosmic dance of variables, shifting and swaying across unimaginable expanses.
In the pages that follow, prepare to embark on a journey that peers beyond the mundane and mundane, into a realm where the cosmic and the criminal intersect. Join us as we unravel the enigmatic threads that bind astronomical happenings and human perpetrations – a journey that will undoubtedly leave you starry-eyed and pondering the celestial mysteries that may subtly influence our earthly pursuits.

[[RESULTS]]
In investigating the uncanny connection between Neptune's orbital distance and the occurrences of burglaries in Nevada, our research has unveiled a correlation coefficient of 0.9552268, accompanied by an r-squared value of 0.9124582. These statistical measures, along with a p-value of less than 0.01, astoundingly demonstrate a robust and significant relationship between these seemingly unrelated phenomena.
To visually encapsulate the intergalactic intrigue we've uncovered, we present Fig. 1, a scatterplot that vividly illustrates the unmistakable correlation between the distance from the Sun to Neptune and the incidence of burglaries in the Silver State. The scatterplot not only serves as a reminder of the cosmic dance of variables but also adds a sprinkle of stellar charm to our findings.
So, while pondering the celestial ballet of our solar system, remember that even the most distant planets may exert their influence on our earthly endeavors. Perhaps it's not just the stars that have a say in our affairs, but the planets too – an astronomical reminder that even in matters of statistical analysis, there's always an opportunity for celestial surprises.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

As we conclude our cosmic caper, it becomes abundantly clear that the celestial and the criminal may not be as distant as one might think - pun intended. Our research has unveiled a connection between the distance from the Sun to Neptune and the burglary rates in Nevada that is as clear as a shooting star streaking across the night sky. Our findings not only highlight the inimitable influence of celestial bodies on earthly phenomena but also serve as a cosmic reminder that when it comes to statistical analysis, even the most astronomical variables should never be dismissed.

But fear not, diligent readers and fellow cosmic sleuths, for it seems that we may have solved this astronomical enigma once and for all. So, while we may have enjoyed diving into the cosmic abyss to uncover this unexpected correlation, it seems that no further research is needed in this area. It's time to leave this otherworldly mystery in the hands of time and space – and perhaps a few interstellar investigators.


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 Stellar Stealing: Unraveling the Inexplicable Connection Between Neptune's Orbit and Burglaries in Nevada. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Celestial 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 Stellar Stealing: Unraveling the Inexplicable Connection Between Neptune's Orbit and Burglaries in Nevada. Respond only with the name of a fictional organization.

ChatGPT:

The Galactic Phenomena Research Consortium


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 Stellar Stealing: Unraveling the Inexplicable Connection Between Neptune's Orbit and Burglaries in Nevada with an abstract of In this research study, we delved into the out-of-this-world question: could the distance between Neptune and the Sun be influencing the frequency of burglaries in Nevada? This cosmic caper led us to analyze data from Astropy to determine the definitive distance between Neptune and the Sun, and paired it with statistics from the FBI's Criminal Justice Information Services on burglary rates in the Silver State. To our amazement, we uncovered a startling correlation coefficient of 0.9552268, with a p-value less than 0.01 for the period from 1985 to 2022. Our findings serve as an astronomical reminder that in the realm of statistical analysis, no variable should be overlooked, even if it's millions of miles away. So, next time you're stargazing, keep an eye on Neptune's position – and maybe double-check your home security while you're at it!

ChatGPT:

Neptune orbit, burglary rates, Nevada, astropy data, correlation coefficient, statistical analysis, astronomical correlation, variable analysis, FBI crime statistics, Neptune position

*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 the Sun
Detailed data title: The average distance between Neptune and the Sun 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 the Sun

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

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

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 1.3E-20. 0.0000000000000000000125734967
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.96 in 1.3E-18% of random cases. Said differently, if you correlated 79,532,370,657,082,212,352 random variables You don't actually need 79 quintillion 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.91, 0.98 ] 95% correlation confidence interval (using the Fisher z-transformation)
The confidence interval is an estimate the range of the value of the correlation coefficient, using the correlation itself as an input. The values are meant to be the low and high end of the correlation coefficient with 95% confidence.

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


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

Still, sometimes one of the variables has more years of data available than the other. This page only shows the overlapping years. To see all the years, click on "See what else correlates with..." link above.
19851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022
The distance between Neptune and the Sun (Planetary distance (AU))30.253530.244530.234730.224830.215230.206430.198530.191230.184430.177430.169830.16130.150930.139630.127330.114730.102430.090830.080330.07130.062730.05530.047330.039130.030130.0230.009129.997629.986129.975129.965229.956529.949129.942729.936929.93129.924629.9174
Burglaries in Nevada (Burglary rate)1849.61603.91629.41544.91404.81367.41403.91289.212451354.51322.51220.11310.41137.6973.5877.1844.3874.3979.3992973.4997.9971932.8836.7824.1747.9803.1825.6772.4775.4640.2674.5586505.7368.8406.3436.1




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.2535,30.2445,30.2347,30.2248,30.2152,30.2064,30.1985,30.1912,30.1844,30.1774,30.1698,30.161,30.1509,30.1396,30.1273,30.1147,30.1024,30.0908,30.0803,30.071,30.0627,30.055,30.0473,30.0391,30.0301,30.02,30.0091,29.9976,29.9861,29.9751,29.9652,29.9565,29.9491,29.9427,29.9369,29.931,29.9246,29.9174,])
array_2 = np.array([1849.6,1603.9,1629.4,1544.9,1404.8,1367.4,1403.9,1289.2,1245,1354.5,1322.5,1220.1,1310.4,1137.6,973.5,877.1,844.3,874.3,979.3,992,973.4,997.9,971,932.8,836.7,824.1,747.9,803.1,825.6,772.4,775.4,640.2,674.5,586,505.7,368.8,406.3,436.1,])
array_1_name = "The distance between Neptune and the Sun"
array_2_name = "Burglaries in Nevada"

# 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 pure awesomeness!


Correlation ID: 3750 · Black Variable ID: 1932 · Red Variable ID: 20105
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0