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

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is Total views on Matt Parker's YouTube videos and the second variable is The number of garbage collectors in South Dakota.  The chart goes from 2011 to 2022, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

As the laughter from the videos echoed across the Great Plains, it sparked a newfound appreciation for clean surroundings. The increased intellectual stimulation from learning about math in a funny way must have inspired many South Dakotans to pursue a noble career in garbage collection. After watching those videos, they were probably thinking, "I don't want these rubbish binomial distributions in my state - it's time to cosine on the dotted line and integrate myself into the sanitation workforce!" Who knew that a few more views could cosine such a trashy upheaval in South Dakota!

Model: dalle-3
Prompt: Generate an image of the Great Plains landscape, with a bright blue sky and fluffy white clouds. In the foreground, visualize a group of cheerful South Dakotans working together to clean up the area, surrounded by garbage collectors. Incorporate the essence of Stand-up Maths by including playful mathematical symbols and equations subtly integrated into the landscape. The scene should exude a sense of laughter and intellectual inspiration, reflecting the impactful message of the Stand-up Maths YouTube videos. The image should capture the spirit of community-driven environmental stewardship, merging the joy of learning with the dedication to keeping the surroundings clean. 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: Total views on Stand-up Maths YouTube videos and The number of garbage collectors in South Dakota. 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: Steampunk Oragami Art nouveau Cutsy graphics Cubism
ChatGPT: Cutsy graphics

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 Total views on Stand-up Maths YouTube videos and The number of garbage collectors in South Dakota, in the following situation: As the laughter from the videos echoed across the Great Plains, it sparked a newfound appreciation for clean surroundings. The increased intellectual stimulation from learning about math in a funny way must have inspired many South Dakotans to pursue a noble career in garbage collection. After watching those videos, they were probably thinking, "I don't want these rubbish binomial distributions in my state - it's time to cosine on the dotted line and integrate myself into the sanitation workforce!" Who knew that a few more views could cosine such a trashy upheaval in South Dakota!. Keep the description simple.
ChatGPT: In the vast expanse of the Great Plains, the Stand-up Maths YouTube videos filled the air with laughter as the total views climbed higher and higher. Amidst this, a group of South Dakotans, inspired by the intellectual stimulation from the videos, joined forces to increase the number of garbage collectors in the state. They were determined to keep their surroundings clean and free of rubbish, creating a visual scene where the echoes of laughter mixed with the sight of more garbage collectors, inspired by the mathematical comedy, working diligently to keep South Dakota tidy.

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: [ Cutsy graphics ] and depicting this scene: In the vast expanse of the Great Plains, the Stand-up Maths YouTube videos filled the air with laughter as the total views climbed higher and higher. Amidst this, a group of South Dakotans, inspired by the intellectual stimulation from the videos, joined forces to increase the number of garbage collectors in the state. They were determined to keep their surroundings clean and free of rubbish, creating a visual scene where the echoes of laughter mixed with the sight of more garbage collectors, inspired by the mathematical comedy, working diligently to keep South Dakota tidy. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Generate an image of the Great Plains landscape, with a bright blue sky and fluffy white clouds. In the foreground, visualize a group of cheerful South Dakotans working together to clean up the area, surrounded by garbage collectors. Incorporate the essence of Stand-up Maths by including playful mathematical symbols and equations subtly integrated into the landscape. The scene should exude a sense of laughter and intellectual inspiration, reflecting the impactful message of the Stand-up Maths YouTube videos. The image should capture the spirit of community-driven environmental stewardship, merging the joy of learning with the dedication to keeping the surroundings clean.

*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 Total views on Stand-up Maths YouTube videos caused The number of garbage collectors in South Dakota to increase.\Make it sound serious until the end.

AI academic paper

(Because p < 0.01)
Laughing Their Way to the Dump: Correlating Total Views on Stand-up Maths YouTube Videos with the Number of Garbage Collectors in South Dakota

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

Please draft the title and abstract of an academic research paper presenting the findings of the connection between Total views on Stand-up Maths YouTube videos and The number of garbage collectors in South Dakota. Make lots of jokes, goofy observations, and puns.

Make the title a clever pun.

Your research team used data from YouTube and Bureau of Larbor Statistics to assess this nagging question. You found a correlation coefficient of 0.8962899 and p < 0.01 for 2011 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]]
"Laughing Their Way to the Dump: Correlating Total Views on Stand-up Maths YouTube Videos with the Number of Garbage Collectors in South Dakota"

[[ABSTRACT]]
This research examines the unexpected relationship between the total views on Stand-up Maths YouTube videos and the number of garbage collectors in South Dakota. Utilizing data from YouTube and the Bureau of Labor Statistics, we discovered a correlation coefficient of 0.8962899 and p < 0.01 for the years 2011 to 2022. Our findings suggest a remarkably strong positive correlation between the two seemingly unrelated variables, leading us to ponder if watching math comedy can somehow inspire individuals to venture into the waste management industry. The implications of this unexpected association are both fascinating and humorous, as they highlight the potential influence of entertainment on career choices and the interconnected nature of seemingly disparate professions.


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

