about · email me · subscribe
Spurious correlation #5,174 · View random

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is Libertarian votes for Senators in New York and the second variable is Petroluem consumption in Russia.  The chart goes from 1992 to 2016, and the two variables track closely in value over that time. Small Image

AI explanation

Fewer libertarian votes meant less hot air, leading to a slight decrease in global temperatures, so Russians didn't need as much petrol to stay warm in the winter. Looks like New York's political climate is inadvertently affecting the actual climate!

Model: dalle-3
Prompt: Generate a vaporwave-style imagery showing the concept of a global shift in political and environmental climates. In the center of the visual, lay a stylized map of New York depicting a decline in Libertarian votes for Senators, represented by a fading graph superimposed over the state. To the left, include a thermometer indicating a slight decrease in global temperatures, symbolizing the impact of political shifts on the environment. On the right side, incorporate a map of Russia showcasing a small decrease in petroleum consumption, accompanied by visuals of people using less fuel to stay warm in the winter. Connect the political and environmental themes through cohesive visual storytelling. 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 New York and Petroluem consumption in Russia. 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 Polaroid photo Concept art Glitch art Vaporwave A photo-realistic image
ChatGPT: Vaporwave

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 New York and Petroluem consumption in Russia, in the following situation: Fewer libertarian votes meant less hot air, leading to a slight decrease in global temperatures, so Russians didn't need as much petrol to stay warm in the winter. Looks like New York's political climate is inadvertently affecting the actual climate!. Keep the description simple.
ChatGPT: In a simple visual scene, we see a map of New York with a graph showing fewer Libertarian votes for Senators. Nearby, we see a thermometer showing a slight decrease in global temperatures. On the other side of the map, we see a map of Russia with a small decrease in petroleum consumption, and people are seen using less fuel to stay warm in the winter. The connection between the political climate in New York and the actual climate is visually depicted with these scenes.

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: [ Vaporwave ] and depicting this scene: In a simple visual scene, we see a map of New York with a graph showing fewer Libertarian votes for Senators. Nearby, we see a thermometer showing a slight decrease in global temperatures. On the other side of the map, we see a map of Russia with a small decrease in petroleum consumption, and people are seen using less fuel to stay warm in the winter. The connection between the political climate in New York and the actual climate is visually depicted with these scenes. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Generate a vaporwave-style imagery showing the concept of a global shift in political and environmental climates. In the center of the visual, lay a stylized map of New York depicting a decline in Libertarian votes for Senators, represented by a fading graph superimposed over the state. To the left, include a thermometer indicating a slight decrease in global temperatures, symbolizing the impact of political shifts on the environment. On the right side, incorporate a map of Russia showcasing a small decrease in petroleum consumption, accompanied by visuals of people using less fuel to stay warm in the winter. Connect the political and environmental themes through cohesive visual storytelling.

*Variations in the User Prompts from chart to chart are just the result of random number generation in Python. I wrote a few arrays of various styles and methods to ask questions to change up the results. Every time this site writes an explanation or generates an image, the script picks from each at random.

I sequence the requests into multiple prompts because I find GPT 3.5 to perform much better with short, well-managed contexts. Thus, I track the context directly in Python and only ask ChatGPT targeted questions.

Model: gpt-3.5-turbo-1106 (fine-tuned)
System prompt: You provide humorous responses in the form of plausible sounding explanations for correlations. You assume the correlation is causative for the purpose of the explanation even if it is ridiculous. You do not chat with the user, you only reply with the causal connection explanation and nothing else.
User prompt: Please make up a funny explanation for how a decrease in Libertarian votes for Senators in New York caused Petroluem consumption in Russia to decrease. Add a funny one-liner at the end.

AI academic paper

(Because p < 0.01)
Fueling the Fire: A Petro-Political Affair Between Libertarian Votes and Petroleum Consumption

The Journal of Energy Economics and Political Science

Jan 2024
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 New York and Petroluem consumption in Russia. 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 MIT Election Data and Science Lab, Harvard Dataverse and Energy Information Administration to assess this nagging question. You found a correlation coefficient of 0.9656882 and p < 0.01 for 1992 to 2016.

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]]
"Fueling the Fire: A Petro-Political Affair Between Libertarian Votes and Petroleum Consumption"

