about · email me · subscribe
Spurious correlation #3,211 · View random

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is Number of public school students in 2nd grade and the second variable is SLB's stock price (SLB).  The chart goes from 2002 to 2022, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

As the number of 2nd graders in public school decreases, so does the demand for tiny desks and chairs. This leads to a surplus in the mini furniture market, causing SLB, a secret subsidiary that specializes in miniature desk oil production, to experience a decrease in revenue. With their primary product losing its tiny luster, investors are slipping through the cracks, leading to a decrease in SLB's stock price.

Model: dalle-3
Prompt: Description: "Cyber folk" Image Generation Prompt: "In a virtual classroom buzzing with futuristic technology and holographic displays, a group of young students in cyber-enhanced uniforms eagerly interact with digital slates, examining holographic representations of rocks and minerals. Outside the classroom's virtual window, a digital stock price ticker prominently displays SLB's logo, indicating a steep upward trend as the company dominates the market for premium cyber-enhanced slates designed for young scholars. The scene is a blend of traditional education and cutting-edge technology, capturing the essence of a cyber folk learning environment." 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: Number of public school students in 2nd grade and SLB's stock price (SLB). 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: a funny image macro A TIME magazine cover image Cyber folk Symbolism inspired by bauhaus
ChatGPT: Cyber folk

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 Number of public school students in 2nd grade and SLB's stock price (SLB), in the following situation: Because a rise in the number of public school students in 2nd grade means more kids learning about rocks, which leads to an increased demand for slates. SLB's stock price skyrockets as they corner the market on premium slate tablets for the pint-sized scholars. Who knew elementary education could be so slate-tastic for business?. Keep the description simple.
ChatGPT: In a bustling classroom, a group of 2nd-grade students eagerly examine pieces of slate, learning about rocks and minerals. Meanwhile, outside the window, SLB's stock price ticker is prominently displayed, showing a sharp upward trend as the company dominates the market for premium slate tablets designed for young scholars.

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: [ Cyber folk ] and depicting this scene: In a bustling classroom, a group of 2nd-grade students eagerly examine pieces of slate, learning about rocks and minerals. Meanwhile, outside the window, SLB's stock price ticker is prominently displayed, showing a sharp upward trend as the company dominates the market for premium slate tablets designed for young scholars. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Description: "Cyber folk" Image Generation Prompt: "In a virtual classroom buzzing with futuristic technology and holographic displays, a group of young students in cyber-enhanced uniforms eagerly interact with digital slates, examining holographic representations of rocks and minerals. Outside the classroom's virtual window, a digital stock price ticker prominently displays SLB's logo, indicating a steep upward trend as the company dominates the market for premium cyber-enhanced slates designed for young scholars. The scene is a blend of traditional education and cutting-edge technology, capturing the essence of a cyber folk learning environment."

*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 a decrease in Number of public school students in 2nd grade caused SLB's stock price (SLB) to decrease.

AI academic paper

(Because p < 0.01)
Grading the Connection: A Lesson in Correlation Between 2nd Grade Enrollment and SLB's Stock Price

The Journal of Elementary Econometrics

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 Number of public school students in 2nd grade and SLB's stock price (SLB). Make lots of jokes, goofy observations, and puns.

Make the title a clever pun.

Your research team used data from National Center for Education Statistics and LSEG Analytics (Refinitiv) to assess this nagging question. You found a correlation coefficient of 0.8291942 and p < 0.01 for 2002 to 2022.

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

[[TITLE]]
Lorem ipsum dolor sit

[[ABSTRACT]]
Lorem ipsum dolor sit



ChatGPT:
[[TITLE]]
Grading the Connection: A Lesson in Correlation Between 2nd Grade Enrollment and SLB's Stock Price

[[ABSTRACT]]
This paper delves into the unlikely intersection of elementary education and financial markets by examining the correlation between the number of public school students in 2nd grade and the stock price of Schlumberger Limited (SLB). Utilizing data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), our research team unearthed a remarkable correlation coefficient of 0.8291942 and a significance level of p < 0.01 for the period spanning from 2002 to 2022. Our findings suggest that there may indeed be a surprising relationship between juvenile education and stock market performance. The potential implications of these results are not to be dismissed as child's play, and future research could further illuminate the dynamics at play. This study adds a dose of levity and whimsy to the typically serious discourse on stock price determinants, reminding observers that the name of the game is not always as clear-cut as ABC.


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 Number of public school students in 2nd grade and SLB's stock price (SLB). Make lots of jokes, goofy observations, and puns.

Here is the title and abstract of the paper:
[[TITLE]]
Grading the Connection: A Lesson in Correlation Between 2nd Grade Enrollment and SLB's Stock Price

[[ABSTRACT]]
This paper delves into the unlikely intersection of elementary education and financial markets by examining the correlation between the number of public school students in 2nd grade and the stock price of Schlumberger Limited (SLB). Utilizing data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), our research team unearthed a remarkable correlation coefficient of 0.8291942 and a significance level of p < 0.01 for the period spanning from 2002 to 2022. Our findings suggest that there may indeed be a surprising relationship between juvenile education and stock market performance. The potential implications of these results are not to be dismissed as child's play, and future research could further illuminate the dynamics at play. This study adds a dose of levity and whimsy to the typically serious discourse on stock price determinants, reminding observers that the name of the game is not always as clear-cut as ABC.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

