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

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is Afghanistan's Estimated Opium Production and the second variable is Average number of comments on 3Blue1Brown YouTube videos.  The chart goes from 2015 to 2022, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

As opium production in Afghanistan increased, there was a corresponding spike in the worldwide production of poppy seed bagels. This led to a sudden surge in mathematical and geometric inspiration among viewers, prompting them to engage in more discussions and, you could say, a-MAIZE-ing comment threads on 3Blue1Brown's videos. The power of poppy-related puns and mathematical munchies should not be underestimated!

Model: dalle-3
Prompt: Create an image of a breathtaking poppy field in Afghanistan, with workers harvesting the vibrant red flowers. In the distance, a bustling bakery is visible, where bakers are seen rolling out a fresh batch of poppy seed bagels. The image should capture the juxtaposition of the calmness of the field and the liveliness of the bakery, conveying the interconnectedness of these seemingly disparate scenes. The overall composition should evoke a sense of contrast and harmony, allowing for the viewer to contemplate the beauty and complexity of the world. 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: Afghanistan's Estimated Opium Production and Average number of comments on 3Blue1Brown YouTube videos. 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: Sci-fi fantacy Woodblock painting A scene from Skyrim Art nouveau Woodblock painting
ChatGPT: A scene from Skyrim

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 Afghanistan's Estimated Opium Production and Average number of comments on 3Blue1Brown YouTube videos, in the following situation: As opium production in Afghanistan increased, there was a corresponding spike in the worldwide production of poppy seed bagels. This led to a sudden surge in mathematical and geometric inspiration among viewers, prompting them to engage in more discussions and, you could say, a-MAIZE-ing comment threads on 3Blue1Brown's videos. The power of poppy-related puns and mathematical munchies should not be underestimated!. Keep the description simple.
ChatGPT: In a sprawling poppy field in Afghanistan, the estimated opium production rises, as workers harvest the vibrant red flowers. Meanwhile, in a bustling bakery across the globe, bakers roll out a fresh batch of poppy seed bagels, ready to be savored. As the bagels make their way to breakfast tables, viewers around the world are captivated by 3Blue1Brown's videos, engaging in lively discussions and sharing an abundance of poppy-related puns, fueled by the newfound inspiration from the mathematical and geometric intricacies explored in the videos.

Model: gpt-3.5-turbo-1106
System prompt: You write and improve image generation prompts for DALLE-3. You maintain the same subjects, but enhance the visuals.
User prompt: Please respond with an image generation prompt that would be likely to create an interesting visual using DALLE-3, using the following style: [ A scene from Skyrim ] and depicting this scene: In a sprawling poppy field in Afghanistan, the estimated opium production rises, as workers harvest the vibrant red flowers. Meanwhile, in a bustling bakery across the globe, bakers roll out a fresh batch of poppy seed bagels, ready to be savored. As the bagels make their way to breakfast tables, viewers around the world are captivated by 3Blue1Brown's videos, engaging in lively discussions and sharing an abundance of poppy-related puns, fueled by the newfound inspiration from the mathematical and geometric intricacies explored in the videos. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Create an image of a breathtaking poppy field in Afghanistan, with workers harvesting the vibrant red flowers. In the distance, a bustling bakery is visible, where bakers are seen rolling out a fresh batch of poppy seed bagels. The image should capture the juxtaposition of the calmness of the field and the liveliness of the bakery, conveying the interconnectedness of these seemingly disparate scenes. The overall composition should evoke a sense of contrast and harmony, allowing for the viewer to contemplate the beauty and complexity of the world.

*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 Afghanistan's Estimated Opium Production caused Average number of comments on 3Blue1Brown YouTube videos to increase.

AI academic paper

(Because p < 0.05)
The Poppy and the Playlist: Unearthing the Unlikely Link between Afghanistan's Opium Production and 3Blue1Brown YouTube Engagement

The Journal of Unconventional Interdisciplinary 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 goofy academic researcher writing an academic paper. You follow the rules, but you throw out convention regularly to make jokes and funny asides.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 Afghanistan's Estimated Opium Production and Average number of comments on 3Blue1Brown YouTube videos. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

Make the title seem clever.

Your research team used data from UNODC and YouTube to assess this nagging question. You found a correlation coefficient of 0.8187380 and p < 0.05 for 2015 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]]
The Poppy and the Playlist: Unearthing the Unlikely Link between Afghanistan's Opium Production and 3Blue1Brown YouTube Engagement

[[ABSTRACT]]
In this paper, we undertaking a serious investigation into an unexpected and inherently whimsical pairing: Afghanistan's estimated opium production and the average number of comments on 3Blue1Brown YouTube videos. Leveraging data from the United Nations Office on Drugs and Crime (UNODC) and the all-seeing eye of YouTube, our research team delved into the statistical tango between these seemingly disparate spheres. Through rigorous analysis, we uncovered a surprising correlation coefficient of 0.8187380 and a significant p-value of less than 0.05 for the years spanning 2015 to 2022. While the notion of these variables being connected may initially raise eyebrows, our findings suggest that there may be more to this phenomenon than meets the eye. We invite our esteemed colleagues to join us as we traverse the enigmatic intersection of illicit crops and educational content, where statistical significance meets surprising synchronicity.


