about · email me · subscribe
Spurious correlation #2,414 · 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 games won by Detroit Red Wings in NHL season and the second variable is The number of city bus drivers in Missouri.  The chart goes from 2003 to 2021, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

As the Detroit Red Wings continued to lose, their fans in Missouri became increasingly distraught. In an attempt to avoid any more disappointment, these fans decided to leave the city and pursue a more victorious existence elsewhere. This mass exodus led to a shortage of city bus drivers in Missouri, as even the most skilled drivers couldn't navigate their way out of such a Red Wings-induced predicament. So, remember folks, every time the Red Wings win, a city bus driver in Missouri gets their wings too!

Model: dalle-3
Prompt: Generate an image of a woodblock painting featuring a scene in Detroit. Depict a row of jubilant Red Wings fans holding a "W" flag outside the hockey arena, exuding elation after their team's victory. In the backdrop, portray a line of aspiring bus driver recruits in blue uniforms, eagerly awaiting training. Capture the exuberance and zeal triggered by the hockey win, illustrating the city's residents moving towards new prospects with zeal and enthusiasm. 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 games won by Detroit Red Wings in NHL season and The number of city bus drivers in Missouri. 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: Magic realism Woodblock painting Symbolism A photo-realistic image Woodblock painting
ChatGPT: Woodblock painting

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 games won by Detroit Red Wings in NHL season and The number of city bus drivers in Missouri, in the following situation: The Red Wings' victories were literally driving people to become bus drivers, as fans were inspired to work in transportation to share in the excitement of winning.. Keep the description simple.
ChatGPT: In Detroit, a row of smiling Red Wings fans are seen celebrating on the sidewalk outside the hockey arena, proudly holding up a "W" flag to mark their team's latest victory. In the background, a line of new recruits, wearing blue uniforms, are eagerly lining up for bus driver training, inspired to join the transportation workforce. The energy and spirit of the hockey win seems to be propelling the city's residents toward new opportunities, creating an atmosphere of excitement and motivation.

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: [ Woodblock painting ] and depicting this scene: In Detroit, a row of smiling Red Wings fans are seen celebrating on the sidewalk outside the hockey arena, proudly holding up a "W" flag to mark their team's latest victory. In the background, a line of new recruits, wearing blue uniforms, are eagerly lining up for bus driver training, inspired to join the transportation workforce. The energy and spirit of the hockey win seems to be propelling the city's residents toward new opportunities, creating an atmosphere of excitement and motivation. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Generate an image of a woodblock painting featuring a scene in Detroit. Depict a row of jubilant Red Wings fans holding a "W" flag outside the hockey arena, exuding elation after their team's victory. In the backdrop, portray a line of aspiring bus driver recruits in blue uniforms, eagerly awaiting training. Capture the exuberance and zeal triggered by the hockey win, illustrating the city's residents moving towards new prospects with zeal and enthusiasm.

*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 games won by Detroit Red Wings in NHL season caused The number of city bus drivers in Missouri to decrease.

AI academic paper

(Because p < 0.01)
Stick to the Rink: The Link Between Detroit Red Wings' Wins and Missouri Bus Driving Shifts

Journal of Sports Analytics and Transportation Studies

Jan 2024

Reminder: This paper is AI-generated. Not real!
Quick note: This sequence is long and repetitive. That's how the prompt engineering works for this one. I manage the output in Python to format it into this PDF.




Model: gpt-3.5-turbo-1106
System prompt: You are a researcher writing an academic paper.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 games won by Detroit Red Wings in NHL season and The number of city bus drivers in Missouri. Make lots of jokes, goofy observations, and puns.

Rhyme words in the title.

Your research team used data from Hockey Reference and Bureau of Larbor Statistics to assess this nagging question. You found a correlation coefficient of 0.8503547 and p < 0.01 for 2003 to 2021.

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

[[TITLE]]
Lorem ipsum dolor sit

[[ABSTRACT]]
Lorem ipsum dolor sit



ChatGPT:
[[TITLE]]
"Stick to the Rink: The Link Between Detroit Red Wings' Wins and Missouri Bus Driving Shifts"

[[ABSTRACT]]
In this study, we set out to tackle the age-old question: is there a statistical connection between the number of games won by the Detroit Red Wings in the NHL season and the number of city bus drivers in Missouri? Armed with hockey data from Hockey Reference and employment statistics from the Bureau of Labor Statistics, we dove deep into the numbers. Much to our surprise, we found a jaw-dropping correlation coefficient of 0.8503547 and a p-value of less than 0.01 for the years 2003 to 2021. Our findings suggest that there may indeed be a synchronous dance between the Red Wings’ victories and the steering of buses in the Show-Me State. As we skate through the implications of our research, it's clear that this unexpected correlation has opened a door to a whole new arena of statistical analysis. Who would have thought that hockey and public transportation could be so closely intertwined?


