about · email me · subscribe
Spurious correlation #3,309 · View random

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is Milk consumption and the second variable is Burglaries in Nevada.  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

As people cut back on milk, they were no longer experiencing dairy-induced nightmares, leading to a decrease in sleepwalking and accidental break-ins. Remember, the only thing milk should be stealing is your heart, not your belongings!

Model: dalle-3
Prompt: Generate an image of a serene and well-protected rural scene in Nevada. Show a group of tranquil cows happily grazing in vibrant green fields, fenced in with newly installed barriers. Nearby, uniformed farmers gently milk the cows, while keeping a watchful eye on the process. A hesitant burglar takes a step towards a farmhouse but quickly changes course upon noticing the heightened security presence. The cows moo contently, symbolizing peace and safety in the area. 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: Milk consumption and Burglaries in Nevada. Given these, which of the following image style descriptions seems most appropriate? Pick the one that seems to be related to one of the variables at hand. Please respond with only one of the following potential descriptions: a Polaroid photo A TIME magazine cover image Cubism Cutsy graphics a funny image you would see on reddit
ChatGPT: A TIME magazine cover 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 Milk consumption and Burglaries in Nevada, in the following situation: As the cows became moody due to decreased milking, they started a "moo-vement" to protect their dairy. This led to increased security in rural areas, deterring burglaries in Nevada.. Keep the description simple.
ChatGPT: In a rural Nevada town, a group of content cows peacefully graze in lush green fields, surrounded by a newly installed fence. The cows are being milked by farmers wearing security uniforms, as they carefully monitor each milking session. Meanwhile, nearby, a would-be burglar takes a hesitant step towards a farmhouse but notices the increased security presence and quickly changes course. The cows moo happily as they protect their dairy, ensuring peace and security in the area.

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 TIME magazine cover image ] and depicting this scene: In a rural Nevada town, a group of content cows peacefully graze in lush green fields, surrounded by a newly installed fence. The cows are being milked by farmers wearing security uniforms, as they carefully monitor each milking session. Meanwhile, nearby, a would-be burglar takes a hesitant step towards a farmhouse but notices the increased security presence and quickly changes course. The cows moo happily as they protect their dairy, ensuring peace and security in the area. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Generate an image of a serene and well-protected rural scene in Nevada. Show a group of tranquil cows happily grazing in vibrant green fields, fenced in with newly installed barriers. Nearby, uniformed farmers gently milk the cows, while keeping a watchful eye on the process. A hesitant burglar takes a step towards a farmhouse but quickly changes course upon noticing the heightened security presence. The cows moo contently, symbolizing peace and safety in the area.

*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 Milk consumption caused Burglaries in Nevada to decrease. Add a funny one-liner at the end.

AI academic paper

(Because p < 0.01)
Mysterious Milk: Milking the Connection Between Milk Consumption and Burglaries in Nevada

Journal of Dairy Criminology

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 dry but witty academic researcher. You speak in the passive voice, and your writing sounds like it belongs in a medical or economics journal.You write titles and abstracts of goofy academic research papers.
User prompt:
Pretend you are an academic researcher. Your writing sounds like it belongs in a medical or economics journal. However, you frequently crack jokes, make puns, and add unexpected twists in your writing.

Please draft the title and abstract of an academic research paper presenting the findings of the connection between Milk consumption and Burglaries in Nevada. Make lots of jokes, goofy observations, and puns.

Make the title an alliteration.

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.9403878 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]]
Mysterious Milk: Milking the Connection Between Milk Consumption and Burglaries in Nevada

[[ABSTRACT]]
The study aims to investigate the potential relationship between milk consumption and burglaries in the state of Nevada. Leveraging data from the USDA on milk production and the FBI Criminal Justice Information Services on burglary rates, our research team delved into the obscure territory of bovine lactation and unlawful entries. Surprisingly, the statistical analysis revealed a remarkably strong and significant correlation between the two variables, with a correlation coefficient of 0.9403878 and p < 0.01 for the period spanning 1990 to 2021. The findings prompt a reevaluation of the age-old adage "got milk?" to "got milk, got mischief?" as we delve into the enigmatic interplay between dairy consumption and criminal activity. This paper sheds light on a udderly unexpected linkage and raises the question: is there something in the milk that leads to these unlawful behavior patterns, or is it merely a lactose-induced coincidence?


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

Please make up the introduction section of an academic research paper presenting the findings of the connection between Milk consumption and Burglaries in Nevada. Make lots of jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Here is the title and abstract of the paper:
[[TITLE]]
Mysterious Milk: Milking the Connection Between Milk Consumption and Burglaries in Nevada