Please make up the introduction section of an academic research paper presenting the findings of the connection between Total views on Stand-up Maths YouTube videos and The number of garbage collectors in South Dakota. Make lots of jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Here is the title and abstract of the paper:
[[TITLE]]
"Laughing Their Way to the Dump: Correlating Total Views on Stand-up Maths YouTube Videos with the Number of Garbage Collectors in South Dakota"

[[ABSTRACT]]
This research examines the unexpected relationship between the total views on Stand-up Maths YouTube videos and the number of garbage collectors in South Dakota. Utilizing data from YouTube and the Bureau of Labor Statistics, we discovered a correlation coefficient of 0.8962899 and p < 0.01 for the years 2011 to 2022. Our findings suggest a remarkably strong positive correlation between the two seemingly unrelated variables, leading us to ponder if watching math comedy can somehow inspire individuals to venture into the waste management industry. The implications of this unexpected association are both fascinating and humorous, as they highlight the potential influence of entertainment on career choices and the interconnected nature of seemingly disparate professions.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

In the world of research, one often encounters unexpected connections and surprising correlations, some of which are as puzzling as a Rubik's Cube solved in under a minute. The study of seemingly unrelated variables often leads to delightful revelations, much like finding an unexpected piece of chocolate at the bottom of a bag of mixed nuts. In this spirit of delightful discoveries, we present our research on the unlikely association between the total views on Stand-up Maths YouTube videos and the number of garbage collectors in South Dakota. It's a bit like uncovering a hidden equation in a stand-up routine that leaves us laughing and scratching our heads all at once.

As researchers, we are accustomed to facing statistical challenges, but few could have predicted the chuckle-inducing adventure that awaited us when we delved into this investigation. Our primary objective was to uncover any potential relationship between the consumption of math-themed comedy and the workforce in waste management. With data from YouTube's algorithmic treasure trove and the Bureau of Labor Statistics akin to the Sherlock Holmes and Watson of datasets, we set out to explore the tantalizing possibility of a link between laughing at math jokes and the waste disposal profession.

The unorthodox nature of our investigation undoubtedly raises eyebrows, much like a particularly perplexing algebraic equation. However, as the saying goes, "In mathematical humor, there is strength." We hope to elucidate the unexpected humor and insight that can arise when seemingly disparate elements come together, much like the unexpected fusion of peanut butter and jelly in a sandwich.

In this paper, we present our findings, which not only reveal an eyebrow-raising correlation coefficient of 0.8962899 and a p-value of less than 0.01 for the years 2011 to 2022 but also trigger a cascade of amusing implications for both the worlds of entertainment and waste management. Join us on this comical and statistically significant journey as we uncover the captivating secrets behind laughing your way to the dump.


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

Please make up a literature review section of an academic research paper presenting the findings of the connection between Total views on Stand-up Maths YouTube videos and The number of garbage collectors in South Dakota. 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 cite some social media posts you read that seem to be related.

Here is the title and abstract of the paper:
[[TITLE]]
"Laughing Their Way to the Dump: Correlating Total Views on Stand-up Maths YouTube Videos with the Number of Garbage Collectors in South Dakota"

[[ABSTRACT]]
This research examines the unexpected relationship between the total views on Stand-up Maths YouTube videos and the number of garbage collectors in South Dakota. Utilizing data from YouTube and the Bureau of Labor Statistics, we discovered a correlation coefficient of 0.8962899 and p < 0.01 for the years 2011 to 2022. Our findings suggest a remarkably strong positive correlation between the two seemingly unrelated variables, leading us to ponder if watching math comedy can somehow inspire individuals to venture into the waste management industry. The implications of this unexpected association are both fascinating and humorous, as they highlight the potential influence of entertainment on career choices and the interconnected nature of seemingly disparate professions.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
In the world of research, one often encounters unexpected connections and surprising correlations, some of which are as puzzling as a Rubik's Cube solved in under a minute. The study of seemingly unrelated variables often leads to delightful revelations, much like finding an unexpected piece of chocolate at the bottom of a bag of mixed nuts. In this spirit of delightful discoveries, we present our research on the unlikely association between the total views on Stand-up Maths YouTube videos and the number of garbage collectors in South Dakota. It's a bit like uncovering a hidden equation in a stand-up routine that leaves us laughing and scratching our heads all at once.
As researchers, we are accustomed to facing statistical challenges, but few could have predicted the chuckle-inducing adventure that awaited us when we delved into this investigation. Our primary objective was to uncover any potential relationship between the consumption of math-themed comedy and the workforce in waste management. With data from YouTube's algorithmic treasure trove and the Bureau of Labor Statistics akin to the Sherlock Holmes and Watson of datasets, we set out to explore the tantalizing possibility of a link between laughing at math jokes and the waste disposal profession.
The unorthodox nature of our investigation undoubtedly raises eyebrows, much like a particularly perplexing algebraic equation. However, as the saying goes, "In mathematical humor, there is strength." We hope to elucidate the unexpected humor and insight that can arise when seemingly disparate elements come together, much like the unexpected fusion of peanut butter and jelly in a sandwich.
In this paper, we present our findings, which not only reveal an eyebrow-raising correlation coefficient of 0.8962899 and a p-value of less than 0.01 for the years 2011 to 2022 but also trigger a cascade of amusing implications for both the worlds of entertainment and waste management. Join us on this comical and statistically significant journey as we uncover the captivating secrets behind laughing your way to the dump.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

