about · email me · subscribe
Spurious correlation #5,171 · 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 Libertarian Senators in Kansas and the second variable is Google searches for 'flights to Antarctica'.  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 more Libertarian Senators were elected in Kansas, their platform to reduce government control extended to the skies. With fewer aviation regulations, airlines saw an opportunity to offer direct flights to Antarctica, bypassing traditional routes. This led to a surge in interest for Antarctic travel, reflected in the increased Google searches for 'flights to Antarctica'. Political decisions in the Sunflower State were quite literally taking the people of Kansas to new heights, as they fueled a newfound passion for polar exploration. The connection between Kansas Senatorial votes and Antarctic flights may seem far-fetched, but in the unpredictable world of politics and air travel, anything is possible!

Model: dalle-3
Prompt: Create an image that looks like it is a scene from a Disney movie, set in Kansas. The scene depicts a vibrant and bustling airport where airplanes are preparing for flight. In the background, the shimmering snow-capped mountains of Antarctica can be seen, drawing attention to the exciting new frontier of polar exploration. The scene should capture the spirit of adventure and discovery, with a touch of magic and wonder, reflecting the newfound passion for polar exploration sparked by the political decisions in Kansas. 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: Libertarian votes for Senators in Kansas and Google searches for 'flights to Antarctica'. Given these, which of the following image style descriptions seems most appropriate? Pick the one that seems to be related to one of the variables at hand. Please respond with only one of the following potential descriptions: An image that looks like it is a scene from A Disney Movie Hyper-realistic Pop art An image that looks like it is a scene from 'Star Wars' Sci-fi fantacy
ChatGPT: An image that looks like it is a scene from A Disney Movie

Model: gpt-3.5-turbo-1106
System prompt: You describe simple visual scenes that depict the two variables stated. You combine both variables into one scene.
User prompt: Please describe a visual scene that prominently depicts both Libertarian votes for Senators in Kansas and Google searches for 'flights to Antarctica', in the following situation: As more Libertarian Senators were elected in Kansas, their platform to reduce government control extended to the skies. With fewer aviation regulations, airlines saw an opportunity to offer direct flights to Antarctica, bypassing traditional routes. This led to a surge in interest for Antarctic travel, reflected in the increased Google searches for 'flights to Antarctica'. Political decisions in the Sunflower State were quite literally taking the people of Kansas to new heights, as they fueled a newfound passion for polar exploration. The connection between Kansas Senatorial votes and Antarctic flights may seem far-fetched, but in the unpredictable world of politics and air travel, anything is possible!. Keep the description simple.
ChatGPT: In Kansas, more Libertarian Senators were elected, calling for reduced government control. With fewer aviation regulations, airlines began offering direct flights to Antarctica, sparking an increase in Google searches for 'flights to Antarctica'. Political decisions in Kansas fueled a newfound passion for polar exploration.

Model: gpt-3.5-turbo-1106
System prompt: You write and improve image generation prompts for DALLE-3. You maintain the same subjects, but enhance the visuals.
User prompt: Please respond with an image generation prompt that would be likely to create an interesting visual using DALLE-3, using the following style: [ An image that looks like it is a scene from A Disney Movie ] and depicting this scene: In Kansas, more Libertarian Senators were elected, calling for reduced government control. With fewer aviation regulations, airlines began offering direct flights to Antarctica, sparking an increase in Google searches for 'flights to Antarctica'. Political decisions in Kansas fueled a newfound passion for polar exploration. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Create an image that looks like it is a scene from a Disney movie, set in Kansas. The scene depicts a vibrant and bustling airport where airplanes are preparing for flight. In the background, the shimmering snow-capped mountains of Antarctica can be seen, drawing attention to the exciting new frontier of polar exploration. The scene should capture the spirit of adventure and discovery, with a touch of magic and wonder, reflecting the newfound passion for polar exploration sparked by the political decisions in Kansas.

*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 Libertarian votes for Senators in Kansas caused flights to Antarctica (Google searches for 'flights to Antarctica') to increase.\Make it sound serious until the end.

AI academic paper

(Because p < 0.01)
Kansas Senators' Libertine Feats and Antarctic Retreats: Exploring the Correlation between Libertarian Votes and Searches for Flights to Antarctica

The Journal of Political Expeditions and Antarctic Studies

Jan 2024

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




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

Please draft the title and abstract of an academic research paper presenting the findings of the connection between Libertarian votes for Senators in Kansas and Google searches for 'flights to Antarctica'. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

Rhyme words 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.9189965 and p < 0.01 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]]
Kansas Senators' Libertine Feats and Antarctic Retreats: Exploring the Correlation between Libertarian Votes and Searches for Flights to Antarctica

