about · email me · subscribe
Spurious correlation #2,971 · 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 Robberies in North Carolina.  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

Because milk consumption decreased, more cows were able to roam freely in North Carolina, thereby deterring potential robbers with their intimidating presence, leading to a decrease in robberies.

Model: dalle-3
Prompt: [ Cute cartoon ] In a field in North Carolina, a group of adorable, chubby cows with big shiny eyes roam freely. The cows are depicted with slightly oversized heads and a cute, friendly demeanor. They munch on lush green grass with little flowers all around. They cast watchful gazes across the peaceful field, standing tall and proud with a hint of protective guardianship. Nearby, a charming, quaint town is depicted with cozy little houses and friendly residents going about their day. The scene exudes a sense of tranquility and safety, with a lighthearted touch of these endearing cows bringing peace to 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 Robberies in North Carolina. 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 Cutsy art illustration Steampunk Cute cartoon Scalar art
ChatGPT: Cute cartoon

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 Robberies in North Carolina, in the following situation: Because milk consumption decreased, more cows were able to roam freely in North Carolina, thereby deterring potential robbers with their intimidating presence, leading to a decrease in robberies.. Keep the description simple.
ChatGPT: In a field in North Carolina, a group of cows roam freely, grazing on lush green grass. The cows are strong and imposing, casting watchful gazes across the field. Nearby, a small town is at peace, with fewer instances of robberies occurring. The residents attribute this to the intimidating presence of the cows, as milk consumption has decreased, allowing the cows to roam more freely.

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: [ Cute cartoon ] and depicting this scene: In a field in North Carolina, a group of cows roam freely, grazing on lush green grass. The cows are strong and imposing, casting watchful gazes across the field. Nearby, a small town is at peace, with fewer instances of robberies occurring. The residents attribute this to the intimidating presence of the cows, as milk consumption has decreased, allowing the cows to roam more freely. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: [ Cute cartoon ] In a field in North Carolina, a group of adorable, chubby cows with big shiny eyes roam freely. The cows are depicted with slightly oversized heads and a cute, friendly demeanor. They munch on lush green grass with little flowers all around. They cast watchful gazes across the peaceful field, standing tall and proud with a hint of protective guardianship. Nearby, a charming, quaint town is depicted with cozy little houses and friendly residents going about their day. The scene exudes a sense of tranquility and safety, with a lighthearted touch of these endearing cows bringing peace to 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
System prompt: You provide humerus 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. Your responses should be able to be used as the title for a funny post, or the top comment on a thread explaining the connection.
User prompt: Please make up a funny explanation for how a decrease in Milk consumption caused Robberies in North Carolina to decrease. Make it lighthearted and humerus but plausible, and keep it short to ~90 tokens. Do not start with 'well' or 'you see' or similar statements. Do not restate the variables; lead with the answer (what comes after 'because...')

AI academic paper

(Because p < 0.01)
Got Milk? The Dairy Robbery Connection: A Study in North Carolina

The Journal of Dairy Detective Studies

Jan 2024

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




Model: gpt-3.5-turbo-1106
System prompt: You are a silly 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 Milk consumption and Robberies in North Carolina. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

Include a pun in the title.

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.9444209 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]]
Got Milk? The Dairy Robbery Connection: A Study in North Carolina

[[ABSTRACT]]
In this study, we investigate the curious connection between milk consumption and the incidence of robberies in North Carolina. The data sets from the USDA and FBI Criminal Justice Information Services were diligently analyzed to explore any potential relationships between these seemingly unrelated phenomena. Our research team discovered a striking correlation coefficient of 0.9444209, and with statistical significance at p < 0.01 for the time period spanning 1990 to 2021.

As we delved into the dairy-robbery nexus, we were udderly surprised by the compelling findings. It appears that as milk consumption in North Carolina increased, so did the number of reported robberies, leading to the realization that there may indeed be a "udderly" compelling link between the two. This discovery has certainly curdled our previous perceptions on crime and dairy consumption.

It's no "moo-stery" why our findings are quite interesting, and while we may not have cracked the case wide open, it's clear that there's more to this "dairy" situation than meets the eye. This research calls for further investigation into the influence of milk on criminal behavior, and we're confident that future studies will help us "milk" even more insights from this fascinating phenomenon.


Model: gpt-3.5-turbo-1106
System prompt: You are a silly 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 Milk consumption and Robberies in North Carolina. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Here is the title and abstract of the paper:
[[TITLE]]
Got Milk? The Dairy Robbery Connection: A Study in North Carolina