[[ABSTRACT]]
This study delves into the intriguing relationship between the voting patterns of Libertarian-leaning constituents in New York and the consumption of petroleum in the vast expanse of Russia. Utilizing data from the MIT Election Data and Science Lab, Harvard Dataverse, and the Energy Information Administration, we sought to untangle the enigmatic web woven by these seemingly disparate variables. Applying rigorous statistical analysis, we uncovered a striking correlation coefficient of 0.9656882 and a p-value of less than 0.01 for the years spanning 1992 to 2016, painting a compelling portrait of the fascinating interplay between political leanings and global energy consumption. Our findings provoke contemplation on the interconnectedness of seemingly unrelated phenomena and hint at the tantalizing complexities that lie beneath the surface of statistical analyses.


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 New York and Petroluem consumption in Russia. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Here is the title and abstract of the paper:
[[TITLE]]
"Fueling the Fire: A Petro-Political Affair Between Libertarian Votes and Petroleum Consumption"

[[ABSTRACT]]
This study delves into the intriguing relationship between the voting patterns of Libertarian-leaning constituents in New York and the consumption of petroleum in the vast expanse of Russia. Utilizing data from the MIT Election Data and Science Lab, Harvard Dataverse, and the Energy Information Administration, we sought to untangle the enigmatic web woven by these seemingly disparate variables. Applying rigorous statistical analysis, we uncovered a striking correlation coefficient of 0.9656882 and a p-value of less than 0.01 for the years spanning 1992 to 2016, painting a compelling portrait of the fascinating interplay between political leanings and global energy consumption. Our findings provoke contemplation on the interconnectedness of seemingly unrelated phenomena and hint at the tantalizing complexities that lie beneath the surface of statistical analyses.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

The interplay between political ideologies and global economic trends has long been a subject of intrigue and speculation. Throughout history, researchers have sought to unravel the intricate connections between seemingly disparate variables, and our study seeks to contribute to this ongoing pursuit. In this paper, we explore the enthralling relationship between the voting patterns of Libertarian-leaning constituents in New York and the extensive consumption of petroleum in Russia. As we delve into this unconventional pairing of variables, we embark on a statistical journey that promises to shed light on the clandestine dance of political leanings and energy consumption.

Although it may seem that Libertarians in New York and Russian petroleum consumption exist in separate orbits, our analysis reveals a surprisingly robust association between these variables. Leveraging data from the MIT Election Data and Science Lab, Harvard Dataverse, and the Energy Information Administration, we embarked on a meticulous exploration of their interdependence. Our statistical scrutiny unearthed a correlation coefficient of 0.9656882 and a p-value of less than 0.01 for the years spanning 1992 to 2016. This compelling revelation beckons us to ponder the intricacies that underpin this seemingly improbable relationship.

While this investigation may appear unorthodox, it serves as a testament to the uncharted territories that statistics and research continue to traverse. As we navigate through the labyrinth of data analysis, we invite the reader to join us in contemplating the curious connections that emerge from this enigmatic merger of Libertarian votes and petroleum consumption. Our findings not only challenge conventional wisdom but also beckon forth a myriad of questions concerning the complex and intertwined nature of global phenomena. The tantalizing complexities that arise from our statistical inquiry beckon us to embrace the unforeseen marvels that await us in the realm of research and analysis.


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 New York and Petroluem consumption in Russia. 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 name some cartoons and childrens' shows that you watched that are related to the topic.

Here is the title and abstract of the paper:
[[TITLE]]
"Fueling the Fire: A Petro-Political Affair Between Libertarian Votes and Petroleum Consumption"

[[ABSTRACT]]
This study delves into the intriguing relationship between the voting patterns of Libertarian-leaning constituents in New York and the consumption of petroleum in the vast expanse of Russia. Utilizing data from the MIT Election Data and Science Lab, Harvard Dataverse, and the Energy Information Administration, we sought to untangle the enigmatic web woven by these seemingly disparate variables. Applying rigorous statistical analysis, we uncovered a striking correlation coefficient of 0.9656882 and a p-value of less than 0.01 for the years spanning 1992 to 2016, painting a compelling portrait of the fascinating interplay between political leanings and global energy consumption. Our findings provoke contemplation on the interconnectedness of seemingly unrelated phenomena and hint at the tantalizing complexities that lie beneath the surface of statistical analyses.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
The interplay between political ideologies and global economic trends has long been a subject of intrigue and speculation. Throughout history, researchers have sought to unravel the intricate connections between seemingly disparate variables, and our study seeks to contribute to this ongoing pursuit. In this paper, we explore the enthralling relationship between the voting patterns of Libertarian-leaning constituents in New York and the extensive consumption of petroleum in Russia. As we delve into this unconventional pairing of variables, we embark on a statistical journey that promises to shed light on the clandestine dance of political leanings and energy consumption.
Although it may seem that Libertarians in New York and Russian petroleum consumption exist in separate orbits, our analysis reveals a surprisingly robust association between these variables. Leveraging data from the MIT Election Data and Science Lab, Harvard Dataverse, and the Energy Information Administration, we embarked on a meticulous exploration of their interdependence. Our statistical scrutiny unearthed a correlation coefficient of 0.9656882 and a p-value of less than 0.01 for the years spanning 1992 to 2016. This compelling revelation beckons us to ponder the intricacies that underpin this seemingly improbable relationship.
While this investigation may appear unorthodox, it serves as a testament to the uncharted territories that statistics and research continue to traverse. As we navigate through the labyrinth of data analysis, we invite the reader to join us in contemplating the curious connections that emerge from this enigmatic merger of Libertarian votes and petroleum consumption. Our findings not only challenge conventional wisdom but also beckon forth a myriad of questions concerning the complex and intertwined nature of global phenomena. The tantalizing complexities that arise from our statistical inquiry beckon us to embrace the unforeseen marvels that await us in the realm of research and analysis.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

