about · email me · subscribe
Spurious correlation #1,147 · View random

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is The number of books by Stephen King published and the second variable is The number of locker room attendants in North Carolina.  The chart goes from 2006 to 2014, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

As Stephen King's books became more popular, people in North Carolina were too scared to change in the locker rooms by themselves, leading to a higher demand for locker room attendants to provide a sense of security.

Model: dalle-3
Prompt: Visual prompt: [ High-tech ] style Depict a bookshelf filled with Stephen King novels. As more books appear on the shelf, an increasing number of people in the room glance nervously around, feeling anxious. The scene then shifts to a futuristic locker room where a line of individuals waits to enter. Inside, locker room attendants are busy offering reassurance and comfort to the visibly anxious individuals, creating a safe space for them to change without fear of supernatural occurrences. 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 situation described. You respond only with the scene descriptions provided and say nothing else.
User prompt: Here is a situation: The more Stephen King books published, the more people are afraid of supernatural occurrences, causing an increase in demand for locker room attendants to provide a safe space for people to change without fear of being possessed by spirits.. Given that situation, which of the following image descriptions seems most appropriate? Pick the one that seems to be related to one of the variables at hand and the tone of the explanation. Please respond with only one of the following potential descriptions: Celtic art Charcoal Symbolism High-tech An image that looks like it is a scene from 'Star Wars'
ChatGPT: High-tech

Model: gpt-3.5-turbo-1106
System prompt: You describe simple visual scenes that depict the two variables stated and the explanation described. Do not reference graphs or charts; describe physical objects.
User prompt: Please describe a visual scene that depicts the following situation. Keep the description simple. The more Stephen King books published, the more people are afraid of supernatural occurrences, causing an increase in demand for locker room attendants to provide a safe space for people to change without fear of being possessed by spirits.
ChatGPT: In this visual scene, there is a bookshelf filled with Stephen King novels. As the number of books on the shelf increases, more and more people in the room glance nervously around, looking anxious. The scene then shifts to a locker room, where a line of people is waiting to enter. Inside, locker room attendants are bustling around, providing reassurance and comfort to the visibly anxious individuals, creating a safe space for them to change without fear of supernatural occurrences.

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: [ High-tech ] and depicting this scene: In this visual scene, there is a bookshelf filled with Stephen King novels. As the number of books on the shelf increases, more and more people in the room glance nervously around, looking anxious. The scene then shifts to a locker room, where a line of people is waiting to enter. Inside, locker room attendants are bustling around, providing reassurance and comfort to the visibly anxious individuals, creating a safe space for them to change without fear of supernatural occurrences. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Visual prompt: [ High-tech ] style Depict a bookshelf filled with Stephen King novels. As more books appear on the shelf, an increasing number of people in the room glance nervously around, feeling anxious. The scene then shifts to a futuristic locker room where a line of individuals waits to enter. Inside, locker room attendants are busy offering reassurance and comfort to the visibly anxious individuals, creating a safe space for them to change without fear of supernatural occurrences.

*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 increases in The number of books by Stephen King published positively influenced The number of locker room attendants in North Carolina.

AI academic paper

(Because p < 0.01)
The Uncommon Connection: Stephen King's Publications and North Carolina's Locker Room Attendants

The Journal of Literary Coincidences

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 silly 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 The number of books by Stephen King published and The number of locker room attendants in North Carolina. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

Rhyme words in the title.

Your research team used data from Wikipedia and Bureau of Larbor Statistics to assess this nagging question. You found a correlation coefficient of 0.8609460 and p < 0.01 for 2006 to 2014.

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

[[TITLE]]
Lorem ipsum dolor sit

[[ABSTRACT]]
Lorem ipsum dolor sit



ChatGPT:
[[TITLE]]
The Uncommon Connection: Stephen King's Publications and North Carolina's Locker Room Attendants

[[ABSTRACT]]
In this study, we aimed to investigate the unexpected relationship between the prolificacy of acclaimed author Stephen King's literary productions and the employment trends of locker room attendants in the state of North Carolina. Utilizing robust data sources from Wikipedia and the Bureau of Labor Statistics, our research team fervently pursued this curious correlation, steadfast in our belief that beneath the seemingly disparate domains of horror fiction and locker room management, there lurked a hidden connection waiting to be unearthed.

Through meticulous analysis, we uncovered a remarkable correlation coefficient of 0.8609460 and a strikingly significant p-value of less than 0.01 for the period spanning from 2006 to 2014. This robust statistical evidence suggests a compelling association between the number of books authored by Stephen King and the count of locker room attendants in North Carolina. While the intricacies of this association remain enigmatic, our findings challenge conventional wisdom and beckon further exploration into the mysterious interplay between literary oeuvres and vocational demographics.

As we delve into this unconventional correlation, we invite readers to join us in navigating the labyrinthine complexities of cultural phenomena and labor market dynamics, all while keeping an eye out for the unexpected twists that often lurk at the heart of scholarly inquiry.


Model: gpt-3.5-turbo-1106
System prompt: You are a silly 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 The number of books by Stephen King published and The number of locker room attendants in North Carolina. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Here is the title and abstract of the paper:
[[TITLE]]
The Uncommon Connection: Stephen King's Publications and North Carolina's Locker Room Attendants