[[ABSTRACT]]
This paper delves into the intriguing association between the votes accrued by Libertarian candidates in Kansas senatorial elections and the frequency of Google searches for 'flights to Antarctica'. Leveraging data from the MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends, our study scrutinizes the period from 2004 to 2020. Employing rigorous statistical analysis, we unearthed a remarkably robust correlation coefficient of 0.9189965, with a p-value below 0.01. The implications of these findings raise eyebrow after eyebrow, as they prompt captivating questions about the connection between ideological preferences in the Midwest and a longing for the icy allure of the southernmost continent. Our results emphasize the need for further interdisciplinary investigation into the unexpected interplay between political leanings and aspirations for polar exploration.


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

Please make up the introduction section of an academic research paper presenting the findings of the connection between Libertarian votes for Senators in Kansas and Google searches for 'flights to Antarctica'. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

Here is the title and abstract of the paper:
[[TITLE]]
Kansas Senators' Libertine Feats and Antarctic Retreats: Exploring the Correlation between Libertarian Votes and Searches for Flights to Antarctica

[[ABSTRACT]]
This paper delves into the intriguing association between the votes accrued by Libertarian candidates in Kansas senatorial elections and the frequency of Google searches for 'flights to Antarctica'. Leveraging data from the MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends, our study scrutinizes the period from 2004 to 2020. Employing rigorous statistical analysis, we unearthed a remarkably robust correlation coefficient of 0.9189965, with a p-value below 0.01. The implications of these findings raise eyebrow after eyebrow, as they prompt captivating questions about the connection between ideological preferences in the Midwest and a longing for the icy allure of the southernmost continent. Our results emphasize the need for further interdisciplinary investigation into the unexpected interplay between political leanings and aspirations for polar exploration.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

The intersection of political ideologies and wanderlust has long been a topic of interest and speculation. From the coffee shops of Seattle to the ranches of Texas, the relationship between political leanings and travel preferences has raised eyebrows and sparked numerous discussions. In this vein, our study endeavors to shed light on the unexpected connection between the votes garnered by Libertarian candidates in Kansas senatorial elections and the frequency of Google searches for 'flights to Antarctica'. While this association may at first glance seem as improbable as a penguin in the desert, our rigorous analysis has uncovered an intriguing link that demands further exploration.

The state of Kansas, known for its sunflower-dotted plains and heartland charm, has also emerged as a hotbed of political diversity, serving as a captivating backdrop for our investigation. Here, the Libertarian Party has made notable strides, with their votes often raising eyebrows and occasionally turning heads in statewide elections. Concurrently, the allure of Antarctica, the frozen frontier at the bottom of the world, beckons to the venturous souls seeking an escape from the mundane. The juxtaposition of these seemingly disparate phenomena has culminated in our curiosity, prompting us to scrutinize the relationship between political ballot choices and the yearning for remote polar expeditions.

Leveraging the expansive data from the MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends, and armed with robust statistical tools, we embark on our quest to uncover the hidden patterns and correlations. Our goal is not only to unveil the statistical nuances of this surprising relationship but also to inspire future interdisciplinary dialogues and investigations exploring the broader implications of such unconventional associations. In doing so, we hope to contribute to the scholarly discourse on the interplay between political ideology and the whims of travel aspirations. As we embark on this scholarly journey, we invite our readers to join us in this intellectual sojourn, where the unexpected outcomes may prove to be as astonishing as stumbling upon a polar bear in the heart of Kansas.


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

Please make up a literature review section of an academic research paper presenting the findings of the connection between Libertarian votes for Senators in Kansas and Google searches for 'flights to Antarctica'. 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. Perhaps you also got inspiration from some board games that are vaugely related.

Here is the title and abstract of the paper:
[[TITLE]]
Kansas Senators' Libertine Feats and Antarctic Retreats: Exploring the Correlation between Libertarian Votes and Searches for Flights to Antarctica