Model: gpt-3.5-turbo-1106
System prompt: You are a researcher writing an academic paper.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 games won by Detroit Red Wings in NHL season and The number of city bus drivers in Missouri. Make lots of 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]]
"Stick to the Rink: The Link Between Detroit Red Wings' Wins and Missouri Bus Driving Shifts"

[[ABSTRACT]]
In this study, we set out to tackle the age-old question: is there a statistical connection between the number of games won by the Detroit Red Wings in the NHL season and the number of city bus drivers in Missouri? Armed with hockey data from Hockey Reference and employment statistics from the Bureau of Labor Statistics, we dove deep into the numbers. Much to our surprise, we found a jaw-dropping correlation coefficient of 0.8503547 and a p-value of less than 0.01 for the years 2003 to 2021. Our findings suggest that there may indeed be a synchronous dance between the Red Wings’ victories and the steering of buses in the Show-Me State. As we skate through the implications of our research, it's clear that this unexpected correlation has opened a door to a whole new arena of statistical analysis. Who would have thought that hockey and public transportation could be so closely intertwined?

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
INTRODUCTION

As hockey fans, we often revel in the excitement of a hard-fought game, cheering for our favorite teams with unwavering devotion. Yet, amidst the exhilarating slap shots and bone-crunching body checks, a seemingly unrelated world silently hums along – that of public transportation. Intriguingly, in the midst of this unexpected juxtaposition, lies the focus of our study: the perplexing association between the number of games won by the Detroit Red Wings in the NHL season and the number of city bus drivers in Missouri.

The notorious connection between sports and statistics is as undeniable as the gravitational pull between a puck and the ice. However, when merging the exhilarating world of ice hockey with the mundane realm of public transit, one begins to wonder if there's more to this peculiar correlation than meets the eye. Is it possible that the adrenaline-pumping victories on the ice bear an unforeseen influence on the ebb and flow of public transportation in the Show-Me State?

It is within this whimsical and curiously unexplored terrain that we set out on our expedition, armed with the formidable arsenal of data analysis and statistical methodologies. While the notion of such a connection might seem as improbable as a hockey player utilizing a Zamboni for a hat trick, our preliminary findings begin to peel back the layers of this enigmatic relationship.

Join us on this scholarly endeavor as we embark on a journey that is sure to be as entertaining as an overtime shootout and as intellectually stimulating as a game-winning power play. Prepare to witness the unveiling of a statistical tapestry woven between the intriguing domains of hockey triumphs and the peculiar realm of bus driver employment. Who would have thought that our study could uncover such a rink-shaking revelation?


Model: gpt-3.5-turbo-1106
System prompt: You are a researcher writing an academic paper.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 games won by Detroit Red Wings in NHL season and The number of city bus drivers in Missouri. Make lots of jokes, goofy observations, and puns.

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

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

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

Here is the title and abstract of the paper:
[[TITLE]]
"Stick to the Rink: The Link Between Detroit Red Wings' Wins and Missouri Bus Driving Shifts"

[[ABSTRACT]]
In this study, we set out to tackle the age-old question: is there a statistical connection between the number of games won by the Detroit Red Wings in the NHL season and the number of city bus drivers in Missouri? Armed with hockey data from Hockey Reference and employment statistics from the Bureau of Labor Statistics, we dove deep into the numbers. Much to our surprise, we found a jaw-dropping correlation coefficient of 0.8503547 and a p-value of less than 0.01 for the years 2003 to 2021. Our findings suggest that there may indeed be a synchronous dance between the Red Wings’ victories and the steering of buses in the Show-Me State. As we skate through the implications of our research, it's clear that this unexpected correlation has opened a door to a whole new arena of statistical analysis. Who would have thought that hockey and public transportation could be so closely intertwined?

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
INTRODUCTION
As hockey fans, we often revel in the excitement of a hard-fought game, cheering for our favorite teams with unwavering devotion. Yet, amidst the exhilarating slap shots and bone-crunching body checks, a seemingly unrelated world silently hums along – that of public transportation. Intriguingly, in the midst of this unexpected juxtaposition, lies the focus of our study: the perplexing association between the number of games won by the Detroit Red Wings in the NHL season and the number of city bus drivers in Missouri.
The notorious connection between sports and statistics is as undeniable as the gravitational pull between a puck and the ice. However, when merging the exhilarating world of ice hockey with the mundane realm of public transit, one begins to wonder if there's more to this peculiar correlation than meets the eye. Is it possible that the adrenaline-pumping victories on the ice bear an unforeseen influence on the ebb and flow of public transportation in the Show-Me State?
It is within this whimsical and curiously unexplored terrain that we set out on our expedition, armed with the formidable arsenal of data analysis and statistical methodologies. While the notion of such a connection might seem as improbable as a hockey player utilizing a Zamboni for a hat trick, our preliminary findings begin to peel back the layers of this enigmatic relationship.
Join us on this scholarly endeavor as we embark on a journey that is sure to be as entertaining as an overtime shootout and as intellectually stimulating as a game-winning power play. Prepare to witness the unveiling of a statistical tapestry woven between the intriguing domains of hockey triumphs and the peculiar realm of bus driver employment. Who would have thought that our study could uncover such a rink-shaking revelation?

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