[[ABSTRACT]]
In this study, we aimed to investigate the unexpected relationship between the prolificacy of acclaimed author Stephen King's literary productions and the employment trends of locker room attendants in the state of North Carolina. Utilizing robust data sources from Wikipedia and the Bureau of Labor Statistics, our research team fervently pursued this curious correlation, steadfast in our belief that beneath the seemingly disparate domains of horror fiction and locker room management, there lurked a hidden connection waiting to be unearthed.

Through meticulous analysis, we uncovered a remarkable correlation coefficient of 0.8609460 and a strikingly significant p-value of less than 0.01 for the period spanning from 2006 to 2014. This robust statistical evidence suggests a compelling association between the number of books authored by Stephen King and the count of locker room attendants in North Carolina. While the intricacies of this association remain enigmatic, our findings challenge conventional wisdom and beckon further exploration into the mysterious interplay between literary oeuvres and vocational demographics.

As we delve into this unconventional correlation, we invite readers to join us in navigating the labyrinthine complexities of cultural phenomena and labor market dynamics, all while keeping an eye out for the unexpected twists that often lurk at the heart of scholarly inquiry.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

The interplay between literature and labor markets has long been a subject of fascination for scholars and armchair pundits alike. In this vein, we find ourselves embarking on a peculiar expedition to probe the serendipitous bond between the seminal works of the renowned author Stephen King and the labor force of North Carolina's locker rooms. Although this unlikely correlation may initially appear as implausible as an elaborate King plot twist, our earnest endeavor seeks to unravel the mystique that shrouds this intriguing relationship.

Literature, particularly of the horror genre, has often been lauded for its ability to engross and captivate readers, much like the gripping tales spun by King himself. Yet, could the allure of King's literary prowess extend beyond the confines of bookshelves and into the labor market, shaping the employment landscape of a specific geographic region? The very notion incites both skepticism and curiosity, echoing the paradoxical feelings one experiences when confronted with a riddle from one of King's spellbinding narratives.

While the connection between literary output and employment metrics may seem as incongruous as comparing apples to an alien invasion, our study endeavors to illuminate the potential undercurrents that tie these seemingly unrelated phenomena together. By scrutinizing the burgeoning number of publications by Stephen King alongside the ebb and flow of locker room attendants' presence in North Carolina, we aim to decode the cryptic cipher that binds them, revealing a mosaic of data points that hint at a narrative worthy of King's craft.

As we peer into the labyrinthine corridors of statistical analysis and delve into the annals of labor economics, we invite readers to pull back the proverbial curtain and join us in this intellectual odyssey. For although our findings may appear as perplexing as the enigmatic occurrences within a King thriller, it is through meticulous examination and sharp wit that we may discover the subtle strands of connection that weave through the fabric of our scholarly pursuits. So, fasten your seatbelts, dear readers, for we are embarking on a riveting journey into the nexus of literature and labor, where the unexpected often lurks within the most ordinary corridors of inquiry.


Model: gpt-3.5-turbo-1106
System prompt: You are a silly 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 The number of books by Stephen King published and The number of locker room attendants in North Carolina. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

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

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

Start by naming serious-sounding studies by authors like Smith, Doe, and Jones - but then quickly devolve. Name some real non-fiction books that would be related to the topic. Then name some real fiction books that sound like they could be related. Then name some cartoons and childrens' shows that you watched that are related to the topic.

Here is the title and abstract of the paper:
[[TITLE]]
The Uncommon Connection: Stephen King's Publications and North Carolina's Locker Room Attendants

[[ABSTRACT]]
In this study, we aimed to investigate the unexpected relationship between the prolificacy of acclaimed author Stephen King's literary productions and the employment trends of locker room attendants in the state of North Carolina. Utilizing robust data sources from Wikipedia and the Bureau of Labor Statistics, our research team fervently pursued this curious correlation, steadfast in our belief that beneath the seemingly disparate domains of horror fiction and locker room management, there lurked a hidden connection waiting to be unearthed.

Through meticulous analysis, we uncovered a remarkable correlation coefficient of 0.8609460 and a strikingly significant p-value of less than 0.01 for the period spanning from 2006 to 2014. This robust statistical evidence suggests a compelling association between the number of books authored by Stephen King and the count of locker room attendants in North Carolina. While the intricacies of this association remain enigmatic, our findings challenge conventional wisdom and beckon further exploration into the mysterious interplay between literary oeuvres and vocational demographics.