In "Smith et al. (2015)," the authors find a strong positive relationship between Libertarian votes for Senators in New York and petroleum consumption in Russia. The study employs rigorous statistical methods and draws attention to the unexpected correlation that exists between these seemingly unrelated variables. Building upon these intriguing findings, "Doe and Jones (2018)" delve deeper into the underlying mechanisms of this association, shedding light on the socio-political dynamics and global energy trends that underpin the enigmatic interplay between political leanings and petroleum consumption.

As we venture further into the realm of unconventional statistical relationships, it is essential to consider the broader implications of such connections. "The Economics of Petroleum Consumption" by Brown and "Political Leanings in New York" by Green provide valuable insights into the socio-economic and political landscapes that might influence the observed correlation. Moving beyond the realm of non-fiction, "The Politics of Oil" by White and "Libertarian Musings" by Black offer unconventional perspectives on the interwoven tapestry of political ideologies and energy consumption.

Expanding our horizons beyond conventional academic literature, we turn our attention to the realm of fiction where "The Petroleum Paradox" by Silver and "Libertarian Utopia" by Goldbeck invite readers into a world where petroleum consumption and political leanings collide in unexpected ways. Additionally, "The Russian Connection" by Steele and "New York Nights" by Liberty explore the undercurrents of political intrigue and energy dynamics, challenging conventional narratives and leading us to contemplate the nuanced interplay between ideological persuasions and global resource utilization.

In the world of popular culture, cartoons and children's shows such as "Rocky and Bullwinkle," "Inspector Gadget," and "The Magic School Bus" have subtly woven themes of energy consumption and political leanings into their narratives, providing an alternative lens through which to explore the intersection of seemingly unrelated phenomena.

As we delve deeper into the labyrinth of scholarly discourse and cultural artifacts, the interconnectedness of Libertarian votes in New York and petroleum consumption in Russia beckons us to embrace the unforeseen marvels and unexpected twists that await us in the realm of research and analysis.


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 New York and Petroluem consumption in Russia. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Your research team collected data from all across the internet, but mostly just used information from MIT Election Data and Science Lab, Harvard Dataverse and Energy Information Administration . You used data from 1992 to 2016

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]]
"Fueling the Fire: A Petro-Political Affair Between Libertarian Votes and Petroleum Consumption"

[[ABSTRACT]]
This study delves into the intriguing relationship between the voting patterns of Libertarian-leaning constituents in New York and the consumption of petroleum in the vast expanse of Russia. Utilizing data from the MIT Election Data and Science Lab, Harvard Dataverse, and the Energy Information Administration, we sought to untangle the enigmatic web woven by these seemingly disparate variables. Applying rigorous statistical analysis, we uncovered a striking correlation coefficient of 0.9656882 and a p-value of less than 0.01 for the years spanning 1992 to 2016, painting a compelling portrait of the fascinating interplay between political leanings and global energy consumption. Our findings provoke contemplation on the interconnectedness of seemingly unrelated phenomena and hint at the tantalizing complexities that lie beneath the surface of statistical analyses.

[[INTRODUCTION]]
The interplay between political ideologies and global economic trends has long been a subject of intrigue and speculation. Throughout history, researchers have sought to unravel the intricate connections between seemingly disparate variables, and our study seeks to contribute to this ongoing pursuit. In this paper, we explore the enthralling relationship between the voting patterns of Libertarian-leaning constituents in New York and the extensive consumption of petroleum in Russia. As we delve into this unconventional pairing of variables, we embark on a statistical journey that promises to shed light on the clandestine dance of political leanings and energy consumption.
Although it may seem that Libertarians in New York and Russian petroleum consumption exist in separate orbits, our analysis reveals a surprisingly robust association between these variables. Leveraging data from the MIT Election Data and Science Lab, Harvard Dataverse, and the Energy Information Administration, we embarked on a meticulous exploration of their interdependence. Our statistical scrutiny unearthed a correlation coefficient of 0.9656882 and a p-value of less than 0.01 for the years spanning 1992 to 2016. This compelling revelation beckons us to ponder the intricacies that underpin this seemingly improbable relationship.
While this investigation may appear unorthodox, it serves as a testament to the uncharted territories that statistics and research continue to traverse. As we navigate through the labyrinth of data analysis, we invite the reader to join us in contemplating the curious connections that emerge from this enigmatic merger of Libertarian votes and petroleum consumption. Our findings not only challenge conventional wisdom but also beckon forth a myriad of questions concerning the complex and intertwined nature of global phenomena. The tantalizing complexities that arise from our statistical inquiry beckon us to embrace the unforeseen marvels that await us in the realm of research and analysis.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

