about · email me · subscribe
Spurious correlation #1,788 · View random

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is Cottage cheese consumption and the second variable is Robberies in Illinois.  The chart goes from 1990 to 2021, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

The curds were the culprit - with less cottage cheese being consumed, there was a corresponding decrease in curds of-illegal-activities in Illinois! It seems that when it came to thwarting theft, the cheesy goodness of cottage cheese had been whey overlooked. We can only hope that this connection doesn't whey in on other dairy products!

Model: dalle-3
Prompt: [ A photo-realistic image ] Imagine a serene setting at a picturesque park in Illinois. A group of people is gathered for a delightful picnic on a lush green lawn, with blooming trees and a gentle breeze. The sun creates a warm and inviting atmosphere as the picnic-goers enjoy their spread of delicious food and engage in pleasant conversations. In the distance, a quaint cottage stands peacefully, adding to the tranquil ambiance. However, in the background, a figure can be seen stealthily approaching the cottage, clearly intending to commit a robbery. The figure is cloaked in a shadow, creating a sense of mystery and tension against the idyllic picnic scene. The contrast between the peaceful picnic and the illicit activity unfolding in the distance is striking, drawing attention to the coexistence of innocence and crime in this serene environment. The image juxtaposes the carefree enjoyment of a picnic with the impending criminal act, emphasizing the unexpected convergence of lawful leisure and unlawful intentions. 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: Cottage cheese consumption and Robberies in Illinois. 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: Cyberpunk Low poly Data cyber art An image that looks like it is a scene from 'Star Wars' A photo-realistic image
ChatGPT: A photo-realistic image

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 Cottage cheese consumption and Robberies in Illinois together. Keep the description simple.
ChatGPT: A group of people are enjoying a picnic in a peaceful park in Illinois, while in the distance a criminal is sneaking into a cottage to commit a robbery. The contrast of the serene picnic scene and the criminal activity in the distance highlights the simultaneous presence of cottage cheese consumption and robberies in Illinois.

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 photo-realistic image ] and depicting this scene: A group of people are enjoying a picnic in a peaceful park in Illinois, while in the distance a criminal is sneaking into a cottage to commit a robbery. The contrast of the serene picnic scene and the criminal activity in the distance highlights the simultaneous presence of cottage cheese consumption and robberies in Illinois. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: [ A photo-realistic image ] Imagine a serene setting at a picturesque park in Illinois. A group of people is gathered for a delightful picnic on a lush green lawn, with blooming trees and a gentle breeze. The sun creates a warm and inviting atmosphere as the picnic-goers enjoy their spread of delicious food and engage in pleasant conversations. In the distance, a quaint cottage stands peacefully, adding to the tranquil ambiance. However, in the background, a figure can be seen stealthily approaching the cottage, clearly intending to commit a robbery. The figure is cloaked in a shadow, creating a sense of mystery and tension against the idyllic picnic scene. The contrast between the peaceful picnic and the illicit activity unfolding in the distance is striking, drawing attention to the coexistence of innocence and crime in this serene environment. The image juxtaposes the carefree enjoyment of a picnic with the impending criminal act, emphasizing the unexpected convergence of lawful leisure and unlawful intentions.

*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 Cottage cheese consumption caused Robberies in Illinois to decrease.

AI academic paper

(Because p < 0.01)
The Curious Case of Craving Curds: Exploring the Relationship between Cottage Cheese Consumption and Robberies in Illinois

Journal of Dairy Product Psychology

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 Cottage cheese consumption and Robberies in Illinois. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

Make the title seem clever.

Your research team used data from USDA and FBI Criminal Justice Information Services to assess this nagging question. You found a correlation coefficient of 0.9052356 and p < 0.01 for 1990 to 2021.

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]]
The Curious Case of Craving Curds: Exploring the Relationship between Cottage Cheese Consumption and Robberies in Illinois

[[ABSTRACT]]
In this study, we set out to unravel the intriguing mystery of whether there is a statistical connection between the consumption of cottage cheese and the incidence of robberies in the state of Illinois. Drawing on data from the USDA and FBI Criminal Justice Information Services spanning over three decades, our research team found a remarkably high correlation coefficient of 0.9052356 and statistically significant p-value, p < 0.01. What a "whey" to start a research project, right?

The analysis revealed a surprising positive association between the per capita consumption of cottage cheese and the number of reported robberies in Illinois. This unexpected find prompts us to "curdle" our previous notions about the potential factors influencing criminal activity. With such a strong correlation, it appears that when the cheese is high, the crime is "feta" to follow, much like the dad joke that slipped right in there!

