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

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is Short fiction books published by Stephen King and the second variable is Pirate attacks globally.  The chart goes from 2009 to 2022, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

As the pages of Stephen King's short fiction books dwindled, so did the sails of inspiration for pirates. It seems they just couldn't find the IT factor to keep their maritime mischief afloat. Without his spine-chilling tales to float their boats, the pirates decided to give up the treasure hunt and pursue other careers. It's a case of 'Shiver me riders', as the literary shockwaves proved to be the ultimate kraken for the piracy business. Looks like when it comes to swashbuckling, even the scariest pirates can't handle a King-sized fright.

Model: dalle-3
Prompt: "Generate an image in the style of a classic black-and-white newspaper illustration. On one side of the image, depict a stack of ominous-looking Stephen King short fiction books. One the other side, portray a group of pirates with their ship in the background. The pirates are shown eagerly flipping through the pages of the books, completely engrossed in the spooky tales. As they read, their expressions convey enthusiasm and excitement. Suddenly, the pirates stop reading, look at each other, and shrug their shoulders, losing interest in their pirate activities. The ship remains docked, with the pirates lounging around, no longer motivated to set sail in search of treasure." 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: A decrease in short fiction books published by Stephen King caused a decrease in global pirate attacks due to the fact that pirates were more interested in "seaing" what spooky tales the master of horror had in store, rather than plundering the high seas. With less hair-raising stories to read, the pirates lost their "sails" and weren't as motivated to sail the seven seas in search of booty. It seems that the decrease in terrifying tales also decreased the number of pirates trying to "hook" a good treasure. In other words, fewer Stephen King short fiction books led to fewer pirate "tales" of terror on the open water.. 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: Cutsy art illustration A black-and-white newspaper illustration 3D Pixar Style Realistic 3D Pixar Style
ChatGPT: A black-and-white newspaper illustration

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. A decrease in short fiction books published by Stephen King caused a decrease in global pirate attacks due to the fact that pirates were more interested in "seaing" what spooky tales the master of horror had in store, rather than plundering the high seas. With less hair-raising stories to read, the pirates lost their "sails" and weren't as motivated to sail the seven seas in search of booty. It seems that the decrease in terrifying tales also decreased the number of pirates trying to "hook" a good treasure. In other words, fewer Stephen King short fiction books led to fewer pirate "tales" of terror on the open water.
ChatGPT: Picture a scene with a stack of Stephen King short fiction books on one side and a group of pirates with their ship on the other side. The pirates are eagerly flipping through the pages of the books, totally engrossed in the spooky tales. As they read, you can see their enthusiasm and excitement. Suddenly, the pirates stop reading, look at each other, and shrug their shoulders, losing interest in their pirate activities. The ship remains docked, with the pirates lounging around, no longer motivated to set sail in search of treasure.

Model: gpt-3.5-turbo-1106
System prompt: You write and improve image generation prompts for DALLE-3. You maintain the same subjects, but enhance the visuals.
User prompt: Please respond with an image generation prompt that would be likely to create an interesting visual using DALLE-3, using the following style: [ A black-and-white newspaper illustration ] and depicting this scene: Picture a scene with a stack of Stephen King short fiction books on one side and a group of pirates with their ship on the other side. The pirates are eagerly flipping through the pages of the books, totally engrossed in the spooky tales. As they read, you can see their enthusiasm and excitement. Suddenly, the pirates stop reading, look at each other, and shrug their shoulders, losing interest in their pirate activities. The ship remains docked, with the pirates lounging around, no longer motivated to set sail in search of treasure. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: "Generate an image in the style of a classic black-and-white newspaper illustration. On one side of the image, depict a stack of ominous-looking Stephen King short fiction books. One the other side, portray a group of pirates with their ship in the background. The pirates are shown eagerly flipping through the pages of the books, completely engrossed in the spooky tales. As they read, their expressions convey enthusiasm and excitement. Suddenly, the pirates stop reading, look at each other, and shrug their shoulders, losing interest in their pirate activities. The ship remains docked, with the pirates lounging around, no longer motivated to set sail in search of treasure."

*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 Short fiction books published by Stephen King caused Pirate attacks globally to decrease. Include one good pun.

AI academic paper

(Because p < 0.01)
Stephen King's Short Stories: The Swashbuckling Saga

International Journal of Gothic Literature

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 Short fiction books published by Stephen King and Pirate attacks globally. Make lots of jokes, goofy observations, and puns.

Make the title an alliteration.

Your research team used data from Wikipedia and Statista to assess this nagging question. You found a correlation coefficient of 0.7549720 and p < 0.01 for 2009 to 2022.

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

[[TITLE]]
Lorem ipsum dolor sit

[[ABSTRACT]]
Lorem ipsum dolor sit



ChatGPT:
[[TITLE]]
Stephen King's Short Stories: The Swashbuckling Saga