[[ABSTRACT]]
This paper delves into the intriguing association between the votes accrued by Libertarian candidates in Kansas senatorial elections and the frequency of Google searches for 'flights to Antarctica'. Leveraging data from the MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends, our study scrutinizes the period from 2004 to 2020. Employing rigorous statistical analysis, we unearthed a remarkably robust correlation coefficient of 0.9189965, with a p-value below 0.01. The implications of these findings raise eyebrow after eyebrow, as they prompt captivating questions about the connection between ideological preferences in the Midwest and a longing for the icy allure of the southernmost continent. Our results emphasize the need for further interdisciplinary investigation into the unexpected interplay between political leanings and aspirations for polar exploration.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
The intersection of political ideologies and wanderlust has long been a topic of interest and speculation. From the coffee shops of Seattle to the ranches of Texas, the relationship between political leanings and travel preferences has raised eyebrows and sparked numerous discussions. In this vein, our study endeavors to shed light on the unexpected connection between the votes garnered by Libertarian candidates in Kansas senatorial elections and the frequency of Google searches for 'flights to Antarctica'. While this association may at first glance seem as improbable as a penguin in the desert, our rigorous analysis has uncovered an intriguing link that demands further exploration.
The state of Kansas, known for its sunflower-dotted plains and heartland charm, has also emerged as a hotbed of political diversity, serving as a captivating backdrop for our investigation. Here, the Libertarian Party has made notable strides, with their votes often raising eyebrows and occasionally turning heads in statewide elections. Concurrently, the allure of Antarctica, the frozen frontier at the bottom of the world, beckons to the venturous souls seeking an escape from the mundane. The juxtaposition of these seemingly disparate phenomena has culminated in our curiosity, prompting us to scrutinize the relationship between political ballot choices and the yearning for remote polar expeditions.
Leveraging the expansive data from the MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends, and armed with robust statistical tools, we embark on our quest to uncover the hidden patterns and correlations. Our goal is not only to unveil the statistical nuances of this surprising relationship but also to inspire future interdisciplinary dialogues and investigations exploring the broader implications of such unconventional associations. In doing so, we hope to contribute to the scholarly discourse on the interplay between political ideology and the whims of travel aspirations. As we embark on this scholarly journey, we invite our readers to join us in this intellectual sojourn, where the unexpected outcomes may prove to be as astonishing as stumbling upon a polar bear in the heart of Kansas.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

The literature surrounding the bizarre yet enthralling symbiosis of political affiliations and exotic travel inclinations is a patchwork of serious scholarly pursuits and curious, whimsical voyages into the realm of the unexpected. Early investigations by Smith (2010) and Doe (2013) delved into the complex relationship between political voting patterns and the propensity for unconventional travel destinations, laying the groundwork for our own expedition into the uncharted territory of Kansas Senators' Libertine Feats and Antarctic Retreats.

Turning the pages to more recent accounts, Jones (2018) offered a comprehensive analysis of electoral dynamics within the Kansas landscape, providing a substantive backdrop to the political climate under scrutiny in our study. However, as our intrepid exploration continued, we stumbled upon a surprising trove of literature that veered whimsically into uncharted waters.

The saga of ideological wanderings and whimsical aspirations took an unforeseen turn with "The Icebound Odyssey" by Frost (2015), a captivating tale of political dissension and frigid dreams. Meanwhile, the enigmatic allure of remote polar expeditions found its echo in "Polar Dreams: A Glimpse of the Icy Abyss" by Frostbite, a title that left us pondering the frosty mysteries of the Kansas-Antarctica nexus.

Venturing further, we encountered the playful yet prescient musings of "Snowball's Chance" by Winterton (2002), an allegorical journey through the icy landscapes of both politics and polar exploration. It was as if the very spirit of our research topic had been captured in the fictional realm, beckoning us to contemplate the convergence of political leanings and the call of the Antarctic winds.

As our journey continued, we stumbled upon the unexpected whispers of board game lore, where "Penguin Politicians: Battle for the Ice Throne" and "Antarctic Odyssey: Campaign Trail to the South Pole" presented themselves as improbable but strangely relevant sources of inspiration, hinting at the surreal harmonies between political skirmishes and frigid dreams.


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

Please make up the methodology section of an academic research paper presenting the findings of the connection between Libertarian votes for Senators in Kansas and Google searches for 'flights to Antarctica'. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, 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]]
Kansas Senators' Libertine Feats and Antarctic Retreats: Exploring the Correlation between Libertarian Votes and Searches for Flights to Antarctica

[[ABSTRACT]]
This paper delves into the intriguing association between the votes accrued by Libertarian candidates in Kansas senatorial elections and the frequency of Google searches for 'flights to Antarctica'. Leveraging data from the MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends, our study scrutinizes the period from 2004 to 2020. Employing rigorous statistical analysis, we unearthed a remarkably robust correlation coefficient of 0.9189965, with a p-value below 0.01. The implications of these findings raise eyebrow after eyebrow, as they prompt captivating questions about the connection between ideological preferences in the Midwest and a longing for the icy allure of the southernmost continent. Our results emphasize the need for further interdisciplinary investigation into the unexpected interplay between political leanings and aspirations for polar exploration.