These findings challenge conventional wisdom and call for further investigation into the mechanisms underlying this curious relationship. Are there "cheesy" explanations for this statistical anomaly, or are there deeper societal factors at play? "Curd" this correlation be more than just a coincidence? It looks like this study has left us with some "grate" uncertainties to ponder. We hope this research leaves others feeling "gouda" about the future of statistical investigations, and inspires other researchers to "brie-lieve" in the power of innovative inquiry.


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 Cottage cheese consumption and Robberies in Illinois. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Here is the title and abstract of the paper:
[[TITLE]]
The Curious Case of Craving Curds: Exploring the Relationship between Cottage Cheese Consumption and Robberies in Illinois

[[ABSTRACT]]
In this study, we set out to unravel the intriguing mystery of whether there is a statistical connection between the consumption of cottage cheese and the incidence of robberies in the state of Illinois. Drawing on data from the USDA and FBI Criminal Justice Information Services spanning over three decades, our research team found a remarkably high correlation coefficient of 0.9052356 and statistically significant p-value, p < 0.01. What a "whey" to start a research project, right?

The analysis revealed a surprising positive association between the per capita consumption of cottage cheese and the number of reported robberies in Illinois. This unexpected find prompts us to "curdle" our previous notions about the potential factors influencing criminal activity. With such a strong correlation, it appears that when the cheese is high, the crime is "feta" to follow, much like the dad joke that slipped right in there!

These findings challenge conventional wisdom and call for further investigation into the mechanisms underlying this curious relationship. Are there "cheesy" explanations for this statistical anomaly, or are there deeper societal factors at play? "Curd" this correlation be more than just a coincidence? It looks like this study has left us with some "grate" uncertainties to ponder. We hope this research leaves others feeling "gouda" about the future of statistical investigations, and inspires other researchers to "brie-lieve" in the power of innovative inquiry.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

The intersection of nutrition and criminal behavior has long been a subject of interest and speculation, but few studies have dared to tackle the enigmatic relationship between cottage cheese consumption and the prevalence of robberies. As researchers, we aim to shed light on this unconventional connection, which has captivated the curiosity of both academics and aficionados of the dairy world. If there's anything that grates on our nerves, it's a good mystery!

While the popular adage "you are what you eat" often calls to mind healthy dietary choices, our investigation was spurred by the notable statistical correlation between cottage cheese intake and the occurrence of robberies in Illinois. It's truly "whey"rd, isn't it?

The state of Illinois, known for its bustling urban areas and serene rural landscapes, provided an ideal setting for our study due to its diverse population and varied socioeconomic conditions. We embarked on this research endeavor with a healthy dose of skepticism and a "cottage" full of questions about the intriguing relationship we sought to unravel.

The initial astonishment at the apparent association between cottage cheese consumption and robberies led us to ponder the potential factors that could underpin this unexpected correlation. It's not every day that one finds themselves knee-deep in data, grappling with the cheese-to-crime ratio. Pun lovers, rejoice – these findings are only the tip of the cheese wedge!


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 Cottage cheese consumption and Robberies in Illinois. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

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 movies that you watched that are tangentially related to the topic.

Here is the title and abstract of the paper:
[[TITLE]]
The Curious Case of Craving Curds: Exploring the Relationship between Cottage Cheese Consumption and Robberies in Illinois

[[ABSTRACT]]
In this study, we set out to unravel the intriguing mystery of whether there is a statistical connection between the consumption of cottage cheese and the incidence of robberies in the state of Illinois. Drawing on data from the USDA and FBI Criminal Justice Information Services spanning over three decades, our research team found a remarkably high correlation coefficient of 0.9052356 and statistically significant p-value, p < 0.01. What a "whey" to start a research project, right?

The analysis revealed a surprising positive association between the per capita consumption of cottage cheese and the number of reported robberies in Illinois. This unexpected find prompts us to "curdle" our previous notions about the potential factors influencing criminal activity. With such a strong correlation, it appears that when the cheese is high, the crime is "feta" to follow, much like the dad joke that slipped right in there!

These findings challenge conventional wisdom and call for further investigation into the mechanisms underlying this curious relationship. Are there "cheesy" explanations for this statistical anomaly, or are there deeper societal factors at play? "Curd" this correlation be more than just a coincidence? It looks like this study has left us with some "grate" uncertainties to ponder. We hope this research leaves others feeling "gouda" about the future of statistical investigations, and inspires other researchers to "brie-lieve" in the power of innovative inquiry.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
The intersection of nutrition and criminal behavior has long been a subject of interest and speculation, but few studies have dared to tackle the enigmatic relationship between cottage cheese consumption and the prevalence of robberies. As researchers, we aim to shed light on this unconventional connection, which has captivated the curiosity of both academics and aficionados of the dairy world. If there's anything that grates on our nerves, it's a good mystery!
While the popular adage "you are what you eat" often calls to mind healthy dietary choices, our investigation was spurred by the notable statistical correlation between cottage cheese intake and the occurrence of robberies in Illinois. It's truly "whey"rd, isn't it?
The state of Illinois, known for its bustling urban areas and serene rural landscapes, provided an ideal setting for our study due to its diverse population and varied socioeconomic conditions. We embarked on this research endeavor with a healthy dose of skepticism and a "cottage" full of questions about the intriguing relationship we sought to unravel.
The initial astonishment at the apparent association between cottage cheese consumption and robberies led us to ponder the potential factors that could underpin this unexpected correlation. It's not every day that one finds themselves knee-deep in data, grappling with the cheese-to-crime ratio. Pun lovers, rejoice – these findings are only the tip of the cheese wedge!

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