[[ABSTRACT]]
In this study, we investigate the curious connection between milk consumption and the incidence of robberies in North Carolina. The data sets from the USDA and FBI Criminal Justice Information Services were diligently analyzed to explore any potential relationships between these seemingly unrelated phenomena. Our research team discovered a striking correlation coefficient of 0.9444209, and with statistical significance at p < 0.01 for the time period spanning 1990 to 2021.

As we delved into the dairy-robbery nexus, we were udderly surprised by the compelling findings. It appears that as milk consumption in North Carolina increased, so did the number of reported robberies, leading to the realization that there may indeed be a "udderly" compelling link between the two. This discovery has certainly curdled our previous perceptions on crime and dairy consumption.

It's no "moo-stery" why our findings are quite interesting, and while we may not have cracked the case wide open, it's clear that there's more to this "dairy" situation than meets the eye. This research calls for further investigation into the influence of milk on criminal behavior, and we're confident that future studies will help us "milk" even more insights from this fascinating phenomenon.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

As researchers, we are constantly seeking to uncover the underlying connections between seemingly unrelated variables, to shed light on the often surprising and even "udderly" bewildering phenomena in the world. In this study, we explore the potential relationship between milk consumption and the occurrence of robberies in North Carolina. Our investigation delves into this peculiar pairing with a mix of curiosity and a dash of skepticism, because, let’s face it, the idea that milk and robberies may be connected does seem rather far-fetched. However, as we dove into the data, we quickly realized that this research was no "dairy" tale but a notable avenue for scientific inquiry.

It may sound "cheesy", but our aim is to present a study that is both informative and, dare I say, udderly amusing. The intent is to engage the reader in an intellectual discussion while providing moments of levity to "moo-ve" the research along.

Our research was spurred by the observation of a potential correlation between milk consumption and crime rates, prompting us to milk this hypothesis for all it’s worth. The statistical analysis revealed a remarkably high correlation coefficient of 0.9444209, which, for the skeptics among us, certainly raised some eyebrows. But, as they say, "don’t cry over spilled milk", for there's more to this dairy-robbery conundrum than meets the eye.

We understand that on the surface, this study may seem utterly preposterous, but allow us to "milk" your skepticism for a moment and invite you on this "dairy-robbery" sleuthing adventure. Just like a good glass of milk, this research promises to both nourish the intellect and tickle the funny bone.

Our findings have led us to re-evaluate our assumptions about the potential impact of dairy consumption on criminal behavior. What started as a "whimsical" investigation has turned into a dairy-robbery "plot" thickening before our eyes. So, dear reader, stay tuned as we delve into this udderly fascinating "crime and punishment" of dairy consumption. For this is no "moo-stery", but an investigation with truly "gouda" prospects.


Model: gpt-3.5-turbo-1106
System prompt: You are a silly 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 Milk consumption and Robberies in North Carolina. 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]]
Got Milk? The Dairy Robbery Connection: A Study in North Carolina

[[ABSTRACT]]
In this study, we investigate the curious connection between milk consumption and the incidence of robberies in North Carolina. The data sets from the USDA and FBI Criminal Justice Information Services were diligently analyzed to explore any potential relationships between these seemingly unrelated phenomena. Our research team discovered a striking correlation coefficient of 0.9444209, and with statistical significance at p < 0.01 for the time period spanning 1990 to 2021.

As we delved into the dairy-robbery nexus, we were udderly surprised by the compelling findings. It appears that as milk consumption in North Carolina increased, so did the number of reported robberies, leading to the realization that there may indeed be a "udderly" compelling link between the two. This discovery has certainly curdled our previous perceptions on crime and dairy consumption.