Model: gpt-3.5-turbo-1106
System prompt: You are a goofy academic researcher writing an academic paper. You follow the rules, but you throw out convention regularly to make jokes and funny asides.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 Afghanistan's Estimated Opium Production and Average number of comments on 3Blue1Brown YouTube videos. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, 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]]
The Poppy and the Playlist: Unearthing the Unlikely Link between Afghanistan's Opium Production and 3Blue1Brown YouTube Engagement

[[ABSTRACT]]
In this paper, we undertaking a serious investigation into an unexpected and inherently whimsical pairing: Afghanistan's estimated opium production and the average number of comments on 3Blue1Brown YouTube videos. Leveraging data from the United Nations Office on Drugs and Crime (UNODC) and the all-seeing eye of YouTube, our research team delved into the statistical tango between these seemingly disparate spheres. Through rigorous analysis, we uncovered a surprising correlation coefficient of 0.8187380 and a significant p-value of less than 0.05 for the years spanning 2015 to 2022. While the notion of these variables being connected may initially raise eyebrows, our findings suggest that there may be more to this phenomenon than meets the eye. We invite our esteemed colleagues to join us as we traverse the enigmatic intersection of illicit crops and educational content, where statistical significance meets surprising synchronicity.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

The intersection of social phenomena and statistical analysis has long captivated researchers seeking to uncover unexpected connections and correlations. In this vein, our study embarks on an exploration of the peculiar relationship between Afghanistan's estimated opium production and the average number of comments on 3Blue1Brown YouTube videos. While these two variables may appear to inhabit distinct realms, our investigation reveals a surprising dance of data that challenges conventional notions of causality and coherence.

The intrigue surrounding Afghanistan's opium production, a stalwart presence in global illicit drug markets, is juxtaposed with the online engagement garnered by 3Blue1Brown, a popular Youtube channel renowned for its visually engaging mathematical explanations. The juxtaposition seems rather whimsical, akin to blending a complex differential equation with a poppy as an unexpected solution. Yet, as researchers, it behooves us to delve into the unexpected, to unravel the seemingly inexplicable, and to uncover correlations that may elicit both head-scratching and admiration.

As we embark on this quirky quest, we must acknowledge the skepticism that invariably accompanies such unlikely pairings. After all, statisticians and scientists are relentlessly cautious creatures, always wary of mistaking mere coincidence for genuine causality. Nevertheless, armed with a battalion of data points and an arsenal of statistical tests, we enter this uncharted territory with a mix of curiosity and conjecture.

Our unwavering commitment to the pursuit of knowledge impels us to navigate the treacherous waters where opium production and online engagement converge. Through meticulous analysis and unwavering scrutiny, we aim to shed light on the hidden interplay between these incongruous variables. Join us as we unravel the enigmatic relationship between the poppy and the playlist, where statistical peculiarities meet unexpected parallels, and where the scientific method rubs shoulders with serendipity.


Model: gpt-3.5-turbo-1106
System prompt: You are a goofy academic researcher writing an academic paper. You follow the rules, but you throw out convention regularly to make jokes and funny asides.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 Afghanistan's Estimated Opium Production and Average number of comments on 3Blue1Brown YouTube videos. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, 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 name some movies that you watched that are tangentially related to the topic.

Here is the title and abstract of the paper:
[[TITLE]]
The Poppy and the Playlist: Unearthing the Unlikely Link between Afghanistan's Opium Production and 3Blue1Brown YouTube Engagement

[[ABSTRACT]]
In this paper, we undertaking a serious investigation into an unexpected and inherently whimsical pairing: Afghanistan's estimated opium production and the average number of comments on 3Blue1Brown YouTube videos. Leveraging data from the United Nations Office on Drugs and Crime (UNODC) and the all-seeing eye of YouTube, our research team delved into the statistical tango between these seemingly disparate spheres. Through rigorous analysis, we uncovered a surprising correlation coefficient of 0.8187380 and a significant p-value of less than 0.05 for the years spanning 2015 to 2022. While the notion of these variables being connected may initially raise eyebrows, our findings suggest that there may be more to this phenomenon than meets the eye. We invite our esteemed colleagues to join us as we traverse the enigmatic intersection of illicit crops and educational content, where statistical significance meets surprising synchronicity.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
The intersection of social phenomena and statistical analysis has long captivated researchers seeking to uncover unexpected connections and correlations. In this vein, our study embarks on an exploration of the peculiar relationship between Afghanistan's estimated opium production and the average number of comments on 3Blue1Brown YouTube videos. While these two variables may appear to inhabit distinct realms, our investigation reveals a surprising dance of data that challenges conventional notions of causality and coherence.
The intrigue surrounding Afghanistan's opium production, a stalwart presence in global illicit drug markets, is juxtaposed with the online engagement garnered by 3Blue1Brown, a popular Youtube channel renowned for its visually engaging mathematical explanations. The juxtaposition seems rather whimsical, akin to blending a complex differential equation with a poppy as an unexpected solution. Yet, as researchers, it behooves us to delve into the unexpected, to unravel the seemingly inexplicable, and to uncover correlations that may elicit both head-scratching and admiration.
As we embark on this quirky quest, we must acknowledge the skepticism that invariably accompanies such unlikely pairings. After all, statisticians and scientists are relentlessly cautious creatures, always wary of mistaking mere coincidence for genuine causality. Nevertheless, armed with a battalion of data points and an arsenal of statistical tests, we enter this uncharted territory with a mix of curiosity and conjecture.
Our unwavering commitment to the pursuit of knowledge impels us to navigate the treacherous waters where opium production and online engagement converge. Through meticulous analysis and unwavering scrutiny, we aim to shed light on the hidden interplay between these incongruous variables. Join us as we unravel the enigmatic relationship between the poppy and the playlist, where statistical peculiarities meet unexpected parallels, and where the scientific method rubs shoulders with serendipity.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