The exploration of unexpected correlations in the field of interdisciplinary research has long been a source of both profound discovery and comic relief. The study at hand, focused on the seemingly unrelated variables of total views on Stand-up Maths YouTube videos and the number of garbage collectors in South Dakota, propels us into a domain where statistical analysis meets stand-up comedy, like an unlikely partnership between Erwin Schrödinger and Jerry Seinfeld.

Smith, Jones, and Doe (2015) conducted a comprehensive analysis of YouTube viewing habits and career choices, though unfortunately, they only delved into more predictable associations. However, much like a punchline delivered at an unexpected moment, subsequent studies have ventured into the uncharted territory of surprising correlations. In "Mathematical Musings" by Brown (2018), the author explores the impact of math-related content on viewers' vocational inclinations, although with a focus on academic and research fields rather than waste management.

Turning to non-fiction literature, "Waste Not: The Surprising Economics of Trash" by Green (2017) offers insights into the economic and environmental aspects of waste management. While the book does not directly address the influence of math-based entertainment on career choices, its examination of the waste disposal industry certainly sets the stage for our unexpected findings.

Fictional works, such as "The Garbage Collector's Guide to the Galaxy" by Adams (1979), serve as a lighthearted yet potentially illuminating departure from the academic literature, offering a whimsical take on the world of waste management. The unexpected references to astrophysics and towel etiquette in this work, while not directly related to mathematics or YouTube content, undoubtedly add a touch of levity to a subject that is often overlooked.

In a bold departure from traditional scholarly sources, we also draw upon social media musings that shed light on the potential influence of stand-up mathematics on career choices. A tweet from @MathJokes4Days posits, "Maybe the real reason there are so many garbage collectors is that they're all aspiring stand-up mathematicians hoping to solve trashy equations. #MathHumor #PunnyProfessions." While not a peer-reviewed study, this lighthearted observation prompts us to consider the impact of humor and entertainment on professional trajectories, like a sudden punchline in an otherwise serious discussion.

These diverse sources, ranging from academic studies to literary works and even social media commentary, contribute to the colorful tapestry of influences that have guided our investigation into the unexpected nexus of mathematics, comedy, and waste management. As we navigate through this unconventional landscape of research, we invite readers to join us in a lighthearted exploration that seeks to unravel the enigmatic relationship between laughter, equations, and the disposal of refuse.


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

Please make up the methodology section of an academic research paper presenting the findings of the connection between Total views on Stand-up Maths YouTube videos and The number of garbage collectors in South Dakota. Make lots of jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Your research team collected data from all across the internet, but mostly just used information from YouTube and Bureau of Larbor Statistics . You used data from 2011 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]]
"Laughing Their Way to the Dump: Correlating Total Views on Stand-up Maths YouTube Videos with the Number of Garbage Collectors in South Dakota"

[[ABSTRACT]]
This research examines the unexpected relationship between the total views on Stand-up Maths YouTube videos and the number of garbage collectors in South Dakota. Utilizing data from YouTube and the Bureau of Labor Statistics, we discovered a correlation coefficient of 0.8962899 and p < 0.01 for the years 2011 to 2022. Our findings suggest a remarkably strong positive correlation between the two seemingly unrelated variables, leading us to ponder if watching math comedy can somehow inspire individuals to venture into the waste management industry. The implications of this unexpected association are both fascinating and humorous, as they highlight the potential influence of entertainment on career choices and the interconnected nature of seemingly disparate professions.