[[ABSTRACT]]
In recent years, there has been a surge in interest in the correlation between the publication of short fiction books by Stephen King and the frequency of pirate attacks across the globe. What initially seemed like a far-fetched and whimsical idea has piqued the curiosity of researchers and enthusiasts alike. In this study, we sought to uncover any potential link between the terrifying tales penned by Stephen King and the daring escapades of pirates on the high seas. Utilizing data from Wikipedia and Statista, we embarked on a daring voyage of exploration into uncharted territory – the realm of literary influence on maritime crime. Our findings revealed a surprisingly robust correlation coefficient of 0.7549720 and a significance level of p < 0.01 for the period spanning 2009 to 2022, leaving us both captivated and in awe of the unexpected connection. This research presents an unconventional yet compelling angle to the understanding of piracy and the impact of literary works on real-world phenomena. With this study, we invite fellow researchers to embark on their own intellectual journey to unravel the mysteries that lie beneath the waves of popular culture and seafaring folklore.


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 Short fiction books published by Stephen King and Pirate attacks globally. 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]]
Stephen King's Short Stories: The Swashbuckling Saga

[[ABSTRACT]]
In recent years, there has been a surge in interest in the correlation between the publication of short fiction books by Stephen King and the frequency of pirate attacks across the globe. What initially seemed like a far-fetched and whimsical idea has piqued the curiosity of researchers and enthusiasts alike. In this study, we sought to uncover any potential link between the terrifying tales penned by Stephen King and the daring escapades of pirates on the high seas. Utilizing data from Wikipedia and Statista, we embarked on a daring voyage of exploration into uncharted territory – the realm of literary influence on maritime crime. Our findings revealed a surprisingly robust correlation coefficient of 0.7549720 and a significance level of p < 0.01 for the period spanning 2009 to 2022, leaving us both captivated and in awe of the unexpected connection. This research presents an unconventional yet compelling angle to the understanding of piracy and the impact of literary works on real-world phenomena. With this study, we invite fellow researchers to embark on their own intellectual journey to unravel the mysteries that lie beneath the waves of popular culture and seafaring folklore.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

Ahoy, mateys, and welcome aboard the SS Academic Inquiry! We are about to embark on a literary adventure unlike any other, delving into the enigmatic connection between the spine-tingling short fiction works of Stephen King and the swashbuckling escapades of pirates across the seven seas. Avast ye, skeptics and scallywags, for we shall navigate the treacherous waters of statistical analysis and critical literary theory to uncover the hidden treasures of this peculiar correlation.

While the idea of Stephen King's tales inspiring pirate exploits may initially sound as far-fetched as finding a message in a bottle from the Bermuda Triangle, our research has unveiled an intriguing relationship that has left even the most stoic scholars scratching their heads in disbelief.

The emergence of this unlikely scholarly pursuit was as serendipitous as stumbling upon a buried chest of doubloons. What began as a jest among colleagues over a pint of grog soon evolved into a bona fide investigation that has set the academic community aflutter. As we heave-ho through the pages of King's short stories, our compass of curiosity points toward uncharted territories where the reels of fiction intertwine with the rigging of reality.

Now, you may be wondering: what in Davy Jones's locker could possibly link the fictional horrors of King's imagination to the real-life exploits of pirates? Be prepared to be marooned in a world where the boundaries between fiction and reality blur like a mirage on the horizon. As we chart our course through this unorthodox study, we implore our fellow scholars to keep a keen eye on the literary horizon and embrace the spirit of adventure as we navigate the uncharted waters of the Stephen King-Pirate conundrum. So, batten down the hatches and prepare to be bewitched by the awe-inspiring saga that lies ahead!


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 Short fiction books published by Stephen King and Pirate attacks globally. 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 cite some social media posts you read that seem to be related.

Here is the title and abstract of the paper:
[[TITLE]]
Stephen King's Short Stories: The Swashbuckling Saga

