about · email me · subscribe
Spurious correlation #5,791 · View random

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is Total views on SmarterEveryDay YouTube videos and the second variable is Warner Bros. Discovery's stock price (WBD).  The chart goes from 2007 to 2023, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

As more people watched SmarterEveryDay, they became invested in learning and knowledge. This led to a surge in overall brainpower, triggering a spike in innovative thinking. The stock price for Warner Bros. Discovery, known for its creative content, soared as a result, riding the waves of intellect and imagination. The connection between Total views and WBD stock price turned out to be truly 'discovery' for the market!

Model: dalle-3
Prompt: An image that looks like it is a scene from 'Star Wars' and depicting this scene: In the scene, a futuristic cityscape is depicted with towering skyscrapers and sleek hovering vehicles streaming through the air. In the foreground, a graph on the left shows a sharp increase in total views on SmarterEveryDay YouTube videos, while on the right, a separate graph displays Warner Bros. Discovery's stock price (WBD) soaring in tandem with the viewership graph. Both graphs are illuminated with holographic projections, creating a mesmerizing visual representation of the surge in intellectual engagement and its impact on economic value. The depiction should include only scenes, people, and objects, it should not include text or speech bubbles.
This image generation prompt was also generated by AI, using the following sequence:

Model: gpt-3.5-turbo-1106
System prompt: You select one of a few potential scene descriptors that seems to go along with the variables described. You respond only with the scene descriptions provided and say nothing else.
User prompt: Here are two variables: Total views on SmarterEveryDay YouTube videos and Warner Bros. Discovery's stock price (WBD). 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: Brutalism a funny image macro An image that looks like it is a scene from 'Star Wars' Psychedelic A comic-book-style illustration with muted colors and a dotted halftone pattern from the 1960s
ChatGPT: An image that looks like it is a scene from 'Star Wars'

Model: gpt-3.5-turbo-1106
System prompt: You describe simple visual scenes that depict the two variables stated. You combine both variables into one scene.
User prompt: Please describe a visual scene that prominently depicts both Total views on SmarterEveryDay YouTube videos and Warner Bros. Discovery's stock price (WBD), in the following situation: As more people watched SmarterEveryDay, they became invested in learning and knowledge. This led to a surge in overall brainpower, triggering a spike in innovative thinking. The stock price for Warner Bros. Discovery, known for its creative content, soared as a result, riding the waves of intellect and imagination. The connection between Total views and WBD stock price turned out to be truly 'discovery' for the market!. Keep the description simple.
ChatGPT: In the scene, a graph showing the total views on SmarterEveryDay YouTube videos is depicted on the left side, with the line rising sharply, indicative of increasing viewership. On the right side, a separate graph displays Warner Bros. Discovery's stock price (WBD), with the line mirroring the upward trend of the views, signifying a substantial surge in value. The visual representation embodies the correlation between the surge in viewers' intellect and the soaring stock price, emphasizing the transformative power of knowledge and creativity.

Model: gpt-3.5-turbo-1106
System prompt: You write and improve image generation prompts for DALLE-3. You maintain the same subjects, but enhance the visuals.
User prompt: Please respond with an image generation prompt that would be likely to create an interesting visual using DALLE-3, using the following style: [ An image that looks like it is a scene from 'Star Wars' ] and depicting this scene: In the scene, a graph showing the total views on SmarterEveryDay YouTube videos is depicted on the left side, with the line rising sharply, indicative of increasing viewership. On the right side, a separate graph displays Warner Bros. Discovery's stock price (WBD), with the line mirroring the upward trend of the views, signifying a substantial surge in value. The visual representation embodies the correlation between the surge in viewers' intellect and the soaring stock price, emphasizing the transformative power of knowledge and creativity. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: An image that looks like it is a scene from 'Star Wars' and depicting this scene: In the scene, a futuristic cityscape is depicted with towering skyscrapers and sleek hovering vehicles streaming through the air. In the foreground, a graph on the left shows a sharp increase in total views on SmarterEveryDay YouTube videos, while on the right, a separate graph displays Warner Bros. Discovery's stock price (WBD) soaring in tandem with the viewership graph. Both graphs are illuminated with holographic projections, creating a mesmerizing visual representation of the surge in intellectual engagement and its impact on economic value.

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

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

Model: gpt-3.5-turbo-1106 (fine-tuned)
System prompt: You provide humorous responses in the form of plausible sounding explanations for correlations. You assume the correlation is causative for the purpose of the explanation even if it is ridiculous. You do not chat with the user, you only reply with the causal connection explanation and nothing else.
User prompt: Please make up a funny explanation for how an increase in Total views on SmarterEveryDay YouTube videos caused Warner Bros. Discovery's stock price (WBD) to increase. Include one good pun.

AI academic paper

(Because p < 0.01)
The View Counts Connection: A Reel Analysis of Total SmarterEveryDay YouTube Views and Warner Bros. Discovery Stock Price

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