In the world of academia and finance, the notion of drawing a connection between the number of children learning their 1-2-3s and A-B-Cs and the fluctuations of stock prices might seem as far-fetched as a child's tall tale. However, with the rise of big data and the quest for uncovering new and unexpected patterns, researchers have ventured into uncharted territories, including the unlikely nexus of elementary education and the stock market. Our research aims to shed light on this peculiar association by examining the correlation between the enrollment of 2nd-grade students in public schools and the stock price of Schlumberger Limited (SLB).

With the stock market often appearing as unpredictable as a roomful of energetic 2nd graders, one might question the rationale behind exploring such an unconventional pairing. However, as the prolific educator and author Rita Pierson once said, "Every child deserves a champion – an adult who will never give up on them, who understands the power of connection and insists that they become the best that they can possibly be." In a similar vein, our study seeks to champion the exploration of unexpected correlations, insisting that every data point deserves its day in the sun.

As we venture into this uncharted territory, we are acutely aware that some may view our pursuit as reminiscent of a wild goose chase. However, as pioneers in the field of quirky financial investigations, we embrace the challenge with a sense of curiosity and whimsy. So buckle up as we embark on this intellectual rollercoaster, where the only thing we can expect is the unexpected. After all, as Mark Twain famously quipped, "Get your facts first, then you can distort them as you please."

Our journey commences with a peek into the surprising findings that have emerged from our data analysis. Prepare to be pleasantly astonished, as we unveil the numerical evidence that suggests there may indeed be a link between the innocence of youth and the cutthroat world of market performance. It's time to dust off those number two pencils and jump into the world where education meets economics, a place where the recess bell and the closing bell might just have more in common than meets the eye.


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 Number of public school students in 2nd grade and SLB's stock price (SLB). 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. Perhaps you also got inspiration from some board games that are vaugely related.

Here is the title and abstract of the paper:
[[TITLE]]
Grading the Connection: A Lesson in Correlation Between 2nd Grade Enrollment and SLB's Stock Price

[[ABSTRACT]]
This paper delves into the unlikely intersection of elementary education and financial markets by examining the correlation between the number of public school students in 2nd grade and the stock price of Schlumberger Limited (SLB). Utilizing data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), our research team unearthed a remarkable correlation coefficient of 0.8291942 and a significance level of p < 0.01 for the period spanning from 2002 to 2022. Our findings suggest that there may indeed be a surprising relationship between juvenile education and stock market performance. The potential implications of these results are not to be dismissed as child's play, and future research could further illuminate the dynamics at play. This study adds a dose of levity and whimsy to the typically serious discourse on stock price determinants, reminding observers that the name of the game is not always as clear-cut as ABC.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
In the world of academia and finance, the notion of drawing a connection between the number of children learning their 1-2-3s and A-B-Cs and the fluctuations of stock prices might seem as far-fetched as a child's tall tale. However, with the rise of big data and the quest for uncovering new and unexpected patterns, researchers have ventured into uncharted territories, including the unlikely nexus of elementary education and the stock market. Our research aims to shed light on this peculiar association by examining the correlation between the enrollment of 2nd-grade students in public schools and the stock price of Schlumberger Limited (SLB).
With the stock market often appearing as unpredictable as a roomful of energetic 2nd graders, one might question the rationale behind exploring such an unconventional pairing. However, as the prolific educator and author Rita Pierson once said, "Every child deserves a champion – an adult who will never give up on them, who understands the power of connection and insists that they become the best that they can possibly be." In a similar vein, our study seeks to champion the exploration of unexpected correlations, insisting that every data point deserves its day in the sun.
As we venture into this uncharted territory, we are acutely aware that some may view our pursuit as reminiscent of a wild goose chase. However, as pioneers in the field of quirky financial investigations, we embrace the challenge with a sense of curiosity and whimsy. So buckle up as we embark on this intellectual rollercoaster, where the only thing we can expect is the unexpected. After all, as Mark Twain famously quipped, "Get your facts first, then you can distort them as you please."
Our journey commences with a peek into the surprising findings that have emerged from our data analysis. Prepare to be pleasantly astonished, as we unveil the numerical evidence that suggests there may indeed be a link between the innocence of youth and the cutthroat world of market performance. It's time to dust off those number two pencils and jump into the world where education meets economics, a place where the recess bell and the closing bell might just have more in common than meets the eye.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

In the realm of academic inquiry, the pursuit of unusual correlations has led researchers into uncharted and often whimsical territories. As we delve into the unexpected relationship between the number of 2nd-grade students in public schools and the stock price of Schlumberger Limited (SLB), it is essential to recognize the eclectic nature of our inquiry. While the study at hand encompasses a fusion of childhood education and financial markets, it is important to acknowledge the scholarly endeavors that have paved the way for such unorthodox investigations.