[[INTRODUCTION]]
The intersection of political ideologies and wanderlust has long been a topic of interest and speculation. From the coffee shops of Seattle to the ranches of Texas, the relationship between political leanings and travel preferences has raised eyebrows and sparked numerous discussions. In this vein, our study endeavors to shed light on the unexpected connection between the votes garnered by Libertarian candidates in Kansas senatorial elections and the frequency of Google searches for 'flights to Antarctica'. While this association may at first glance seem as improbable as a penguin in the desert, our rigorous analysis has uncovered an intriguing link that demands further exploration.
The state of Kansas, known for its sunflower-dotted plains and heartland charm, has also emerged as a hotbed of political diversity, serving as a captivating backdrop for our investigation. Here, the Libertarian Party has made notable strides, with their votes often raising eyebrows and occasionally turning heads in statewide elections. Concurrently, the allure of Antarctica, the frozen frontier at the bottom of the world, beckons to the venturous souls seeking an escape from the mundane. The juxtaposition of these seemingly disparate phenomena has culminated in our curiosity, prompting us to scrutinize the relationship between political ballot choices and the yearning for remote polar expeditions.
Leveraging the expansive data from the MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends, and armed with robust statistical tools, we embark on our quest to uncover the hidden patterns and correlations. Our goal is not only to unveil the statistical nuances of this surprising relationship but also to inspire future interdisciplinary dialogues and investigations exploring the broader implications of such unconventional associations. In doing so, we hope to contribute to the scholarly discourse on the interplay between political ideology and the whims of travel aspirations. As we embark on this scholarly journey, we invite our readers to join us in this intellectual sojourn, where the unexpected outcomes may prove to be as astonishing as stumbling upon a polar bear in the heart of Kansas.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To commence our investigation into the perplexing nexus between Libertarian votes in Kansas senatorial elections and the seemingly unrelated quest for Antarctic expeditions, we meticulously curated data from a variety of sources, with a focus on the MIT Election Data and Science Lab, Harvard Dataverse, and the mesmerizing realm of Google Trends. The period under scrutiny spanned from 2004 to 2020, capturing electoral outcomes and search patterns through a landscape of shifting political tides and digital quests for sub-zero escapades.

Our first step involved the calculation of Libertarian vote shares in Kansas senatorial elections, a task necessitating meticulous extraction and curation of electoral data. Diving into the MIT Election Data and Science Lab's trove of statistical treasures, we diligently assembled the figures representing support for Libertarian candidates, no doubt leaving us thoroughly immersed in the ebb and flow of political fervor across the Sunflower State.

Simultaneously, our unyielding curiosity led us to engage with the opulent dimensions of Harvard Dataverse, where we sought to enrich our dataset with covariates capturing the political, demographic, and meteorological tapestry of Kansas. The intellectual expedition through the labyrinth of data repositories was akin to navigating a scholarly treasure map, where each dataset held the promise of unraveling unexpected connections and unveiling hidden patterns.

With our electoral data in hand, we dexterously journeyed into the whimsical realm of Google Trends, where the ebbs and flows of search queries for 'flights to Antarctica' awaited our scrutiny. The aggregation of search volume index data not only provided a glimpse into the temporal dynamics of yearning for polar exploration but also served as a poignant reminder of the human fascination with the enigmatic continent at the bottom of the world.

Armed with this multi-faceted dataset, we called upon the formidable prowess of statistical analysis to disentangle the seemingly enigmatic relationship between Libertarian votes and Antarctic yearnings. Employing robust regression techniques and time series analysis, we waded into the myriad statistical nuances with the tenacity of a penguin navigating through an icy labyrinth. Our exploration culminated in the unveiling of a remarkable correlation coefficient, testament to the unexpected interplay between political allegiance and the allure of a polar exodus.

In essence, our methodology served as a grand odyssey through the realms of electoral data, search trends, and statistical sorcery, leading us to uncover a correlation as astonishing as chancing upon a snowcone stand in the midst of a political rally.


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

Please make up the results section of an academic research paper presenting the findings of the connection between Libertarian votes for Senators in Kansas and Google searches for 'flights to Antarctica'. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, 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.9189965, r-squared of 0.8445546, 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]]
Kansas Senators' Libertine Feats and Antarctic Retreats: Exploring the Correlation between Libertarian Votes and Searches for Flights to Antarctica

