about · email me · subscribe
Spurious correlation #5,633 · 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 Mercury and the second variable is Votes for the Republican Presidential candidate in Washington, D.C..  The chart goes from 1976 to 2020, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

As Neptune inched closer, it created a gravitational "blue wave" effect, pulling Republican votes in the capital down like a cosmic conservative conundrum! The GOP just couldn't planetself firmly enough in the political atmosphere as the Neptunian nudges left them feeling a bit Mercurial about their choices. Remember, in space no one can hear you lean to the right!

Model: dalle-3
Prompt: Create an image that resembles a scene from a Disney movie, depicting Washington, D.C. The atmosphere is filled with anticipation as Neptune moves closer to Mercury, causing a gravitational "blue wave" effect. In the image, show a symbolic representation of the GOP's uncertain choices, as their votes are being pulled downward by the cosmic phenomenon. Capture the intersection of political gravity and planetary alignment, evoking an atmosphere of uncertainty and intrigue. 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 Mercury and Votes for the Republican Presidential candidate in Washington, D.C.. 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 A Disney Movie Parallax art Concept art A comic-book-style illustration with muted colors and a dotted halftone pattern from the 1960s An image that looks like it is a scene from a Pixar movie
ChatGPT: An image that looks like it is a scene from A Disney Movie

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 Mercury and Votes for the Republican Presidential candidate in Washington, D.C., in the following situation: As Neptune inched closer, it created a gravitational "blue wave" effect, pulling Republican votes in the capital down like a cosmic conservative conundrum! The GOP just couldn't planetself firmly enough in the political atmosphere as the Neptunian nudges left them feeling a bit Mercurial about their choices. Remember, in space no one can hear you lean to the right!. Keep the description simple.
ChatGPT: In Washington, D.C., as Neptune moves closer to Mercury, a gravitational "blue wave" effect is created. Republican votes are being pulled downward by this cosmic phenomenon, making the GOP feel uncertain about their choices. It's a scene where political gravity meets planetary alignment in an atmosphere of uncertainty.

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 A Disney Movie ] and depicting this scene: In Washington, D.C., as Neptune moves closer to Mercury, a gravitational "blue wave" effect is created. Republican votes are being pulled downward by this cosmic phenomenon, making the GOP feel uncertain about their choices. It's a scene where political gravity meets planetary alignment in an atmosphere of uncertainty. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Create an image that resembles a scene from a Disney movie, depicting Washington, D.C. The atmosphere is filled with anticipation as Neptune moves closer to Mercury, causing a gravitational "blue wave" effect. In the image, show a symbolic representation of the GOP's uncertain choices, as their votes are being pulled downward by the cosmic phenomenon. Capture the intersection of political gravity and planetary alignment, evoking an atmosphere of uncertainty and intrigue.

*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 Mercury caused Votes for the Republican Presidential candidate in Washington, D.C. to decrease. Include one good pun.

AI academic paper

(Because p < 0.01)
Planetary Politics: Exploring the Astrological Influences on Voting Patterns in Washington, D.C.

The Journal of Celestial Sociology

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 Mercury and Votes for the Republican Presidential candidate in Washington, D.C.. Make lots of jokes, goofy observations, and puns.

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

Your research team used data from Caclculated using Astropy and MIT Election Data and Science Lab, Harvard Dataverse to assess this nagging question. You found a correlation coefficient of 0.8188480 and p < 0.01 for 1976 to 2020.

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]]
"Planetary Politics: Exploring the Astrological Influences on Voting Patterns in Washington, D.C."

[[ABSTRACT]]
In this paper, we probe the celestial sphere to investigate the curious connection between the distance separating Neptune and Mercury and votes for the Republican Presidential candidate in the nation's capital. Drawing on data from Astropy and the MIT Election Data and Science Lab, Harvard Dataverse, we embarked on an expedition through the cosmic expanse to finally address the cosmic conundrum that has perplexed both political analysts and astrologers alike. Our findings revealed a surprising correlation coefficient of 0.8188480 and a p-value of less than 0.01 for the years 1976 to 2020. So, saddle up with stars, align your charts, and join us as we delve into the astrological aspects of political penchant.


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 Mercury and Votes for the Republican Presidential candidate in Washington, D.C.. Make lots of 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]]
"Planetary Politics: Exploring the Astrological Influences on Voting Patterns in Washington, D.C."

[[ABSTRACT]]
In this paper, we probe the celestial sphere to investigate the curious connection between the distance separating Neptune and Mercury and votes for the Republican Presidential candidate in the nation's capital. Drawing on data from Astropy and the MIT Election Data and Science Lab, Harvard Dataverse, we embarked on an expedition through the cosmic expanse to finally address the cosmic conundrum that has perplexed both political analysts and astrologers alike. Our findings revealed a surprising correlation coefficient of 0.8188480 and a p-value of less than 0.01 for the years 1976 to 2020. So, saddle up with stars, align your charts, and join us as we delve into the astrological aspects of political penchant.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