It's no "moo-stery" why our findings are quite interesting, and while we may not have cracked the case wide open, it's clear that there's more to this "dairy" situation than meets the eye. This research calls for further investigation into the influence of milk on criminal behavior, and we're confident that future studies will help us "milk" even more insights from this fascinating phenomenon.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
As researchers, we are constantly seeking to uncover the underlying connections between seemingly unrelated variables, to shed light on the often surprising and even "udderly" bewildering phenomena in the world. In this study, we explore the potential relationship between milk consumption and the occurrence of robberies in North Carolina. Our investigation delves into this peculiar pairing with a mix of curiosity and a dash of skepticism, because, let’s face it, the idea that milk and robberies may be connected does seem rather far-fetched. However, as we dove into the data, we quickly realized that this research was no "dairy" tale but a notable avenue for scientific inquiry.
It may sound "cheesy", but our aim is to present a study that is both informative and, dare I say, udderly amusing. The intent is to engage the reader in an intellectual discussion while providing moments of levity to "moo-ve" the research along.
Our research was spurred by the observation of a potential correlation between milk consumption and crime rates, prompting us to milk this hypothesis for all it’s worth. The statistical analysis revealed a remarkably high correlation coefficient of 0.9444209, which, for the skeptics among us, certainly raised some eyebrows. But, as they say, "don’t cry over spilled milk", for there's more to this dairy-robbery conundrum than meets the eye.
We understand that on the surface, this study may seem utterly preposterous, but allow us to "milk" your skepticism for a moment and invite you on this "dairy-robbery" sleuthing adventure. Just like a good glass of milk, this research promises to both nourish the intellect and tickle the funny bone.
Our findings have led us to re-evaluate our assumptions about the potential impact of dairy consumption on criminal behavior. What started as a "whimsical" investigation has turned into a dairy-robbery "plot" thickening before our eyes. So, dear reader, stay tuned as we delve into this udderly fascinating "crime and punishment" of dairy consumption. For this is no "moo-stery", but an investigation with truly "gouda" prospects.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

The literature on the relationship between dairy consumption and crime rates is surprisingly sparse, given the striking nature of our findings. Smith and Doe (2015) suggest that calcium levels in the brain may influence decision-making and impulse control, which could in turn impact criminal behavior. However, the "moo-tivation" behind the correlation we have uncovered remains a "moo-stery."

In "Cows: The Udder Truth," the authors argue for the psychological impact of cow sightings as a potential influence on criminal tendencies, an argument that has been met with widespread skepticism. Similarly, "The Big Cheese: A History of Cheddar" provides an in-depth exploration of the societal impact of dairy consumption, but fails to address its potential correlation with criminal activities.

Moving into the realm of fiction, "The Milkman Murders" by Joe Casey presents a fictional account of dastardly crimes associated with the delivery of dairy products, exploring the darker side of the dairy industry. In a similar vein, "The Curious Incident of the Milk at Midnight" by Mark Haddon uses a dairy-related mystery as a narrative device, albeit unrelated to criminal activities.

In our own investigative efforts, we cannot overlook the compelling cinematic representation of dairy and crime, such as "Milk Money" and "Got Milk? A Heist Tale." Although these films do not directly address the North Carolina context, they provide intriguing fictional narratives that share an unexpected connection between dairy and criminality.

As we delve deeper into this unexplored territory of dairy-robbery connections, we are mindful of the need for future studies to corroborate and expand upon our initial findings. We invite fellow researchers to "moo-tivate" their curiosity and join us in uncovering the "udderly" bewildering puzzle of dairy consumption and criminal behavior. After all, in the world of empirical inquiry, sometimes the most unexpected correlations can lead to the "creamiest" discoveries.


Model: gpt-3.5-turbo-1106
System prompt: You are a silly 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 Milk consumption and Robberies in North Carolina. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences. 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]]
Got Milk? The Dairy Robbery Connection: A Study in North Carolina

[[ABSTRACT]]
In this study, we investigate the curious connection between milk consumption and the incidence of robberies in North Carolina. The data sets from the USDA and FBI Criminal Justice Information Services were diligently analyzed to explore any potential relationships between these seemingly unrelated phenomena. Our research team discovered a striking correlation coefficient of 0.9444209, and with statistical significance at p < 0.01 for the time period spanning 1990 to 2021.

As we delved into the dairy-robbery nexus, we were udderly surprised by the compelling findings. It appears that as milk consumption in North Carolina increased, so did the number of reported robberies, leading to the realization that there may indeed be a "udderly" compelling link between the two. This discovery has certainly curdled our previous perceptions on crime and dairy consumption.

It's no "moo-stery" why our findings are quite interesting, and while we may not have cracked the case wide open, it's clear that there's more to this "dairy" situation than meets the eye. This research calls for further investigation into the influence of milk on criminal behavior, and we're confident that future studies will help us "milk" even more insights from this fascinating phenomenon.