Smith et al. (2008) conducted a seminal study on the socioeconomic impact of Afghanistan's opium production, outlining the intricate web of factors that drive this illicit industry. Their comprehensive analysis sheds light on the multifaceted nature of opium cultivation, painting a complex portrait of the region's agricultural landscape. Additionally, Doe and Jones (2011) delved into the geopolitical implications of Afghanistan's opium trade, highlighting the far-reaching consequences of this pervasive issue.

Moving beyond the confines of empirical research, "The Power of Poppy" by Bloominfield (2015) offers a compelling exploration of the cultural and historical significance of the opium poppy, providing a rich tapestry of anecdotes and folklore surrounding this controversial crop. Similarly, "The Opium Equation" by Mathers (2013) takes a mathematical approach to dissecting the opium trade, blending the allure of mystery with the precision of numerical analysis.

In a more imaginative vein, "The Poppy Paradox" by Weaver (2007) and "Opium Odyssey" by Harper (2010) intricately weave tales of intrigue and adventure centered around the opium trade, capturing the enigmatic allure of this shadowy world.

On a tangential note, films such as "Traffic" and "Breaking Bad" offer cinematic forays into the realm of illicit drug production and trade, providing dramatic portrayals of the human stories entwined with the narcotics industry. While not directly related to our research, these cinematic explorations serve as testaments to the enduring fascination with the clandestine world of drug trafficking and its consequences.

Now that we have painted a broad strokes panorama of the literature, it's time to don our statistical spectacles and plunge into the unexplored territory where opium production and YouTube engagement collide. But, before we embark on this analytical odyssey, let's take a moment to appreciate the profound, albeit surreal, dance of data that awaits us.


Model: gpt-3.5-turbo-1106
System prompt: You are a goofy academic researcher writing an academic paper. You follow the rules, but you throw out convention regularly to make jokes and funny asides.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 Afghanistan's Estimated Opium Production and Average number of comments on 3Blue1Brown YouTube videos. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, 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 UNODC and YouTube . You used data from 2015 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]]
The Poppy and the Playlist: Unearthing the Unlikely Link between Afghanistan's Opium Production and 3Blue1Brown YouTube Engagement

[[ABSTRACT]]
In this paper, we undertaking a serious investigation into an unexpected and inherently whimsical pairing: Afghanistan's estimated opium production and the average number of comments on 3Blue1Brown YouTube videos. Leveraging data from the United Nations Office on Drugs and Crime (UNODC) and the all-seeing eye of YouTube, our research team delved into the statistical tango between these seemingly disparate spheres. Through rigorous analysis, we uncovered a surprising correlation coefficient of 0.8187380 and a significant p-value of less than 0.05 for the years spanning 2015 to 2022. While the notion of these variables being connected may initially raise eyebrows, our findings suggest that there may be more to this phenomenon than meets the eye. We invite our esteemed colleagues to join us as we traverse the enigmatic intersection of illicit crops and educational content, where statistical significance meets surprising synchronicity.

[[INTRODUCTION]]
The intersection of social phenomena and statistical analysis has long captivated researchers seeking to uncover unexpected connections and correlations. In this vein, our study embarks on an exploration of the peculiar relationship between Afghanistan's estimated opium production and the average number of comments on 3Blue1Brown YouTube videos. While these two variables may appear to inhabit distinct realms, our investigation reveals a surprising dance of data that challenges conventional notions of causality and coherence.
The intrigue surrounding Afghanistan's opium production, a stalwart presence in global illicit drug markets, is juxtaposed with the online engagement garnered by 3Blue1Brown, a popular Youtube channel renowned for its visually engaging mathematical explanations. The juxtaposition seems rather whimsical, akin to blending a complex differential equation with a poppy as an unexpected solution. Yet, as researchers, it behooves us to delve into the unexpected, to unravel the seemingly inexplicable, and to uncover correlations that may elicit both head-scratching and admiration.
As we embark on this quirky quest, we must acknowledge the skepticism that invariably accompanies such unlikely pairings. After all, statisticians and scientists are relentlessly cautious creatures, always wary of mistaking mere coincidence for genuine causality. Nevertheless, armed with a battalion of data points and an arsenal of statistical tests, we enter this uncharted territory with a mix of curiosity and conjecture.
Our unwavering commitment to the pursuit of knowledge impels us to navigate the treacherous waters where opium production and online engagement converge. Through meticulous analysis and unwavering scrutiny, we aim to shed light on the hidden interplay between these incongruous variables. Join us as we unravel the enigmatic relationship between the poppy and the playlist, where statistical peculiarities meet unexpected parallels, and where the scientific method rubs shoulders with serendipity.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[METHODOLOGY]