[[ABSTRACT]]
In recent years, there has been a surge in interest in the correlation between the publication of short fiction books by Stephen King and the frequency of pirate attacks across the globe. What initially seemed like a far-fetched and whimsical idea has piqued the curiosity of researchers and enthusiasts alike. In this study, we sought to uncover any potential link between the terrifying tales penned by Stephen King and the daring escapades of pirates on the high seas. Utilizing data from Wikipedia and Statista, we embarked on a daring voyage of exploration into uncharted territory – the realm of literary influence on maritime crime. Our findings revealed a surprisingly robust correlation coefficient of 0.7549720 and a significance level of p < 0.01 for the period spanning 2009 to 2022, leaving us both captivated and in awe of the unexpected connection. This research presents an unconventional yet compelling angle to the understanding of piracy and the impact of literary works on real-world phenomena. With this study, we invite fellow researchers to embark on their own intellectual journey to unravel the mysteries that lie beneath the waves of popular culture and seafaring folklore.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
Ahoy, mateys, and welcome aboard the SS Academic Inquiry! We are about to embark on a literary adventure unlike any other, delving into the enigmatic connection between the spine-tingling short fiction works of Stephen King and the swashbuckling escapades of pirates across the seven seas. Avast ye, skeptics and scallywags, for we shall navigate the treacherous waters of statistical analysis and critical literary theory to uncover the hidden treasures of this peculiar correlation.
While the idea of Stephen King's tales inspiring pirate exploits may initially sound as far-fetched as finding a message in a bottle from the Bermuda Triangle, our research has unveiled an intriguing relationship that has left even the most stoic scholars scratching their heads in disbelief.
The emergence of this unlikely scholarly pursuit was as serendipitous as stumbling upon a buried chest of doubloons. What began as a jest among colleagues over a pint of grog soon evolved into a bona fide investigation that has set the academic community aflutter. As we heave-ho through the pages of King's short stories, our compass of curiosity points toward uncharted territories where the reels of fiction intertwine with the rigging of reality.
Now, you may be wondering: what in Davy Jones's locker could possibly link the fictional horrors of King's imagination to the real-life exploits of pirates? Be prepared to be marooned in a world where the boundaries between fiction and reality blur like a mirage on the horizon. As we chart our course through this unorthodox study, we implore our fellow scholars to keep a keen eye on the literary horizon and embrace the spirit of adventure as we navigate the uncharted waters of the Stephen King-Pirate conundrum. So, batten down the hatches and prepare to be bewitched by the awe-inspiring saga that lies ahead!

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

In their seminal work, Smith et al. explored the intricate relationship between literary influences and real-world events in their study "The Nexus of Literature and Global Phenomena." While their focus mainly centered on the impact of classic literature on societal norms, their research laid the groundwork for the unorthodox investigation we embark upon today. Doe and Jones, in "Beyond the Page: Unraveling the Mysteries of Literary Reverberations," delved into the phenomenon of literary echoes reverberating through diverse cultural spheres, igniting new imaginings and inspiring unexpected manifestations.

However, as we sail deeper into the waters of this unconventional scholarly pursuit, we mustn't overlook the relevance of non-fiction works that inform our understanding of seafaring lore and the intrinsic allure of piracy. Blending historical accounts with seafaring chronicles, "Pirates: The Complete History" by Angus Konstam paints a vivid picture of the daring rogues who once ruled the waves, while "Dead Reckoning: The Untold Story of the Northwest Passage" by Ken McGoogan unearths the captivating allure of maritime exploration and its intersection with perilous encounters.

Transitioning to the realm of fiction, we encounter a myriad of literary works that echo the mystique of the high seas and the enigmatic tales spun by Stephen King. From the chilling maritime horror of "The Terror" by Dan Simmons to the swashbuckling escapades in "Treasure Island" by Robert Louis Stevenson, these narratives intertwine with the salty air of maritime folklore and evoke the spirit of adventure.

Moreover, a curious blend of social media posts has surfaced, presenting anecdotal accounts that hint at a potential correlation between Stephen King's short stories and the incidence of pirate-related activity. One Twitter user humorously mused, "Reading King's tales feels like navigating treacherous waters – oh, the irony if it's influencing pirate shenanigans out there!," while a Reddit thread delved into speculative discussions on whether the macabre imaginings of King could catalyze real-world adventures on the high seas.

As we navigate through this sea of literature, fiction, and online discourse, we are reminded of the enigmatic tendrils that bind together the literary and the factual, the whimsical and the perilous. To unravel the mysteries that lie ahead, we invite our esteemed colleagues to join us in this captivating journey through the realm of Stephen King's short stories and the unexpected waves it may evoke in the domain of pirate escapades. So hoist the Jolly Roger of scholarly curiosity and prepare to be swept away by the literary tide!


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 Short fiction books published by Stephen King and Pirate attacks globally. 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 Wikipedia and Statista . You used data from 2009 to 2022

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

Here is the title, abstract, and introduction of the paper:
[[TITLE]]
Stephen King's Short Stories: The Swashbuckling Saga

[[ABSTRACT]]
In recent years, there has been a surge in interest in the correlation between the publication of short fiction books by Stephen King and the frequency of pirate attacks across the globe. What initially seemed like a far-fetched and whimsical idea has piqued the curiosity of researchers and enthusiasts alike. In this study, we sought to uncover any potential link between the terrifying tales penned by Stephen King and the daring escapades of pirates on the high seas. Utilizing data from Wikipedia and Statista, we embarked on a daring voyage of exploration into uncharted territory – the realm of literary influence on maritime crime. Our findings revealed a surprisingly robust correlation coefficient of 0.7549720 and a significance level of p < 0.01 for the period spanning 2009 to 2022, leaving us both captivated and in awe of the unexpected connection. This research presents an unconventional yet compelling angle to the understanding of piracy and the impact of literary works on real-world phenomena. With this study, we invite fellow researchers to embark on their own intellectual journey to unravel the mysteries that lie beneath the waves of popular culture and seafaring folklore.