The present study employed a comprehensive research design to unravel the curious correlation between Libertarian votes for Senators in New York and petroleum consumption in Russia. The data utilized in this analysis was primarily sourced from the MIT Election Data and Science Lab, Harvard Dataverse, and the Energy Information Administration, spanning the years 1992 to 2016.

To begin, we collected detailed voting data from the MIT Election Data and Science Lab, sifting through the intricate nuances of Libertarian voting patterns in the vibrant political landscape of New York. This data provided a robust foundation for understanding the granular intricacies of political leanings that we wished to examine.

In tandem, we delved into the depths of the Harvard Dataverse to extract comprehensive information on petroleum consumption in Russia. Navigating through this sea of data, we honed in on the consumption trends, examining the ebbs and flows that charted the captivating course of petroleum utilization in the expansive territory of Russia.

In order to ensure the veracity and integrity of our findings, a meticulous data cleaning process was implemented, akin to meticulously combing through a haystack to separate the proverbial statistical needles. Once the data was thoroughly sifted and cleansed, we transcended the realm of mere observation and ventured into the fathomless depths of statistical analysis.

Employing the venerable tools of regression analysis, we sought to quantify the relationship between these seemingly divergent variables, the statistical equivalent of unearthing hidden treasure in an ocean of numbers. By scrutinizing the data through the lens of regression models, we were able to tease apart the underlying structure of the relationship, unearthing the enigmatic web of association between Libertarian votes in New York and petroleum consumption in Russia.

Furthermore, our analysis was underpinned by rigorous hypothesis testing, akin to a scientific experiment on the grand stage of statistical inquiry. We endeavored to evaluate the strength and significance of the observed relationship, dissecting the data with the precision of a seasoned surgeon to discern the veritable heartbeat of the correlation.

Additionally, we subjected the data to time-series analysis, capturing the dynamic dance of the variables over the expanse of time. Through this temporal lens, we unraveled the mesmerizing tapestry of change and continuity that pervaded the relationship between Libertarian votes and petroleum consumption, akin to observing the ebb and flow of tides in the vast ocean of statistical phenomena.

In sum, our methodology intertwined the threads of statistical analysis, data cleaning, regression modeling, hypothesis testing, and time-series analysis to unravel the captivating connection between Libertarian votes for Senators in New York and petroleum consumption in Russia. Our journey exuded the spirit of scientific curiosity, embarking on a statistical odyssey that traversed the eccentric pathways of data exploration, hypothesis testing, and model building in the quest to understand the hidden dynamics of these unforeseen associations.


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 New York and Petroluem consumption in Russia. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

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

For the time period 1992 to 2016, you found a correlation 0.9656882, r-squared of 0.9325538, 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]]
"Fueling the Fire: A Petro-Political Affair Between Libertarian Votes and Petroleum Consumption"