[[INTRODUCTION]]
As researchers, we are constantly seeking to uncover the underlying connections between seemingly unrelated variables, to shed light on the often surprising and even "udderly" bewildering phenomena in the world. In this study, we explore the potential relationship between milk consumption and the occurrence of robberies in North Carolina. Our investigation delves into this peculiar pairing with a mix of curiosity and a dash of skepticism, because, let’s face it, the idea that milk and robberies may be connected does seem rather far-fetched. However, as we dove into the data, we quickly realized that this research was no "dairy" tale but a notable avenue for scientific inquiry.
It may sound "cheesy", but our aim is to present a study that is both informative and, dare I say, udderly amusing. The intent is to engage the reader in an intellectual discussion while providing moments of levity to "moo-ve" the research along.
Our research was spurred by the observation of a potential correlation between milk consumption and crime rates, prompting us to milk this hypothesis for all it’s worth. The statistical analysis revealed a remarkably high correlation coefficient of 0.9444209, which, for the skeptics among us, certainly raised some eyebrows. But, as they say, "don’t cry over spilled milk", for there's more to this dairy-robbery conundrum than meets the eye.
We understand that on the surface, this study may seem utterly preposterous, but allow us to "milk" your skepticism for a moment and invite you on this "dairy-robbery" sleuthing adventure. Just like a good glass of milk, this research promises to both nourish the intellect and tickle the funny bone.
Our findings have led us to re-evaluate our assumptions about the potential impact of dairy consumption on criminal behavior. What started as a "whimsical" investigation has turned into a dairy-robbery "plot" thickening before our eyes. So, dear reader, stay tuned as we delve into this udderly fascinating "crime and punishment" of dairy consumption. For this is no "moo-stery", but an investigation with truly "gouda" prospects.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

In this study, we employed a multifaceted approach to untangle the dairy-robbery conundrum, blending traditional statistical methods with a sprinkle of whimsy and a dash of moorish intrigue. Now, let's "milk" the details of how we conducted this outlandish yet intriguing research.

First and foremost, we collected data on milk consumption and reported robberies in North Carolina from the USDA and FBI Criminal Justice Information Services. This data was meticulously curated from diverse sources across the internet, milk-ing every possible data point to ensure a comprehensive understanding of dairy intake and criminal activities. It was indeed a "herd" effort!

To establish a solid methodology, we brewed up a concoction of statistical analyses, including time-series analysis, correlation tests, and regression modeling. We spared no expense in "whey-ing" the evidence, conducting extensive analyses covering the timeframe of 1990 to 2021.

After collating the data, we "calcium-lated" the correlation coefficient and applied various regression models to assess the extent of the relationship between milk consumption and reported robberies. We were utterly astonished by the results, and we promise we're not just "milking" this for effect!

To account for potential confounding variables, we incorporated demographic data, economic indicators, and even climate patterns into our analyses. Making sure to cover all our bases, we left no stone unturned, or in this case, no cow un-moo-ved.

Once the analyses were completed, we subjected our findings to rigorous sensitivity testing and robustness checks. We aimed to ensure our results were as "fresh" as a carton of dairy straight from the farm. This rigorous process helped fortify the credibility of our conclusions, "dairy-ving" deep into the heart of the matter.

By the end of our "moo-mentous" analysis, we discovered a striking correlation, a result that left us utterly "cud-fuddled". As we mused over these curious connections, we couldn't help but appreciate the whimsy of scientific inquiry and the oftentimes unexpected paths it leads us down.

In summary, our methodology combined thorough data collection, rigorous analyses, and a sprinkle of humor to turn a seemingly preposterous idea into a "moo-velous" quest for knowledge. This study was truly a "grate" endeavor, and we hope it "curdles" your interest in the fascinating interplay between dairy consumption and criminal activities.


Model: gpt-3.5-turbo-1106
System prompt: You are a silly 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 Milk consumption and Robberies in North Carolina. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences. 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.9444209, r-squared of 0.8919308, 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]]
Got Milk? The Dairy Robbery Connection: A Study in North Carolina

[[ABSTRACT]]
In this study, we investigate the curious connection between milk consumption and the incidence of robberies in North Carolina. The data sets from the USDA and FBI Criminal Justice Information Services were diligently analyzed to explore any potential relationships between these seemingly unrelated phenomena. Our research team discovered a striking correlation coefficient of 0.9444209, and with statistical significance at p < 0.01 for the time period spanning 1990 to 2021.

As we delved into the dairy-robbery nexus, we were udderly surprised by the compelling findings. It appears that as milk consumption in North Carolina increased, so did the number of reported robberies, leading to the realization that there may indeed be a "udderly" compelling link between the two. This discovery has certainly curdled our previous perceptions on crime and dairy consumption.

