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

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is The number of actors in Pennsylvania and the second variable is Average length of 3Blue1Brown YouTube videos.  The chart goes from 2015 to 2021, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

As the number of actors in Pennsylvania increased, there was a corresponding spike in demand for local theater productions. This surge in demand led to a shortage of available venues, prompting 3Blue1Brown to create longer videos to serve as makeshift theater performances, complete with dramatic mathematical explanations and the occasional plot twist. After all, when the show must go on, so must the mathematical insights! "The length of these videos is like a prime number - it just keeps getting longer and longer with no end in sight!"

Model: dalle-3
Prompt: Create an image that embodies the following scene: In a cozy theater in Pennsylvania, a group of actors gracefully performs on a dimly lit stage. The gentle ambiance of the theater is contrasted by the glow of a large screen displaying the 3Blue1Brown YouTube channel's distinctive logo. As the actors passionately convey their characters, mathematical motifs subtly intertwine with the narrative, captivating the audience. The length of the performances steadily grows, echoing the surge in demand for theater productions and the increasing length of 3Blue1Brown videos. The scene is imbued with an aura of creativity and intertwining passions. This prompt aims to explore the unique concept of the interplay between traditional theater and innovative educational content through a captivating and visually engaging image. 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: The number of actors in Pennsylvania and Average length of 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: Realistic A TIME magazine cover image Charcoal Data cyber art High-tech
ChatGPT: A TIME magazine cover image

Model: gpt-3.5-turbo-1106
System prompt: You describe simple visual scenes that depict the two variables stated. You combine both variables into one scene.
User prompt: Please describe a visual scene that prominently depicts both The number of actors in Pennsylvania and Average length of 3Blue1Brown YouTube videos, in the following situation: As the number of actors in Pennsylvania increased, there was a corresponding spike in demand for local theater productions. This surge in demand led to a shortage of available venues, prompting 3Blue1Brown to create longer videos to serve as makeshift theater performances, complete with dramatic mathematical explanations and the occasional plot twist. After all, when the show must go on, so must the mathematical insights! "The length of these videos is like a prime number - it just keeps getting longer and longer with no end in sight!". Keep the description simple.
ChatGPT: I see a scene in Pennsylvania where a group of actors is performing on a stage in a local theater, while in the background, the 3Blue1Brown YouTube channel's logo is displayed on a large screen. The actors are doing a dramatic scene, and the average length of their performances seems to be increasing as the demand for theater productions surges. The 3Blue1Brown videos, usually known for their mathematical explanations, are now getting longer, serving as makeshift theater performances. Math concepts are creatively integrated into the videos, and the length of the videos seems to keep growing like an ever-expanding prime number.

Model: gpt-3.5-turbo-1106
System prompt: You write and improve image generation prompts for DALLE-3. You maintain the same subjects, but enhance the visuals.
User prompt: Please respond with an image generation prompt that would be likely to create an interesting visual using DALLE-3, using the following style: [ A TIME magazine cover image ] and depicting this scene: I see a scene in Pennsylvania where a group of actors is performing on a stage in a local theater, while in the background, the 3Blue1Brown YouTube channel's logo is displayed on a large screen. The actors are doing a dramatic scene, and the average length of their performances seems to be increasing as the demand for theater productions surges. The 3Blue1Brown videos, usually known for their mathematical explanations, are now getting longer, serving as makeshift theater performances. Math concepts are creatively integrated into the videos, and the length of the videos seems to keep growing like an ever-expanding prime number. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Create an image that embodies the following scene: In a cozy theater in Pennsylvania, a group of actors gracefully performs on a dimly lit stage. The gentle ambiance of the theater is contrasted by the glow of a large screen displaying the 3Blue1Brown YouTube channel's distinctive logo. As the actors passionately convey their characters, mathematical motifs subtly intertwine with the narrative, captivating the audience. The length of the performances steadily grows, echoing the surge in demand for theater productions and the increasing length of 3Blue1Brown videos. The scene is imbued with an aura of creativity and intertwining passions. This prompt aims to explore the unique concept of the interplay between traditional theater and innovative educational content through a captivating and visually engaging image.

*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 The number of actors in Pennsylvania caused Average length of 3Blue1Brown YouTube videos to increase. Add a funny one-liner at the end.

AI academic paper

(Because p < 0.01)
The Theatrical Tailor: Analyzing the Relationship Between the Number of Actors in Pennsylvania and the Average Length of 3Blue1Brown YouTube Videos

The Journal of Theatrical Statistics and YouTube Analysis

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 The number of actors in Pennsylvania and Average length of 3Blue1Brown YouTube videos. Make lots of jokes, goofy observations, and puns.

Make the title seem clever.

Your research team used data from Bureau of Larbor Statistics and YouTube to assess this nagging question. You found a correlation coefficient of 0.9860198 and p < 0.01 for 2015 to 2021.

Please respond in this format (replace "Lorem ipsum dolor sit" with your title and abstract)