Please draft the title and abstract of an academic research paper presenting the findings of the connection between Total views on SmarterEveryDay YouTube videos and Warner Bros. Discovery's stock price (WBD). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

Make the title a clever pun.

Your research team used data from YouTube and LSEG Analytics (Refinitiv) to assess this nagging question. You found a correlation coefficient of 0.8885821 and p < 0.01 for 2007 to 2023.

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 View Counts Connection: A Reel Analysis of Total SmarterEveryDay YouTube Views and Warner Bros. Discovery Stock Price"

[[ABSTRACT]]
This paper presents an unconventional analysis of the relationship between the total views on the popular YouTube channel SmarterEveryDay and the stock price of Warner Bros. Discovery (WBD). Leveraging a combination of data from YouTube and LSEG Analytics (Refinitiv), our research team scrutinized the correlation between these seemingly disparate entities. Our findings revealed a correlation coefficient of 0.8885821 and a statistically significant p-value of less than 0.01 during the period from 2007 to 2023. While unexpected at first glance, the robust correlation prompted a deeper dive into the possible interplay between digital content consumption and the financial performance of media conglomerates. This study sheds light on the potential impact of online viewership trends on market valuation and offers a quirky twist to the age-old debate surrounding the dynamics of modern-day entertainment and investment.


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

Please make up the introduction section of an academic research paper presenting the findings of the connection between Total views on SmarterEveryDay YouTube videos and Warner Bros. Discovery's stock price (WBD). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Here is the title and abstract of the paper:
[[TITLE]]
"The View Counts Connection: A Reel Analysis of Total SmarterEveryDay YouTube Views and Warner Bros. Discovery Stock Price"

[[ABSTRACT]]
This paper presents an unconventional analysis of the relationship between the total views on the popular YouTube channel SmarterEveryDay and the stock price of Warner Bros. Discovery (WBD). Leveraging a combination of data from YouTube and LSEG Analytics (Refinitiv), our research team scrutinized the correlation between these seemingly disparate entities. Our findings revealed a correlation coefficient of 0.8885821 and a statistically significant p-value of less than 0.01 during the period from 2007 to 2023. While unexpected at first glance, the robust correlation prompted a deeper dive into the possible interplay between digital content consumption and the financial performance of media conglomerates. This study sheds light on the potential impact of online viewership trends on market valuation and offers a quirky twist to the age-old debate surrounding the dynamics of modern-day entertainment and investment.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

In this era of unprecedented digital connectivity, the interplay between online content consumption and financial markets has become an intriguing area of study. As the consumption of digital media continues to skyrocket, the impact of online viewership trends on various sectors, including the entertainment industry, has garnered increasing attention.

The relationship between digital content consumption and financial performance has been a topic of interest for both scholars and investors alike. However, the examination of the connection between the total views on a popular YouTube channel and the stock price of a media conglomerate represents a unique and unconventional approach to this burgeoning field of research.

The YouTube channel SmarterEveryDay, hosted by engineer and science communicator Destin Sandlin, has amassed a substantial following with its engaging and educational content. Concurrently, Warner Bros. Discovery (WBD), a global leader in entertainment, has continued to be a prominent player in the media industry. The unexpected correlation between the total views on SmarterEveryDay videos and the stock price of WBD presents a compelling avenue for exploration.

Against this backdrop, the present study seeks to unveil the intriguing relationship between these seemingly disparate entities and to delve into the potential implications for market valuation and investment strategies. By scrutinizing the correlation between total views on SmarterEveryDay YouTube videos and Warner Bros. Discovery's stock price, this research endeavors to provide a novel perspective on the impact of digital content consumption on the financial performance of media conglomerates.

Through a meticulous analysis of the available data, this study aims to offer insights into the underlying dynamics of digital content consumption and its influence on market valuation. It is our belief that the findings presented herein will add a quirkily entertaining and possibly thought-provoking dimension to the ongoing discourse surrounding the implications of online viewership trends on investment decisions and the entertainment industry at large.


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

Please make up a literature review section of an academic research paper presenting the findings of the connection between Total views on SmarterEveryDay YouTube videos and Warner Bros. Discovery's stock price (WBD). 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 View Counts Connection: A Reel Analysis of Total SmarterEveryDay YouTube Views and Warner Bros. Discovery Stock Price"

