about · email me · subscribe
Spurious correlation #4,398 · 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 Uranus and Saturn and the second variable is Votes for the Democratic Presidential candidate in Delaware.  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 the gravitational pull between Uranus and Saturn weakened, it created a ripple effect on the space-time continuum. This led to a surge in cosmic energy that somehow aligned with the political preferences of the residents in Delaware, ultimately swaying their votes in favor of the Democrat Presidential candidate.

Model: dalle-3
Prompt: Generate an image resembling a scene from 'Star Wars': In the deep reaches of space, Uranus slowly drifts away from Saturn, creating a growing distance between the two majestic planets. Meanwhile, in the state of Delaware, a line of voters stretches into the distance as they cast their ballots for the Democrat Presidential candidate, showcasing a surge of support. As the cosmic forces of the planetary separation resonate with the passionate political fervor in Delaware, a radiant wave of energy is visible passing through, subtly influencing the votes in favor of the Democrat candidate. 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 Uranus and Saturn and Votes for the Democrat Presidential candidate in Delaware. Given these, which of the following image style descriptions seems most appropriate? Pick the one that seems to be related to one of the variables at hand. Please respond with only one of the following potential descriptions: A TIME magazine cover image Surrealism Hyper-realistic Steampunk An image that looks like it is a scene from 'Star Wars'
ChatGPT: An image that looks like it is a scene from 'Star Wars'

Model: gpt-3.5-turbo-1106
System prompt: You describe simple visual scenes that depict the two variables stated. You combine both variables into one scene.
User prompt: Please describe a visual scene that prominently depicts both The distance between Uranus and Saturn and Votes for the Democrat Presidential candidate in Delaware, in the following situation: As the gravitational pull between Uranus and Saturn weakened, it created a ripple effect on the space-time continuum. This led to a surge in cosmic energy that somehow aligned with the political preferences of the residents in Delaware, ultimately swaying their votes in favor of the Democrat Presidential candidate.. Keep the description simple.
ChatGPT: In a vast expanse of space, Uranus is seen drifting away from Saturn, creating a growing distance between the two planets. Meanwhile, in the state of Delaware, a line of voters is seen casting their ballots for the Democrat Presidential candidate, creating a surge of support. As the cosmic energy from the planetary separation meets the political fervor in Delaware, a radiant wave of energy passes through, influencing the votes in favor of the Democrat candidate.

Model: gpt-3.5-turbo-1106
System prompt: You write and improve image generation prompts for DALLE-3. You maintain the same subjects, but enhance the visuals.
User prompt: Please respond with an image generation prompt that would be likely to create an interesting visual using DALLE-3, using the following style: [ An image that looks like it is a scene from 'Star Wars' ] and depicting this scene: In a vast expanse of space, Uranus is seen drifting away from Saturn, creating a growing distance between the two planets. Meanwhile, in the state of Delaware, a line of voters is seen casting their ballots for the Democrat Presidential candidate, creating a surge of support. As the cosmic energy from the planetary separation meets the political fervor in Delaware, a radiant wave of energy passes through, influencing the votes in favor of the Democrat candidate. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Generate an image resembling a scene from 'Star Wars': In the deep reaches of space, Uranus slowly drifts away from Saturn, creating a growing distance between the two majestic planets. Meanwhile, in the state of Delaware, a line of voters stretches into the distance as they cast their ballots for the Democrat Presidential candidate, showcasing a surge of support. As the cosmic forces of the planetary separation resonate with the passionate political fervor in Delaware, a radiant wave of energy is visible passing through, subtly influencing the votes in favor of the Democrat candidate.

*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 increases in The distance between Uranus and Saturn positively influenced Votes for the Democrat Presidential candidate in Delaware. Make it feel plausible.

AI academic paper

(Because p < 0.01)
Astro-Politics: The Far-Out Connection Between Celestial Bodies and Political Leanings in Delaware

The Journal of Extraterrestrial Governance and Earthly Influence

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 The distance between Uranus and Saturn and Votes for the Democrat Presidential candidate in Delaware. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

Include a pun in the title.

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.9059851 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]]
"Astro-Politics: The Far-Out Connection Between Celestial Bodies and Political Leanings in Delaware"

[[ABSTRACT]]
This paper delves into the peculiar relationship between the celestial bodies of Uranus and Saturn and their potential influence on the political affiliations of Delaware voters. Utilizing data from Astropy and the MIT Election Data and Science Lab, as well as the Harvard Dataverse, our research team embarked on a cosmic quest to explore this unconventional nexus. Our findings revealed a surprising correlation coefficient of 0.9059851 with p < 0.01 when analyzing the period from 1976 to 2020. As we unravel these celestial and political entanglements, we aim to shed light on the cosmic undercurrents shaping earthly decisions.


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 The distance between Uranus and Saturn and Votes for the Democrat Presidential candidate in Delaware. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Here is the title and abstract of the paper:
[[TITLE]]
"Astro-Politics: The Far-Out Connection Between Celestial Bodies and Political Leanings in Delaware"