[[TITLE]]
Lorem ipsum dolor sit

[[ABSTRACT]]
Lorem ipsum dolor sit



ChatGPT:
[[TITLE]]
The Theatrical Tailor: Analyzing the Relationship Between the Number of Actors in Pennsylvania and the Average Length of 3Blue1Brown YouTube Videos

[[ABSTRACT]]
Lights, camera, regression! In this paper, we delve into the surprising world of statistical connections by examining the peculiar link between the number of actors in Pennsylvania and the average length of 3Blue1Brown YouTube videos. Employing data from the Bureau of Labor Statistics and the depths of YouTube, our research team conducted a thorough analysis, uncovering a correlation coefficient of 0.9860198 and a p-value less than 0.01 for the years 2015 to 2021.

With a flair for the dramatic, our findings shed light on the intriguing relationship between the performing arts in Pennsylvania and the captivating content produced by 3Blue1Brown. Prepare to be amused and amazed by the uncanny correlations and potential comedic elements lurking within the data. This paper adds a dash of theatricality to the world of statistical research, proving that even in the realm of academia, all the world’s a stage – and all the data merely players!


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 The number of actors in Pennsylvania and Average length of 3Blue1Brown YouTube videos. 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]]
The Theatrical Tailor: Analyzing the Relationship Between the Number of Actors in Pennsylvania and the Average Length of 3Blue1Brown YouTube Videos

[[ABSTRACT]]
Lights, camera, regression! In this paper, we delve into the surprising world of statistical connections by examining the peculiar link between the number of actors in Pennsylvania and the average length of 3Blue1Brown YouTube videos. Employing data from the Bureau of Labor Statistics and the depths of YouTube, our research team conducted a thorough analysis, uncovering a correlation coefficient of 0.9860198 and a p-value less than 0.01 for the years 2015 to 2021.

With a flair for the dramatic, our findings shed light on the intriguing relationship between the performing arts in Pennsylvania and the captivating content produced by 3Blue1Brown. Prepare to be amused and amazed by the uncanny correlations and potential comedic elements lurking within the data. This paper adds a dash of theatricality to the world of statistical research, proving that even in the realm of academia, all the world’s a stage – and all the data merely players!

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

The world of statistical research is often portrayed as a serious and stoic endeavor, with researchers meticulously poring over data, delving into the depths of correlations and trends. However, our team of intrepid researchers took a different approach, embarking on a quest to uncover the unexpected and unusual. Our journey led us to the curious connection between the number of actors in Pennsylvania and the average length of 3Blue1Brown YouTube videos, a correlation that left us spellbound and in awe of the whimsical nature of statistical analysis.

As the curtains rose on our investigation, we were greeted by the peculiar and enchanting world of the performing arts in Pennsylvania. The state's stage was set with a diverse ensemble of actors, each bringing their unique flair and talent to the statistical scene. Meanwhile, in the digital realm, 3Blue1Brown's captivating videos on mathematics and science provided a captivating backdrop for our exploration.

To guide our inquiry, we turned to the Bureau of Labor Statistics, where the number of actors in Pennsylvania awaited their moment in the spotlight. Concurrently, the labyrinthine corridors of YouTube yielded the average length of 3Blue1Brown videos, each a meticulously crafted masterpiece of educational content. As we delved into the data, we were met with surprises at every turn, challenging our preconceived notions about statistical relationships and leaving us with a newfound appreciation for the unexpected.

In the following sections, we will regale you with our findings, showcasing the astonishing correlation coefficient of 0.9860198 that we unearthed and the p-value that danced its way to significance. Prepare to be entertained by the statistical theatrics that unfolded before us, as we shine a spotlight on the enthralling connection between the world of acting in Pennsylvania and the captivating creations of 3Blue1Brown. Join us as we embark on a whirlwind tour that will leave you applauding the unpredictability of statistical analysis and embracing the dramatic flair of correlation in all its comedic glory.


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 The number of actors in Pennsylvania and Average length of 3Blue1Brown YouTube videos. Make lots of jokes, goofy observations, and puns.

Speak in the present tense for this section (the authors find...), as is common in academic research paper literature reviews. Name the sources in a format similar to this: In "Book," the authors find lorem and ipsum.

Make up the lorem and ipsum part, but make it sound related to the topic at hand.

Start by naming serious-sounding studies by authors like Smith, Doe, and Jones - but then quickly devolve. Name some real non-fiction books that would be related to the topic. Then name some real fiction books that sound like they could be related. Then devolve ever further, and mention something completely ridiculous, like you conducted literature review by reading CVS receipts.

Here is the title and abstract of the paper:
[[TITLE]]
The Theatrical Tailor: Analyzing the Relationship Between the Number of Actors in Pennsylvania and the Average Length of 3Blue1Brown YouTube Videos