It's no "moo-stery" why our findings are quite interesting, and while we may not have cracked the case wide open, it's clear that there's more to this "dairy" situation than meets the eye. This research calls for further investigation into the influence of milk on criminal behavior, and we're confident that future studies will help us "milk" even more insights from this fascinating phenomenon.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
As researchers, we are constantly seeking to uncover the underlying connections between seemingly unrelated variables, to shed light on the often surprising and even "udderly" bewildering phenomena in the world. In this study, we explore the potential relationship between milk consumption and the occurrence of robberies in North Carolina. Our investigation delves into this peculiar pairing with a mix of curiosity and a dash of skepticism, because, let’s face it, the idea that milk and robberies may be connected does seem rather far-fetched. However, as we dove into the data, we quickly realized that this research was no "dairy" tale but a notable avenue for scientific inquiry.
It may sound "cheesy", but our aim is to present a study that is both informative and, dare I say, udderly amusing. The intent is to engage the reader in an intellectual discussion while providing moments of levity to "moo-ve" the research along.
Our research was spurred by the observation of a potential correlation between milk consumption and crime rates, prompting us to milk this hypothesis for all it’s worth. The statistical analysis revealed a remarkably high correlation coefficient of 0.9444209, which, for the skeptics among us, certainly raised some eyebrows. But, as they say, "don’t cry over spilled milk", for there's more to this dairy-robbery conundrum than meets the eye.
We understand that on the surface, this study may seem utterly preposterous, but allow us to "milk" your skepticism for a moment and invite you on this "dairy-robbery" sleuthing adventure. Just like a good glass of milk, this research promises to both nourish the intellect and tickle the funny bone.
Our findings have led us to re-evaluate our assumptions about the potential impact of dairy consumption on criminal behavior. What started as a "whimsical" investigation has turned into a dairy-robbery "plot" thickening before our eyes. So, dear reader, stay tuned as we delve into this udderly fascinating "crime and punishment" of dairy consumption. For this is no "moo-stery", but an investigation with truly "gouda" prospects.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The results of our study revealed a remarkably strong positive correlation between milk consumption and the occurrence of robberies in North Carolina, with a correlation coefficient of 0.9444209 and an r-squared of 0.8919308. The p-value of less than 0.01 further accentuates the statistical significance of this surprising relationship.

Fig. 1 illustrates the robust correlation between milk consumption and reported robberies in North Carolina. The scatterplot depicts a clear and striking positive association, which could potentially inspire the creation of a new crime-fighting strategy involving dairy products.

It's clear that the path to understanding crime and dairy has led us down some truly unexpected avenues. Our findings are certainly not something to be taken lightly, but rather with a grain of salt – or rather, a splash of milk. This is just the tip of the iceberg lettuce in terms of uncovering the nuances and complexities of this "moo-ving" relationship.

Our results offer a great deal of "food for thought" and underscore the need for further investigation into the complex interplay between milk consumption and criminal activities. As we navigate the murky waters of dairy and crime, it is evident that there's more to this subject than initially meets the eye. The "dairy-science" of crime and milk consumption is indeed an area ripe for continued research, with the potential to produce a "butter" understanding of the peculiar links between these seemingly disparate variables. After all, it's always good to keep a sense of humor about these matters – because when it comes to research, the best way to approach it is with a "punny" mindset!


Model: gpt-3.5-turbo-1106
System prompt: You are a silly 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 Milk consumption and Robberies in North Carolina. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences. 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]]
Got Milk? The Dairy Robbery Connection: A Study in North Carolina

[[ABSTRACT]]
In this study, we investigate the curious connection between milk consumption and the incidence of robberies in North Carolina. The data sets from the USDA and FBI Criminal Justice Information Services were diligently analyzed to explore any potential relationships between these seemingly unrelated phenomena. Our research team discovered a striking correlation coefficient of 0.9444209, and with statistical significance at p < 0.01 for the time period spanning 1990 to 2021.

As we delved into the dairy-robbery nexus, we were udderly surprised by the compelling findings. It appears that as milk consumption in North Carolina increased, so did the number of reported robberies, leading to the realization that there may indeed be a "udderly" compelling link between the two. This discovery has certainly curdled our previous perceptions on crime and dairy consumption.

It's no "moo-stery" why our findings are quite interesting, and while we may not have cracked the case wide open, it's clear that there's more to this "dairy" situation than meets the eye. This research calls for further investigation into the influence of milk on criminal behavior, and we're confident that future studies will help us "milk" even more insights from this fascinating phenomenon.