The investigation into the connection between seemingly disparate variables has long intrigued scholars and practitioners alike. Smith and Doe (2015) initiated this trail of inquiry by exploring correlations between children's educational milestones and economic indicators, prompting reflection on the potential interplay between innocence and market dynamics. Building upon this foundation, Jones and Smith (2018) further expanded the discourse by scrutinizing the intricate relationship between youth literacy rates and stock market volatility. These serious inquiries served as beacons of intellectual curiosity, directing our attention to the unanticipated interplay of childhood development and economic systems.

Transitioning from the factual to the fantastical, our examination draws inspiration from an array of non-fiction and fictional sources. For instance, the work of Friedman (2012) on "The World is Flat" offers insights into the interconnectedness of global systems, subtly hinting at the interconnectedness of education and financial markets. We also find ourselves captivated by the timeless wisdom embedded within "Alice's Adventures in Wonderland" as written by Carroll (1865), sparking fantastical ruminations on the whimsical nature of unexpected correlations.

As we embark on this scholarly escapade, references to board games such as "Monopoly" and "Chutes and Ladders" often emerge in jest, playfully nudging at the notion of game-like dynamics within the stock market. While seemingly incongruous with traditional scholarly discourse, these references serve as delightful interjections, injecting a playful spirit into the otherwise somber exploration of correlation coefficients and statistical significance.

The confluence of these influences sets the stage for our examination of the correlation between 2nd-grade enrollment and SLB's stock price. With a nod to the unconventional and a recognition of the unexpected, we proffer this investigation as a lighthearted yet rigorously researched addition to the discourse on unlikely correlations. So let us traverse this intellectual playground with resolute curiosity, where the rules are fluid, the outcomes unforeseeable, and the scholarly pursuit is laced with just the right amount of playfulness.


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 Number of public school students in 2nd grade and SLB's stock price (SLB). Make lots of jokes, goofy observations, and puns.

Your research team collected data from all across the internet, but mostly just used information from National Center for Education Statistics and LSEG Analytics (Refinitiv) . You used data from 2002 to 2022

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

Here is the title, abstract, and introduction of the paper:
[[TITLE]]
Grading the Connection: A Lesson in Correlation Between 2nd Grade Enrollment and SLB's Stock Price

[[ABSTRACT]]
This paper delves into the unlikely intersection of elementary education and financial markets by examining the correlation between the number of public school students in 2nd grade and the stock price of Schlumberger Limited (SLB). Utilizing data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), our research team unearthed a remarkable correlation coefficient of 0.8291942 and a significance level of p < 0.01 for the period spanning from 2002 to 2022. Our findings suggest that there may indeed be a surprising relationship between juvenile education and stock market performance. The potential implications of these results are not to be dismissed as child's play, and future research could further illuminate the dynamics at play. This study adds a dose of levity and whimsy to the typically serious discourse on stock price determinants, reminding observers that the name of the game is not always as clear-cut as ABC.

[[INTRODUCTION]]
In the world of academia and finance, the notion of drawing a connection between the number of children learning their 1-2-3s and A-B-Cs and the fluctuations of stock prices might seem as far-fetched as a child's tall tale. However, with the rise of big data and the quest for uncovering new and unexpected patterns, researchers have ventured into uncharted territories, including the unlikely nexus of elementary education and the stock market. Our research aims to shed light on this peculiar association by examining the correlation between the enrollment of 2nd-grade students in public schools and the stock price of Schlumberger Limited (SLB).
With the stock market often appearing as unpredictable as a roomful of energetic 2nd graders, one might question the rationale behind exploring such an unconventional pairing. However, as the prolific educator and author Rita Pierson once said, "Every child deserves a champion – an adult who will never give up on them, who understands the power of connection and insists that they become the best that they can possibly be." In a similar vein, our study seeks to champion the exploration of unexpected correlations, insisting that every data point deserves its day in the sun.
As we venture into this uncharted territory, we are acutely aware that some may view our pursuit as reminiscent of a wild goose chase. However, as pioneers in the field of quirky financial investigations, we embrace the challenge with a sense of curiosity and whimsy. So buckle up as we embark on this intellectual rollercoaster, where the only thing we can expect is the unexpected. After all, as Mark Twain famously quipped, "Get your facts first, then you can distort them as you please."
Our journey commences with a peek into the surprising findings that have emerged from our data analysis. Prepare to be pleasantly astonished, as we unveil the numerical evidence that suggests there may indeed be a link between the innocence of youth and the cutthroat world of market performance. It's time to dust off those number two pencils and jump into the world where education meets economics, a place where the recess bell and the closing bell might just have more in common than meets the eye.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

While the idea of tying together 2nd-grade enrollment and stock prices may seem as improbable as finding a monkey in a mitten, the methodology behind our research is as sound as a pound. Our endeavor involved the meticulous gathering of data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), reminiscent of an ambitious scavenger hunt across the cyberspace terrain.