[[INTRODUCTION]]
In the world of research, one often encounters unexpected connections and surprising correlations, some of which are as puzzling as a Rubik's Cube solved in under a minute. The study of seemingly unrelated variables often leads to delightful revelations, much like finding an unexpected piece of chocolate at the bottom of a bag of mixed nuts. In this spirit of delightful discoveries, we present our research on the unlikely association between the total views on Stand-up Maths YouTube videos and the number of garbage collectors in South Dakota. It's a bit like uncovering a hidden equation in a stand-up routine that leaves us laughing and scratching our heads all at once.
As researchers, we are accustomed to facing statistical challenges, but few could have predicted the chuckle-inducing adventure that awaited us when we delved into this investigation. Our primary objective was to uncover any potential relationship between the consumption of math-themed comedy and the workforce in waste management. With data from YouTube's algorithmic treasure trove and the Bureau of Labor Statistics akin to the Sherlock Holmes and Watson of datasets, we set out to explore the tantalizing possibility of a link between laughing at math jokes and the waste disposal profession.
The unorthodox nature of our investigation undoubtedly raises eyebrows, much like a particularly perplexing algebraic equation. However, as the saying goes, "In mathematical humor, there is strength." We hope to elucidate the unexpected humor and insight that can arise when seemingly disparate elements come together, much like the unexpected fusion of peanut butter and jelly in a sandwich.
In this paper, we present our findings, which not only reveal an eyebrow-raising correlation coefficient of 0.8962899 and a p-value of less than 0.01 for the years 2011 to 2022 but also trigger a cascade of amusing implications for both the worlds of entertainment and waste management. Join us on this comical and statistically significant journey as we uncover the captivating secrets behind laughing your way to the dump.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To navigate the convoluted maze of unexpected correlations, our research team employed an eclectic mix of statistical methods and whimsical data analysis, akin to embarking on a cross-country road trip using a map drawn by a mischievous cartographer. The first step in our endeavor was to gather data from the hallowed halls of YouTube's video analytics and the Bureau of Labor Statistics, a journey that involved sifting through digital haystacks in search of statistical needles, reminiscent of a scavenger hunt in a particularly complex labyrinth.

Our data collection process spanned the years 2011 to 2022, capturing the ebbs and flows of both the mathematical merriment on Stand-up Maths YouTube videos and the labor force dedicated to the noble task of waste collection in the majestic expanse of South Dakota. For every year within this temporal expanse, we diligently cataloged the total views accrued by the comedic math wizardry and the number of dedicated individuals ensuring the cleanliness of the Mount Rushmore State, leaving no stone unturned and no comedic pun unappreciated.

Having amassed this treasure trove of data, we then embarked on the odyssey of statistical analysis, guided by the whimsical rhythms of regression analysis and correlation coefficients, akin to crafting a symphony orchestra from an ensemble of data points and Excel spreadsheets. Our aim was to unveil any potential relationship between the consumption of mathematical humor and the valiant souls serving as custodians of cleanliness in South Dakota, as though seeking the elusive harmony between a stand-up routine and the jingle of a garbage truck.

With the statistical alchemy of SPSS and other modeling tools at our disposal, we traversed the landscape of scatterplots and correlation matrices, delighting in the unexpected patterns that emerged, much like uncovering a hidden punchline in the annals of statistical significance. Our journey of data exploration, not unlike a treacherous yet rewarding hike through the peaks and valleys of mathematical abstraction, culminated in the unearthing of a correlation coefficient of 0.8962899 and a p-value of less than 0.01. This statistical revelation, akin to discovering a punchline that leaves the audience both enraptured and puzzled, underscored the remarkably strong positive correlation between the total views on comedic math videos and the number of waste management professionals in South Dakota.

In summary, our methodology involved a harmonious blend of data collection from disparate sources, whimsical statistical analysis, and a keen sense of humor that echoed throughout our scholarly pursuits. This methodical romp through the landscapes of entertainment and waste management, not unlike a comedic dance through the world of data, allowed us to spotlight this unexpected nexus between laughter and the realm of refuse collection, leaving us both befuddled and amused in equal measure.


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

Please make up the results section of an academic research paper presenting the findings of the connection between Total views on Stand-up Maths YouTube videos and The number of garbage collectors in South Dakota. Make lots of jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Your research team collected data from all across the internet, but mostly just used information from YouTube and Bureau of Larbor Statistics .

For the time period 2011 to 2022, you found a correlation 0.8962899, r-squared of 0.8033355, 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]]
"Laughing Their Way to the Dump: Correlating Total Views on Stand-up Maths YouTube Videos with the Number of Garbage Collectors in South Dakota"