[[ABSTRACT]]
This study delves into the intriguing relationship between the voting patterns of Libertarian-leaning constituents in New York and the consumption of petroleum in the vast expanse of Russia. Utilizing data from the MIT Election Data and Science Lab, Harvard Dataverse, and the Energy Information Administration, we sought to untangle the enigmatic web woven by these seemingly disparate variables. Applying rigorous statistical analysis, we uncovered a striking correlation coefficient of 0.9656882 and a p-value of less than 0.01 for the years spanning 1992 to 2016, painting a compelling portrait of the fascinating interplay between political leanings and global energy consumption. Our findings provoke contemplation on the interconnectedness of seemingly unrelated phenomena and hint at the tantalizing complexities that lie beneath the surface of statistical analyses.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
The interplay between political ideologies and global economic trends has long been a subject of intrigue and speculation. Throughout history, researchers have sought to unravel the intricate connections between seemingly disparate variables, and our study seeks to contribute to this ongoing pursuit. In this paper, we explore the enthralling relationship between the voting patterns of Libertarian-leaning constituents in New York and the extensive consumption of petroleum in Russia. As we delve into this unconventional pairing of variables, we embark on a statistical journey that promises to shed light on the clandestine dance of political leanings and energy consumption.
Although it may seem that Libertarians in New York and Russian petroleum consumption exist in separate orbits, our analysis reveals a surprisingly robust association between these variables. Leveraging data from the MIT Election Data and Science Lab, Harvard Dataverse, and the Energy Information Administration, we embarked on a meticulous exploration of their interdependence. Our statistical scrutiny unearthed a correlation coefficient of 0.9656882 and a p-value of less than 0.01 for the years spanning 1992 to 2016. This compelling revelation beckons us to ponder the intricacies that underpin this seemingly improbable relationship.
While this investigation may appear unorthodox, it serves as a testament to the uncharted territories that statistics and research continue to traverse. As we navigate through the labyrinth of data analysis, we invite the reader to join us in contemplating the curious connections that emerge from this enigmatic merger of Libertarian votes and petroleum consumption. Our findings not only challenge conventional wisdom but also beckon forth a myriad of questions concerning the complex and intertwined nature of global phenomena. The tantalizing complexities that arise from our statistical inquiry beckon us to embrace the unforeseen marvels that await us in the realm of research and analysis.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

Our investigation into the enigmatic relationship between Libertarian votes for Senators in New York and petroleum consumption in Russia yielded intriguing results. The statistical analysis revealed a remarkably high correlation coefficient of 0.9656882 and an r-squared value of 0.9325538 for the time period from 1992 to 2016. This robust correlation signifies a strong association between these seemingly unrelated variables, providing ample fodder for contemplation and theoretical speculation.

In Figure 1 (see below), a scatterplot vividly portrays the striking correlation between Libertarian votes and Russian petroleum consumption. The data points align themselves with remarkable coherence, akin to the harmonious synchronization of dancers on a scientific stage. The plot beckons forth a visual representation of the statistical interplay, encapsulating the intricate relationship that underpins our findings. While the figures may appear detached and aloof at first glance, they undeniably partake in a dance of statistical significance, twirling and swaying to the rhythm of our p-value.

Our results illuminate the interwoven nature of political leanings and global energy trends, prompting astute observers to ponder the implicit connections that underlie these seemingly incongruent variables. The statistical rigor applied to this inquiry not only attests to the meticulousness of our approach but also highlights the fortuitous discovery of this captivating correlation. This unforeseen juxtaposition of Libertarian votes and petroleum consumption serves as a testament to the enigmatic marvels that arise from statistical analyses, inviting researchers and scholars to join us in navigating the labyrinth of data-driven exploration.

In conclusion, our study offers a thought-provoking glimpse into the intricate dance of statistics, unveiling an enthralling correlation between the political proclivities of New York constituents and the energy appetites of Russia. The robust association we uncovered challenges traditional preconceptions and inspires ceaseless inquiry into the convoluted tapestry of statistical relationships. As we reflect on the unexpected confluence of Libertarian votes and petroleum consumption, we are reminded of the unforeseen wonders that await us in the realm of statistical investigation.


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 New York and Petroluem consumption in Russia. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Limit your response to 500 tokens.

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

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

[[TITLE]]
"Fueling the Fire: A Petro-Political Affair Between Libertarian Votes and Petroleum Consumption"

[[ABSTRACT]]
This study delves into the intriguing relationship between the voting patterns of Libertarian-leaning constituents in New York and the consumption of petroleum in the vast expanse of Russia. Utilizing data from the MIT Election Data and Science Lab, Harvard Dataverse, and the Energy Information Administration, we sought to untangle the enigmatic web woven by these seemingly disparate variables. Applying rigorous statistical analysis, we uncovered a striking correlation coefficient of 0.9656882 and a p-value of less than 0.01 for the years spanning 1992 to 2016, painting a compelling portrait of the fascinating interplay between political leanings and global energy consumption. Our findings provoke contemplation on the interconnectedness of seemingly unrelated phenomena and hint at the tantalizing complexities that lie beneath the surface of statistical analyses.

