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

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is Air quality in San Jose, California and the second variable is Hotdogs consumed by Nathan's Hot Dog Eating Competition Champion.  The chart goes from 1980 to 2022, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

The improved air quality in San Jose led to an increase in the happiness of the local cows. These happier cows produced better quality beef, which somehow made its way to the Nathan's Hot Dog Eating Competition. As a result, the champion found the hotdogs even more irresistible, ultimately leading to an increase in the number of hotdogs consumed. Who knew clean air in California could beef up the competition in such a strange and wien-derful way!

Model: dalle-3
Prompt: An image that looks like it is a scene from A Disney Movie, with the following depiction: In a vibrant and idyllic field in San Jose, cheerful cows with animated smiles graze peacefully under an endless, clear blue sky. The air is fresh and invigorating, and the entire scene exudes tranquility and joy. Meanwhile, at the bustling Nathan's Hot Dog Eating Competition, the reigning champion is seen delightfully devouring hotdogs made from the finest, juiciest beef, with a steadily growing pile of colorful hotdog wrappers accumulating next to him. 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: Air quality in San Jose, California and Hotdogs consumed by Nathan's Hot Dog Eating Competition Champion. 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: Voxel art Cutsy art illustration An image that looks like it is a scene from A Disney Movie Psychedelic Low poly
ChatGPT: An image that looks like it is a scene from A Disney Movie

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 Air quality in San Jose, California and Hotdogs consumed by Nathan's Hot Dog Eating Competition Champion, in the following situation: The improved air quality in San Jose led to an increase in the happiness of the local cows. These happier cows produced better quality beef, which somehow made its way to the Nathan's Hot Dog Eating Competition. As a result, the champion found the hotdogs even more irresistible, ultimately leading to an increase in the number of hotdogs consumed. Who knew clean air in California could beef up the competition in such a strange and wien-derful way!. Keep the description simple.
ChatGPT: A field in San Jose with smiling cows grazing under clear blue skies, surrounded by fresh air. Meanwhile, at the Nathan's Hot Dog Eating Competition, the champion is delightedly devouring hotdogs made from the finest, juiciest beef, with an increasing number of hotdog wrappers piling up next to him.

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: [ An image that looks like it is a scene from A Disney Movie ] and depicting this scene: A field in San Jose with smiling cows grazing under clear blue skies, surrounded by fresh air. Meanwhile, at the Nathan's Hot Dog Eating Competition, the champion is delightedly devouring hotdogs made from the finest, juiciest beef, with an increasing number of hotdog wrappers piling up next to him. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: An image that looks like it is a scene from A Disney Movie, with the following depiction: In a vibrant and idyllic field in San Jose, cheerful cows with animated smiles graze peacefully under an endless, clear blue sky. The air is fresh and invigorating, and the entire scene exudes tranquility and joy. Meanwhile, at the bustling Nathan's Hot Dog Eating Competition, the reigning champion is seen delightfully devouring hotdogs made from the finest, juiciest beef, with a steadily growing pile of colorful hotdog wrappers accumulating next to him.

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

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

Model: gpt-3.5-turbo-1106 (fine-tuned)
System prompt: You provide humorous responses in the form of plausible sounding explanations for correlations. You assume the correlation is causative for the purpose of the explanation even if it is ridiculous. You do not chat with the user, you only reply with the causal connection explanation and nothing else.
User prompt: Please make up a funny explanation for how an increase in Air quality in San Jose, California caused Hotdogs consumed by Nathan's Hot Dog Eating Competition Champion to increase.

AI academic paper

(Because p < 0.01)
Grillin' the Air: A Link Between Air Quality in San Jose and Nathan's Hot Dog Eating Championship

Journal of Culinary Air Quality and Environmental Health

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 Air quality in San Jose, California and Hotdogs consumed by Nathan's Hot Dog Eating Competition Champion. Make lots of jokes, goofy observations, and puns.

Include a pun in the title.

Your research team used data from Environmental Protection Agency and Wikipedia to assess this nagging question. You found a correlation coefficient of 0.8103010 and p < 0.01 for 1980 to 2022.

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]]
Grillin' the Air: A Link Between Air Quality in San Jose and Nathan's Hot Dog Eating Championship

[[ABSTRACT]]
As the age-old adage goes, "you are what you eat," but what if what you eat is influenced by the air you breathe? In this groundbreaking study, our research team delves into the unexpected connection between air quality in San Jose, California, and hotdogs consumed by the reigning champions of Nathan's Famous Hot Dog Eating Contest. Leveraging data from the Environmental Protection Agency and the annals of Wikipedia, we sought to answer the burning question: does the quality of the air in San Jose have any influence on the consumption of hotdogs by the illustrious champion of competitive hot dog eating? A correlation coefficient of 0.8103010 and p < 0.01 for the years 1980 to 2022 provides compelling evidence of a significant relationship between these seemingly disparate variables. Our study sheds new light on the interplay between environmental factors and competitive eating prowess, leaving no beef unturned in the pursuit of knowledge. With this study, we demonstrate that sometimes the air you breathe can ultimately determine the number of hotdogs you can wolf down.


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 Air quality in San Jose, California and Hotdogs consumed by Nathan's Hot Dog Eating Competition Champion. Make lots of jokes, goofy observations, and puns.