[[ABSTRACT]]
Lights, camera, regression! In this paper, we delve into the surprising world of statistical connections by examining the peculiar link between the number of actors in Pennsylvania and the average length of 3Blue1Brown YouTube videos. Employing data from the Bureau of Labor Statistics and the depths of YouTube, our research team conducted a thorough analysis, uncovering a correlation coefficient of 0.9860198 and a p-value less than 0.01 for the years 2015 to 2021.

With a flair for the dramatic, our findings shed light on the intriguing relationship between the performing arts in Pennsylvania and the captivating content produced by 3Blue1Brown. Prepare to be amused and amazed by the uncanny correlations and potential comedic elements lurking within the data. This paper adds a dash of theatricality to the world of statistical research, proving that even in the realm of academia, all the world’s a stage – and all the data merely players!

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
The world of statistical research is often portrayed as a serious and stoic endeavor, with researchers meticulously poring over data, delving into the depths of correlations and trends. However, our team of intrepid researchers took a different approach, embarking on a quest to uncover the unexpected and unusual. Our journey led us to the curious connection between the number of actors in Pennsylvania and the average length of 3Blue1Brown YouTube videos, a correlation that left us spellbound and in awe of the whimsical nature of statistical analysis.
As the curtains rose on our investigation, we were greeted by the peculiar and enchanting world of the performing arts in Pennsylvania. The state's stage was set with a diverse ensemble of actors, each bringing their unique flair and talent to the statistical scene. Meanwhile, in the digital realm, 3Blue1Brown's captivating videos on mathematics and science provided a captivating backdrop for our exploration.
To guide our inquiry, we turned to the Bureau of Labor Statistics, where the number of actors in Pennsylvania awaited their moment in the spotlight. Concurrently, the labyrinthine corridors of YouTube yielded the average length of 3Blue1Brown videos, each a meticulously crafted masterpiece of educational content. As we delved into the data, we were met with surprises at every turn, challenging our preconceived notions about statistical relationships and leaving us with a newfound appreciation for the unexpected.
In the following sections, we will regale you with our findings, showcasing the astonishing correlation coefficient of 0.9860198 that we unearthed and the p-value that danced its way to significance. Prepare to be entertained by the statistical theatrics that unfolded before us, as we shine a spotlight on the enthralling connection between the world of acting in Pennsylvania and the captivating creations of 3Blue1Brown. Join us as we embark on a whirlwind tour that will leave you applauding the unpredictability of statistical analysis and embracing the dramatic flair of correlation in all its comedic glory.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

In "Smith et al.," the authors find a deep and nuanced understanding of the performing arts landscape in Pennsylvania, highlighting the diverse array of theatrical endeavors and the vibrant community of actors that populate the state. Meanwhile, in the authoritative work of "Doe et al.," the intrinsic nature of educational YouTube content is dissected, revealing the intricate tapestry of instructional videos that captivate and educate audiences worldwide.

Moving beyond the realm of academic literature, real-world observations in "The Economics of Broadway" by Schumacher provide a compelling exploration of the economic impact of theater productions, offering a glimpse into the interconnected web of stage performances and financial dynamics. Additionally, "Mathematics in the Digital Age" by Jones offers a unique perspective on the dissemination of mathematical knowledge through online platforms, shedding light on the transformative potential of digital educational content.

Venturing into the realm of fiction, the timeless classic "The Phantom of the Opera" by Gaston Leroux exudes an aura of dramatic allure, drawing readers into the enigmatic world of theatrical intrigue. Simultaneously, "The Hitchhiker's Guide to the Galaxy" by Douglas Adams presents a whimsical narrative that transcends traditional boundaries, mirroring the unpredictability and humor inherent in statistical analysis.

As we peer beyond the conventional confines of scholarly literature, our research team also undertook an unconventional approach, scouring the expanse of CVS receipts in a quest for unexpected insights and obscure correlations. Despite the initial skepticism, the labyrinthine tapestry of purchase records revealed a startling revelation – a cryptic connection between the number of actors in Pennsylvania and the length of 3Blue1Brown YouTube videos, hidden amidst mundane purchases and discount offers.

In the amalgamation of traditional studies, literary escapades, and unconventional inquiries, our journey through the literature landscape has been as unpredictable as our research subject itself. Prepare to be transported into a world where statistical inquiry mingles with theatrical splendor, YouTube revelations, and the unlikeliest of sources, as we unravel the mesmerizing ties between Pennsylvania's performers and the mesmerizing content of 3Blue1Brown.


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 The number of actors in Pennsylvania and Average length of 3Blue1Brown YouTube videos. 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 Bureau of Larbor Statistics and YouTube . You used data from 2015 to 2021

Make up the research methods you don't know. Make them a bit goofy and convoluted.

Here is the title, abstract, and introduction of the paper:
[[TITLE]]
The Theatrical Tailor: Analyzing the Relationship Between the Number of Actors in Pennsylvania and the Average Length of 3Blue1Brown YouTube Videos

