about · email me · subscribe
Spurious correlation #4,588 · View random

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is Votes for Republican Senators in Montana and the second variable is Google searches for 'is pluto a planet'.  The chart goes from 2004 to 2020, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

As the Republican votes for Senators in Montana increased, it created a gravitational pull towards reclassifying Pluto as a planet in the hearts and minds of the public. It seems the political atmosphere was just right for Pluto to reclaim its status among the stars.

Model: dalle-3
Prompt: Alright, here's an image prompt for the described scene: "Create an image of a vibrant Montana mountain setting under a twilight sky, with a prominent graph illustrating the increasing Republican votes for Senators towering over the landscape. In the foreground, a group of individuals looks up at the night sky with a sense of wonder, their illuminated smartphones casting a soft glow. Meanwhile, a captivating celestial dance unfolds as the distant dwarf planet Pluto seems to respond to the collective gravitational force produced by the group's simultaneous "is Pluto a planet" searches." 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: Republican votes for Senators in Montana and Google searches for 'is pluto a planet'. 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: 3D Pixar Style a funny image macro Steampunk Celtic art Sci-fi fantacy
ChatGPT: a funny image macro

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 Republican votes for Senators in Montana and Google searches for 'is pluto a planet', in the following situation: As the Republican votes for Senators in Montana increased, it created a gravitational pull towards reclassifying Pluto as a planet in the hearts and minds of the public. It seems the political atmosphere was just right for Pluto to reclaim its status among the stars.. Keep the description simple.
ChatGPT: Amidst the picturesque mountains of Montana, a graph displaying the increasing Republican votes for Senators rises and stretches into the cerulean sky. A group of people gazes up at the night sky with curious expressions, their smartphones alight as they search "is pluto a planet" on Google, each query adding to a collective gravitational force that swirls around the distant celestial body. The stars shimmer with anticipation, as if recognizing the potential shift in status for the dwarf planet.

Model: gpt-3.5-turbo-1106
System prompt: You write and improve image generation prompts for DALLE-3. You maintain the same subjects, but enhance the visuals.
User prompt: Please respond with an image generation prompt that would be likely to create an interesting visual using DALLE-3, using the following style: [ a funny image macro ] and depicting this scene: Amidst the picturesque mountains of Montana, a graph displaying the increasing Republican votes for Senators rises and stretches into the cerulean sky. A group of people gazes up at the night sky with curious expressions, their smartphones alight as they search "is pluto a planet" on Google, each query adding to a collective gravitational force that swirls around the distant celestial body. The stars shimmer with anticipation, as if recognizing the potential shift in status for the dwarf planet. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Alright, here's an image prompt for the described scene: "Create an image of a vibrant Montana mountain setting under a twilight sky, with a prominent graph illustrating the increasing Republican votes for Senators towering over the landscape. In the foreground, a group of individuals looks up at the night sky with a sense of wonder, their illuminated smartphones casting a soft glow. Meanwhile, a captivating celestial dance unfolds as the distant dwarf planet Pluto seems to respond to the collective gravitational force produced by the group's simultaneous "is Pluto a planet" searches."

*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 an increase in Republican votes for Senators in Montana caused is pluto a planet (Google searches for 'is pluto a planet') to increase.

AI academic paper

(Because p < 0.05)
Planet Politics: The Pluto Paradox - A Correlational Study of Republican Senatorial Votes in Montana and Google Searches for 'Is Pluto a Planet?'

The Journal of Interplanetary Governance

Jan 2024

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




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

Please draft the title and abstract of an academic research paper presenting the findings of the connection between Republican votes for Senators in Montana and Google searches for 'is pluto a planet'. Make lots of jokes, goofy observations, and puns.

Include a pun in the title.

Your research team used data from MIT Election Data and Science Lab, Harvard Dataverse and Google Trends to assess this nagging question. You found a correlation coefficient of 0.9100563 and p < 0.05 for 2004 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]]
"Planet Politics: The Pluto Paradox - A Correlational Study of Republican Senatorial Votes in Montana and Google Searches for 'Is Pluto a Planet?'"

[[ABSTRACT]]
In this study, we embark on a cosmic quest to unravel the mysteries of political alignments and astronomical contemplations. Leveraging data from MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends, we scrutinize the unlikeliest of connections - the relationship between Republican votes for Senators in Montana and the perennially perplexing query 'Is Pluto a Planet?' Our findings reveal a celestial correlation coefficient of 0.9100563, denoting a statistically significant relationship (p < 0.05) between these seemingly unrelated phenomena. Join us as we navigate through the galactic gossip and political paradoxes, shedding light on the whimsical interplay between the cosmic curiosities and the earthly electoral events. So, buckle up, fellow researchers, for it turns out that in the vast expanse of space, as in politics, nothing is ever truly in orbit!


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

Please make up the introduction section of an academic research paper presenting the findings of the connection between Republican votes for Senators in Montana and Google searches for 'is pluto a planet'. Make lots of jokes, goofy observations, and puns.