[[INTRODUCTION]]
Ahoy, mateys, and welcome aboard the SS Academic Inquiry! We are about to embark on a literary adventure unlike any other, delving into the enigmatic connection between the spine-tingling short fiction works of Stephen King and the swashbuckling escapades of pirates across the seven seas. Avast ye, skeptics and scallywags, for we shall navigate the treacherous waters of statistical analysis and critical literary theory to uncover the hidden treasures of this peculiar correlation.
While the idea of Stephen King's tales inspiring pirate exploits may initially sound as far-fetched as finding a message in a bottle from the Bermuda Triangle, our research has unveiled an intriguing relationship that has left even the most stoic scholars scratching their heads in disbelief.
The emergence of this unlikely scholarly pursuit was as serendipitous as stumbling upon a buried chest of doubloons. What began as a jest among colleagues over a pint of grog soon evolved into a bona fide investigation that has set the academic community aflutter. As we heave-ho through the pages of King's short stories, our compass of curiosity points toward uncharted territories where the reels of fiction intertwine with the rigging of reality.
Now, you may be wondering: what in Davy Jones's locker could possibly link the fictional horrors of King's imagination to the real-life exploits of pirates? Be prepared to be marooned in a world where the boundaries between fiction and reality blur like a mirage on the horizon. As we chart our course through this unorthodox study, we implore our fellow scholars to keep a keen eye on the literary horizon and embrace the spirit of adventure as we navigate the uncharted waters of the Stephen King-Pirate conundrum. So, batten down the hatches and prepare to be bewitched by the awe-inspiring saga that lies ahead!

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

Our methodology for investigating the purported correlation between Stephen King's short fiction and global pirate activities was as intricate and convoluted as navigating a ship through a maze of treacherous reefs. First and foremost, we scoured the vast seas of the internet, casting our net far and wide to capture data spanning the years 2009 to 2022. Our primary sources of information included Wikipedia and Statista, the veritable treasure troves of knowledge and statistics.

To begin our quest, we concocted a dastardly devious plan that involved meticulously cataloging the release dates of Stephen King's short stories, creating our very own Dark Tower of publication timelines to discern any potential patterns. We then set sail on the choppy waters of pirate attack data, plotting the frequency and locations of these maritime misadventures with the precision of a pirate navigating by the stars.

Once we had amassed a booty of relevant data, it was time to weigh anchor and embark upon statistical analysis. We employed the formidable power of correlation coefficients to ascertain the strength and direction of any potential relationship betwixt King's literary works and piratical undertakings. Our trusty statistician, affectionately known as the Statistical Scallywag, tirelessly crunched numbers and hoisted the flag of significance testing to determine if our findings were truly seaworthy.

To ensure the resilience and reliability of our findings, we also conducted a series of robustness checks, akin to probing the hull of a ship for leaks before a grand expedition. We examined various subgroups, such as geographical regions and time periods, to detect any lurking sea monsters of confounding variables that could potentially confound our results.

Lastly, to add an extra layer of scrutiny to our analysis, we called upon the services of a team of literary scholars and piracy enthusiasts. They pored over King's tales and the annals of pirate lore, hoisting the rigging of critical analysis to explore any conceivable mechanisms by which the eerie echoes of Stephen King's prose could reverberate across the high seas.

In conclusion, our methodology employed a combination of data collection, statistical analysis, and interdisciplinary scrutiny, akin to a motley crew of buccaneers pooling their expertise to navigate the uncharted waters of the literary-piracy nexus. Our findings, as we shall soon reveal, shed light on this unconventional yet captivating correlation, leaving our fellow researchers and seafaring enthusiasts alike in suspense as we prepare to divulge the intriguing fruits of our labor. Sails hoisted, cannons primed, and now, we proceed to unveil the intriguing links between Stephen King's short stories and the exploits of pirates. Onward, to the heart of our swashbuckling saga!


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 Short fiction books published by Stephen King and Pirate attacks globally. 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 Wikipedia and Statista .

For the time period 2009 to 2022, you found a correlation 0.7549720, r-squared of 0.5699827, 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]]
Stephen King's Short Stories: The Swashbuckling Saga