To untangle the perplexing web of causation or mere coincidence between Afghanistan's estimated opium production and the average number of comments on 3Blue1Brown YouTube videos, our research team engaged in a comprehensive and zany approach combining data collection, statistical analysis, and a touch of whimsy.

Data Collection:
Our data collection process resembled a treasure hunt, with our team scouring the internet for relevant information like intrepid adventurers seeking the fabled city of El Dorado. The primary sources of our data were the United Nations Office on Drugs and Crime (UNODC) for opium production statistics and the YouTube platform for 3Blue1Brown engagement metrics. We pored over reports, articles, and comment sections, diligently seeking the crucial puzzle pieces that would shed light on this curious correlation.

Statistical Analysis:
Armed with an assortment of statistical tools and a heaping dose of skepticism, we set out to analyze the collected data. Our analytical approach combined an array of regression models, correlation analyses, and time series examinations. We sliced and diced the data with the precision of a master chef dicing onions, carefully scrutinizing each statistical test for meaningful patterns and relationships. With the fervor of a detective solving a perplexing crime, we meticulously combed through the data, unraveling the threads of connection between opium production and YouTube engagement.

Temporal Considerations:
Given the temporal nature of both opium production and YouTube engagement, our analysis encompassed the years 2015 to 2022. This timeframe provided a robust canvas on which to paint the evolving relationship between these seemingly incongruous variables. Like time-traveling statisticians, we journeyed across the temporal landscape of data, mindful of the dynamic interplay between these variables across different years.

Control Variables:
To bolster the credibility of our findings and fend off potential confounders, we also considered relevant control variables such as global economic trends, internet usage patterns, and the proliferation of mathematical curiosity. By including these control variables in our analysis, we sought to ensure that the observed relationship between opium production and YouTube engagement was not merely a fluke but a bona fide statistical marvel.

Ethical Considerations:
In our pursuit of quirky correlations, we maintained a steadfast commitment to research ethics, ensuring that our data collection and analysis adhered to the highest standards of academic integrity. We approached this peculiar research endeavor with a blend of curiosity, caution, and a dash of humor, recognizing the unusual nature of our pursuit while upholding the principles of objective inquiry.

In sum, our methodology combined the rigor of traditional statistical analysis with a dash of daring and a sprinkle of whimsy, encapsulating the spirit of scientific inquiry as we delved into the unexpected realm where poppies and playlists converge.


Model: gpt-3.5-turbo-1106
System prompt: You are a goofy academic researcher writing an academic paper. You follow the rules, but you throw out convention regularly to make jokes and funny asides.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 Afghanistan's Estimated Opium Production and Average number of comments on 3Blue1Brown YouTube videos. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, 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 UNODC and YouTube .

For the time period 2015 to 2022, you found a correlation 0.8187380, r-squared of 0.6703319, and p < 0.05.

One figure will be included. The figure (Fig. 1) is a scatterplot showing the strong correlation between the two variables. You don't need to specify where; I will add the figure.

Here is the title and abstract of the paper:
[[TITLE]]
The Poppy and the Playlist: Unearthing the Unlikely Link between Afghanistan's Opium Production and 3Blue1Brown YouTube Engagement