[[ABSTRACT]]
This paper delves into the peculiar relationship between the celestial bodies of Uranus and Saturn and their potential influence on the political affiliations of Delaware voters. Utilizing data from Astropy and the MIT Election Data and Science Lab, as well as the Harvard Dataverse, our research team embarked on a cosmic quest to explore this unconventional nexus. Our findings revealed a surprising correlation coefficient of 0.9059851 with p < 0.01 when analyzing the period from 1976 to 2020. As we unravel these celestial and political entanglements, we aim to shed light on the cosmic undercurrents shaping earthly decisions.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:

INTRODUCTION

The intersection of astrophysics and political science has long been a subject that has garnered both intrigue and skepticism. In the realm of political analysis, numerous factors such as demographics, socio-economic indicators, and historical trends are typically held in high regard. However, the potential influence of celestial bodies on human behavior and decision-making has often been relegated to the fringes of academic discourse. Nonetheless, recent studies have suggested that there may be correlations between astronomical phenomena and political leanings, a notion that continues to provoke scholarly curiosity and public amusement alike.

In this paper, we endeavor to explore the peculiar link between the positions of Uranus and Saturn relative to the Earth and the voting patterns for the Democratic presidential candidate in the state of Delaware. While the undertaking may raise a few eyebrows and evoke quizzical reactions, our approach adheres to prudent statistical methodologies and rigorous analysis. By leveraging data from reputable sources such as Astropy, the MIT Election Data and Science Lab, and the Harvard Dataverse, we seek to provide a fresh perspective on the intricate interplay between the cosmic and the terrestrial.

Through an intricate fusion of astrological and political data, our research aims to unravel the mysterious dance of celestial bodies and its potential impact on the voting behavior of Delaware constituents. By shedding light on this unconventional nexus, we hope to inspire a thoughtful exploration of the manifold influences that shape human decision-making. Our findings may provide a whimsical lens through which to interpret the electoral dynamics in Delaware, while concurrently prompting contemplation of the broader cosmic forces that ostensibly exert influence on Earthly affairs.

The journey into the celestial and political mélange promises to be both enlightening and, dare I say, stellar in its revelatory potential. Join us as we venture into the cosmic sea of data and delve into the celestial tapestry that may, ever so surprisingly, weave into the fabric of political allegiances. Let the twinkling stars and the ballot counts guide us through this astro-political odyssey.


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 The distance between Uranus and Saturn and Votes for the Democrat Presidential candidate in Delaware. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

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

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

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

Here is the title and abstract of the paper:
[[TITLE]]
"Astro-Politics: The Far-Out Connection Between Celestial Bodies and Political Leanings in Delaware"

[[ABSTRACT]]
This paper delves into the peculiar relationship between the celestial bodies of Uranus and Saturn and their potential influence on the political affiliations of Delaware voters. Utilizing data from Astropy and the MIT Election Data and Science Lab, as well as the Harvard Dataverse, our research team embarked on a cosmic quest to explore this unconventional nexus. Our findings revealed a surprising correlation coefficient of 0.9059851 with p < 0.01 when analyzing the period from 1976 to 2020. As we unravel these celestial and political entanglements, we aim to shed light on the cosmic undercurrents shaping earthly decisions.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
INTRODUCTION
The intersection of astrophysics and political science has long been a subject that has garnered both intrigue and skepticism. In the realm of political analysis, numerous factors such as demographics, socio-economic indicators, and historical trends are typically held in high regard. However, the potential influence of celestial bodies on human behavior and decision-making has often been relegated to the fringes of academic discourse. Nonetheless, recent studies have suggested that there may be correlations between astronomical phenomena and political leanings, a notion that continues to provoke scholarly curiosity and public amusement alike.
In this paper, we endeavor to explore the peculiar link between the positions of Uranus and Saturn relative to the Earth and the voting patterns for the Democratic presidential candidate in the state of Delaware. While the undertaking may raise a few eyebrows and evoke quizzical reactions, our approach adheres to prudent statistical methodologies and rigorous analysis. By leveraging data from reputable sources such as Astropy, the MIT Election Data and Science Lab, and the Harvard Dataverse, we seek to provide a fresh perspective on the intricate interplay between the cosmic and the terrestrial.
Through an intricate fusion of astrological and political data, our research aims to unravel the mysterious dance of celestial bodies and its potential impact on the voting behavior of Delaware constituents. By shedding light on this unconventional nexus, we hope to inspire a thoughtful exploration of the manifold influences that shape human decision-making. Our findings may provide a whimsical lens through which to interpret the electoral dynamics in Delaware, while concurrently prompting contemplation of the broader cosmic forces that ostensibly exert influence on Earthly affairs.
The journey into the celestial and political mélange promises to be both enlightening and, dare I say, stellar in its revelatory potential. Join us as we venture into the cosmic sea of data and delve into the celestial tapestry that may, ever so surprisingly, weave into the fabric of political allegiances. Let the twinkling stars and the ballot counts guide us through this astro-political odyssey.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