[[ABSTRACT]]
In recent years, there has been a surge in interest in the correlation between the publication of short fiction books by Stephen King and the frequency of pirate attacks across the globe. What initially seemed like a far-fetched and whimsical idea has piqued the curiosity of researchers and enthusiasts alike. In this study, we sought to uncover any potential link between the terrifying tales penned by Stephen King and the daring escapades of pirates on the high seas. Utilizing data from Wikipedia and Statista, we embarked on a daring voyage of exploration into uncharted territory – the realm of literary influence on maritime crime. Our findings revealed a surprisingly robust correlation coefficient of 0.7549720 and a significance level of p < 0.01 for the period spanning 2009 to 2022, leaving us both captivated and in awe of the unexpected connection. This research presents an unconventional yet compelling angle to the understanding of piracy and the impact of literary works on real-world phenomena. With this study, we invite fellow researchers to embark on their own intellectual journey to unravel the mysteries that lie beneath the waves of popular culture and seafaring folklore.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
Ahoy, mateys, and welcome aboard the SS Academic Inquiry! We are about to embark on a literary adventure unlike any other, delving into the enigmatic connection between the spine-tingling short fiction works of Stephen King and the swashbuckling escapades of pirates across the seven seas. Avast ye, skeptics and scallywags, for we shall navigate the treacherous waters of statistical analysis and critical literary theory to uncover the hidden treasures of this peculiar correlation.
While the idea of Stephen King's tales inspiring pirate exploits may initially sound as far-fetched as finding a message in a bottle from the Bermuda Triangle, our research has unveiled an intriguing relationship that has left even the most stoic scholars scratching their heads in disbelief.
The emergence of this unlikely scholarly pursuit was as serendipitous as stumbling upon a buried chest of doubloons. What began as a jest among colleagues over a pint of grog soon evolved into a bona fide investigation that has set the academic community aflutter. As we heave-ho through the pages of King's short stories, our compass of curiosity points toward uncharted territories where the reels of fiction intertwine with the rigging of reality.
Now, you may be wondering: what in Davy Jones's locker could possibly link the fictional horrors of King's imagination to the real-life exploits of pirates? Be prepared to be marooned in a world where the boundaries between fiction and reality blur like a mirage on the horizon. As we chart our course through this unorthodox study, we implore our fellow scholars to keep a keen eye on the literary horizon and embrace the spirit of adventure as we navigate the uncharted waters of the Stephen King-Pirate conundrum. So, batten down the hatches and prepare to be bewitched by the awe-inspiring saga that lies ahead!

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The results of our investigation have unearthed a striking correlation between the publication of short fiction books by Stephen King and the frequency of pirate attacks across the globe from 2009 to 2022. The Pearson correlation coefficient of 0.7549720 indicates a strong positive relationship between these seemingly disparate phenomena. This correlation was further supported by an r-squared value of 0.5699827, signifying that approximately 57% of the variability in pirate attacks can be attributed to the publication of Stephen King's short fiction.

In Figure 1, the scatterplot visually elucidates the robust correlation between the two variables, as each data point forms a swashbuckling narrative of its own. The plotted points resemble a treacherous journey through choppy waters, mirroring the tumultuous relationship between King's literary works and the ebb and flow of piracy incidents.

While this unexpected association may evoke a sense of disbelief akin to encountering a ghostly apparition aboard a pirate ship, the statistical significance of p < 0.01 reinforces the validity of our findings. The probability of this correlation occurring by chance is less than 1%, underscoring the unlikely yet compelling connection between Stephen King's stories and real-world pirate activities.

It is important to note that causation cannot be inferred from correlation alone, and our study certainly does not suggest that the writings of Stephen King directly influence maritime criminal behavior. Rather, this research underscores the potential impact of literary culture on societal phenomena, inviting further exploration into the multifaceted influences of popular fiction on historical events.

In summary, our findings not only shed light on the unexpected relationship between Stephen King's short fiction and global pirate activity but also beckon scholars to venture into uncharted waters of inquiry, where the whimsical and the empirical converge in a tale worthy of the most daring literary voyage. As we navigate the towering waves of curiosity and peer into the mysteries of the literary ocean, the connection between fiction and reality reveals itself as a captivating enigma—a paradoxical dance between imagination and actuality, much like the eerie allure of a ghostly ship emerging from the mist.


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 Short fiction books published by Stephen King and Pirate attacks globally. 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]]
Stephen King's Short Stories: The Swashbuckling Saga

[[ABSTRACT]]
In recent years, there has been a surge in interest in the correlation between the publication of short fiction books by Stephen King and the frequency of pirate attacks across the globe. What initially seemed like a far-fetched and whimsical idea has piqued the curiosity of researchers and enthusiasts alike. In this study, we sought to uncover any potential link between the terrifying tales penned by Stephen King and the daring escapades of pirates on the high seas. Utilizing data from Wikipedia and Statista, we embarked on a daring voyage of exploration into uncharted territory – the realm of literary influence on maritime crime. Our findings revealed a surprisingly robust correlation coefficient of 0.7549720 and a significance level of p < 0.01 for the period spanning 2009 to 2022, leaving us both captivated and in awe of the unexpected connection. This research presents an unconventional yet compelling angle to the understanding of piracy and the impact of literary works on real-world phenomena. With this study, we invite fellow researchers to embark on their own intellectual journey to unravel the mysteries that lie beneath the waves of popular culture and seafaring folklore.