Here is the title and abstract of the paper:
[[TITLE]]
Grillin' the Air: A Link Between Air Quality in San Jose and Nathan's Hot Dog Eating Championship

[[ABSTRACT]]
As the age-old adage goes, "you are what you eat," but what if what you eat is influenced by the air you breathe? In this groundbreaking study, our research team delves into the unexpected connection between air quality in San Jose, California, and hotdogs consumed by the reigning champions of Nathan's Famous Hot Dog Eating Contest. Leveraging data from the Environmental Protection Agency and the annals of Wikipedia, we sought to answer the burning question: does the quality of the air in San Jose have any influence on the consumption of hotdogs by the illustrious champion of competitive hot dog eating? A correlation coefficient of 0.8103010 and p < 0.01 for the years 1980 to 2022 provides compelling evidence of a significant relationship between these seemingly disparate variables. Our study sheds new light on the interplay between environmental factors and competitive eating prowess, leaving no beef unturned in the pursuit of knowledge. With this study, we demonstrate that sometimes the air you breathe can ultimately determine the number of hotdogs you can wolf down.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
**[[INTRODUCTION]]**

When it comes to devouring hotdogs at an alarming rate, there are few events as revered as the Nathan's Famous Hot Dog Eating Contest. Each year, the world's best speed-eaters gather in Coney Island to push their digestive system to the absolute limit, all in the quest for mustard-stained glory. It's a spectacle that leaves onlookers in awe and waistbands feeling tighter.

But what if we told you that the champion's ability to scarf down these cylindrical delights isn't just a result of pure stomach capacity and unyielding determination? What if the very air they breathe plays a crucial role in their hotdog-hoovering capabilities? That's right, folks - we're here to breakdown the link between the air quality in San Jose, California and the astonishing appetites of competitive hotdog-eating champions.

In this paper, we dive headfirst into the murky waters of competitive eating, conducting a study that raises eyebrows, along with the occasional hotdog. We set out to unravel the increasingly tantalizing question: Could the purity of San Jose's air be the secret sauce behind the jaw-dropping hotdog consumption of Nathan's Hot Dog Eating Contest champions? It's a question that has been whispered at barbecue gatherings and debated in university dining halls. And, as daring scholars, we simply couldn't resist sinking our teeth into this saucy mystery.


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 Air quality in San Jose, California and Hotdogs consumed by Nathan's Hot Dog Eating Competition Champion. 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 devolve ever further, and mention something completely ridiculous, like you conducted literature review by reading CVS receipts.

Here is the title and abstract of the paper:
[[TITLE]]
Grillin' the Air: A Link Between Air Quality in San Jose and Nathan's Hot Dog Eating Championship

[[ABSTRACT]]
As the age-old adage goes, "you are what you eat," but what if what you eat is influenced by the air you breathe? In this groundbreaking study, our research team delves into the unexpected connection between air quality in San Jose, California, and hotdogs consumed by the reigning champions of Nathan's Famous Hot Dog Eating Contest. Leveraging data from the Environmental Protection Agency and the annals of Wikipedia, we sought to answer the burning question: does the quality of the air in San Jose have any influence on the consumption of hotdogs by the illustrious champion of competitive hot dog eating? A correlation coefficient of 0.8103010 and p < 0.01 for the years 1980 to 2022 provides compelling evidence of a significant relationship between these seemingly disparate variables. Our study sheds new light on the interplay between environmental factors and competitive eating prowess, leaving no beef unturned in the pursuit of knowledge. With this study, we demonstrate that sometimes the air you breathe can ultimately determine the number of hotdogs you can wolf down.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
When it comes to devouring hotdogs at an alarming rate, there are few events as revered as the Nathan's Famous Hot Dog Eating Contest. Each year, the world's best speed-eaters gather in Coney Island to push their digestive system to the absolute limit, all in the quest for mustard-stained glory. It's a spectacle that leaves onlookers in awe and waistbands feeling tighter.
But what if we told you that the champion's ability to scarf down these cylindrical delights isn't just a result of pure stomach capacity and unyielding determination? What if the very air they breathe plays a crucial role in their hotdog-hoovering capabilities? That's right, folks - we're here to breakdown the link between the air quality in San Jose, California and the astonishing appetites of competitive hotdog-eating champions.
In this paper, we dive headfirst into the murky waters of competitive eating, conducting a study that raises eyebrows, along with the occasional hotdog. We set out to unravel the increasingly tantalizing question: Could the purity of San Jose's air be the secret sauce behind the jaw-dropping hotdog consumption of Nathan's Hot Dog Eating Contest champions? It's a question that has been whispered at barbecue gatherings and debated in university dining halls. And, as daring scholars, we simply couldn't resist sinking our teeth into this saucy mystery.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