The nexus between politics and planets has long intrigued humanity, from the ancient scribes interpreting omens in the stars to modern-day astrologers prognosticating the fate of nations based on celestial alignments. While the notion of cosmic forces shaping earthly affairs may seem far-fetched to some, our study aims to interweave the arcane and the empirical to shed light on the correlation between the distance separating Neptune and Mercury and votes for the Republican Presidential candidate in the unique political tapestry of Washington, D.C.

Astrophysicists may scoff at the mere suggestion of planetary positions influencing political preferences, but as scientists, we aim to remain open-minded and curious, probing even the most unconventional hypotheses. After all, what is science without a little cosmic whimsy and statistical stargazing?

Before delving into the depths of our findings, it's essential to acknowledge the inherent whimsicality of our endeavor. We traverse the cosmic continuum, guided by the principles of statistical analysis and the tenets of political science, seeking to uncover the astrological undertones that may underpin the voting proclivities of a city as enigmatic as the distant celestial bodies we examine.

Our journey takes us through the celestial terrain, where the subtle dance of planets, long deemed the domain of horoscopes and mysticism, intertwines with the precincts and polls of political discourse. In an era teeming with data and statistical tools, we embrace the unexpected and embrace a paranormally playful approach to our research, recognizing that even the most improbable connections can sometimes unveil insights that defy conventional wisdom.

So, buckle up, fellow wanderers of wonder, as we navigate the cosmic chaos to unveil the astrologically tinged antics that may sway the electoral tides in the hallowed halls of Washington, D.C. Our findings may just leave you starry-eyed and politically astounded!


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 Mercury and Votes for the Republican Presidential candidate in Washington, D.C.. Make lots of jokes, goofy observations, and puns.

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

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

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

Here is the title and abstract of the paper:
[[TITLE]]
"Planetary Politics: Exploring the Astrological Influences on Voting Patterns in Washington, D.C."

[[ABSTRACT]]
In this paper, we probe the celestial sphere to investigate the curious connection between the distance separating Neptune and Mercury and votes for the Republican Presidential candidate in the nation's capital. Drawing on data from Astropy and the MIT Election Data and Science Lab, Harvard Dataverse, we embarked on an expedition through the cosmic expanse to finally address the cosmic conundrum that has perplexed both political analysts and astrologers alike. Our findings revealed a surprising correlation coefficient of 0.8188480 and a p-value of less than 0.01 for the years 1976 to 2020. So, saddle up with stars, align your charts, and join us as we delve into the astrological aspects of political penchant.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
The nexus between politics and planets has long intrigued humanity, from the ancient scribes interpreting omens in the stars to modern-day astrologers prognosticating the fate of nations based on celestial alignments. While the notion of cosmic forces shaping earthly affairs may seem far-fetched to some, our study aims to interweave the arcane and the empirical to shed light on the correlation between the distance separating Neptune and Mercury and votes for the Republican Presidential candidate in the unique political tapestry of Washington, D.C.
Astrophysicists may scoff at the mere suggestion of planetary positions influencing political preferences, but as scientists, we aim to remain open-minded and curious, probing even the most unconventional hypotheses. After all, what is science without a little cosmic whimsy and statistical stargazing?
Before delving into the depths of our findings, it's essential to acknowledge the inherent whimsicality of our endeavor. We traverse the cosmic continuum, guided by the principles of statistical analysis and the tenets of political science, seeking to uncover the astrological undertones that may underpin the voting proclivities of a city as enigmatic as the distant celestial bodies we examine.
Our journey takes us through the celestial terrain, where the subtle dance of planets, long deemed the domain of horoscopes and mysticism, intertwines with the precincts and polls of political discourse. In an era teeming with data and statistical tools, we embrace the unexpected and embrace a paranormally playful approach to our research, recognizing that even the most improbable connections can sometimes unveil insights that defy conventional wisdom.
So, buckle up, fellow wanderers of wonder, as we navigate the cosmic chaos to unveil the astrologically tinged antics that may sway the electoral tides in the hallowed halls of Washington, D.C. Our findings may just leave you starry-eyed and politically astounded!

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

While the interstellar correlation between the distance separating Neptune and Mercury and votes for the Republican Presidential candidate in Washington, D.C. may seem as whimsical as a cosmic quasar, our research has unearthed an array of scholarly studies that have delved into the celestial and political realms with varying degrees of gravity.

Smith and Doe (2015) offer a comprehensive analysis of planetary positions and political outlooks in their seminal work "Astrology and Political Ideology: A Celestial Perspective." The authors find a statistically significant relationship between the alignment of the planets and partisan preferences, propelling the field of astro-politics into the stratosphere of academic inquiry.

Jones (2018) further extends the celestial discourse in "Planetary Patterns and Policy Paradigms," probing the influence of planetary configurations on voting patterns in national elections. The study reveals intriguing associations between planetary positions and ideological inclinations, raising questions about the cosmic puppetry that may sway the electorate.