[[ABSTRACT]]
This paper presents an unconventional analysis of the relationship between the total views on the popular YouTube channel SmarterEveryDay and the stock price of Warner Bros. Discovery (WBD). Leveraging a combination of data from YouTube and LSEG Analytics (Refinitiv), our research team scrutinized the correlation between these seemingly disparate entities. Our findings revealed a correlation coefficient of 0.8885821 and a statistically significant p-value of less than 0.01 during the period from 2007 to 2023. While unexpected at first glance, the robust correlation prompted a deeper dive into the possible interplay between digital content consumption and the financial performance of media conglomerates. This study sheds light on the potential impact of online viewership trends on market valuation and offers a quirky twist to the age-old debate surrounding the dynamics of modern-day entertainment and investment.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
In this era of unprecedented digital connectivity, the interplay between online content consumption and financial markets has become an intriguing area of study. As the consumption of digital media continues to skyrocket, the impact of online viewership trends on various sectors, including the entertainment industry, has garnered increasing attention.
The relationship between digital content consumption and financial performance has been a topic of interest for both scholars and investors alike. However, the examination of the connection between the total views on a popular YouTube channel and the stock price of a media conglomerate represents a unique and unconventional approach to this burgeoning field of research.
The YouTube channel SmarterEveryDay, hosted by engineer and science communicator Destin Sandlin, has amassed a substantial following with its engaging and educational content. Concurrently, Warner Bros. Discovery (WBD), a global leader in entertainment, has continued to be a prominent player in the media industry. The unexpected correlation between the total views on SmarterEveryDay videos and the stock price of WBD presents a compelling avenue for exploration.
Against this backdrop, the present study seeks to unveil the intriguing relationship between these seemingly disparate entities and to delve into the potential implications for market valuation and investment strategies. By scrutinizing the correlation between total views on SmarterEveryDay YouTube videos and Warner Bros. Discovery's stock price, this research endeavors to provide a novel perspective on the impact of digital content consumption on the financial performance of media conglomerates.
Through a meticulous analysis of the available data, this study aims to offer insights into the underlying dynamics of digital content consumption and its influence on market valuation. It is our belief that the findings presented herein will add a quirkily entertaining and possibly thought-provoking dimension to the ongoing discourse surrounding the implications of online viewership trends on investment decisions and the entertainment industry at large.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

The interrelationship between digital content consumption and its peculiar effects on financial markets has been a subject of great interest over the years. Smith et al., in their seminal work "Digital Content and Market Dynamics," observed a noticeable correlation between online viewership trends and the financial performance of various industries, prompting further inquiry into this intriguing connection. Similarly, Doe and Jones, in "Consumer Behavior in the Age of Digital Media," expounded upon the impact of digital content consumption on market valuation, laying the groundwork for subsequent research in this domain.

Turning to the realm of popular non-fiction literature, "Freakonomics" by Steven D. Levitt and Stephen J. Dubner provides a comprehensive discussion on unconventional economic phenomena, often shedding light on unexpected correlations and counterintuitive findings. Similarly, "Predictably Irrational" by Dan Ariely delves into the idiosyncrasies of human decision-making, offering insights into the often whimsical nature of economic behavior.

Shifting to the realm of fiction, the works of Isaac Asimov, particularly "Foundation," contain noteworthy references to the interplay between technological advancement and societal structures, albeit in a more speculative context. Furthermore, the enigmatic worlds created by Philip K. Dick in "Do Androids Dream of Electric Sheep?" and Douglas Adams in "The Hitchhiker's Guide to the Galaxy" offer curious observations on the potential ramifications of digital content consumption on futuristic societies.

In a whimsical deviation from conventional academic references, the films "The Social Network" and "The Wolf of Wall Street" bear tangential relevance to the present investigation, with their portrayals of digital innovation and financial market dynamics. Additionally, the quirkily captivating documentary "Exit Through the Gift Shop" offers an offbeat exploration of art, commerce, and the enigmatic nature of popularity, albeit in a markedly different context.

The inclusion of these eclectic references underscores the unconventional and multifaceted nature of the relationship between online viewership trends and market valuation, setting the stage for a lighthearted yet insightful exploration of the connection between the total views on SmarterEveryDay YouTube videos and Warner Bros. Discovery's stock price.


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

Please make up the methodology section of an academic research paper presenting the findings of the connection between Total views on SmarterEveryDay YouTube videos and Warner Bros. Discovery's stock price (WBD). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Your research team collected data from all across the internet, but mostly just used information from YouTube and LSEG Analytics (Refinitiv) . You used data from 2007 to 2023

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 View Counts Connection: A Reel Analysis of Total SmarterEveryDay YouTube Views and Warner Bros. Discovery Stock Price"

[[ABSTRACT]]
This paper presents an unconventional analysis of the relationship between the total views on the popular YouTube channel SmarterEveryDay and the stock price of Warner Bros. Discovery (WBD). Leveraging a combination of data from YouTube and LSEG Analytics (Refinitiv), our research team scrutinized the correlation between these seemingly disparate entities. Our findings revealed a correlation coefficient of 0.8885821 and a statistically significant p-value of less than 0.01 during the period from 2007 to 2023. While unexpected at first glance, the robust correlation prompted a deeper dive into the possible interplay between digital content consumption and the financial performance of media conglomerates. This study sheds light on the potential impact of online viewership trends on market valuation and offers a quirky twist to the age-old debate surrounding the dynamics of modern-day entertainment and investment.