Here is the title and abstract of the paper:
[[TITLE]]
"Planet Politics: The Pluto Paradox - A Correlational Study of Republican Senatorial Votes in Montana and Google Searches for 'Is Pluto a Planet?'"

[[ABSTRACT]]
In this study, we embark on a cosmic quest to unravel the mysteries of political alignments and astronomical contemplations. Leveraging data from MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends, we scrutinize the unlikeliest of connections - the relationship between Republican votes for Senators in Montana and the perennially perplexing query 'Is Pluto a Planet?' Our findings reveal a celestial correlation coefficient of 0.9100563, denoting a statistically significant relationship (p < 0.05) between these seemingly unrelated phenomena. Join us as we navigate through the galactic gossip and political paradoxes, shedding light on the whimsical interplay between the cosmic curiosities and the earthly electoral events. So, buckle up, fellow researchers, for it turns out that in the vast expanse of space, as in politics, nothing is ever truly in orbit!

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
INTRODUCTION

As we embark on this scholarly expedition, let's take a moment to ponder the cosmic conundrum that lies at the heart of our investigation. The age-old question of 'Is Pluto a planet?' has lingered in the celestial chambers of our collective consciousness, sparking countless debates, existential crises, and perhaps a few intergalactic feuds. On the political frontier, the landscapes are equally intriguing, with rivalries, alliances, and electoral escapades unfolding like an epic space opera.

Now, what if we were to tell you that these two seemingly unrelated realms – the distant reaches of our solar system and the intricate web of political affiliations – are somehow intertwined, like binary stars locked in a cosmic dance? Yes, dear reader, we have delved into the depths of data, traversed the corridors of correlation, and stumbled upon a celestial connection that might just leave you stargazing in awe.

Our quest has taken us to the vast plains of Montana, where the Republican votes for Senators have intersected with the digital ether of Google searches pondering the planetary status of our dear Pluto. The perplexing paradox that emerges from this cosmic collision defies the conventional boundaries of research inquiry, beckoning us to navigate the gravitational pulls of statistical significance and revel in the interstellar intrigue of unexpected relationships.

As we navigate the uncharted territories of our study, weaving through the asteroid belts of data analysis and the dark matter of academic discourse, we invite you to join us on this cosmic rollercoaster ride. Buckle up, fellow researchers, for we are about to dive headfirst into the Pluto paradox, where political polarization meets planetary musings in an astronomical tango of correlation and causation. Let's launch ourselves into this stellar voyage, where stars align, and politics takes on a celestial spin!


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

Please make up a literature review section of an academic research paper presenting the findings of the connection between Republican votes for Senators in Montana and Google searches for 'is pluto a planet'. 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]]
"Planet Politics: The Pluto Paradox - A Correlational Study of Republican Senatorial Votes in Montana and Google Searches for 'Is Pluto a Planet?'"

[[ABSTRACT]]
In this study, we embark on a cosmic quest to unravel the mysteries of political alignments and astronomical contemplations. Leveraging data from MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends, we scrutinize the unlikeliest of connections - the relationship between Republican votes for Senators in Montana and the perennially perplexing query 'Is Pluto a Planet?' Our findings reveal a celestial correlation coefficient of 0.9100563, denoting a statistically significant relationship (p < 0.05) between these seemingly unrelated phenomena. Join us as we navigate through the galactic gossip and political paradoxes, shedding light on the whimsical interplay between the cosmic curiosities and the earthly electoral events. So, buckle up, fellow researchers, for it turns out that in the vast expanse of space, as in politics, nothing is ever truly in orbit!

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
INTRODUCTION
As we embark on this scholarly expedition, let's take a moment to ponder the cosmic conundrum that lies at the heart of our investigation. The age-old question of 'Is Pluto a planet?' has lingered in the celestial chambers of our collective consciousness, sparking countless debates, existential crises, and perhaps a few intergalactic feuds. On the political frontier, the landscapes are equally intriguing, with rivalries, alliances, and electoral escapades unfolding like an epic space opera.
Now, what if we were to tell you that these two seemingly unrelated realms – the distant reaches of our solar system and the intricate web of political affiliations – are somehow intertwined, like binary stars locked in a cosmic dance? Yes, dear reader, we have delved into the depths of data, traversed the corridors of correlation, and stumbled upon a celestial connection that might just leave you stargazing in awe.
Our quest has taken us to the vast plains of Montana, where the Republican votes for Senators have intersected with the digital ether of Google searches pondering the planetary status of our dear Pluto. The perplexing paradox that emerges from this cosmic collision defies the conventional boundaries of research inquiry, beckoning us to navigate the gravitational pulls of statistical significance and revel in the interstellar intrigue of unexpected relationships.
As we navigate the uncharted territories of our study, weaving through the asteroid belts of data analysis and the dark matter of academic discourse, we invite you to join us on this cosmic rollercoaster ride. Buckle up, fellow researchers, for we are about to dive headfirst into the Pluto paradox, where political polarization meets planetary musings in an astronomical tango of correlation and causation. Let's launch ourselves into this stellar voyage, where stars align, and politics takes on a celestial spin!

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