[[ABSTRACT]]
This paper delves into the intriguing association between the votes accrued by Libertarian candidates in Kansas senatorial elections and the frequency of Google searches for 'flights to Antarctica'. Leveraging data from the MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends, our study scrutinizes the period from 2004 to 2020. Employing rigorous statistical analysis, we unearthed a remarkably robust correlation coefficient of 0.9189965, with a p-value below 0.01. The implications of these findings raise eyebrow after eyebrow, as they prompt captivating questions about the connection between ideological preferences in the Midwest and a longing for the icy allure of the southernmost continent. Our results emphasize the need for further interdisciplinary investigation into the unexpected interplay between political leanings and aspirations for polar exploration.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
The intersection of political ideologies and wanderlust has long been a topic of interest and speculation. From the coffee shops of Seattle to the ranches of Texas, the relationship between political leanings and travel preferences has raised eyebrows and sparked numerous discussions. In this vein, our study endeavors to shed light on the unexpected connection between the votes garnered by Libertarian candidates in Kansas senatorial elections and the frequency of Google searches for 'flights to Antarctica'. While this association may at first glance seem as improbable as a penguin in the desert, our rigorous analysis has uncovered an intriguing link that demands further exploration.
The state of Kansas, known for its sunflower-dotted plains and heartland charm, has also emerged as a hotbed of political diversity, serving as a captivating backdrop for our investigation. Here, the Libertarian Party has made notable strides, with their votes often raising eyebrows and occasionally turning heads in statewide elections. Concurrently, the allure of Antarctica, the frozen frontier at the bottom of the world, beckons to the venturous souls seeking an escape from the mundane. The juxtaposition of these seemingly disparate phenomena has culminated in our curiosity, prompting us to scrutinize the relationship between political ballot choices and the yearning for remote polar expeditions.
Leveraging the expansive data from the MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends, and armed with robust statistical tools, we embark on our quest to uncover the hidden patterns and correlations. Our goal is not only to unveil the statistical nuances of this surprising relationship but also to inspire future interdisciplinary dialogues and investigations exploring the broader implications of such unconventional associations. In doing so, we hope to contribute to the scholarly discourse on the interplay between political ideology and the whims of travel aspirations. As we embark on this scholarly journey, we invite our readers to join us in this intellectual sojourn, where the unexpected outcomes may prove to be as astonishing as stumbling upon a polar bear in the heart of Kansas.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The statistical analysis of the data revealed a striking correlation between the votes garnered by Libertarian candidates in Kansas senatorial elections and the frequency of Google searches for 'flights to Antarctica'. The correlation coefficient of 0.9189965 portrays a remarkably robust relationship between these seemingly unrelated variables. This correlation is statistically significant with a p-value below 0.01, providing strong evidence against the null hypothesis and indicating a legitimate association between these peculiar phenomena.

The strength of this association is further accentuated by the r-squared value of 0.8445546, suggesting that approximately 84.5% of the variability in searches for flights to Antarctica can be explained by the Libertarian votes for Senators in Kansas. Remarkably, this robust relationship extends across the 2004-2020 period, offering compelling evidence of the enduring connection between ideological leanings and the allure of the southernmost continent.

Figure 1 depicts a scatterplot illustrating this strong correlation between Libertarian votes and Google searches for 'flights to Antarctica', visually encapsulating the unexpected relationship that our statistical analysis has brought to the forefront. The unanticipated nature of this association leaves one pondering the peculiar interplay between political preferences in the heartland and a longing for subzero escapades.

These findings provoke thought-provoking questions, sparking curiosity about the underlying drivers of this correlation and the potential influence of political ideologies on wanderlust. The implications of this study not only challenge conventional assumptions but also beckon for further interdisciplinary investigations to unravel the underlying mechanisms behind this intriguing association. As we unveil this unlikely nexus between Kansas Senators' libertine feats and Antarctic retreats, we invite the scholarly community to join us in exploring the uncharted territory where politics and polar aspirations intersect.


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

Please make up the discussion section of an academic research paper presenting the findings of the connection between Libertarian votes for Senators in Kansas and Google searches for 'flights to Antarctica'. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, 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]]
Kansas Senators' Libertine Feats and Antarctic Retreats: Exploring the Correlation between Libertarian Votes and Searches for Flights to Antarctica

[[ABSTRACT]]
This paper delves into the intriguing association between the votes accrued by Libertarian candidates in Kansas senatorial elections and the frequency of Google searches for 'flights to Antarctica'. Leveraging data from the MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends, our study scrutinizes the period from 2004 to 2020. Employing rigorous statistical analysis, we unearthed a remarkably robust correlation coefficient of 0.9189965, with a p-value below 0.01. The implications of these findings raise eyebrow after eyebrow, as they prompt captivating questions about the connection between ideological preferences in the Midwest and a longing for the icy allure of the southernmost continent. Our results emphasize the need for further interdisciplinary investigation into the unexpected interplay between political leanings and aspirations for polar exploration.

[[LITERATURE REVIEW]]
The literature surrounding the bizarre yet enthralling symbiosis of political affiliations and exotic travel inclinations is a patchwork of serious scholarly pursuits and curious, whimsical voyages into the realm of the unexpected. Early investigations by Smith (2010) and Doe (2013) delved into the complex relationship between political voting patterns and the propensity for unconventional travel destinations, laying the groundwork for our own expedition into the uncharted territory of Kansas Senators' Libertine Feats and Antarctic Retreats.
Turning the pages to more recent accounts, Jones (2018) offered a comprehensive analysis of electoral dynamics within the Kansas landscape, providing a substantive backdrop to the political climate under scrutiny in our study. However, as our intrepid exploration continued, we stumbled upon a surprising trove of literature that veered whimsically into uncharted waters.
The saga of ideological wanderings and whimsical aspirations took an unforeseen turn with "The Icebound Odyssey" by Frost (2015), a captivating tale of political dissension and frigid dreams. Meanwhile, the enigmatic allure of remote polar expeditions found its echo in "Polar Dreams: A Glimpse of the Icy Abyss" by Frostbite, a title that left us pondering the frosty mysteries of the Kansas-Antarctica nexus.
Venturing further, we encountered the playful yet prescient musings of "Snowball's Chance" by Winterton (2002), an allegorical journey through the icy landscapes of both politics and polar exploration. It was as if the very spirit of our research topic had been captured in the fictional realm, beckoning us to contemplate the convergence of political leanings and the call of the Antarctic winds.
As our journey continued, we stumbled upon the unexpected whispers of board game lore, where "Penguin Politicians: Battle for the Ice Throne" and "Antarctic Odyssey: Campaign Trail to the South Pole" presented themselves as improbable but strangely relevant sources of inspiration, hinting at the surreal harmonies between political skirmishes and frigid dreams.

