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

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is Yogurt consumption and the second variable is Votes for the Republican Presidential candidate in Louisiana.  The chart goes from 1990 to 2020, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

The live active cultures in yogurt inadvertently activated dormant conservative beliefs in individuals, leading to a surge in support for the Republican candidate. It seems like yogurt really does have a culture war going on!

Model: dalle-3
Prompt: Generate an image that features a bustling Louisiana neighborhood on a warm afternoon. In the scene, people are enjoying creamy yogurt, their expressions reflecting enjoyment and satisfaction. A subtle change appears to sweep through the crowd as voting booths suddenly pop up nearby. A line of people eagerly cast their votes for the Republican Presidential candidate. The yogurt seems to have activated a cultural and political awakening, as once-indifferent voters proudly show their support. The image should convey the vibrant atmosphere of the neighborhood, the enjoyment of the yogurt, and the scene's transformation due to the sudden appearance of the voting booths and the subsequent political engagement. 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: Yogurt consumption and Votes for the Republican Presidential candidate in Louisiana. 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 comic-book-style illustration with muted colors and a dotted halftone pattern from the 1960s Sci-fi fantacy Art nouveau Woodblock painting A scene from Skyrim
ChatGPT: A scene from Skyrim

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 Yogurt consumption and Votes for the Republican Presidential candidate in Louisiana, in the following situation: The live active cultures in yogurt inadvertently activated dormant conservative beliefs in individuals, leading to a surge in support for the Republican candidate. It seems like yogurt really does have a culture war going on!. Keep the description simple.
ChatGPT: In a bustling Louisiana neighborhood, people are seen enjoying creamy yogurt in the hot afternoon. As they savor the tangy goodness, a subtle change seems to sweep through the crowd. Suddenly, a series of voting booths pop up nearby, and a line of people eagerly cast their votes for the Republican Presidential candidate. The yogurt seems to have activated a cultural and political awakening, as the once indifferent voters are now proudly showing their support.

Model: gpt-3.5-turbo-1106
System prompt: You write and improve image generation prompts for DALLE-3. You maintain the same subjects, but enhance the visuals.
User prompt: Please respond with an image generation prompt that would be likely to create an interesting visual using DALLE-3, using the following style: [ A scene from Skyrim ] and depicting this scene: In a bustling Louisiana neighborhood, people are seen enjoying creamy yogurt in the hot afternoon. As they savor the tangy goodness, a subtle change seems to sweep through the crowd. Suddenly, a series of voting booths pop up nearby, and a line of people eagerly cast their votes for the Republican Presidential candidate. The yogurt seems to have activated a cultural and political awakening, as the once indifferent voters are now proudly showing their support. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Generate an image that features a bustling Louisiana neighborhood on a warm afternoon. In the scene, people are enjoying creamy yogurt, their expressions reflecting enjoyment and satisfaction. A subtle change appears to sweep through the crowd as voting booths suddenly pop up nearby. A line of people eagerly cast their votes for the Republican Presidential candidate. The yogurt seems to have activated a cultural and political awakening, as once-indifferent voters proudly show their support. The image should convey the vibrant atmosphere of the neighborhood, the enjoyment of the yogurt, and the scene's transformation due to the sudden appearance of the voting booths and the subsequent political engagement.

*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 Yogurt consumption caused Votes for the Republican Presidential candidate in Louisiana to increase. Add a funny one-liner at the end.

AI academic paper

(Because p < 0.01)
Yogurtright: The Curious Case of Yogurt Consumption and Votes for the Republican Presidential Candidate in Louisiana

The Journal of Culinary Politics

Jan 2024

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




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

Please draft the title and abstract of an academic research paper presenting the findings of the connection between Yogurt consumption and Votes for the Republican Presidential candidate in Louisiana. Make lots of jokes, goofy observations, and puns.

Include a pun in the title.

Your research team used data from USDA and MIT Election Data and Science Lab, Harvard Dataverse to assess this nagging question. You found a correlation coefficient of 0.9301049 and p < 0.01 for 1990 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]]
"Yogurtright: The Curious Case of Yogurt Consumption and Votes for the Republican Presidential Candidate in Louisiana"

[[ABSTRACT]]
Yogurt consumption is a topic that often leaves a sour taste in the mouths of some, while others find it to be a deliciously creamy treat. In this research paper, we delve into the surprising and seemingly unrelated realm of presidential voting patterns in Louisiana to explore the unexpected connection between yogurt consumption and political preferences. Utilizing data from the USDA and MIT Election Data and Science Lab, Harvard Dataverse, we conducted a thorough analysis spanning three decades, aiming to uncover the truth behind this tangy correlation.

Our findings revealed a striking correlation coefficient of 0.9301049 and p < 0.01, demonstrating a strong relationship between the amount of yogurt consumed and votes cast for the Republican presidential candidate in Louisiana from 1990 to 2020. The statistical significance of this association left us feeling "cultured" and pondering the peculiar influence of probiotics on political leanings. Join us in this exploration that combines the seemingly incongruous realms of dairy products and electoral preferences, as we strive to unravel the enigmatic mystery of Yogurtright.


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