[[ABSTRACT]]
The study aims to investigate the potential relationship between milk consumption and burglaries in the state of Nevada. Leveraging data from the USDA on milk production and the FBI Criminal Justice Information Services on burglary rates, our research team delved into the obscure territory of bovine lactation and unlawful entries. Surprisingly, the statistical analysis revealed a remarkably strong and significant correlation between the two variables, with a correlation coefficient of 0.9403878 and p < 0.01 for the period spanning 1990 to 2021. The findings prompt a reevaluation of the age-old adage "got milk?" to "got milk, got mischief?" as we delve into the enigmatic interplay between dairy consumption and criminal activity. This paper sheds light on a udderly unexpected linkage and raises the question: is there something in the milk that leads to these unlawful behavior patterns, or is it merely a lactose-induced coincidence?

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

The curious case of milk and its potential influence on criminal behavior has captured the attention of researchers and enthusiasts alike. While the notion of a link between milk consumption and burglaries may initially seem utterly ridiculous, the findings of this study may have you moo-ving to reconsider dismissing this association outright. The tantalizing possibility of an unexpectedly strong correlation between these seemingly unrelated variables has elicited both intrigue and skepticism within the scientific community.

The study endeavors to disentangle the mystery surrounding the potential connection between milk consumption and burglaries in the state of Nevada. As the famous saying goes, "It's not just a dairy habit, it's a crime wave in the making!" Although the relationship between these two variables may seem as mismatched as a cow in a china shop, the statistical analysis has uncovered a correlation that is not to be taken lightly.

Leveraging data from the USDA on milk production and the FBI Criminal Justice Information Services on burglary rates, the research team embarked on a bovine odyssey into the underbelly of dairy consumption and criminal misdeeds. The statistical analysis yielded a correlation coefficient of 0.9403878 and a p-value of less than 0.01, indicating a shockingly robust relationship between milk consumption and burglaries from 1990 to 2021. These findings not only defy conventional wisdom but also raise intriguing questions about the mechanisms underlying this seemingly implausible connection.

As we embark upon this udderly unconventional scientific inquiry, it is important to approach the matter with both vigilance and a sense of whimsy. The findings not only prompt a reevaluation of the age-old adage "got milk?" but also beckon us to consider a new maxim: "got milk, got mischief?" The enigmatic bond between dairy consumption and criminal activity beckons further scrutiny, inviting us to explore whether there is something in the milk that leads to these illicit behavior patterns or whether it is merely a lactose-induced coincidence.

Thus, as we peer into the murky depths of this unlikely correlation, we must prepare ourselves for potential cascades of puns, the occasional dairy-related joke, and a hearty measure of scientific scrutiny. With this peculiar intersection of milk and misdemeanors, the stage is set for a scientific spectacle that promises equal parts intrigue and amusement.


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

Please make up a literature review section of an academic research paper presenting the findings of the connection between Milk consumption and Burglaries in Nevada. 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]]
Mysterious Milk: Milking the Connection Between Milk Consumption and Burglaries in Nevada

[[ABSTRACT]]
The study aims to investigate the potential relationship between milk consumption and burglaries in the state of Nevada. Leveraging data from the USDA on milk production and the FBI Criminal Justice Information Services on burglary rates, our research team delved into the obscure territory of bovine lactation and unlawful entries. Surprisingly, the statistical analysis revealed a remarkably strong and significant correlation between the two variables, with a correlation coefficient of 0.9403878 and p < 0.01 for the period spanning 1990 to 2021. The findings prompt a reevaluation of the age-old adage "got milk?" to "got milk, got mischief?" as we delve into the enigmatic interplay between dairy consumption and criminal activity. This paper sheds light on a udderly unexpected linkage and raises the question: is there something in the milk that leads to these unlawful behavior patterns, or is it merely a lactose-induced coincidence?

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
The curious case of milk and its potential influence on criminal behavior has captured the attention of researchers and enthusiasts alike. While the notion of a link between milk consumption and burglaries may initially seem utterly ridiculous, the findings of this study may have you moo-ving to reconsider dismissing this association outright. The tantalizing possibility of an unexpectedly strong correlation between these seemingly unrelated variables has elicited both intrigue and skepticism within the scientific community.
The study endeavors to disentangle the mystery surrounding the potential connection between milk consumption and burglaries in the state of Nevada. As the famous saying goes, "It's not just a dairy habit, it's a crime wave in the making!" Although the relationship between these two variables may seem as mismatched as a cow in a china shop, the statistical analysis has uncovered a correlation that is not to be taken lightly.
Leveraging data from the USDA on milk production and the FBI Criminal Justice Information Services on burglary rates, the research team embarked on a bovine odyssey into the underbelly of dairy consumption and criminal misdeeds. The statistical analysis yielded a correlation coefficient of 0.9403878 and a p-value of less than 0.01, indicating a shockingly robust relationship between milk consumption and burglaries from 1990 to 2021. These findings not only defy conventional wisdom but also raise intriguing questions about the mechanisms underlying this seemingly implausible connection.
As we embark upon this udderly unconventional scientific inquiry, it is important to approach the matter with both vigilance and a sense of whimsy. The findings not only prompt a reevaluation of the age-old adage "got milk?" but also beckon us to consider a new maxim: "got milk, got mischief?" The enigmatic bond between dairy consumption and criminal activity beckons further scrutiny, inviting us to explore whether there is something in the milk that leads to these illicit behavior patterns or whether it is merely a lactose-induced coincidence.
Thus, as we peer into the murky depths of this unlikely correlation, we must prepare ourselves for potential cascades of puns, the occasional dairy-related joke, and a hearty measure of scientific scrutiny. With this peculiar intersection of milk and misdemeanors, the stage is set for a scientific spectacle that promises equal parts intrigue and amusement.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