[[RESULTS]]
The statistical analysis of the data revealed a striking correlation between the votes garnered by Libertarian candidates in Kansas senatorial elections and the frequency of Google searches for 'flights to Antarctica'. The correlation coefficient of 0.9189965 portrays a remarkably robust relationship between these seemingly unrelated variables. This correlation is statistically significant with a p-value below 0.01, providing strong evidence against the null hypothesis and indicating a legitimate association between these peculiar phenomena.
The strength of this association is further accentuated by the r-squared value of 0.8445546, suggesting that approximately 84.5% of the variability in searches for flights to Antarctica can be explained by the Libertarian votes for Senators in Kansas. Remarkably, this robust relationship extends across the 2004-2020 period, offering compelling evidence of the enduring connection between ideological leanings and the allure of the southernmost continent.
Figure 1 depicts a scatterplot illustrating this strong correlation between Libertarian votes and Google searches for 'flights to Antarctica', visually encapsulating the unexpected relationship that our statistical analysis has brought to the forefront. The unanticipated nature of this association leaves one pondering the peculiar interplay between political preferences in the heartland and a longing for subzero escapades.
These findings provoke thought-provoking questions, sparking curiosity about the underlying drivers of this correlation and the potential influence of political ideologies on wanderlust. The implications of this study not only challenge conventional assumptions but also beckon for further interdisciplinary investigations to unravel the underlying mechanisms behind this intriguing association. As we unveil this unlikely nexus between Kansas Senators' libertine feats and Antarctic retreats, we invite the scholarly community to join us in exploring the uncharted territory where politics and polar aspirations intersect.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The robust correlation uncovered in this study between Libertarian votes for Senators in Kansas and Google searches for 'flights to Antarctica' is nothing short of astounding, yet the implications extend far beyond mere statistical surprise. The whimsical undercurrent of our literature review, particularly the delightful paradigms presented in "Penguin Politicians: Battle for the Ice Throne" and "Antarctic Odyssey: Campaign Trail to the South Pole," may seem fanciful, but they oddly resonate with the serious findings of our investigation.

It appears that the political landscape of Kansas has cast an unexpected spell, enticing voters to contemplate escapes to the frigid wilderness of Antarctica. While the gaze of academia may not have initially turned southward in the context of Kansas politics, the resounding correlation coefficient of 0.9189965, with its p-value below 0.01, beckons us to recognize the substantial relevance of these seemingly disparate phenomena. The r-squared value of 0.8445546 further emphasizes the compelling nature of this association, pointing to a substantial portion of the variability in searches for flights to Antarctica being linked to Libertarian votes in Kansas.

The convergence of political preferences and wanderlust toward Antarctica provokes both curiosity and amusement, prompting contemplation of the underlying mechanisms driving this unexpected correlation. It is intriguing to consider the potential influence of political ideologies on the desire for polar exploration, perhaps indicative of an unanticipated interplay between political leanings and a longing for subzero adventures.

In conclusion, the significant and enduring relationship uncovered in this study challenges conventional wisdom and paves the way for a deeper understanding of the intricate connections between political dispositions and unconventional travel inclinations. As the frosty mysteries of this Kansas-Antarctica nexus slowly begin to thaw under the scrutiny of this investigation, we are compelled to continue unraveling the enigmatic entanglement of ideological leanings and the allure of the southernmost continent.


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

Please make up a short conclusion of an academic research paper presenting the findings of the connection between Libertarian votes for Senators in Kansas and Google searches for 'flights to Antarctica'. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, 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]]
Kansas Senators' Libertine Feats and Antarctic Retreats: Exploring the Correlation between Libertarian Votes and Searches for Flights to Antarctica

[[ABSTRACT]]
This paper delves into the intriguing association between the votes accrued by Libertarian candidates in Kansas senatorial elections and the frequency of Google searches for 'flights to Antarctica'. Leveraging data from the MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends, our study scrutinizes the period from 2004 to 2020. Employing rigorous statistical analysis, we unearthed a remarkably robust correlation coefficient of 0.9189965, with a p-value below 0.01. The implications of these findings raise eyebrow after eyebrow, as they prompt captivating questions about the connection between ideological preferences in the Midwest and a longing for the icy allure of the southernmost continent. Our results emphasize the need for further interdisciplinary investigation into the unexpected interplay between political leanings and aspirations for polar exploration.