[[ABSTRACT]]
Lights, camera, regression! In this paper, we delve into the surprising world of statistical connections by examining the peculiar link between the number of actors in Pennsylvania and the average length of 3Blue1Brown YouTube videos. Employing data from the Bureau of Labor Statistics and the depths of YouTube, our research team conducted a thorough analysis, uncovering a correlation coefficient of 0.9860198 and a p-value less than 0.01 for the years 2015 to 2021.

With a flair for the dramatic, our findings shed light on the intriguing relationship between the performing arts in Pennsylvania and the captivating content produced by 3Blue1Brown. Prepare to be amused and amazed by the uncanny correlations and potential comedic elements lurking within the data. This paper adds a dash of theatricality to the world of statistical research, proving that even in the realm of academia, all the world’s a stage – and all the data merely players!

[[INTRODUCTION]]
The world of statistical research is often portrayed as a serious and stoic endeavor, with researchers meticulously poring over data, delving into the depths of correlations and trends. However, our team of intrepid researchers took a different approach, embarking on a quest to uncover the unexpected and unusual. Our journey led us to the curious connection between the number of actors in Pennsylvania and the average length of 3Blue1Brown YouTube videos, a correlation that left us spellbound and in awe of the whimsical nature of statistical analysis.
As the curtains rose on our investigation, we were greeted by the peculiar and enchanting world of the performing arts in Pennsylvania. The state's stage was set with a diverse ensemble of actors, each bringing their unique flair and talent to the statistical scene. Meanwhile, in the digital realm, 3Blue1Brown's captivating videos on mathematics and science provided a captivating backdrop for our exploration.
To guide our inquiry, we turned to the Bureau of Labor Statistics, where the number of actors in Pennsylvania awaited their moment in the spotlight. Concurrently, the labyrinthine corridors of YouTube yielded the average length of 3Blue1Brown videos, each a meticulously crafted masterpiece of educational content. As we delved into the data, we were met with surprises at every turn, challenging our preconceived notions about statistical relationships and leaving us with a newfound appreciation for the unexpected.
In the following sections, we will regale you with our findings, showcasing the astonishing correlation coefficient of 0.9860198 that we unearthed and the p-value that danced its way to significance. Prepare to be entertained by the statistical theatrics that unfolded before us, as we shine a spotlight on the enthralling connection between the world of acting in Pennsylvania and the captivating creations of 3Blue1Brown. Join us as we embark on a whirlwind tour that will leave you applauding the unpredictability of statistical analysis and embracing the dramatic flair of correlation in all its comedic glory.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

Our investigation into the whimsical relationship between the number of actors in Pennsylvania and the average length of 3Blue1Brown YouTube videos unfolded with the precision of a carefully choreographed ballet. Our data collection process had all the drama of a Shakespearean tragedy, with a touch of comedic relief thrown in for good measure.

To capture the essence of the performing arts in Pennsylvania, we turned to the Bureau of Labor Statistics and their treasure trove of employment data. Through a series of elaborate statistical pirouettes, we extracted the number of actors in the state for each year from 2015 to 2021. Each data point was a thespian waiting to take the stage, ready to unleash their statistical prowess.

Simultaneously, our foray into the world of YouTube statistics was akin to a quest for buried treasure in the digital age. Navigating the labyrinthine corridors of internet archives, we obtained the average length of 3Blue1Brown videos for the same time period. This endeavor had all the excitement of a swashbuckling adventure, with each video duration serving as a clue in our quest for statistical enlightenment.

With both sets of data in hand, we spun the threads of statistical significance, using a combination of regression analysis and time series modeling to unveil the captivating relationship between the two seemingly disparate variables. Our analysis was as meticulous as a masterful brushstroke on a canvas, capturing the essence of correlation with an artistic flair.

As we delved into the statistical depths, we encountered surprises that kept us on the edge of our seats, reminding us that the realm of correlation is akin to a rollercoaster ride of unpredictability. Our methods, though unconventional at times, led us to the undeniable conclusion that there exists a remarkable connection between the number of actors in Pennsylvania and the average length of 3Blue1Brown YouTube videos.

In the subsequent sections, we will present our findings in all their dramatic glory, shedding light on the captivating statistical relationship that emerged from our unorthodox journey. So prepare to be captivated by the marvels of statistical analysis and join us in celebrating the theatrical charm of correlation in its most unexpected forms.


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 The number of actors in Pennsylvania and Average length of 3Blue1Brown YouTube videos. 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 Bureau of Larbor Statistics and YouTube .

For the time period 2015 to 2021, you found a correlation 0.9860198, r-squared of 0.9722350, 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]]
The Theatrical Tailor: Analyzing the Relationship Between the Number of Actors in Pennsylvania and the Average Length of 3Blue1Brown YouTube Videos

[[ABSTRACT]]
Lights, camera, regression! In this paper, we delve into the surprising world of statistical connections by examining the peculiar link between the number of actors in Pennsylvania and the average length of 3Blue1Brown YouTube videos. Employing data from the Bureau of Labor Statistics and the depths of YouTube, our research team conducted a thorough analysis, uncovering a correlation coefficient of 0.9860198 and a p-value less than 0.01 for the years 2015 to 2021.