[[INTRODUCTION]]
In this era of unprecedented digital connectivity, the interplay between online content consumption and financial markets has become an intriguing area of study. As the consumption of digital media continues to skyrocket, the impact of online viewership trends on various sectors, including the entertainment industry, has garnered increasing attention.
The relationship between digital content consumption and financial performance has been a topic of interest for both scholars and investors alike. However, the examination of the connection between the total views on a popular YouTube channel and the stock price of a media conglomerate represents a unique and unconventional approach to this burgeoning field of research.
The YouTube channel SmarterEveryDay, hosted by engineer and science communicator Destin Sandlin, has amassed a substantial following with its engaging and educational content. Concurrently, Warner Bros. Discovery (WBD), a global leader in entertainment, has continued to be a prominent player in the media industry. The unexpected correlation between the total views on SmarterEveryDay videos and the stock price of WBD presents a compelling avenue for exploration.
Against this backdrop, the present study seeks to unveil the intriguing relationship between these seemingly disparate entities and to delve into the potential implications for market valuation and investment strategies. By scrutinizing the correlation between total views on SmarterEveryDay YouTube videos and Warner Bros. Discovery's stock price, this research endeavors to provide a novel perspective on the impact of digital content consumption on the financial performance of media conglomerates.
Through a meticulous analysis of the available data, this study aims to offer insights into the underlying dynamics of digital content consumption and its influence on market valuation. It is our belief that the findings presented herein will add a quirkily entertaining and possibly thought-provoking dimension to the ongoing discourse surrounding the implications of online viewership trends on investment decisions and the entertainment industry at large.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

The present study employed an eclectic blend of quantitative and whimsically unorthodox research methods to assess the relationship between total views on SmarterEveryDay YouTube videos and the stock price of Warner Bros. Discovery (WBD) from 2007 to 2023. Data on the total views of SmarterEveryDay videos were gathered from the YouTube platform, utilizing a finely tuned combination of mouse clicks and keyboard strokes to access and compile the requisite viewership statistics. The stock price of Warner Bros. Discovery was sourced from LSEG Analytics (Refinitiv), harnessing the power of modern-day internet sorcery to extract and wrangle the financial data.

First, the total views on SmarterEveryDay YouTube videos were meticulously tabulated for each time period of interest, navigating the virtual labyrinth of online analytics with the finesse of a digital detective. Concurrently, the stock price of Warner Bros. Discovery was dynamically charted over the same period, employing the fervor and dedication of Wall Street wizards.

Following this data collection odyssey, a comprehensive analysis of the relationship between these variables was conducted, featuring an enchanting array of statistical techniques and econometric models, including but not limited to ordinary least squares (OLS) regression and time series analysis. The correlation coefficient was calculated with exacting precision, evoking the spirit of a numerical soothsayer to reveal the degree of association between total views on SmarterEveryDay YouTube videos and Warner Bros. Discovery's stock price.

Moreover, the study embraced the marvels of modern computational tools to conduct robustness checks and sensitivity analyses, affirming the steadfastness of the observed relationship amidst the whims of statistical fate. This analytical waltz was performed with the dexterity of a digital maestro, harmonizing the intricacies of data manipulation and model validation with an air of lighthearted precision.

Amidst the enthralling complexity of data wrangling and statistical scrutiny, the research journey also harnessed the power of narrative storytelling to infuse the findings with a dash of compelling charm. Through an engaging interplay of numbers and narrative, the study sought to capture the whimsical essence of the digital age and its delightful interaction with the financial realm.

In essence, the methodology adopted in this study navigated the realms of data acquisition, statistical inference, and narrative intrigue with a blend of meticulous rigor and irreverent charisma, offering a quirky perspective that brings a smile to the face of conventional research practices. The results of these methodological adventures are illuminated in the subsequent sections, offering a contagious blend of empirical insight and whimsical charm to the discerning reader.


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

Please make up the results section of an academic research paper presenting the findings of the connection between Total views on SmarterEveryDay YouTube videos and Warner Bros. Discovery's stock price (WBD). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Your research team collected data from all across the internet, but mostly just used information from YouTube and LSEG Analytics (Refinitiv) .

For the time period 2007 to 2023, you found a correlation 0.8885821, r-squared of 0.7895781, 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 View Counts Connection: A Reel Analysis of Total SmarterEveryDay YouTube Views and Warner Bros. Discovery Stock Price"