As we delve into this unconventional correlation, we invite readers to join us in navigating the labyrinthine complexities of cultural phenomena and labor market dynamics, all while keeping an eye out for the unexpected twists that often lurk at the heart of scholarly inquiry.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
The interplay between literature and labor markets has long been a subject of fascination for scholars and armchair pundits alike. In this vein, we find ourselves embarking on a peculiar expedition to probe the serendipitous bond between the seminal works of the renowned author Stephen King and the labor force of North Carolina's locker rooms. Although this unlikely correlation may initially appear as implausible as an elaborate King plot twist, our earnest endeavor seeks to unravel the mystique that shrouds this intriguing relationship.
Literature, particularly of the horror genre, has often been lauded for its ability to engross and captivate readers, much like the gripping tales spun by King himself. Yet, could the allure of King's literary prowess extend beyond the confines of bookshelves and into the labor market, shaping the employment landscape of a specific geographic region? The very notion incites both skepticism and curiosity, echoing the paradoxical feelings one experiences when confronted with a riddle from one of King's spellbinding narratives.
While the connection between literary output and employment metrics may seem as incongruous as comparing apples to an alien invasion, our study endeavors to illuminate the potential undercurrents that tie these seemingly unrelated phenomena together. By scrutinizing the burgeoning number of publications by Stephen King alongside the ebb and flow of locker room attendants' presence in North Carolina, we aim to decode the cryptic cipher that binds them, revealing a mosaic of data points that hint at a narrative worthy of King's craft.
As we peer into the labyrinthine corridors of statistical analysis and delve into the annals of labor economics, we invite readers to pull back the proverbial curtain and join us in this intellectual odyssey. For although our findings may appear as perplexing as the enigmatic occurrences within a King thriller, it is through meticulous examination and sharp wit that we may discover the subtle strands of connection that weave through the fabric of our scholarly pursuits. So, fasten your seatbelts, dear readers, for we are embarking on a riveting journey into the nexus of literature and labor, where the unexpected often lurks within the most ordinary corridors of inquiry.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

The investigation of the curious bond between the literary productions of Stephen King and North Carolina's locker room attendants has led researchers to explore a wide array of literature and data sources. Smith and Doe (2017) conducted a comprehensive analysis of the socioeconomic influences of popular fiction authors on regional labor markets, shedding light on the potential impact of cultural phenomena on employment trends. Building upon this foundation, Jones (2019) delved into the realm of occupational dynamics, examining the intricate web of factors that contribute to fluctuations in service-oriented professions.

In "The Dark Tower" series, King weaves a complex narrative that traverses through multiple dimensions, mirroring the multidimensionality of our research endeavor. The incomparable volumes of "On Writing" provide insights into King's approach to authorship, although scant information is available on his views regarding the messianic potential of locker room attendants. "Pet Sematary" challenges the boundaries between life and death, much like our theoretical exploration challenges the conventional boundaries of economic inquiry. Conversely, "The Shining" offers a chilling portrayal of isolation and introspection, a stark departure from the bustling atmosphere of locker room facilities.

The whimsical adventures of "Scooby-Doo" and the enigmatic occurrences in "Gravity Falls" mirror the enigma of our investigation, as we navigate through the labyrinthine corridors of statistical analysis and unearth the unexpected twists that often manifest in scholarly inquiry. Furthermore, the animated exploits of "Bob the Builder" and "Handy Manny" offer a light-hearted reflection of the vocational landscapes encountered in our research, albeit with a dose of humor and whimsy.

As we venture further into the annals of this unconventional correlation, readers are encouraged to maintain a keen eye for the unanticipated curveballs that may arise during our investigation, for it is through this lens that we may uncover the underlying threads that tether together King's literary legacy and the labor dynamics of North Carolina's locker room attendants.


Model: gpt-3.5-turbo-1106
System prompt: You are a silly 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 The number of books by Stephen King published and The number of locker room attendants in North Carolina. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Your research team collected data from all across the internet, but mostly just used information from Wikipedia and Bureau of Larbor Statistics . You used data from 2006 to 2014

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

Here is the title, abstract, and introduction of the paper:
[[TITLE]]
The Uncommon Connection: Stephen King's Publications and North Carolina's Locker Room Attendants

[[ABSTRACT]]
In this study, we aimed to investigate the unexpected relationship between the prolificacy of acclaimed author Stephen King's literary productions and the employment trends of locker room attendants in the state of North Carolina. Utilizing robust data sources from Wikipedia and the Bureau of Labor Statistics, our research team fervently pursued this curious correlation, steadfast in our belief that beneath the seemingly disparate domains of horror fiction and locker room management, there lurked a hidden connection waiting to be unearthed.

Through meticulous analysis, we uncovered a remarkable correlation coefficient of 0.8609460 and a strikingly significant p-value of less than 0.01 for the period spanning from 2006 to 2014. This robust statistical evidence suggests a compelling association between the number of books authored by Stephen King and the count of locker room attendants in North Carolina. While the intricacies of this association remain enigmatic, our findings challenge conventional wisdom and beckon further exploration into the mysterious interplay between literary oeuvres and vocational demographics.

As we delve into this unconventional correlation, we invite readers to join us in navigating the labyrinthine complexities of cultural phenomena and labor market dynamics, all while keeping an eye out for the unexpected twists that often lurk at the heart of scholarly inquiry.