[[ABSTRACT]]
This research examines the unexpected relationship between the total views on Stand-up Maths YouTube videos and the number of garbage collectors in South Dakota. Utilizing data from YouTube and the Bureau of Labor Statistics, we discovered a correlation coefficient of 0.8962899 and p < 0.01 for the years 2011 to 2022. Our findings suggest a remarkably strong positive correlation between the two seemingly unrelated variables, leading us to ponder if watching math comedy can somehow inspire individuals to venture into the waste management industry. The implications of this unexpected association are both fascinating and humorous, as they highlight the potential influence of entertainment on career choices and the interconnected nature of seemingly disparate professions.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
In the world of research, one often encounters unexpected connections and surprising correlations, some of which are as puzzling as a Rubik's Cube solved in under a minute. The study of seemingly unrelated variables often leads to delightful revelations, much like finding an unexpected piece of chocolate at the bottom of a bag of mixed nuts. In this spirit of delightful discoveries, we present our research on the unlikely association between the total views on Stand-up Maths YouTube videos and the number of garbage collectors in South Dakota. It's a bit like uncovering a hidden equation in a stand-up routine that leaves us laughing and scratching our heads all at once.
As researchers, we are accustomed to facing statistical challenges, but few could have predicted the chuckle-inducing adventure that awaited us when we delved into this investigation. Our primary objective was to uncover any potential relationship between the consumption of math-themed comedy and the workforce in waste management. With data from YouTube's algorithmic treasure trove and the Bureau of Labor Statistics akin to the Sherlock Holmes and Watson of datasets, we set out to explore the tantalizing possibility of a link between laughing at math jokes and the waste disposal profession.
The unorthodox nature of our investigation undoubtedly raises eyebrows, much like a particularly perplexing algebraic equation. However, as the saying goes, "In mathematical humor, there is strength." We hope to elucidate the unexpected humor and insight that can arise when seemingly disparate elements come together, much like the unexpected fusion of peanut butter and jelly in a sandwich.
In this paper, we present our findings, which not only reveal an eyebrow-raising correlation coefficient of 0.8962899 and a p-value of less than 0.01 for the years 2011 to 2022 but also trigger a cascade of amusing implications for both the worlds of entertainment and waste management. Join us on this comical and statistically significant journey as we uncover the captivating secrets behind laughing your way to the dump.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The analysis of the data revealed a remarkably strong positive correlation between the total views on Stand-up Maths YouTube videos and the number of garbage collectors in South Dakota, prompting us to exclaim, "What in the world of probability is going on here?" The correlation coefficient of 0.8962899 and the r-squared value of 0.8033355 left us feeling as stunned as if we had been hit by a statistical thunderbolt. Moreover, the p-value of less than 0.01 further reinforced the robustness of this unexpected relationship, leaving us more pleasantly surprised than a researcher finding a perfectly normal distribution in their data.

Fig. 1 displays a scatterplot illustrating the striking correlation between the two variables. The pattern of the data points is as clear as a pie chart in a statistics class – it unmistakably demonstrates the strong positive relationship between the total views on Stand-up Maths YouTube videos and the number of garbage collectors in South Dakota.

Our findings evoke a chuckle and a raised eyebrow, leading us to wonder whether laughter induced by mathematical humor has a peculiar influence on career choices, specifically nudging individuals towards the waste management industry. Perhaps it's not just the formulas and equations that are creating a stir, but also the rib-tickling laughter that follows them. The implications of this curious association extend far beyond the realms of humor and garbage collection, highlighting the interconnectedness of professions in ways that we never thought possible. These unexpected discoveries remind us that statistical analysis can be as entertaining as a math-themed comedy show, leading us to ponder over the comedic yet thought-provoking influences present in the world of data.


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

Please make up the discussion section of an academic research paper presenting the findings of the connection between Total views on Stand-up Maths YouTube videos and The number of garbage collectors in South Dakota. Make lots of jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Limit your response to 500 tokens.

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

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

[[TITLE]]
"Laughing Their Way to the Dump: Correlating Total Views on Stand-up Maths YouTube Videos with the Number of Garbage Collectors in South Dakota"

[[ABSTRACT]]
This research examines the unexpected relationship between the total views on Stand-up Maths YouTube videos and the number of garbage collectors in South Dakota. Utilizing data from YouTube and the Bureau of Labor Statistics, we discovered a correlation coefficient of 0.8962899 and p < 0.01 for the years 2011 to 2022. Our findings suggest a remarkably strong positive correlation between the two seemingly unrelated variables, leading us to ponder if watching math comedy can somehow inspire individuals to venture into the waste management industry. The implications of this unexpected association are both fascinating and humorous, as they highlight the potential influence of entertainment on career choices and the interconnected nature of seemingly disparate professions.