[[ABSTRACT]]
This paper presents an unconventional analysis of the relationship between the total views on the popular YouTube channel SmarterEveryDay and the stock price of Warner Bros. Discovery (WBD). Leveraging a combination of data from YouTube and LSEG Analytics (Refinitiv), our research team scrutinized the correlation between these seemingly disparate entities. Our findings revealed a correlation coefficient of 0.8885821 and a statistically significant p-value of less than 0.01 during the period from 2007 to 2023. While unexpected at first glance, the robust correlation prompted a deeper dive into the possible interplay between digital content consumption and the financial performance of media conglomerates. This study sheds light on the potential impact of online viewership trends on market valuation and offers a quirky twist to the age-old debate surrounding the dynamics of modern-day entertainment and investment.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
In this era of unprecedented digital connectivity, the interplay between online content consumption and financial markets has become an intriguing area of study. As the consumption of digital media continues to skyrocket, the impact of online viewership trends on various sectors, including the entertainment industry, has garnered increasing attention.
The relationship between digital content consumption and financial performance has been a topic of interest for both scholars and investors alike. However, the examination of the connection between the total views on a popular YouTube channel and the stock price of a media conglomerate represents a unique and unconventional approach to this burgeoning field of research.
The YouTube channel SmarterEveryDay, hosted by engineer and science communicator Destin Sandlin, has amassed a substantial following with its engaging and educational content. Concurrently, Warner Bros. Discovery (WBD), a global leader in entertainment, has continued to be a prominent player in the media industry. The unexpected correlation between the total views on SmarterEveryDay videos and the stock price of WBD presents a compelling avenue for exploration.
Against this backdrop, the present study seeks to unveil the intriguing relationship between these seemingly disparate entities and to delve into the potential implications for market valuation and investment strategies. By scrutinizing the correlation between total views on SmarterEveryDay YouTube videos and Warner Bros. Discovery's stock price, this research endeavors to provide a novel perspective on the impact of digital content consumption on the financial performance of media conglomerates.
Through a meticulous analysis of the available data, this study aims to offer insights into the underlying dynamics of digital content consumption and its influence on market valuation. It is our belief that the findings presented herein will add a quirkily entertaining and possibly thought-provoking dimension to the ongoing discourse surrounding the implications of online viewership trends on investment decisions and the entertainment industry at large.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The results of the analysis revealed a striking correlation coefficient of 0.8885821 between the total views on SmarterEveryDay YouTube videos and the stock price of Warner Bros. Discovery (WBD), underscoring a strong relationship between these ostensibly unrelated variables. This correlation was accompanied by an r-squared value of 0.7895781, indicating that approximately 78.96% of the variance in WBD stock price can be explained by the total views on SmarterEveryDay videos during the period from 2007 to 2023. The calculated p-value, which was found to be less than 0.01, further strengthened the robustness of the observed correlation, thereby establishing its statistical significance.

The scatterplot displayed in Figure 1 showcases the undeniable correlation between the two variables, visually encapsulating the surprising relationship that emerged from the data. This captivating linkage between digital content consumption and the financial performance of WBD hints at a peculiar yet compelling dynamic that transcends traditional notions of market analysis and media influence.

The findings presented herein serve as an intriguing revelation, illuminating the potential impact of online viewership trends on market valuation and investment strategies. The unexpected connection between SmarterEveryDay YouTube views and WBD stock price not only adds a whimsical twist to the discourse surrounding the interplay of digital content and financial markets but also opens the door to a new avenue of investigation into the quirks and quiddities of modern entertainment and investment dynamics.


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

Please make up the discussion section of an academic research paper presenting the findings of the connection between Total views on SmarterEveryDay YouTube videos and Warner Bros. Discovery's stock price (WBD). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

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 View Counts Connection: A Reel Analysis of Total SmarterEveryDay YouTube Views and Warner Bros. Discovery Stock Price"

[[ABSTRACT]]
This paper presents an unconventional analysis of the relationship between the total views on the popular YouTube channel SmarterEveryDay and the stock price of Warner Bros. Discovery (WBD). Leveraging a combination of data from YouTube and LSEG Analytics (Refinitiv), our research team scrutinized the correlation between these seemingly disparate entities. Our findings revealed a correlation coefficient of 0.8885821 and a statistically significant p-value of less than 0.01 during the period from 2007 to 2023. While unexpected at first glance, the robust correlation prompted a deeper dive into the possible interplay between digital content consumption and the financial performance of media conglomerates. This study sheds light on the potential impact of online viewership trends on market valuation and offers a quirky twist to the age-old debate surrounding the dynamics of modern-day entertainment and investment.

[[LITERATURE REVIEW]]
The interrelationship between digital content consumption and its peculiar effects on financial markets has been a subject of great interest over the years. Smith et al., in their seminal work "Digital Content and Market Dynamics," observed a noticeable correlation between online viewership trends and the financial performance of various industries, prompting further inquiry into this intriguing connection. Similarly, Doe and Jones, in "Consumer Behavior in the Age of Digital Media," expounded upon the impact of digital content consumption on market valuation, laying the groundwork for subsequent research in this domain.
Turning to the realm of popular non-fiction literature, "Freakonomics" by Steven D. Levitt and Stephen J. Dubner provides a comprehensive discussion on unconventional economic phenomena, often shedding light on unexpected correlations and counterintuitive findings. Similarly, "Predictably Irrational" by Dan Ariely delves into the idiosyncrasies of human decision-making, offering insights into the often whimsical nature of economic behavior.
Shifting to the realm of fiction, the works of Isaac Asimov, particularly "Foundation," contain noteworthy references to the interplay between technological advancement and societal structures, albeit in a more speculative context. Furthermore, the enigmatic worlds created by Philip K. Dick in "Do Androids Dream of Electric Sheep?" and Douglas Adams in "The Hitchhiker's Guide to the Galaxy" offer curious observations on the potential ramifications of digital content consumption on futuristic societies.
In a whimsical deviation from conventional academic references, the films "The Social Network" and "The Wolf of Wall Street" bear tangential relevance to the present investigation, with their portrayals of digital innovation and financial market dynamics. Additionally, the quirkily captivating documentary "Exit Through the Gift Shop" offers an offbeat exploration of art, commerce, and the enigmatic nature of popularity, albeit in a markedly different context.
The inclusion of these eclectic references underscores the unconventional and multifaceted nature of the relationship between online viewership trends and market valuation, setting the stage for a lighthearted yet insightful exploration of the connection between the total views on SmarterEveryDay YouTube videos and Warner Bros. Discovery's stock price.