In "On the Correlation Between Sports Victories and Employment Trends in the Public Sector," Smith et al. analyze the potential link between professional sports teams' performance and the employment patterns of various industries. A related study by Doe explores the economic impact of sports teams' wins and losses on local economies in "The Field Goals of Success: A Study of Sports Team Performance and Local Employment." Both studies provide valuable insights into the potential influence of sports victories on the labor market.

Turning to more practical perspectives, "Data Analysis in Professional Sports" by Jones delves into the intricate world of sports statistics, offering a comprehensive overview of statistical methodologies and their application to sports data. Additionally, "The Economics of Public Transportation" by Jackson sheds light on the complexities of public transit systems, emphasizing the intricate interplay between transportation infrastructure and employment.

On a lighter note, real-life narratives such as "The Puck Stops Here: Confessions of a Hockey Fan" and "Crossing Paths: A Memoir of a Missouri Bus Driver" provide personal accounts that may offer unexpected perspectives on the connection between hockey victories and bus driver employment. Moving into the realm of fiction, "Ice Rinks and City Streets: A Tale of Two Worlds" and "The Bus Driver's Hat Trick: A Sports Fantasy" present imaginative landscapes that may inadvertently touch upon the themes at hand.

And then, there's the unorthodox approach of reviewing CVS receipts, which surprisingly revealed a hidden subculture of bus driver-hockey fanatics who meticulously track game outcomes and employment fluctuations through the purchase of energy drinks and frozen pizza. While the validity of this method may be subject to debate, its unexpected findings cannot be easily dismissed.

As we wade through the literature, it becomes increasingly clear that the intersection of hockey victories and bus driver employment is a curious and multifaceted realm. The juxtaposition of serious studies, personal narratives, and unexpected sources adds an additional layer of complexity to this already whimsical investigation. But fear not, for in the face of such enigmatic connections, we remain resolute in our pursuit of the truth – even if it means diving into the unlikeliest of sources to unravel the mystery at hand.


Model: gpt-3.5-turbo-1106
System prompt: You are a researcher writing an academic paper.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 games won by Detroit Red Wings in NHL season and The number of city bus drivers in Missouri. Make lots of 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 Hockey Reference and Bureau of Larbor Statistics . You used data from 2003 to 2021

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

Here is the title, abstract, and introduction of the paper:
[[TITLE]]
"Stick to the Rink: The Link Between Detroit Red Wings' Wins and Missouri Bus Driving Shifts"

[[ABSTRACT]]
In this study, we set out to tackle the age-old question: is there a statistical connection between the number of games won by the Detroit Red Wings in the NHL season and the number of city bus drivers in Missouri? Armed with hockey data from Hockey Reference and employment statistics from the Bureau of Labor Statistics, we dove deep into the numbers. Much to our surprise, we found a jaw-dropping correlation coefficient of 0.8503547 and a p-value of less than 0.01 for the years 2003 to 2021. Our findings suggest that there may indeed be a synchronous dance between the Red Wings’ victories and the steering of buses in the Show-Me State. As we skate through the implications of our research, it's clear that this unexpected correlation has opened a door to a whole new arena of statistical analysis. Who would have thought that hockey and public transportation could be so closely intertwined?

[[INTRODUCTION]]
INTRODUCTION
As hockey fans, we often revel in the excitement of a hard-fought game, cheering for our favorite teams with unwavering devotion. Yet, amidst the exhilarating slap shots and bone-crunching body checks, a seemingly unrelated world silently hums along – that of public transportation. Intriguingly, in the midst of this unexpected juxtaposition, lies the focus of our study: the perplexing association between the number of games won by the Detroit Red Wings in the NHL season and the number of city bus drivers in Missouri.
The notorious connection between sports and statistics is as undeniable as the gravitational pull between a puck and the ice. However, when merging the exhilarating world of ice hockey with the mundane realm of public transit, one begins to wonder if there's more to this peculiar correlation than meets the eye. Is it possible that the adrenaline-pumping victories on the ice bear an unforeseen influence on the ebb and flow of public transportation in the Show-Me State?
It is within this whimsical and curiously unexplored terrain that we set out on our expedition, armed with the formidable arsenal of data analysis and statistical methodologies. While the notion of such a connection might seem as improbable as a hockey player utilizing a Zamboni for a hat trick, our preliminary findings begin to peel back the layers of this enigmatic relationship.
Join us on this scholarly endeavor as we embark on a journey that is sure to be as entertaining as an overtime shootout and as intellectually stimulating as a game-winning power play. Prepare to witness the unveiling of a statistical tapestry woven between the intriguing domains of hockey triumphs and the peculiar realm of bus driver employment. Who would have thought that our study could uncover such a rink-shaking revelation?

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

METHODOLOGY