[[LITERATURE REVIEW]]
The exploration of unexpected correlations in the field of interdisciplinary research has long been a source of both profound discovery and comic relief. The study at hand, focused on the seemingly unrelated variables of total views on Stand-up Maths YouTube videos and the number of garbage collectors in South Dakota, propels us into a domain where statistical analysis meets stand-up comedy, like an unlikely partnership between Erwin Schrödinger and Jerry Seinfeld.
Smith, Jones, and Doe (2015) conducted a comprehensive analysis of YouTube viewing habits and career choices, though unfortunately, they only delved into more predictable associations. However, much like a punchline delivered at an unexpected moment, subsequent studies have ventured into the uncharted territory of surprising correlations. In "Mathematical Musings" by Brown (2018), the author explores the impact of math-related content on viewers' vocational inclinations, although with a focus on academic and research fields rather than waste management.
Turning to non-fiction literature, "Waste Not: The Surprising Economics of Trash" by Green (2017) offers insights into the economic and environmental aspects of waste management. While the book does not directly address the influence of math-based entertainment on career choices, its examination of the waste disposal industry certainly sets the stage for our unexpected findings.
Fictional works, such as "The Garbage Collector's Guide to the Galaxy" by Adams (1979), serve as a lighthearted yet potentially illuminating departure from the academic literature, offering a whimsical take on the world of waste management. The unexpected references to astrophysics and towel etiquette in this work, while not directly related to mathematics or YouTube content, undoubtedly add a touch of levity to a subject that is often overlooked.
In a bold departure from traditional scholarly sources, we also draw upon social media musings that shed light on the potential influence of stand-up mathematics on career choices. A tweet from @MathJokes4Days posits, "Maybe the real reason there are so many garbage collectors is that they're all aspiring stand-up mathematicians hoping to solve trashy equations. #MathHumor #PunnyProfessions." While not a peer-reviewed study, this lighthearted observation prompts us to consider the impact of humor and entertainment on professional trajectories, like a sudden punchline in an otherwise serious discussion.
These diverse sources, ranging from academic studies to literary works and even social media commentary, contribute to the colorful tapestry of influences that have guided our investigation into the unexpected nexus of mathematics, comedy, and waste management. As we navigate through this unconventional landscape of research, we invite readers to join us in a lighthearted exploration that seeks to unravel the enigmatic relationship between laughter, equations, and the disposal of refuse.

[[RESULTS]]
The analysis of the data revealed a remarkably strong positive correlation between the total views on Stand-up Maths YouTube videos and the number of garbage collectors in South Dakota, prompting us to exclaim, "What in the world of probability is going on here?" The correlation coefficient of 0.8962899 and the r-squared value of 0.8033355 left us feeling as stunned as if we had been hit by a statistical thunderbolt. Moreover, the p-value of less than 0.01 further reinforced the robustness of this unexpected relationship, leaving us more pleasantly surprised than a researcher finding a perfectly normal distribution in their data.
Fig. 1 displays a scatterplot illustrating the striking correlation between the two variables. The pattern of the data points is as clear as a pie chart in a statistics class – it unmistakably demonstrates the strong positive relationship between the total views on Stand-up Maths YouTube videos and the number of garbage collectors in South Dakota.
Our findings evoke a chuckle and a raised eyebrow, leading us to wonder whether laughter induced by mathematical humor has a peculiar influence on career choices, specifically nudging individuals towards the waste management industry. Perhaps it's not just the formulas and equations that are creating a stir, but also the rib-tickling laughter that follows them. The implications of this curious association extend far beyond the realms of humor and garbage collection, highlighting the interconnectedness of professions in ways that we never thought possible. These unexpected discoveries remind us that statistical analysis can be as entertaining as a math-themed comedy show, leading us to ponder over the comedic yet thought-provoking influences present in the world of data.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

Our results have left us not only scratching our heads but also considering the profound implications of this unexpected correlation between total views on Stand-up Maths YouTube videos and the number of garbage collectors in South Dakota. It seems that the comedic musings of mathematics have a persuasive allure, akin to a siren's call drawing individuals into the waste management industry. If there’s a formula for career choices, it appears that mathematics and humor just might be integral variables in this peculiar equation.

Building upon the foundational works of Smith, Jones, and Doe (2015) and the whimsical departures of Adams (1979), our findings support the notion that seemingly unrelated fields can indeed share a surprising bond. With a correlation coefficient of 0.8962899 and a p-value of less than 0.01, our results lend statistical credence to the notion that laughter and garbage collection may be tightly intertwined, not unlike a knot in a mathematical string theory.

Returning to the humor-laden tweet from @MathJokes4Days, we find ourselves pondering whether aspiring stand-up mathematicians are subconsciously drawn to solving "trashy equations." While the tweet was undoubtedly tongue-in-cheek, our research provides a statistical nod to the potential influence of comedic mathematics on career pathways, highlighting the whimsical yet impactful nature of entertainment in shaping professional trajectories.

The unexpected relationship uncovered in this study challenges conventional notions of career decision-making, shedding light on the interconnectedness of seemingly disparate professions. It appears that the allure of mathematical comedy may not only stimulate the mind but also steer individuals towards vocational paths that one may not typically associate with the world of equations and formulas.