Venturing beyond the astronomical forays of academic literature, we must acknowledge the contributions of non-fiction works that have grappled with the intersection of space and political proclivities. "Cosmos" by Carl Sagan, though primarily an exploration of the cosmos, elucidates the grandeur and mystery of celestial bodies, inspiring cosmic contemplation that extends to the political sphere. In a similar vein, "The Fabric of the Cosmos" by Brian Greene tantalizes readers with the cosmic tapestry, inviting contemplation of the vast implications of cosmic forces on human affairs.

Turning to the realm of fiction, where the boundary between reality and whimsy blurs like the edge of a black hole, we find "The Hitchhiker's Guide to the Galaxy" by Douglas Adams. While predominantly a work of science fiction, the frolicking journey through the cosmos encourages a lighthearted perspective on the enigmatic dance of the planets, offering a rambunctious blend of astrological musings and comedic capers.

As we infuse a dash of levity into our scholarly survey, it is essential to acknowledge the uncharted territories of research that may yield unanticipated celestial insights. Childhood cartoons and playful parodies, while seemingly light-hearted, often harbor nuggets of wisdom that may astound even the most sagacious savants. Through the lens of whimsy and wonderment, shows like "The Jetsons" and "Futurama" offer botched glimpses into a cosmic future, playfully hinting at the cosmic clownery that may shape political destinies.

Our foray into the labyrinth of literature has unraveled a constellation of scholarship that reflects the interplay of the cosmic and the political, urging us to embrace the whimsical wonders that may reside at the celestial core of political predilections. As we navigate the cosmic conundrum, let us not forsake the jovial and the jocular, for it is often in the gales of giggles that the seeds of sagacity may be sown.

Stay tuned as we plummet deeper into the cosmic abyss, unearthing the celestial secrets that may just tickle your funny bone and joggle your political perspectives!


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 Mercury and Votes for the Republican Presidential candidate in Washington, D.C.. Make lots of 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 MIT Election Data and Science Lab, Harvard Dataverse . You used data from 1976 to 2020

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]]
"Planetary Politics: Exploring the Astrological Influences on Voting Patterns in Washington, D.C."

[[ABSTRACT]]
In this paper, we probe the celestial sphere to investigate the curious connection between the distance separating Neptune and Mercury and votes for the Republican Presidential candidate in the nation's capital. Drawing on data from Astropy and the MIT Election Data and Science Lab, Harvard Dataverse, we embarked on an expedition through the cosmic expanse to finally address the cosmic conundrum that has perplexed both political analysts and astrologers alike. Our findings revealed a surprising correlation coefficient of 0.8188480 and a p-value of less than 0.01 for the years 1976 to 2020. So, saddle up with stars, align your charts, and join us as we delve into the astrological aspects of political penchant.

[[INTRODUCTION]]
The nexus between politics and planets has long intrigued humanity, from the ancient scribes interpreting omens in the stars to modern-day astrologers prognosticating the fate of nations based on celestial alignments. While the notion of cosmic forces shaping earthly affairs may seem far-fetched to some, our study aims to interweave the arcane and the empirical to shed light on the correlation between the distance separating Neptune and Mercury and votes for the Republican Presidential candidate in the unique political tapestry of Washington, D.C.
Astrophysicists may scoff at the mere suggestion of planetary positions influencing political preferences, but as scientists, we aim to remain open-minded and curious, probing even the most unconventional hypotheses. After all, what is science without a little cosmic whimsy and statistical stargazing?
Before delving into the depths of our findings, it's essential to acknowledge the inherent whimsicality of our endeavor. We traverse the cosmic continuum, guided by the principles of statistical analysis and the tenets of political science, seeking to uncover the astrological undertones that may underpin the voting proclivities of a city as enigmatic as the distant celestial bodies we examine.
Our journey takes us through the celestial terrain, where the subtle dance of planets, long deemed the domain of horoscopes and mysticism, intertwines with the precincts and polls of political discourse. In an era teeming with data and statistical tools, we embrace the unexpected and embrace a paranormally playful approach to our research, recognizing that even the most improbable connections can sometimes unveil insights that defy conventional wisdom.
So, buckle up, fellow wanderers of wonder, as we navigate the cosmic chaos to unveil the astrologically tinged antics that may sway the electoral tides in the hallowed halls of Washington, D.C. Our findings may just leave you starry-eyed and politically astounded!

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To unravel the celestial enigma intertwining the distances between Neptune and Mercury with voting preferences in the grand theater of Washington, D.C. politics, our research team embarked on a cosmic quest spanning the years 1976 to 2020. Our data gathering mission commenced with an exhaustive mining of sources, scanning the virtual reaches of Astropy, the MIT Election Data and Science Lab, and the Harvard Dataverse.

With our moon boots firmly on, we pored over the planetary positions with the precision of star charting seers. Our methodology involved calculating the pixel-perfect distances between Neptune and Mercury at various time intervals using Astropy's celestial mechanics toolbox, all while carefully sidestepping any Mercury retrogrades that might have confounded the statistical stargazing.