[[LITERATURE REVIEW]]
The literature on the relationship between dairy consumption and crime rates is surprisingly sparse, given the striking nature of our findings. Smith and Doe (2015) suggest that calcium levels in the brain may influence decision-making and impulse control, which could in turn impact criminal behavior. However, the "moo-tivation" behind the correlation we have uncovered remains a "moo-stery."
In "Cows: The Udder Truth," the authors argue for the psychological impact of cow sightings as a potential influence on criminal tendencies, an argument that has been met with widespread skepticism. Similarly, "The Big Cheese: A History of Cheddar" provides an in-depth exploration of the societal impact of dairy consumption, but fails to address its potential correlation with criminal activities.
Moving into the realm of fiction, "The Milkman Murders" by Joe Casey presents a fictional account of dastardly crimes associated with the delivery of dairy products, exploring the darker side of the dairy industry. In a similar vein, "The Curious Incident of the Milk at Midnight" by Mark Haddon uses a dairy-related mystery as a narrative device, albeit unrelated to criminal activities.
In our own investigative efforts, we cannot overlook the compelling cinematic representation of dairy and crime, such as "Milk Money" and "Got Milk? A Heist Tale." Although these films do not directly address the North Carolina context, they provide intriguing fictional narratives that share an unexpected connection between dairy and criminality.
As we delve deeper into this unexplored territory of dairy-robbery connections, we are mindful of the need for future studies to corroborate and expand upon our initial findings. We invite fellow researchers to "moo-tivate" their curiosity and join us in uncovering the "udderly" bewildering puzzle of dairy consumption and criminal behavior. After all, in the world of empirical inquiry, sometimes the most unexpected correlations can lead to the "creamiest" discoveries.

[[RESULTS]]
The results of our study revealed a remarkably strong positive correlation between milk consumption and the occurrence of robberies in North Carolina, with a correlation coefficient of 0.9444209 and an r-squared of 0.8919308. The p-value of less than 0.01 further accentuates the statistical significance of this surprising relationship.
Fig. 1 illustrates the robust correlation between milk consumption and reported robberies in North Carolina. The scatterplot depicts a clear and striking positive association, which could potentially inspire the creation of a new crime-fighting strategy involving dairy products.
It's clear that the path to understanding crime and dairy has led us down some truly unexpected avenues. Our findings are certainly not something to be taken lightly, but rather with a grain of salt – or rather, a splash of milk. This is just the tip of the iceberg lettuce in terms of uncovering the nuances and complexities of this "moo-ving" relationship.
Our results offer a great deal of "food for thought" and underscore the need for further investigation into the complex interplay between milk consumption and criminal activities. As we navigate the murky waters of dairy and crime, it is evident that there's more to this subject than initially meets the eye. The "dairy-science" of crime and milk consumption is indeed an area ripe for continued research, with the potential to produce a "butter" understanding of the peculiar links between these seemingly disparate variables. After all, it's always good to keep a sense of humor about these matters – because when it comes to research, the best way to approach it is with a "punny" mindset!

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

The results of our study have certainly churned up some interesting findings, shedding light on the curiously compelling connection between milk consumption and the incidence of robberies in North Carolina. Our data revealed an impressively high correlation coefficient of 0.9444209, which speaks volumes about the strength of this unexpected relationship. It seems that the stakes are high when it comes to dairy and crime, and our research has certainly given us a lot to "moo" on.

It's no "moo-stery" why previous literature has overlooked the potential connection between dairy consumption and criminal activities, given the unorthodox nature of this relationship. Our findings have certainly put the "udder" theories to the test, and we are pleased to see that they align with prior research by Smith and Doe (2015), who hinted at the influence of calcium levels on decision-making and impulse control. It appears that the "milk of human kindness" may have a darker side, influencing not only bones but also behavior.

The "cheese-grater" of truth has certainly sliced through the skepticism surrounding the dairy-robbery nexus. Our results supported the surprising contention of "Cows: The Udder Truth," emphasizing the psychological impact of cow sightings on criminal tendencies. It seems that our study has indeed "herd" the conflicting theories and brought them into a coherent narrative, showing that the influence of dairy consumption on criminal behavior may be more than just fodder for fictional narratives.

Fig. 1 emphatically illustrates the strong positive correlation between milk consumption and reported robberies in North Carolina, effectively "milking" the unexpected relationship for all it's worth. The robust statistical significance of this connection cannot be overlooked, showcasing that the influence of milk on criminal activities may be more than just a "cottage" industry.

As we continue to unravel the "dairy-science" of crime and milk consumption, it's becoming increasingly clear that there's more to this relationship than meets the eye. We invite fellow researchers to "moo-tivate" their curiosity and join us in sifting through the "curds" and "whey" of this enigmatic link. After all, when it comes to research, sometimes the most unexpected correlations can lead to the "creamiest" discoveries. Let's not cry over spilled milk – instead, let's sip it up and savor the knowledge it has to offer.


Model: gpt-3.5-turbo-1106
System prompt: You are a silly 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 Milk consumption and Robberies in North Carolina. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences. 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]]
Got Milk? The Dairy Robbery Connection: A Study in North Carolina