[[LITERATURE REVIEW]]
In "Smith et al. (2015)," the authors find a strong positive relationship between Libertarian votes for Senators in New York and petroleum consumption in Russia. The study employs rigorous statistical methods and draws attention to the unexpected correlation that exists between these seemingly unrelated variables. Building upon these intriguing findings, "Doe and Jones (2018)" delve deeper into the underlying mechanisms of this association, shedding light on the socio-political dynamics and global energy trends that underpin the enigmatic interplay between political leanings and petroleum consumption.
As we venture further into the realm of unconventional statistical relationships, it is essential to consider the broader implications of such connections. "The Economics of Petroleum Consumption" by Brown and "Political Leanings in New York" by Green provide valuable insights into the socio-economic and political landscapes that might influence the observed correlation. Moving beyond the realm of non-fiction, "The Politics of Oil" by White and "Libertarian Musings" by Black offer unconventional perspectives on the interwoven tapestry of political ideologies and energy consumption.
Expanding our horizons beyond conventional academic literature, we turn our attention to the realm of fiction where "The Petroleum Paradox" by Silver and "Libertarian Utopia" by Goldbeck invite readers into a world where petroleum consumption and political leanings collide in unexpected ways. Additionally, "The Russian Connection" by Steele and "New York Nights" by Liberty explore the undercurrents of political intrigue and energy dynamics, challenging conventional narratives and leading us to contemplate the nuanced interplay between ideological persuasions and global resource utilization.
In the world of popular culture, cartoons and children's shows such as "Rocky and Bullwinkle," "Inspector Gadget," and "The Magic School Bus" have subtly woven themes of energy consumption and political leanings into their narratives, providing an alternative lens through which to explore the intersection of seemingly unrelated phenomena.
As we delve deeper into the labyrinth of scholarly discourse and cultural artifacts, the interconnectedness of Libertarian votes in New York and petroleum consumption in Russia beckons us to embrace the unforeseen marvels and unexpected twists that await us in the realm of research and analysis.

[[RESULTS]]
Our investigation into the enigmatic relationship between Libertarian votes for Senators in New York and petroleum consumption in Russia yielded intriguing results. The statistical analysis revealed a remarkably high correlation coefficient of 0.9656882 and an r-squared value of 0.9325538 for the time period from 1992 to 2016. This robust correlation signifies a strong association between these seemingly unrelated variables, providing ample fodder for contemplation and theoretical speculation.
In Figure 1 (see below), a scatterplot vividly portrays the striking correlation between Libertarian votes and Russian petroleum consumption. The data points align themselves with remarkable coherence, akin to the harmonious synchronization of dancers on a scientific stage. The plot beckons forth a visual representation of the statistical interplay, encapsulating the intricate relationship that underpins our findings. While the figures may appear detached and aloof at first glance, they undeniably partake in a dance of statistical significance, twirling and swaying to the rhythm of our p-value.
Our results illuminate the interwoven nature of political leanings and global energy trends, prompting astute observers to ponder the implicit connections that underlie these seemingly incongruent variables. The statistical rigor applied to this inquiry not only attests to the meticulousness of our approach but also highlights the fortuitous discovery of this captivating correlation. This unforeseen juxtaposition of Libertarian votes and petroleum consumption serves as a testament to the enigmatic marvels that arise from statistical analyses, inviting researchers and scholars to join us in navigating the labyrinth of data-driven exploration.
In conclusion, our study offers a thought-provoking glimpse into the intricate dance of statistics, unveiling an enthralling correlation between the political proclivities of New York constituents and the energy appetites of Russia. The robust association we uncovered challenges traditional preconceptions and inspires ceaseless inquiry into the convoluted tapestry of statistical relationships. As we reflect on the unexpected confluence of Libertarian votes and petroleum consumption, we are reminded of the unforeseen wonders that await us in the realm of statistical investigation.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The enthralling saga of statistical discovery has led us to unravel a perplexing correlation between Libertarian votes for Senators in New York and petroleum consumption in Russia. Our findings align closely with those of Smith et al. (2015), further supporting the notion of a robust relationship between these seemingly disparate variables. While this association may initially appear as perplexing as a Rubik's cube, our study adds momentum to the discourse surrounding this unconventional statistical relationship.

In elucidating the interconnectedness of political leanings and global energy trends, our investigation has not only uncovered a compelling correlation coefficient but also reaffirmed the vital role of statistical analyses in unearthing hidden connections. The alignment of our results with prior research serves as a reassuring beacon, akin to the comfort of finding a familiar face in a sea of inscrutable statistical distributions.

The unexpected nature of this correlation beckons forth an array of contemplations, reminiscent of a stand-up comedy routine where the punchline is as cryptic as a regression equation. Much like the hidden gags in a Marx Brothers film, the interplay between Libertarian votes and petroleum consumption invites a playful consideration of the serendipitous marvels that unfold within the realm of statistical exploration.

Moving beyond the veneer of numerical precision, our study resonates with the unconventional perspectives of Black's "Libertarian Musings" and Green's "Political Leanings in New York," shedding light on the tantalizing complexities that lie beneath the surface of seemingly incongruent variables. The playful intertextuality between our findings and the colorful tapestry of scholarly literature invites us to reimagine the scholarly discourse as a theater of paradoxes and unexpected plot twists.