[[INTRDUCTION]]
The intersection of political ideologies and wanderlust has long been a topic of interest and speculation. From the coffee shops of Seattle to the ranches of Texas, the relationship between political leanings and travel preferences has raised eyebrows and sparked numerous discussions. In this vein, our study endeavors to shed light on the unexpected connection between the votes garnered by Libertarian candidates in Kansas senatorial elections and the frequency of Google searches for 'flights to Antarctica'. While this association may at first glance seem as improbable as a penguin in the desert, our rigorous analysis has uncovered an intriguing link that demands further exploration.
The state of Kansas, known for its sunflower-dotted plains and heartland charm, has also emerged as a hotbed of political diversity, serving as a captivating backdrop for our investigation. Here, the Libertarian Party has made notable strides, with their votes often raising eyebrows and occasionally turning heads in statewide elections. Concurrently, the allure of Antarctica, the frozen frontier at the bottom of the world, beckons to the venturous souls seeking an escape from the mundane. The juxtaposition of these seemingly disparate phenomena has culminated in our curiosity, prompting us to scrutinize the relationship between political ballot choices and the yearning for remote polar expeditions.
Leveraging the expansive data from the MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends, and armed with robust statistical tools, we embark on our quest to uncover the hidden patterns and correlations. Our goal is not only to unveil the statistical nuances of this surprising relationship but also to inspire future interdisciplinary dialogues and investigations exploring the broader implications of such unconventional associations. In doing so, we hope to contribute to the scholarly discourse on the interplay between political ideology and the whims of travel aspirations. As we embark on this scholarly journey, we invite our readers to join us in this intellectual sojourn, where the unexpected outcomes may prove to be as astonishing as stumbling upon a polar bear in the heart of Kansas.

[[RESULTS]]
The statistical analysis of the data revealed a striking correlation between the votes garnered by Libertarian candidates in Kansas senatorial elections and the frequency of Google searches for 'flights to Antarctica'. The correlation coefficient of 0.9189965 portrays a remarkably robust relationship between these seemingly unrelated variables. This correlation is statistically significant with a p-value below 0.01, providing strong evidence against the null hypothesis and indicating a legitimate association between these peculiar phenomena.
The strength of this association is further accentuated by the r-squared value of 0.8445546, suggesting that approximately 84.5% of the variability in searches for flights to Antarctica can be explained by the Libertarian votes for Senators in Kansas. Remarkably, this robust relationship extends across the 2004-2020 period, offering compelling evidence of the enduring connection between ideological leanings and the allure of the southernmost continent.
Figure 1 depicts a scatterplot illustrating this strong correlation between Libertarian votes and Google searches for 'flights to Antarctica', visually encapsulating the unexpected relationship that our statistical analysis has brought to the forefront. The unanticipated nature of this association leaves one pondering the peculiar interplay between political preferences in the heartland and a longing for subzero escapades.
These findings provoke thought-provoking questions, sparking curiosity about the underlying drivers of this correlation and the potential influence of political ideologies on wanderlust. The implications of this study not only challenge conventional assumptions but also beckon for further interdisciplinary investigations to unravel the underlying mechanisms behind this intriguing association. As we unveil this unlikely nexus between Kansas Senators' libertine feats and Antarctic retreats, we invite the scholarly community to join us in exploring the uncharted territory where politics and polar aspirations intersect.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our study illuminates the enigmatic yet compelling correlation between Libertarian votes for Senators in Kansas and Google searches for 'flights to Antarctica'. The striking relationship uncovered, akin to stumbling upon a polar bear in Kansas, challenges conventional assumptions and prompts enticing questions about the interplay between political leanings and the allure of polar exploration. The robust correlation coefficient of 0.9189965, with a p-value that would make even the most stringent statistician raise an eyebrow, underscores the legitimacy of this association. The r-squared value of 0.8445546 further emphasizes the significant impact of ideological preferences in shaping aspirations for frosty escapades.

The juxtaposition of Kansas, known for its heartland charm, and the yearning for Antarctic expeditions, reminiscent of a penguin in the desert, continues to pique our collective curiosity. The implications of these findings, akin to stumbling upon an iceberg in a cornfield, highlight the need for further interdisciplinary investigation into this unexpected interplay. Future research endeavors may yet unveil the underlying mechanisms driving this congruence and shed light on the captivating nexus where political ideologies and polar aspirations converge.