The relationship between air quality and human health has been extensively studied by scholars and researchers alike. Smith, in their seminal work "Air Quality and Respiratory Health," delves into the impact of air pollution on respiratory diseases, highlighting the grave consequences of poor air quality on the well-being of individuals. Similarly, Doe investigates the correlation between air pollutants and cardiovascular health in "The Cardiovascular Effects of Air Pollution," emphasizing the far-reaching implications of ambient air pollution on heart health.

Moving closer to our subject of interest, researchers have also made strides in understanding the effects of environmental factors on dietary patterns. Jones, in "Environmental Influences on Food Choices," uncovers the various ways in which the environment can shape an individual's food preferences and consumption habits. This comprehensive review highlights the complex interplay between environmental stimuli and dietary decisions, shedding light on the potential links between external factors and food intake.

Transitioning to a more culturally relevant perspective, the literature on competitive eating and its impact on the human body is as rich as a chocolate lava cake. "Guts: The Science of Physical and Mental Toughness" by Fatale and "The Joy of Gluttony" by Gobble offer captivating insights into the world of competitive eating, exploring the physical and psychological feats of devouring copious amounts of food in record time. These engaging narratives serve as a testament to the enduring fascination with extraordinary eating prowess and its mystifying allure.

In a more whimsical exploration of the topic, "The Hot Dog Detective" series by Frank Furter presents a fictional account of a detective whose investigative prowess is matched only by his insatiable appetite for hotdogs. While certainly a departure from academic rigor, these imaginative tales underscore the enduring cultural fascination with the humble hotdog and its potential influence on the world of crime-solving.

Venturing even further into uncharted territories, the researchers bravely ventured forth to uncover sources of unconventional wisdom. Wading through the veritable sea of CVS receipts and the cryptic messages they convey, a tantalizing nugget of insight was discovered—anecdotal evidence hinting at a potential correlation between the length of shopping lists and hotdog consumption. While not a traditional source of academic authority, the humble CVS receipt reminds us that knowledge, no matter how unconventional its origins, can sometimes offer unexpected revelations.

In this literature review, we have traversed the scholarly landscape, traversing domains both serious and whimsical, to shed light on the curious connections between air quality in San Jose, California and the champions of Nathan's Hot Dog Eating Contest. This eclectic journey of academic inquiry has served to lay the groundwork for our own investigation, offering a lighthearted yet informative backdrop to the riddle of air, hotdogs, and the voracious appetites of competitive eating champions.


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 Air quality in San Jose, California and Hotdogs consumed by Nathan's Hot Dog Eating Competition Champion. Make lots of jokes, goofy observations, and puns.

Your research team collected data from all across the internet, but mostly just used information from Environmental Protection Agency and Wikipedia . You used data from 1980 to 2022

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]]
Grillin' the Air: A Link Between Air Quality in San Jose and Nathan's Hot Dog Eating Championship

[[ABSTRACT]]
As the age-old adage goes, "you are what you eat," but what if what you eat is influenced by the air you breathe? In this groundbreaking study, our research team delves into the unexpected connection between air quality in San Jose, California, and hotdogs consumed by the reigning champions of Nathan's Famous Hot Dog Eating Contest. Leveraging data from the Environmental Protection Agency and the annals of Wikipedia, we sought to answer the burning question: does the quality of the air in San Jose have any influence on the consumption of hotdogs by the illustrious champion of competitive hot dog eating? A correlation coefficient of 0.8103010 and p < 0.01 for the years 1980 to 2022 provides compelling evidence of a significant relationship between these seemingly disparate variables. Our study sheds new light on the interplay between environmental factors and competitive eating prowess, leaving no beef unturned in the pursuit of knowledge. With this study, we demonstrate that sometimes the air you breathe can ultimately determine the number of hotdogs you can wolf down.

[[INTRODUCTION]]
When it comes to devouring hotdogs at an alarming rate, there are few events as revered as the Nathan's Famous Hot Dog Eating Contest. Each year, the world's best speed-eaters gather in Coney Island to push their digestive system to the absolute limit, all in the quest for mustard-stained glory. It's a spectacle that leaves onlookers in awe and waistbands feeling tighter.
But what if we told you that the champion's ability to scarf down these cylindrical delights isn't just a result of pure stomach capacity and unyielding determination? What if the very air they breathe plays a crucial role in their hotdog-hoovering capabilities? That's right, folks - we're here to breakdown the link between the air quality in San Jose, California and the astonishing appetites of competitive hotdog-eating champions.
In this paper, we dive headfirst into the murky waters of competitive eating, conducting a study that raises eyebrows, along with the occasional hotdog. We set out to unravel the increasingly tantalizing question: Could the purity of San Jose's air be the secret sauce behind the jaw-dropping hotdog consumption of Nathan's Hot Dog Eating Contest champions? It's a question that has been whispered at barbecue gatherings and debated in university dining halls. And, as daring scholars, we simply couldn't resist sinking our teeth into this saucy mystery.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To unearth the tantalizing link between air quality in San Jose, California, and the consumption of hotdogs by the luminary champions of Nathan's Famous Hot Dog Eating Contest, our research team embarked on a wild methodological journey. We employed a multi-faceted approach that involved equal parts data crunching and hotdog munching, all in the name of scientific inquiry. So, grab your condiments and hold onto your lab coats as we peel back the layers of our captivating methodology.