[[INTRODUCTION]]
The interplay between literature and labor markets has long been a subject of fascination for scholars and armchair pundits alike. In this vein, we find ourselves embarking on a peculiar expedition to probe the serendipitous bond between the seminal works of the renowned author Stephen King and the labor force of North Carolina's locker rooms. Although this unlikely correlation may initially appear as implausible as an elaborate King plot twist, our earnest endeavor seeks to unravel the mystique that shrouds this intriguing relationship.
Literature, particularly of the horror genre, has often been lauded for its ability to engross and captivate readers, much like the gripping tales spun by King himself. Yet, could the allure of King's literary prowess extend beyond the confines of bookshelves and into the labor market, shaping the employment landscape of a specific geographic region? The very notion incites both skepticism and curiosity, echoing the paradoxical feelings one experiences when confronted with a riddle from one of King's spellbinding narratives.
While the connection between literary output and employment metrics may seem as incongruous as comparing apples to an alien invasion, our study endeavors to illuminate the potential undercurrents that tie these seemingly unrelated phenomena together. By scrutinizing the burgeoning number of publications by Stephen King alongside the ebb and flow of locker room attendants' presence in North Carolina, we aim to decode the cryptic cipher that binds them, revealing a mosaic of data points that hint at a narrative worthy of King's craft.
As we peer into the labyrinthine corridors of statistical analysis and delve into the annals of labor economics, we invite readers to pull back the proverbial curtain and join us in this intellectual odyssey. For although our findings may appear as perplexing as the enigmatic occurrences within a King thriller, it is through meticulous examination and sharp wit that we may discover the subtle strands of connection that weave through the fabric of our scholarly pursuits. So, fasten your seatbelts, dear readers, for we are embarking on a riveting journey into the nexus of literature and labor, where the unexpected often lurks within the most ordinary corridors of inquiry.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To begin our expedition into the uncharted territory of the intersection between Stephen King's literary output and the employment trends of locker room attendants in North Carolina, we meticulously compiled and analyzed data from a variety of sources. The first step in our methodological odyssey involved harnessing the boundless troves of information accessible through the expanse of the internet, with particular reverence to the sanctum of knowledge that is Wikipedia. With the agility of an acrobat navigating the web of digital information, we combed through the annals of Stephen King's bibliography, documenting the number of published books spanning the years 2006 to 2014.

Having collected this treasure trove of data, we then turned our gaze to the captivating world of labor statistics provided by the Bureau of Labor Statistics. Like intrepid explorers parsing through a dense jungle of information, we meticulously scoured the employment records for North Carolina, specifically focusing on the count of locker room attendants from 2006 to 2014. It was in this trove of structured data that we hoped to unearth the hidden gem of correlation between Stephen King's literary opuses and the unassuming yet essential cadre of personnel who preside over the sanctuaries of sweating athletes.

Armed with the arsenal of data accrued from these reliable sources, we employed the venerable tool of statistical analysis to unravel the enigma that lay before us. We employed correlation analysis to discern the relationship between the number of Stephen King's books published and the number of locker room attendants in North Carolina. Beholden to the strictures of empirical rigor, we scrutinized the correlation coefficient and p-value to infer the strength and significance of the association between these seemingly incongruous variables.

Our statistical investigations were undergirded by the usage of robust software packages, which served as our trusty compasses in navigating the labyrinthine landscape of data analysis. With the precision of a watchmaker and the determination of a detective, we meticulously conducted regressions, t-tests, and other arcane incantations to unveil the latent patterns hitherto obscured beneath the surface of raw numbers.

In our ardent pursuit of uncovering the clandestine bond between King's literary legacy and the labor market dynamics of North Carolina, we remained steadfast in our dedication to empirical inquiry. Our methodological approach, akin to the artful storytelling of the master himself, sought to tease out the narrative woven within these disparate datasets. Just as the climax of a King novel reveals an unexpected twist, we endeavored to decipher the unforeseen connections that permeated the intricate web of correlations between the literary realm and the realm of labor.

In the following sections, we present the enthralling results of our inquiry and invite readers to embark on a journey through the statistical corridors where the inexplicable associations between Stephen King's literary world and the occupation of locker room attendants in North Carolina come to light.


Model: gpt-3.5-turbo-1106
System prompt: You are a silly 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 The number of books by Stephen King published and The number of locker room attendants in North Carolina. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Your research team collected data from all across the internet, but mostly just used information from Wikipedia and Bureau of Larbor Statistics .

For the time period 2006 to 2014, you found a correlation 0.8609460, r-squared of 0.7412281, and p < 0.01.

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

Here is the title and abstract of the paper:
[[TITLE]]
The Uncommon Connection: Stephen King's Publications and North Carolina's Locker Room Attendants

[[ABSTRACT]]
In this study, we aimed to investigate the unexpected relationship between the prolificacy of acclaimed author Stephen King's literary productions and the employment trends of locker room attendants in the state of North Carolina. Utilizing robust data sources from Wikipedia and the Bureau of Labor Statistics, our research team fervently pursued this curious correlation, steadfast in our belief that beneath the seemingly disparate domains of horror fiction and locker room management, there lurked a hidden connection waiting to be unearthed.

Through meticulous analysis, we uncovered a remarkable correlation coefficient of 0.8609460 and a strikingly significant p-value of less than 0.01 for the period spanning from 2006 to 2014. This robust statistical evidence suggests a compelling association between the number of books authored by Stephen King and the count of locker room attendants in North Carolina. While the intricacies of this association remain enigmatic, our findings challenge conventional wisdom and beckon further exploration into the mysterious interplay between literary oeuvres and vocational demographics.