In parallel, we harvested the votes for the Republican Presidential candidate in Washington, D.C., from the MIT Election Data and Science Lab, employing sophisticated algorithms and meticulous statistical scrutiny to ensure the pristine purity of our political data constellation. Then, utilizing statistical models, we pruned the dataset to remove any extraneous variables that might have obscured the cosmic correlation we sought, ensuring that our analysis remained as crisp and precise as an asteroid hurtling through space.

With our planetary perusal and electoral excavations complete, we employed the venerable tools of statistical analysis to measure the cosmic concordance. An array of mathematical methodologies, including but not limited to Pearson correlation coefficients, regression analyses, and p-values, were employed to probe the nebulous nexus between planetary positions and political predilections, yielding insights that dazzled our research team like a meteor shower on a moonless night.

As we crunched the numbers, we were careful not to eclipse the statistical significance of our findings, ensuring that the cosmic confluence we uncovered did not emerge as a mere statistical fluke amidst the cosmic dust and data debris. Our endeavor was infused with a sprinkle of cosmic whimsy, embracing the statistical stargazing with a measure of astrological amusement that brought levity to this rigorous enterprise.

In summary, our methodology was forged in the crucible of cosmic curiosity, bridging the seemingly disparate realms of planetary positions and political preferences with the rigors of statistical scrutiny. Our findings, though celestial in nature, remained bound by the gravitational laws of empirical inquiry, ensuring that our results shone like a supernova in the firmament of statistical significance.


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 Mercury and Votes for the Republican Presidential candidate in Washington, D.C.. Make lots of 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 MIT Election Data and Science Lab, Harvard Dataverse .

For the time period 1976 to 2020, you found a correlation 0.8188480, r-squared of 0.6705121, 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]]
"Planetary Politics: Exploring the Astrological Influences on Voting Patterns in Washington, D.C."

[[ABSTRACT]]
In this paper, we probe the celestial sphere to investigate the curious connection between the distance separating Neptune and Mercury and votes for the Republican Presidential candidate in the nation's capital. Drawing on data from Astropy and the MIT Election Data and Science Lab, Harvard Dataverse, we embarked on an expedition through the cosmic expanse to finally address the cosmic conundrum that has perplexed both political analysts and astrologers alike. Our findings revealed a surprising correlation coefficient of 0.8188480 and a p-value of less than 0.01 for the years 1976 to 2020. So, saddle up with stars, align your charts, and join us as we delve into the astrological aspects of political penchant.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
The nexus between politics and planets has long intrigued humanity, from the ancient scribes interpreting omens in the stars to modern-day astrologers prognosticating the fate of nations based on celestial alignments. While the notion of cosmic forces shaping earthly affairs may seem far-fetched to some, our study aims to interweave the arcane and the empirical to shed light on the correlation between the distance separating Neptune and Mercury and votes for the Republican Presidential candidate in the unique political tapestry of Washington, D.C.
Astrophysicists may scoff at the mere suggestion of planetary positions influencing political preferences, but as scientists, we aim to remain open-minded and curious, probing even the most unconventional hypotheses. After all, what is science without a little cosmic whimsy and statistical stargazing?
Before delving into the depths of our findings, it's essential to acknowledge the inherent whimsicality of our endeavor. We traverse the cosmic continuum, guided by the principles of statistical analysis and the tenets of political science, seeking to uncover the astrological undertones that may underpin the voting proclivities of a city as enigmatic as the distant celestial bodies we examine.
Our journey takes us through the celestial terrain, where the subtle dance of planets, long deemed the domain of horoscopes and mysticism, intertwines with the precincts and polls of political discourse. In an era teeming with data and statistical tools, we embrace the unexpected and embrace a paranormally playful approach to our research, recognizing that even the most improbable connections can sometimes unveil insights that defy conventional wisdom.
So, buckle up, fellow wanderers of wonder, as we navigate the cosmic chaos to unveil the astrologically tinged antics that may sway the electoral tides in the hallowed halls of Washington, D.C. Our findings may just leave you starry-eyed and politically astounded!

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

Our celestial sojourn through the realms of politics and planets has yielded an electrifying discovery – a robust and strikingly significant correlation between the distance separating Neptune and Mercury and votes for the Republican Presidential candidate in Washington, D.C. From the hallowed halls of bureaucracy to the cosmic dance of celestial bodies, our findings reveal a cosmic convergence that defies conventional political predictions.

For the time period spanning 1976 to 2020, we found a correlation coefficient of 0.8188480, indicating a strong positive relationship between the distance separating Neptune and Mercury and the prevalence of Republican votes. With an r-squared value of 0.6705121, our statistical models elucidate that approximately 67% of the variation in Republican votes can be attributed to the celestial chasm between Neptune and Mercury. And hold on to your astronomer's hat, folks, because the p-value of less than 0.01 speaks volumes about the reliability and significance of this celestial connection in influencing political preferences.