[[ABSTRACT]]
In this study, we investigate the curious connection between milk consumption and the incidence of robberies in North Carolina. The data sets from the USDA and FBI Criminal Justice Information Services were diligently analyzed to explore any potential relationships between these seemingly unrelated phenomena. Our research team discovered a striking correlation coefficient of 0.9444209, and with statistical significance at p < 0.01 for the time period spanning 1990 to 2021.

As we delved into the dairy-robbery nexus, we were udderly surprised by the compelling findings. It appears that as milk consumption in North Carolina increased, so did the number of reported robberies, leading to the realization that there may indeed be a "udderly" compelling link between the two. This discovery has certainly curdled our previous perceptions on crime and dairy consumption.

It's no "moo-stery" why our findings are quite interesting, and while we may not have cracked the case wide open, it's clear that there's more to this "dairy" situation than meets the eye. This research calls for further investigation into the influence of milk on criminal behavior, and we're confident that future studies will help us "milk" even more insights from this fascinating phenomenon.

[[INTRDUCTION]]
As researchers, we are constantly seeking to uncover the underlying connections between seemingly unrelated variables, to shed light on the often surprising and even "udderly" bewildering phenomena in the world. In this study, we explore the potential relationship between milk consumption and the occurrence of robberies in North Carolina. Our investigation delves into this peculiar pairing with a mix of curiosity and a dash of skepticism, because, let’s face it, the idea that milk and robberies may be connected does seem rather far-fetched. However, as we dove into the data, we quickly realized that this research was no "dairy" tale but a notable avenue for scientific inquiry.
It may sound "cheesy", but our aim is to present a study that is both informative and, dare I say, udderly amusing. The intent is to engage the reader in an intellectual discussion while providing moments of levity to "moo-ve" the research along.
Our research was spurred by the observation of a potential correlation between milk consumption and crime rates, prompting us to milk this hypothesis for all it’s worth. The statistical analysis revealed a remarkably high correlation coefficient of 0.9444209, which, for the skeptics among us, certainly raised some eyebrows. But, as they say, "don’t cry over spilled milk", for there's more to this dairy-robbery conundrum than meets the eye.
We understand that on the surface, this study may seem utterly preposterous, but allow us to "milk" your skepticism for a moment and invite you on this "dairy-robbery" sleuthing adventure. Just like a good glass of milk, this research promises to both nourish the intellect and tickle the funny bone.
Our findings have led us to re-evaluate our assumptions about the potential impact of dairy consumption on criminal behavior. What started as a "whimsical" investigation has turned into a dairy-robbery "plot" thickening before our eyes. So, dear reader, stay tuned as we delve into this udderly fascinating "crime and punishment" of dairy consumption. For this is no "moo-stery", but an investigation with truly "gouda" prospects.

[[RESULTS]]
The results of our study revealed a remarkably strong positive correlation between milk consumption and the occurrence of robberies in North Carolina, with a correlation coefficient of 0.9444209 and an r-squared of 0.8919308. The p-value of less than 0.01 further accentuates the statistical significance of this surprising relationship.
Fig. 1 illustrates the robust correlation between milk consumption and reported robberies in North Carolina. The scatterplot depicts a clear and striking positive association, which could potentially inspire the creation of a new crime-fighting strategy involving dairy products.
It's clear that the path to understanding crime and dairy has led us down some truly unexpected avenues. Our findings are certainly not something to be taken lightly, but rather with a grain of salt – or rather, a splash of milk. This is just the tip of the iceberg lettuce in terms of uncovering the nuances and complexities of this "moo-ving" relationship.
Our results offer a great deal of "food for thought" and underscore the need for further investigation into the complex interplay between milk consumption and criminal activities. As we navigate the murky waters of dairy and crime, it is evident that there's more to this subject than initially meets the eye. The "dairy-science" of crime and milk consumption is indeed an area ripe for continued research, with the potential to produce a "butter" understanding of the peculiar links between these seemingly disparate variables. After all, it's always good to keep a sense of humor about these matters – because when it comes to research, the best way to approach it is with a "punny" mindset!

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

As we conclude our investigation into the curious correlation between milk consumption and robberies in North Carolina, it's evident that our findings have certainly churned up some unexpected insights. The udderly strong positive correlation coefficient of 0.9444209 and the statistically significant p-value have left us utterly amazed. It seems that we've stumbled upon a crime-dairy connection that's nothing short of "legendairy."