The inquiry into the relationship between celestial occurrences and political behavior has seen an upsurge in recent scholarly discourse, prompting a reevaluation of traditional paradigms within political science. Whilst the connection between celestial bodies and electoral activity may initially appear frivolous, a body of literature has emerged that suggests there may be more than mere cosmic coincidence at play. Smith et al. (2018) shed light on the potential impact of planetary alignments on human decision-making, while Doe (2015) presented a comprehensive analysis of astrological symbols and their implications for voter behavior. Jones (2017) further delved into the complex interplay of cosmic phenomena and political allegiances, offering a nuanced perspective on the topic at hand.

Moving beyond the conventional texts within the discipline, our investigation also draws on non-traditional sources such as "Cosmos" by Carl Sagan and "Astrophysics for People in a Hurry" by Neil deGrasse Tyson, which offer fresh insights into the intersection of celestial bodies and earthly affairs. Furthermore, delving into the realm of fiction, works such as "The Hitchhiker's Guide to the Galaxy" by Douglas Adams and "The Martian" by Andy Weir provide whimsical narratives that, although fictional, tease the imagination with cosmic conundrums that may be relevant to our scholarly pursuit.

In a rather unconventional twist, our literature review also incorporates insights gleaned from seemingly unrelated material, including overly long CVS receipts and cryptic fortune cookie messages, as we sought to capture the full spectrum of popular and unconventional thought on the intersection of the celestial and the terrestrial. While the relevance of such sources may appear tenuous at first glance, their inclusion serves to remind scholars of the importance of maintaining a sense of humor and intellectual curiosity in the pursuit of knowledge, even in the far reaches of academia.


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 The distance between Uranus and Saturn and Votes for the Democrat Presidential candidate in Delaware. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Your research team collected data from all across the internet, but mostly just used information from 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]]
"Astro-Politics: The Far-Out Connection Between Celestial Bodies and Political Leanings in Delaware"

[[ABSTRACT]]
This paper delves into the peculiar relationship between the celestial bodies of Uranus and Saturn and their potential influence on the political affiliations of Delaware voters. Utilizing data from Astropy and the MIT Election Data and Science Lab, as well as the Harvard Dataverse, our research team embarked on a cosmic quest to explore this unconventional nexus. Our findings revealed a surprising correlation coefficient of 0.9059851 with p < 0.01 when analyzing the period from 1976 to 2020. As we unravel these celestial and political entanglements, we aim to shed light on the cosmic undercurrents shaping earthly decisions.

[[INTRODUCTION]]
INTRODUCTION
The intersection of astrophysics and political science has long been a subject that has garnered both intrigue and skepticism. In the realm of political analysis, numerous factors such as demographics, socio-economic indicators, and historical trends are typically held in high regard. However, the potential influence of celestial bodies on human behavior and decision-making has often been relegated to the fringes of academic discourse. Nonetheless, recent studies have suggested that there may be correlations between astronomical phenomena and political leanings, a notion that continues to provoke scholarly curiosity and public amusement alike.
In this paper, we endeavor to explore the peculiar link between the positions of Uranus and Saturn relative to the Earth and the voting patterns for the Democratic presidential candidate in the state of Delaware. While the undertaking may raise a few eyebrows and evoke quizzical reactions, our approach adheres to prudent statistical methodologies and rigorous analysis. By leveraging data from reputable sources such as Astropy, the MIT Election Data and Science Lab, and the Harvard Dataverse, we seek to provide a fresh perspective on the intricate interplay between the cosmic and the terrestrial.
Through an intricate fusion of astrological and political data, our research aims to unravel the mysterious dance of celestial bodies and its potential impact on the voting behavior of Delaware constituents. By shedding light on this unconventional nexus, we hope to inspire a thoughtful exploration of the manifold influences that shape human decision-making. Our findings may provide a whimsical lens through which to interpret the electoral dynamics in Delaware, while concurrently prompting contemplation of the broader cosmic forces that ostensibly exert influence on Earthly affairs.
The journey into the celestial and political mélange promises to be both enlightening and, dare I say, stellar in its revelatory potential. Join us as we venture into the cosmic sea of data and delve into the celestial tapestry that may, ever so surprisingly, weave into the fabric of political allegiances. Let the twinkling stars and the ballot counts guide us through this astro-political odyssey.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

METHODOLOGY

Data Collection:
The celestial and political dimensions of this study were meticulously examined through an astute amalgamation of data retrieval, manipulation, and analysis. The research team engaged in an extensive data gathering process, scouring reputable sources such as Astropy, the MIT Election Data and Science Lab, and the Harvard Dataverse. This approach ensured the procurement of comprehensive datasets spanning the period from 1976 to 2020, encompassing the requisite celestial positions of Uranus and Saturn as well as the corresponding presidential election voting patterns in Delaware.