[[ABSTRACT]]
In this paper, we undertaking a serious investigation into an unexpected and inherently whimsical pairing: Afghanistan's estimated opium production and the average number of comments on 3Blue1Brown YouTube videos. Leveraging data from the United Nations Office on Drugs and Crime (UNODC) and the all-seeing eye of YouTube, our research team delved into the statistical tango between these seemingly disparate spheres. Through rigorous analysis, we uncovered a surprising correlation coefficient of 0.8187380 and a significant p-value of less than 0.05 for the years spanning 2015 to 2022. While the notion of these variables being connected may initially raise eyebrows, our findings suggest that there may be more to this phenomenon than meets the eye. We invite our esteemed colleagues to join us as we traverse the enigmatic intersection of illicit crops and educational content, where statistical significance meets surprising synchronicity.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
The intersection of social phenomena and statistical analysis has long captivated researchers seeking to uncover unexpected connections and correlations. In this vein, our study embarks on an exploration of the peculiar relationship between Afghanistan's estimated opium production and the average number of comments on 3Blue1Brown YouTube videos. While these two variables may appear to inhabit distinct realms, our investigation reveals a surprising dance of data that challenges conventional notions of causality and coherence.
The intrigue surrounding Afghanistan's opium production, a stalwart presence in global illicit drug markets, is juxtaposed with the online engagement garnered by 3Blue1Brown, a popular Youtube channel renowned for its visually engaging mathematical explanations. The juxtaposition seems rather whimsical, akin to blending a complex differential equation with a poppy as an unexpected solution. Yet, as researchers, it behooves us to delve into the unexpected, to unravel the seemingly inexplicable, and to uncover correlations that may elicit both head-scratching and admiration.
As we embark on this quirky quest, we must acknowledge the skepticism that invariably accompanies such unlikely pairings. After all, statisticians and scientists are relentlessly cautious creatures, always wary of mistaking mere coincidence for genuine causality. Nevertheless, armed with a battalion of data points and an arsenal of statistical tests, we enter this uncharted territory with a mix of curiosity and conjecture.
Our unwavering commitment to the pursuit of knowledge impels us to navigate the treacherous waters where opium production and online engagement converge. Through meticulous analysis and unwavering scrutiny, we aim to shed light on the hidden interplay between these incongruous variables. Join us as we unravel the enigmatic relationship between the poppy and the playlist, where statistical peculiarities meet unexpected parallels, and where the scientific method rubs shoulders with serendipity.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The bountiful harvest of data reaped by our research team yielded a correlation coefficient of 0.8187380 between Afghanistan's estimated opium production and the average number of comments on 3Blue1Brown YouTube videos. This robust correlation indicates a strong positive relationship between these seemingly unrelated variables, defying the traditional boundaries of statistical analysis and conjuring up images of poppies dancing in harmony with mathematical musings.

Furthermore, the r-squared value of 0.6703319 suggests that approximately 67% of the variability in the average number of comments on 3Blue1Brown YouTube videos can be explained by changes in Afghanistan's estimated opium production. It's as if the opium poppy fields themselves are whispering cryptic mathematical secrets to the digital denizens, evoking a whimsical and entirely unexpected synergy.

In the realm of statistical significance, our analysis revealed a p-value of less than 0.05, underscoring the notion that this correlation is not a mere statistical fluke or an artifact of random chance. It's akin to stumbling upon a puzzling theorem in the fields of poppy cultivation and digital discourse, beckoning further exploration and contemplation. The odds of such an alliance occurring by pure happenstance are as slim as a single poppy seed in a haystack.

These results are visually encapsulated in Figure 1, a scatterplot illustrating the compelling correlation between Afghanistan's estimated opium production and the average number of comments on 3Blue1Brown YouTube videos. The scatterplot exudes an air of whimsy, as if the data points themselves are engaged in an elegant waltz of statistical significance, where the y-axis represents the enchanting world of mathematical enlightenment and the x-axis embodies the enigmatic fields of opium cultivation.

In light of these unexpected findings, one cannot help but marvel at the peculiar intersection of these disparate domains, where the opulent opium fields of Afghanistan and the captivating content of 3Blue1Brown videos elegantly converge in the empirical embrace of correlation. This unorthodox pairing of variables alludes to a deeper, mysterious narrative, a tale of statistical synchronicity that transcends rational explanation and embraces the serendipitous harmony of science's unpredictable cadence.


Model: gpt-3.5-turbo-1106
System prompt: You are a goofy academic researcher writing an academic paper. You follow the rules, but you throw out convention regularly to make jokes and funny asides.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 Afghanistan's Estimated Opium Production and Average number of comments on 3Blue1Brown YouTube videos. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, 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]]
The Poppy and the Playlist: Unearthing the Unlikely Link between Afghanistan's Opium Production and 3Blue1Brown YouTube Engagement

[[ABSTRACT]]
In this paper, we undertaking a serious investigation into an unexpected and inherently whimsical pairing: Afghanistan's estimated opium production and the average number of comments on 3Blue1Brown YouTube videos. Leveraging data from the United Nations Office on Drugs and Crime (UNODC) and the all-seeing eye of YouTube, our research team delved into the statistical tango between these seemingly disparate spheres. Through rigorous analysis, we uncovered a surprising correlation coefficient of 0.8187380 and a significant p-value of less than 0.05 for the years spanning 2015 to 2022. While the notion of these variables being connected may initially raise eyebrows, our findings suggest that there may be more to this phenomenon than meets the eye. We invite our esteemed colleagues to join us as we traverse the enigmatic intersection of illicit crops and educational content, where statistical significance meets surprising synchronicity.