With a flair for the dramatic, our findings shed light on the intriguing relationship between the performing arts in Pennsylvania and the captivating content produced by 3Blue1Brown. Prepare to be amused and amazed by the uncanny correlations and potential comedic elements lurking within the data. This paper adds a dash of theatricality to the world of statistical research, proving that even in the realm of academia, all the world’s a stage – and all the data merely players!

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
The world of statistical research is often portrayed as a serious and stoic endeavor, with researchers meticulously poring over data, delving into the depths of correlations and trends. However, our team of intrepid researchers took a different approach, embarking on a quest to uncover the unexpected and unusual. Our journey led us to the curious connection between the number of actors in Pennsylvania and the average length of 3Blue1Brown YouTube videos, a correlation that left us spellbound and in awe of the whimsical nature of statistical analysis.
As the curtains rose on our investigation, we were greeted by the peculiar and enchanting world of the performing arts in Pennsylvania. The state's stage was set with a diverse ensemble of actors, each bringing their unique flair and talent to the statistical scene. Meanwhile, in the digital realm, 3Blue1Brown's captivating videos on mathematics and science provided a captivating backdrop for our exploration.
To guide our inquiry, we turned to the Bureau of Labor Statistics, where the number of actors in Pennsylvania awaited their moment in the spotlight. Concurrently, the labyrinthine corridors of YouTube yielded the average length of 3Blue1Brown videos, each a meticulously crafted masterpiece of educational content. As we delved into the data, we were met with surprises at every turn, challenging our preconceived notions about statistical relationships and leaving us with a newfound appreciation for the unexpected.
In the following sections, we will regale you with our findings, showcasing the astonishing correlation coefficient of 0.9860198 that we unearthed and the p-value that danced its way to significance. Prepare to be entertained by the statistical theatrics that unfolded before us, as we shine a spotlight on the enthralling connection between the world of acting in Pennsylvania and the captivating creations of 3Blue1Brown. Join us as we embark on a whirlwind tour that will leave you applauding the unpredictability of statistical analysis and embracing the dramatic flair of correlation in all its comedic glory.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The results of our investigation into the relationship between the number of actors in Pennsylvania and the average length of 3Blue1Brown YouTube videos have left us both astounded and amused. The correlation coefficient of 0.9860198 that we uncovered suggests a remarkably strong positive relationship between these seemingly unrelated variables. This finding may just be the best performance since Hamlet!

The r-squared value of 0.9722350 further emphasizes that the number of actors in Pennsylvania explains a whopping 97.22% of the variation in the average length of 3Blue1Brown videos. It's as if the actors are stealing the show, leaving just 2.78% of the stage for other potential factors to shine. Talk about a commanding presence!

Adding another layer of drama to our findings is the p-value of less than 0.01, indicating that the relationship between these variables is indeed statistically significant. It's like the actors and 3Blue1Brown are engaged in a mesmerizing dance, effortlessly waltzing their way into the spotlight of statistical significance.

To visually encapsulate the captivating correlation we discovered, we present Figure 1, a scatterplot illustrating the dazzling relationship between the number of actors in Pennsylvania and the average length of 3Blue1Brown videos. This figure is a testament to the enchanting narrative woven by the data, a tale as riveting as a thrilling Broadway production.

Our findings not only underscore the surprising statistical harmony between the performing arts in Pennsylvania and the educational prowess of 3Blue1Brown but also illuminate the potential for humor and unexpected connections within the realm of statistical analysis. As we take our final bow, we invite you to marvel at the unforeseen correlations that can emerge when we grant statistics a touch of theatrical flair. After all, as Shakespeare himself might have said, "All the world's a stage, and all the data merely players!"


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 The number of actors in Pennsylvania and Average length of 3Blue1Brown YouTube videos. 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]]
The Theatrical Tailor: Analyzing the Relationship Between the Number of Actors in Pennsylvania and the Average Length of 3Blue1Brown YouTube Videos

[[ABSTRACT]]
Lights, camera, regression! In this paper, we delve into the surprising world of statistical connections by examining the peculiar link between the number of actors in Pennsylvania and the average length of 3Blue1Brown YouTube videos. Employing data from the Bureau of Labor Statistics and the depths of YouTube, our research team conducted a thorough analysis, uncovering a correlation coefficient of 0.9860198 and a p-value less than 0.01 for the years 2015 to 2021.

With a flair for the dramatic, our findings shed light on the intriguing relationship between the performing arts in Pennsylvania and the captivating content produced by 3Blue1Brown. Prepare to be amused and amazed by the uncanny correlations and potential comedic elements lurking within the data. This paper adds a dash of theatricality to the world of statistical research, proving that even in the realm of academia, all the world’s a stage – and all the data merely players!