Celestial Position Calculation:
The determination of the celestial coordinates of Uranus and Saturn called for a finesse beyond the mundane, incorporating the otherworldly precision demanded by astronomical computations. Utilizing specialized software tools and a touch of cosmic intuition, the positions of these distant planetary entities were charted with a scientific rigor that perhaps even the gravitational pull of humor couldn't escape.

Statistical Analysis:
To unravel the potential cosmic impetus behind political proclivities, a series of statistical analyses were deftly executed. The correlation between the celestial positions and the votes for the Democratic presidential candidate in Delaware was meticulously scrutinized, employing robust statistical measures to discern any significant associations. Our analysis adhered to the established principles of quantitative inquiry and, of course, a cosmic appreciation for the unexpected twists of statistical destiny.

Regression Modeling:
In order to ascertain the strength and direction of the relationship between the celestial positions and the political preferences in Delaware, regression models were artfully crafted. These models, with their statistical threads gently weaving through the celestial tapestry, facilitated a nuanced understanding of the potential influence of Uranus and Saturn on the electoral choices of Delaware constituents. The models were adeptly calibrated to disentangle the cosmic variance from the earthly nuances, with an eye toward capturing the whims of the celestial bodies without losing sight of the grounded reality of political decision-making.

Ethical Considerations:
As our research ventured into the celestial and political crossroads, ethical considerations were gracefully interwoven into the fabric of our methodology. Respect for academic integrity and the conscientious handling of data were paramount, ensuring that our cosmic conjectures were anchored in the veracity of rigorous scholarly pursuits. Furthermore, the dissemination of findings was accompanied by the sincere acknowledgment of the inherent quirkiness inherent in this astro-political odyssey.

In essence, our methodology encompassed a meticulous interplay of empirical integrity and cosmic curiosity, thereby constructing a pathway to unravel the enigmatic fusion of celestial positions and political persuasions. The data-driven dance with the stars and the ballots was orchestrated with a blend of scholarly sobriety and a celestial twinkle, underscoring the profound yet whimsical nature of this cosmic exploration.


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 The distance between Uranus and Saturn and Votes for the Democrat Presidential candidate in Delaware. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

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

For the time period 1976 to 2020, you found a correlation 0.9059851, r-squared of 0.8208091, 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]]
"Astro-Politics: The Far-Out Connection Between Celestial Bodies and Political Leanings in Delaware"

[[ABSTRACT]]
This paper delves into the peculiar relationship between the celestial bodies of Uranus and Saturn and their potential influence on the political affiliations of Delaware voters. Utilizing data from Astropy and the MIT Election Data and Science Lab, as well as the Harvard Dataverse, our research team embarked on a cosmic quest to explore this unconventional nexus. Our findings revealed a surprising correlation coefficient of 0.9059851 with p < 0.01 when analyzing the period from 1976 to 2020. As we unravel these celestial and political entanglements, we aim to shed light on the cosmic undercurrents shaping earthly decisions.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
INTRODUCTION
The intersection of astrophysics and political science has long been a subject that has garnered both intrigue and skepticism. In the realm of political analysis, numerous factors such as demographics, socio-economic indicators, and historical trends are typically held in high regard. However, the potential influence of celestial bodies on human behavior and decision-making has often been relegated to the fringes of academic discourse. Nonetheless, recent studies have suggested that there may be correlations between astronomical phenomena and political leanings, a notion that continues to provoke scholarly curiosity and public amusement alike.
In this paper, we endeavor to explore the peculiar link between the positions of Uranus and Saturn relative to the Earth and the voting patterns for the Democratic presidential candidate in the state of Delaware. While the undertaking may raise a few eyebrows and evoke quizzical reactions, our approach adheres to prudent statistical methodologies and rigorous analysis. By leveraging data from reputable sources such as Astropy, the MIT Election Data and Science Lab, and the Harvard Dataverse, we seek to provide a fresh perspective on the intricate interplay between the cosmic and the terrestrial.
Through an intricate fusion of astrological and political data, our research aims to unravel the mysterious dance of celestial bodies and its potential impact on the voting behavior of Delaware constituents. By shedding light on this unconventional nexus, we hope to inspire a thoughtful exploration of the manifold influences that shape human decision-making. Our findings may provide a whimsical lens through which to interpret the electoral dynamics in Delaware, while concurrently prompting contemplation of the broader cosmic forces that ostensibly exert influence on Earthly affairs.
The journey into the celestial and political mélange promises to be both enlightening and, dare I say, stellar in its revelatory potential. Join us as we venture into the cosmic sea of data and delve into the celestial tapestry that may, ever so surprisingly, weave into the fabric of political allegiances. Let the twinkling stars and the ballot counts guide us through this astro-political odyssey.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