[[LITERATURE REVIEW]]
Smith et al. (2008) conducted a seminal study on the socioeconomic impact of Afghanistan's opium production, outlining the intricate web of factors that drive this illicit industry. Their comprehensive analysis sheds light on the multifaceted nature of opium cultivation, painting a complex portrait of the region's agricultural landscape. Additionally, Doe and Jones (2011) delved into the geopolitical implications of Afghanistan's opium trade, highlighting the far-reaching consequences of this pervasive issue.
Moving beyond the confines of empirical research, "The Power of Poppy" by Bloominfield (2015) offers a compelling exploration of the cultural and historical significance of the opium poppy, providing a rich tapestry of anecdotes and folklore surrounding this controversial crop. Similarly, "The Opium Equation" by Mathers (2013) takes a mathematical approach to dissecting the opium trade, blending the allure of mystery with the precision of numerical analysis.
In a more imaginative vein, "The Poppy Paradox" by Weaver (2007) and "Opium Odyssey" by Harper (2010) intricately weave tales of intrigue and adventure centered around the opium trade, capturing the enigmatic allure of this shadowy world.
On a tangential note, films such as "Traffic" and "Breaking Bad" offer cinematic forays into the realm of illicit drug production and trade, providing dramatic portrayals of the human stories entwined with the narcotics industry. While not directly related to our research, these cinematic explorations serve as testaments to the enduring fascination with the clandestine world of drug trafficking and its consequences.
Now that we have painted a broad strokes panorama of the literature, it's time to don our statistical spectacles and plunge into the unexplored territory where opium production and YouTube engagement collide. But, before we embark on this analytical odyssey, let's take a moment to appreciate the profound, albeit surreal, dance of data that awaits us.

[[RESULTS]]
The bountiful harvest of data reaped by our research team yielded a correlation coefficient of 0.8187380 between Afghanistan's estimated opium production and the average number of comments on 3Blue1Brown YouTube videos. This robust correlation indicates a strong positive relationship between these seemingly unrelated variables, defying the traditional boundaries of statistical analysis and conjuring up images of poppies dancing in harmony with mathematical musings.
Furthermore, the r-squared value of 0.6703319 suggests that approximately 67% of the variability in the average number of comments on 3Blue1Brown YouTube videos can be explained by changes in Afghanistan's estimated opium production. It's as if the opium poppy fields themselves are whispering cryptic mathematical secrets to the digital denizens, evoking a whimsical and entirely unexpected synergy.
In the realm of statistical significance, our analysis revealed a p-value of less than 0.05, underscoring the notion that this correlation is not a mere statistical fluke or an artifact of random chance. It's akin to stumbling upon a puzzling theorem in the fields of poppy cultivation and digital discourse, beckoning further exploration and contemplation. The odds of such an alliance occurring by pure happenstance are as slim as a single poppy seed in a haystack.
These results are visually encapsulated in Figure 1, a scatterplot illustrating the compelling correlation between Afghanistan's estimated opium production and the average number of comments on 3Blue1Brown YouTube videos. The scatterplot exudes an air of whimsy, as if the data points themselves are engaged in an elegant waltz of statistical significance, where the y-axis represents the enchanting world of mathematical enlightenment and the x-axis embodies the enigmatic fields of opium cultivation.
In light of these unexpected findings, one cannot help but marvel at the peculiar intersection of these disparate domains, where the opulent opium fields of Afghanistan and the captivating content of 3Blue1Brown videos elegantly converge in the empirical embrace of correlation. This unorthodox pairing of variables alludes to a deeper, mysterious narrative, a tale of statistical synchronicity that transcends rational explanation and embraces the serendipitous harmony of science's unpredictable cadence.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

Our findings provide empirical support for the unexpected correlation between Afghanistan's estimated opium production and the average number of comments on 3Blue1Brown YouTube videos, echoing the profound interconnectedness of seemingly unrelated phenomena. This whimsical dance of data not only aligns with previous research showcasing the multifaceted nature of opium production but also underscores the significance of digital engagement in modern discourse.

Harkening back to the literature review, the enigmatic allure of the opium poppy, as illustrated by Bloominfield (2015), seems to permeate the digital realms, captivating viewers with a magnetic pull akin to the historical and cultural significance attributed to this controversial crop. In a parallel yet lighthearted vein, Weaver's (2007) "The Poppy Paradox" provides a prescient foreshadowing of the statistical conundrum we have stumbled upon – the paradoxical yet undeniable association between opium and online interaction.

The robust correlation coefficient and r-squared value affirm the substantive interplay between Afghanistan's opium production and the virtual vivacity of 3Blue1Brown YouTube videos, akin to unraveling a mathematical mystery disguised amidst the opium-laden fields. These statistical revelations mirror Mathers' (2013) numerical analysis in "The Opium Equation," infusing an unexpected twist of statistical intrigue into the traditionally clandestine world of opium trade and cultivation.

It's as if the opium-laden winds of Afghanistan carry with them not just the potent fragrance of flora, but a whisper of statistical harmony, as if the very essence of mathematical elegance were intermingling with the opulent opium fields, inspiring a surge of online engagement. The p-value, akin to an elusive treasure hidden within a statistical labyrinth, underscores the improbable yet unmistakable connection between these contrasting realms, inviting further contemplation and exploration.

In the realm of nontraditional correlations, our study sheds light on the serendipitous convergence of opium production and YouTube engagement, unraveling an unexpected narrative in the grand tapestry of statistical synchronicity. This unconventional pairing challenges traditional paradigms, coaxing researchers and academicians to consider the far-reaching implications of unanticipated correlations and to probe the elusive interstices of statistical significance with a whimsical spirit.

As we embark on this scholarly odyssey, let us revel in the delightful unpredictability of statistical pursuit and the enchanting mysteries hidden within the symphony of data, where the opium-laden fields and the digital discourse join hands in a dance of statistical significance.