The investigation into the potential connection between milk consumption and burglaries in Nevada has necessitated a comprehensive review of existing literature in pertinent fields. Authors such as Smith, Doe, and Jones have ventured into the intriguing realm of unexpected correlations, and their work has laid the groundwork for the present inquiry. Smith, in "Dairy Delights: Exploring Unconventional Associations," delves into the complexities of dairy consumption and its unforeseen implications, shedding light upon the unpredictable nature of dietary patterns and behavioral outcomes. Meanwhile, Doe, in "Moo-ving Beyond the Norm: An Examination of Bovine Influence,'' explores the influence of bovine products on a range of societal phenomena, sparking curiosity about the potential impact of milk on criminal tendencies. Jones, in "Got Milk, Got Mischief? Unexpected Linkages in Daily Life," offers a compelling analysis of unexpected linkages between seemingly disparate variables, laying the groundwork for this unconventional line of inquiry.

In addition to these scholarly studies, a number of texts from diverse disciplines provide valuable insights into the peculiar relationship between dairy consumption and criminal behavior. Books such as "The Cow in the Burglar's Mask: An Unlikely Duo" and "Milked: The White Liquid of Misbehavior" offer whimsical interpretations of the potential interplay between milk and mischief. These imaginative explorations prompt contemplation of the enigmatic ways in which dairy products might shape unlawful activities.

As the inquiry delves into uncharted territory, it is essential to consider a range of perspectives, including those from unexpected sources. Children's programming, such as "The Adventures of Dairy Dan and the Caper of the Calcium Crook," presents fictitious yet thought-provoking scenarios involving dairy-related misdeeds, inviting contemplation of the potential impact of milk on youthful mischief. This multifaceted approach serves to infuse the scholarly pursuit with an element of whimsical curiosity, encouraging a thorough investigation into the unexpected interplay between milk consumption and unlawful entries.


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

Please make up the methodology section of an academic research paper presenting the findings of the connection between Milk consumption and Burglaries in Nevada. Make lots of jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Your research team collected data from all across the internet, but mostly just used information from 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]]
Mysterious Milk: Milking the Connection Between Milk Consumption and Burglaries in Nevada

[[ABSTRACT]]
The study aims to investigate the potential relationship between milk consumption and burglaries in the state of Nevada. Leveraging data from the USDA on milk production and the FBI Criminal Justice Information Services on burglary rates, our research team delved into the obscure territory of bovine lactation and unlawful entries. Surprisingly, the statistical analysis revealed a remarkably strong and significant correlation between the two variables, with a correlation coefficient of 0.9403878 and p < 0.01 for the period spanning 1990 to 2021. The findings prompt a reevaluation of the age-old adage "got milk?" to "got milk, got mischief?" as we delve into the enigmatic interplay between dairy consumption and criminal activity. This paper sheds light on a udderly unexpected linkage and raises the question: is there something in the milk that leads to these unlawful behavior patterns, or is it merely a lactose-induced coincidence?

[[INTRODUCTION]]
The curious case of milk and its potential influence on criminal behavior has captured the attention of researchers and enthusiasts alike. While the notion of a link between milk consumption and burglaries may initially seem utterly ridiculous, the findings of this study may have you moo-ving to reconsider dismissing this association outright. The tantalizing possibility of an unexpectedly strong correlation between these seemingly unrelated variables has elicited both intrigue and skepticism within the scientific community.
The study endeavors to disentangle the mystery surrounding the potential connection between milk consumption and burglaries in the state of Nevada. As the famous saying goes, "It's not just a dairy habit, it's a crime wave in the making!" Although the relationship between these two variables may seem as mismatched as a cow in a china shop, the statistical analysis has uncovered a correlation that is not to be taken lightly.
Leveraging data from the USDA on milk production and the FBI Criminal Justice Information Services on burglary rates, the research team embarked on a bovine odyssey into the underbelly of dairy consumption and criminal misdeeds. The statistical analysis yielded a correlation coefficient of 0.9403878 and a p-value of less than 0.01, indicating a shockingly robust relationship between milk consumption and burglaries from 1990 to 2021. These findings not only defy conventional wisdom but also raise intriguing questions about the mechanisms underlying this seemingly implausible connection.
As we embark upon this udderly unconventional scientific inquiry, it is important to approach the matter with both vigilance and a sense of whimsy. The findings not only prompt a reevaluation of the age-old adage "got milk?" but also beckon us to consider a new maxim: "got milk, got mischief?" The enigmatic bond between dairy consumption and criminal activity beckons further scrutiny, inviting us to explore whether there is something in the milk that leads to these illicit behavior patterns or whether it is merely a lactose-induced coincidence.
Thus, as we peer into the murky depths of this unlikely correlation, we must prepare ourselves for potential cascades of puns, the occasional dairy-related joke, and a hearty measure of scientific scrutiny. With this peculiar intersection of milk and misdemeanors, the stage is set for a scientific spectacle that promises equal parts intrigue and amusement.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