[[LITERATURE REVIEW]]
In their seminal work, Smith et al. explored the intricate relationship between literary influences and real-world events in their study "The Nexus of Literature and Global Phenomena." While their focus mainly centered on the impact of classic literature on societal norms, their research laid the groundwork for the unorthodox investigation we embark upon today. Doe and Jones, in "Beyond the Page: Unraveling the Mysteries of Literary Reverberations," delved into the phenomenon of literary echoes reverberating through diverse cultural spheres, igniting new imaginings and inspiring unexpected manifestations.
However, as we sail deeper into the waters of this unconventional scholarly pursuit, we mustn't overlook the relevance of non-fiction works that inform our understanding of seafaring lore and the intrinsic allure of piracy. Blending historical accounts with seafaring chronicles, "Pirates: The Complete History" by Angus Konstam paints a vivid picture of the daring rogues who once ruled the waves, while "Dead Reckoning: The Untold Story of the Northwest Passage" by Ken McGoogan unearths the captivating allure of maritime exploration and its intersection with perilous encounters.
Transitioning to the realm of fiction, we encounter a myriad of literary works that echo the mystique of the high seas and the enigmatic tales spun by Stephen King. From the chilling maritime horror of "The Terror" by Dan Simmons to the swashbuckling escapades in "Treasure Island" by Robert Louis Stevenson, these narratives intertwine with the salty air of maritime folklore and evoke the spirit of adventure.
Moreover, a curious blend of social media posts has surfaced, presenting anecdotal accounts that hint at a potential correlation between Stephen King's short stories and the incidence of pirate-related activity. One Twitter user humorously mused, "Reading King's tales feels like navigating treacherous waters – oh, the irony if it's influencing pirate shenanigans out there!," while a Reddit thread delved into speculative discussions on whether the macabre imaginings of King could catalyze real-world adventures on the high seas.
As we navigate through this sea of literature, fiction, and online discourse, we are reminded of the enigmatic tendrils that bind together the literary and the factual, the whimsical and the perilous. To unravel the mysteries that lie ahead, we invite our esteemed colleagues to join us in this captivating journey through the realm of Stephen King's short stories and the unexpected waves it may evoke in the domain of pirate escapades. So hoist the Jolly Roger of scholarly curiosity and prepare to be swept away by the literary tide!

[[RESULTS]]
The results of our investigation have unearthed a striking correlation between the publication of short fiction books by Stephen King and the frequency of pirate attacks across the globe from 2009 to 2022. The Pearson correlation coefficient of 0.7549720 indicates a strong positive relationship between these seemingly disparate phenomena. This correlation was further supported by an r-squared value of 0.5699827, signifying that approximately 57% of the variability in pirate attacks can be attributed to the publication of Stephen King's short fiction.
In Figure 1, the scatterplot visually elucidates the robust correlation between the two variables, as each data point forms a swashbuckling narrative of its own. The plotted points resemble a treacherous journey through choppy waters, mirroring the tumultuous relationship between King's literary works and the ebb and flow of piracy incidents.
While this unexpected association may evoke a sense of disbelief akin to encountering a ghostly apparition aboard a pirate ship, the statistical significance of p < 0.01 reinforces the validity of our findings. The probability of this correlation occurring by chance is less than 1%, underscoring the unlikely yet compelling connection between Stephen King's stories and real-world pirate activities.
It is important to note that causation cannot be inferred from correlation alone, and our study certainly does not suggest that the writings of Stephen King directly influence maritime criminal behavior. Rather, this research underscores the potential impact of literary culture on societal phenomena, inviting further exploration into the multifaceted influences of popular fiction on historical events.
In summary, our findings not only shed light on the unexpected relationship between Stephen King's short fiction and global pirate activity but also beckon scholars to venture into uncharted waters of inquiry, where the whimsical and the empirical converge in a tale worthy of the most daring literary voyage. As we navigate the towering waves of curiosity and peer into the mysteries of the literary ocean, the connection between fiction and reality reveals itself as a captivating enigma—a paradoxical dance between imagination and actuality, much like the eerie allure of a ghostly ship emerging from the mist.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

The results of our study present a compelling case for the unexpected correlation between the publication of Stephen King's short fiction books and the occurrence of pirate attacks across the globe from 2009 to 2022. While the initial notion of such a connection may have seemed as improbable as stumbling upon a hidden treasure map in a dusty old library, our findings support the possibility of a significant relationship between these two seemingly disparate domains.

In light of our results, it's crucial to revisit the literature review that inspired our audacious pursuit of this unconventional inquiry. While our study may have sounded like the plot of a whimsical tale, the groundbreaking work of Smith et al. in highlighting the impact of literature on real-world events laid the foundation for our exploration. Furthermore, the intriguing musings and speculative discussions from social media platforms such as Twitter and Reddit, which we initially encountered with a dash of playful skepticism, have gained unexpected relevance in light of our findings. Who would have thought that a humorous Twitter comment or an offhand Reddit thread might point us towards a statistically robust association between literature and maritime crime?

The robust correlation coefficient of 0.7549720 and the substantial r-squared value of 0.5699827 validate the unanticipated link between Stephen King's short stories and the frequency of pirate attacks. The significance level of p < 0.01 further adds a substantial anchor to our findings, solidifying the unlikely yet potent influence of literary works on real-world phenomena.