RESULTS

Our analysis of the data revealed a striking correlation between the distance separating Uranus and Saturn and the Democratic presidential candidate's votes in Delaware. The correlation coefficient of 0.9059851 indicates a strong positive relationship between these seemingly disparate phenomena. This finding suggests that as the celestial bodies Uranus and Saturn gravitated closer or farther from each other, the votes for the Democratic candidate in Delaware exhibited a discernible pattern of change. With an r-squared value of 0.8208091, approximately 82.08% of the variability in Democratic votes can be explained by the distance between Uranus and Saturn. Remarkably, this suggests that a significant portion of the variance in political preferences within Delaware can be attributed to the cosmic dance of these distant planets.

The p-value of less than 0.01 further supports the statistical significance of the observed correlation, reinforcing the strength of the association between celestial positioning and political tendencies. This implies that the likelihood of such a strong correlation occurring by chance is extremely low. Thus, there is substantial evidence to suggest a meaningful relationship between the celestial alignment of Uranus and Saturn and the voting patterns exhibited by Delaware constituents.

Figure 1 visually encapsulates the considerable correlation identified in our analysis. The scatterplot showcases a clear trend, demonstrating how the alignment of Uranus and Saturn coincided with variations in Democratic votes over the years. This visual representation underscored the robustness of the correlation and provided a compelling illustration of the interplay between cosmic positioning and political inclinations.

Overall, our findings unveil a captivating interconnection between celestial configurations and political affiliations in Delaware. While this unorthodox relationship may elicit both reverence and amusement, our empirical analysis substantiates the existence of a distinct correlation, challenging conventional paradigms and stimulating contemplation about the potential cosmic influences on earthly decisions.


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 The distance between Uranus and Saturn and Votes for the Democrat Presidential candidate in Delaware. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Limit your response to 500 tokens.

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

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

[[TITLE]]
"Astro-Politics: The Far-Out Connection Between Celestial Bodies and Political Leanings in Delaware"

[[ABSTRACT]]
This paper delves into the peculiar relationship between the celestial bodies of Uranus and Saturn and their potential influence on the political affiliations of Delaware voters. Utilizing data from Astropy and the MIT Election Data and Science Lab, as well as the Harvard Dataverse, our research team embarked on a cosmic quest to explore this unconventional nexus. Our findings revealed a surprising correlation coefficient of 0.9059851 with p < 0.01 when analyzing the period from 1976 to 2020. As we unravel these celestial and political entanglements, we aim to shed light on the cosmic undercurrents shaping earthly decisions.

[[LITERATURE REVIEW]]
The inquiry into the relationship between celestial occurrences and political behavior has seen an upsurge in recent scholarly discourse, prompting a reevaluation of traditional paradigms within political science. Whilst the connection between celestial bodies and electoral activity may initially appear frivolous, a body of literature has emerged that suggests there may be more than mere cosmic coincidence at play. Smith et al. (2018) shed light on the potential impact of planetary alignments on human decision-making, while Doe (2015) presented a comprehensive analysis of astrological symbols and their implications for voter behavior. Jones (2017) further delved into the complex interplay of cosmic phenomena and political allegiances, offering a nuanced perspective on the topic at hand.
Moving beyond the conventional texts within the discipline, our investigation also draws on non-traditional sources such as "Cosmos" by Carl Sagan and "Astrophysics for People in a Hurry" by Neil deGrasse Tyson, which offer fresh insights into the intersection of celestial bodies and earthly affairs. Furthermore, delving into the realm of fiction, works such as "The Hitchhiker's Guide to the Galaxy" by Douglas Adams and "The Martian" by Andy Weir provide whimsical narratives that, although fictional, tease the imagination with cosmic conundrums that may be relevant to our scholarly pursuit.
In a rather unconventional twist, our literature review also incorporates insights gleaned from seemingly unrelated material, including overly long CVS receipts and cryptic fortune cookie messages, as we sought to capture the full spectrum of popular and unconventional thought on the intersection of the celestial and the terrestrial. While the relevance of such sources may appear tenuous at first glance, their inclusion serves to remind scholars of the importance of maintaining a sense of humor and intellectual curiosity in the pursuit of knowledge, even in the far reaches of academia.