In order to unravel the mysterious connection between milk consumption and burglaries in Nevada, our research team employed an assortment of meticulously crafted research methods. First, we combed through the USDA database to obtain comprehensive data on milk production in Nevada from 1990 to 2021. The data were meticulously milked for every drop of information, ensuring a thorough understanding of the dairy landscape in the state.

Meanwhile, to capture the nefarious essence of criminal activities, we perused the FBI Criminal Justice Information Services to extract detailed statistics on burglary rates in Nevada over the same time period. This process involved sifting through a veritable haystack of criminal data to pin down the specific incidents related to unlawful entries in the state.

Once the pertinent data on milk production and burglary rates were corralled, we harmonized the information from the USDA and FBI databases, creating a dataset that juxtaposed the consumption of milk with the occurrence of burglaries. To ensure the robustness of our findings, we performed a series of statistical analyses, employing sophisticated techniques such as correlation analysis and regression modeling to wrangle the data into submission.

The statistical analysis sought to elucidate the underlying patterns and unveil any hidden relationships between milk consumption and burglaries. We explored the data with the finesse of a seasoned dairy farmer, teasing out any potential correlations and disentangling the web of associations between these seemingly disparate variables.

Furthermore, we engaged in a thorough exploration of potential confounding variables, considering factors such as population density, socio-economic indicators, and even the lunar phases (given the well-known propensity of cows to exhibit mood swings during certain lunar cycles).

Through this multifaceted approach, we endeavored to uncover the enigmatic interplay between milk consumption and criminal activities, arming ourselves with a potent blend of statistics, data alchemy, and a dash of whimsy to navigate this bovine odyssey. In this way, we aimed to provide a comprehensive and nuanced analysis of the curious correlation between milk and mischief in the state of Nevada.


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

Please make up the results section of an academic research paper presenting the findings of the connection between Milk consumption and Burglaries in Nevada. Make lots of jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

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

For the time period 1990 to 2021, you found a correlation 0.9403878, r-squared of 0.8843292, 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]]
Mysterious Milk: Milking the Connection Between Milk Consumption and Burglaries in Nevada

[[ABSTRACT]]
The study aims to investigate the potential relationship between milk consumption and burglaries in the state of Nevada. Leveraging data from the USDA on milk production and the FBI Criminal Justice Information Services on burglary rates, our research team delved into the obscure territory of bovine lactation and unlawful entries. Surprisingly, the statistical analysis revealed a remarkably strong and significant correlation between the two variables, with a correlation coefficient of 0.9403878 and p < 0.01 for the period spanning 1990 to 2021. The findings prompt a reevaluation of the age-old adage "got milk?" to "got milk, got mischief?" as we delve into the enigmatic interplay between dairy consumption and criminal activity. This paper sheds light on a udderly unexpected linkage and raises the question: is there something in the milk that leads to these unlawful behavior patterns, or is it merely a lactose-induced coincidence?

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
The curious case of milk and its potential influence on criminal behavior has captured the attention of researchers and enthusiasts alike. While the notion of a link between milk consumption and burglaries may initially seem utterly ridiculous, the findings of this study may have you moo-ving to reconsider dismissing this association outright. The tantalizing possibility of an unexpectedly strong correlation between these seemingly unrelated variables has elicited both intrigue and skepticism within the scientific community.
The study endeavors to disentangle the mystery surrounding the potential connection between milk consumption and burglaries in the state of Nevada. As the famous saying goes, "It's not just a dairy habit, it's a crime wave in the making!" Although the relationship between these two variables may seem as mismatched as a cow in a china shop, the statistical analysis has uncovered a correlation that is not to be taken lightly.
Leveraging data from the USDA on milk production and the FBI Criminal Justice Information Services on burglary rates, the research team embarked on a bovine odyssey into the underbelly of dairy consumption and criminal misdeeds. The statistical analysis yielded a correlation coefficient of 0.9403878 and a p-value of less than 0.01, indicating a shockingly robust relationship between milk consumption and burglaries from 1990 to 2021. These findings not only defy conventional wisdom but also raise intriguing questions about the mechanisms underlying this seemingly implausible connection.
As we embark upon this udderly unconventional scientific inquiry, it is important to approach the matter with both vigilance and a sense of whimsy. The findings not only prompt a reevaluation of the age-old adage "got milk?" but also beckon us to consider a new maxim: "got milk, got mischief?" The enigmatic bond between dairy consumption and criminal activity beckons further scrutiny, inviting us to explore whether there is something in the milk that leads to these illicit behavior patterns or whether it is merely a lactose-induced coincidence.
Thus, as we peer into the murky depths of this unlikely correlation, we must prepare ourselves for potential cascades of puns, the occasional dairy-related joke, and a hearty measure of scientific scrutiny. With this peculiar intersection of milk and misdemeanors, the stage is set for a scientific spectacle that promises equal parts intrigue and amusement.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The statistical analysis unearthed a surprisingly robust and significant correlation between milk consumption and burglaries in Nevada, spanning the period from 1990 to 2021. The correlation coefficient of 0.9403878 truly "milked" the potential connection between these seemingly unrelated variables, suggesting that milk consumption and criminal misdeeds may be more intertwined than previously thought. With an r-squared value of 0.8843292, it can be said that the relationship between these variables is "udderly" convincing, accounting for a significant proportion of the variance observed.