Firstly, we harnessed the power of National Center for Education Statistics to obtain comprehensive information on 2nd-grade enrollment in public schools across the years 2002 to 2022. This rigorous data hunt was akin to a treasure hunt for the Holy Grail, with spreadsheets and databases serving as our trusty maps and compasses.

Simultaneously, we tapped into the riches of LSEG Analytics (Refinitiv) to capture the ever-fluctuating stock price of Schlumberger Limited (SLB) over the same period. Wrangling this financial data was akin to taming a capricious bronco, with figures and trends galloping across our screens like a herd of wild horses.

A core component of our methodology was to perform thorough data cleaning and validation, ensuring that our datasets were as polished and pristine as a shiny red apple at the teacher's desk. We meticulously combed through the data, weeding out any outliers or irregularities that sought to disrupt our statistical garden.

After compiling and vetting our datasets, we employed the robust statistical software, SPSS (Statistical Package for the Social Sciences), to perform a series of correlation analyses, including Pearson's correlation coefficient and significance testing. This step was akin to casting a sophisticated spell, beckoning the numbers to reveal their secrets and unveil any hidden connections.

Not content with merely scratching the surface, we delved into regression analysis to investigate the potential predictive power of 2nd-grade enrollment on SLB's stock price, embracing the challenge as if we were navigating a maze in search of the treasure trove at its center.

Our rigorous and, dare we say, adventurous approach allowed us to uncover the striking correlation coefficient of 0.8291942 and a significance level of p < 0.01, casting a spotlight on the surprising relationship between the innocence of youth and the volatility of market performance.

In summary, our methodology encapsulates a spirited pursuit of data, from embarking on digital expeditions to unearth information to wielding advanced statistical tools to decipher the mysteries lying beneath the surface. If our methodology were a story, it would be a thrilling adventure tale with data points as the eccentric characters and statistical analyses as the exhilarating plot twists.


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 Number of public school students in 2nd grade and SLB's stock price (SLB). Make lots of jokes, goofy observations, and puns.

Your research team collected data from all across the internet, but mostly just used information from National Center for Education Statistics and LSEG Analytics (Refinitiv) .

For the time period 2002 to 2022, you found a correlation 0.8291942, r-squared of 0.6875630, 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]]
Grading the Connection: A Lesson in Correlation Between 2nd Grade Enrollment and SLB's Stock Price

[[ABSTRACT]]
This paper delves into the unlikely intersection of elementary education and financial markets by examining the correlation between the number of public school students in 2nd grade and the stock price of Schlumberger Limited (SLB). Utilizing data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), our research team unearthed a remarkable correlation coefficient of 0.8291942 and a significance level of p < 0.01 for the period spanning from 2002 to 2022. Our findings suggest that there may indeed be a surprising relationship between juvenile education and stock market performance. The potential implications of these results are not to be dismissed as child's play, and future research could further illuminate the dynamics at play. This study adds a dose of levity and whimsy to the typically serious discourse on stock price determinants, reminding observers that the name of the game is not always as clear-cut as ABC.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
In the world of academia and finance, the notion of drawing a connection between the number of children learning their 1-2-3s and A-B-Cs and the fluctuations of stock prices might seem as far-fetched as a child's tall tale. However, with the rise of big data and the quest for uncovering new and unexpected patterns, researchers have ventured into uncharted territories, including the unlikely nexus of elementary education and the stock market. Our research aims to shed light on this peculiar association by examining the correlation between the enrollment of 2nd-grade students in public schools and the stock price of Schlumberger Limited (SLB).
With the stock market often appearing as unpredictable as a roomful of energetic 2nd graders, one might question the rationale behind exploring such an unconventional pairing. However, as the prolific educator and author Rita Pierson once said, "Every child deserves a champion – an adult who will never give up on them, who understands the power of connection and insists that they become the best that they can possibly be." In a similar vein, our study seeks to champion the exploration of unexpected correlations, insisting that every data point deserves its day in the sun.
As we venture into this uncharted territory, we are acutely aware that some may view our pursuit as reminiscent of a wild goose chase. However, as pioneers in the field of quirky financial investigations, we embrace the challenge with a sense of curiosity and whimsy. So buckle up as we embark on this intellectual rollercoaster, where the only thing we can expect is the unexpected. After all, as Mark Twain famously quipped, "Get your facts first, then you can distort them as you please."
Our journey commences with a peek into the surprising findings that have emerged from our data analysis. Prepare to be pleasantly astonished, as we unveil the numerical evidence that suggests there may indeed be a link between the innocence of youth and the cutthroat world of market performance. It's time to dust off those number two pencils and jump into the world where education meets economics, a place where the recess bell and the closing bell might just have more in common than meets the eye.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The results of the analysis revealed a striking correlation coefficient of 0.8291942 between the number of public school students in 2nd grade and SLB's stock price for the period from 2002 to 2022. This correlation coefficient, as large as the enthusiasm of a 2nd grader at recess, suggests a strong positive relationship between these seemingly unrelated variables.

Furthermore, the r-squared value of 0.6875630 indicates that approximately 68.8% of the variation in SLB's stock price can be explained by changes in the enrollment of 2nd-grade students. This finding, akin to solving a complex math problem in elementary school, implies that the number of 2nd-grade students contributes significantly to the movements in SLB's stock price.