Data Collection:
Our research team painstakingly gathered data from a variety of sources, with a primary focus on statistics from Hockey Reference and the Bureau of Labor Statistics. We meticulously sifted through the digital tundra, scanning for the elusive nuggets of information that would unfurl the mystery surrounding the relationship between the number of games won by the Detroit Red Wings in the NHL season and the number of city bus drivers in Missouri. Our exhaustive search spanned the years 2003 to 2021, ensuring a comprehensive grasp of the fluctuations in both hockey victories and bus driving employment during this period.

Statistical Analysis:
Once the data was gathered, we utilized a concoction of established statistical methods and our own quirky spin to unravel the entanglement between these seemingly unrelated entities. With the precision of a Zamboni smoothing the ice, we computed correlation coefficients and p-values to quantify the degree of association between the Red Wings' wins and the number of bus drivers in Missouri. Our analysis dissected the data with the finesse of a seasoned hockey player dishing out assists, in order to reveal any underlying patterns or connections.

Regression Models:
In our pursuit to elucidate the enigmatic relationship between hockey triumphs and the employment landscape of bus drivers, we also delved into the realm of regression analysis. With mathematical fervor, we constructed models that captured the nuances of this intricate association. Our models danced on the statistical ice, teasing out the subtleties of this curious correlation and providing insights into the potential causal mechanisms driving this unexpected relationship.

Controls and Limitations:
To ensure the robustness of our findings, we meticulously controlled for extraneous factors that could confound our results. Just as a referee ensures fair play on the ice, we diligently accounted for variables such as seasonal fluctuations, economic conditions, and demographic shifts that could potentially influence both the Red Wings' performance and the employment dynamics of bus drivers in Missouri. Furthermore, we acknowledge the limitations inherent in our study, recognizing that causality cannot be inferred from a mere correlation, no matter how striking or puck-like it may be.

Ethical Considerations:
In all our endeavors, we operated within the ethical boundaries of academic research, safeguarding the integrity of our investigation and the privacy of the data sources utilized. Our pursuit of knowledge was as honorable and upright as a hockey player with a sterling reputation, ensuring that our findings were obtained through rigorous and ethical means.

In summary, our methodology navigated the treacherous waters of statistical analysis with the agility of a nimble skater, striving to unveil the hidden symphony playing between hockey victories and the workforce of Missouri's bus drivers. It is through this meticulously crafted research approach that we cast a spotlight on the peculiar correlation that has long eluded our collective understanding. As we present our findings, we invite the scholarly community to join us in reveling in the unexpected crescendo of statistical revelations that lies at the intersection of hockey glory and the daily hustle of bus drivers.


Model: gpt-3.5-turbo-1106
System prompt: You are a researcher writing an academic paper.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 games won by Detroit Red Wings in NHL season and The number of city bus drivers in Missouri. Make lots of 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 Hockey Reference and Bureau of Larbor Statistics .

For the time period 2003 to 2021, you found a correlation 0.8503547, r-squared of 0.7231031, 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]]
"Stick to the Rink: The Link Between Detroit Red Wings' Wins and Missouri Bus Driving Shifts"

[[ABSTRACT]]
In this study, we set out to tackle the age-old question: is there a statistical connection between the number of games won by the Detroit Red Wings in the NHL season and the number of city bus drivers in Missouri? Armed with hockey data from Hockey Reference and employment statistics from the Bureau of Labor Statistics, we dove deep into the numbers. Much to our surprise, we found a jaw-dropping correlation coefficient of 0.8503547 and a p-value of less than 0.01 for the years 2003 to 2021. Our findings suggest that there may indeed be a synchronous dance between the Red Wings’ victories and the steering of buses in the Show-Me State. As we skate through the implications of our research, it's clear that this unexpected correlation has opened a door to a whole new arena of statistical analysis. Who would have thought that hockey and public transportation could be so closely intertwined?

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
INTRODUCTION
As hockey fans, we often revel in the excitement of a hard-fought game, cheering for our favorite teams with unwavering devotion. Yet, amidst the exhilarating slap shots and bone-crunching body checks, a seemingly unrelated world silently hums along – that of public transportation. Intriguingly, in the midst of this unexpected juxtaposition, lies the focus of our study: the perplexing association between the number of games won by the Detroit Red Wings in the NHL season and the number of city bus drivers in Missouri.
The notorious connection between sports and statistics is as undeniable as the gravitational pull between a puck and the ice. However, when merging the exhilarating world of ice hockey with the mundane realm of public transit, one begins to wonder if there's more to this peculiar correlation than meets the eye. Is it possible that the adrenaline-pumping victories on the ice bear an unforeseen influence on the ebb and flow of public transportation in the Show-Me State?
It is within this whimsical and curiously unexplored terrain that we set out on our expedition, armed with the formidable arsenal of data analysis and statistical methodologies. While the notion of such a connection might seem as improbable as a hockey player utilizing a Zamboni for a hat trick, our preliminary findings begin to peel back the layers of this enigmatic relationship.
Join us on this scholarly endeavor as we embark on a journey that is sure to be as entertaining as an overtime shootout and as intellectually stimulating as a game-winning power play. Prepare to witness the unveiling of a statistical tapestry woven between the intriguing domains of hockey triumphs and the peculiar realm of bus driver employment. Who would have thought that our study could uncover such a rink-shaking revelation?

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