The p-value of less than 0.01 provides further evidence that the observed relationship is not due to mere chance, quashing any lingering doubts about the legitimacy of this surprising association. It seems that when it comes to milk consumption and burglaries, the evidence is as clear as a glass of skim milk!

Additionally, the scatterplot (Fig. 1) visually depicts the striking correlation between milk consumption and burglary rates in Nevada, leaving little room for skepticism. The points on the plot seem to be moo-ving in perfect unison, herding together to demonstrate the strong relationship between these variables.

The findings of this analysis not only challenge conventional notions about the influence of dairy products but also open the pasture for further investigation into the mechanisms underlying this enigmatic linkage. It seems that the saying "spilled milk leads to trouble" has more truth to it than previously acknowledged, and the link between dairy consumption and criminal activity may hold more than just a lactose-induced coincidence.

This astonishing correlation prompts a reevaluation of the traditional slogan "got milk?" to "got milk, got mischief?" as we navigate the unexpected and intriguing interplay between dairy consumption and unlawful behavior patterns. In conclusion, the findings of this study cast a spotlight on the curious connection between milk and misdemeanors, urging researchers to delve deeper into this mysterious territory and perhaps indulge in a dairy-related joke or two along the way.


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

Please make up the discussion section of an academic research paper presenting the findings of the connection between Milk consumption and Burglaries in Nevada. Make lots of jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Limit your response to 500 tokens.

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

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

[[TITLE]]
Mysterious Milk: Milking the Connection Between Milk Consumption and Burglaries in Nevada

[[ABSTRACT]]
The study aims to investigate the potential relationship between milk consumption and burglaries in the state of Nevada. Leveraging data from the USDA on milk production and the FBI Criminal Justice Information Services on burglary rates, our research team delved into the obscure territory of bovine lactation and unlawful entries. Surprisingly, the statistical analysis revealed a remarkably strong and significant correlation between the two variables, with a correlation coefficient of 0.9403878 and p < 0.01 for the period spanning 1990 to 2021. The findings prompt a reevaluation of the age-old adage "got milk?" to "got milk, got mischief?" as we delve into the enigmatic interplay between dairy consumption and criminal activity. This paper sheds light on a udderly unexpected linkage and raises the question: is there something in the milk that leads to these unlawful behavior patterns, or is it merely a lactose-induced coincidence?

[[LITERATURE REVIEW]]
The investigation into the potential connection between milk consumption and burglaries in Nevada has necessitated a comprehensive review of existing literature in pertinent fields. Authors such as Smith, Doe, and Jones have ventured into the intriguing realm of unexpected correlations, and their work has laid the groundwork for the present inquiry. Smith, in "Dairy Delights: Exploring Unconventional Associations," delves into the complexities of dairy consumption and its unforeseen implications, shedding light upon the unpredictable nature of dietary patterns and behavioral outcomes. Meanwhile, Doe, in "Moo-ving Beyond the Norm: An Examination of Bovine Influence,'' explores the influence of bovine products on a range of societal phenomena, sparking curiosity about the potential impact of milk on criminal tendencies. Jones, in "Got Milk, Got Mischief? Unexpected Linkages in Daily Life," offers a compelling analysis of unexpected linkages between seemingly disparate variables, laying the groundwork for this unconventional line of inquiry.
In addition to these scholarly studies, a number of texts from diverse disciplines provide valuable insights into the peculiar relationship between dairy consumption and criminal behavior. Books such as "The Cow in the Burglar's Mask: An Unlikely Duo" and "Milked: The White Liquid of Misbehavior" offer whimsical interpretations of the potential interplay between milk and mischief. These imaginative explorations prompt contemplation of the enigmatic ways in which dairy products might shape unlawful activities.
As the inquiry delves into uncharted territory, it is essential to consider a range of perspectives, including those from unexpected sources. Children's programming, such as "The Adventures of Dairy Dan and the Caper of the Calcium Crook," presents fictitious yet thought-provoking scenarios involving dairy-related misdeeds, inviting contemplation of the potential impact of milk on youthful mischief. This multifaceted approach serves to infuse the scholarly pursuit with an element of whimsical curiosity, encouraging a thorough investigation into the unexpected interplay between milk consumption and unlawful entries.