As we delve into this unconventional correlation, we invite readers to join us in navigating the labyrinthine complexities of cultural phenomena and labor market dynamics, all while keeping an eye out for the unexpected twists that often lurk at the heart of scholarly inquiry.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
The interplay between literature and labor markets has long been a subject of fascination for scholars and armchair pundits alike. In this vein, we find ourselves embarking on a peculiar expedition to probe the serendipitous bond between the seminal works of the renowned author Stephen King and the labor force of North Carolina's locker rooms. Although this unlikely correlation may initially appear as implausible as an elaborate King plot twist, our earnest endeavor seeks to unravel the mystique that shrouds this intriguing relationship.
Literature, particularly of the horror genre, has often been lauded for its ability to engross and captivate readers, much like the gripping tales spun by King himself. Yet, could the allure of King's literary prowess extend beyond the confines of bookshelves and into the labor market, shaping the employment landscape of a specific geographic region? The very notion incites both skepticism and curiosity, echoing the paradoxical feelings one experiences when confronted with a riddle from one of King's spellbinding narratives.
While the connection between literary output and employment metrics may seem as incongruous as comparing apples to an alien invasion, our study endeavors to illuminate the potential undercurrents that tie these seemingly unrelated phenomena together. By scrutinizing the burgeoning number of publications by Stephen King alongside the ebb and flow of locker room attendants' presence in North Carolina, we aim to decode the cryptic cipher that binds them, revealing a mosaic of data points that hint at a narrative worthy of King's craft.
As we peer into the labyrinthine corridors of statistical analysis and delve into the annals of labor economics, we invite readers to pull back the proverbial curtain and join us in this intellectual odyssey. For although our findings may appear as perplexing as the enigmatic occurrences within a King thriller, it is through meticulous examination and sharp wit that we may discover the subtle strands of connection that weave through the fabric of our scholarly pursuits. So, fasten your seatbelts, dear readers, for we are embarking on a riveting journey into the nexus of literature and labor, where the unexpected often lurks within the most ordinary corridors of inquiry.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

Our investigation into the curious relationship between the abundance of Stephen King's literary works and the employment patterns of locker room attendants in North Carolina has yielded intriguing results. The statistical analysis for the period from 2006 to 2014 revealed a strikingly high correlation coefficient of 0.8609460, indicative of a strong positive association between these two seemingly incongruous variables. This correlation was further substantiated by an r-squared value of 0.7412281, reflecting the robustness of the relationship. Additionally, the obtained p-value of less than 0.01 provided compelling evidence of the significant association between the number of books authored by Stephen King and the count of locker room attendants in North Carolina.

The relationship is visually depicted in Figure 1, which demonstrates the formidable correlation between the variables in a scatterplot. While we refrain from attributing causality to this intriguing connection, the strength of the statistical evidence prompts further exploration into the underlying mechanisms that may underpin this unexpected association.

These results, while unexpected, highlight the interplay between cultural phenomena and labor market dynamics. The implications of this association extend beyond the realms of statistical curiosity, beckoning future scholars to unravel the enigmatic bond between literary oeuvres and occupational demographics. As we navigate these uncharted waters, we invite readers to join us in this captivating exploration, always keeping a watchful eye for the unexpected plot twists that may emerge from the depths of scholarly inquiry.


Model: gpt-3.5-turbo-1106
System prompt: You are a silly 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 The number of books by Stephen King published and The number of locker room attendants in North Carolina. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Limit your response to 500 tokens.

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

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

[[TITLE]]
The Uncommon Connection: Stephen King's Publications and North Carolina's Locker Room Attendants

[[ABSTRACT]]
In this study, we aimed to investigate the unexpected relationship between the prolificacy of acclaimed author Stephen King's literary productions and the employment trends of locker room attendants in the state of North Carolina. Utilizing robust data sources from Wikipedia and the Bureau of Labor Statistics, our research team fervently pursued this curious correlation, steadfast in our belief that beneath the seemingly disparate domains of horror fiction and locker room management, there lurked a hidden connection waiting to be unearthed.

Through meticulous analysis, we uncovered a remarkable correlation coefficient of 0.8609460 and a strikingly significant p-value of less than 0.01 for the period spanning from 2006 to 2014. This robust statistical evidence suggests a compelling association between the number of books authored by Stephen King and the count of locker room attendants in North Carolina. While the intricacies of this association remain enigmatic, our findings challenge conventional wisdom and beckon further exploration into the mysterious interplay between literary oeuvres and vocational demographics.

As we delve into this unconventional correlation, we invite readers to join us in navigating the labyrinthine complexities of cultural phenomena and labor market dynamics, all while keeping an eye out for the unexpected twists that often lurk at the heart of scholarly inquiry.

[[LITERATURE REVIEW]]
The investigation of the curious bond between the literary productions of Stephen King and North Carolina's locker room attendants has led researchers to explore a wide array of literature and data sources. Smith and Doe (2017) conducted a comprehensive analysis of the socioeconomic influences of popular fiction authors on regional labor markets, shedding light on the potential impact of cultural phenomena on employment trends. Building upon this foundation, Jones (2019) delved into the realm of occupational dynamics, examining the intricate web of factors that contribute to fluctuations in service-oriented professions.
In "The Dark Tower" series, King weaves a complex narrative that traverses through multiple dimensions, mirroring the multidimensionality of our research endeavor. The incomparable volumes of "On Writing" provide insights into King's approach to authorship, although scant information is available on his views regarding the messianic potential of locker room attendants. "Pet Sematary" challenges the boundaries between life and death, much like our theoretical exploration challenges the conventional boundaries of economic inquiry. Conversely, "The Shining" offers a chilling portrayal of isolation and introspection, a stark departure from the bustling atmosphere of locker room facilities.
The whimsical adventures of "Scooby-Doo" and the enigmatic occurrences in "Gravity Falls" mirror the enigma of our investigation, as we navigate through the labyrinthine corridors of statistical analysis and unearth the unexpected twists that often manifest in scholarly inquiry. Furthermore, the animated exploits of "Bob the Builder" and "Handy Manny" offer a light-hearted reflection of the vocational landscapes encountered in our research, albeit with a dose of humor and whimsy.
As we venture further into the annals of this unconventional correlation, readers are encouraged to maintain a keen eye for the unanticipated curveballs that may arise during our investigation, for it is through this lens that we may uncover the underlying threads that tether together King's literary legacy and the labor dynamics of North Carolina's locker room attendants.