**RESULTS**

The statistical analysis of the relationship between the number of games won by the Detroit Red Wings in the NHL season and the number of city bus drivers in Missouri yielded some rather "punny" results. From 2003 to 2021, we found a remarkable correlation coefficient of 0.8503547 and an r-squared value of 0.7231031, both with a level of significance less than 0.01 (p < 0.01). These findings suggest a strong positive association between the two seemingly unrelated variables.

Further substantiating this surprising connection is the scatterplot in Figure 1, which illustrates the tight coupling between the number of Red Wings victories and the employment of bus drivers in Missouri. If correlations could lace up skates, this one would certainly be skating circles around the ice!

Our results indicate that as the Red Wings triumphed on the ice, the number of city bus drivers in Missouri also exhibited a synchronous rise. It seems that as the Red Wings drove towards victory, the Show-Me State was indeed increasingly in need of drivers to navigate its roads. Is this evidence of a mythical "hockey mojo" spreading through the heartland, or simply a statistical anomaly that can be dismissed as mere coincidence? The intriguing results of our study lay the groundwork for a lively debate.

These findings not only shed light on the unexpected interconnectedness between sports achievements and the labor market but also open the door to a wide array of speculative inquiries. Could the vicarious thrill of Detroit's victories have inspired a surge in public transportation demand? Or perhaps the correlation implies a broader societal trend, where the success of a sports team influences the employment landscape? The implications of these findings spark the imagination and encourage further exploration into the uncharted territory where hockey heroics and bus schedules converge.

In conclusion, our study untangles a captivating relationship that transcends the boundaries of sports and employment. The robust statistical correlation between the Red Wings' conquests and Missouri's bus driver workforce introduces a new dimension to the discourse of unexpected connections. As we depart from this peculiar intersection of hockey triumphs and public transit, we are left to marvel at the ever-surprising twists and turns of statistical inquiry. Who knew that analyzing hockey and bus driver data could lead to such a riveting revelation?


Model: gpt-3.5-turbo-1106
System prompt: You are a researcher writing an academic paper.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 games won by Detroit Red Wings in NHL season and The number of city bus drivers in Missouri. Make lots of 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]]
"Stick to the Rink: The Link Between Detroit Red Wings' Wins and Missouri Bus Driving Shifts"

[[ABSTRACT]]
In this study, we set out to tackle the age-old question: is there a statistical connection between the number of games won by the Detroit Red Wings in the NHL season and the number of city bus drivers in Missouri? Armed with hockey data from Hockey Reference and employment statistics from the Bureau of Labor Statistics, we dove deep into the numbers. Much to our surprise, we found a jaw-dropping correlation coefficient of 0.8503547 and a p-value of less than 0.01 for the years 2003 to 2021. Our findings suggest that there may indeed be a synchronous dance between the Red Wings’ victories and the steering of buses in the Show-Me State. As we skate through the implications of our research, it's clear that this unexpected correlation has opened a door to a whole new arena of statistical analysis. Who would have thought that hockey and public transportation could be so closely intertwined?

[[LITERATURE REVIEW]]
In "On the Correlation Between Sports Victories and Employment Trends in the Public Sector," Smith et al. analyze the potential link between professional sports teams' performance and the employment patterns of various industries. A related study by Doe explores the economic impact of sports teams' wins and losses on local economies in "The Field Goals of Success: A Study of Sports Team Performance and Local Employment." Both studies provide valuable insights into the potential influence of sports victories on the labor market.
Turning to more practical perspectives, "Data Analysis in Professional Sports" by Jones delves into the intricate world of sports statistics, offering a comprehensive overview of statistical methodologies and their application to sports data. Additionally, "The Economics of Public Transportation" by Jackson sheds light on the complexities of public transit systems, emphasizing the intricate interplay between transportation infrastructure and employment.
On a lighter note, real-life narratives such as "The Puck Stops Here: Confessions of a Hockey Fan" and "Crossing Paths: A Memoir of a Missouri Bus Driver" provide personal accounts that may offer unexpected perspectives on the connection between hockey victories and bus driver employment. Moving into the realm of fiction, "Ice Rinks and City Streets: A Tale of Two Worlds" and "The Bus Driver's Hat Trick: A Sports Fantasy" present imaginative landscapes that may inadvertently touch upon the themes at hand.
And then, there's the unorthodox approach of reviewing CVS receipts, which surprisingly revealed a hidden subculture of bus driver-hockey fanatics who meticulously track game outcomes and employment fluctuations through the purchase of energy drinks and frozen pizza. While the validity of this method may be subject to debate, its unexpected findings cannot be easily dismissed.
As we wade through the literature, it becomes increasingly clear that the intersection of hockey victories and bus driver employment is a curious and multifaceted realm. The juxtaposition of serious studies, personal narratives, and unexpected sources adds an additional layer of complexity to this already whimsical investigation. But fear not, for in the face of such enigmatic connections, we remain resolute in our pursuit of the truth – even if it means diving into the unlikeliest of sources to unravel the mystery at hand.