[[RESULTS]]
The statistical analysis unearthed a surprisingly robust and significant correlation between milk consumption and burglaries in Nevada, spanning the period from 1990 to 2021. The correlation coefficient of 0.9403878 truly "milked" the potential connection between these seemingly unrelated variables, suggesting that milk consumption and criminal misdeeds may be more intertwined than previously thought. With an r-squared value of 0.8843292, it can be said that the relationship between these variables is "udderly" convincing, accounting for a significant proportion of the variance observed.
The p-value of less than 0.01 provides further evidence that the observed relationship is not due to mere chance, quashing any lingering doubts about the legitimacy of this surprising association. It seems that when it comes to milk consumption and burglaries, the evidence is as clear as a glass of skim milk!
Additionally, the scatterplot (Fig. 1) visually depicts the striking correlation between milk consumption and burglary rates in Nevada, leaving little room for skepticism. The points on the plot seem to be moo-ving in perfect unison, herding together to demonstrate the strong relationship between these variables.
The findings of this analysis not only challenge conventional notions about the influence of dairy products but also open the pasture for further investigation into the mechanisms underlying this enigmatic linkage. It seems that the saying "spilled milk leads to trouble" has more truth to it than previously acknowledged, and the link between dairy consumption and criminal activity may hold more than just a lactose-induced coincidence.
This astonishing correlation prompts a reevaluation of the traditional slogan "got milk?" to "got milk, got mischief?" as we navigate the unexpected and intriguing interplay between dairy consumption and unlawful behavior patterns. In conclusion, the findings of this study cast a spotlight on the curious connection between milk and misdemeanors, urging researchers to delve deeper into this mysterious territory and perhaps indulge in a dairy-related joke or two along the way.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The results of the current investigation support and expand upon the prior research that has hinted at a potential relationship between milk consumption and burglaries in Nevada. The findings align with the work of Smith, Doe, and Jones, whose scholarly contributions paved the way for this unorthodox inquiry. The significant correlation coefficient of 0.9403878 obtained in this study echoes the insights of previous literature, corroborating the notion that dairy products might wield unseen influence over behavioral patterns. It appears that the enigmatic interplay between milk consumption and unlawful entries, as proposed by the aforementioned authors, may be even more pronounced than anticipated.

The unexpected robustness of the observed correlation prompts contemplation of the mechanisms underlying this intriguing linkage. While it may be tempting to dismiss the connection as a mere lactose-induced coincidence, the striking statistical evidence challenges such dismissal. The r-squared value of 0.8843292 suggests that milk consumption accounts for a substantial proportion of the variance in burglary rates, indicating a tangible relationship between these variables. It seems that the phrase "got milk, got mischief?" may harbor more truth than humor, as the evidence points to a noteworthy association between dairy consumption and criminal activity.

The significant p-value further underlines the legitimacy of this unexpected correlation, dispelling any remnants of skepticism. The strong statistical support leaves little room for doubt; it seems that the relationship between milk consumption and burglaries is as clear as a freshly poured glass of milk. Much like the reliable guidance of a dairy farmer, the statistical evidence guides us in recognizing the depth of this curious connection, urging further exploration into the potential influence of milk on unlawful behavior.

The visual representation of this relationship, as depicted in the scatterplot (Fig. 1), illustrates the compelling alignment between milk consumption and burglary rates in Nevada. The points seem to be herding together with remarkable synchrony, leaving little room for conjecture. This visual representation reinforces the statistical findings, painting a vivid picture of the seemingly unexpected yet undeniably robust connection between dairy consumption and criminal misdeeds.

In conclusion, the results of this study anchor the discussion of the unanticipated relationship between milk consumption and burglaries in Nevada upon a solid empirical foundation. The findings not only validate but also amplify the prior work in this quirky domain of research, shedding light on the unforeseen influence of dairy products on unlawful activities. This investigation highlights the necessity of nourishing scholarly curiosity even in the most unexpected pastures, as it may yield discoveries that are both surprising and thought-provoking.


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

Please make up a short conclusion of an academic research paper presenting the findings of the connection between Milk consumption and Burglaries in Nevada. Make lots of jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

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

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
Mysterious Milk: Milking the Connection Between Milk Consumption and Burglaries in Nevada

[[ABSTRACT]]
The study aims to investigate the potential relationship between milk consumption and burglaries in the state of Nevada. Leveraging data from the USDA on milk production and the FBI Criminal Justice Information Services on burglary rates, our research team delved into the obscure territory of bovine lactation and unlawful entries. Surprisingly, the statistical analysis revealed a remarkably strong and significant correlation between the two variables, with a correlation coefficient of 0.9403878 and p < 0.01 for the period spanning 1990 to 2021. The findings prompt a reevaluation of the age-old adage "got milk?" to "got milk, got mischief?" as we delve into the enigmatic interplay between dairy consumption and criminal activity. This paper sheds light on a udderly unexpected linkage and raises the question: is there something in the milk that leads to these unlawful behavior patterns, or is it merely a lactose-induced coincidence?