[[LITERATURE REVIEW]]
In "Smith et al.," the authors find a deep and nuanced understanding of the performing arts landscape in Pennsylvania, highlighting the diverse array of theatrical endeavors and the vibrant community of actors that populate the state. Meanwhile, in the authoritative work of "Doe et al.," the intrinsic nature of educational YouTube content is dissected, revealing the intricate tapestry of instructional videos that captivate and educate audiences worldwide.
Moving beyond the realm of academic literature, real-world observations in "The Economics of Broadway" by Schumacher provide a compelling exploration of the economic impact of theater productions, offering a glimpse into the interconnected web of stage performances and financial dynamics. Additionally, "Mathematics in the Digital Age" by Jones offers a unique perspective on the dissemination of mathematical knowledge through online platforms, shedding light on the transformative potential of digital educational content.
Venturing into the realm of fiction, the timeless classic "The Phantom of the Opera" by Gaston Leroux exudes an aura of dramatic allure, drawing readers into the enigmatic world of theatrical intrigue. Simultaneously, "The Hitchhiker's Guide to the Galaxy" by Douglas Adams presents a whimsical narrative that transcends traditional boundaries, mirroring the unpredictability and humor inherent in statistical analysis.
As we peer beyond the conventional confines of scholarly literature, our research team also undertook an unconventional approach, scouring the expanse of CVS receipts in a quest for unexpected insights and obscure correlations. Despite the initial skepticism, the labyrinthine tapestry of purchase records revealed a startling revelation – a cryptic connection between the number of actors in Pennsylvania and the length of 3Blue1Brown YouTube videos, hidden amidst mundane purchases and discount offers.
In the amalgamation of traditional studies, literary escapades, and unconventional inquiries, our journey through the literature landscape has been as unpredictable as our research subject itself. Prepare to be transported into a world where statistical inquiry mingles with theatrical splendor, YouTube revelations, and the unlikeliest of sources, as we unravel the mesmerizing ties between Pennsylvania's performers and the mesmerizing content of 3Blue1Brown.

[[RESULTS]]
The results of our investigation into the relationship between the number of actors in Pennsylvania and the average length of 3Blue1Brown YouTube videos have left us both astounded and amused. The correlation coefficient of 0.9860198 that we uncovered suggests a remarkably strong positive relationship between these seemingly unrelated variables. This finding may just be the best performance since Hamlet!
The r-squared value of 0.9722350 further emphasizes that the number of actors in Pennsylvania explains a whopping 97.22% of the variation in the average length of 3Blue1Brown videos. It's as if the actors are stealing the show, leaving just 2.78% of the stage for other potential factors to shine. Talk about a commanding presence!
Adding another layer of drama to our findings is the p-value of less than 0.01, indicating that the relationship between these variables is indeed statistically significant. It's like the actors and 3Blue1Brown are engaged in a mesmerizing dance, effortlessly waltzing their way into the spotlight of statistical significance.
To visually encapsulate the captivating correlation we discovered, we present Figure 1, a scatterplot illustrating the dazzling relationship between the number of actors in Pennsylvania and the average length of 3Blue1Brown videos. This figure is a testament to the enchanting narrative woven by the data, a tale as riveting as a thrilling Broadway production.
Our findings not only underscore the surprising statistical harmony between the performing arts in Pennsylvania and the educational prowess of 3Blue1Brown but also illuminate the potential for humor and unexpected connections within the realm of statistical analysis. As we take our final bow, we invite you to marvel at the unforeseen correlations that can emerge when we grant statistics a touch of theatrical flair. After all, as Shakespeare himself might have said, "All the world's a stage, and all the data merely players!"

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The results of our investigation have undeniably kindled the flames of curiosity and amusement, revealing a stunningly tight relationship between the number of actors in Pennsylvania and the average length of 3Blue1Brown YouTube videos. The correlation coefficient of 0.9860198 unveiled a match made in statistical heaven, with the two variables locking arms and dancing through the data like a well-rehearsed Broadway ensemble. We're talking about a correlation so strong, it's as if every actor in Pennsylvania has been cast in a leading role in the production of 3Blue1Brown's engaging content!

Building on prior research, the compelling work of "Smith et al." and "Doe et al." hinted at the potential interplay between the performing arts and educational content, while the economic insights from "The Economics of Broadway" by Schumacher and the pedagogical perspectives from "Mathematics in the Digital Age" by Jones provided a backdrop of diverse influences. It's as though the scholarly aspirations of educational YouTube content found a serendipitous stage in the theatrical landscape of Pennsylvania, producing a harmonious duet of knowledge and performance.

Digging deeper into the literature, our unconventional whimsical excursion into fictional realms and the labyrinthine alleys of CVS receipts unexpectedly converged with our research findings. Who would have thought that the enigmatic allure of "The Phantom of the Opera" and the whimsical narrative of "The Hitchhiker's Guide to the Galaxy" could foreshadow the intriguing connection we uncovered? It's as if the statistical stars aligned, casting a radiant spotlight on the interwoven narratives of the performing arts and digital education.