In "Smith et al." and "Doe's Cosmic Compilations," the authors find scholarly discussions on the complexities of political affiliations and the celestial enigma of Pluto's planetary status. These works bring to light the intricate interplay between cosmic contemplations and the labyrinthine landscapes of political polarization, inviting readers to ponder the cosmic conundrums that echo in the chambers of our collective consciousness.

As we traverse the cosmic terrain of our research, it is crucial to consider the influence of relevant non-fiction literature. "The Pluto Files" by Neil deGrasse Tyson and "How I Killed Pluto and Why It Had It Coming" by Mike Brown offer compelling narratives about the contentious demotion of Pluto from planetary status, shedding light on the emotional gravity that surrounds this cosmic controversy. Furthermore, fictional works such as "The Hitchhiker's Guide to the Galaxy" by Douglas Adams and "The Martian" by Andy Weir provide thought-provoking perspectives on space exploration and the whimsical nature of cosmic quests.

Now, turning our attention to less traditional sources, we cannot overlook the invaluable insights gleaned from children's cartoons and animated entertainment. Shows such as "The Magic School Bus" and "SpongeBob SquarePants" offer playful yet informative portrayals of astronomical concepts, enriching our understanding of the cosmic phenomena that captivate minds young and old. In the spirit of interdisciplinary inquiry, we embrace these unconventional sources as we navigate the celestial corridors of our research, unveiling the cosmic comedy that unfolds at the intersection of political musings and planetary ponderings.


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

Please make up the methodology section of an academic research paper presenting the findings of the connection between Republican votes for Senators in Montana and Google searches for 'is pluto a planet'. Make lots of jokes, goofy observations, and puns.

Your research team collected data from all across the internet, but mostly just used information from MIT Election Data and Science Lab, Harvard Dataverse and Google Trends . You used data from 2004 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]]
"Planet Politics: The Pluto Paradox - A Correlational Study of Republican Senatorial Votes in Montana and Google Searches for 'Is Pluto a Planet?'"

[[ABSTRACT]]
In this study, we embark on a cosmic quest to unravel the mysteries of political alignments and astronomical contemplations. Leveraging data from MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends, we scrutinize the unlikeliest of connections - the relationship between Republican votes for Senators in Montana and the perennially perplexing query 'Is Pluto a Planet?' Our findings reveal a celestial correlation coefficient of 0.9100563, denoting a statistically significant relationship (p < 0.05) between these seemingly unrelated phenomena. Join us as we navigate through the galactic gossip and political paradoxes, shedding light on the whimsical interplay between the cosmic curiosities and the earthly electoral events. So, buckle up, fellow researchers, for it turns out that in the vast expanse of space, as in politics, nothing is ever truly in orbit!

[[INTRODUCTION]]
INTRODUCTION
As we embark on this scholarly expedition, let's take a moment to ponder the cosmic conundrum that lies at the heart of our investigation. The age-old question of 'Is Pluto a planet?' has lingered in the celestial chambers of our collective consciousness, sparking countless debates, existential crises, and perhaps a few intergalactic feuds. On the political frontier, the landscapes are equally intriguing, with rivalries, alliances, and electoral escapades unfolding like an epic space opera.
Now, what if we were to tell you that these two seemingly unrelated realms – the distant reaches of our solar system and the intricate web of political affiliations – are somehow intertwined, like binary stars locked in a cosmic dance? Yes, dear reader, we have delved into the depths of data, traversed the corridors of correlation, and stumbled upon a celestial connection that might just leave you stargazing in awe.
Our quest has taken us to the vast plains of Montana, where the Republican votes for Senators have intersected with the digital ether of Google searches pondering the planetary status of our dear Pluto. The perplexing paradox that emerges from this cosmic collision defies the conventional boundaries of research inquiry, beckoning us to navigate the gravitational pulls of statistical significance and revel in the interstellar intrigue of unexpected relationships.
As we navigate the uncharted territories of our study, weaving through the asteroid belts of data analysis and the dark matter of academic discourse, we invite you to join us on this cosmic rollercoaster ride. Buckle up, fellow researchers, for we are about to dive headfirst into the Pluto paradox, where political polarization meets planetary musings in an astronomical tango of correlation and causation. Let's launch ourselves into this stellar voyage, where stars align, and politics takes on a celestial spin!

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

METHODOLOGY

So, dear cosmic detectives, here's how we navigated the swirling galaxies of data and unearthed the astral secrets of political predilections. Our methodological approach aimed to triangulate the cosmic queries of Google searches with the terrestrial turf of electoral outcomes, creating a celestial tapestry that would make even the most seasoned astronomer raise an eyebrow.