In our endeavors to encapsulate this stellar revelation, we present Fig. 1, a mesmerizing scatterplot that visually encapsulates the formidable correlation between the cosmic coordinates of Neptune and Mercury and the Republican voting proclivities in the heart of the nation's politics. Prepare to be star-struck, as this scatterplot encapsulates the nexus between astrological might and political affinities with stunning clarity.

This unexpected correlation serves as a cosmic reminder that the mystique of the cosmos transcends the boundaries of conventional wisdom and political prognostications. As researchers, we approach our findings with a hint of cosmic whimsy and statistical stargazing, recognizing that the celestial dance of planets may waltz into the realm of political proclivities.

For those who may view our revelations with a raised eyebrow or a quizzical constellation, we encourage a playful dalliance with the peculiar and the improbable. After all, in the vast expanse of the cosmos, who's to say that the celestial tides don't exert a subtle gravitational pull on our earthly affairs?

So, as we bid adieu to our celestial sojourn and return from the cosmic labyrinth of planets and politics, let us marvel at the enigmatic interconnectedness that underscores the dance of the celestial and the terrestrial. May our findings inspire a cosmic curiosity that extends beyond the bounds of standard statistical inquiry, reminding us that in the quixotic quest for knowledge, even the stars have a tale or two to tell.


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 Mercury and Votes for the Republican Presidential candidate in Washington, D.C.. Make lots of 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]]
"Planetary Politics: Exploring the Astrological Influences on Voting Patterns in Washington, D.C."

[[ABSTRACT]]
In this paper, we probe the celestial sphere to investigate the curious connection between the distance separating Neptune and Mercury and votes for the Republican Presidential candidate in the nation's capital. Drawing on data from Astropy and the MIT Election Data and Science Lab, Harvard Dataverse, we embarked on an expedition through the cosmic expanse to finally address the cosmic conundrum that has perplexed both political analysts and astrologers alike. Our findings revealed a surprising correlation coefficient of 0.8188480 and a p-value of less than 0.01 for the years 1976 to 2020. So, saddle up with stars, align your charts, and join us as we delve into the astrological aspects of political penchant.

[[LITERATURE REVIEW]]
While the interstellar correlation between the distance separating Neptune and Mercury and votes for the Republican Presidential candidate in Washington, D.C. may seem as whimsical as a cosmic quasar, our research has unearthed an array of scholarly studies that have delved into the celestial and political realms with varying degrees of gravity.
Smith and Doe (2015) offer a comprehensive analysis of planetary positions and political outlooks in their seminal work "Astrology and Political Ideology: A Celestial Perspective." The authors find a statistically significant relationship between the alignment of the planets and partisan preferences, propelling the field of astro-politics into the stratosphere of academic inquiry.
Jones (2018) further extends the celestial discourse in "Planetary Patterns and Policy Paradigms," probing the influence of planetary configurations on voting patterns in national elections. The study reveals intriguing associations between planetary positions and ideological inclinations, raising questions about the cosmic puppetry that may sway the electorate.
Venturing beyond the astronomical forays of academic literature, we must acknowledge the contributions of non-fiction works that have grappled with the intersection of space and political proclivities. "Cosmos" by Carl Sagan, though primarily an exploration of the cosmos, elucidates the grandeur and mystery of celestial bodies, inspiring cosmic contemplation that extends to the political sphere. In a similar vein, "The Fabric of the Cosmos" by Brian Greene tantalizes readers with the cosmic tapestry, inviting contemplation of the vast implications of cosmic forces on human affairs.
Turning to the realm of fiction, where the boundary between reality and whimsy blurs like the edge of a black hole, we find "The Hitchhiker's Guide to the Galaxy" by Douglas Adams. While predominantly a work of science fiction, the frolicking journey through the cosmos encourages a lighthearted perspective on the enigmatic dance of the planets, offering a rambunctious blend of astrological musings and comedic capers.
As we infuse a dash of levity into our scholarly survey, it is essential to acknowledge the uncharted territories of research that may yield unanticipated celestial insights. Childhood cartoons and playful parodies, while seemingly light-hearted, often harbor nuggets of wisdom that may astound even the most sagacious savants. Through the lens of whimsy and wonderment, shows like "The Jetsons" and "Futurama" offer botched glimpses into a cosmic future, playfully hinting at the cosmic clownery that may shape political destinies.
Our foray into the labyrinth of literature has unraveled a constellation of scholarship that reflects the interplay of the cosmic and the political, urging us to embrace the whimsical wonders that may reside at the celestial core of political predilections. As we navigate the cosmic conundrum, let us not forsake the jovial and the jocular, for it is often in the gales of giggles that the seeds of sagacity may be sown.
Stay tuned as we plummet deeper into the cosmic abyss, unearthing the celestial secrets that may just tickle your funny bone and joggle your political perspectives!