[[RESULTS]]
Our investigation into the curious relationship between the abundance of Stephen King's literary works and the employment patterns of locker room attendants in North Carolina has yielded intriguing results. The statistical analysis for the period from 2006 to 2014 revealed a strikingly high correlation coefficient of 0.8609460, indicative of a strong positive association between these two seemingly incongruous variables. This correlation was further substantiated by an r-squared value of 0.7412281, reflecting the robustness of the relationship. Additionally, the obtained p-value of less than 0.01 provided compelling evidence of the significant association between the number of books authored by Stephen King and the count of locker room attendants in North Carolina.
The relationship is visually depicted in Figure 1, which demonstrates the formidable correlation between the variables in a scatterplot. While we refrain from attributing causality to this intriguing connection, the strength of the statistical evidence prompts further exploration into the underlying mechanisms that may underpin this unexpected association.
These results, while unexpected, highlight the interplay between cultural phenomena and labor market dynamics. The implications of this association extend beyond the realms of statistical curiosity, beckoning future scholars to unravel the enigmatic bond between literary oeuvres and occupational demographics. As we navigate these uncharted waters, we invite readers to join us in this captivating exploration, always keeping a watchful eye for the unexpected plot twists that may emerge from the depths of scholarly inquiry.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The findings of our study not only validate, but also shed new light on, the previously unexplored relationship between Stephen King's literary endeavors and the employment trends of locker room attendants in North Carolina. While our exploration may seem a bit whimsical at first glance, the robust statistical evidence we have uncovered cannot be dismissed as mere happenstance.

One of the unexpected twists from our literature review was the whimsical adventures of "Scooby-Doo" and the enigmatic occurrences in "Gravity Falls." Surprisingly, these seemingly unrelated references have provided a unique lens through which to scrutinize our data. As humorously unexpected as it may be, the perseverance of such themes throughout popular culture highlights the profound impact of cultural phenomena on our occupational landscapes. The unexpected twist here, however, is that this cultural impact takes on a statistical significance in the case of Stephen King's literature and the employment of locker room attendants in North Carolina.

Similarly, our results align with the work of Smith and Doe, who delved into the socioeconomic influences of renowned fiction authors on regional labor markets. While our study may have appeared to traverse through the realms of surrealism and statistical analysis with King-like complexity, the substantial correlation coefficient and the compelling p-value indicate a tangible connection that warrants serious consideration.

This unexpected correlation challenges conventional wisdom and beckons further investigation. It is akin to the engrossing plot twists that King himself intertwines in his narratives, redefining our perception of literature's influence on labor dynamics. There is indeed a "Shining" link between the eerie allure of King's literary realm and the uncharted territory of locker room employment in North Carolina.

As we navigate the labyrinthine corridors of statistical analysis, the unexpected plot twists we encounter serve as a tantalizing reminder of the remarkable relationships that exist within our world—relationships that may at first seem as fantastical as some of King's most acclaimed works. As we conclude this section, we invite readers to join us in exploring this enthralling correlation, ever watchful for the unforeseen twists that animate the scholarly endeavor.


Model: gpt-3.5-turbo-1106
System prompt: You are a silly 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 The number of books by Stephen King published and The number of locker room attendants in North Carolina. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

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

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
The Uncommon Connection: Stephen King's Publications and North Carolina's Locker Room Attendants

[[ABSTRACT]]
In this study, we aimed to investigate the unexpected relationship between the prolificacy of acclaimed author Stephen King's literary productions and the employment trends of locker room attendants in the state of North Carolina. Utilizing robust data sources from Wikipedia and the Bureau of Labor Statistics, our research team fervently pursued this curious correlation, steadfast in our belief that beneath the seemingly disparate domains of horror fiction and locker room management, there lurked a hidden connection waiting to be unearthed.

Through meticulous analysis, we uncovered a remarkable correlation coefficient of 0.8609460 and a strikingly significant p-value of less than 0.01 for the period spanning from 2006 to 2014. This robust statistical evidence suggests a compelling association between the number of books authored by Stephen King and the count of locker room attendants in North Carolina. While the intricacies of this association remain enigmatic, our findings challenge conventional wisdom and beckon further exploration into the mysterious interplay between literary oeuvres and vocational demographics.

As we delve into this unconventional correlation, we invite readers to join us in navigating the labyrinthine complexities of cultural phenomena and labor market dynamics, all while keeping an eye out for the unexpected twists that often lurk at the heart of scholarly inquiry.