As we chart the course for future research and academic exploration, our study beckons scholars to embark on their own daring intellectual voyages, navigating the choppy waters of literary influence and historical happenings. While we tread through the fog of uncertainty, our research offers an unexpected twist in the narrative of literary impact and invites scholarly minds to unravel the mysteries that lie beneath the waves of popular culture and seafaring folklore.

In sum, our results provide a tantalizing glimpse into the captivating interplay between fiction and reality, where the shadowy realms of Stephen King's novels intersect with the daring escapades of pirates on the high seas. As we ponder the unexpected connections unearthed in our study, one might say we have indeed sailed through uncharted territory—where the tales of literary minds and the swashbuckling adventures of seafaring rogues converge in a narrative worthy of the most daring exploration.


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 Short fiction books published by Stephen King and Pirate attacks globally. 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]]
Stephen King's Short Stories: The Swashbuckling Saga

[[ABSTRACT]]
In recent years, there has been a surge in interest in the correlation between the publication of short fiction books by Stephen King and the frequency of pirate attacks across the globe. What initially seemed like a far-fetched and whimsical idea has piqued the curiosity of researchers and enthusiasts alike. In this study, we sought to uncover any potential link between the terrifying tales penned by Stephen King and the daring escapades of pirates on the high seas. Utilizing data from Wikipedia and Statista, we embarked on a daring voyage of exploration into uncharted territory – the realm of literary influence on maritime crime. Our findings revealed a surprisingly robust correlation coefficient of 0.7549720 and a significance level of p < 0.01 for the period spanning 2009 to 2022, leaving us both captivated and in awe of the unexpected connection. This research presents an unconventional yet compelling angle to the understanding of piracy and the impact of literary works on real-world phenomena. With this study, we invite fellow researchers to embark on their own intellectual journey to unravel the mysteries that lie beneath the waves of popular culture and seafaring folklore.

[[INTRDUCTION]]
Ahoy, mateys, and welcome aboard the SS Academic Inquiry! We are about to embark on a literary adventure unlike any other, delving into the enigmatic connection between the spine-tingling short fiction works of Stephen King and the swashbuckling escapades of pirates across the seven seas. Avast ye, skeptics and scallywags, for we shall navigate the treacherous waters of statistical analysis and critical literary theory to uncover the hidden treasures of this peculiar correlation.
While the idea of Stephen King's tales inspiring pirate exploits may initially sound as far-fetched as finding a message in a bottle from the Bermuda Triangle, our research has unveiled an intriguing relationship that has left even the most stoic scholars scratching their heads in disbelief.
The emergence of this unlikely scholarly pursuit was as serendipitous as stumbling upon a buried chest of doubloons. What began as a jest among colleagues over a pint of grog soon evolved into a bona fide investigation that has set the academic community aflutter. As we heave-ho through the pages of King's short stories, our compass of curiosity points toward uncharted territories where the reels of fiction intertwine with the rigging of reality.
Now, you may be wondering: what in Davy Jones's locker could possibly link the fictional horrors of King's imagination to the real-life exploits of pirates? Be prepared to be marooned in a world where the boundaries between fiction and reality blur like a mirage on the horizon. As we chart our course through this unorthodox study, we implore our fellow scholars to keep a keen eye on the literary horizon and embrace the spirit of adventure as we navigate the uncharted waters of the Stephen King-Pirate conundrum. So, batten down the hatches and prepare to be bewitched by the awe-inspiring saga that lies ahead!

[[RESULTS]]
The results of our investigation have unearthed a striking correlation between the publication of short fiction books by Stephen King and the frequency of pirate attacks across the globe from 2009 to 2022. The Pearson correlation coefficient of 0.7549720 indicates a strong positive relationship between these seemingly disparate phenomena. This correlation was further supported by an r-squared value of 0.5699827, signifying that approximately 57% of the variability in pirate attacks can be attributed to the publication of Stephen King's short fiction.
In Figure 1, the scatterplot visually elucidates the robust correlation between the two variables, as each data point forms a swashbuckling narrative of its own. The plotted points resemble a treacherous journey through choppy waters, mirroring the tumultuous relationship between King's literary works and the ebb and flow of piracy incidents.
While this unexpected association may evoke a sense of disbelief akin to encountering a ghostly apparition aboard a pirate ship, the statistical significance of p < 0.01 reinforces the validity of our findings. The probability of this correlation occurring by chance is less than 1%, underscoring the unlikely yet compelling connection between Stephen King's stories and real-world pirate activities.
It is important to note that causation cannot be inferred from correlation alone, and our study certainly does not suggest that the writings of Stephen King directly influence maritime criminal behavior. Rather, this research underscores the potential impact of literary culture on societal phenomena, inviting further exploration into the multifaceted influences of popular fiction on historical events.
In summary, our findings not only shed light on the unexpected relationship between Stephen King's short fiction and global pirate activity but also beckon scholars to venture into uncharted waters of inquiry, where the whimsical and the empirical converge in a tale worthy of the most daring literary voyage. As we navigate the towering waves of curiosity and peer into the mysteries of the literary ocean, the connection between fiction and reality reveals itself as a captivating enigma—a paradoxical dance between imagination and actuality, much like the eerie allure of a ghostly ship emerging from the mist.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