Model: gpt-3.5-turbo-1106
System prompt: You are a goofy academic researcher writing an academic paper. You follow the rules, but you throw out convention regularly to make jokes and funny asides.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 Afghanistan's Estimated Opium Production and Average number of comments on 3Blue1Brown YouTube videos. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, 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]]
The Poppy and the Playlist: Unearthing the Unlikely Link between Afghanistan's Opium Production and 3Blue1Brown YouTube Engagement

[[ABSTRACT]]
In this paper, we undertaking a serious investigation into an unexpected and inherently whimsical pairing: Afghanistan's estimated opium production and the average number of comments on 3Blue1Brown YouTube videos. Leveraging data from the United Nations Office on Drugs and Crime (UNODC) and the all-seeing eye of YouTube, our research team delved into the statistical tango between these seemingly disparate spheres. Through rigorous analysis, we uncovered a surprising correlation coefficient of 0.8187380 and a significant p-value of less than 0.05 for the years spanning 2015 to 2022. While the notion of these variables being connected may initially raise eyebrows, our findings suggest that there may be more to this phenomenon than meets the eye. We invite our esteemed colleagues to join us as we traverse the enigmatic intersection of illicit crops and educational content, where statistical significance meets surprising synchronicity.

[[INTRDUCTION]]
The intersection of social phenomena and statistical analysis has long captivated researchers seeking to uncover unexpected connections and correlations. In this vein, our study embarks on an exploration of the peculiar relationship between Afghanistan's estimated opium production and the average number of comments on 3Blue1Brown YouTube videos. While these two variables may appear to inhabit distinct realms, our investigation reveals a surprising dance of data that challenges conventional notions of causality and coherence.
The intrigue surrounding Afghanistan's opium production, a stalwart presence in global illicit drug markets, is juxtaposed with the online engagement garnered by 3Blue1Brown, a popular Youtube channel renowned for its visually engaging mathematical explanations. The juxtaposition seems rather whimsical, akin to blending a complex differential equation with a poppy as an unexpected solution. Yet, as researchers, it behooves us to delve into the unexpected, to unravel the seemingly inexplicable, and to uncover correlations that may elicit both head-scratching and admiration.
As we embark on this quirky quest, we must acknowledge the skepticism that invariably accompanies such unlikely pairings. After all, statisticians and scientists are relentlessly cautious creatures, always wary of mistaking mere coincidence for genuine causality. Nevertheless, armed with a battalion of data points and an arsenal of statistical tests, we enter this uncharted territory with a mix of curiosity and conjecture.
Our unwavering commitment to the pursuit of knowledge impels us to navigate the treacherous waters where opium production and online engagement converge. Through meticulous analysis and unwavering scrutiny, we aim to shed light on the hidden interplay between these incongruous variables. Join us as we unravel the enigmatic relationship between the poppy and the playlist, where statistical peculiarities meet unexpected parallels, and where the scientific method rubs shoulders with serendipity.

[[RESULTS]]
The bountiful harvest of data reaped by our research team yielded a correlation coefficient of 0.8187380 between Afghanistan's estimated opium production and the average number of comments on 3Blue1Brown YouTube videos. This robust correlation indicates a strong positive relationship between these seemingly unrelated variables, defying the traditional boundaries of statistical analysis and conjuring up images of poppies dancing in harmony with mathematical musings.
Furthermore, the r-squared value of 0.6703319 suggests that approximately 67% of the variability in the average number of comments on 3Blue1Brown YouTube videos can be explained by changes in Afghanistan's estimated opium production. It's as if the opium poppy fields themselves are whispering cryptic mathematical secrets to the digital denizens, evoking a whimsical and entirely unexpected synergy.
In the realm of statistical significance, our analysis revealed a p-value of less than 0.05, underscoring the notion that this correlation is not a mere statistical fluke or an artifact of random chance. It's akin to stumbling upon a puzzling theorem in the fields of poppy cultivation and digital discourse, beckoning further exploration and contemplation. The odds of such an alliance occurring by pure happenstance are as slim as a single poppy seed in a haystack.
These results are visually encapsulated in Figure 1, a scatterplot illustrating the compelling correlation between Afghanistan's estimated opium production and the average number of comments on 3Blue1Brown YouTube videos. The scatterplot exudes an air of whimsy, as if the data points themselves are engaged in an elegant waltz of statistical significance, where the y-axis represents the enchanting world of mathematical enlightenment and the x-axis embodies the enigmatic fields of opium cultivation.
In light of these unexpected findings, one cannot help but marvel at the peculiar intersection of these disparate domains, where the opulent opium fields of Afghanistan and the captivating content of 3Blue1Brown videos elegantly converge in the empirical embrace of correlation. This unorthodox pairing of variables alludes to a deeper, mysterious narrative, a tale of statistical synchronicity that transcends rational explanation and embraces the serendipitous harmony of science's unpredictable cadence.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