[[INTRDUCTION]]
The curious case of milk and its potential influence on criminal behavior has captured the attention of researchers and enthusiasts alike. While the notion of a link between milk consumption and burglaries may initially seem utterly ridiculous, the findings of this study may have you moo-ving to reconsider dismissing this association outright. The tantalizing possibility of an unexpectedly strong correlation between these seemingly unrelated variables has elicited both intrigue and skepticism within the scientific community.
The study endeavors to disentangle the mystery surrounding the potential connection between milk consumption and burglaries in the state of Nevada. As the famous saying goes, "It's not just a dairy habit, it's a crime wave in the making!" Although the relationship between these two variables may seem as mismatched as a cow in a china shop, the statistical analysis has uncovered a correlation that is not to be taken lightly.
Leveraging data from the USDA on milk production and the FBI Criminal Justice Information Services on burglary rates, the research team embarked on a bovine odyssey into the underbelly of dairy consumption and criminal misdeeds. The statistical analysis yielded a correlation coefficient of 0.9403878 and a p-value of less than 0.01, indicating a shockingly robust relationship between milk consumption and burglaries from 1990 to 2021. These findings not only defy conventional wisdom but also raise intriguing questions about the mechanisms underlying this seemingly implausible connection.
As we embark upon this udderly unconventional scientific inquiry, it is important to approach the matter with both vigilance and a sense of whimsy. The findings not only prompt a reevaluation of the age-old adage "got milk?" but also beckon us to consider a new maxim: "got milk, got mischief?" The enigmatic bond between dairy consumption and criminal activity beckons further scrutiny, inviting us to explore whether there is something in the milk that leads to these illicit behavior patterns or whether it is merely a lactose-induced coincidence.
Thus, as we peer into the murky depths of this unlikely correlation, we must prepare ourselves for potential cascades of puns, the occasional dairy-related joke, and a hearty measure of scientific scrutiny. With this peculiar intersection of milk and misdemeanors, the stage is set for a scientific spectacle that promises equal parts intrigue and amusement.

[[RESULTS]]
The statistical analysis unearthed a surprisingly robust and significant correlation between milk consumption and burglaries in Nevada, spanning the period from 1990 to 2021. The correlation coefficient of 0.9403878 truly "milked" the potential connection between these seemingly unrelated variables, suggesting that milk consumption and criminal misdeeds may be more intertwined than previously thought. With an r-squared value of 0.8843292, it can be said that the relationship between these variables is "udderly" convincing, accounting for a significant proportion of the variance observed.
The p-value of less than 0.01 provides further evidence that the observed relationship is not due to mere chance, quashing any lingering doubts about the legitimacy of this surprising association. It seems that when it comes to milk consumption and burglaries, the evidence is as clear as a glass of skim milk!
Additionally, the scatterplot (Fig. 1) visually depicts the striking correlation between milk consumption and burglary rates in Nevada, leaving little room for skepticism. The points on the plot seem to be moo-ving in perfect unison, herding together to demonstrate the strong relationship between these variables.
The findings of this analysis not only challenge conventional notions about the influence of dairy products but also open the pasture for further investigation into the mechanisms underlying this enigmatic linkage. It seems that the saying "spilled milk leads to trouble" has more truth to it than previously acknowledged, and the link between dairy consumption and criminal activity may hold more than just a lactose-induced coincidence.
This astonishing correlation prompts a reevaluation of the traditional slogan "got milk?" to "got milk, got mischief?" as we navigate the unexpected and intriguing interplay between dairy consumption and unlawful behavior patterns. In conclusion, the findings of this study cast a spotlight on the curious connection between milk and misdemeanors, urging researchers to delve deeper into this mysterious territory and perhaps indulge in a dairy-related joke or two along the way.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, the findings of this study highlight the remarkably robust and significant correlation between milk consumption and burglaries in Nevada, which, much to everyone's amusement, appears to be more than a mere lactose-induced coincidence. The statistical analysis certainly churned out some unexpected results, leaving us "udderly" convinced of this intriguing linkage. It seems that when it comes to milk consumption and criminal misdeeds, it's not just a dairy habit; it's a crime wave in the making!

The scatterplot (Fig. 1) visually laid bare the striking correlation between milk consumption and burglary rates in Nevada, almost resembling a herd of points moo-ving in perfect unison. The evidence is as clear as a glass of skim milk! The statistical relationship observed not only challenges conventional notions about the influence of dairy products but also begs some "moo-rvelous" questions about the mechanisms behind this unexpected association.

The question of whether there is something in the milk that leads to these unlawful behavior patterns or if it's just a dairy coincidence remains unresolved. Perhaps this calls for a "moo-sterious" undercover operation to unveil the secret life of dairy. Or perhaps, there's a "cereal" criminal amongst us, exploiting the unsuspecting influence of milk. The ongoing saga of milk and misdemeanors certainly offers a lactose-tolerant amusement for future researchers.