The relationship between dietary habits and criminal behavior has elicited considerable interest among researchers and laypersons alike. In their seminal work, Smith and Doe (2005) examined the impact of nutritional intake on social behaviors, shedding light on the intricate connections between food consumption and criminal activities. Meanwhile, Jones and Smith (2010) delved into the socioeconomic factors influencing crime rates, revealing correlations that extended beyond conventional wisdom. While both studies contributed to our understanding of crime etiology, none ventured into the curdled world of cottage cheese consumption until now.

In "The Cheese Lover's Guide to the Galaxy," the authors explore the multifaceted implications of cheese consumption on human behavior, pondering whether curds possess a transformative power akin to "cheese alchemy." While the book may at first appear to be a lighthearted guide to artisanal dairy products, it proffers intriguing insights on the potential psychological effects of cheese ingestion – a "grate" read for aficionados and academic dairy enthusiasts alike.

On a non-fictional note, "The Art of Robbery" by James Cagney provides a firsthand account of the criminal world, offering a narrative that could potentially shed light on the motivations behind theft and unlawful behavior. The in-depth exploration of criminal intent could serve as a worthy juxtaposition to our investigation – the kind of page-turner that keeps readers on the edge of their seats, much like the suspense of waiting for cottage cheese to expire.

Moreover, fiction works such as "The Case of the Missing Curds" by Agatha Christie and "Crime and Cheese-ishment" by Feta Connelly seemingly dabble into the whimsical realm of crime and dairy connections, demonstrating that even literary imaginations have been tickled by the alluring intrigue of our research topic.

In the cinematic world, movies such as "Ocean's Eleven" and "The Great Cheese Robbery" offer cinematic experiences that, while not directly related to our study, bear semblances to the interplay of thievery and unexpected twists, much like the unexpected connection between cottage cheese and robberies that we've unraveled. After all, every good researcher should have a "cheddar" for diverse sources of inspiration!

As we embark on this intellectual journey, it's essential to acknowledge the interdisciplinary nature of our investigation. The synthesis of nutritional science, criminology, and a pinch of dairy whimsy makes for a heady concoction, one that may leave readers "brie-thless" with anticipation for the revelations that lie ahead. And while the pursuit of knowledge may be "gouda," we must also remember to approach our findings with the requisite amount of "cheese-onable doubt."


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 Cottage cheese consumption and Robberies in Illinois. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Your research team collected data from all across the internet, but mostly just used information from USDA and FBI Criminal Justice Information Services . You used data from 1990 to 2021

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]]
The Curious Case of Craving Curds: Exploring the Relationship between Cottage Cheese Consumption and Robberies in Illinois

[[ABSTRACT]]
In this study, we set out to unravel the intriguing mystery of whether there is a statistical connection between the consumption of cottage cheese and the incidence of robberies in the state of Illinois. Drawing on data from the USDA and FBI Criminal Justice Information Services spanning over three decades, our research team found a remarkably high correlation coefficient of 0.9052356 and statistically significant p-value, p < 0.01. What a "whey" to start a research project, right?

The analysis revealed a surprising positive association between the per capita consumption of cottage cheese and the number of reported robberies in Illinois. This unexpected find prompts us to "curdle" our previous notions about the potential factors influencing criminal activity. With such a strong correlation, it appears that when the cheese is high, the crime is "feta" to follow, much like the dad joke that slipped right in there!

These findings challenge conventional wisdom and call for further investigation into the mechanisms underlying this curious relationship. Are there "cheesy" explanations for this statistical anomaly, or are there deeper societal factors at play? "Curd" this correlation be more than just a coincidence? It looks like this study has left us with some "grate" uncertainties to ponder. We hope this research leaves others feeling "gouda" about the future of statistical investigations, and inspires other researchers to "brie-lieve" in the power of innovative inquiry.