[[RESULTS]]
The statistical analysis of the relationship between the number of games won by the Detroit Red Wings in the NHL season and the number of city bus drivers in Missouri yielded some rather "punny" results. From 2003 to 2021, we found a remarkable correlation coefficient of 0.8503547 and an r-squared value of 0.7231031, both with a level of significance less than 0.01 (p < 0.01). These findings suggest a strong positive association between the two seemingly unrelated variables.
Further substantiating this surprising connection is the scatterplot in Figure 1, which illustrates the tight coupling between the number of Red Wings victories and the employment of bus drivers in Missouri. If correlations could lace up skates, this one would certainly be skating circles around the ice!
Our results indicate that as the Red Wings triumphed on the ice, the number of city bus drivers in Missouri also exhibited a synchronous rise. It seems that as the Red Wings drove towards victory, the Show-Me State was indeed increasingly in need of drivers to navigate its roads. Is this evidence of a mythical "hockey mojo" spreading through the heartland, or simply a statistical anomaly that can be dismissed as mere coincidence? The intriguing results of our study lay the groundwork for a lively debate.
These findings not only shed light on the unexpected interconnectedness between sports achievements and the labor market but also open the door to a wide array of speculative inquiries. Could the vicarious thrill of Detroit's victories have inspired a surge in public transportation demand? Or perhaps the correlation implies a broader societal trend, where the success of a sports team influences the employment landscape? The implications of these findings spark the imagination and encourage further exploration into the uncharted territory where hockey heroics and bus schedules converge.
In conclusion, our study untangles a captivating relationship that transcends the boundaries of sports and employment. The robust statistical correlation between the Red Wings' conquests and Missouri's bus driver workforce introduces a new dimension to the discourse of unexpected connections. As we depart from this peculiar intersection of hockey triumphs and public transit, we are left to marvel at the ever-surprising twists and turns of statistical inquiry. Who knew that analyzing hockey and bus driver data could lead to such a riveting revelation?

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

The unexpected link between the number of games won by the Detroit Red Wings and the employment of city bus drivers in Missouri has left us pondering the intricate dance between hockey victories and public transportation. As we reflect on our findings, we must acknowledge the amusing yet thought-provoking connections we stumbled upon in the literature review. It's quite remarkable how seemingly unrelated topics come together in such a statistically striking manner.

The studies by Smith et al. and Doe certainly set the stage for our investigation, as they delved into the intriguing relationship between sports victories and labor market dynamics. Their serious analyses laid a sturdy foundation, only to be comically embellished by the unexpected insights from personal narratives and fiction that unexpectedly touched upon the themes at hand. And let's not forget the unorthodox yet strangely intriguing method of reviewing CVS receipts, which provided some peculiar findings that cannot be easily dismissed.

Our own results have added to this curious arena of discovery. The remarkable correlation coefficient of 0.8503547 and strong r-squared value echo the previous research, solidifying the surprising bond between hockey victories and bus driver employment. The scatterplot, like a slapshot on goal, clearly illustrates the synchronous rise in both variables. Such a prominent correlation surely makes waves in the realms of statistical inquiry and paves the way for lively debates – much like a high-stakes hockey match.

These unexpected connections prompt one to wonder: does the thrill of hockey victories ignite a surge in public transportation demand, or does it reflect a broader societal trend where sports success influences the employment landscape? The implications of these findings spark the imagination and encourage further exploration into this uncharted territory where hockey heroics and bus schedules converge. The statistical world is indeed a wild and wondrous place!

In the end, our research illuminates a captivating relationship that transcends the boundaries of sports and employment. It seems that in the world of statistics, reality often presents us with unexpected twists and turns akin to a dramatic sports match. The deeper we venture, the more we uncover unexpected relationships that defy conventional wisdom – and in true statistical fashion, we must remain open to these delightful surprises and challenges.


Model: gpt-3.5-turbo-1106
System prompt: You are a researcher writing an academic paper.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 games won by Detroit Red Wings in NHL season and The number of city bus drivers in Missouri. Make lots of 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]]
"Stick to the Rink: The Link Between Detroit Red Wings' Wins and Missouri Bus Driving Shifts"

[[ABSTRACT]]
In this study, we set out to tackle the age-old question: is there a statistical connection between the number of games won by the Detroit Red Wings in the NHL season and the number of city bus drivers in Missouri? Armed with hockey data from Hockey Reference and employment statistics from the Bureau of Labor Statistics, we dove deep into the numbers. Much to our surprise, we found a jaw-dropping correlation coefficient of 0.8503547 and a p-value of less than 0.01 for the years 2003 to 2021. Our findings suggest that there may indeed be a synchronous dance between the Red Wings’ victories and the steering of buses in the Show-Me State. As we skate through the implications of our research, it's clear that this unexpected correlation has opened a door to a whole new arena of statistical analysis. Who would have thought that hockey and public transportation could be so closely intertwined?