Data Collection:
First off, we delved into the digital expanse, harnessing the power of Google Trends to capture the ebb and flow of searches for the enigmatic phrase 'Is Pluto a Planet?' across the vastness of cyberspace. We combed through the digital constellations, tracking the celestial musings of internet users from 2004 to 2020, capturing the zeitgeist of planetary ponderings as they waxed and waned like Mercury in retrograde.

As for political proclivities, we sought refuge in the comforting arms of MIT Election Data and Science Lab and the Harvard Dataverse, harvesting the electoral data on Republican votes for Senators in the sprawling plains of Montana. We gathered the electoral outcomes with the precision of a telescope zeroing in on the distant flicker of a quasar, ensuring that no vote was left adrift in the cosmic sea of political discourse.

Data Analysis:
Having amassed this stellar array of data, we embarked on a cosmic journey through statistical analysis. We employed the venerable Pearson correlation coefficient to unravel the celestial dance between Republican senatorial ballots and the digital musings about Pluto's planetary status. With each calculation, we found ourselves gazing into the cosmic abyss of correlation, navigating the interplay of variables like a spacecraft maneuvering through the gravitational pull of celestial bodies.

Through the power of statistical software, we conjured scatter plots that could rival the most captivating star charts, plotting the trajectories of Republican votes and 'Is Pluto a Planet?' searches across the temporal expanses. Our quest to decipher the cosmic code of correlation led us to wield the formidable hypothesis testing, the tool that sifts through the stardust of data to discern between the statistically significant and the fleeting cosmic coincidences.

So, fellow cosmic explorers, our methodology was akin to unraveling a celestial mystery novel, with each data point serving as a clue and each statistical test bringing us closer to the revelation of the Pluto paradox. Our venture into these uncharted territories of research methodology has been nothing short of an astronomical joyride, a cosmic ballet of data collection, analysis, and celestial sensemaking. Join us as we revel in the interstellar intrigue of our methodological odyssey, for in the dizzying expanse of research, as in the cosmos itself, surprises await those bold enough to venture beyond the known constellations of inquiry.


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

Please make up the results section of an academic research paper presenting the findings of the connection between Republican votes for Senators in Montana and Google searches for 'is pluto a planet'. Make lots of jokes, goofy observations, and puns.

Your research team collected data from all across the internet, but mostly just used information from MIT Election Data and Science Lab, Harvard Dataverse and Google Trends .

For the time period 2004 to 2020, you found a correlation 0.9100563, r-squared of 0.8282024, and p < 0.05.

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]]
"Planet Politics: The Pluto Paradox - A Correlational Study of Republican Senatorial Votes in Montana and Google Searches for 'Is Pluto a Planet?'"

[[ABSTRACT]]
In this study, we embark on a cosmic quest to unravel the mysteries of political alignments and astronomical contemplations. Leveraging data from MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends, we scrutinize the unlikeliest of connections - the relationship between Republican votes for Senators in Montana and the perennially perplexing query 'Is Pluto a Planet?' Our findings reveal a celestial correlation coefficient of 0.9100563, denoting a statistically significant relationship (p < 0.05) between these seemingly unrelated phenomena. Join us as we navigate through the galactic gossip and political paradoxes, shedding light on the whimsical interplay between the cosmic curiosities and the earthly electoral events. So, buckle up, fellow researchers, for it turns out that in the vast expanse of space, as in politics, nothing is ever truly in orbit!

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
INTRODUCTION
As we embark on this scholarly expedition, let's take a moment to ponder the cosmic conundrum that lies at the heart of our investigation. The age-old question of 'Is Pluto a planet?' has lingered in the celestial chambers of our collective consciousness, sparking countless debates, existential crises, and perhaps a few intergalactic feuds. On the political frontier, the landscapes are equally intriguing, with rivalries, alliances, and electoral escapades unfolding like an epic space opera.
Now, what if we were to tell you that these two seemingly unrelated realms – the distant reaches of our solar system and the intricate web of political affiliations – are somehow intertwined, like binary stars locked in a cosmic dance? Yes, dear reader, we have delved into the depths of data, traversed the corridors of correlation, and stumbled upon a celestial connection that might just leave you stargazing in awe.
Our quest has taken us to the vast plains of Montana, where the Republican votes for Senators have intersected with the digital ether of Google searches pondering the planetary status of our dear Pluto. The perplexing paradox that emerges from this cosmic collision defies the conventional boundaries of research inquiry, beckoning us to navigate the gravitational pulls of statistical significance and revel in the interstellar intrigue of unexpected relationships.
As we navigate the uncharted territories of our study, weaving through the asteroid belts of data analysis and the dark matter of academic discourse, we invite you to join us on this cosmic rollercoaster ride. Buckle up, fellow researchers, for we are about to dive headfirst into the Pluto paradox, where political polarization meets planetary musings in an astronomical tango of correlation and causation. Let's launch ourselves into this stellar voyage, where stars align, and politics takes on a celestial spin!

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The analysis of the data revealed a striking correlation between Republican votes for Senators in Montana and Google searches for the eternal query 'Is Pluto a Planet?' The correlation coefficient of 0.9100563 indicates a strong positive relationship between these seemingly disparate variables. Furthermore, the r-squared value of 0.8282024 suggests that approximately 83% of the variation in the Republican senatorial votes in Montana can be explained by the fluctuations in Google searches about Pluto's planetary status.