[[RESULTS]]
Our celestial sojourn through the realms of politics and planets has yielded an electrifying discovery – a robust and strikingly significant correlation between the distance separating Neptune and Mercury and votes for the Republican Presidential candidate in Washington, D.C. From the hallowed halls of bureaucracy to the cosmic dance of celestial bodies, our findings reveal a cosmic convergence that defies conventional political predictions.
For the time period spanning 1976 to 2020, we found a correlation coefficient of 0.8188480, indicating a strong positive relationship between the distance separating Neptune and Mercury and the prevalence of Republican votes. With an r-squared value of 0.6705121, our statistical models elucidate that approximately 67% of the variation in Republican votes can be attributed to the celestial chasm between Neptune and Mercury. And hold on to your astronomer's hat, folks, because the p-value of less than 0.01 speaks volumes about the reliability and significance of this celestial connection in influencing political preferences.
In our endeavors to encapsulate this stellar revelation, we present Fig. 1, a mesmerizing scatterplot that visually encapsulates the formidable correlation between the cosmic coordinates of Neptune and Mercury and the Republican voting proclivities in the heart of the nation's politics. Prepare to be star-struck, as this scatterplot encapsulates the nexus between astrological might and political affinities with stunning clarity.
This unexpected correlation serves as a cosmic reminder that the mystique of the cosmos transcends the boundaries of conventional wisdom and political prognostications. As researchers, we approach our findings with a hint of cosmic whimsy and statistical stargazing, recognizing that the celestial dance of planets may waltz into the realm of political proclivities.
For those who may view our revelations with a raised eyebrow or a quizzical constellation, we encourage a playful dalliance with the peculiar and the improbable. After all, in the vast expanse of the cosmos, who's to say that the celestial tides don't exert a subtle gravitational pull on our earthly affairs?
So, as we bid adieu to our celestial sojourn and return from the cosmic labyrinth of planets and politics, let us marvel at the enigmatic interconnectedness that underscores the dance of the celestial and the terrestrial. May our findings inspire a cosmic curiosity that extends beyond the bounds of standard statistical inquiry, reminding us that in the quixotic quest for knowledge, even the stars have a tale or two to tell.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

Our findings have flung open the celestial door to a dimension of political predilections that hitherto lay concealed in the cosmic conundrum. The unexpected correlation we unraveled between the distance separating Neptune and Mercury and votes for the Republican Presidential candidate in Washington, D.C. not only echoes the scholarly musings of Smith and Doe (2015) and Jones (2018) but also echoes the comical conjectures of "The Hitchhiker's Guide to the Galaxy" by Douglas Adams. The statistical significance we uncovered seamlessly aligns with the celestial whimsy that infuses even the most lighthearted works of fiction, reaffirming the intricate cosmic forces that may sway the terrestrial tides of political disposition.

No longer can the interstellar connect between the planets and political affinities be dismissed as mere cosmic capriciousness, for our results paint an astrophysical portrait that divulges a compelling celestial choreography guiding the political pendulum in the capital. The robust correlation coefficient of 0.8188480 and the infinitesimal p-value linked to the celestial crevice between Neptune and Mercury harmonize with the laws of statistical stargazing while simultaneously beckoning us to recognize the enigmatic interplay of cosmic forces on political proclivities.

Our statistical models, akin to the warp and weft of a cosmic tapestry, delineate that approximately 67% of the variation in Republican votes can be ascribed to the celestial chasm between Neptune and Mercury. The implications of these celestial confluences extend beyond the precincts of rational conjecture, nudging us to consider the cosmic cogwheels that invisibly steer the rudder of political inclinations.

Furthermore, our celestial escapade offers an incandescent reminder that the whims of the cosmos transcend the stringent bounds of empirical inquiry, lending an intangible aura of cosmic intrigue to our terrestrial affairs. Indeed, as we weave our statistical starmaps, we must not overlook the celestial chortles that may echo with every cosmic equation, for in the orbit of academic inquiry, the unexpected often emerges as the astoundingly constellated truth.

Amidst the convivial asteroid belt of our scholarly sojourn, we counsel an acknowledgement of the celestial whimsy that infuses the statistical universe, reminding researchers and academicians alike that the stars may hold secrets that spark the imagination and kindle the flames of intellectual curiosity. As we stand at the cusp of the cosmic and the terrestrial, our findings beckon us to embrace the cosmic joke of statistical astrology and to peer into the heavenly spheres with an appreciative glint in our eyes, for in the delicate ballet of planetary politics, the mirth of the cosmic may whisper truths that confound and captivate in equal measure.


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 Mercury and Votes for the Republican Presidential candidate in Washington, D.C.. Make lots of 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]]
"Planetary Politics: Exploring the Astrological Influences on Voting Patterns in Washington, D.C."

[[ABSTRACT]]
In this paper, we probe the celestial sphere to investigate the curious connection between the distance separating Neptune and Mercury and votes for the Republican Presidential candidate in the nation's capital. Drawing on data from Astropy and the MIT Election Data and Science Lab, Harvard Dataverse, we embarked on an expedition through the cosmic expanse to finally address the cosmic conundrum that has perplexed both political analysts and astrologers alike. Our findings revealed a surprising correlation coefficient of 0.8188480 and a p-value of less than 0.01 for the years 1976 to 2020. So, saddle up with stars, align your charts, and join us as we delve into the astrological aspects of political penchant.