Data Collection:
We scoured the digital expanse like intrepid hotdog hunters, mining information from a variety of sources, including the Environmental Protection Agency (EPA) and the hallowed archives of Wikipedia. Our data spanned from the groovy '80s to the present day, capturing almost four decades of air quality trends and bun-to-mouth action. We must humbly admit that our determination to uncover the truth was only rivaled by our cravings for a perfectly grilled frankfurter.

Air Quality Index (AQI) and Hotdog Consumption Correlation:
Armed with a concoction of statistical wizardry and good old-fashioned gumption, we pored over the Air Quality Index (AQI) values for San Jose, meticulously categorizing them into air quality levels ranging from "Good" to "Hazardous." Simultaneously, we meticulously tallied the hotdog consumption statistics of Nathan's Hot Dog Eating Contest champions, carefully converting these figures into hotdog equivalents. This allowed us to analyze the tantalizing correlation between the AQI and the champions' hotdog ingestion, utilizing a slew of mathematical tools that would make Pythagoras himself proud.

Advanced Hotdog-Scented Atmospheric Modeling:
Ah, the pièce de résistance of our methodological marvel! To capture the nuanced olfactory landscape of San Jose's air, we crafted a cutting-edge hotdog-scented atmospheric model. This sophisticated apparatus simulated the dispersion and concentration of savory odors, essentially allowing us to observe the ebb and flow of hotdog aromas mingling with the ambient air. This phase of our research had us gazing wistfully into the horizon, pondering the uncanny dance of molecular scents and pondering the very essence of frankfurter fragrances.

Validation and Peer Review:
Finally, as any diligent researchers would, we submitted our findings to the rigorous scrutiny of the scientific community, daring our peers to chew the fat on our unconventional methodology. Unabashedly, we welcomed the scrutiny, knowing that our study, much like the humble hotdog, would stand strong amid the mustard-laden scrutiny of our esteemed colleagues.

In this way, our methodology wove together the whimsy of hotdog folklore with the precision of scholarly inquiry, resulting in a study that's both sizzling and scientifically sound. So, dear readers, prepare to sink your teeth into the delectable findings that our unorthodox methodology has lovingly stewed up.


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 Air quality in San Jose, California and Hotdogs consumed by Nathan's Hot Dog Eating Competition Champion. Make lots of jokes, goofy observations, and puns.

Your research team collected data from all across the internet, but mostly just used information from Environmental Protection Agency and Wikipedia .

For the time period 1980 to 2022, you found a correlation 0.8103010, r-squared of 0.6565877, 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]]
Grillin' the Air: A Link Between Air Quality in San Jose and Nathan's Hot Dog Eating Championship

[[ABSTRACT]]
As the age-old adage goes, "you are what you eat," but what if what you eat is influenced by the air you breathe? In this groundbreaking study, our research team delves into the unexpected connection between air quality in San Jose, California, and hotdogs consumed by the reigning champions of Nathan's Famous Hot Dog Eating Contest. Leveraging data from the Environmental Protection Agency and the annals of Wikipedia, we sought to answer the burning question: does the quality of the air in San Jose have any influence on the consumption of hotdogs by the illustrious champion of competitive hot dog eating? A correlation coefficient of 0.8103010 and p < 0.01 for the years 1980 to 2022 provides compelling evidence of a significant relationship between these seemingly disparate variables. Our study sheds new light on the interplay between environmental factors and competitive eating prowess, leaving no beef unturned in the pursuit of knowledge. With this study, we demonstrate that sometimes the air you breathe can ultimately determine the number of hotdogs you can wolf down.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
When it comes to devouring hotdogs at an alarming rate, there are few events as revered as the Nathan's Famous Hot Dog Eating Contest. Each year, the world's best speed-eaters gather in Coney Island to push their digestive system to the absolute limit, all in the quest for mustard-stained glory. It's a spectacle that leaves onlookers in awe and waistbands feeling tighter.
But what if we told you that the champion's ability to scarf down these cylindrical delights isn't just a result of pure stomach capacity and unyielding determination? What if the very air they breathe plays a crucial role in their hotdog-hoovering capabilities? That's right, folks - we're here to breakdown the link between the air quality in San Jose, California and the astonishing appetites of competitive hotdog-eating champions.
In this paper, we dive headfirst into the murky waters of competitive eating, conducting a study that raises eyebrows, along with the occasional hotdog. We set out to unravel the increasingly tantalizing question: Could the purity of San Jose's air be the secret sauce behind the jaw-dropping hotdog consumption of Nathan's Hot Dog Eating Contest champions? It's a question that has been whispered at barbecue gatherings and debated in university dining halls. And, as daring scholars, we simply couldn't resist sinking our teeth into this saucy mystery.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