Please make up the introduction section of an academic research paper presenting the findings of the connection between Yogurt consumption and Votes for the Republican Presidential candidate in Louisiana. Make lots of jokes, goofy observations, and puns.

Here is the title and abstract of the paper:
[[TITLE]]
"Yogurtright: The Curious Case of Yogurt Consumption and Votes for the Republican Presidential Candidate in Louisiana"

[[ABSTRACT]]
Yogurt consumption is a topic that often leaves a sour taste in the mouths of some, while others find it to be a deliciously creamy treat. In this research paper, we delve into the surprising and seemingly unrelated realm of presidential voting patterns in Louisiana to explore the unexpected connection between yogurt consumption and political preferences. Utilizing data from the USDA and MIT Election Data and Science Lab, Harvard Dataverse, we conducted a thorough analysis spanning three decades, aiming to uncover the truth behind this tangy correlation.

Our findings revealed a striking correlation coefficient of 0.9301049 and p < 0.01, demonstrating a strong relationship between the amount of yogurt consumed and votes cast for the Republican presidential candidate in Louisiana from 1990 to 2020. The statistical significance of this association left us feeling "cultured" and pondering the peculiar influence of probiotics on political leanings. Join us in this exploration that combines the seemingly incongruous realms of dairy products and electoral preferences, as we strive to unravel the enigmatic mystery of Yogurtright.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
Ah, yogurt, the creamy, tangy delight that's undoubtedly caused a few people to exclaim, "Holy yogurtright!" Today, we set out on a rather curdled journey into the heart of Louisiana's voting patterns, aiming to uncover the hidden connection between yogurt consumption and political affiliations. Take a deep breath and put on your metaphorical apron as we dive headfirst into the world of probiotics and presidential preferences.

In this yogurty odyssey, we examine the rather unexpected correlation between the consumption of yogurt and votes cast for the Republican presidential candidate in the great state of Louisiana. Now, I know what you're probably thinking – "Yogurt and politics? That's a pretty bizarre pairing." But, my dear companions on this scholarly expedition, allow me to assure you that this is no mere flight of fancy. Armed with data from the USDA and MIT Election Data and Science Lab, Harvard Dataverse, we ventured into the statistical wilderness to investigate this culinary-political paradox.

As we gingerly stirred our data cauldron, our analysis unveiled a striking correlation coefficient of 0.9301049 and p < 0.01, revealing a robust relationship between the consumption of yogurt and the ticked boxes in favor of the Republican presidential candidate from 1990 to 2020. The sheer potency of this association left us feeling as if we had discovered the hidden culture in this probiotic puzzle. Who would've thought that a spoonful of dairy goodness would be so intertwined with the whims of democracy?

So, grab your favorite ladle, because we're about to embark on the wild ride of Yogurtright. It's time to peel back the foil lid of electoral intrigue and take a big scoop of political dairy as we decipher the enigmatic mystery of yogurt's sway over the ballot box. From the yogurt aisle to the voting booth, join us in this thought-provoking expedition that blends the creamy goodness of dairy with the ever-surprising world of political preferences. Let's dig in and uncover the secrets hidden within this unexpected fusion of yogurt and electoral sway.


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

Please make up a literature review section of an academic research paper presenting the findings of the connection between Yogurt consumption and Votes for the Republican Presidential candidate in Louisiana. Make lots of jokes, goofy observations, and puns.

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

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

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

Here is the title and abstract of the paper:
[[TITLE]]
"Yogurtright: The Curious Case of Yogurt Consumption and Votes for the Republican Presidential Candidate in Louisiana"

[[ABSTRACT]]
Yogurt consumption is a topic that often leaves a sour taste in the mouths of some, while others find it to be a deliciously creamy treat. In this research paper, we delve into the surprising and seemingly unrelated realm of presidential voting patterns in Louisiana to explore the unexpected connection between yogurt consumption and political preferences. Utilizing data from the USDA and MIT Election Data and Science Lab, Harvard Dataverse, we conducted a thorough analysis spanning three decades, aiming to uncover the truth behind this tangy correlation.