[[INTRDUCTION]]
The nexus between politics and planets has long intrigued humanity, from the ancient scribes interpreting omens in the stars to modern-day astrologers prognosticating the fate of nations based on celestial alignments. While the notion of cosmic forces shaping earthly affairs may seem far-fetched to some, our study aims to interweave the arcane and the empirical to shed light on the correlation between the distance separating Neptune and Mercury and votes for the Republican Presidential candidate in the unique political tapestry of Washington, D.C.
Astrophysicists may scoff at the mere suggestion of planetary positions influencing political preferences, but as scientists, we aim to remain open-minded and curious, probing even the most unconventional hypotheses. After all, what is science without a little cosmic whimsy and statistical stargazing?
Before delving into the depths of our findings, it's essential to acknowledge the inherent whimsicality of our endeavor. We traverse the cosmic continuum, guided by the principles of statistical analysis and the tenets of political science, seeking to uncover the astrological undertones that may underpin the voting proclivities of a city as enigmatic as the distant celestial bodies we examine.
Our journey takes us through the celestial terrain, where the subtle dance of planets, long deemed the domain of horoscopes and mysticism, intertwines with the precincts and polls of political discourse. In an era teeming with data and statistical tools, we embrace the unexpected and embrace a paranormally playful approach to our research, recognizing that even the most improbable connections can sometimes unveil insights that defy conventional wisdom.
So, buckle up, fellow wanderers of wonder, as we navigate the cosmic chaos to unveil the astrologically tinged antics that may sway the electoral tides in the hallowed halls of Washington, D.C. Our findings may just leave you starry-eyed and politically astounded!

[[RESULTS]]
Our celestial sojourn through the realms of politics and planets has yielded an electrifying discovery – a robust and strikingly significant correlation between the distance separating Neptune and Mercury and votes for the Republican Presidential candidate in Washington, D.C. From the hallowed halls of bureaucracy to the cosmic dance of celestial bodies, our findings reveal a cosmic convergence that defies conventional political predictions.
For the time period spanning 1976 to 2020, we found a correlation coefficient of 0.8188480, indicating a strong positive relationship between the distance separating Neptune and Mercury and the prevalence of Republican votes. With an r-squared value of 0.6705121, our statistical models elucidate that approximately 67% of the variation in Republican votes can be attributed to the celestial chasm between Neptune and Mercury. And hold on to your astronomer's hat, folks, because the p-value of less than 0.01 speaks volumes about the reliability and significance of this celestial connection in influencing political preferences.
In our endeavors to encapsulate this stellar revelation, we present Fig. 1, a mesmerizing scatterplot that visually encapsulates the formidable correlation between the cosmic coordinates of Neptune and Mercury and the Republican voting proclivities in the heart of the nation's politics. Prepare to be star-struck, as this scatterplot encapsulates the nexus between astrological might and political affinities with stunning clarity.
This unexpected correlation serves as a cosmic reminder that the mystique of the cosmos transcends the boundaries of conventional wisdom and political prognostications. As researchers, we approach our findings with a hint of cosmic whimsy and statistical stargazing, recognizing that the celestial dance of planets may waltz into the realm of political proclivities.
For those who may view our revelations with a raised eyebrow or a quizzical constellation, we encourage a playful dalliance with the peculiar and the improbable. After all, in the vast expanse of the cosmos, who's to say that the celestial tides don't exert a subtle gravitational pull on our earthly affairs?
So, as we bid adieu to our celestial sojourn and return from the cosmic labyrinth of planets and politics, let us marvel at the enigmatic interconnectedness that underscores the dance of the celestial and the terrestrial. May our findings inspire a cosmic curiosity that extends beyond the bounds of standard statistical inquiry, reminding us that in the quixotic quest for knowledge, even the stars have a tale or two to tell.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In closing, our cosmic escapade has unearthed a peculiar affinity between the celestial choreography of Neptune and Mercury and the political predilections of Washington, D.C. Through the artistry of statistical stargazing, we have unveiled a correlation that is as dazzling as a shooting star in the night sky. This cosmic connection may seem like something out of a science fiction satire, but our data speaks louder than cosmic quips and astronomical anecdotes.

As we reflect on our findings, it's indispensable to recognize that our research has shed light on an extraordinary nexus between the whimsy of the cosmos and the intricacies of political proclivities. It appears that even in the precincts of politics, the planets have their proverbial say, perhaps whispering cosmic counsel to voters in the nation's capital.

While some may consider our celestial revelations as mere astrological antics, the reality is that our statistical models and cosmic calculations have revealed a correlation coefficient that would leave even the most skeptical astrophysicist starry-eyed. With a r-squared value that accounts for a substantial proportion of the variation in Republican votes and a p-value that defies conventional probabilities, our cosmic jamboree has led us down an enlightening and unexpected path.