Our analysis revealed a striking correlation coefficient of 0.8103010 between air quality in San Jose, California, and the number of hotdogs devoured by the reigning champion of Nathan's Famous Hot Dog Eating Contest. With an r-squared value of 0.6565877 and a p-value of less than 0.01, the results of our study provide robust evidence of a substantial relationship between these two seemingly unrelated variables.

In an unexpected turn of events, it appears that as air quality in San Jose improves, so does the hotdog consumption of the competition champion. It seems the champion's success is not just a matter of stomach capacity and jaw strength but might also be influenced by the purity of the air they inhale. Who would have thought that the phrase "a breath of fresh air" would take on a whole new meaning in the context of competitive eating?

To illustrate this surprising connection, we present Fig. 1, a scatterplot demonstrating the strong correlation between air quality in San Jose and the number of hotdogs consumed by the Nathan's Hot Dog Eating Contest champion. The data points form a clear upward trend, indicating that as air quality improves, the champion's hotdog consumption increases, debunking the common belief that the only thing air and hotdogs have in common is being inhaled at one’s own risk.

This unconventional finding challenges traditional notions of competitive eating and suggests that environmental factors may play a crucial role in shaping the eating habits of champions. While we anticipated uncovering some interesting relationships, the magnitude and significance of this correlation have left us with a relish for further investigation in this uncharted territory of food science.


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 Air quality in San Jose, California and Hotdogs consumed by Nathan's Hot Dog Eating Competition Champion. Make lots of jokes, goofy observations, and puns.

Limit your response to 500 tokens.

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

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

[[TITLE]]
Grillin' the Air: A Link Between Air Quality in San Jose and Nathan's Hot Dog Eating Championship

[[ABSTRACT]]
As the age-old adage goes, "you are what you eat," but what if what you eat is influenced by the air you breathe? In this groundbreaking study, our research team delves into the unexpected connection between air quality in San Jose, California, and hotdogs consumed by the reigning champions of Nathan's Famous Hot Dog Eating Contest. Leveraging data from the Environmental Protection Agency and the annals of Wikipedia, we sought to answer the burning question: does the quality of the air in San Jose have any influence on the consumption of hotdogs by the illustrious champion of competitive hot dog eating? A correlation coefficient of 0.8103010 and p < 0.01 for the years 1980 to 2022 provides compelling evidence of a significant relationship between these seemingly disparate variables. Our study sheds new light on the interplay between environmental factors and competitive eating prowess, leaving no beef unturned in the pursuit of knowledge. With this study, we demonstrate that sometimes the air you breathe can ultimately determine the number of hotdogs you can wolf down.

[[LITERATURE REVIEW]]
The relationship between air quality and human health has been extensively studied by scholars and researchers alike. Smith, in their seminal work "Air Quality and Respiratory Health," delves into the impact of air pollution on respiratory diseases, highlighting the grave consequences of poor air quality on the well-being of individuals. Similarly, Doe investigates the correlation between air pollutants and cardiovascular health in "The Cardiovascular Effects of Air Pollution," emphasizing the far-reaching implications of ambient air pollution on heart health.
Moving closer to our subject of interest, researchers have also made strides in understanding the effects of environmental factors on dietary patterns. Jones, in "Environmental Influences on Food Choices," uncovers the various ways in which the environment can shape an individual's food preferences and consumption habits. This comprehensive review highlights the complex interplay between environmental stimuli and dietary decisions, shedding light on the potential links between external factors and food intake.
Transitioning to a more culturally relevant perspective, the literature on competitive eating and its impact on the human body is as rich as a chocolate lava cake. "Guts: The Science of Physical and Mental Toughness" by Fatale and "The Joy of Gluttony" by Gobble offer captivating insights into the world of competitive eating, exploring the physical and psychological feats of devouring copious amounts of food in record time. These engaging narratives serve as a testament to the enduring fascination with extraordinary eating prowess and its mystifying allure.
In a more whimsical exploration of the topic, "The Hot Dog Detective" series by Frank Furter presents a fictional account of a detective whose investigative prowess is matched only by his insatiable appetite for hotdogs. While certainly a departure from academic rigor, these imaginative tales underscore the enduring cultural fascination with the humble hotdog and its potential influence on the world of crime-solving.
Venturing even further into uncharted territories, the researchers bravely ventured forth to uncover sources of unconventional wisdom. Wading through the veritable sea of CVS receipts and the cryptic messages they convey, a tantalizing nugget of insight was discovered—anecdotal evidence hinting at a potential correlation between the length of shopping lists and hotdog consumption. While not a traditional source of academic authority, the humble CVS receipt reminds us that knowledge, no matter how unconventional its origins, can sometimes offer unexpected revelations.
In this literature review, we have traversed the scholarly landscape, traversing domains both serious and whimsical, to shed light on the curious connections between air quality in San Jose, California and the champions of Nathan's Hot Dog Eating Contest. This eclectic journey of academic inquiry has served to lay the groundwork for our own investigation, offering a lighthearted yet informative backdrop to the riddle of air, hotdogs, and the voracious appetites of competitive eating champions.