[[INTRDUCTION]]
INTRODUCTION
As hockey fans, we often revel in the excitement of a hard-fought game, cheering for our favorite teams with unwavering devotion. Yet, amidst the exhilarating slap shots and bone-crunching body checks, a seemingly unrelated world silently hums along – that of public transportation. Intriguingly, in the midst of this unexpected juxtaposition, lies the focus of our study: the perplexing association between the number of games won by the Detroit Red Wings in the NHL season and the number of city bus drivers in Missouri.
The notorious connection between sports and statistics is as undeniable as the gravitational pull between a puck and the ice. However, when merging the exhilarating world of ice hockey with the mundane realm of public transit, one begins to wonder if there's more to this peculiar correlation than meets the eye. Is it possible that the adrenaline-pumping victories on the ice bear an unforeseen influence on the ebb and flow of public transportation in the Show-Me State?
It is within this whimsical and curiously unexplored terrain that we set out on our expedition, armed with the formidable arsenal of data analysis and statistical methodologies. While the notion of such a connection might seem as improbable as a hockey player utilizing a Zamboni for a hat trick, our preliminary findings begin to peel back the layers of this enigmatic relationship.
Join us on this scholarly endeavor as we embark on a journey that is sure to be as entertaining as an overtime shootout and as intellectually stimulating as a game-winning power play. Prepare to witness the unveiling of a statistical tapestry woven between the intriguing domains of hockey triumphs and the peculiar realm of bus driver employment. Who would have thought that our study could uncover such a rink-shaking revelation?

[[RESULTS]]
The statistical analysis of the relationship between the number of games won by the Detroit Red Wings in the NHL season and the number of city bus drivers in Missouri yielded some rather "punny" results. From 2003 to 2021, we found a remarkable correlation coefficient of 0.8503547 and an r-squared value of 0.7231031, both with a level of significance less than 0.01 (p < 0.01). These findings suggest a strong positive association between the two seemingly unrelated variables.
Further substantiating this surprising connection is the scatterplot in Figure 1, which illustrates the tight coupling between the number of Red Wings victories and the employment of bus drivers in Missouri. If correlations could lace up skates, this one would certainly be skating circles around the ice!
Our results indicate that as the Red Wings triumphed on the ice, the number of city bus drivers in Missouri also exhibited a synchronous rise. It seems that as the Red Wings drove towards victory, the Show-Me State was indeed increasingly in need of drivers to navigate its roads. Is this evidence of a mythical "hockey mojo" spreading through the heartland, or simply a statistical anomaly that can be dismissed as mere coincidence? The intriguing results of our study lay the groundwork for a lively debate.
These findings not only shed light on the unexpected interconnectedness between sports achievements and the labor market but also open the door to a wide array of speculative inquiries. Could the vicarious thrill of Detroit's victories have inspired a surge in public transportation demand? Or perhaps the correlation implies a broader societal trend, where the success of a sports team influences the employment landscape? The implications of these findings spark the imagination and encourage further exploration into the uncharted territory where hockey heroics and bus schedules converge.
In conclusion, our study untangles a captivating relationship that transcends the boundaries of sports and employment. The robust statistical correlation between the Red Wings' conquests and Missouri's bus driver workforce introduces a new dimension to the discourse of unexpected connections. As we depart from this peculiar intersection of hockey triumphs and public transit, we are left to marvel at the ever-surprising twists and turns of statistical inquiry. Who knew that analyzing hockey and bus driver data could lead to such a riveting revelation?

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

CONCLUSION

In conclusion, our research has ventured into the uncharted territory of the surprising dance between the victories of the Detroit Red Wings and the employment landscape of Missouri's bus drivers. The statistical correlation we uncovered has raised eyebrows and drawn more attention than a Zamboni on center ice. It appears that as the Red Wings soared to victory, the demand for bus drivers in Missouri revved up in tandem, creating a synchronous spectacle that could make even the most stoic statistician crack a smile.

Our findings prompt a whimsical exploration of the potential influences and implications of such an unexpected association. Could it be that Detroit's on-ice triumphs ignited a commuter fervor that fueled a surge in bus driver demand? Or perhaps the correlation suggests a more overarching societal phenomenon, wherein the adrenaline of sporting achievements seeps into the fabric of employment trends.

As we bid farewell to this surprising intersection of hockey prowess and public transit, it becomes evident that the statistical tapestry woven between these seemingly disparate realms has enlivened the discourse of unexpected connections. Like a defenseman checking an opponent into the boards, our research has given the field of statistical inquiry a refreshing shake-up.

In light of these revelatory findings, we are confident that no further research is needed in this area. The correlation we've unveiled stands as a testament to the intriguing surprises that await in the world of data analysis and statistical exploration. As we close the chapter on this peculiar relationship, we leave behind a legacy of statistically substantiated whimsy that is as captivating as a hat trick in overtime. Who would have thought that the rink and the roads could be so intricately intertwined?


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 Stick to the Rink: The Link Between Detroit Red Wings' Wins and Missouri Bus Driving Shifts. Respond only with the name of a fictional academic journal.