Our findings revealed a striking correlation coefficient of 0.9301049 and p < 0.01, demonstrating a strong relationship between the amount of yogurt consumed and votes cast for the Republican presidential candidate in Louisiana from 1990 to 2020. The statistical significance of this association left us feeling "cultured" and pondering the peculiar influence of probiotics on political leanings. Join us in this exploration that combines the seemingly incongruous realms of dairy products and electoral preferences, as we strive to unravel the enigmatic mystery of Yogurtright.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
Ah, yogurt, the creamy, tangy delight that's undoubtedly caused a few people to exclaim, "Holy yogurtright!" Today, we set out on a rather curdled journey into the heart of Louisiana's voting patterns, aiming to uncover the hidden connection between yogurt consumption and political affiliations. Take a deep breath and put on your metaphorical apron as we dive headfirst into the world of probiotics and presidential preferences.
In this yogurty odyssey, we examine the rather unexpected correlation between the consumption of yogurt and votes cast for the Republican presidential candidate in the great state of Louisiana. Now, I know what you're probably thinking – "Yogurt and politics? That's a pretty bizarre pairing." But, my dear companions on this scholarly expedition, allow me to assure you that this is no mere flight of fancy. Armed with data from the USDA and MIT Election Data and Science Lab, Harvard Dataverse, we ventured into the statistical wilderness to investigate this culinary-political paradox.
As we gingerly stirred our data cauldron, our analysis unveiled a striking correlation coefficient of 0.9301049 and p < 0.01, revealing a robust relationship between the consumption of yogurt and the ticked boxes in favor of the Republican presidential candidate from 1990 to 2020. The sheer potency of this association left us feeling as if we had discovered the hidden culture in this probiotic puzzle. Who would've thought that a spoonful of dairy goodness would be so intertwined with the whims of democracy?
So, grab your favorite ladle, because we're about to embark on the wild ride of Yogurtright. It's time to peel back the foil lid of electoral intrigue and take a big scoop of political dairy as we decipher the enigmatic mystery of yogurt's sway over the ballot box. From the yogurt aisle to the voting booth, join us in this thought-provoking expedition that blends the creamy goodness of dairy with the ever-surprising world of political preferences. Let's dig in and uncover the secrets hidden within this unexpected fusion of yogurt and electoral sway.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

In their seminal work, Smith and Doe (2005) set the stage for an ongoing exploration of the unexpected ties between dietary habits and political behavior. Their study, "Dairy Dynamics: The Unlikely Influence of Yogurt on Political Leanings," takes a deep dive into the enigmatic world of yogurt consumption and its potential impact on electoral choices. Their findings illuminate a curious correlation between the regular intake of yogurt and preferences for conservative candidates, paving the whey for further investigations into this peculiar phenomenon.

Building upon the foundation laid by Smith and Doe, Jones (2010) delves into the cultural implications of dietary preferences in "Milk, Politics, and the Curious Case of Louisiana." By examining the historical patterns of dairy consumption and electoral trends in Louisiana, Jones uncovers the subtle yet tangible connection between dairy products and voting behavior. The study offers a thought-provoking analysis of how yogurt, in particular, has woven its tangy threads into the fabric of political affiliations, leaving researchers to ponder the implications of this unexpected fusion.

On a more tangential note, "The Art of War" by Sun Tzu has unexpectedly found its place in the discourse of yogurt consumption and political leanings. Details of strategies involving yogurt as a negotiation tool have surfaced, revealing the yogurt-based diplomacy that has been concealed for centuries. Additionally, "The Catcher in the Rye" by J.D. Salinger explores the intriguing parallels between the tangy rebellion of yogurt and the rebellious spirit of Holden Caulfield, adding a literary layer to the dairy-politics conundrum.

As researchers delved deeper into the underbelly of yogurt's influence, perspectives from seemingly unrelated sources such as "SpongeBob SquarePants" and "The Magic School Bus" began to inspire new ways of conceptualizing the yogurt-electoral nexus. The whimsical antics of these animated series offered unexpected insights, leading scholars to consider the influence of yogurt on cognitive development and, by extension, political decision-making processes.

This literature review, while delving into the scholarly discourse on yogurt consumption and political affiliations, cannot overlook the zeitgeist-shaping influence of fictitious narratives. As we expand the boundaries of our investigation, it becomes clear that sources ranging from "Harry Potter and the Goblet of Fire" to "The Lord of the Rings" offer tantalizing glimpses into the interplay of yogurt consumption and electoral labyrinths, urging us to look beyond the empirical confines of traditional research.


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

Please make up the methodology section of an academic research paper presenting the findings of the connection between Yogurt consumption and Votes for the Republican Presidential candidate in Louisiana. Make lots of jokes, goofy observations, and puns.

Your research team collected data from all across the internet, but mostly just used information from USDA and MIT Election Data and Science Lab, Harvard Dataverse . You used data from 1990 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]]
"Yogurtright: The Curious Case of Yogurt Consumption and Votes for the Republican Presidential Candidate in Louisiana"

[[ABSTRACT]]
Yogurt consumption is a topic that often leaves a sour taste in the mouths of some, while others find it to be a deliciously creamy treat. In this research paper, we delve into the surprising and seemingly unrelated realm of presidential voting patterns in Louisiana to explore the unexpected connection between yogurt consumption and political preferences. Utilizing data from the USDA and MIT Election Data and Science Lab, Harvard Dataverse, we conducted a thorough analysis spanning three decades, aiming to uncover the truth behind this tangy correlation.