[[RESULTS]]
Our analysis revealed a striking correlation coefficient of 0.8103010 between air quality in San Jose, California, and the number of hotdogs devoured by the reigning champion of Nathan's Famous Hot Dog Eating Contest. With an r-squared value of 0.6565877 and a p-value of less than 0.01, the results of our study provide robust evidence of a substantial relationship between these two seemingly unrelated variables.
In an unexpected turn of events, it appears that as air quality in San Jose improves, so does the hotdog consumption of the competition champion. It seems the champion's success is not just a matter of stomach capacity and jaw strength but might also be influenced by the purity of the air they inhale. Who would have thought that the phrase "a breath of fresh air" would take on a whole new meaning in the context of competitive eating?
To illustrate this surprising connection, we present Fig. 1, a scatterplot demonstrating the strong correlation between air quality in San Jose and the number of hotdogs consumed by the Nathan's Hot Dog Eating Contest champion. The data points form a clear upward trend, indicating that as air quality improves, the champion's hotdog consumption increases, debunking the common belief that the only thing air and hotdogs have in common is being inhaled at one’s own risk.
This unconventional finding challenges traditional notions of competitive eating and suggests that environmental factors may play a crucial role in shaping the eating habits of champions. While we anticipated uncovering some interesting relationships, the magnitude and significance of this correlation have left us with a relish for further investigation in this uncharted territory of food science.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

Our study has brought to light a concerning conclusion: the Champion of the Nathan's Famous Hot Dog Eating Contest is not just a glutton for hotdogs, but also a glutton for fresh air - at least in San Jose, California. Our findings not only contribute to the burgeoning field of gastronomical aerobiology but also serve as a testament to the multifaceted nature of competitive eating.

The robust correlation we found between air quality in San Jose and the hotdog consumption of the champion defies traditional explanations and offers a unique perspective on the interplay between environmental factors and the art of gluttony. It seems that the champion may not only be honing their stomach-stretching techniques but also inhaling those pristine San Jose breezes to fuel their astonishing hotdog-devouring feats.

The surprising nature of our results prompts us to revisit the literature review, particularly the whimsical exploration of the potential correlation between the length of shopping lists and hotdog consumption. It seems our findings lend credence to the unconventional wisdom gleaned from CVS receipts, as we can now speculate that perhaps an increase in the length of a shopping list may subtly mirror the champion's heightened intake of hotdogs when exposed to better air quality. Perhaps the champion's shopping list includes only one item – hotdogs.

In a more serious vein, our results echo the inquiries of previous researchers who explored the impact of environmental factors on dietary patterns. Just as Jones uncovered the ways in which the environment can shape food preferences and consumption, our study unveils the unexpected influence of air quality on the consumptive habits of a professional eater. It appears that the air quality in San Jose may not only affect respiratory health but also act as a silent collaborator in the reign of the hotdog-eating champion.

The significance of our correlation coefficient not only calls for further research into the mechanisms underlying this curious relationship but also invites a tongue-in-cheek reevaluation of the phrase "a breath of fresh air." The champion's sustained success may not only be a testament to their physical prowess but also a testament to the quality of the air they inhale. Perhaps it's time we rethink the role of air purity in competitive eating rankings - after all, "air quality" may just join the list of essential judging criteria alongside speed, capacity, and, of course, mustard usage.

While we look forward to delving deeper into this uncharted territory of food science, our findings serve as a reminder that in the ever-expanding landscape of research, one should always be prepared for a dash of surprise alongside those hefty helpings of data. As we continue our gastronomical aerobiological odyssey, we are reminded that in the realm of academia, as in the world of competitive eating, the unexpected can always turn out to be the main course.


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 Air quality in San Jose, California and Hotdogs consumed by Nathan's Hot Dog Eating Competition Champion. Make lots of jokes, goofy observations, and puns.

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

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
Grillin' the Air: A Link Between Air Quality in San Jose and Nathan's Hot Dog Eating Championship

[[ABSTRACT]]
As the age-old adage goes, "you are what you eat," but what if what you eat is influenced by the air you breathe? In this groundbreaking study, our research team delves into the unexpected connection between air quality in San Jose, California, and hotdogs consumed by the reigning champions of Nathan's Famous Hot Dog Eating Contest. Leveraging data from the Environmental Protection Agency and the annals of Wikipedia, we sought to answer the burning question: does the quality of the air in San Jose have any influence on the consumption of hotdogs by the illustrious champion of competitive hot dog eating? A correlation coefficient of 0.8103010 and p < 0.01 for the years 1980 to 2022 provides compelling evidence of a significant relationship between these seemingly disparate variables. Our study sheds new light on the interplay between environmental factors and competitive eating prowess, leaving no beef unturned in the pursuit of knowledge. With this study, we demonstrate that sometimes the air you breathe can ultimately determine the number of hotdogs you can wolf down.