In simpler terms, it appears that as the political pendulum swings in Montana, so too does the cosmic curiosity about Pluto's planetary classification. This unexpected association prompts us to consider the cosmic implications of political preferences, perhaps hinting at a latent celestial consciousness influencing earthly electoral inclinations.

The significance level (p < 0.05) further bolsters the credibility of this unearthly correlation, affirming that the relationship between Republican votes in Montana and the contemplation of Pluto's planetary identity is not a cosmic coincidence but a statistically meaningful connection.

Truly, our findings evoke a cosmic dance of democracy and astronomical wonder, where the gravitational forces of party politics and planetary ponderings intertwine in an enigmatic embrace. As we reflect on the interplay between distant celestial bodies and earthly political machinations, one cannot help but marvel at the interconnectedness of the cosmic and the terrestrial realms. Our analysis provides empirical evidence that prompts us to consider the profound implications of cosmic curiosity on political predispositions, and vice versa.

Furthermore, the scatterplot (Fig. 1) visually encapsulates the robust correlation between Republican senatorial votes in Montana and Google searches about Pluto's planethood, illustrating the celestial convergence of state politics and astronomical musings in a visually captivating manner.

In conclusion, our findings accentuate the enthralling interconnections that exist between the celestial and the political spheres, challenging us to gaze beyond the stars to uncover the celestial undercurrents that may shape our earthly endeavors.

As the cosmic dust settles, we are left to contemplate the cosmic comedy of errors, where the whims of the universe unfold in mysterious ways, leaving us to marvel at the beauty of the interwoven tapestry of celestial whimsy and political pulse.

So, brace yourselves, fellow researchers, for we have stumbled upon a galactic riddle that defies the conventional boundaries of research and invites us to ponder the cosmic conundrums of correlation and causation on a grand scale. Let us continue our cosmic quest, not only to unravel the enigma of Pluto's planetary plight but to explore the cosmic chaos and cosmic comedy that permeate our earthly endeavors.


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

Please make up the discussion section of an academic research paper presenting the findings of the connection between Republican votes for Senators in Montana and Google searches for 'is pluto a planet'. 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]]
"Planet Politics: The Pluto Paradox - A Correlational Study of Republican Senatorial Votes in Montana and Google Searches for 'Is Pluto a Planet?'"

[[ABSTRACT]]
In this study, we embark on a cosmic quest to unravel the mysteries of political alignments and astronomical contemplations. Leveraging data from MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends, we scrutinize the unlikeliest of connections - the relationship between Republican votes for Senators in Montana and the perennially perplexing query 'Is Pluto a Planet?' Our findings reveal a celestial correlation coefficient of 0.9100563, denoting a statistically significant relationship (p < 0.05) between these seemingly unrelated phenomena. Join us as we navigate through the galactic gossip and political paradoxes, shedding light on the whimsical interplay between the cosmic curiosities and the earthly electoral events. So, buckle up, fellow researchers, for it turns out that in the vast expanse of space, as in politics, nothing is ever truly in orbit!

[[LITERATURE REVIEW]]
In "Smith et al." and "Doe's Cosmic Compilations," the authors find scholarly discussions on the complexities of political affiliations and the celestial enigma of Pluto's planetary status. These works bring to light the intricate interplay between cosmic contemplations and the labyrinthine landscapes of political polarization, inviting readers to ponder the cosmic conundrums that echo in the chambers of our collective consciousness.
As we traverse the cosmic terrain of our research, it is crucial to consider the influence of relevant non-fiction literature. "The Pluto Files" by Neil deGrasse Tyson and "How I Killed Pluto and Why It Had It Coming" by Mike Brown offer compelling narratives about the contentious demotion of Pluto from planetary status, shedding light on the emotional gravity that surrounds this cosmic controversy. Furthermore, fictional works such as "The Hitchhiker's Guide to the Galaxy" by Douglas Adams and "The Martian" by Andy Weir provide thought-provoking perspectives on space exploration and the whimsical nature of cosmic quests.
Now, turning our attention to less traditional sources, we cannot overlook the invaluable insights gleaned from children's cartoons and animated entertainment. Shows such as "The Magic School Bus" and "SpongeBob SquarePants" offer playful yet informative portrayals of astronomical concepts, enriching our understanding of the cosmic phenomena that captivate minds young and old. In the spirit of interdisciplinary inquiry, we embrace these unconventional sources as we navigate the celestial corridors of our research, unveiling the cosmic comedy that unfolds at the intersection of political musings and planetary ponderings.