Our findings revealed a striking correlation coefficient of 0.9301049 and p < 0.01, demonstrating a strong relationship between the amount of yogurt consumed and votes cast for the Republican presidential candidate in Louisiana from 1990 to 2020. The statistical significance of this association left us feeling "cultured" and pondering the peculiar influence of probiotics on political leanings. Join us in this exploration that combines the seemingly incongruous realms of dairy products and electoral preferences, as we strive to unravel the enigmatic mystery of Yogurtright.

[[INTRODUCTION]]
Ah, yogurt, the creamy, tangy delight that's undoubtedly caused a few people to exclaim, "Holy yogurtright!" Today, we set out on a rather curdled journey into the heart of Louisiana's voting patterns, aiming to uncover the hidden connection between yogurt consumption and political affiliations. Take a deep breath and put on your metaphorical apron as we dive headfirst into the world of probiotics and presidential preferences.
In this yogurty odyssey, we examine the rather unexpected correlation between the consumption of yogurt and votes cast for the Republican presidential candidate in the great state of Louisiana. Now, I know what you're probably thinking – "Yogurt and politics? That's a pretty bizarre pairing." But, my dear companions on this scholarly expedition, allow me to assure you that this is no mere flight of fancy. Armed with data from the USDA and MIT Election Data and Science Lab, Harvard Dataverse, we ventured into the statistical wilderness to investigate this culinary-political paradox.
As we gingerly stirred our data cauldron, our analysis unveiled a striking correlation coefficient of 0.9301049 and p < 0.01, revealing a robust relationship between the consumption of yogurt and the ticked boxes in favor of the Republican presidential candidate from 1990 to 2020. The sheer potency of this association left us feeling as if we had discovered the hidden culture in this probiotic puzzle. Who would've thought that a spoonful of dairy goodness would be so intertwined with the whims of democracy?
So, grab your favorite ladle, because we're about to embark on the wild ride of Yogurtright. It's time to peel back the foil lid of electoral intrigue and take a big scoop of political dairy as we decipher the enigmatic mystery of yogurt's sway over the ballot box. From the yogurt aisle to the voting booth, join us in this thought-provoking expedition that blends the creamy goodness of dairy with the ever-surprising world of political preferences. Let's dig in and uncover the secrets hidden within this unexpected fusion of yogurt and electoral sway.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To unravel the creamy conundrum of the Yogurtright phenomenon, we concocted a methodology as robust and multi-faceted as a parfait. Our approach aimed to extract the essence of yogurt consumption and its correlation with votes for the Republican presidential candidate in Louisiana, utilizing a blend of data collection, statistical analysis, and a zest for uncovering the unexpected. Our data were primarily sourced from the USDA, MIT Election Data and Science Lab, Harvard Dataverse, and the occasional enlightening conversation with dairy aficionados in the local supermarket.

First and foremost, we set out to gather comprehensive data on yogurt consumption and presidential voting patterns in the great state of Louisiana from 1990 to 2020. We consulted with yogurt manufacturers, dairy farmers, and even conducted impromptu taste tests in town squares to gauge the yogurt preferences of Louisianians. Of course, we had to exercise caution, as too much yogurt tasting can lead to a severe case of "culture" shock.

Once armed with an arsenal of yogurt consumption data, we performed a rigorous analysis that would make even the most seasoned dairy cow proud. We calculated the per capita yogurt consumption across Louisiana, factoring in everything from Greek yogurt to the ever-controversial fruit-on-the-bottom varieties. To complement this, we obtained detailed information on the votes cast for the Republican presidential candidate in each election year, meticulously tracking the ebb and flow of political preferences across the decades.

With these datasets in hand, we subjected the numbers to a thorough statistical examination, employing correlation analyses, regression models, and a sprinkle of multivariate techniques to tease out the relationship between yogurt consumption and Republican votes. Our statistical toolbox filled to the brim, we aimed to uncover the "culture" that permeated through our data, seeking patterns that would leave even the most seasoned statistician exclaiming, "Eureka! That's one spicy correlation!"

Moreover, to ensure the robustness of our findings, we incorporated geographical and temporal trends, investigating whether the Yogurtright phenomenon persisted across different regions and election cycles. We spared no effort in peeling back the layers of this enigmatic connection, determined to uncover the tangy truth lurking beneath the surface of yogurt consumption and political preferences.

Armed with an array of statistical tests, a hearty dose of yogurt enthusiasm, and a dash of skepticism, we examined the data from every angle, paving the way for the eye-opening findings that we present in the subsequent sections of this paper. So, grab a spoon and get ready to savor the methodological journey that unraveled the perplexing dance between yogurt and Republican votes in Louisiana. It's a journey that's sure to leave even the most impassive observers exclaiming, "Well, that's certainly not your average scoop of research!"


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

Please make up the results section of an academic research paper presenting the findings of the connection between Yogurt consumption and Votes for the Republican Presidential candidate in Louisiana. Make lots of jokes, goofy observations, and puns.

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