The significance level of p < 0.01 asserts that the observed correlation is highly unlikely to have occurred by chance, akin to a lucky pencil falling out of a student's desk. This provides solid statistical evidence to support the presence of a meaningful relationship between these two variables.

Fig. 1 presents a scatterplot illustrating the robust correlation between the number of public school students in 2nd grade and SLB's stock price. It vividly depicts the upward trend, reminiscent of a young student's upward trajectory in mastering the basics, in the stock price as the number of 2nd-grade students increases.

In summary, these results not only challenge conventional wisdom but also add a touch of playfulness to the serious realm of financial analysis. It appears that the number of 2nd-grade students may have more influence on stock prices than previously thought. This unexpected revelation sparks curiosity and opens the door to further exploration of the interplay between childhood education and market dynamics.


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 Number of public school students in 2nd grade and SLB's stock price (SLB). Make lots of jokes, goofy observations, and puns.

Limit your response to 500 tokens.

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

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

[[TITLE]]
Grading the Connection: A Lesson in Correlation Between 2nd Grade Enrollment and SLB's Stock Price

[[ABSTRACT]]
This paper delves into the unlikely intersection of elementary education and financial markets by examining the correlation between the number of public school students in 2nd grade and the stock price of Schlumberger Limited (SLB). Utilizing data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), our research team unearthed a remarkable correlation coefficient of 0.8291942 and a significance level of p < 0.01 for the period spanning from 2002 to 2022. Our findings suggest that there may indeed be a surprising relationship between juvenile education and stock market performance. The potential implications of these results are not to be dismissed as child's play, and future research could further illuminate the dynamics at play. This study adds a dose of levity and whimsy to the typically serious discourse on stock price determinants, reminding observers that the name of the game is not always as clear-cut as ABC.

[[LITERATURE REVIEW]]
In the realm of academic inquiry, the pursuit of unusual correlations has led researchers into uncharted and often whimsical territories. As we delve into the unexpected relationship between the number of 2nd-grade students in public schools and the stock price of Schlumberger Limited (SLB), it is essential to recognize the eclectic nature of our inquiry. While the study at hand encompasses a fusion of childhood education and financial markets, it is important to acknowledge the scholarly endeavors that have paved the way for such unorthodox investigations.
The investigation into the connection between seemingly disparate variables has long intrigued scholars and practitioners alike. Smith and Doe (2015) initiated this trail of inquiry by exploring correlations between children's educational milestones and economic indicators, prompting reflection on the potential interplay between innocence and market dynamics. Building upon this foundation, Jones and Smith (2018) further expanded the discourse by scrutinizing the intricate relationship between youth literacy rates and stock market volatility. These serious inquiries served as beacons of intellectual curiosity, directing our attention to the unanticipated interplay of childhood development and economic systems.
Transitioning from the factual to the fantastical, our examination draws inspiration from an array of non-fiction and fictional sources. For instance, the work of Friedman (2012) on "The World is Flat" offers insights into the interconnectedness of global systems, subtly hinting at the interconnectedness of education and financial markets. We also find ourselves captivated by the timeless wisdom embedded within "Alice's Adventures in Wonderland" as written by Carroll (1865), sparking fantastical ruminations on the whimsical nature of unexpected correlations.
As we embark on this scholarly escapade, references to board games such as "Monopoly" and "Chutes and Ladders" often emerge in jest, playfully nudging at the notion of game-like dynamics within the stock market. While seemingly incongruous with traditional scholarly discourse, these references serve as delightful interjections, injecting a playful spirit into the otherwise somber exploration of correlation coefficients and statistical significance.
The confluence of these influences sets the stage for our examination of the correlation between 2nd-grade enrollment and SLB's stock price. With a nod to the unconventional and a recognition of the unexpected, we proffer this investigation as a lighthearted yet rigorously researched addition to the discourse on unlikely correlations. So let us traverse this intellectual playground with resolute curiosity, where the rules are fluid, the outcomes unforeseeable, and the scholarly pursuit is laced with just the right amount of playfulness.

[[RESULTS]]
The results of the analysis revealed a striking correlation coefficient of 0.8291942 between the number of public school students in 2nd grade and SLB's stock price for the period from 2002 to 2022. This correlation coefficient, as large as the enthusiasm of a 2nd grader at recess, suggests a strong positive relationship between these seemingly unrelated variables.
Furthermore, the r-squared value of 0.6875630 indicates that approximately 68.8% of the variation in SLB's stock price can be explained by changes in the enrollment of 2nd-grade students. This finding, akin to solving a complex math problem in elementary school, implies that the number of 2nd-grade students contributes significantly to the movements in SLB's stock price.
The significance level of p < 0.01 asserts that the observed correlation is highly unlikely to have occurred by chance, akin to a lucky pencil falling out of a student's desk. This provides solid statistical evidence to support the presence of a meaningful relationship between these two variables.
Fig. 1 presents a scatterplot illustrating the robust correlation between the number of public school students in 2nd grade and SLB's stock price. It vividly depicts the upward trend, reminiscent of a young student's upward trajectory in mastering the basics, in the stock price as the number of 2nd-grade students increases.
In summary, these results not only challenge conventional wisdom but also add a touch of playfulness to the serious realm of financial analysis. It appears that the number of 2nd-grade students may have more influence on stock prices than previously thought. This unexpected revelation sparks curiosity and opens the door to further exploration of the interplay between childhood education and market dynamics.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The correlation coefficient of 0.8291942 between the number of 2nd-grade students in public schools and SLB's stock price unveils a surprising link between elementary education and financial markets. This finding not only tickles the reader's imagination but also resonates with prior research that has dared to explore unconventional correlations. In the spirit of whimsy and intellectual curiosity, let us merrily traipse through this discussion with the assurance that the educational and economic playgrounds share more in common than meets the eye.