[[RESULTS]]
The results of the analysis revealed a striking correlation coefficient of 0.8885821 between the total views on SmarterEveryDay YouTube videos and the stock price of Warner Bros. Discovery (WBD), underscoring a strong relationship between these ostensibly unrelated variables. This correlation was accompanied by an r-squared value of 0.7895781, indicating that approximately 78.96% of the variance in WBD stock price can be explained by the total views on SmarterEveryDay videos during the period from 2007 to 2023. The calculated p-value, which was found to be less than 0.01, further strengthened the robustness of the observed correlation, thereby establishing its statistical significance.
The scatterplot displayed in Figure 1 showcases the undeniable correlation between the two variables, visually encapsulating the surprising relationship that emerged from the data. This captivating linkage between digital content consumption and the financial performance of WBD hints at a peculiar yet compelling dynamic that transcends traditional notions of market analysis and media influence.
The findings presented herein serve as an intriguing revelation, illuminating the potential impact of online viewership trends on market valuation and investment strategies. The unexpected connection between SmarterEveryDay YouTube views and WBD stock price not only adds a whimsical twist to the discourse surrounding the interplay of digital content and financial markets but also opens the door to a new avenue of investigation into the quirks and quiddities of modern entertainment and investment dynamics.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The striking correlation uncovered between the total views on SmarterEveryDay YouTube videos and the stock price of Warner Bros. Discovery (WBD) gives rise to a curious juxtaposition of online viewership trends and financial market dynamics. This unexpected nexus aligns with prior research, particularly the work of Smith et al., who hinted at the existence of intriguing correlations in the digital realm and market performance. The robust correlation coefficient and statistically significant p-value affirm the veracity of this unorthodox relationship and offer a whimsical lens through which to view the interplay between digital content consumption and market valuation. The offhand references to the speculative contexts in works by Isaac Asimov and Philip K. Dick, though whimsical, seem to bear surprising relevance in light of the observed correlation, providing a lighthearted yet insightful foundation for the present investigation.

The findings of this study not only validate the unexpected connections alluded to in the literature review but also expand on them in a way reminiscent of the unconventional economic phenomena explored by Levitt and Dubner in "Freakonomics." This expansion, while enthralling, warrants further inquiry into the intricacies of the interrelationship between entertainment consumption and investment dynamics. Perhaps more unexpectedly, the tangential references to the films "The Social Network" and "The Wolf of Wall Street," initially perceived as mere cinematic diversions, now appear to offer intriguing parallels to the digital innovation and financial market dynamics underpinning the observed correlation. The quirkily captivating documentary "Exit Through the Gift Shop" also takes on a renewed relevance, provoking contemplation on the enigmatic nature of popularity and its potential impact on market phenomena.

The scatterplot displayed in Figure 1 visually encapsulates the discovered correlation, offering a compelling testament to the underlying connection between online viewership trends and the financial performance of WBD. This linkage, reminiscent of the idiosyncrasies of human decision-making discussed by Ariely in "Predictably Irrational," adds a quirky twist to the discourse surrounding the dynamics of modern-day entertainment and investment, underscoring the often whimsical nature of economic behavior. The unexpected connection between SmarterEveryDay YouTube views and WBD stock price not only underscores the potential impact of digital content consumption on market valuation but also invites a playfully offbeat exploration of the quirks and quiddities of contemporary entertainment and investment dynamics.

In conclusion, the unanticipated relationship between the total views on SmarterEveryDay YouTube videos and WBD stock price offers a novel perspective on the symbiotic interplay between digital content consumption and market valuation, amplifying the multifaceted nature of this interaction in a manner befitting the unconventional and whimsical aspects of economic behavior.


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

Please make up a short conclusion of an academic research paper presenting the findings of the connection between Total views on SmarterEveryDay YouTube videos and Warner Bros. Discovery's stock price (WBD). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

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 View Counts Connection: A Reel Analysis of Total SmarterEveryDay YouTube Views and Warner Bros. Discovery Stock Price"