The visually captivating scatterplot depicted in Figure 1 serves as a masterpiece on its own, graphically immortalizing the enchanting relationship between these unlikely bedfellows. The data unveiled a performance worthy of a standing ovation, showcasing the mesmerizing dynamics between the number of actors in Pennsylvania and the length of 3Blue1Brown videos. It's as if the data itself put on a show, delivering a surprising plot twist that would rival the most audacious of theatrical productions.

Our findings have not only illuminated the statistical artistry of the unlikely connection between Pennsylvania's performers and 3Blue1Brown's educational content but have also unmasked the potential for humor and unexpected correlations within the realm of statistical analysis. It appears that even in the scientific world, where gravity is paramount, there's always room for a little statistical slapstick. As we bow out for now, we leave you with the tantalizing knowledge that the world of data may just be the most dramatic stage of all, where the unlikeliest of players can steal the show and leave us all applauding in sheer wonder!


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 The number of actors in Pennsylvania and Average length of 3Blue1Brown YouTube videos. 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]]
The Theatrical Tailor: Analyzing the Relationship Between the Number of Actors in Pennsylvania and the Average Length of 3Blue1Brown YouTube Videos

[[ABSTRACT]]
Lights, camera, regression! In this paper, we delve into the surprising world of statistical connections by examining the peculiar link between the number of actors in Pennsylvania and the average length of 3Blue1Brown YouTube videos. Employing data from the Bureau of Labor Statistics and the depths of YouTube, our research team conducted a thorough analysis, uncovering a correlation coefficient of 0.9860198 and a p-value less than 0.01 for the years 2015 to 2021.

With a flair for the dramatic, our findings shed light on the intriguing relationship between the performing arts in Pennsylvania and the captivating content produced by 3Blue1Brown. Prepare to be amused and amazed by the uncanny correlations and potential comedic elements lurking within the data. This paper adds a dash of theatricality to the world of statistical research, proving that even in the realm of academia, all the world’s a stage – and all the data merely players!

[[INTRDUCTION]]
The world of statistical research is often portrayed as a serious and stoic endeavor, with researchers meticulously poring over data, delving into the depths of correlations and trends. However, our team of intrepid researchers took a different approach, embarking on a quest to uncover the unexpected and unusual. Our journey led us to the curious connection between the number of actors in Pennsylvania and the average length of 3Blue1Brown YouTube videos, a correlation that left us spellbound and in awe of the whimsical nature of statistical analysis.
As the curtains rose on our investigation, we were greeted by the peculiar and enchanting world of the performing arts in Pennsylvania. The state's stage was set with a diverse ensemble of actors, each bringing their unique flair and talent to the statistical scene. Meanwhile, in the digital realm, 3Blue1Brown's captivating videos on mathematics and science provided a captivating backdrop for our exploration.
To guide our inquiry, we turned to the Bureau of Labor Statistics, where the number of actors in Pennsylvania awaited their moment in the spotlight. Concurrently, the labyrinthine corridors of YouTube yielded the average length of 3Blue1Brown videos, each a meticulously crafted masterpiece of educational content. As we delved into the data, we were met with surprises at every turn, challenging our preconceived notions about statistical relationships and leaving us with a newfound appreciation for the unexpected.
In the following sections, we will regale you with our findings, showcasing the astonishing correlation coefficient of 0.9860198 that we unearthed and the p-value that danced its way to significance. Prepare to be entertained by the statistical theatrics that unfolded before us, as we shine a spotlight on the enthralling connection between the world of acting in Pennsylvania and the captivating creations of 3Blue1Brown. Join us as we embark on a whirlwind tour that will leave you applauding the unpredictability of statistical analysis and embracing the dramatic flair of correlation in all its comedic glory.

[[RESULTS]]
The results of our investigation into the relationship between the number of actors in Pennsylvania and the average length of 3Blue1Brown YouTube videos have left us both astounded and amused. The correlation coefficient of 0.9860198 that we uncovered suggests a remarkably strong positive relationship between these seemingly unrelated variables. This finding may just be the best performance since Hamlet!
The r-squared value of 0.9722350 further emphasizes that the number of actors in Pennsylvania explains a whopping 97.22% of the variation in the average length of 3Blue1Brown videos. It's as if the actors are stealing the show, leaving just 2.78% of the stage for other potential factors to shine. Talk about a commanding presence!
Adding another layer of drama to our findings is the p-value of less than 0.01, indicating that the relationship between these variables is indeed statistically significant. It's like the actors and 3Blue1Brown are engaged in a mesmerizing dance, effortlessly waltzing their way into the spotlight of statistical significance.
To visually encapsulate the captivating correlation we discovered, we present Figure 1, a scatterplot illustrating the dazzling relationship between the number of actors in Pennsylvania and the average length of 3Blue1Brown videos. This figure is a testament to the enchanting narrative woven by the data, a tale as riveting as a thrilling Broadway production.
Our findings not only underscore the surprising statistical harmony between the performing arts in Pennsylvania and the educational prowess of 3Blue1Brown but also illuminate the potential for humor and unexpected connections within the realm of statistical analysis. As we take our final bow, we invite you to marvel at the unforeseen correlations that can emerge when we grant statistics a touch of theatrical flair. After all, as Shakespeare himself might have said, "All the world's a stage, and all the data merely players!"

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In the grand finale of our statistical spectacle, we find ourselves applauding the remarkable correlation between the number of actors in Pennsylvania and the average length of 3Blue1Brown YouTube videos. It seems that when it comes to statistical relationships, the actors in Pennsylvania are stealing the show, leaving the 3Blue1Brown videos with a tough act to follow! It's as if statistical significance has taken center stage, showcasing a performance worthy of an Oscar – or should we say a Ph.D.?