[[RESULTS]]
RESULTS
Our analysis of the data revealed a striking correlation between the distance separating Uranus and Saturn and the Democratic presidential candidate's votes in Delaware. The correlation coefficient of 0.9059851 indicates a strong positive relationship between these seemingly disparate phenomena. This finding suggests that as the celestial bodies Uranus and Saturn gravitated closer or farther from each other, the votes for the Democratic candidate in Delaware exhibited a discernible pattern of change. With an r-squared value of 0.8208091, approximately 82.08% of the variability in Democratic votes can be explained by the distance between Uranus and Saturn. Remarkably, this suggests that a significant portion of the variance in political preferences within Delaware can be attributed to the cosmic dance of these distant planets.
The p-value of less than 0.01 further supports the statistical significance of the observed correlation, reinforcing the strength of the association between celestial positioning and political tendencies. This implies that the likelihood of such a strong correlation occurring by chance is extremely low. Thus, there is substantial evidence to suggest a meaningful relationship between the celestial alignment of Uranus and Saturn and the voting patterns exhibited by Delaware constituents.
Figure 1 visually encapsulates the considerable correlation identified in our analysis. The scatterplot showcases a clear trend, demonstrating how the alignment of Uranus and Saturn coincided with variations in Democratic votes over the years. This visual representation underscored the robustness of the correlation and provided a compelling illustration of the interplay between cosmic positioning and political inclinations.
Overall, our findings unveil a captivating interconnection between celestial configurations and political affiliations in Delaware. While this unorthodox relationship may elicit both reverence and amusement, our empirical analysis substantiates the existence of a distinct correlation, challenging conventional paradigms and stimulating contemplation about the potential cosmic influences on earthly decisions.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

Our investigation has unearthed a bewildering yet compelling correlation between the positioning of Uranus and Saturn, two celestial bodies so far from Earth yet seemingly entwined with the political leanings of Delaware voters. In light of our results, it is imperative to revisit the scholarly discourse on the influence of celestial phenomena on human behavior, acknowledging and expanding upon various unconventional sources of information, from the scholarly to the silly.

As our findings concur with the works of Smith et al. (2018) and Doe (2015), we are reminded of the words of Douglas Adams in "The Hitchhiker's Guide to the Galaxy," where he aptly opined, "The Answer to the Great Question... Of Life, the Universe, and Everything... Is... Forty-two." Here, we could jest that the "Answer" might also involve the political choices of Delaware voters being influenced by the cosmic dance of Uranus and Saturn, although we must address such conjectures with due gravity in academic discourse.

In synthesizing the profound and the peculiar, our research aligns with Jones' (2017) nuanced perspective and nods to the inexplicable wisdom found within the folds of overly long CVS receipts and cryptic fortune cookie messages. Indeed, our findings suggest that perhaps we should not be so quick to dismiss the cosmic whimsy suggested by these otherwise unrelated sources, even as we navigate the rigorous terrain of academic inquiry.

The substantial r-squared value and the compelling visual representation in Figure 1 lend incontrovertible support to the idea that the celestial alignment of Uranus and Saturn relates, in a non-trivial way, to the voting behaviors of the people of Delaware. While we are inclined to raise an eyebrow at this bewildering correlation, we must reconcile our surprise with the statistical significance of our results. Perhaps, as Sagan and Tyson suggested in their astronomical ruminations, there is more at play in the interstellar expanse than initially meets the eye.

While it may be tempting to dismiss these findings as mere cosmic coincidence, the low p-value compellingly argues otherwise, underscoring the importance of probing unconventional correlations beyond the realms of conventional explanation. In doing so, we invite both scientific sobriety and a hint of cosmic curiosity into the dialogue, embracing diverse perspectives that enrich the scholarly pursuit and, dare we say, make even the heavenly political.

In unraveling the cosmic undercurrents that appear to shape earthly decisions, our research offers a whimsically serious reminder that even the distant, seemingly detached movements of celestial bodies might hold sway over the political preferences of Delaware constituents. This, in turn, calls upon scholars to maintain both reverence and amusement in the pursuit of knowledge, for in doing so, we may unlock the hidden cosmic rhythms governing terrestrial affairs.


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 The distance between Uranus and Saturn and Votes for the Democrat Presidential candidate in Delaware. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

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

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
"Astro-Politics: The Far-Out Connection Between Celestial Bodies and Political Leanings in Delaware"

[[ABSTRACT]]
This paper delves into the peculiar relationship between the celestial bodies of Uranus and Saturn and their potential influence on the political affiliations of Delaware voters. Utilizing data from Astropy and the MIT Election Data and Science Lab, as well as the Harvard Dataverse, our research team embarked on a cosmic quest to explore this unconventional nexus. Our findings revealed a surprising correlation coefficient of 0.9059851 with p < 0.01 when analyzing the period from 1976 to 2020. As we unravel these celestial and political entanglements, we aim to shed light on the cosmic undercurrents shaping earthly decisions.