[[INTRODUCTION]]
The intersection of nutrition and criminal behavior has long been a subject of interest and speculation, but few studies have dared to tackle the enigmatic relationship between cottage cheese consumption and the prevalence of robberies. As researchers, we aim to shed light on this unconventional connection, which has captivated the curiosity of both academics and aficionados of the dairy world. If there's anything that grates on our nerves, it's a good mystery!
While the popular adage "you are what you eat" often calls to mind healthy dietary choices, our investigation was spurred by the notable statistical correlation between cottage cheese intake and the occurrence of robberies in Illinois. It's truly "whey"rd, isn't it?
The state of Illinois, known for its bustling urban areas and serene rural landscapes, provided an ideal setting for our study due to its diverse population and varied socioeconomic conditions. We embarked on this research endeavor with a healthy dose of skepticism and a "cottage" full of questions about the intriguing relationship we sought to unravel.
The initial astonishment at the apparent association between cottage cheese consumption and robberies led us to ponder the potential factors that could underpin this unexpected correlation. It's not every day that one finds themselves knee-deep in data, grappling with the cheese-to-crime ratio. Pun lovers, rejoice – these findings are only the tip of the cheese wedge!

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To dissect the curious correlation between cottage cheese consumption and robberies in Illinois, a team of researchers embarked on a journey through a labyrinth of statistical analysis and culinary intrigue.

First, the per capita consumption of cottage cheese was meticulously tracked using data sourced from the USDA from 1990 to 2021. This involved going through mounds of milk production reports, evaluating the ever-shifting patterns of curd creation, and calculating the proverbial "whey" to quantify the cheese intake per person. It was indeed a "grate" undertaking, but the willingness to delve into the depths of dairy-related data was surpassed only by the experienced love for cheesy puns. After all, it's not every day that one gets to discuss crime in association with cottage cheese, but isn't that just "gouda" be true?

Simultaneously, the incidence of robberies in the state of Illinois was meticulously extracted from the FBI's Criminal Justice Information Services. This involved careful consideration of reported criminal activities, including heists, robberies, and burglaries, while resisting the urge to crack open any cheese-related snacks, for it would have been too "edam" distracting.

With data in hand, a series of flavorfully complex statistical analyses were employed to unravel any potential associations. Linear regression models were utilized to explore the relationship between cottage cheese consumption and the number of reported robberies, leaving no "curd" unaccounted for in the quest to unravel this unique connection.

Furthermore, control variables such as unemployment rates, income inequality, and demographic factors were integrated into the analysis to ensure that the observed relationship was not simply a result of confounding influences. This holistic approach was as crucial as "aged cheddar" when seeking to establish any genuine cheese-to-crime causality.

Finally, sensitivity analyses were conducted to validate the robustness of the observed statistical association, reinforcing the "casein" evidence and ensuring that the findings weren't just a "fondue" of statistical flukes.

In the end, the team emerged with a keen appreciation for the complexities of both statistical analysis and the culinary arts, all while discovering a remarkable statistical relationship that tempts one to say, "Curd it be any more surprising?"


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 Cottage cheese consumption and Robberies in Illinois. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Your research team collected data from all across the internet, but mostly just used information from USDA and FBI Criminal Justice Information Services .

For the time period 1990 to 2021, you found a correlation 0.9052356, r-squared of 0.8194514, 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]]
The Curious Case of Craving Curds: Exploring the Relationship between Cottage Cheese Consumption and Robberies in Illinois

[[ABSTRACT]]
In this study, we set out to unravel the intriguing mystery of whether there is a statistical connection between the consumption of cottage cheese and the incidence of robberies in the state of Illinois. Drawing on data from the USDA and FBI Criminal Justice Information Services spanning over three decades, our research team found a remarkably high correlation coefficient of 0.9052356 and statistically significant p-value, p < 0.01. What a "whey" to start a research project, right?

The analysis revealed a surprising positive association between the per capita consumption of cottage cheese and the number of reported robberies in Illinois. This unexpected find prompts us to "curdle" our previous notions about the potential factors influencing criminal activity. With such a strong correlation, it appears that when the cheese is high, the crime is "feta" to follow, much like the dad joke that slipped right in there!

These findings challenge conventional wisdom and call for further investigation into the mechanisms underlying this curious relationship. Are there "cheesy" explanations for this statistical anomaly, or are there deeper societal factors at play? "Curd" this correlation be more than just a coincidence? It looks like this study has left us with some "grate" uncertainties to ponder. We hope this research leaves others feeling "gouda" about the future of statistical investigations, and inspires other researchers to "brie-lieve" in the power of innovative inquiry.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
The intersection of nutrition and criminal behavior has long been a subject of interest and speculation, but few studies have dared to tackle the enigmatic relationship between cottage cheese consumption and the prevalence of robberies. As researchers, we aim to shed light on this unconventional connection, which has captivated the curiosity of both academics and aficionados of the dairy world. If there's anything that grates on our nerves, it's a good mystery!
While the popular adage "you are what you eat" often calls to mind healthy dietary choices, our investigation was spurred by the notable statistical correlation between cottage cheese intake and the occurrence of robberies in Illinois. It's truly "whey"rd, isn't it?
The state of Illinois, known for its bustling urban areas and serene rural landscapes, provided an ideal setting for our study due to its diverse population and varied socioeconomic conditions. We embarked on this research endeavor with a healthy dose of skepticism and a "cottage" full of questions about the intriguing relationship we sought to unravel.
The initial astonishment at the apparent association between cottage cheese consumption and robberies led us to ponder the potential factors that could underpin this unexpected correlation. It's not every day that one finds themselves knee-deep in data, grappling with the cheese-to-crime ratio. Pun lovers, rejoice – these findings are only the tip of the cheese wedge!

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The analysis of the data revealed a striking correlation between per capita cottage cheese consumption and the number of reported robberies in Illinois. Our research team found a correlation coefficient of 0.9052356, indicating a very strong positive correlation between the two variables from 1990 to 2021. The r-squared value of 0.8194514 suggests that approximately 81.95% of the variation in robbery rates can be explained by changes in cottage cheese consumption. It seems that where there's "whey," there may also be a way to explain criminal behavior!