For the time period 1990 to 2020, you found a correlation 0.9301049, r-squared of 0.8650951, 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]]
"Yogurtright: The Curious Case of Yogurt Consumption and Votes for the Republican Presidential Candidate in Louisiana"

[[ABSTRACT]]
Yogurt consumption is a topic that often leaves a sour taste in the mouths of some, while others find it to be a deliciously creamy treat. In this research paper, we delve into the surprising and seemingly unrelated realm of presidential voting patterns in Louisiana to explore the unexpected connection between yogurt consumption and political preferences. Utilizing data from the USDA and MIT Election Data and Science Lab, Harvard Dataverse, we conducted a thorough analysis spanning three decades, aiming to uncover the truth behind this tangy correlation.

Our findings revealed a striking correlation coefficient of 0.9301049 and p < 0.01, demonstrating a strong relationship between the amount of yogurt consumed and votes cast for the Republican presidential candidate in Louisiana from 1990 to 2020. The statistical significance of this association left us feeling "cultured" and pondering the peculiar influence of probiotics on political leanings. Join us in this exploration that combines the seemingly incongruous realms of dairy products and electoral preferences, as we strive to unravel the enigmatic mystery of Yogurtright.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
Ah, yogurt, the creamy, tangy delight that's undoubtedly caused a few people to exclaim, "Holy yogurtright!" Today, we set out on a rather curdled journey into the heart of Louisiana's voting patterns, aiming to uncover the hidden connection between yogurt consumption and political affiliations. Take a deep breath and put on your metaphorical apron as we dive headfirst into the world of probiotics and presidential preferences.
In this yogurty odyssey, we examine the rather unexpected correlation between the consumption of yogurt and votes cast for the Republican presidential candidate in the great state of Louisiana. Now, I know what you're probably thinking – "Yogurt and politics? That's a pretty bizarre pairing." But, my dear companions on this scholarly expedition, allow me to assure you that this is no mere flight of fancy. Armed with data from the USDA and MIT Election Data and Science Lab, Harvard Dataverse, we ventured into the statistical wilderness to investigate this culinary-political paradox.
As we gingerly stirred our data cauldron, our analysis unveiled a striking correlation coefficient of 0.9301049 and p < 0.01, revealing a robust relationship between the consumption of yogurt and the ticked boxes in favor of the Republican presidential candidate from 1990 to 2020. The sheer potency of this association left us feeling as if we had discovered the hidden culture in this probiotic puzzle. Who would've thought that a spoonful of dairy goodness would be so intertwined with the whims of democracy?
So, grab your favorite ladle, because we're about to embark on the wild ride of Yogurtright. It's time to peel back the foil lid of electoral intrigue and take a big scoop of political dairy as we decipher the enigmatic mystery of yogurt's sway over the ballot box. From the yogurt aisle to the voting booth, join us in this thought-provoking expedition that blends the creamy goodness of dairy with the ever-surprising world of political preferences. Let's dig in and uncover the secrets hidden within this unexpected fusion of yogurt and electoral sway.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The results of our investigation into the unconventional relationship between yogurt consumption and votes for the Republican presidential candidate in Louisiana from 1990 to 2020 left us feeling as dazzled as finding a golden ticket in a yogurt container. Our research uncovered a whopping correlation coefficient of 0.9301049 and an r-squared value of 0.8650951, indicating a remarkably strong and statistically significant connection between these two seemingly unrelated variables.

The scatterplot (Fig. 1) visually depicts the undeniable link between yogurt consumption and Republican votes, leaving us with the impression that perhaps the key to winning hearts and minds lies in the refrigerator aisle, rather than on the debate stage.

Our findings raise some yogurt-scented questions about the potential influence of dairy products on political leanings. Could it be that the tangy allure of yogurt has a way of swaying the electorate's preferences? It's a conundrum that leaves us pondering the idea that perhaps a spoonful of yogurt does indeed make the political medicine go down!

In conclusion, our research has unearthed a surprisingly strong correlation between yogurt consumption and votes for the Republican presidential candidate in Louisiana, providing fodder for debates that are sure to be anything but vanilla. This tangy connection has certainly stirred the pot of political discourse, reminding us that even in the realm of dairy, politics can curdle into something unexpected.


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

Please make up the discussion section of an academic research paper presenting the findings of the connection between Yogurt consumption and Votes for the Republican Presidential candidate in Louisiana. Make lots of jokes, goofy observations, and puns.

Limit your response to 500 tokens.

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

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

[[TITLE]]
"Yogurtright: The Curious Case of Yogurt Consumption and Votes for the Republican Presidential Candidate in Louisiana"

[[ABSTRACT]]
Yogurt consumption is a topic that often leaves a sour taste in the mouths of some, while others find it to be a deliciously creamy treat. In this research paper, we delve into the surprising and seemingly unrelated realm of presidential voting patterns in Louisiana to explore the unexpected connection between yogurt consumption and political preferences. Utilizing data from the USDA and MIT Election Data and Science Lab, Harvard Dataverse, we conducted a thorough analysis spanning three decades, aiming to uncover the truth behind this tangy correlation.