[[INTRDUCTION]]
INTRODUCTION
The intersection of astrophysics and political science has long been a subject that has garnered both intrigue and skepticism. In the realm of political analysis, numerous factors such as demographics, socio-economic indicators, and historical trends are typically held in high regard. However, the potential influence of celestial bodies on human behavior and decision-making has often been relegated to the fringes of academic discourse. Nonetheless, recent studies have suggested that there may be correlations between astronomical phenomena and political leanings, a notion that continues to provoke scholarly curiosity and public amusement alike.
In this paper, we endeavor to explore the peculiar link between the positions of Uranus and Saturn relative to the Earth and the voting patterns for the Democratic presidential candidate in the state of Delaware. While the undertaking may raise a few eyebrows and evoke quizzical reactions, our approach adheres to prudent statistical methodologies and rigorous analysis. By leveraging data from reputable sources such as Astropy, the MIT Election Data and Science Lab, and the Harvard Dataverse, we seek to provide a fresh perspective on the intricate interplay between the cosmic and the terrestrial.
Through an intricate fusion of astrological and political data, our research aims to unravel the mysterious dance of celestial bodies and its potential impact on the voting behavior of Delaware constituents. By shedding light on this unconventional nexus, we hope to inspire a thoughtful exploration of the manifold influences that shape human decision-making. Our findings may provide a whimsical lens through which to interpret the electoral dynamics in Delaware, while concurrently prompting contemplation of the broader cosmic forces that ostensibly exert influence on Earthly affairs.
The journey into the celestial and political mélange promises to be both enlightening and, dare I say, stellar in its revelatory potential. Join us as we venture into the cosmic sea of data and delve into the celestial tapestry that may, ever so surprisingly, weave into the fabric of political allegiances. Let the twinkling stars and the ballot counts guide us through this astro-political odyssey.

[[RESULTS]]
RESULTS
Our analysis of the data revealed a striking correlation between the distance separating Uranus and Saturn and the Democratic presidential candidate's votes in Delaware. The correlation coefficient of 0.9059851 indicates a strong positive relationship between these seemingly disparate phenomena. This finding suggests that as the celestial bodies Uranus and Saturn gravitated closer or farther from each other, the votes for the Democratic candidate in Delaware exhibited a discernible pattern of change. With an r-squared value of 0.8208091, approximately 82.08% of the variability in Democratic votes can be explained by the distance between Uranus and Saturn. Remarkably, this suggests that a significant portion of the variance in political preferences within Delaware can be attributed to the cosmic dance of these distant planets.
The p-value of less than 0.01 further supports the statistical significance of the observed correlation, reinforcing the strength of the association between celestial positioning and political tendencies. This implies that the likelihood of such a strong correlation occurring by chance is extremely low. Thus, there is substantial evidence to suggest a meaningful relationship between the celestial alignment of Uranus and Saturn and the voting patterns exhibited by Delaware constituents.
Figure 1 visually encapsulates the considerable correlation identified in our analysis. The scatterplot showcases a clear trend, demonstrating how the alignment of Uranus and Saturn coincided with variations in Democratic votes over the years. This visual representation underscored the robustness of the correlation and provided a compelling illustration of the interplay between cosmic positioning and political inclinations.
Overall, our findings unveil a captivating interconnection between celestial configurations and political affiliations in Delaware. While this unorthodox relationship may elicit both reverence and amusement, our empirical analysis substantiates the existence of a distinct correlation, challenging conventional paradigms and stimulating contemplation about the potential cosmic influences on earthly decisions.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

CONCLUSION

In the grand cosmic symphony of politics, our research has uncovered a celestial overture that harmoniously resonates with the earthly ballot counts in Delaware. Through our empirical investigation, the compelling correlation between the orbital dynamics of Uranus and Saturn and the Democratic votes in Delaware has emerged as a celestial melodrama. The robust correlation coefficient of 0.9059851, supported by a p-value of less than 0.01, undeniably accentuates the synchronized dance of these distant planets with the political leanings of Delaware constituents. Such an observation challenges conventional thinking and hints at the celestial forces at play, beckoning the scholarly universe to consider new frontiers of influence.

Our findings, while undoubtedly unconventional, demand thoughtful consideration, as they reflect the celestial whimsy that seems to waltz in step with human political proclivities. The visual evidence presented in Figure 1 serves as a starlit testament to the cosmic choreography that accompanies the ebb and flow of Democratic votes, enticing both scholarly curiosity and perhaps a cosmic chuckle. This revelatory dance of celestial bodies and political leanings may appear whimsical, yet it divulges a deeper connection that challenges traditional paradigms, inviting a celestial encore in scholarly pursuits.

As we draw the curtain on this astro-political odyssey, our empirical exploration illuminates an intriguing nexus, stimulating the imagination and, dare I say, sparking cosmic contemplations. Consequently, we assert that, at this juncture, no further research in this area is warranted, as our findings shine a supernova of light on the influence of celestial positioning on political preferences. The celestial ballots have been cast, and our scholarly verdict is resoundingly celestial: the cosmic dance of Uranus and Saturn wields a cosmic influence on political proclivities, and further research would be overreaching the Milky Way of scholarly inquiry.


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 Astro-Politics: The Far-Out Connection Between Celestial Bodies and Political Leanings in Delaware. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Extraterrestrial Governance and Earthly Influence


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 Astro-Politics: The Far-Out Connection Between Celestial Bodies and Political Leanings in Delaware. Respond only with the name of a fictional organization.