ChatGPT:

Journal of Sports Analytics and Transportation Studies


Model: gpt-3.5-turbo-1106
System prompt: You provide fictional names of nonprofit research organizations and associations. You say nothing else, and you do not chat with the user.
User prompt: Please provide the name of a funny but plausible sounding nonprofit, academic, or scientific association or organization that would sponsor research that resulted in a paper entited Stick to the Rink: The Link Between Detroit Red Wings' Wins and Missouri Bus Driving Shifts. Respond only with the name of a fictional organization.

ChatGPT:

The Institute for Sports Analytics and Urban Transportation Scheduling


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 Stick to the Rink: The Link Between Detroit Red Wings' Wins and Missouri Bus Driving Shifts with an abstract of In this study, we set out to tackle the age-old question: is there a statistical connection between the number of games won by the Detroit Red Wings in the NHL season and the number of city bus drivers in Missouri? Armed with hockey data from Hockey Reference and employment statistics from the Bureau of Labor Statistics, we dove deep into the numbers. Much to our surprise, we found a jaw-dropping correlation coefficient of 0.8503547 and a p-value of less than 0.01 for the years 2003 to 2021. Our findings suggest that there may indeed be a synchronous dance between the Red Wings’ victories and the steering of buses in the Show-Me State. As we skate through the implications of our research, it's clear that this unexpected correlation has opened a door to a whole new arena of statistical analysis. Who would have thought that hockey and public transportation could be so closely intertwined?

ChatGPT:

Detroit Red Wings, NHL, wins, Missouri bus drivers, correlation, statistical connection, hockey data, employment statistics, Bureau of Labor Statistics, correlation coefficient, p-value, synchronous, victories, public transportation, statistical analysis, hockey and public transportation

*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 games won by Detroit Red Wings in NHL season
Source: Hockey Reference
See what else correlates with Number of games won by Detroit Red Wings in NHL season

The number of city bus drivers in Missouri
Detailed data title: BLS estimate of bus drivers, transit and intercity in Missouri
Source: Bureau of Larbor Statistics
See what else correlates with The number of city bus drivers in Missouri

Correlation r = 0.8503547 (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.7231031 (Coefficient of determination)
This means 72.3% of the change in the one variable (i.e., The number of city bus drivers in Missouri) is predictable based on the change in the other (i.e., Number of games won by Detroit Red Wings in NHL season) over the 19 years from 2003 through 2021.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 4.0E-6. 0.0000039998741562294140000000
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.85 in 0.0004% of random cases. Said differently, if you correlated 250,008 random variables You don't actually need 250 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 18 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 18 because we have two variables measured over a period of 19 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.65, 0.94 ] 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.
2003200420052006200720082009201020112012201320142015201620172018201920202021
Number of games won by Detroit Red Wings in NHL season (Games won)4848058505451444748243943413330321719
The number of city bus drivers in Missouri (Laborers)3140247014002860265026102660279028802750230024502260278026702090210012701250




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([48,48,0,58,50,54,51,44,47,48,24,39,43,41,33,30,32,17,19,])
array_2 = np.array([3140,2470,1400,2860,2650,2610,2660,2790,2880,2750,2300,2450,2260,2780,2670,2090,2100,1270,1250,])
array_1_name = "Number of games won by Detroit Red Wings in NHL season"
array_2_name = "The number of city bus drivers in Missouri"

# Perform the calculation
print(f"Calculating the correlation between {array_1_name} and {array_2_name}...")
correlation, r_squared, p_value = calculate_correlation(array_1, array_2)

# Print the results
print("Correlation Coefficient:", correlation)
print("R-squared:", r_squared)
print("P-value:", p_value)



Reuseable content

You may re-use the images on this page for any purpose, even commercial purposes, without asking for permission. The only requirement is that you attribute Tyler Vigen. Attribution can take many different forms. If you leave the "tylervigen.com" link in the image, that satisfies it just fine. If you remove it and move it to a footnote, that's fine too. You can also just write "Charts courtesy of Tyler Vigen" at the bottom of an article.

You do not need to attribute "the spurious correlations website," and you don't even need to link here if you don't want to. I don't gain anything from pageviews. There are no ads on this site, there is nothing for sale, and I am not for hire.

For the record, I am just one person. Tyler Vigen, he/him/his. I do have degrees, but they should not go after my name unless you want to annoy my wife. If that is your goal, then go ahead and cite me as "Tyler Vigen, A.A. A.A.S. B.A. J.D." Otherwise it is just "Tyler Vigen."

When spoken, my last name is pronounced "vegan," like I don't eat meat.

Full license details.
For more on re-use permissions, or to get a signed release form, see tylervigen.com/permission.

Download images for these variables:


View another random correlation

How fun was this correlation?

Your rating skills are legendary!


Correlation ID: 2414 · Black Variable ID: 351 · Red Variable ID: 10626
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0