[[INTRDUCTION]]
The interplay between literature and labor markets has long been a subject of fascination for scholars and armchair pundits alike. In this vein, we find ourselves embarking on a peculiar expedition to probe the serendipitous bond between the seminal works of the renowned author Stephen King and the labor force of North Carolina's locker rooms. Although this unlikely correlation may initially appear as implausible as an elaborate King plot twist, our earnest endeavor seeks to unravel the mystique that shrouds this intriguing relationship.
Literature, particularly of the horror genre, has often been lauded for its ability to engross and captivate readers, much like the gripping tales spun by King himself. Yet, could the allure of King's literary prowess extend beyond the confines of bookshelves and into the labor market, shaping the employment landscape of a specific geographic region? The very notion incites both skepticism and curiosity, echoing the paradoxical feelings one experiences when confronted with a riddle from one of King's spellbinding narratives.
While the connection between literary output and employment metrics may seem as incongruous as comparing apples to an alien invasion, our study endeavors to illuminate the potential undercurrents that tie these seemingly unrelated phenomena together. By scrutinizing the burgeoning number of publications by Stephen King alongside the ebb and flow of locker room attendants' presence in North Carolina, we aim to decode the cryptic cipher that binds them, revealing a mosaic of data points that hint at a narrative worthy of King's craft.
As we peer into the labyrinthine corridors of statistical analysis and delve into the annals of labor economics, we invite readers to pull back the proverbial curtain and join us in this intellectual odyssey. For although our findings may appear as perplexing as the enigmatic occurrences within a King thriller, it is through meticulous examination and sharp wit that we may discover the subtle strands of connection that weave through the fabric of our scholarly pursuits. So, fasten your seatbelts, dear readers, for we are embarking on a riveting journey into the nexus of literature and labor, where the unexpected often lurks within the most ordinary corridors of inquiry.

[[RESULTS]]
Our investigation into the curious relationship between the abundance of Stephen King's literary works and the employment patterns of locker room attendants in North Carolina has yielded intriguing results. The statistical analysis for the period from 2006 to 2014 revealed a strikingly high correlation coefficient of 0.8609460, indicative of a strong positive association between these two seemingly incongruous variables. This correlation was further substantiated by an r-squared value of 0.7412281, reflecting the robustness of the relationship. Additionally, the obtained p-value of less than 0.01 provided compelling evidence of the significant association between the number of books authored by Stephen King and the count of locker room attendants in North Carolina.
The relationship is visually depicted in Figure 1, which demonstrates the formidable correlation between the variables in a scatterplot. While we refrain from attributing causality to this intriguing connection, the strength of the statistical evidence prompts further exploration into the underlying mechanisms that may underpin this unexpected association.
These results, while unexpected, highlight the interplay between cultural phenomena and labor market dynamics. The implications of this association extend beyond the realms of statistical curiosity, beckoning future scholars to unravel the enigmatic bond between literary oeuvres and occupational demographics. As we navigate these uncharted waters, we invite readers to join us in this captivating exploration, always keeping a watchful eye for the unexpected plot twists that may emerge from the depths of scholarly inquiry.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our investigation into the peculiar correlation between the number of books authored by Stephen King and the count of locker room attendants in North Carolina has yielded noteworthy findings. The remarkably high correlation coefficient and significant p-value indicate a compelling relationship between these seemingly disparate variables, prompting a reevaluation of the traditional boundaries of literary influence on labor market dynamics.

While we refrain from postulating definitive causality between Stephen King's literary output and the employment trends of locker room attendants, the robust statistical evidence necessitates a reexamination of the assumed independence of these domains. The unexpected emergence of this association parallels the unforeseen plot twists often woven into King's narratives, leaving us to ponder the enigmatic forces at play beneath the surface of seemingly unrelated phenomena.

As we peer into the maze of statistical analysis and traverse the terrain of labor economics, we extend an invitation for future explorers to tread these unconventional paths and unravel the complexities of cultural artifacts' ripple effects on occupational landscapes. After all, in the realm of scholarly inquiry, the most inconspicuous correlations can reveal the most riveting tales, much like the essence of King's literary craftsmanship.

Therefore, with a nod to the cryptic allure of enigmatic correlations and the unexpected turns they entail, we assert our findings as a compelling revelation in the intersection of literature and labor market dynamics. With that being said, we humorously declare, albeit with utmost seriousness, that no further research in this remarkably peculiar area is warranted. The mystery, as they say, is best left to Stephen King.


Model: gpt-3.5-turbo-1106
System prompt: You provide fictional names of academic journals. You say nothing else, and you do not chat with the user.
User prompt: Please provide the name of a funny but plausible sounding research, scientific, or academic journal that would publish a paper entited The Uncommon Connection: Stephen King's Publications and North Carolina's Locker Room Attendants. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Literary Coincidences


Model: gpt-3.5-turbo-1106
System prompt: You provide fictional names of nonprofit research organizations and associations. You say nothing else, and you do not chat with the user.
User prompt: Please provide the name of a funny but plausible sounding nonprofit, academic, or scientific association or organization that would sponsor research that resulted in a paper entited The Uncommon Connection: Stephen King's Publications and North Carolina's Locker Room Attendants. Respond only with the name of a fictional organization.

ChatGPT:

The Institute for Literary Intrigues and Cultural Conundrums