As we delve deeper into the whimsical labyrinth of statistical research, our results serve as a lighthearted reminder of the captivating marvels that await us in the enchanting dance of data. The unanticipated synchrony between Libertarian votes for Senators in New York and petroleum consumption in Russia not only adds a touch of whimsy to the annals of statistical exploration but also prompts us to embrace the unforeseen surprises that abound in the world of empirical inquiry.

In essence, our study, like a cleverly disguised Easter egg in a statistical treasure hunt, urges fellow researchers to rejoice in the delightful intricacies of statistical relationships and to celebrate the whimsical landscape of scientific discovery. The quest for knowledge is not merely a rigid journey through the corridors of data, but a playful expedition through the enigmatic maze of unexpected correlations and charming statistical serendipities.


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 New York and Petroluem consumption in Russia. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

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

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
"Fueling the Fire: A Petro-Political Affair Between Libertarian Votes and Petroleum Consumption"

[[ABSTRACT]]
This study delves into the intriguing relationship between the voting patterns of Libertarian-leaning constituents in New York and the consumption of petroleum in the vast expanse of Russia. Utilizing data from the MIT Election Data and Science Lab, Harvard Dataverse, and the Energy Information Administration, we sought to untangle the enigmatic web woven by these seemingly disparate variables. Applying rigorous statistical analysis, we uncovered a striking correlation coefficient of 0.9656882 and a p-value of less than 0.01 for the years spanning 1992 to 2016, painting a compelling portrait of the fascinating interplay between political leanings and global energy consumption. Our findings provoke contemplation on the interconnectedness of seemingly unrelated phenomena and hint at the tantalizing complexities that lie beneath the surface of statistical analyses.

[[INTRDUCTION]]
The interplay between political ideologies and global economic trends has long been a subject of intrigue and speculation. Throughout history, researchers have sought to unravel the intricate connections between seemingly disparate variables, and our study seeks to contribute to this ongoing pursuit. In this paper, we explore the enthralling relationship between the voting patterns of Libertarian-leaning constituents in New York and the extensive consumption of petroleum in Russia. As we delve into this unconventional pairing of variables, we embark on a statistical journey that promises to shed light on the clandestine dance of political leanings and energy consumption.
Although it may seem that Libertarians in New York and Russian petroleum consumption exist in separate orbits, our analysis reveals a surprisingly robust association between these variables. Leveraging data from the MIT Election Data and Science Lab, Harvard Dataverse, and the Energy Information Administration, we embarked on a meticulous exploration of their interdependence. Our statistical scrutiny unearthed a correlation coefficient of 0.9656882 and a p-value of less than 0.01 for the years spanning 1992 to 2016. This compelling revelation beckons us to ponder the intricacies that underpin this seemingly improbable relationship.
While this investigation may appear unorthodox, it serves as a testament to the uncharted territories that statistics and research continue to traverse. As we navigate through the labyrinth of data analysis, we invite the reader to join us in contemplating the curious connections that emerge from this enigmatic merger of Libertarian votes and petroleum consumption. Our findings not only challenge conventional wisdom but also beckon forth a myriad of questions concerning the complex and intertwined nature of global phenomena. The tantalizing complexities that arise from our statistical inquiry beckon us to embrace the unforeseen marvels that await us in the realm of research and analysis.

[[RESULTS]]
Our investigation into the enigmatic relationship between Libertarian votes for Senators in New York and petroleum consumption in Russia yielded intriguing results. The statistical analysis revealed a remarkably high correlation coefficient of 0.9656882 and an r-squared value of 0.9325538 for the time period from 1992 to 2016. This robust correlation signifies a strong association between these seemingly unrelated variables, providing ample fodder for contemplation and theoretical speculation.
In Figure 1 (see below), a scatterplot vividly portrays the striking correlation between Libertarian votes and Russian petroleum consumption. The data points align themselves with remarkable coherence, akin to the harmonious synchronization of dancers on a scientific stage. The plot beckons forth a visual representation of the statistical interplay, encapsulating the intricate relationship that underpins our findings. While the figures may appear detached and aloof at first glance, they undeniably partake in a dance of statistical significance, twirling and swaying to the rhythm of our p-value.
Our results illuminate the interwoven nature of political leanings and global energy trends, prompting astute observers to ponder the implicit connections that underlie these seemingly incongruent variables. The statistical rigor applied to this inquiry not only attests to the meticulousness of our approach but also highlights the fortuitous discovery of this captivating correlation. This unforeseen juxtaposition of Libertarian votes and petroleum consumption serves as a testament to the enigmatic marvels that arise from statistical analyses, inviting researchers and scholars to join us in navigating the labyrinth of data-driven exploration.
In conclusion, our study offers a thought-provoking glimpse into the intricate dance of statistics, unveiling an enthralling correlation between the political proclivities of New York constituents and the energy appetites of Russia. The robust association we uncovered challenges traditional preconceptions and inspires ceaseless inquiry into the convoluted tapestry of statistical relationships. As we reflect on the unexpected confluence of Libertarian votes and petroleum consumption, we are reminded of the unforeseen wonders that await us in the realm of statistical investigation.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In the immortal words of the renowned statisticians, Salt-N-Pepa, let's talk about correlation, baby! Our exploration into the mystical nexus between Libertarian votes for Senators in New York and petroleum consumption in Russia has certainly left us with more questions than answers. It seems that these variables, much like peanut butter and jelly, are inexplicably intertwined. While some may liken our findings to searching for a needle in a haystack, we prefer to liken it to finding a Petroluem (Yes, "Petroluem") in Mother Russia's proverbial haystack.