The p-value of less than 0.01 further supports the strong evidence of a significant relationship between cottage cheese consumption and robberies in Illinois. It's safe to say that this finding is not just a mere "curdsy" correlation, but rather a substantial and notable connection that demands attention.

In the accompanying figure (Fig. 1), a scatterplot vividly displays the evident positive correlation between cottage cheese consumption and reported robberies. The data points follow a clear and upward trend, emphasizing the strength of the relationship. It's like they say, "when the cottage cheese goes up, the crime does the same – it's a real brie-down."

These unexpected findings highlight the need for further investigation into the potential mechanisms underlying this curious relationship. It's not every day that one stumbles upon a statistical association as "gouda" as this one. These results invite a deeper exploration into the societal, economic, and dietary factors that may contribute to this "cheesy" correlation. After all, who knew that examining crime rates could lead to such "grate" insights into dietary patterns?


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 Cottage cheese consumption and Robberies in Illinois. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Limit your response to 500 tokens.

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

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

[[TITLE]]
The Curious Case of Craving Curds: Exploring the Relationship between Cottage Cheese Consumption and Robberies in Illinois

[[ABSTRACT]]
In this study, we set out to unravel the intriguing mystery of whether there is a statistical connection between the consumption of cottage cheese and the incidence of robberies in the state of Illinois. Drawing on data from the USDA and FBI Criminal Justice Information Services spanning over three decades, our research team found a remarkably high correlation coefficient of 0.9052356 and statistically significant p-value, p < 0.01. What a "whey" to start a research project, right?

The analysis revealed a surprising positive association between the per capita consumption of cottage cheese and the number of reported robberies in Illinois. This unexpected find prompts us to "curdle" our previous notions about the potential factors influencing criminal activity. With such a strong correlation, it appears that when the cheese is high, the crime is "feta" to follow, much like the dad joke that slipped right in there!

These findings challenge conventional wisdom and call for further investigation into the mechanisms underlying this curious relationship. Are there "cheesy" explanations for this statistical anomaly, or are there deeper societal factors at play? "Curd" this correlation be more than just a coincidence? It looks like this study has left us with some "grate" uncertainties to ponder. We hope this research leaves others feeling "gouda" about the future of statistical investigations, and inspires other researchers to "brie-lieve" in the power of innovative inquiry.

[[LITERATURE REVIEW]]
The relationship between dietary habits and criminal behavior has elicited considerable interest among researchers and laypersons alike. In their seminal work, Smith and Doe (2005) examined the impact of nutritional intake on social behaviors, shedding light on the intricate connections between food consumption and criminal activities. Meanwhile, Jones and Smith (2010) delved into the socioeconomic factors influencing crime rates, revealing correlations that extended beyond conventional wisdom. While both studies contributed to our understanding of crime etiology, none ventured into the curdled world of cottage cheese consumption until now.
In "The Cheese Lover's Guide to the Galaxy," the authors explore the multifaceted implications of cheese consumption on human behavior, pondering whether curds possess a transformative power akin to "cheese alchemy." While the book may at first appear to be a lighthearted guide to artisanal dairy products, it proffers intriguing insights on the potential psychological effects of cheese ingestion – a "grate" read for aficionados and academic dairy enthusiasts alike.
On a non-fictional note, "The Art of Robbery" by James Cagney provides a firsthand account of the criminal world, offering a narrative that could potentially shed light on the motivations behind theft and unlawful behavior. The in-depth exploration of criminal intent could serve as a worthy juxtaposition to our investigation – the kind of page-turner that keeps readers on the edge of their seats, much like the suspense of waiting for cottage cheese to expire.
Moreover, fiction works such as "The Case of the Missing Curds" by Agatha Christie and "Crime and Cheese-ishment" by Feta Connelly seemingly dabble into the whimsical realm of crime and dairy connections, demonstrating that even literary imaginations have been tickled by the alluring intrigue of our research topic.
In the cinematic world, movies such as "Ocean's Eleven" and "The Great Cheese Robbery" offer cinematic experiences that, while not directly related to our study, bear semblances to the interplay of thievery and unexpected twists, much like the unexpected connection between cottage cheese and robberies that we've unraveled. After all, every good researcher should have a "cheddar" for diverse sources of inspiration!
As we embark on this intellectual journey, it's essential to acknowledge the interdisciplinary nature of our investigation. The synthesis of nutritional science, criminology, and a pinch of dairy whimsy makes for a heady concoction, one that may leave readers "brie-thless" with anticipation for the revelations that lie ahead. And while the pursuit of knowledge may be "gouda," we must also remember to approach our findings with the requisite amount of "cheese-onable doubt."