In light of these findings, it can be confidently asserted that no more research is needed in this area. The results of this study have milked the potential connection between milk consumption and burglaries in Nevada for all it's worth, leaving us with an abundance of dairy-related puns and a generous helping of statistical insight. It seems we have truly "moo-ved" the needle on this peculiar field of inquiry.


Model: gpt-3.5-turbo-1106
System prompt: You provide fictional names of academic journals. You say nothing else, and you do not chat with the user.
User prompt: Please provide the name of a funny but plausible sounding research, scientific, or academic journal that would publish a paper entited Mysterious Milk: Milking the Connection Between Milk Consumption and Burglaries in Nevada. Respond only with the name of a fictional academic journal.

ChatGPT:

Journal of Dairy Criminology


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 Mysterious Milk: Milking the Connection Between Milk Consumption and Burglaries in Nevada. Respond only with the name of a fictional organization.

ChatGPT:

The Society for Dairy-Related Criminology


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 Mysterious Milk: Milking the Connection Between Milk Consumption and Burglaries in Nevada with an abstract of The study aims to investigate the potential relationship between milk consumption and burglaries in the state of Nevada. Leveraging data from the USDA on milk production and the FBI Criminal Justice Information Services on burglary rates, our research team delved into the obscure territory of bovine lactation and unlawful entries. Surprisingly, the statistical analysis revealed a remarkably strong and significant correlation between the two variables, with a correlation coefficient of 0.9403878 and p < 0.01 for the period spanning 1990 to 2021. The findings prompt a reevaluation of the age-old adage "got milk?" to "got milk, got mischief?" as we delve into the enigmatic interplay between dairy consumption and criminal activity. This paper sheds light on a udderly unexpected linkage and raises the question: is there something in the milk that leads to these unlawful behavior patterns, or is it merely a lactose-induced coincidence?

ChatGPT:

milk consumption, burglaries, Nevada, dairy consumption, crime rates, USDA milk production data, FBI burglary rates, statistical analysis, correlation coefficient, milk and criminal activity, dairy consumption and unlawful behavior

*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

Milk consumption
Detailed data title: Per capita consumption of Fluid beverage milk in the US
Source: USDA
See what else correlates with Milk consumption

Burglaries in Nevada
Detailed data title: The burglary rate per 100,000 residents in Nevada
Source: FBI Criminal Justice Information Services
See what else correlates with Burglaries in Nevada

Correlation r = 0.9403878 (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.8843292 (Coefficient of determination)
This means 88.4% of the change in the one variable (i.e., Burglaries in Nevada) is predictable based on the change in the other (i.e., Milk 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.4E-15. 0.0000000000000013584825966740
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.94 in 1.4E-13% of random cases. Said differently, if you correlated 736,115,429,412,434 random variables You don't actually need 736 trillion 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.88, 0.97 ] 95% correlation confidence interval (using the Fisher z-transformation)
The confidence interval is an estimate the range of the value of the correlation coefficient, using the correlation itself as an input. The values are meant to be the low and high end of the correlation coefficient with 95% confidence.

This one is a bit more complciated than the other calculations, but I include it because many people have been pushing for confidence intervals instead of p-value calculations (for example: NEJM. However, if you are dredging data, you can reliably find yourself in the 5%. That's my goal!


All values for the years included above: If I were being very sneaky, I could trim years from the beginning or end of the datasets to increase the correlation on some pairs of variables. I don't do that because there are already plenty of correlations in my database without monkeying with the years.

Still, sometimes one of the variables has more years of data available than the other. This page only shows the overlapping years. To see all the years, click on "See what else correlates with..." link above.
19901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021
Milk consumption (Pounds per person)220218215210208205205201198197196192191188185185185183181181177173169164158155153149145141141134
Burglaries in Nevada (Burglary rate)1367.41403.91289.212451354.51322.51220.11310.41137.6973.5877.1844.3874.3979.3992973.4997.9971932.8836.7824.1747.9803.1825.6772.4775.4640.2674.5586505.7368.8406.3




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([220,218,215,210,208,205,205,201,198,197,196,192,191,188,185,185,185,183,181,181,177,173,169,164,158,155,153,149,145,141,141,134,])
array_2 = np.array([1367.4,1403.9,1289.2,1245,1354.5,1322.5,1220.1,1310.4,1137.6,973.5,877.1,844.3,874.3,979.3,992,973.4,997.9,971,932.8,836.7,824.1,747.9,803.1,825.6,772.4,775.4,640.2,674.5,586,505.7,368.8,406.3,])
array_1_name = "Milk consumption"
array_2_name = "Burglaries in Nevada"

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

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



Reuseable content

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

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

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

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

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

Download images for these variables:


View another random correlation

How fun was this correlation?

Your dedication to rating warms my heart!


Correlation ID: 3309 · Black Variable ID: 554 · Red Variable ID: 20105
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0