As we navigate the tempestuous seas of scholarly inquiry, our study has hoisted the jolly roger of unorthodox but compelling findings. The correlation between Stephen King's short fiction and global pirate attacks has unfurled like a crimson sail in a moonlit night, leaving even the most seasoned academics as bewildered as a landlubber at sea.
While our findings are as surprising as finding buried treasure under a forgotten beach chair, we must emphasize that correlation does not imply causation – we are not suggesting that reading "Pet Sematary" will turn you into Blackbeard. Our study merely highlights the intriguing interplay of literature and historical events, reminding us that truth can be stranger than fiction, and that reality often pirouettes with the absurd in a dance as confounding as a drunken pirate's jig.
With the statistical significance as resolute as a pirate's resolve in search of booty, we boldly claim that further research in this domain is as needless as a parrot in a library. It's time to dock our quirky ship of inquiry and leave this captivating conundrum to rest, for the overlaps of literary influence and swashbuckling escapades have been charted with the finesse of a seasoned mariner. So, let us raise a tankard of grog in tribute to this whimsical odyssey, and bid adieu to this peculiar but enthralling tale of Stephen King's short stories and the high seas. Ahoy, and may this study continue to inspire scholarly pursuits as adventurous as a pirate's treasure hunt!


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 Stephen King's Short Stories: The Swashbuckling Saga. Respond only with the name of a fictional academic journal.

ChatGPT:

International Journal of Gothic Literature


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 Stephen King's Short Stories: The Swashbuckling Saga. Respond only with the name of a fictional organization.

ChatGPT:

The Institute for Literary Adventure Studies


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 Stephen King's Short Stories: The Swashbuckling Saga with an abstract of In recent years, there has been a surge in interest in the correlation between the publication of short fiction books by Stephen King and the frequency of pirate attacks across the globe. What initially seemed like a far-fetched and whimsical idea has piqued the curiosity of researchers and enthusiasts alike. In this study, we sought to uncover any potential link between the terrifying tales penned by Stephen King and the daring escapades of pirates on the high seas. Utilizing data from Wikipedia and Statista, we embarked on a daring voyage of exploration into uncharted territory – the realm of literary influence on maritime crime. Our findings revealed a surprisingly robust correlation coefficient of 0.7549720 and a significance level of p < 0.01 for the period spanning 2009 to 2022, leaving us both captivated and in awe of the unexpected connection. This research presents an unconventional yet compelling angle to the understanding of piracy and the impact of literary works on real-world phenomena. With this study, we invite fellow researchers to embark on their own intellectual journey to unravel the mysteries that lie beneath the waves of popular culture and seafaring folklore.

ChatGPT:

Stephen King, short stories, fiction books, pirate attacks, correlation, literary influence, maritime crime, literary works, piracy, popular culture, seafaring folklore, Stephen King's impact, pirate activity, literary analysis

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



Random correlation

Discover a new correlation

View all correlations

View all research papers

Report an error


Data details

Short fiction books published by Stephen King
Detailed data title: Short fiction by Stephen King published
Source: Wikipedia
See what else correlates with Short fiction books published by Stephen King

Pirate attacks globally
Detailed data title: Global Pirate Attack Count
Source: Statista
See what else correlates with Pirate attacks globally

Correlation r = 0.7549720 (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.5699827 (Coefficient of determination)
This means 57% of the change in the one variable (i.e., Pirate attacks globally) is predictable based on the change in the other (i.e., Short fiction books published by Stephen King) over the 14 years from 2009 through 2022.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 0.0018. 0.0017994691204499960000000000
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.75 in 0.18% of random cases. Said differently, if you correlated 556 random variables Which I absolutely did.
with the same 13 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 13 because we have two variables measured over a period of 14 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.37, 0.92 ] 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.
20092010201120122013201420152016201720182019202020212022
Short fiction books published by Stephen King (Short Stories)66533242231612
Pirate attacks globally (Number of Attacks)410445439297264245246191180201162195132115




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.




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([6,6,5,3,3,2,4,2,2,3,1,6,1,2,])
array_2 = np.array([410,445,439,297,264,245,246,191,180,201,162,195,132,115,])
array_1_name = "Short fiction books published by Stephen King"
array_2_name = "Pirate attacks globally"

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

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



Reuseable content

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

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

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

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

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

Download images for these variables:


View another random correlation

How fun was this correlation?

Your rating skills are top-notch!


Correlation ID: 1123 · Black Variable ID: 281 · Red Variable ID: 488
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0