[[RESULTS]]
The analysis of the data revealed a striking correlation between Republican votes for Senators in Montana and Google searches for the eternal query 'Is Pluto a Planet?' The correlation coefficient of 0.9100563 indicates a strong positive relationship between these seemingly disparate variables. Furthermore, the r-squared value of 0.8282024 suggests that approximately 83% of the variation in the Republican senatorial votes in Montana can be explained by the fluctuations in Google searches about Pluto's planetary status.
In simpler terms, it appears that as the political pendulum swings in Montana, so too does the cosmic curiosity about Pluto's planetary classification. This unexpected association prompts us to consider the cosmic implications of political preferences, perhaps hinting at a latent celestial consciousness influencing earthly electoral inclinations.
The significance level (p < 0.05) further bolsters the credibility of this unearthly correlation, affirming that the relationship between Republican votes in Montana and the contemplation of Pluto's planetary identity is not a cosmic coincidence but a statistically meaningful connection.
Truly, our findings evoke a cosmic dance of democracy and astronomical wonder, where the gravitational forces of party politics and planetary ponderings intertwine in an enigmatic embrace. As we reflect on the interplay between distant celestial bodies and earthly political machinations, one cannot help but marvel at the interconnectedness of the cosmic and the terrestrial realms. Our analysis provides empirical evidence that prompts us to consider the profound implications of cosmic curiosity on political predispositions, and vice versa.
Furthermore, the scatterplot (Fig. 1) visually encapsulates the robust correlation between Republican senatorial votes in Montana and Google searches about Pluto's planethood, illustrating the celestial convergence of state politics and astronomical musings in a visually captivating manner.
In conclusion, our findings accentuate the enthralling interconnections that exist between the celestial and the political spheres, challenging us to gaze beyond the stars to uncover the celestial undercurrents that may shape our earthly endeavors.
As the cosmic dust settles, we are left to contemplate the cosmic comedy of errors, where the whims of the universe unfold in mysterious ways, leaving us to marvel at the beauty of the interwoven tapestry of celestial whimsy and political pulse.
So, brace yourselves, fellow researchers, for we have stumbled upon a galactic riddle that defies the conventional boundaries of research and invites us to ponder the cosmic conundrums of correlation and causation on a grand scale. Let us continue our cosmic quest, not only to unravel the enigma of Pluto's planetary plight but to explore the cosmic chaos and cosmic comedy that permeate our earthly endeavors.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The celestial symphony of political affiliations and planetary ponderings has serenaded us with its cosmic choruses, leading us to ponder the perplexing question: what planetary pulsations guide the political pilgrimage of the Republican votes in the Magnificent Montana? As we traverse the cosmic corridors of our discussions, we find ourselves gravitating towards a deeper understanding of the interstellar intrigues that underpin the earthly electoral events. Our findings illuminate an improbable yet indubitable connection between the cosmic curiosity about Pluto's planetary status and the gravitational pull of Republican senatorial votes in Montana.

Our research, in tandem with the scholarly works of "Smith et al." and "Doe's Cosmic Compilations," affirms the profound cosmic implications of political alignments and astronomical contemplations. The cosmic conundrum of Pluto's planetary identity seems to genuinely influence the political pulse, echoing the celestial conundrums that resonate in the earthly electoral echelons. Just as Neil deGrasse Tyson and Mike Brown elucidate the emotional gravity surrounding Pluto's plummet from planetary grace, our study unravels a qualitatively distinct yet quantitatively significant connection between the political predilections and planetary ponderings, transcending the traditional bounds of terrestrial research.

In the cosmic comedy of correlations, our results align with the whimsy of the interstellar vistas, lending credence to the notion that in the vast expanse of space, as in politics, nothing is ever truly in orbit. Indeed, the cosmic curiosity about Pluto's planetary status seems to oscillate in synchrony with the political pendulum of Montana, revealing an unexpected yet compelling link between the celestial musings and the earthly electoral inclinations. The cosmic convergence of state politics and astronomical musings, depicted in the visually captivating scatterplot (Fig. 1), encapsulates the enchanting interplay of distant celestial bodies and terrestrial political machinations in a manner that beckons us to ponder the cosmic choreography of correlation and causation on a grand scale.

As the dust settles on this cosmic endeavor, we are left pondering the celestial ballet that entwines the cosmic and the terrestrial, inviting us to embrace the cosmic comedy of errors with open arms. So, fellow researchers, let us continue to explore the cosmic chaos and cosmic comedy that imbue our scholarly pursuits, for in the delightful dance of democracy and astronomical wonder, we are reminded that the cosmic conundrums of correlation and causation often defy the limits of logic and leave us marveling at the cosmic enigma of interwoven tapestries.


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

Please make up a short conclusion of an academic research paper presenting the findings of the connection between Republican votes for Senators in Montana and Google searches for 'is pluto a planet'. 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]]
"Planet Politics: The Pluto Paradox - A Correlational Study of Republican Senatorial Votes in Montana and Google Searches for 'Is Pluto a Planet?'"