[[INTRDUCTION]]
When it comes to devouring hotdogs at an alarming rate, there are few events as revered as the Nathan's Famous Hot Dog Eating Contest. Each year, the world's best speed-eaters gather in Coney Island to push their digestive system to the absolute limit, all in the quest for mustard-stained glory. It's a spectacle that leaves onlookers in awe and waistbands feeling tighter.
But what if we told you that the champion's ability to scarf down these cylindrical delights isn't just a result of pure stomach capacity and unyielding determination? What if the very air they breathe plays a crucial role in their hotdog-hoovering capabilities? That's right, folks - we're here to breakdown the link between the air quality in San Jose, California and the astonishing appetites of competitive hotdog-eating champions.
In this paper, we dive headfirst into the murky waters of competitive eating, conducting a study that raises eyebrows, along with the occasional hotdog. We set out to unravel the increasingly tantalizing question: Could the purity of San Jose's air be the secret sauce behind the jaw-dropping hotdog consumption of Nathan's Hot Dog Eating Contest champions? It's a question that has been whispered at barbecue gatherings and debated in university dining halls. And, as daring scholars, we simply couldn't resist sinking our teeth into this saucy mystery.

[[RESULTS]]
Our analysis revealed a striking correlation coefficient of 0.8103010 between air quality in San Jose, California, and the number of hotdogs devoured by the reigning champion of Nathan's Famous Hot Dog Eating Contest. With an r-squared value of 0.6565877 and a p-value of less than 0.01, the results of our study provide robust evidence of a substantial relationship between these two seemingly unrelated variables.
In an unexpected turn of events, it appears that as air quality in San Jose improves, so does the hotdog consumption of the competition champion. It seems the champion's success is not just a matter of stomach capacity and jaw strength but might also be influenced by the purity of the air they inhale. Who would have thought that the phrase "a breath of fresh air" would take on a whole new meaning in the context of competitive eating?
To illustrate this surprising connection, we present Fig. 1, a scatterplot demonstrating the strong correlation between air quality in San Jose and the number of hotdogs consumed by the Nathan's Hot Dog Eating Contest champion. The data points form a clear upward trend, indicating that as air quality improves, the champion's hotdog consumption increases, debunking the common belief that the only thing air and hotdogs have in common is being inhaled at one’s own risk.
This unconventional finding challenges traditional notions of competitive eating and suggests that environmental factors may play a crucial role in shaping the eating habits of champions. While we anticipated uncovering some interesting relationships, the magnitude and significance of this correlation have left us with a relish for further investigation in this uncharted territory of food science.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our study reveals a tantalizing link between the air quality in San Jose, California, and the astounding hotdog consumption of the Nathan's Hot Dog Eating Contest champion. It seems that the champion's ability to devour hotdogs is not just a feat of gastrointestinal fortitude but also a product of the fresh, quality air they breathe—truly a case of "buns of steel, lungs of fresh air"! Who would have thought that the champion's secret weapon wasn't a high-speed metabolism but rather the clean, crisp air of San Jose?

This unexpected correlation leaves us with food for thought and a hankering for more research in this area. Perhaps future studies could explore the impact of different air pollutants on hotdog consumption—could nitrogen dioxide give them a "nitro boost," or would carbon monoxide lead to a "charred" performance? We encourage researchers to grab the ketchup and mustard and dive further into this juicy research territory.

While some may argue that this connection is mere hot air, our statistical analysis leaves no room for doubt. The results point to an unmissible synergy between air quality and hotdog intake, proving that the competition's champions are not just gluttons for punishment but also for oxygen-rich air. This discovery adds a whole new layer of complexity to the age-old adage "you are what you eat," showing that perhaps you are also what you breathe.

In light of these findings, it is clear that discussions on competitive eating cannot just be restricted to the stomach and the jaw. Air quality and environmental factors must also be factored in, transcending the culinary arena and into the realm of atmospheric influence. It is high time we stop dismissing air quality as purely for the birds and start recognizing its impact on the human capacity for hotdog consumption.

Therefore, it is with great relish that we assert no further research is needed in this area...until the next time we feel the urge to unwrap this curious conundrum.


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 Grillin' the Air: A Link Between Air Quality in San Jose and Nathan's Hot Dog Eating Championship. Respond only with the name of a fictional academic journal.

ChatGPT:

Journal of Culinary Air Quality and Environmental Health


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 Grillin' the Air: A Link Between Air Quality in San Jose and Nathan's Hot Dog Eating Championship. Respond only with the name of a fictional organization.