Our research not only challenges conventional wisdom but also demonstrates the surprising interconnectedness of seemingly remote constituents. We invite the scientific community to join us in pondering the enigmatic alliance between political leanings and energy consumption, as we waltz on the dance floor of statistical significance. As we bid adieu to this enthralling adventure, it is evident that further research in this domain may yield diminishing returns. Indeed, it appears that the conundrum of Libertarian votes in New York and Russian petroleum consumption has been sufficiently unraveled. That's all, folks - no more digging for correlations in this particular patch of statistical earth!


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 Fueling the Fire: A Petro-Political Affair Between Libertarian Votes and Petroleum Consumption. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Energy Economics and Political Science


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 Fueling the Fire: A Petro-Political Affair Between Libertarian Votes and Petroleum Consumption. Respond only with the name of a fictional organization.

ChatGPT:

Global Energy Analysis and Research Institute


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 Fueling the Fire: A Petro-Political Affair Between Libertarian Votes and Petroleum Consumption with an abstract of This study delves into the intriguing relationship between the voting patterns of Libertarian-leaning constituents in New York and the consumption of petroleum in the vast expanse of Russia. Utilizing data from the MIT Election Data and Science Lab, Harvard Dataverse, and the Energy Information Administration, we sought to untangle the enigmatic web woven by these seemingly disparate variables. Applying rigorous statistical analysis, we uncovered a striking correlation coefficient of 0.9656882 and a p-value of less than 0.01 for the years spanning 1992 to 2016, painting a compelling portrait of the fascinating interplay between political leanings and global energy consumption. Our findings provoke contemplation on the interconnectedness of seemingly unrelated phenomena and hint at the tantalizing complexities that lie beneath the surface of statistical analyses.

ChatGPT:

Libertarian voting, petroleum consumption, New York constituents, Russia petroleum consumption, MIT Election Data and Science Lab, Harvard Dataverse, Energy Information Administration, statistical analysis, correlation coefficient, political leanings, global energy consumption, interconnectedness of phenomena

*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

Libertarian votes for Senators in New York
Detailed data title: Total number of votes cast for Federal Libertarian Senate candidates in New York
Source: MIT Election Data and Science Lab, Harvard Dataverse
See what else correlates with Libertarian votes for Senators in New York

Petroluem consumption in Russia
Detailed data title: Volume of petroluem consumption consumed in Russia in millions of barrels per day
Source: Energy Information Administration
See what else correlates with Petroluem consumption in Russia

Correlation r = 0.9656882 (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.9325538 (Coefficient of determination)
This means 93.3% of the change in the one variable (i.e., Petroluem consumption in Russia) is predictable based on the change in the other (i.e., Libertarian votes for Senators in New York) over the 9 years from 1992 through 2016.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 2.4E-5. 0.0000238237618829417640000000
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.97 in 0.0024% of random cases. Said differently, if you correlated 41,975 random variables You don't actually need 41 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 8 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 8 because we have two variables measured over a period of 9 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.84, 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.
199219941998200020042006201020122016
Libertarian votes for Senators in New York (Total votes)10853017991822347341907320996432853189448121
Petroluem consumption in Russia (Million Barrels/Day)44242660.92463.12564.042583.512726.822965.643179.373576.69




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.
  5. 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([108530,17991,8223,4734,19073,20996,43285,31894,48121,])
array_2 = np.array([4424,2660.9,2463.1,2564.04,2583.51,2726.82,2965.64,3179.37,3576.69,])
array_1_name = "Libertarian votes for Senators in New York"
array_2_name = "Petroluem consumption in Russia"

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

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



Reuseable content

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

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

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

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

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

Download images for these variables:


View another random correlation

How fun was this correlation?

I'm genuinely thankful for your rating!


Correlation ID: 5174 · Black Variable ID: 26288 · Red Variable ID: 24841
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0