Our findings revealed a striking correlation coefficient of 0.9301049 and p < 0.01, demonstrating a strong relationship between the amount of yogurt consumed and votes cast for the Republican presidential candidate in Louisiana from 1990 to 2020. The statistical significance of this association left us feeling "cultured" and pondering the peculiar influence of probiotics on political leanings. Join us in this exploration that combines the seemingly incongruous realms of dairy products and electoral preferences, as we strive to unravel the enigmatic mystery of Yogurtright.

[[LITERATURE REVIEW]]
In their seminal work, Smith and Doe (2005) set the stage for an ongoing exploration of the unexpected ties between dietary habits and political behavior. Their study, "Dairy Dynamics: The Unlikely Influence of Yogurt on Political Leanings," takes a deep dive into the enigmatic world of yogurt consumption and its potential impact on electoral choices. Their findings illuminate a curious correlation between the regular intake of yogurt and preferences for conservative candidates, paving the whey for further investigations into this peculiar phenomenon.
Building upon the foundation laid by Smith and Doe, Jones (2010) delves into the cultural implications of dietary preferences in "Milk, Politics, and the Curious Case of Louisiana." By examining the historical patterns of dairy consumption and electoral trends in Louisiana, Jones uncovers the subtle yet tangible connection between dairy products and voting behavior. The study offers a thought-provoking analysis of how yogurt, in particular, has woven its tangy threads into the fabric of political affiliations, leaving researchers to ponder the implications of this unexpected fusion.
On a more tangential note, "The Art of War" by Sun Tzu has unexpectedly found its place in the discourse of yogurt consumption and political leanings. Details of strategies involving yogurt as a negotiation tool have surfaced, revealing the yogurt-based diplomacy that has been concealed for centuries. Additionally, "The Catcher in the Rye" by J.D. Salinger explores the intriguing parallels between the tangy rebellion of yogurt and the rebellious spirit of Holden Caulfield, adding a literary layer to the dairy-politics conundrum.
As researchers delved deeper into the underbelly of yogurt's influence, perspectives from seemingly unrelated sources such as "SpongeBob SquarePants" and "The Magic School Bus" began to inspire new ways of conceptualizing the yogurt-electoral nexus. The whimsical antics of these animated series offered unexpected insights, leading scholars to consider the influence of yogurt on cognitive development and, by extension, political decision-making processes.
This literature review, while delving into the scholarly discourse on yogurt consumption and political affiliations, cannot overlook the zeitgeist-shaping influence of fictitious narratives. As we expand the boundaries of our investigation, it becomes clear that sources ranging from "Harry Potter and the Goblet of Fire" to "The Lord of the Rings" offer tantalizing glimpses into the interplay of yogurt consumption and electoral labyrinths, urging us to look beyond the empirical confines of traditional research.

[[RESULTS]]
The results of our investigation into the unconventional relationship between yogurt consumption and votes for the Republican presidential candidate in Louisiana from 1990 to 2020 left us feeling as dazzled as finding a golden ticket in a yogurt container. Our research uncovered a whopping correlation coefficient of 0.9301049 and an r-squared value of 0.8650951, indicating a remarkably strong and statistically significant connection between these two seemingly unrelated variables.
The scatterplot (Fig. 1) visually depicts the undeniable link between yogurt consumption and Republican votes, leaving us with the impression that perhaps the key to winning hearts and minds lies in the refrigerator aisle, rather than on the debate stage.
Our findings raise some yogurt-scented questions about the potential influence of dairy products on political leanings. Could it be that the tangy allure of yogurt has a way of swaying the electorate's preferences? It's a conundrum that leaves us pondering the idea that perhaps a spoonful of yogurt does indeed make the political medicine go down!
In conclusion, our research has unearthed a surprisingly strong correlation between yogurt consumption and votes for the Republican presidential candidate in Louisiana, providing fodder for debates that are sure to be anything but vanilla. This tangy connection has certainly stirred the pot of political discourse, reminding us that even in the realm of dairy, politics can curdle into something unexpected.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The findings of our research have not only left us with a newfound appreciation for the potential influence of yogurt on political preferences but have also added a dollop of intrigue to the already eclectic landscape of electoral studies. Our results not only upheld the groundbreaking work of Smith and Doe (2005) but also echoed the deliciously bizarre discoveries by Jones (2010), as we found ourselves musing over the unexpected convergence of yogurt and conservative voter tendencies.

The statistical robustness of our results, with a correlation coefficient of 0.9301049 and a practically screaming p-value of less than 0.01, has us contemplating the idea that perhaps "yogurtocracy" might be an apt term to describe this yogurt-infused electoral phenomenon. It's a notion that might just have us all looking at our breakfast bowls in a whole new light.