The scholarly escapade of Smith and Doe (2015) into the correlation between children's educational milestones and economic indicators lays a solid foundation for our own investigation. Just as a class clown can influence the mood in the classroom, our findings suggest that the number of 2nd-grade students may indeed exert influence over the price movements of SLB's stock. This lends support to the notion that childhood development and market dynamics might interact in unexpected ways.

On a lighter note, the work of Friedman (2012) on "The World is Flat" offers a metaphorical bridge to the interconnectedness of global systems, much like a seesaw that unites two distant ends. In this lighthearted analogy, our results serve as the children on the seesaw, affecting the movement and balance of the financial markets.

Moreover, the whimsical insights from "Alice's Adventures in Wonderland" as written by Carroll (1865) gently prod at the possibility of unforeseen correlations lurking beneath the surface of conventional economic wisdom. Similar to Alice's experience with the enigmatic Cheshire Cat, our findings grin rather widely at the unexpected connection between 2nd-grade enrollments and SLB's stock price, challenging the notion that market influences are exclusively adult matters.

In a similar vein, our findings add a dose of levity and mirth to the typically serious discourse on stock price determinants. The juxtaposition of childhood innocence and market performance mirrors the playful interjections of board game references such as "Monopoly" and "Chutes and Ladders" from the literature review. Like a game of "Monopoly," where the roll of the dice can drastically alter one's fortunes, the enrollment of 2nd-grade students seems to have a surprising impact on SLB's stock prices, emphasizing the playfulness and unpredictability that can underlie market dynamics.

In essence, our findings lend credence to the innovative and whimsical inquiries that have preceded our study, reminding us that the world of statistics and stock prices is not always as cut-and-dry as ABC. They encourage us to embrace the unexpected and celebrate the playful nature of intellectual discovery, where scholarly pursuits often lead to delightful surprises and unforeseen connections.


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 Number of public school students in 2nd grade and SLB's stock price (SLB). Make lots of jokes, goofy observations, and puns.

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

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
Grading the Connection: A Lesson in Correlation Between 2nd Grade Enrollment and SLB's Stock Price

[[ABSTRACT]]
This paper delves into the unlikely intersection of elementary education and financial markets by examining the correlation between the number of public school students in 2nd grade and the stock price of Schlumberger Limited (SLB). Utilizing data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), our research team unearthed a remarkable correlation coefficient of 0.8291942 and a significance level of p < 0.01 for the period spanning from 2002 to 2022. Our findings suggest that there may indeed be a surprising relationship between juvenile education and stock market performance. The potential implications of these results are not to be dismissed as child's play, and future research could further illuminate the dynamics at play. This study adds a dose of levity and whimsy to the typically serious discourse on stock price determinants, reminding observers that the name of the game is not always as clear-cut as ABC.

[[INTRDUCTION]]
In the world of academia and finance, the notion of drawing a connection between the number of children learning their 1-2-3s and A-B-Cs and the fluctuations of stock prices might seem as far-fetched as a child's tall tale. However, with the rise of big data and the quest for uncovering new and unexpected patterns, researchers have ventured into uncharted territories, including the unlikely nexus of elementary education and the stock market. Our research aims to shed light on this peculiar association by examining the correlation between the enrollment of 2nd-grade students in public schools and the stock price of Schlumberger Limited (SLB).
With the stock market often appearing as unpredictable as a roomful of energetic 2nd graders, one might question the rationale behind exploring such an unconventional pairing. However, as the prolific educator and author Rita Pierson once said, "Every child deserves a champion – an adult who will never give up on them, who understands the power of connection and insists that they become the best that they can possibly be." In a similar vein, our study seeks to champion the exploration of unexpected correlations, insisting that every data point deserves its day in the sun.
As we venture into this uncharted territory, we are acutely aware that some may view our pursuit as reminiscent of a wild goose chase. However, as pioneers in the field of quirky financial investigations, we embrace the challenge with a sense of curiosity and whimsy. So buckle up as we embark on this intellectual rollercoaster, where the only thing we can expect is the unexpected. After all, as Mark Twain famously quipped, "Get your facts first, then you can distort them as you please."
Our journey commences with a peek into the surprising findings that have emerged from our data analysis. Prepare to be pleasantly astonished, as we unveil the numerical evidence that suggests there may indeed be a link between the innocence of youth and the cutthroat world of market performance. It's time to dust off those number two pencils and jump into the world where education meets economics, a place where the recess bell and the closing bell might just have more in common than meets the eye.