[[ABSTRACT]]
In this study, we embark on a cosmic quest to unravel the mysteries of political alignments and astronomical contemplations. Leveraging data from MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends, we scrutinize the unlikeliest of connections - the relationship between Republican votes for Senators in Montana and the perennially perplexing query 'Is Pluto a Planet?' Our findings reveal a celestial correlation coefficient of 0.9100563, denoting a statistically significant relationship (p < 0.05) between these seemingly unrelated phenomena. Join us as we navigate through the galactic gossip and political paradoxes, shedding light on the whimsical interplay between the cosmic curiosities and the earthly electoral events. So, buckle up, fellow researchers, for it turns out that in the vast expanse of space, as in politics, nothing is ever truly in orbit!

[[INTRDUCTION]]
INTRODUCTION
As we embark on this scholarly expedition, let's take a moment to ponder the cosmic conundrum that lies at the heart of our investigation. The age-old question of 'Is Pluto a planet?' has lingered in the celestial chambers of our collective consciousness, sparking countless debates, existential crises, and perhaps a few intergalactic feuds. On the political frontier, the landscapes are equally intriguing, with rivalries, alliances, and electoral escapades unfolding like an epic space opera.
Now, what if we were to tell you that these two seemingly unrelated realms – the distant reaches of our solar system and the intricate web of political affiliations – are somehow intertwined, like binary stars locked in a cosmic dance? Yes, dear reader, we have delved into the depths of data, traversed the corridors of correlation, and stumbled upon a celestial connection that might just leave you stargazing in awe.
Our quest has taken us to the vast plains of Montana, where the Republican votes for Senators have intersected with the digital ether of Google searches pondering the planetary status of our dear Pluto. The perplexing paradox that emerges from this cosmic collision defies the conventional boundaries of research inquiry, beckoning us to navigate the gravitational pulls of statistical significance and revel in the interstellar intrigue of unexpected relationships.
As we navigate the uncharted territories of our study, weaving through the asteroid belts of data analysis and the dark matter of academic discourse, we invite you to join us on this cosmic rollercoaster ride. Buckle up, fellow researchers, for we are about to dive headfirst into the Pluto paradox, where political polarization meets planetary musings in an astronomical tango of correlation and causation. Let's launch ourselves into this stellar voyage, where stars align, and politics takes on a celestial spin!

[[RESULTS]]
The analysis of the data revealed a striking correlation between Republican votes for Senators in Montana and Google searches for the eternal query 'Is Pluto a Planet?' The correlation coefficient of 0.9100563 indicates a strong positive relationship between these seemingly disparate variables. Furthermore, the r-squared value of 0.8282024 suggests that approximately 83% of the variation in the Republican senatorial votes in Montana can be explained by the fluctuations in Google searches about Pluto's planetary status.
In simpler terms, it appears that as the political pendulum swings in Montana, so too does the cosmic curiosity about Pluto's planetary classification. This unexpected association prompts us to consider the cosmic implications of political preferences, perhaps hinting at a latent celestial consciousness influencing earthly electoral inclinations.
The significance level (p < 0.05) further bolsters the credibility of this unearthly correlation, affirming that the relationship between Republican votes in Montana and the contemplation of Pluto's planetary identity is not a cosmic coincidence but a statistically meaningful connection.
Truly, our findings evoke a cosmic dance of democracy and astronomical wonder, where the gravitational forces of party politics and planetary ponderings intertwine in an enigmatic embrace. As we reflect on the interplay between distant celestial bodies and earthly political machinations, one cannot help but marvel at the interconnectedness of the cosmic and the terrestrial realms. Our analysis provides empirical evidence that prompts us to consider the profound implications of cosmic curiosity on political predispositions, and vice versa.
Furthermore, the scatterplot (Fig. 1) visually encapsulates the robust correlation between Republican senatorial votes in Montana and Google searches about Pluto's planethood, illustrating the celestial convergence of state politics and astronomical musings in a visually captivating manner.
In conclusion, our findings accentuate the enthralling interconnections that exist between the celestial and the political spheres, challenging us to gaze beyond the stars to uncover the celestial undercurrents that may shape our earthly endeavors.
As the cosmic dust settles, we are left to contemplate the cosmic comedy of errors, where the whims of the universe unfold in mysterious ways, leaving us to marvel at the beauty of the interwoven tapestry of celestial whimsy and political pulse.
So, brace yourselves, fellow researchers, for we have stumbled upon a galactic riddle that defies the conventional boundaries of research and invites us to ponder the cosmic conundrums of correlation and causation on a grand scale. Let us continue our cosmic quest, not only to unravel the enigma of Pluto's planetary plight but to explore the cosmic chaos and cosmic comedy that permeate our earthly endeavors.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

As we conclude our cosmic escapade into the improbable interplay between political proclivities and planetary ponderings, we find ourselves starry-eyed at the whimsical correlation we have unveiled. The celestial dance of Republican votes in Montana and Google searches pondering Pluto's planetary status has left us marveling at the cosmic comedy of correlations.