ChatGPT:

The Institute for Cosmic Policy 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 Astro-Politics: The Far-Out Connection Between Celestial Bodies and Political Leanings in Delaware with an abstract of This paper delves into the peculiar relationship between the celestial bodies of Uranus and Saturn and their potential influence on the political affiliations of Delaware voters. Utilizing data from Astropy and the MIT Election Data and Science Lab, as well as the Harvard Dataverse, our research team embarked on a cosmic quest to explore this unconventional nexus. Our findings revealed a surprising correlation coefficient of 0.9059851 with p < 0.01 when analyzing the period from 1976 to 2020. As we unravel these celestial and political entanglements, we aim to shed light on the cosmic undercurrents shaping earthly decisions.

ChatGPT:

astrology, political leanings, celestial bodies, Uranus, Saturn, Delaware voters, correlation coefficient, Astropy, MIT Election Data and Science Lab, Harvard Dataverse

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

Votes for the Democratic Presidential candidate in Delaware
Detailed data title: Percentage of all votes cast for the Democrat Presidential candidate in Delaware
Source: MIT Election Data and Science Lab, Harvard Dataverse
See what else correlates with Votes for the Democratic Presidential candidate in Delaware

Correlation r = 0.9059851 (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.8208091 (Coefficient of determination)
This means 82.1% of the change in the one variable (i.e., Votes for the Democratic Presidential candidate in Delaware) is predictable based on the change in the other (i.e., The distance between Uranus and Saturn) over the 12 years from 1976 through 2020.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 4.9E-5. 0.0000493104224727886460000000
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 0.0049% of random cases. Said differently, if you correlated 20,280 random variables You don't actually need 20 thousand variables to find a correlation like this one. You can also correlate variables that are not independent. I do this a lot.

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

Just to be clear: I'm being completely transparent about the calculations. There is no math trickery. This is just how statistics shakes out when you calculate hundreds of millions of random correlations.
with the same 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.69, 0.97 ] 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 Uranus and Saturn (Planetary distance (AU))20.748515.768911.21639.2510611.72116.850822.442426.94229.292629.284927.264923.6217
Votes for the Democratic Presidential candidate in Delaware (Percentage of votes)51.969144.874139.932143.477843.523951.827954.977753.346861.942758.610753.353358.743




Why this works

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




Try it yourself

You can calculate the values on this page on your own! Try running the Python code to see the calculation results. Step 1: Download and install Python on your computer.

Step 2: Open a plaintext editor like Notepad and paste the code below into it.

Step 3: Save the file as "calculate_correlation.py" in a place you will remember, like your desktop. Copy the file location to your clipboard. On Windows, you can right-click the file and click "Properties," and then copy what comes after "Location:" As an example, on my computer the location is "C:\Users\tyler\Desktop"

Step 4: Open a command line window. For example, by pressing start and typing "cmd" and them pressing enter.

Step 5: Install the required modules by typing "pip install numpy", then pressing enter, then typing "pip install scipy", then pressing enter.

Step 6: Navigate to the location where you saved the Python file by using the "cd" command. For example, I would type "cd C:\Users\tyler\Desktop" and push enter.

Step 7: Run the Python script by typing "python calculate_correlation.py"

If you run into any issues, I suggest asking ChatGPT to walk you through installing Python and running the code below on your system. Try this question:

"Walk me through installing Python on my computer to run a script that uses scipy and numpy. Go step-by-step and ask me to confirm before moving on. Start by asking me questions about my operating system so that you know how to proceed. Assume I want the simplest installation with the latest version of Python and that I do not currently have any of the necessary elements installed. Remember to only give me one step per response and confirm I have done it before proceeding."


# These modules make it easier to perform the calculation
import numpy as np
from scipy import stats

# We'll define a function that we can call to return the correlation calculations
def calculate_correlation(array1, array2):

    # Calculate Pearson correlation coefficient and p-value
    correlation, p_value = stats.pearsonr(array1, array2)

    # Calculate R-squared as the square of the correlation coefficient
    r_squared = correlation**2

    return correlation, r_squared, p_value

# These are the arrays for the variables shown on this page, but you can modify them to be any two sets of numbers
array_1 = np.array([20.7485,15.7689,11.2163,9.25106,11.721,16.8508,22.4424,26.942,29.2926,29.2849,27.2649,23.6217,])
array_2 = np.array([51.9691,44.8741,39.9321,43.4778,43.5239,51.8279,54.9777,53.3468,61.9427,58.6107,53.3533,58.743,])
array_1_name = "The distance between Uranus and Saturn"
array_2_name = "Votes for the Democratic Presidential candidate in Delaware"

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

Cheers to you for rating this correlation!


Correlation ID: 4398 · Black Variable ID: 1966 · Red Variable ID: 26070
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0