In conclusion, our exploration of the perplexing relationship between Afghanistan's estimated opium production and the average number of comments on 3Blue1Brown YouTube videos has unveiled a surprising correlation, challenging traditional expectations of statistical concordance. The robust correlation coefficient and significant p-value beckon us to consider the unexpected synergy between the opium poppy and mathematical musings, akin to a whimsical sonnet composed by the hands of statistical fate.

Our findings illuminate a captivating interplay, where the opulent opium fields of Afghanistan dance in statistical harmony with the captivating numerical narratives of 3Blue1Brown videos. As we unravel this enigmatic relationship, we find ourselves pondering the serendipitous convergence of seemingly incongruous variables, much like stumbling upon a mischievous equation with a poppy as an unexpected solution.

However, one cannot help but appreciate the unforeseen synchronicity at play here, reminiscent of unraveling a mathematical riddle in the soil of opium cultivation. The allure of this statistical tango compels us to advocate for the exploration of unlikely correlations, for it is in these peculiar pairings that the unexpected tales of statistical serendipity unfold.

In light of these remarkable revelations, we assert that no further research is needed in this domain, as the unlikely connection between Afghanistan's opium production and 3Blue1Brown YouTube engagement has been thoroughly established. And after all, why look for more connections when this one is already "popping" with statistical significance? The data has certainly given us food for thought – or perhaps, in this case, "poppy" for thought!


Model: gpt-3.5-turbo-1106
System prompt: You provide fictional names of academic journals. You say nothing else, and you do not chat with the user.
User prompt: Please provide the name of a funny but plausible sounding research, scientific, or academic journal that would publish a paper entited The Poppy and the Playlist: Unearthing the Unlikely Link between Afghanistan's Opium Production and 3Blue1Brown YouTube Engagement. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Unconventional Interdisciplinary 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 The Poppy and the Playlist: Unearthing the Unlikely Link between Afghanistan's Opium Production and 3Blue1Brown YouTube Engagement. Respond only with the name of a fictional organization.

ChatGPT:

The Institute for Applied Ethnomusicology and Botanical Studies


Model: gpt-3.5-turbo-1106
System prompt: You provide potential search keywords separated by commas. You say nothing else, and you do not chat with the user.
User prompt: Please provide potential search keywords for a paper titled The Poppy and the Playlist: Unearthing the Unlikely Link between Afghanistan's Opium Production and 3Blue1Brown YouTube Engagement with an abstract of In this paper, we undertaking a serious investigation into an unexpected and inherently whimsical pairing: Afghanistan's estimated opium production and the average number of comments on 3Blue1Brown YouTube videos. Leveraging data from the United Nations Office on Drugs and Crime (UNODC) and the all-seeing eye of YouTube, our research team delved into the statistical tango between these seemingly disparate spheres. Through rigorous analysis, we uncovered a surprising correlation coefficient of 0.8187380 and a significant p-value of less than 0.05 for the years spanning 2015 to 2022. While the notion of these variables being connected may initially raise eyebrows, our findings suggest that there may be more to this phenomenon than meets the eye. We invite our esteemed colleagues to join us as we traverse the enigmatic intersection of illicit crops and educational content, where statistical significance meets surprising synchronicity.

ChatGPT:

Afghanistan opium production, 3Blue1Brown YouTube, UNODC data, YouTube comments, statistical analysis, correlation coefficient, p-value, data analysis, unexpected correlations, illicit crops, educational content, unusual connections

*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

Afghanistan's Estimated Opium Production
Source: UNODC
See what else correlates with Afghanistan's Estimated Opium Production

Average number of comments on 3Blue1Brown YouTube videos
Detailed data title: Average number of comments on 3Blue1Brown YouTube videos.
Source: YouTube
See what else correlates with Average number of comments on 3Blue1Brown YouTube videos

Correlation r = 0.8187380 (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.6703319 (Coefficient of determination)
This means 67% of the change in the one variable (i.e., Average number of comments on 3Blue1Brown YouTube videos) is predictable based on the change in the other (i.e., Afghanistan's Estimated Opium Production) over the 8 years from 2015 through 2022.

p < 0.05, which statistically significant(Null hypothesis significance test)
The p-value is 0.013. 0.0129381175594306360000000000
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.82 in 1.3% of random cases. Said differently, if you correlated 77 random variables Which I absolutely did.
with the same 7 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 7 because we have two variables measured over a period of 8 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.27, 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.
20152016201720182019202020212022
Afghanistan's Estimated Opium Production (Metric tons)33004800900064006400630068006200
Average number of comments on 3Blue1Brown YouTube videos (Average Comments)1625.431850.584168.822696.383049.932365.292178.143570.88




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. Very low n: There are not many data points included in this analysis. Even if the p-value is high, we should be suspicious of using so few datapoints in a correlation.




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([3300,4800,9000,6400,6400,6300,6800,6200,])
array_2 = np.array([1625.43,1850.58,4168.82,2696.38,3049.93,2365.29,2178.14,3570.88,])
array_1_name = "Afghanistan's Estimated Opium Production"
array_2_name = "Average number of comments on 3Blue1Brown YouTube videos"

# 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 is stellar!


Correlation ID: 4946 · Black Variable ID: 36 · Red Variable ID: 25815
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0