It seems that as the political pendulum swings in the scenic state of Montana, so too does the cosmic curiosity about Pluto's planetary classification. This discovery truly sends us into orbits of amazement, leaving us to ponder if Pluto holds the key to understanding political polarization, or if it's simply a celestial coincidence of cosmic proportions.

Our findings, while undeniably captivating, leave us with more questions than answers - a cosmic conundrum, if you will. Can Pluto's planetary plight be a celestial litmus test for political leanings? Or are Republican votes and the planetary musings of Montanans simply cosmic comrades in a dance of statistical significance?

As we bid adieu to this celestial tango of correlations and causations, we do so with a cosmic wink and a knowing nod. For in the vast expanse of space, as in politics, the unexpected reigns supreme, and the dance of correlation and causation leaves us stargazing in awe.

And so, fellow researchers, in the spirit of cosmic comedy and statistical stargazing, we assert that no further research into the connection between Republican votes for Senators in Montana and Google searches for 'Is Pluto a Planet?' is needed – for the celestial and the political have intertwined in ways that defy conventional understanding, leaving us with a cosmic paradox unlike any other.


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 Planet Politics: The Pluto Paradox - A Correlational Study of Republican Senatorial Votes in Montana and Google Searches for 'Is Pluto a Planet?'. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Interplanetary Governance


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 Planet Politics: The Pluto Paradox - A Correlational Study of Republican Senatorial Votes in Montana and Google Searches for 'Is Pluto a Planet?'. Respond only with the name of a fictional organization.

ChatGPT:

The Institute for Planetary Politics Research


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 Planet Politics: The Pluto Paradox - A Correlational Study of Republican Senatorial Votes in Montana and Google Searches for 'Is Pluto a Planet?' with an abstract of In this study, we embark on a cosmic quest to unravel the mysteries of political alignments and astronomical contemplations. Leveraging data from MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends, we scrutinize the unlikeliest of connections - the relationship between Republican votes for Senators in Montana and the perennially perplexing query 'Is Pluto a Planet?' Our findings reveal a celestial correlation coefficient of 0.9100563, denoting a statistically significant relationship (p < 0.05) between these seemingly unrelated phenomena. Join us as we navigate through the galactic gossip and political paradoxes, shedding light on the whimsical interplay between the cosmic curiosities and the earthly electoral events. So, buckle up, fellow researchers, for it turns out that in the vast expanse of space, as in politics, nothing is ever truly in orbit!

ChatGPT:

Republican Senatorial Votes Montana, Google Searches Pluto Planet, Correlational Study, MIT Election Data Science Lab, Harvard Dataverse, Celestial Correlation, Political Alignments, Astronomy and Politics, Galactic Gossip, Political Paradoxes

*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

Votes for Republican Senators in Montana
Detailed data title: Percentage of votes cast for Federal Republican Senate candidates in Montana
Source: MIT Election Data and Science Lab, Harvard Dataverse
See what else correlates with Votes for Republican Senators in Montana

Google searches for 'is pluto a planet'
Detailed data title: Relative volume of Google searches for 'is pluto a planet' (Worldwide, without quotes)
Source: Google Trends
Additional Info: Relative search volume (not absolute numbers)

See what else correlates with Google searches for 'is pluto a planet'

Correlation r = 0.9100563 (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.8282024 (Coefficient of determination)
This means 82.8% of the change in the one variable (i.e., Google searches for 'is pluto a planet') is predictable based on the change in the other (i.e., Votes for Republican Senators in Montana) over the 6 years from 2004 through 2020.

p < 0.05, which statistically significant(Null hypothesis significance test)
The p-value is 0.012. 0.0117709930475383750000000000
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.91 in 1.2% of random cases. Said differently, if you correlated 85 random variables Which I absolutely did.
with the same 5 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 5 because we have two variables measured over a period of 6 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.38, 0.99 ] 95% correlation confidence interval (using the Fisher z-transformation)
The confidence interval is an estimate the range of the value of the correlation coefficient, using the correlation itself as an input. The values are meant to be the low and high end of the correlation coefficient with 95% confidence.

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


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

Still, sometimes one of the variables has more years of data available than the other. This page only shows the overlapping years. To see all the years, click on "See what else correlates with..." link above.
200620082012201420182020
Votes for Republican Senators in Montana (Percentage of votes)48.285527.08444.860457.786446.782455.0122
Google searches for 'is pluto a planet' (Rel. search volume)24.7515.666720.529.333328.416730.6667




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. Very low n: There are not many data points included in this analysis. Even if the p-value is high, we should be suspicious of using so few datapoints in a correlation.




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([48.2855,27.084,44.8604,57.7864,46.7824,55.0122,])
array_2 = np.array([24.75,15.6667,20.5,29.3333,28.4167,30.6667,])
array_1_name = "Votes for Republican Senators in Montana"
array_2_name = "Google searches for 'is pluto a planet'"

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

Big thanks for reviewing!


Correlation ID: 4588 · Black Variable ID: 26418 · Red Variable ID: 1518
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0