In the grand theater of statistical analysis, our results add a touch of levity while underscoring the often unforeseen connections lurking within datasets. As researchers, we stand at the intersection of humor, statistics, and garbage collection, pondering the enigmatic influence of mathematical comedy on career choices. After all, in the words of Douglas Adams, "In the beginning, the universe was created. This has made a lot of people very angry and been widely regarded as a bad move" – a sentiment that might resonate with those still puzzled by the unexpected correlation between mathematical laughter and the disposal of refuse.

A lighthearted exploration into the statistical landscape, our study prompts further consideration of the entertaining yet thought-provoking influences that echo through the world of data. With that said, we invite fellow researchers to join us in this engaging pursuit of unraveling the rib-tickling mysteries that lie at the intersection of mathematics, humor, and professional choices. Just remember, in the world of statistics, correlation does not always imply causation – but it may certainly provoke a good laugh and a puzzled smile.


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

Please make up a short conclusion of an academic research paper presenting the findings of the connection between Total views on Stand-up Maths YouTube videos and The number of garbage collectors in South Dakota. Make lots of jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

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

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
"Laughing Their Way to the Dump: Correlating Total Views on Stand-up Maths YouTube Videos with the Number of Garbage Collectors in South Dakota"

[[ABSTRACT]]
This research examines the unexpected relationship between the total views on Stand-up Maths YouTube videos and the number of garbage collectors in South Dakota. Utilizing data from YouTube and the Bureau of Labor Statistics, we discovered a correlation coefficient of 0.8962899 and p < 0.01 for the years 2011 to 2022. Our findings suggest a remarkably strong positive correlation between the two seemingly unrelated variables, leading us to ponder if watching math comedy can somehow inspire individuals to venture into the waste management industry. The implications of this unexpected association are both fascinating and humorous, as they highlight the potential influence of entertainment on career choices and the interconnected nature of seemingly disparate professions.

[[INTRDUCTION]]
In the world of research, one often encounters unexpected connections and surprising correlations, some of which are as puzzling as a Rubik's Cube solved in under a minute. The study of seemingly unrelated variables often leads to delightful revelations, much like finding an unexpected piece of chocolate at the bottom of a bag of mixed nuts. In this spirit of delightful discoveries, we present our research on the unlikely association between the total views on Stand-up Maths YouTube videos and the number of garbage collectors in South Dakota. It's a bit like uncovering a hidden equation in a stand-up routine that leaves us laughing and scratching our heads all at once.
As researchers, we are accustomed to facing statistical challenges, but few could have predicted the chuckle-inducing adventure that awaited us when we delved into this investigation. Our primary objective was to uncover any potential relationship between the consumption of math-themed comedy and the workforce in waste management. With data from YouTube's algorithmic treasure trove and the Bureau of Labor Statistics akin to the Sherlock Holmes and Watson of datasets, we set out to explore the tantalizing possibility of a link between laughing at math jokes and the waste disposal profession.
The unorthodox nature of our investigation undoubtedly raises eyebrows, much like a particularly perplexing algebraic equation. However, as the saying goes, "In mathematical humor, there is strength." We hope to elucidate the unexpected humor and insight that can arise when seemingly disparate elements come together, much like the unexpected fusion of peanut butter and jelly in a sandwich.
In this paper, we present our findings, which not only reveal an eyebrow-raising correlation coefficient of 0.8962899 and a p-value of less than 0.01 for the years 2011 to 2022 but also trigger a cascade of amusing implications for both the worlds of entertainment and waste management. Join us on this comical and statistically significant journey as we uncover the captivating secrets behind laughing your way to the dump.

[[RESULTS]]
The analysis of the data revealed a remarkably strong positive correlation between the total views on Stand-up Maths YouTube videos and the number of garbage collectors in South Dakota, prompting us to exclaim, "What in the world of probability is going on here?" The correlation coefficient of 0.8962899 and the r-squared value of 0.8033355 left us feeling as stunned as if we had been hit by a statistical thunderbolt. Moreover, the p-value of less than 0.01 further reinforced the robustness of this unexpected relationship, leaving us more pleasantly surprised than a researcher finding a perfectly normal distribution in their data.
Fig. 1 displays a scatterplot illustrating the striking correlation between the two variables. The pattern of the data points is as clear as a pie chart in a statistics class – it unmistakably demonstrates the strong positive relationship between the total views on Stand-up Maths YouTube videos and the number of garbage collectors in South Dakota.
Our findings evoke a chuckle and a raised eyebrow, leading us to wonder whether laughter induced by mathematical humor has a peculiar influence on career choices, specifically nudging individuals towards the waste management industry. Perhaps it's not just the formulas and equations that are creating a stir, but also the rib-tickling laughter that follows them. The implications of this curious association extend far beyond the realms of humor and garbage collection, highlighting the interconnectedness of professions in ways that we never thought possible. These unexpected discoveries remind us that statistical analysis can be as entertaining as a math-themed comedy show, leading us to ponder over the comedic yet thought-provoking influences present in the world of data.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our research has illuminated a remarkably strong positive correlation between the total views on Stand-up Maths YouTube videos and the number of garbage collectors in South Dakota. It seems that laughter might just be a powerful force, capable of influencing even the most unlikely career paths – after all, who would have thought that statistics and comedy could team up to steer individuals towards the waste management industry? This unexpected connection certainly has more twists and turns than a rollercoaster ride through a data visualization.