[[ABSTRACT]]
This paper presents an unconventional analysis of the relationship between the total views on the popular YouTube channel SmarterEveryDay and the stock price of Warner Bros. Discovery (WBD). Leveraging a combination of data from YouTube and LSEG Analytics (Refinitiv), our research team scrutinized the correlation between these seemingly disparate entities. Our findings revealed a correlation coefficient of 0.8885821 and a statistically significant p-value of less than 0.01 during the period from 2007 to 2023. While unexpected at first glance, the robust correlation prompted a deeper dive into the possible interplay between digital content consumption and the financial performance of media conglomerates. This study sheds light on the potential impact of online viewership trends on market valuation and offers a quirky twist to the age-old debate surrounding the dynamics of modern-day entertainment and investment.

[[INTRDUCTION]]
In this era of unprecedented digital connectivity, the interplay between online content consumption and financial markets has become an intriguing area of study. As the consumption of digital media continues to skyrocket, the impact of online viewership trends on various sectors, including the entertainment industry, has garnered increasing attention.
The relationship between digital content consumption and financial performance has been a topic of interest for both scholars and investors alike. However, the examination of the connection between the total views on a popular YouTube channel and the stock price of a media conglomerate represents a unique and unconventional approach to this burgeoning field of research.
The YouTube channel SmarterEveryDay, hosted by engineer and science communicator Destin Sandlin, has amassed a substantial following with its engaging and educational content. Concurrently, Warner Bros. Discovery (WBD), a global leader in entertainment, has continued to be a prominent player in the media industry. The unexpected correlation between the total views on SmarterEveryDay videos and the stock price of WBD presents a compelling avenue for exploration.
Against this backdrop, the present study seeks to unveil the intriguing relationship between these seemingly disparate entities and to delve into the potential implications for market valuation and investment strategies. By scrutinizing the correlation between total views on SmarterEveryDay YouTube videos and Warner Bros. Discovery's stock price, this research endeavors to provide a novel perspective on the impact of digital content consumption on the financial performance of media conglomerates.
Through a meticulous analysis of the available data, this study aims to offer insights into the underlying dynamics of digital content consumption and its influence on market valuation. It is our belief that the findings presented herein will add a quirkily entertaining and possibly thought-provoking dimension to the ongoing discourse surrounding the implications of online viewership trends on investment decisions and the entertainment industry at large.

[[RESULTS]]
The results of the analysis revealed a striking correlation coefficient of 0.8885821 between the total views on SmarterEveryDay YouTube videos and the stock price of Warner Bros. Discovery (WBD), underscoring a strong relationship between these ostensibly unrelated variables. This correlation was accompanied by an r-squared value of 0.7895781, indicating that approximately 78.96% of the variance in WBD stock price can be explained by the total views on SmarterEveryDay videos during the period from 2007 to 2023. The calculated p-value, which was found to be less than 0.01, further strengthened the robustness of the observed correlation, thereby establishing its statistical significance.
The scatterplot displayed in Figure 1 showcases the undeniable correlation between the two variables, visually encapsulating the surprising relationship that emerged from the data. This captivating linkage between digital content consumption and the financial performance of WBD hints at a peculiar yet compelling dynamic that transcends traditional notions of market analysis and media influence.
The findings presented herein serve as an intriguing revelation, illuminating the potential impact of online viewership trends on market valuation and investment strategies. The unexpected connection between SmarterEveryDay YouTube views and WBD stock price not only adds a whimsical twist to the discourse surrounding the interplay of digital content and financial markets but also opens the door to a new avenue of investigation into the quirks and quiddities of modern entertainment and investment dynamics.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, the results of this study undeniably demonstrate a robust and statistically significant correlation between the total views on SmarterEveryDay YouTube videos and the stock price of Warner Bros. Discovery (WBD). The striking correlation coefficient of 0.8885821 and the r-squared value of 0.7895781 provide compelling evidence of the relationship between these ostensibly unrelated variables. It is evident that approximately 78.96% of the variance in WBD stock price can be whimsically explained by the total views on SmarterEveryDay videos during the period from 2007 to 2023. The calculated p-value, less than 0.01, further cements the unexpected connection between digital content consumption and the financial performance of WBD, infusing a dash of quirky charm into the realm of market analysis and media influence.

The unforeseen linkage between online viewership trends and market valuation adds a fascinating dimension to the ongoing dialogue surrounding investment strategies and the entertainment industry. While the correlation may initially seem reminiscent of an odd couple, the findings presented herein suggest a potential interplay that prompts a wry smile and raises an eyebrow, challenging conventional wisdom and inviting a lighthearted exploration of the idiosyncrasies of modern-day entertainment and investment dynamics.

However, it is essential to note that correlation does not imply causation, and further research may be warranted to unravel the underlying mechanisms driving this captivating relationship. Nevertheless, the compelling nature of the observed correlation between SmarterEveryDay YouTube views and WBD stock price injects a delightful dose of whimsy into the typically staid arena of financial analysis and offers a witty anecdote in the grand narrative of market dynamics.