It's clear that our study has stirred the pot and has led to some thought-provoking revelations. While it may seem utterly ridiculous at first glance, the data has churned out undeniable evidence of a compelling relationship between dairy consumption and criminal behavior. It's almost as if milk has become the catalyst for a whole new kind of "crime and punishment" story.

But let's not cry over spilled milk; instead, let's appreciate the sheer "moo-jesty" of the data we've uncovered and the potential implications it holds. The correlation between milk consumption and robberies is undoubtedly a "gouda" subject for further exploration. We may have started with a "whimsical" hypothesis, but the seriousness of our findings leaves no room for lactose of rigor in this "dairy-science" investigation.

It's evident that the time has come to milk this area of research for all it's worth. However, given the compelling nature of our findings, it's clear that further research into the dairy-robbery nexus is no longer "a-moo-sing." It seems that this is one mystery that has been well and truly cracked, and we can confidently say that no more research is needed in this area. After all, when it comes to the dairy-crime connection, it's safe to say that we've already creamed the competition!



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 Got Milk? The Dairy Robbery Connection: A Study in North Carolina. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Dairy Detective Studies


Model: gpt-3.5-turbo-1106
System prompt: You provide fictional names of nonprofit research organizations and associations. You say nothing else, and you do not chat with the user.
User prompt: Please provide the name of a funny but plausible sounding nonprofit, academic, or scientific association or organization that would sponsor research that resulted in a paper entited Got Milk? The Dairy Robbery Connection: A Study in North Carolina. Respond only with the name of a fictional organization.

ChatGPT:

The Institute for Agrarian Affairs and Rural Robbery Research


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 Got Milk? The Dairy Robbery Connection: A Study in North Carolina with an abstract of In this study, we investigate the curious connection between milk consumption and the incidence of robberies in North Carolina. The data sets from the USDA and FBI Criminal Justice Information Services were diligently analyzed to explore any potential relationships between these seemingly unrelated phenomena. Our research team discovered a striking correlation coefficient of 0.9444209, and with statistical significance at p < 0.01 for the time period spanning 1990 to 2021.
As we delved into the dairy-robbery nexus, we were udderly surprised by the compelling findings. It appears that as milk consumption in North Carolina increased, so did the number of reported robberies, leading to the realization that there may indeed be a "udderly" compelling link between the two. This discovery has certainly curdled our previous perceptions on crime and dairy consumption.
It's no "moo-stery" why our findings are quite interesting, and while we may not have cracked the case wide open, it's clear that there's more to this "dairy" situation than meets the eye. This research calls for further investigation into the influence of milk on criminal behavior, and we're confident that future studies will help us "milk" even more insights from this fascinating phenomenon.

ChatGPT:

milk consumption, robberies, North Carolina, USDA data, FBI Criminal Justice Information Services, correlation coefficient, dairy consumption and crime, statistical significance, dairy-robbery nexus, dairy consumption and criminal 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

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

Correlation r = 0.9444209 (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.8919308 (Coefficient of determination)
This means 89.2% of the change in the one variable (i.e., Robberies in North Carolina) 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 4.9E-16. 0.0000000000000004880837006903
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 4.9E-14% of random cases. Said differently, if you correlated 2,048,828,917,224,020 random variables You don't actually need 2 quadrillion 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.89, 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
Robberies in North Carolina (Robbery rate)152.1178186.8192.4181.2179.2163.9172.6160.8158156.5162.1146.9145.2138145.7152.1149.4155.3126.1100.697.996.394.284.687.991.996.272.973.369.256.5




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.
  5. Outlandish outliers: There are "outliers" in this data. In concept, "outlier" just means "way different than the rest of your dataset." When calculating a correlation like this, they are particularly impactful because a single outlier can substantially increase your correlation.

    For the purposes of this project, I counted a point as an outlier if it the residual was two standard deviations from the mean.

    (This bullet point only shows up in the details page on charts that do, in fact, have outliers.)
    They stand out on the scatterplot above: notice the dots that are far away from any other dots. I intentionally mishandeled outliers, which makes the correlation look extra strong.




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([152.1,178,186.8,192.4,181.2,179.2,163.9,172.6,160.8,158,156.5,162.1,146.9,145.2,138,145.7,152.1,149.4,155.3,126.1,100.6,97.9,96.3,94.2,84.6,87.9,91.9,96.2,72.9,73.3,69.2,56.5,])
array_1_name = "Milk consumption"
array_2_name = "Robberies in North Carolina"

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

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



Reuseable content

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

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

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

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

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

Download images for these variables:


View another random correlation

How fun was this correlation?

I'm grateful for your review!


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

CC BY 4.0