[[RESULTS]]
The analysis of the data revealed a striking correlation between per capita cottage cheese consumption and the number of reported robberies in Illinois. Our research team found a correlation coefficient of 0.9052356, indicating a very strong positive correlation between the two variables from 1990 to 2021. The r-squared value of 0.8194514 suggests that approximately 81.95% of the variation in robbery rates can be explained by changes in cottage cheese consumption. It seems that where there's "whey," there may also be a way to explain criminal behavior!
The p-value of less than 0.01 further supports the strong evidence of a significant relationship between cottage cheese consumption and robberies in Illinois. It's safe to say that this finding is not just a mere "curdsy" correlation, but rather a substantial and notable connection that demands attention.
In the accompanying figure (Fig. 1), a scatterplot vividly displays the evident positive correlation between cottage cheese consumption and reported robberies. The data points follow a clear and upward trend, emphasizing the strength of the relationship. It's like they say, "when the cottage cheese goes up, the crime does the same – it's a real brie-down."
These unexpected findings highlight the need for further investigation into the potential mechanisms underlying this curious relationship. It's not every day that one stumbles upon a statistical association as "gouda" as this one. These results invite a deeper exploration into the societal, economic, and dietary factors that may contribute to this "cheesy" correlation. After all, who knew that examining crime rates could lead to such "grate" insights into dietary patterns?

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The findings of this study provide compelling evidence of a strong positive association between per capita cottage cheese consumption and reported robberies in Illinois. Our results not only support previous research that has explored the influence of dietary habits on criminal behavior but also provide a novel and "whey"-lling addition to the literature. Smith and Doe (2005) and Jones and Smith (2010) laid the foundation for understanding the complex relationship between nutritional intake and social behaviors, and we have now "cottage-cheesed" onto their findings, revealing the "whey" in which cottage cheese consumption may contribute to criminal activities.

The statistically significant correlation coefficient and p-value further solidify the robustness of the relationship uncovered in our study. It is not merely a "curdsy" association; rather, it is a significant and notable connection that warrants further investigation. The statistical evidence we've amassed suggests that when the cheese consumption climbs, so do the crime rates – a correlation that is quite "gouda" be true.

In revisiting the literature, while "The Cheese Lover's Guide to the Galaxy" initially seemed like a light-hearted exploration of cheese, it turns out that its insights on the psychological effects of cheese ingestion may have struck a chord with our findings. Who would have thought that a playful look at artisanal dairy products could have relevance in the world of criminology? But indeed, it seems that there is more to cheese than meets the "whey."

Our results also shed light on the need for interdisciplinary approaches in investigating socio-cultural phenomena. The interdisciplinary nature of this study positions it at the "whey"-crossroads of nutritional science, criminology, and societal influences – a "grate" reminder that new discoveries often emerge at the intersections of different fields.

We cannot ignore the implications of our findings. The unexpected and "grate" insights generated by our study prompt us to reassess our understanding of the multifaceted factors contributing to criminal behavior. It's not every day that research into dairy products and criminal activity converge – a convergence that "curd"le leave us all pondering the "cheesy" intricacies of human behavior.

Our study opens the door to a host of intriguing questions: What underlying mechanisms might explain this connection? Are there societal, economic, or psychological factors at play, or is there a "cheese-tastic" explanation waiting to be discovered? These are questions that go beyond the realm of dairy whimsy and into the complex world of human behavior. As researchers, it's important to approach these findings with an open mind and a discerning eye for potential practical and policy implications.

In closing, while the unexpected and "cheesy" connection we've uncovered may raise a few eyebrows, it prompts us to "brie-th" deeply about the intertwined nature of seemingly disparate societal phenomena. Our findings remind us that the pursuit of knowledge is not a straight and narrow path, but rather a "whey"-ward journey filled with unexpected twists and turns – much like a good cheese-related pun.


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 Cottage cheese consumption and Robberies in Illinois. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences. Stay serious and dry most of the time, but then occasionally let your wit shine through.

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

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
The Curious Case of Craving Curds: Exploring the Relationship between Cottage Cheese Consumption and Robberies in Illinois

[[ABSTRACT]]
In this study, we set out to unravel the intriguing mystery of whether there is a statistical connection between the consumption of cottage cheese and the incidence of robberies in the state of Illinois. Drawing on data from the USDA and FBI Criminal Justice Information Services spanning over three decades, our research team found a remarkably high correlation coefficient of 0.9052356 and statistically significant p-value, p < 0.01. What a "whey" to start a research project, right?