With a correlation coefficient of 0.9860198 and an r-squared value of 0.9722350, the connection between these variables is definitely no act. The data clearly depicts a compelling narrative that could rival the most captivating theatrical production. It's almost as if the number of actors in Pennsylvania is directing the plot of 3Blue1Brown videos, with a supporting cast of statistical significance and p-values dancing in perfect harmony.

As we draw the curtain on this captivating study, it's safe to say that the show-stopping correlation between the performing arts and digital education has left us spellbound and entertained. No doubt, this research adds a dash of excitement to the sometimes serious world of statistical analysis. So, in the spirit of a grand finale, let’s take a final bow and declare that further research on this remarkable connection would be like trying to rewrite the endings of classic plays – unnecessary and likely to end in tragedy!


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 Theatrical Tailor: Analyzing the Relationship Between the Number of Actors in Pennsylvania and the Average Length of 3Blue1Brown YouTube Videos. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Theatrical Statistics and YouTube Analysis


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 Theatrical Tailor: Analyzing the Relationship Between the Number of Actors in Pennsylvania and the Average Length of 3Blue1Brown YouTube Videos. Respond only with the name of a fictional organization.

ChatGPT:

The Society for Theatrical Analytics and Tailoring


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 Theatrical Tailor: Analyzing the Relationship Between the Number of Actors in Pennsylvania and the Average Length of 3Blue1Brown YouTube Videos with an abstract of Lights, camera, regression! In this paper, we delve into the surprising world of statistical connections by examining the peculiar link between the number of actors in Pennsylvania and the average length of 3Blue1Brown YouTube videos. Employing data from the Bureau of Labor Statistics and the depths of YouTube, our research team conducted a thorough analysis, uncovering a correlation coefficient of 0.9860198 and a p-value less than 0.01 for the years 2015 to 2021.
With a flair for the dramatic, our findings shed light on the intriguing relationship between the performing arts in Pennsylvania and the captivating content produced by 3Blue1Brown. Prepare to be amused and amazed by the uncanny correlations and potential comedic elements lurking within the data. This paper adds a dash of theatricality to the world of statistical research, proving that even in the realm of academia, all the world’s a stage – and all the data merely players!

ChatGPT:

Theatrical tailor, statistical connections, number of actors, Pennsylvania, average length, 3Blue1Brown, YouTube videos, correlation coefficient, Bureau of Labor Statistics, performing arts, data analysis

*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

The number of actors in Pennsylvania
Detailed data title: BLS estimate of actors in Pennsylvania
Source: Bureau of Larbor Statistics
See what else correlates with The number of actors in Pennsylvania

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

Correlation r = 0.9860198 (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.9722350 (Coefficient of determination)
This means 97.2% of the change in the one variable (i.e., Average length of 3Blue1Brown YouTube videos) is predictable based on the change in the other (i.e., The number of actors in Pennsylvania) over the 7 years from 2015 through 2021.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 4.41E-5. 0.0000440534464444702300000000
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.99 in 0.00441% of random cases. Said differently, if you correlated 22,700 random variables You don't actually need 22 thousand variables to find a correlation like this one. You can also correlate variables that are not independent. I do this a lot.

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

Just to be clear: I'm being completely transparent about the calculations. There is no math trickery. This is just how statistics shakes out when you calculate hundreds of millions of random correlations.
with the same 6 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 6 because we have two variables measured over a period of 7 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.9, 1 ] 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.
2015201620172018201920202021
The number of actors in Pennsylvania (Actors)1110155020702050183033502410
Average length of 3Blue1Brown YouTube videos (Length in seconds)407651.251015.82971.75897.5332429.11467




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. Confounding variable: 2020 is particularly different from the other years on this graph. Confounding variables (like global pandemics) will cause two variables to look connected when in fact a "sneaky third" variable is influencing both of them behind the scenes.
  5. 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([1110,1550,2070,2050,1830,3350,2410,])
array_2 = np.array([407,651.25,1015.82,971.75,897.533,2429.1,1467,])
array_1_name = "The number of actors in Pennsylvania"
array_2_name = "Average length of 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 skills are top-notch!


Correlation ID: 4616 · Black Variable ID: 13639 · Red Variable ID: 25816
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0