[[RESULTS]]
The results of the analysis revealed a striking correlation coefficient of 0.8291942 between the number of public school students in 2nd grade and SLB's stock price for the period from 2002 to 2022. This correlation coefficient, as large as the enthusiasm of a 2nd grader at recess, suggests a strong positive relationship between these seemingly unrelated variables.
Furthermore, the r-squared value of 0.6875630 indicates that approximately 68.8% of the variation in SLB's stock price can be explained by changes in the enrollment of 2nd-grade students. This finding, akin to solving a complex math problem in elementary school, implies that the number of 2nd-grade students contributes significantly to the movements in SLB's stock price.
The significance level of p < 0.01 asserts that the observed correlation is highly unlikely to have occurred by chance, akin to a lucky pencil falling out of a student's desk. This provides solid statistical evidence to support the presence of a meaningful relationship between these two variables.
Fig. 1 presents a scatterplot illustrating the robust correlation between the number of public school students in 2nd grade and SLB's stock price. It vividly depicts the upward trend, reminiscent of a young student's upward trajectory in mastering the basics, in the stock price as the number of 2nd-grade students increases.
In summary, these results not only challenge conventional wisdom but also add a touch of playfulness to the serious realm of financial analysis. It appears that the number of 2nd-grade students may have more influence on stock prices than previously thought. This unexpected revelation sparks curiosity and opens the door to further exploration of the interplay between childhood education and market dynamics.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our study has uncovered a correlation between the number of 2nd-grade students and the stock price of Schlumberger Limited (SLB) that is as strong as the grip of a child clutching onto their favorite toy. The findings of this research not only raise eyebrows but also send a clear message that there's more to elementary education and stock market dynamics than meets the eye. As we wrap up this whimsical journey through statistical wonderland, it's clear that the link between innocent youth and financial fortuity is not just child's play.

This unexpected marriage of 2nd-grade enrollment and stock prices may leave some scratching their heads, much like the confusion induced by a tricky math problem on a standardized test. However, the evidence speaks for itself, and the correlation coefficient of 0.8291942 stands as a testament to the remarkably robust relationship between these ostensibly unrelated variables.

As we reflect on our findings, it becomes evident that the interplay between youthful exuberance and market trends is not something to be dismissed lightly. It appears that the whims of 2nd graders could potentially sway the tides of the stock market, prompting us to rethink the age-old debate of recess vs. returns.

In the spirit of academic humility, we must acknowledge the limitations of this study. While the statistical evidence presents a compelling case, the underlying mechanisms driving this correlation remain as enigmatic as a child's imagination. Thus, the door is wide open for future research to delve deeper into the underlying mechanisms behind this unexpected relationship. As Albert Einstein once quipped, "The important thing is to not stop questioning." However, in the case of this particular correlation, we are confident that no further research is needed, as the results of this study undoubtedly present a definitive conclusion.


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 Grading the Connection: A Lesson in Correlation Between 2nd Grade Enrollment and SLB's Stock Price. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Elementary Econometrics


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 Grading the Connection: A Lesson in Correlation Between 2nd Grade Enrollment and SLB's Stock Price. Respond only with the name of a fictional organization.

ChatGPT:

The Institute for Elementary Education Economics 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 Grading the Connection: A Lesson in Correlation Between 2nd Grade Enrollment and SLB's Stock Price with an abstract of This paper delves into the unlikely intersection of elementary education and financial markets by examining the correlation between the number of public school students in 2nd grade and the stock price of Schlumberger Limited (SLB). Utilizing data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), our research team unearthed a remarkable correlation coefficient of 0.8291942 and a significance level of p < 0.01 for the period spanning from 2002 to 2022. Our findings suggest that there may indeed be a surprising relationship between juvenile education and stock market performance. The potential implications of these results are not to be dismissed as child's play, and future research could further illuminate the dynamics at play. This study adds a dose of levity and whimsy to the typically serious discourse on stock price determinants, reminding observers that the name of the game is not always as clear-cut as ABC.

ChatGPT:

2nd grade enrollment, elementary education, public school students, National Center for Education Statistics, Schlumberger Limited, SLB stock price, correlation coefficient, significance level, LSEG Analytics, Refinitiv, stock market performance, juvenile education, stock market dynamics, stock price determinants

*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

Number of public school students in 2nd grade
Detailed data title: 2nd grade enrollment in public elementary and secondary schools
Source: National Center for Education Statistics
See what else correlates with Number of public school students in 2nd grade

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

See what else correlates with SLB's stock price (SLB)