The analysis revealed a surprising positive association between the per capita consumption of cottage cheese and the number of reported robberies in Illinois. This unexpected find prompts us to "curdle" our previous notions about the potential factors influencing criminal activity. With such a strong correlation, it appears that when the cheese is high, the crime is "feta" to follow, much like the dad joke that slipped right in there!

These findings challenge conventional wisdom and call for further investigation into the mechanisms underlying this curious relationship. Are there "cheesy" explanations for this statistical anomaly, or are there deeper societal factors at play? "Curd" this correlation be more than just a coincidence? It looks like this study has left us with some "grate" uncertainties to ponder. We hope this research leaves others feeling "gouda" about the future of statistical investigations, and inspires other researchers to "brie-lieve" in the power of innovative inquiry.

[[INTRDUCTION]]
The intersection of nutrition and criminal behavior has long been a subject of interest and speculation, but few studies have dared to tackle the enigmatic relationship between cottage cheese consumption and the prevalence of robberies. As researchers, we aim to shed light on this unconventional connection, which has captivated the curiosity of both academics and aficionados of the dairy world. If there's anything that grates on our nerves, it's a good mystery!
While the popular adage "you are what you eat" often calls to mind healthy dietary choices, our investigation was spurred by the notable statistical correlation between cottage cheese intake and the occurrence of robberies in Illinois. It's truly "whey"rd, isn't it?
The state of Illinois, known for its bustling urban areas and serene rural landscapes, provided an ideal setting for our study due to its diverse population and varied socioeconomic conditions. We embarked on this research endeavor with a healthy dose of skepticism and a "cottage" full of questions about the intriguing relationship we sought to unravel.
The initial astonishment at the apparent association between cottage cheese consumption and robberies led us to ponder the potential factors that could underpin this unexpected correlation. It's not every day that one finds themselves knee-deep in data, grappling with the cheese-to-crime ratio. Pun lovers, rejoice – these findings are only the tip of the cheese wedge!

[[RESULTS]]
The analysis of the data revealed a striking correlation between per capita cottage cheese consumption and the number of reported robberies in Illinois. Our research team found a correlation coefficient of 0.9052356, indicating a very strong positive correlation between the two variables from 1990 to 2021. The r-squared value of 0.8194514 suggests that approximately 81.95% of the variation in robbery rates can be explained by changes in cottage cheese consumption. It seems that where there's "whey," there may also be a way to explain criminal behavior!
The p-value of less than 0.01 further supports the strong evidence of a significant relationship between cottage cheese consumption and robberies in Illinois. It's safe to say that this finding is not just a mere "curdsy" correlation, but rather a substantial and notable connection that demands attention.
In the accompanying figure (Fig. 1), a scatterplot vividly displays the evident positive correlation between cottage cheese consumption and reported robberies. The data points follow a clear and upward trend, emphasizing the strength of the relationship. It's like they say, "when the cottage cheese goes up, the crime does the same – it's a real brie-down."
These unexpected findings highlight the need for further investigation into the potential mechanisms underlying this curious relationship. It's not every day that one stumbles upon a statistical association as "gouda" as this one. These results invite a deeper exploration into the societal, economic, and dietary factors that may contribute to this "cheesy" correlation. After all, who knew that examining crime rates could lead to such "grate" insights into dietary patterns?

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our research has revealed a significant and astonishing relationship between the consumption of cottage cheese and the incidence of robberies in Illinois. The remarkably high correlation coefficient of 0.9052356 and the statistically significant p-value of less than 0.01 support the robustness of this connection. This finding challenges not only the traditional understanding of crime but also prompts a re-examination of the effects of dietary habits on behavioral patterns. It seems the phrase "you are what you eat" may indeed carry some truth with "grate" implications.

As we wrap up our investigation, we can't help but ponder the "whey" this connection exists. Could it be that the scent of cottage cheese wafting through the air causes a sudden desire for a life of crime? Perhaps it's as simple as people experiencing a surge of energy after consuming substantial amounts of cottage cheese and feeling more inclined to engage in illicit activities. One thing's for sure – it's a "gouda" question to chew on!

With such compelling results, we assert that further research in this area may not be necessary. These findings, while unexpected and at first glance whimsical, open the door to a deeper understanding of societal influences on criminal behavior. As we "curdle" our thoughts around this conclusion, we hope this study ignites more "cheese-tastic" investigations into similarly unusual correlations. It seems the dairy aisle and the crime scene are not as disconnected as one might think. After all, who knew that cottage cheese could have such a "criminal" impact?

No "whey" could we resist a good dad joke after all that data crunching!

Therefore, it is our firm belief that there is no need for further research in this curious and "grate" subject. The cheese stands alone.


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 The Curious Case of Craving Curds: Exploring the Relationship between Cottage Cheese Consumption and Robberies in Illinois. Respond only with the name of a fictional academic journal.

ChatGPT:

Journal of Dairy Product Psychology


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 The Curious Case of Craving Curds: Exploring the Relationship between Cottage Cheese Consumption and Robberies in Illinois. Respond only with the name of a fictional organization.

ChatGPT:

The Society for Dairy Delights and Deviant Behavior


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 The Curious Case of Craving Curds: Exploring the Relationship between Cottage Cheese Consumption and Robberies in Illinois with an abstract of In this study, we set out to unravel the intriguing mystery of whether there is a statistical connection between the consumption of cottage cheese and the incidence of robberies in the state of Illinois. Drawing on data from the USDA and FBI Criminal Justice Information Services spanning over three decades, our research team found a remarkably high correlation coefficient of 0.9052356 and statistically significant p-value, p < 0.01. What a "whey" to start a research project, right?
The analysis revealed a surprising positive association between the per capita consumption of cottage cheese and the number of reported robberies in Illinois. This unexpected find prompts us to "curdle" our previous notions about the potential factors influencing criminal activity. With such a strong correlation, it appears that when the cheese is high, the crime is "feta" to follow, much like the dad joke that slipped right in there!
These findings challenge conventional wisdom and call for further investigation into the mechanisms underlying this curious relationship. Are there "cheesy" explanations for this statistical anomaly, or are there deeper societal factors at play? "Curd" this correlation be more than just a coincidence? It looks like this study has left us with some "grate" uncertainties to ponder. We hope this research leaves others feeling "gouda" about the future of statistical investigations, and inspires other researchers to "brie-lieve" in the power of innovative inquiry.

ChatGPT:

cottage cheese consumption, robberies in Illinois, statistical correlation, FBI crime data, USDA food consumption data, crime rates, dairy product consumption, criminal activity factors, societal influences, statistical anomaly, research investigation, correlation coefficient, p-value, cheese consumption and crime correlation

*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

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

Robberies in Illinois
Detailed data title: The robbery rate per 100,000 residents in Illinois
Source: FBI Criminal Justice Information Services
See what else correlates with Robberies in Illinois

Correlation r = 0.9052356 (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.8194514 (Coefficient of determination)
This means 81.9% of the change in the one variable (i.e., Robberies in Illinois) is predictable based on the change in the other (i.e., Cottage cheese consumption) over the 32 years from 1990 through 2021.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 1.1E-12. 0.0000000000011193494875879200
The p-value is a measure of how probable it is that we would randomly find a result this extreme. More specifically the p-value is a measure of how probable it is that we would randomly find a result this extreme if we had only tested one pair of variables one time.

But I am a p-villain. I absolutely did not test only one pair of variables one time. I correlated hundreds of millions of pairs of variables. I threw boatloads of data into an industrial-sized blender to find this correlation.

Who is going to stop me? p-value reporting doesn't require me to report how many calculations I had to go through in order to find a low p-value!
On average, you will find a correaltion as strong as 0.91 in 1.1E-10% of random cases. Said differently, if you correlated 893,376,028,746 random variables You don't actually need 893 billion variables to find a correlation like this one. I don't have that many variables in my database. 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.

In this particular case, the values are so extreme as to be meaningless. That's why no one reports p-values with specificity after they drop below 0.01.

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 31 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 31 because we have two variables measured over a period of 32 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.81, 0.95 ] 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.
19901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021
Cottage cheese consumption (Pounds per person)3.33.23.12.92.82.72.62.62.62.62.62.62.62.62.72.72.62.62.32.42.32.32.32.12.12.12.22.12.12.121.9
Robberies in Illinois (Robbery rate)394456.1412.5381.2372.6330.8279.4278.4248.5217.4206.5199.1201.1188177.6182.2185.3179.7186.4177.6158.7157.2151.4137.6118.5117.3138.9138.711299.997.485.6




Why this works

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




Try it yourself

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

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

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

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

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

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

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

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

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


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

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

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

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

    return correlation, r_squared, p_value

# These are the arrays for the variables shown on this page, but you can modify them to be any two sets of numbers
array_1 = np.array([3.3,3.2,3.1,2.9,2.8,2.7,2.6,2.6,2.6,2.6,2.6,2.6,2.6,2.6,2.7,2.7,2.6,2.6,2.3,2.4,2.3,2.3,2.3,2.1,2.1,2.1,2.2,2.1,2.1,2.1,2,1.9,])
array_2 = np.array([394,456.1,412.5,381.2,372.6,330.8,279.4,278.4,248.5,217.4,206.5,199.1,201.1,188,177.6,182.2,185.3,179.7,186.4,177.6,158.7,157.2,151.4,137.6,118.5,117.3,138.9,138.7,112,99.9,97.4,85.6,])
array_1_name = "Cottage cheese consumption"
array_2_name = "Robberies in Illinois"

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

You're a rater extraordinaire!


Correlation ID: 1788 · Black Variable ID: 556 · Red Variable ID: 20186
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0