As we unraveled the tangy threads of our findings, it became increasingly apparent that the whimsical inspirations drawn from disparate sources such as "SpongeBob SquarePants" and "The Magic School Bus," highlighted in our literature review, were not as far-fetched as they seemed. The subtle but tangible connection between yogurt consumption and voting behavior in Louisiana has prompted us to reconsider the influence of dietary habits on cognitive processes, which might just be the real spoonful of insight.

The underbelly of yogurt's influence, as alluded to in unexpected literary works like "The Art of War" and "The Catcher in the Rye," seemed to take on a newfound significance as we contemplated the potential for yogurt to become a weapon of political mass digestion. The notion that yogurt might serve as a negotiation tool, as Sun Tzu might have envisioned, may not be as far off as one might initially think.

In closing, our findings affirm the unexpected and seasoned connection between yogurt consumption and Republican votes, sparking a flurry of yogurt-themed quips that are sure to infuse some culture into political debates. The tangy allure of yogurt has seemingly found a way to curdle into the electoral landscape, presenting us with a smorgasbord of deliciously odd possibilities and reminding us that in the world of politics, there's always room for dessert.


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

Please make up a short conclusion of an academic research paper presenting the findings of the connection between Yogurt consumption and Votes for the Republican Presidential candidate in Louisiana. Make lots of jokes, goofy observations, and puns.

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

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
"Yogurtright: The Curious Case of Yogurt Consumption and Votes for the Republican Presidential Candidate in Louisiana"

[[ABSTRACT]]
Yogurt consumption is a topic that often leaves a sour taste in the mouths of some, while others find it to be a deliciously creamy treat. In this research paper, we delve into the surprising and seemingly unrelated realm of presidential voting patterns in Louisiana to explore the unexpected connection between yogurt consumption and political preferences. Utilizing data from the USDA and MIT Election Data and Science Lab, Harvard Dataverse, we conducted a thorough analysis spanning three decades, aiming to uncover the truth behind this tangy correlation.

Our findings revealed a striking correlation coefficient of 0.9301049 and p < 0.01, demonstrating a strong relationship between the amount of yogurt consumed and votes cast for the Republican presidential candidate in Louisiana from 1990 to 2020. The statistical significance of this association left us feeling "cultured" and pondering the peculiar influence of probiotics on political leanings. Join us in this exploration that combines the seemingly incongruous realms of dairy products and electoral preferences, as we strive to unravel the enigmatic mystery of Yogurtright.

[[INTRDUCTION]]
Ah, yogurt, the creamy, tangy delight that's undoubtedly caused a few people to exclaim, "Holy yogurtright!" Today, we set out on a rather curdled journey into the heart of Louisiana's voting patterns, aiming to uncover the hidden connection between yogurt consumption and political affiliations. Take a deep breath and put on your metaphorical apron as we dive headfirst into the world of probiotics and presidential preferences.
In this yogurty odyssey, we examine the rather unexpected correlation between the consumption of yogurt and votes cast for the Republican presidential candidate in the great state of Louisiana. Now, I know what you're probably thinking – "Yogurt and politics? That's a pretty bizarre pairing." But, my dear companions on this scholarly expedition, allow me to assure you that this is no mere flight of fancy. Armed with data from the USDA and MIT Election Data and Science Lab, Harvard Dataverse, we ventured into the statistical wilderness to investigate this culinary-political paradox.
As we gingerly stirred our data cauldron, our analysis unveiled a striking correlation coefficient of 0.9301049 and p < 0.01, revealing a robust relationship between the consumption of yogurt and the ticked boxes in favor of the Republican presidential candidate from 1990 to 2020. The sheer potency of this association left us feeling as if we had discovered the hidden culture in this probiotic puzzle. Who would've thought that a spoonful of dairy goodness would be so intertwined with the whims of democracy?
So, grab your favorite ladle, because we're about to embark on the wild ride of Yogurtright. It's time to peel back the foil lid of electoral intrigue and take a big scoop of political dairy as we decipher the enigmatic mystery of yogurt's sway over the ballot box. From the yogurt aisle to the voting booth, join us in this thought-provoking expedition that blends the creamy goodness of dairy with the ever-surprising world of political preferences. Let's dig in and uncover the secrets hidden within this unexpected fusion of yogurt and electoral sway.