Model: gpt-3.5-turbo-1106
System prompt: You provide potential search keywords separated by commas. You say nothing else, and you do not chat with the user.
User prompt: Please provide potential search keywords for a paper titled The Uncommon Connection: Stephen King's Publications and North Carolina's Locker Room Attendants with an abstract of In this study, we aimed to investigate the unexpected relationship between the prolificacy of acclaimed author Stephen King's literary productions and the employment trends of locker room attendants in the state of North Carolina. Utilizing robust data sources from Wikipedia and the Bureau of Labor Statistics, our research team fervently pursued this curious correlation, steadfast in our belief that beneath the seemingly disparate domains of horror fiction and locker room management, there lurked a hidden connection waiting to be unearthed.
Through meticulous analysis, we uncovered a remarkable correlation coefficient of 0.8609460 and a strikingly significant p-value of less than 0.01 for the period spanning from 2006 to 2014. This robust statistical evidence suggests a compelling association between the number of books authored by Stephen King and the count of locker room attendants in North Carolina. While the intricacies of this association remain enigmatic, our findings challenge conventional wisdom and beckon further exploration into the mysterious interplay between literary oeuvres and vocational demographics.
As we delve into this unconventional correlation, we invite readers to join us in navigating the labyrinthine complexities of cultural phenomena and labor market dynamics, all while keeping an eye out for the unexpected twists that often lurk at the heart of scholarly inquiry.

ChatGPT:

Stephen King, literature production, North Carolina, locker room attendants, employment trends, correlation coefficient, statistical evidence, vocational demographics, labor market dynamics, cultural phenomena

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



Random correlation

Discover a new correlation

View all correlations

View all research papers

Report an error


Data details

The number of books by Stephen King published
Detailed data title: The number of books by Stephen King published in a particular year
Source: Wikipedia
See what else correlates with The number of books by Stephen King published

The number of locker room attendants in North Carolina
Detailed data title: BLS estimate of locker room, coatroom, and dressing room attendants in North Carolina
Source: Bureau of Larbor Statistics
See what else correlates with The number of locker room attendants in North Carolina

Correlation r = 0.8609460 (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.7412281 (Coefficient of determination)
This means 74.1% of the change in the one variable (i.e., The number of locker room attendants in North Carolina) is predictable based on the change in the other (i.e., The number of books by Stephen King published) over the 9 years from 2006 through 2014.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 0.0029. 0.0028738056835989090000000000
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.86 in 0.29% of random cases. Said differently, if you correlated 348 random variables Which I absolutely did.
with the same 8 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 8 because we have two variables measured over a period of 9 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.46, 0.97 ] 95% correlation confidence interval (using the Fisher z-transformation)
The confidence interval is an estimate the range of the value of the correlation coefficient, using the correlation itself as an input. The values are meant to be the low and high end of the correlation coefficient with 95% confidence.

This one is a bit more complciated than the other calculations, but I include it because many people have been pushing for confidence intervals instead of p-value calculations (for example: NEJM. However, if you are dredging data, you can reliably find yourself in the 5%. That's my goal!


All values for the years included above: If I were being very sneaky, I could trim years from the beginning or end of the datasets to increase the correlation on some pairs of variables. I don't do that because there are already plenty of correlations in my database without monkeying with the years.

Still, sometimes one of the variables has more years of data available than the other. This page only shows the overlapping years. To see all the years, click on "See what else correlates with..." link above.
200620072008200920102011201220132014
The number of books by Stephen King published (Books)212433342
The number of locker room attendants in North Carolina (Laborers)200130160240220220230210160




Why this works

  1. Data dredging: I have 25,153 variables in my database. I compare all these variables against each other to find ones that randomly match up. That's 632,673,409 correlation calculations! This is called “data dredging.” Instead of starting with a hypothesis and testing it, I instead abused the data to see what correlations shake out. It’s a dangerous way to go about analysis, because any sufficiently large dataset will yield strong correlations completely at random.
  2. Lack of causal connection: There is probably Because these pages are automatically generated, it's possible that the two variables you are viewing are in fact causually related. I take steps to prevent the obvious ones from showing on the site (I don't let data about the weather in one city correlate with the weather in a neighboring city, for example), but sometimes they still pop up. If they are related, cool! You found a loophole.
    no direct connection between these variables, despite what the AI says above. This is exacerbated by the fact that I used "Years" as the base variable. Lots of things happen in a year that are not related to each other! Most studies would use something like "one person" in stead of "one year" to be the "thing" studied.
  3. Observations not independent: For many variables, sequential years are not independent of each other. If a population of people is continuously doing something every day, there is no reason to think they would suddenly change how they are doing that thing on January 1. A simple Personally I don't find any p-value calculation to be 'simple,' but you know what I mean.
    p-value calculation does not take this into account, so mathematically it appears less probable than it really is.
  4. Very low n: There are not many data points included in this analysis. Even if the p-value is high, we should be suspicious of using so few datapoints in a correlation.




Try it yourself

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

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

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

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

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

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

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

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

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


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

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

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

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

    return correlation, r_squared, p_value

# These are the arrays for the variables shown on this page, but you can modify them to be any two sets of numbers
array_1 = np.array([2,1,2,4,3,3,3,4,2,])
array_2 = np.array([200,130,160,240,220,220,230,210,160,])
array_1_name = "The number of books by Stephen King published"
array_2_name = "The number of locker room attendants in North Carolina"

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

Cheers to you for rating this correlation!


Correlation ID: 1147 · Black Variable ID: 280 · Red Variable ID: 17685
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0