Correlation r = 0.8291942 (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.6875630 (Coefficient of determination)
This means 68.8% of the change in the one variable (i.e., SLB's stock price (SLB)) is predictable based on the change in the other (i.e., Number of public school students in 2nd grade) over the 21 years from 2002 through 2022.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 3.4E-6. 0.0000033842344241146807000000
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.83 in 0.00034% of random cases. Said differently, if you correlated 295,488 random variables You don't actually need 295 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 20 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 20 because we have two variables measured over a period of 21 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.62, 0.93 ] 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.
200220032004200520062007200820092010201120122013201420152016201720182019202020212022
Number of public school students in 2nd grade (Students)356487035437803559850360640036407003704000369872036647003700670371322037294603791120385720038424503760770368409036537603638260352880035193203455510
SLB's stock price (SLB) (Stock price)27.4821.1527.3633.449.4363.0199.4442.7566.398470.470.889.4884.8169.4584.8668.0735.4940.5222.0830.07




Why this works

  1. Data dredging: I have 25,153 variables in my database. I compare all these variables against each other to find ones that randomly match up. That's 632,673,409 correlation calculations! This is called “data dredging.” Instead of starting with a hypothesis and testing it, I instead abused the data to see what correlations shake out. It’s a dangerous way to go about analysis, because any sufficiently large dataset will yield strong correlations completely at random.
  2. Lack of causal connection: There is probably Because these pages are automatically generated, it's possible that the two variables you are viewing are in fact causually related. I take steps to prevent the obvious ones from showing on the site (I don't let data about the weather in one city correlate with the weather in a neighboring city, for example), but sometimes they still pop up. If they are related, cool! You found a loophole.
    no direct connection between these variables, despite what the AI says above. This is exacerbated by the fact that I used "Years" as the base variable. Lots of things happen in a year that are not related to each other! Most studies would use something like "one person" in stead of "one year" to be the "thing" studied.
  3. Observations not independent: For many variables, sequential years are not independent of each other. If a population of people is continuously doing something every day, there is no reason to think they would suddenly change how they are doing that thing on January 1. A simple Personally I don't find any p-value calculation to be 'simple,' but you know what I mean.
    p-value calculation does not take this into account, so mathematically it appears less probable than it really is.
  4. Y-axis doesn't start at zero: I truncated the Y-axes of the graph above. I also used a line graph, which makes the visual connection stand out more than it deserves. Nothing against line graphs. They are great at telling a story when you have linear data! But visually it is deceptive because the only data is at the points on the graph, not the lines on the graph. In between each point, the data could have been doing anything. Like going for a random walk by itself!
    Mathematically what I showed is true, but it is intentionally misleading. Below is the same chart but with both Y-axes starting at zero.




Try it yourself

You can calculate the values on this page on your own! Try running the Python code to see the calculation results. Step 1: Download and install Python on your computer.

Step 2: Open a plaintext editor like Notepad and paste the code below into it.

Step 3: Save the file as "calculate_correlation.py" in a place you will remember, like your desktop. Copy the file location to your clipboard. On Windows, you can right-click the file and click "Properties," and then copy what comes after "Location:" As an example, on my computer the location is "C:\Users\tyler\Desktop"

Step 4: Open a command line window. For example, by pressing start and typing "cmd" and them pressing enter.

Step 5: Install the required modules by typing "pip install numpy", then pressing enter, then typing "pip install scipy", then pressing enter.

Step 6: Navigate to the location where you saved the Python file by using the "cd" command. For example, I would type "cd C:\Users\tyler\Desktop" and push enter.

Step 7: Run the Python script by typing "python calculate_correlation.py"

If you run into any issues, I suggest asking ChatGPT to walk you through installing Python and running the code below on your system. Try this question:

"Walk me through installing Python on my computer to run a script that uses scipy and numpy. Go step-by-step and ask me to confirm before moving on. Start by asking me questions about my operating system so that you know how to proceed. Assume I want the simplest installation with the latest version of Python and that I do not currently have any of the necessary elements installed. Remember to only give me one step per response and confirm I have done it before proceeding."


# These modules make it easier to perform the calculation
import numpy as np
from scipy import stats

# We'll define a function that we can call to return the correlation calculations
def calculate_correlation(array1, array2):

    # Calculate Pearson correlation coefficient and p-value
    correlation, p_value = stats.pearsonr(array1, array2)

    # Calculate R-squared as the square of the correlation coefficient
    r_squared = correlation**2

    return correlation, r_squared, p_value

# These are the arrays for the variables shown on this page, but you can modify them to be any two sets of numbers
array_1 = np.array([3564870,3543780,3559850,3606400,3640700,3704000,3698720,3664700,3700670,3713220,3729460,3791120,3857200,3842450,3760770,3684090,3653760,3638260,3528800,3519320,3455510,])
array_2 = np.array([27.48,21.15,27.36,33.4,49.43,63.01,99.44,42.75,66.39,84,70.4,70.8,89.48,84.81,69.45,84.86,68.07,35.49,40.52,22.08,30.07,])
array_1_name = "Number of public school students in 2nd grade"
array_2_name = "SLB's stock price (SLB)"

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

You're the correlation whisperer we needed!


Correlation ID: 3211 · Black Variable ID: 1299 · Red Variable ID: 1650
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0