However, despite the temptation to delve deeper into the frozen frontier of Kansas Senators' libertine feats and Antarctic retreats, our findings lead us to assert with icy certainty that no further research is needed in this area. The evidence is as solid as an Antarctic glacier, and the association is as clear as the icy waters of the Southern Ocean. As we bid adieu to this unlikely pairing, we are left with the lingering thought that perhaps, in the unpredictable landscape of human preferences, there will always be room for surprises as unexpected as a ski resort in a sunflower field.


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 Kansas Senators' Libertine Feats and Antarctic Retreats: Exploring the Correlation between Libertarian Votes and Searches for Flights to Antarctica. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Political Expeditions and Antarctic Studies


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 Kansas Senators' Libertine Feats and Antarctic Retreats: Exploring the Correlation between Libertarian Votes and Searches for Flights to Antarctica. Respond only with the name of a fictional organization.

ChatGPT:

The Institute for Comparative Political Behavior and Ecotourism 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 Kansas Senators' Libertine Feats and Antarctic Retreats: Exploring the Correlation between Libertarian Votes and Searches for Flights to Antarctica with an abstract of This paper delves into the intriguing association between the votes accrued by Libertarian candidates in Kansas senatorial elections and the frequency of Google searches for 'flights to Antarctica'. Leveraging data from the MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends, our study scrutinizes the period from 2004 to 2020. Employing rigorous statistical analysis, we unearthed a remarkably robust correlation coefficient of 0.9189965, with a p-value below 0.01. The implications of these findings raise eyebrow after eyebrow, as they prompt captivating questions about the connection between ideological preferences in the Midwest and a longing for the icy allure of the southernmost continent. Our results emphasize the need for further interdisciplinary investigation into the unexpected interplay between political leanings and aspirations for polar exploration.

ChatGPT:

Kansas Senators, Libertarian candidates, Kansas senatorial elections, Libertarian votes, Google searches, flights to Antarctica, MIT Election Data and Science Lab, Harvard Dataverse, Google Trends, statistical analysis, correlation coefficient, p-value, ideological preferences, Midwest, polar exploration, interdisciplinary investigation

*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 Libertarian Senators in Kansas
Detailed data title: Total number of votes cast for Federal Libertarian Senate candidates in Kansas
Source: MIT Election Data and Science Lab, Harvard Dataverse
See what else correlates with Votes for Libertarian Senators in Kansas

Google searches for 'flights to Antarctica'
Detailed data title: Relative volume of Google searches for 'flights to Antarctica' (Worldwide, without quotes)
Source: Google Trends
Additional Info: Relative search volume (not absolute numbers)

See what else correlates with Google searches for 'flights to Antarctica'

Correlation r = 0.9189965 (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.8445546 (Coefficient of determination)
This means 84.5% of the change in the one variable (i.e., Google searches for 'flights to Antarctica') is predictable based on the change in the other (i.e., Votes for Libertarian Senators in Kansas) over the 6 years from 2004 through 2020.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 0.0096. 0.0095765854133984930000000000
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.92 in 0.96% of random cases. Said differently, if you correlated 104 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.42, 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.
200420082010201420162020
Votes for Libertarian Senators in Kansas (Total votes)218422572717922374696576068263
Google searches for 'flights to Antarctica' (Rel. search volume)11.166716.083317.416717.833325.166728.4167




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([21842,25727,17922,37469,65760,68263,])
array_2 = np.array([11.1667,16.0833,17.4167,17.8333,25.1667,28.4167,])
array_1_name = "Votes for Libertarian Senators in Kansas"
array_2_name = "Google searches for 'flights to Antarctica'"

# Perform the calculation
print(f"Calculating the correlation between {array_1_name} and {array_2_name}...")
correlation, r_squared, p_value = calculate_correlation(array_1, array_2)

# Print the results
print("Correlation Coefficient:", correlation)
print("R-squared:", r_squared)
print("P-value:", p_value)



Reuseable content

You may re-use the images on this page for any purpose, even commercial purposes, without asking for permission. The only requirement is that you attribute Tyler Vigen. Attribution can take many different forms. If you leave the "tylervigen.com" link in the image, that satisfies it just fine. If you remove it and move it to a footnote, that's fine too. You can also just write "Charts courtesy of Tyler Vigen" at the bottom of an article.

You do not need to attribute "the spurious correlations website," and you don't even need to link here if you don't want to. I don't gain anything from pageviews. There are no ads on this site, there is nothing for sale, and I am not for hire.

For the record, I am just one person. Tyler Vigen, he/him/his. I do have degrees, but they should not go after my name unless you want to annoy my wife. If that is your goal, then go ahead and cite me as "Tyler Vigen, A.A. A.A.S. B.A. J.D." Otherwise it is just "Tyler Vigen."

When spoken, my last name is pronounced "vegan," like I don't eat meat.

Full license details.
For more on re-use permissions, or to get a signed release form, see tylervigen.com/permission.

Download images for these variables:


View another random correlation

How fun was this correlation?

Your rating is stellar!


Correlation ID: 5171 · Black Variable ID: 26241 · Red Variable ID: 1373
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0