In light of the enthralling findings presented in this study, it is our scholarly opinion that no further research is needed in this area, as the quirkily entertaining correlation we have uncovered provides a delightful denouement to the age-old debate surrounding the unconventional intersection of online viewership trends and market valuation. The results of this study stand as a testament to the intriguing quirks and quiddities that enliven the world of modern entertainment and investment, inviting researchers and enthusiasts alike to chuckle softly and reflect upon the unexpected interplay between digital content consumption and financial markets.


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 View Counts Connection: A Reel Analysis of Total SmarterEveryDay YouTube Views and Warner Bros. Discovery Stock Price. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Digital Culture and Financial 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 View Counts Connection: A Reel Analysis of Total SmarterEveryDay YouTube Views and Warner Bros. Discovery Stock Price. Respond only with the name of a fictional organization.

ChatGPT:

The Institute for Pop Culture and Financial Analysis


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 View Counts Connection: A Reel Analysis of Total SmarterEveryDay YouTube Views and Warner Bros. Discovery Stock Price with an abstract of This paper presents an unconventional analysis of the relationship between the total views on the popular YouTube channel SmarterEveryDay and the stock price of Warner Bros. Discovery (WBD). Leveraging a combination of data from YouTube and LSEG Analytics (Refinitiv), our research team scrutinized the correlation between these seemingly disparate entities. Our findings revealed a correlation coefficient of 0.8885821 and a statistically significant p-value of less than 0.01 during the period from 2007 to 2023. While unexpected at first glance, the robust correlation prompted a deeper dive into the possible interplay between digital content consumption and the financial performance of media conglomerates. This study sheds light on the potential impact of online viewership trends on market valuation and offers a quirky twist to the age-old debate surrounding the dynamics of modern-day entertainment and investment.

ChatGPT:

SmarterEveryDay, YouTube views, Warner Bros. Discovery, stock price, LSEG Analytics, Refinitiv, correlation analysis, digital content consumption, media conglomerates, online viewership trends, market valuation, entertainment investment dynamics

*There is a bunch of Python happening behind the scenes to turn this prompt sequence into a PDF.



Random correlation

Discover a new correlation

View all correlations

View all research papers

Report an error


Data details

Total views on SmarterEveryDay YouTube videos
Detailed data title: Total views on SmarterEveryDay YouTube videos.
Source: SmarterEveryDay on YouTube
Additional Info: Current total views of videos released that year.

See what else correlates with Total views on SmarterEveryDay YouTube videos

Warner Bros. Discovery's stock price (WBD)
Detailed data title: Opening price of Warner Bros. Discovery (WBD) on the first trading day of the year
Source: LSEG Analytics (Refinitiv)
Additional Info: Via Microsoft Excel Stockhistory function

See what else correlates with Warner Bros. Discovery's stock price (WBD)

Correlation r = 0.8885821 (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.7895781 (Coefficient of determination)
This means 79% of the change in the one variable (i.e., Warner Bros. Discovery's stock price (WBD)) is predictable based on the change in the other (i.e., Total views on SmarterEveryDay YouTube videos) over the 17 years from 2007 through 2023.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 1.9E-6. 0.0000018817302688686850000000
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.89 in 0.00019% of random cases. Said differently, if you correlated 531,426 random variables You don't actually need 531 thousand variables to find a correlation like this one. I don't have that many variables in my database. You can also correlate variables that are not independent. I do this a lot.

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

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

Just to be clear: I'm being completely transparent about the calculations. There is no math trickery. This is just how statistics shakes out when you calculate hundreds of millions of random correlations.
with the same 16 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 16 because we have two variables measured over a period of 17 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.71, 0.96 ] 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.
20072008200920102011201220132014201520162017201820192020202120222023
Total views on SmarterEveryDay YouTube videos (Total views)6159465575900476119531186051314700446229001132970001757330001186080007219170074776900101810000104650000149482000680570003567620047873800
Warner Bros. Discovery's stock price (WBD) (Stock price)7.4911.587.2215.6921.4621.4433.2346.0834.6326.1327.6622.9624.3732.8231.0723.99.65




Why this works

  1. Data dredging: I have 25,237 variables in my database. I compare all these variables against each other to find ones that randomly match up. That's 636,906,169 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.




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([615946,5575900,476119,5311860,51314700,44622900,113297000,175733000,118608000,72191700,74776900,101810000,104650000,149482000,68057000,35676200,47873800,])
array_2 = np.array([7.49,11.58,7.22,15.69,21.46,21.44,33.23,46.08,34.63,26.13,27.66,22.96,24.37,32.82,31.07,23.9,9.65,])
array_1_name = "Total views on SmarterEveryDay YouTube videos"
array_2_name = "Warner Bros. Discovery's stock price (WBD)"

# 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?

Big thanks for reviewing!


Correlation ID: 5791 · Black Variable ID: 25505 · Red Variable ID: 1845
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0