Our findings open the door to a realm of absurd possibilities – perhaps garbage collectors are secretly sneaking in quick math jokes while on their routes, or maybe mathematicians are finding inspiration in the symphony of garbage trucks. It's a statistical mystery that rivals any Agatha Christie novel, leaving us wondering if there's more to this correlation than meets the eye.

So, what can we take away from this comically bewildering discovery? It reminds us that the world of statistics is as full of surprises as a birthday party at a probability lab – you never know what unexpected guests will show up. This unlikely correlation between mathematical humor and waste management serves as a lighthearted reminder that data analysis can lead to hilariously unexpected insights, not unlike stumbling upon a punchline in a spreadsheet.

In light of these findings, we assert that no further research in this area is needed – we've laughed, pondered, and scratched our heads enough for now. It's safe to say that this peculiar association between math comedy and garbage collection has entertained and enlightened us in equal measure, and perhaps that's all the real correlation we need. After all, as any good comedian knows, sometimes it's best to leave the audience wanting more.


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 Laughing Their Way to the Dump: Correlating Total Views on Stand-up Maths YouTube Videos with the Number of Garbage Collectors in South Dakota. Respond only with the name of a fictional academic journal.

ChatGPT:

Journal of Unconventional Correlation 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 Laughing Their Way to the Dump: Correlating Total Views on Stand-up Maths YouTube Videos with the Number of Garbage Collectors in South Dakota. Respond only with the name of a fictional organization.

ChatGPT:

The Society for Irreverent Mathematical Inquiry


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 Laughing Their Way to the Dump: Correlating Total Views on Stand-up Maths YouTube Videos with the Number of Garbage Collectors in South Dakota with an abstract of This research examines the unexpected relationship between the total views on Stand-up Maths YouTube videos and the number of garbage collectors in South Dakota. Utilizing data from YouTube and the Bureau of Labor Statistics, we discovered a correlation coefficient of 0.8962899 and p < 0.01 for the years 2011 to 2022. Our findings suggest a remarkably strong positive correlation between the two seemingly unrelated variables, leading us to ponder if watching math comedy can somehow inspire individuals to venture into the waste management industry. The implications of this unexpected association are both fascinating and humorous, as they highlight the potential influence of entertainment on career choices and the interconnected nature of seemingly disparate professions.

ChatGPT:

stand-up maths, YouTube videos, total views, garbage collectors, South Dakota, correlation, Bureau of Labor Statistics, correlation coefficient, math comedy, waste management, entertainment influence, career choices

*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

Total views on Matt Parker's YouTube videos
Detailed data title: Total views on Stand-up Maths YouTube videos.
Source: Stand-up Maths on YouTube
Additional Info: Current total views of videos released that year.

See what else correlates with Total views on Matt Parker's YouTube videos

The number of garbage collectors in South Dakota
Detailed data title: BLS estimate of refuse and recyclable material collectors in South Dakota
Source: Bureau of Larbor Statistics
See what else correlates with The number of garbage collectors in South Dakota

Correlation r = 0.8962899 (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.8033355 (Coefficient of determination)
This means 80.3% of the change in the one variable (i.e., The number of garbage collectors in South Dakota) is predictable based on the change in the other (i.e., Total views on Matt Parker's YouTube videos) over the 12 years from 2011 through 2022.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 7.9E-5. 0.0000792083962856983000000000
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.9 in 0.0079% of random cases. Said differently, if you correlated 12,625 random variables Which I absolutely did.
with the same 11 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 11 because we have two variables measured over a period of 12 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.66, 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.
201120122013201420152016201720182019202020212022
Total views on Matt Parker's YouTube videos (Total views)1305950234110036207713822402990560332312001505140052945809312520225525002374810011552100
The number of garbage collectors in South Dakota (Laborers)360330320340380430380360380410440370




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([1305950,2341100,362077,1382240,2990560,33231200,15051400,5294580,9312520,22552500,23748100,11552100,])
array_2 = np.array([360,330,320,340,380,430,380,360,380,410,440,370,])
array_1_name = "Total views on Matt Parker's YouTube videos"
array_2_name = "The number of garbage collectors in South Dakota"

# 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 correlation rating is out of this world!


Correlation ID: 4758 · Black Variable ID: 25809 · Red Variable ID: 14380
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0