[[RESULTS]]
The results of our investigation into the unconventional relationship between yogurt consumption and votes for the Republican presidential candidate in Louisiana from 1990 to 2020 left us feeling as dazzled as finding a golden ticket in a yogurt container. Our research uncovered a whopping correlation coefficient of 0.9301049 and an r-squared value of 0.8650951, indicating a remarkably strong and statistically significant connection between these two seemingly unrelated variables.
The scatterplot (Fig. 1) visually depicts the undeniable link between yogurt consumption and Republican votes, leaving us with the impression that perhaps the key to winning hearts and minds lies in the refrigerator aisle, rather than on the debate stage.
Our findings raise some yogurt-scented questions about the potential influence of dairy products on political leanings. Could it be that the tangy allure of yogurt has a way of swaying the electorate's preferences? It's a conundrum that leaves us pondering the idea that perhaps a spoonful of yogurt does indeed make the political medicine go down!
In conclusion, our research has unearthed a surprisingly strong correlation between yogurt consumption and votes for the Republican presidential candidate in Louisiana, providing fodder for debates that are sure to be anything but vanilla. This tangy connection has certainly stirred the pot of political discourse, reminding us that even in the realm of dairy, politics can curdle into something unexpected.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

As we wrap up this yogurt-infused journey through the political landscape of Louisiana, it's clear that the creamy truths of our findings have truly churned up some unexpected revelations. Who would've thought that the key to winning over voters might be nestled in the dairy aisle rather than on the campaign trail? Our results provide a probiotic punch to the notion that electoral preferences are influenced by the tangy allure of yogurt.

The robust correlation coefficient of 0.9301049 and the unmistakable r-squared value of 0.8650951 paint a vivid picture of the tantalizing connection between yogurt consumption and Republican votes. It's as if each spoonful of yogurt carries with it a whisper of political persuasion, turning the act of nourishing the gut into an unexpected tool for wooing the electorate.

While our findings may raise some eyebrows, it's abundantly clear that further research in this area would simply be a "sour" use of resources. This isn't a topic that needs to be "cultured" any further – we've quite literally milked it for all it's worth. So let's leave this yogurt-fueled debate where it belongs – in the realm of delightful culinary curiosities and, perhaps, as a potential campaign strategy. After all, who wouldn't want a scoop of creamy democracy with their morning granola?


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 Yogurtright: The Curious Case of Yogurt Consumption and Votes for the Republican Presidential Candidate in Louisiana. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Culinary Politics


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 Yogurtright: The Curious Case of Yogurt Consumption and Votes for the Republican Presidential Candidate in Louisiana. Respond only with the name of a fictional organization.

ChatGPT:

The Institute for Probiotic Political 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 Yogurtright: The Curious Case of Yogurt Consumption and Votes for the Republican Presidential Candidate in Louisiana with an abstract of Yogurt consumption is a topic that often leaves a sour taste in the mouths of some, while others find it to be a deliciously creamy treat. In this research paper, we delve into the surprising and seemingly unrelated realm of presidential voting patterns in Louisiana to explore the unexpected connection between yogurt consumption and political preferences. Utilizing data from the USDA and MIT Election Data and Science Lab, Harvard Dataverse, we conducted a thorough analysis spanning three decades, aiming to uncover the truth behind this tangy correlation.
Our findings revealed a striking correlation coefficient of 0.9301049 and p < 0.01, demonstrating a strong relationship between the amount of yogurt consumed and votes cast for the Republican presidential candidate in Louisiana from 1990 to 2020. The statistical significance of this association left us feeling "cultured" and pondering the peculiar influence of probiotics on political leanings. Join us in this exploration that combines the seemingly incongruous realms of dairy products and electoral preferences, as we strive to unravel the enigmatic mystery of Yogurtright.

ChatGPT:

yogurt consumption, Republican presidential candidate, Louisiana, voting patterns, correlation coefficient, USDA data, MIT Election Data and Science Lab, Harvard Dataverse, political preferences, probiotics, dairy products, electoral preferences

*There is a bunch of Python happening behind the scenes to turn this prompt sequence into a PDF.



Random correlation

Discover a new correlation

View all correlations

View all research papers

Report an error


Data details

Yogurt consumption
Detailed data title: Per capita consumption of Yogurt in the US
Source: USDA
See what else correlates with Yogurt consumption

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

Correlation r = 0.9301049 (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.8650951 (Coefficient of determination)
This means 86.5% of the change in the one variable (i.e., Votes for the Republican Presidential candidate in Louisiana) is predictable based on the change in the other (i.e., Yogurt consumption) over the 8 years from 1990 through 2020.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 0.00081. 0.0008095263697739782000000000
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.93 in 0.081% of random cases. Said differently, if you correlated 1,235 random variables Which I absolutely did.
with the same 7 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 7 because we have two variables measured over a period of 8 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.65, 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.
19921996200020042008201220162020
Yogurt consumption (Pounds per person)4.45.96.59.211.71413.713.6
Votes for the Republican Presidential candidate in Louisiana (Total votes)73338671258692787111021701148280115226011786401255780




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([4.4,5.9,6.5,9.2,11.7,14,13.7,13.6,])
array_2 = np.array([733386,712586,927871,1102170,1148280,1152260,1178640,1255780,])
array_1_name = "Yogurt consumption"
array_2_name = "Votes for the Republican Presidential candidate in Louisiana"

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

Bravo! Your evaluation rocks!


Correlation ID: 4646 · Black Variable ID: 568 · Red Variable ID: 25985
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0