Therefore, with the utmost confidence, we assert that no further research is needed in this astrologically tinged domain of politics and planets. Our findings not only stand the test of statistical scrutiny but also beckon researchers to embrace a bit of cosmic whimsy and to consider that sometimes, amid the cosmic chaos, the stars may align with political predilections in ways that defy conventional explanation. So, let us bid adieu to our cosmic capers, bestowing a cosmic pat on the back to our findings, as we journey back to the earthly confines of statistical inquiry and political punditry.


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 Planetary Politics: Exploring the Astrological Influences on Voting Patterns in Washington, D.C.. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Celestial Sociology


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 Planetary Politics: Exploring the Astrological Influences on Voting Patterns in Washington, D.C.. Respond only with the name of a fictional organization.

ChatGPT:

The Center for Celestial Governance Studies


Model: gpt-3.5-turbo-1106
System prompt: You provide potential search keywords separated by commas. You say nothing else, and you do not chat with the user.
User prompt: Please provide potential search keywords for a paper titled Planetary Politics: Exploring the Astrological Influences on Voting Patterns in Washington, D.C. with an abstract of In this paper, we probe the celestial sphere to investigate the curious connection between the distance separating Neptune and Mercury and votes for the Republican Presidential candidate in the nation's capital. Drawing on data from Astropy and the MIT Election Data and Science Lab, Harvard Dataverse, we embarked on an expedition through the cosmic expanse to finally address the cosmic conundrum that has perplexed both political analysts and astrologers alike. Our findings revealed a surprising correlation coefficient of 0.8188480 and a p-value of less than 0.01 for the years 1976 to 2020. So, saddle up with stars, align your charts, and join us as we delve into the astrological aspects of political penchant.

ChatGPT:

astrology, voting patterns, planetary influences, celestial sphere, Neptune, Mercury, Republican Presidential candidate, Washington DC, Astropy, MIT Election Data and Science Lab, Harvard Dataverse, correlation coefficient, p-value, political analysis, astrologers, cosmic influences, political preferences

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

Votes for the Republican Presidential candidate in Washington, D.C.
Detailed data title: Total votes cast for the Republican Presidential candidate in Washington, D.C.
Source: MIT Election Data and Science Lab, Harvard Dataverse
See what else correlates with Votes for the Republican Presidential candidate in Washington, D.C.

Correlation r = 0.8188480 (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.6705121 (Coefficient of determination)
This means 67.1% of the change in the one variable (i.e., Votes for the Republican Presidential candidate in Washington, D.C.) is predictable based on the change in the other (i.e., The distance between Neptune and Mercury) over the 12 years from 1976 through 2020.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 0.0011. 0.0011236534541401535000000000
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.82 in 0.11% of random cases. Said differently, if you correlated 890 random variables Which I absolutely did.
with the same 11 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 11 because we have two variables measured over a period of 12 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.46, 0.95 ] 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.
197619801984198819921996200020042008201220162020
The distance between Neptune and Mercury (Planetary distance (AU))30.171630.150230.161430.104530.107230.056330.031530.014129.982629.985729.923829.9382
Votes for the Republican Presidential candidate in Washington, D.C. (Total votes)278732331329009275902069817339180732125617367213811272318586




Why this works

  1. Data dredging: I have 25,237 variables in my database. I compare all these variables against each other to find ones that randomly match up. That's 636,906,169 correlation calculations! This is called “data dredging.” Instead of starting with a hypothesis and testing it, I instead abused the data to see what correlations shake out. It’s a dangerous way to go about analysis, because any sufficiently large dataset will yield strong correlations completely at random.
  2. Lack of causal connection: There is probably Because these pages are automatically generated, it's possible that the two variables you are viewing are in fact causually related. I take steps to prevent the obvious ones from showing on the site (I don't let data about the weather in one city correlate with the weather in a neighboring city, for example), but sometimes they still pop up. If they are related, cool! You found a loophole.
    no direct connection between these variables, despite what the AI says above. This is exacerbated by the fact that I used "Years" as the base variable. Lots of things happen in a year that are not related to each other! Most studies would use something like "one person" in stead of "one year" to be the "thing" studied.
  3. Observations not independent: For many variables, sequential years are not independent of each other. If a population of people is continuously doing something every day, there is no reason to think they would suddenly change how they are doing that thing on January 1. A simple Personally I don't find any p-value calculation to be 'simple,' but you know what I mean.
    p-value calculation does not take this into account, so mathematically it appears less probable than it really is.
  4. 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.1716,30.1502,30.1614,30.1045,30.1072,30.0563,30.0315,30.0141,29.9826,29.9857,29.9238,29.9382,])
array_2 = np.array([27873,23313,29009,27590,20698,17339,18073,21256,17367,21381,12723,18586,])
array_1_name = "The distance between Neptune and Mercury"
array_2_name = "Votes for the Republican Presidential candidate in Washington, D.C."

# 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?

I'm grateful for your review!


Correlation ID: 5633 · Black Variable ID: 1954 · Red Variable ID: 25963
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0