ChatGPT:

The Center for Airborne Culinary Research and Enthusiast Society


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 Grillin' the Air: A Link Between Air Quality in San Jose and Nathan's Hot Dog Eating Championship with an abstract of As the age-old adage goes, "you are what you eat," but what if what you eat is influenced by the air you breathe? In this groundbreaking study, our research team delves into the unexpected connection between air quality in San Jose, California, and hotdogs consumed by the reigning champions of Nathan's Famous Hot Dog Eating Contest. Leveraging data from the Environmental Protection Agency and the annals of Wikipedia, we sought to answer the burning question: does the quality of the air in San Jose have any influence on the consumption of hotdogs by the illustrious champion of competitive hot dog eating? A correlation coefficient of 0.8103010 and p < 0.01 for the years 1980 to 2022 provides compelling evidence of a significant relationship between these seemingly disparate variables. Our study sheds new light on the interplay between environmental factors and competitive eating prowess, leaving no beef unturned in the pursuit of knowledge. With this study, we demonstrate that sometimes the air you breathe can ultimately determine the number of hotdogs you can wolf down.

ChatGPT:

"air quality San Jose", "Nathan's Hot Dog Eating Championship", "competitive eating", "correlation between air quality and food consumption", "environmental factors in eating contests", "EPA air quality data", "San Jose pollution levels", "hot dog consumption study", "link between air quality and competitive eating", "relationship between air quality and eating prowess"

*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

Air quality in San Jose, California
Detailed data title: Percentage of days with good or moderate air quality in San Jose-Sunnyvale-Santa Clara, CA
Source: Environmental Protection Agency
See what else correlates with Air quality in San Jose, California

Hotdogs consumed by Nathan's Hot Dog Eating Competition Champion
Detailed data title: Hotdog Consumption by Nathan's Hot Dog Eating Competition Champion
Source: Wikipedia
See what else correlates with Hotdogs consumed by Nathan's Hot Dog Eating Competition Champion

Correlation r = 0.8103010 (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.6565877 (Coefficient of determination)
This means 65.7% of the change in the one variable (i.e., Hotdogs consumed by Nathan's Hot Dog Eating Competition Champion) is predictable based on the change in the other (i.e., Air quality in San Jose, California) over the 43 years from 1980 through 2022.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 4.61E-11. 0.0000000000460618787856435500
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.81 in 4.61E-9% of random cases. Said differently, if you correlated 21,709,926,437 random variables You don't actually need 21 billion variables to find a correlation like this one. I don't have that many variables in my database. You can also correlate variables that are not independent. I do this a lot.

p-value calculations are useful for understanding the probability of a result happening by chance. They are most useful when used to highlight the risk of a fluke outcome. For example, if you calculate a p-value of 0.30, the risk that the result is a fluke is high. It is good to know that! But there are lots of ways to get a p-value of less than 0.01, as evidenced by this project.

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

Just to be clear: I'm being completely transparent about the calculations. There is no math trickery. This is just how statistics shakes out when you calculate hundreds of millions of random correlations.
with the same 42 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 42 because we have two variables measured over a period of 43 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.67, 0.89 ] 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.
1980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022
Air quality in San Jose, California (Good air quality)84.699587.397387.945287.397384.426283.835689.58976.438483.879882.739786.849385.753489.617589.315192.054890.13785.245994.794590.41186.849386.338889.315186.027490.41191.530193.424790.958992.602790.163996.164496.438498.082296.721396.712397.534298.082298.360796.712395.068598.904193.989198.082298.6301
Hotdogs consumed by Nathan's Hot Dog Eating Competition Champion (Hotdogs eaten)9.5111110.59.511.7515.513.51015.51621.519172019.522.2524.51920.25255050.544.553.334953.7566596854626869616270727471757663




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([84.6995,87.3973,87.9452,87.3973,84.4262,83.8356,89.589,76.4384,83.8798,82.7397,86.8493,85.7534,89.6175,89.3151,92.0548,90.137,85.2459,94.7945,90.411,86.8493,86.3388,89.3151,86.0274,90.411,91.5301,93.4247,90.9589,92.6027,90.1639,96.1644,96.4384,98.0822,96.7213,96.7123,97.5342,98.0822,98.3607,96.7123,95.0685,98.9041,93.9891,98.0822,98.6301,])
array_2 = np.array([9.5,11,11,10.5,9.5,11.75,15.5,13.5,10,15.5,16,21.5,19,17,20,19.5,22.25,24.5,19,20.25,25,50,50.5,44.5,53.33,49,53.75,66,59,68,54,62,68,69,61,62,70,72,74,71,75,76,63,])
array_1_name = "Air quality in San Jose, California"
array_2_name = "Hotdogs consumed by Nathan's Hot Dog Eating Competition Champion"

# 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 rating skills are top-notch!


Correlation ID: 4314 · Black Variable ID: 21218 · Red Variable ID: 500
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0