about · email me · subscribe
Spurious correlation #3,438 · 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 library assistants in North Dakota and the second variable is xkcd comics published about programming.  The chart goes from 2007 to 2021, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

The decrease in library assistants led to fewer sticky notes with obscure programming jokes being strategically placed in programming books, ultimately stunting the inspiration for xkcd comics about programming. Remember, next time you check out a book, you may be holding the key to a future punchline!

Model: dalle-3
Prompt: Generating prompt that combines: Style: Cutesy art illustration Scene: In a cozy North Dakota library, the once bustling team of helpful library assistants now stands diminished, leaving shelves of books unattended. Meanwhile, in a nearby office, Randall Munroe, the creator of xkcd, sits at his desk surrounded by piles of programming reference materials, with a frustrated expression as he struggles to find inspiration for his next comic on programming. Improved visual prompt: Create a charming illustration showing a dimly lit North Dakota library, with cozy reading nooks and shelves of books. A few friendly, cartoonish library assistants stand around, looking somewhat forlorn as they try to manage the unattended books. In an adjoining office area, a cute caricature of Randall Munroe is seated at his desk, surrounded by colorful programming reference books and various geeky trinkets. He has a lightly furrowed brow, indicative of his frustration as he searches for inspiration for his next programming-themed comic. The depiction should include only scenes, people, and objects, it should not include text or speech bubbles.
This image generation prompt was also generated by AI, using the following sequence:

Model: gpt-3.5-turbo-1106
System prompt: You select one of a few potential scene descriptors that seems to go along with the variables described. You respond only with the scene descriptions provided and say nothing else.
User prompt: Here are two variables: The number of library assistants in North Dakota and xkcd comics published about programming. Given these, which of the following image style descriptions seems most appropriate? Pick the one that seems to be related to one of the variables at hand. Please respond with only one of the following potential descriptions: Futuristic Cutsy art illustration inspired by bauhaus a meme Cutsy art illustration
ChatGPT: Cutsy art illustration

Model: gpt-3.5-turbo-1106
System prompt: You describe simple visual scenes that depict the two variables stated. You combine both variables into one scene.
User prompt: Please describe a visual scene that prominently depicts both The number of library assistants in North Dakota and xkcd comics published about programming, in the following situation: Because the decrease in library assistants in North Dakota led to an increase in overdue books, xkcd creator Randall Munroe was unable to access essential reference materials for programming jokes, resulting in a decrease in xkcd comics published about programming.. Keep the description simple.
ChatGPT: In a cozy North Dakota library, the once bustling team of helpful library assistants now stands diminished, leaving shelves of books unattended. Meanwhile, in a nearby office, Randall Munroe, the creator of xkcd, sits at his desk surrounded by piles of programming reference materials, with a frustrated expression as he struggles to find inspiration for his next comic on programming.

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: [ Cutsy art illustration ] and depicting this scene: In a cozy North Dakota library, the once bustling team of helpful library assistants now stands diminished, leaving shelves of books unattended. Meanwhile, in a nearby office, Randall Munroe, the creator of xkcd, sits at his desk surrounded by piles of programming reference materials, with a frustrated expression as he struggles to find inspiration for his next comic on programming. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Generating prompt that combines: Style: Cutesy art illustration Scene: In a cozy North Dakota library, the once bustling team of helpful library assistants now stands diminished, leaving shelves of books unattended. Meanwhile, in a nearby office, Randall Munroe, the creator of xkcd, sits at his desk surrounded by piles of programming reference materials, with a frustrated expression as he struggles to find inspiration for his next comic on programming. Improved visual prompt: Create a charming illustration showing a dimly lit North Dakota library, with cozy reading nooks and shelves of books. A few friendly, cartoonish library assistants stand around, looking somewhat forlorn as they try to manage the unattended books. In an adjoining office area, a cute caricature of Randall Munroe is seated at his desk, surrounded by colorful programming reference books and various geeky trinkets. He has a lightly furrowed brow, indicative of his frustration as he searches for inspiration for his next programming-themed comic.

*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 The number of library assistants in North Dakota caused xkcd comics published about programming to decrease.

AI academic paper

(Because p < 0.01)
Checking Out the Relationship Between Library Assistants in North Dakota and xkcd Comics on Programming: A Statistical Analysis

Journal of Quirky Studies

Jan 2024

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




Model: gpt-3.5-turbo-1106
System prompt: You are a 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 library assistants in North Dakota and xkcd comics published about programming. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

Make the title punny if you can come up with clever pun. If not, make it sound serious.

Your research team used data from Bureau of Larbor Statistics and AI analysis of xkcd comics to assess this nagging question. You found a correlation coefficient of 0.6567277 and p < 0.01 for 2007 to 2021.

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

[[TITLE]]
Lorem ipsum dolor sit

[[ABSTRACT]]
Lorem ipsum dolor sit



ChatGPT:
[[TITLE]]
Checking Out the Relationship Between Library Assistants in North Dakota and xkcd Comics on Programming: A Statistical Analysis

[[ABSTRACT]]
In this study, we took a page from the book of curiosity and set out to investigate the potential link between the number of library assistants in North Dakota and the publication of xkcd comics focused on programming. Leveraging data from the Bureau of Labor Statistics and employing AI analysis of xkcd comics from 2007 to 2021, we approached this correlation as diligently as a librarian cataloging books. Our analysis unveiled a correlation coefficient of 0.6567277 and a p-value less than 0.01, highlighting a statistically significant relationship between these seemingly unrelated subjects. The findings of this study invite us to ponder whether there may be more to this pairing than meets the eye, akin to finding hidden references in a well-crafted comic strip. We hope our research sparks further investigation into the fascinating interplay between the world of library science and the realm of programming humor.


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 library assistants in North Dakota and xkcd comics published about programming. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Here is the title and abstract of the paper:
[[TITLE]]
Checking Out the Relationship Between Library Assistants in North Dakota and xkcd Comics on Programming: A Statistical Analysis

[[ABSTRACT]]
In this study, we took a page from the book of curiosity and set out to investigate the potential link between the number of library assistants in North Dakota and the publication of xkcd comics focused on programming. Leveraging data from the Bureau of Labor Statistics and employing AI analysis of xkcd comics from 2007 to 2021, we approached this correlation as diligently as a librarian cataloging books. Our analysis unveiled a correlation coefficient of 0.6567277 and a p-value less than 0.01, highlighting a statistically significant relationship between these seemingly unrelated subjects. The findings of this study invite us to ponder whether there may be more to this pairing than meets the eye, akin to finding hidden references in a well-crafted comic strip. We hope our research sparks further investigation into the fascinating interplay between the world of library science and the realm of programming humor.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

When it comes to uncovering the unexpected connections in our world, nothing quite matches the thrill of stumbling upon an improbable correlation that leaves researchers scratching their heads in disbelief. As we delve into the realms of library science and programming humor, we are reminded of the famous quote by the author Jorge Luis Borges, "I have always imagined that Paradise will be a kind of library, while simultaneously providing a sneak peek into the enigmatic world of programming, where one misplaced semicolon can spell doom for even the savviest of coders."

Our study delves into what initially seems to be an odd couple - the number of diligent library assistants in North Dakota and the wittily insightful xkcd comics addressing the intricacies of programming. Like intrepid explorers, we sought to unravel the hidden threads that tie these seemingly unrelated entities, much like trying to decipher a complex piece of code without any comments to guide the way.

Just as an aspiring botanist carefully selects the best fertilizer for nurturing their plants, we meticulously gathered data from the Bureau of Labor Statistics and subjected the comics from 2007 to 2021 to rigorous AI analysis, teasing out any subtleties lurking beneath the surface, much like analyzing a complex algorithm for hidden bugs.

In the not-so-quiet corridors of statistical analysis, our expedition yielded a correlation coefficient of 0.6567277, twinkling like a starry-eyed scientist in a lab coat, and a p-value less than 0.01, standing out like a quirkily drawn character in an xkcd comic. These findings raised eyebrows and elicited whispers of surprise, akin to stumbling upon a well-concealed Easter egg in a labyrinth of digital art.

This paper invites our esteemed readers to join us on a journey through the intricate tapestry of numbers and humor, reminding us that just like a cleverly crafted pun, there might be more to this peculiar connection than meets the eye. Our findings beckon researchers to continue peeling back the layers of this curious correlation, much like unraveling the nuances of a cryptic crossword, in the hope of shedding light on the fascinating interplay between the seemingly distant realms of library science and programming wit.


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 library assistants in North Dakota and xkcd comics published about programming. 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 you might move on to cartoons and children's shows that you watched for research.

Here is the title and abstract of the paper:
[[TITLE]]
Checking Out the Relationship Between Library Assistants in North Dakota and xkcd Comics on Programming: A Statistical Analysis

[[ABSTRACT]]
In this study, we took a page from the book of curiosity and set out to investigate the potential link between the number of library assistants in North Dakota and the publication of xkcd comics focused on programming. Leveraging data from the Bureau of Labor Statistics and employing AI analysis of xkcd comics from 2007 to 2021, we approached this correlation as diligently as a librarian cataloging books. Our analysis unveiled a correlation coefficient of 0.6567277 and a p-value less than 0.01, highlighting a statistically significant relationship between these seemingly unrelated subjects. The findings of this study invite us to ponder whether there may be more to this pairing than meets the eye, akin to finding hidden references in a well-crafted comic strip. We hope our research sparks further investigation into the fascinating interplay between the world of library science and the realm of programming humor.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
When it comes to uncovering the unexpected connections in our world, nothing quite matches the thrill of stumbling upon an improbable correlation that leaves researchers scratching their heads in disbelief. As we delve into the realms of library science and programming humor, we are reminded of the famous quote by the author Jorge Luis Borges, "I have always imagined that Paradise will be a kind of library, while simultaneously providing a sneak peek into the enigmatic world of programming, where one misplaced semicolon can spell doom for even the savviest of coders."
Our study delves into what initially seems to be an odd couple - the number of diligent library assistants in North Dakota and the wittily insightful xkcd comics addressing the intricacies of programming. Like intrepid explorers, we sought to unravel the hidden threads that tie these seemingly unrelated entities, much like trying to decipher a complex piece of code without any comments to guide the way.
Just as an aspiring botanist carefully selects the best fertilizer for nurturing their plants, we meticulously gathered data from the Bureau of Labor Statistics and subjected the comics from 2007 to 2021 to rigorous AI analysis, teasing out any subtleties lurking beneath the surface, much like analyzing a complex algorithm for hidden bugs.
In the not-so-quiet corridors of statistical analysis, our expedition yielded a correlation coefficient of 0.6567277, twinkling like a starry-eyed scientist in a lab coat, and a p-value less than 0.01, standing out like a quirkily drawn character in an xkcd comic. These findings raised eyebrows and elicited whispers of surprise, akin to stumbling upon a well-concealed Easter egg in a labyrinth of digital art.
This paper invites our esteemed readers to join us on a journey through the intricate tapestry of numbers and humor, reminding us that just like a cleverly crafted pun, there might be more to this peculiar connection than meets the eye. Our findings beckon researchers to continue peeling back the layers of this curious correlation, much like unraveling the nuances of a cryptic crossword, in the hope of shedding light on the fascinating interplay between the seemingly distant realms of library science and programming wit.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

The potential relationship between the number of library assistants in North Dakota and the publication of xkcd comics on programming is a subject that has piqued the curiosity of researchers in recent years. While this correlation may initially seem as far-fetched as finding a reference to the Dewey Decimal System in a programming manual, the literature exploring this surprising connection is not as sparse as one might expect.

Smith (2017) delves into the role of library assistants and their impact on the dissemination of knowledge, drawing parallels between the meticulous organization of library collections and the careful structure of a well-crafted code. Meanwhile, Doe (2018) discusses the cultural significance of xkcd comics and their influence on the programming community, shedding light on the subtle humor that often goes unnoticed like a hidden bug in a complex algorithm.

In a similar vein, Jones (2019) presents a comprehensive analysis of the evolving landscape of library science and the role of technology in shaping its trajectory. This analysis prompts us to consider the potential intersection between the world of libraries and the digital realm, much like the intersection between the whimsical humor of xkcd and the intricacies of programming.

Expanding beyond the confines of traditional academic literature, works such as "Quiet Please: Dispatches from a Public Librarian" by Scott Douglas and "The Library Book" by Susan Orlean offer captivating insights into the inner workings of libraries, highlighting the nuanced interactions between library staff and their communities. Additionally, fictional works like "Mr. Lemoncello's Library" by Chris Grabenstein and "The Library of the Unwritten" by A.J. Hackwith provide imaginative portrayals of the mysteries and wonders that libraries hold, sparking the imagination much like a cleverly constructed programming puzzle.

Furthermore, as researchers sought to immerse themselves in the world of programming humor, they found themselves hilariously entangled in the intricate and often absurd musings of cartoon characters such as Dilbert, who navigates the office landscape with a blend of satire and insight that mirrors the wit found in programming-themed comics. Additionally, the playful antics of the cast of "Phineas and Ferb" serve as a lighthearted reminder of the creative and often unconventional approaches that both librarians and programmers bring to their respective domains.

In considering the potential linkage between library assistants in North Dakota and xkcd comics on programming, it is evident that the literature offers a rich tapestry of insights and entertainment, much like the diverse collection housed within a well-stocked library. While the initial exploration of this correlation may have seemed as improbable as stumbling upon a misplaced semicolon, the findings of this study invite us to embrace the unexpected and embark on a journey of scholarly inquiry interwoven with laughter and whimsy.


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 library assistants in North Dakota and xkcd comics published about programming. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Your research team collected data from all across the internet, but mostly just used information from Bureau of Larbor Statistics and AI analysis of xkcd comics . You used data from 2007 to 2021

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

Here is the title, abstract, and introduction of the paper:
[[TITLE]]
Checking Out the Relationship Between Library Assistants in North Dakota and xkcd Comics on Programming: A Statistical Analysis

[[ABSTRACT]]
In this study, we took a page from the book of curiosity and set out to investigate the potential link between the number of library assistants in North Dakota and the publication of xkcd comics focused on programming. Leveraging data from the Bureau of Labor Statistics and employing AI analysis of xkcd comics from 2007 to 2021, we approached this correlation as diligently as a librarian cataloging books. Our analysis unveiled a correlation coefficient of 0.6567277 and a p-value less than 0.01, highlighting a statistically significant relationship between these seemingly unrelated subjects. The findings of this study invite us to ponder whether there may be more to this pairing than meets the eye, akin to finding hidden references in a well-crafted comic strip. We hope our research sparks further investigation into the fascinating interplay between the world of library science and the realm of programming humor.

[[INTRODUCTION]]
When it comes to uncovering the unexpected connections in our world, nothing quite matches the thrill of stumbling upon an improbable correlation that leaves researchers scratching their heads in disbelief. As we delve into the realms of library science and programming humor, we are reminded of the famous quote by the author Jorge Luis Borges, "I have always imagined that Paradise will be a kind of library, while simultaneously providing a sneak peek into the enigmatic world of programming, where one misplaced semicolon can spell doom for even the savviest of coders."
Our study delves into what initially seems to be an odd couple - the number of diligent library assistants in North Dakota and the wittily insightful xkcd comics addressing the intricacies of programming. Like intrepid explorers, we sought to unravel the hidden threads that tie these seemingly unrelated entities, much like trying to decipher a complex piece of code without any comments to guide the way.
Just as an aspiring botanist carefully selects the best fertilizer for nurturing their plants, we meticulously gathered data from the Bureau of Labor Statistics and subjected the comics from 2007 to 2021 to rigorous AI analysis, teasing out any subtleties lurking beneath the surface, much like analyzing a complex algorithm for hidden bugs.
In the not-so-quiet corridors of statistical analysis, our expedition yielded a correlation coefficient of 0.6567277, twinkling like a starry-eyed scientist in a lab coat, and a p-value less than 0.01, standing out like a quirkily drawn character in an xkcd comic. These findings raised eyebrows and elicited whispers of surprise, akin to stumbling upon a well-concealed Easter egg in a labyrinth of digital art.
This paper invites our esteemed readers to join us on a journey through the intricate tapestry of numbers and humor, reminding us that just like a cleverly crafted pun, there might be more to this peculiar connection than meets the eye. Our findings beckon researchers to continue peeling back the layers of this curious correlation, much like unraveling the nuances of a cryptic crossword, in the hope of shedding light on the fascinating interplay between the seemingly distant realms of library science and programming wit.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

In order to untangle the enigmatic relationship between the number of library assistants in North Dakota and the publication of xkcd comics focusing on programming, our research team embarked on a journey resembling a scientific odyssey through the realms of statistics and artificial intelligence, akin to navigating a labyrinthine coding challenge.

Data Collection:
We commenced our quest by scouring the Bureau of Labor Statistics for the precise count of industrious library assistants in North Dakota, meticulously sifting through the digits as if on a treasure hunt for rare literary artifacts, though instead of gold, we sought numbers shining brightly amidst a sea of data. Simultaneously, we harnessed the power of AI to analyze every xkcd comic from the years 2007 to 2021, meticulously documenting and coding each reference to programming-related content. Similar to an elaborate scavenger hunt, we diligently sought out every snippet of information that could shed light on the peculiar connection at the heart of our investigation.

Data Analysis:
With our treasure trove of data in hand, we deployed a variety of statistical methods to illuminate the potential correlation between library assistants and xkcd programming comics, much like a curious detective using various tools and techniques to solve a perplexing mystery. Utilizing correlation analysis, we calculated the correlation coefficient to measure the strength and direction of the relationship between these seemingly disconnected variables, similar to attempting to discern the underlying pattern in a complex series of hypothetical code. Additionally, we conducted a hypothesis test and calculated the p-value to evaluate the statistical significance of the observed relationship. This analytical expedition provided us with insights that sparkled like a well-polished algorithm, shedding light on the potential linkage between two seemingly unrelated spheres.

Quality Assurance:
We took great care to ensure the accuracy and reliability of our findings, reviewing our data like a meticulous editor proofreading a well-crafted manuscript. Our rigorous approach to data analysis and interpretation aimed to minimize bias and maximize the robustness of our conclusions, safeguarding against potential misinterpretations and misconceptions that could overshadow the intricacies of the examined relationship.

Limitations:
Like all scientific expeditions, our endeavor encountered several limitations. The observational nature of our study inherently implies the possibility of unmeasured confounding factors, much like elusive bugs lurking in a complex program. Furthermore, the generalizability of our findings may be restricted due to the specific context of North Dakota and the unique humor of xkcd comics, reminiscent of the idiosyncrasies inherent in debugging a highly specialized code.

In conclusion, our methodological approach combined the rigor of statistical analysis with the exploration of artificial intelligence, mirroring the quest of a curious adventurer navigating uncharted territories, with a dash of humor and a nod to the unexpected surprises that often accompany scholarly investigations.


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 library assistants in North Dakota and xkcd comics published about programming. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

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

For the time period 2007 to 2021, you found a correlation 0.6567277, r-squared of 0.4312913, 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]]
Checking Out the Relationship Between Library Assistants in North Dakota and xkcd Comics on Programming: A Statistical Analysis

[[ABSTRACT]]
In this study, we took a page from the book of curiosity and set out to investigate the potential link between the number of library assistants in North Dakota and the publication of xkcd comics focused on programming. Leveraging data from the Bureau of Labor Statistics and employing AI analysis of xkcd comics from 2007 to 2021, we approached this correlation as diligently as a librarian cataloging books. Our analysis unveiled a correlation coefficient of 0.6567277 and a p-value less than 0.01, highlighting a statistically significant relationship between these seemingly unrelated subjects. The findings of this study invite us to ponder whether there may be more to this pairing than meets the eye, akin to finding hidden references in a well-crafted comic strip. We hope our research sparks further investigation into the fascinating interplay between the world of library science and the realm of programming humor.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
When it comes to uncovering the unexpected connections in our world, nothing quite matches the thrill of stumbling upon an improbable correlation that leaves researchers scratching their heads in disbelief. As we delve into the realms of library science and programming humor, we are reminded of the famous quote by the author Jorge Luis Borges, "I have always imagined that Paradise will be a kind of library, while simultaneously providing a sneak peek into the enigmatic world of programming, where one misplaced semicolon can spell doom for even the savviest of coders."
Our study delves into what initially seems to be an odd couple - the number of diligent library assistants in North Dakota and the wittily insightful xkcd comics addressing the intricacies of programming. Like intrepid explorers, we sought to unravel the hidden threads that tie these seemingly unrelated entities, much like trying to decipher a complex piece of code without any comments to guide the way.
Just as an aspiring botanist carefully selects the best fertilizer for nurturing their plants, we meticulously gathered data from the Bureau of Labor Statistics and subjected the comics from 2007 to 2021 to rigorous AI analysis, teasing out any subtleties lurking beneath the surface, much like analyzing a complex algorithm for hidden bugs.
In the not-so-quiet corridors of statistical analysis, our expedition yielded a correlation coefficient of 0.6567277, twinkling like a starry-eyed scientist in a lab coat, and a p-value less than 0.01, standing out like a quirkily drawn character in an xkcd comic. These findings raised eyebrows and elicited whispers of surprise, akin to stumbling upon a well-concealed Easter egg in a labyrinth of digital art.
This paper invites our esteemed readers to join us on a journey through the intricate tapestry of numbers and humor, reminding us that just like a cleverly crafted pun, there might be more to this peculiar connection than meets the eye. Our findings beckon researchers to continue peeling back the layers of this curious correlation, much like unraveling the nuances of a cryptic crossword, in the hope of shedding light on the fascinating interplay between the seemingly distant realms of library science and programming wit.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

Our investigation into the potential relationship between the number of library assistants in North Dakota and xkcd comics centered on programming humor yielded intriguing findings that allure both the scientific mind and the aficionados of wit and whimsy. As we navigated through the labyrinth of data, we uncovered a notable correlation coefficient of 0.6567277, indicating a moderate positive relationship between the two variables. This correlation left us feeling as pleasantly surprised as stumbling upon a hidden gem within the shelves of a meticulously organized library.

The r-squared value of 0.4312913 further underscored the substantial degree to which the variation in the number of library assistants could be explained by the number of xkcd comics about programming. This result served as a gentle nudge to ponder the possibility of a deeper underlying connection, much like realizing the layers of humorous references embedded within an xkcd comic strip.

Furthermore, the p-value less than 0.01 exerted an air of statistical significance, standing out as prominently as a well-timed punchline in the world of stand-up comedy. This statistical evidence highlighted the validity of the observed correlation and prompted us to entertain the idea of a symbiotic relationship between the worlds of library science and programming humor, much like the harmonious interplay between the structure of a well-organized library and the art of crafting a perfectly succinct code.

In summary, our research uncovered a statistically significant correlation between the number of library assistants in North Dakota and the publication of xkcd comics focused on programming, shedding light on the potential interwoven nature of these seemingly unrelated domains. Our findings encourage further exploration into the delightful enigma of this correlation, prompting researchers to explore this curious pairing with the same earnest curiosity as one would approach unraveling a particularly clever pun.


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 library assistants in North Dakota and xkcd comics published about programming. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

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]]
Checking Out the Relationship Between Library Assistants in North Dakota and xkcd Comics on Programming: A Statistical Analysis

[[ABSTRACT]]
In this study, we took a page from the book of curiosity and set out to investigate the potential link between the number of library assistants in North Dakota and the publication of xkcd comics focused on programming. Leveraging data from the Bureau of Labor Statistics and employing AI analysis of xkcd comics from 2007 to 2021, we approached this correlation as diligently as a librarian cataloging books. Our analysis unveiled a correlation coefficient of 0.6567277 and a p-value less than 0.01, highlighting a statistically significant relationship between these seemingly unrelated subjects. The findings of this study invite us to ponder whether there may be more to this pairing than meets the eye, akin to finding hidden references in a well-crafted comic strip. We hope our research sparks further investigation into the fascinating interplay between the world of library science and the realm of programming humor.

[[LITERATURE REVIEW]]
The potential relationship between the number of library assistants in North Dakota and the publication of xkcd comics on programming is a subject that has piqued the curiosity of researchers in recent years. While this correlation may initially seem as far-fetched as finding a reference to the Dewey Decimal System in a programming manual, the literature exploring this surprising connection is not as sparse as one might expect.
Smith (2017) delves into the role of library assistants and their impact on the dissemination of knowledge, drawing parallels between the meticulous organization of library collections and the careful structure of a well-crafted code. Meanwhile, Doe (2018) discusses the cultural significance of xkcd comics and their influence on the programming community, shedding light on the subtle humor that often goes unnoticed like a hidden bug in a complex algorithm.
In a similar vein, Jones (2019) presents a comprehensive analysis of the evolving landscape of library science and the role of technology in shaping its trajectory. This analysis prompts us to consider the potential intersection between the world of libraries and the digital realm, much like the intersection between the whimsical humor of xkcd and the intricacies of programming.
Expanding beyond the confines of traditional academic literature, works such as "Quiet Please: Dispatches from a Public Librarian" by Scott Douglas and "The Library Book" by Susan Orlean offer captivating insights into the inner workings of libraries, highlighting the nuanced interactions between library staff and their communities. Additionally, fictional works like "Mr. Lemoncello's Library" by Chris Grabenstein and "The Library of the Unwritten" by A.J. Hackwith provide imaginative portrayals of the mysteries and wonders that libraries hold, sparking the imagination much like a cleverly constructed programming puzzle.
Furthermore, as researchers sought to immerse themselves in the world of programming humor, they found themselves hilariously entangled in the intricate and often absurd musings of cartoon characters such as Dilbert, who navigates the office landscape with a blend of satire and insight that mirrors the wit found in programming-themed comics. Additionally, the playful antics of the cast of "Phineas and Ferb" serve as a lighthearted reminder of the creative and often unconventional approaches that both librarians and programmers bring to their respective domains.
In considering the potential linkage between library assistants in North Dakota and xkcd comics on programming, it is evident that the literature offers a rich tapestry of insights and entertainment, much like the diverse collection housed within a well-stocked library. While the initial exploration of this correlation may have seemed as improbable as stumbling upon a misplaced semicolon, the findings of this study invite us to embrace the unexpected and embark on a journey of scholarly inquiry interwoven with laughter and whimsy.

[[RESULTS]]
Our investigation into the potential relationship between the number of library assistants in North Dakota and xkcd comics centered on programming humor yielded intriguing findings that allure both the scientific mind and the aficionados of wit and whimsy. As we navigated through the labyrinth of data, we uncovered a notable correlation coefficient of 0.6567277, indicating a moderate positive relationship between the two variables. This correlation left us feeling as pleasantly surprised as stumbling upon a hidden gem within the shelves of a meticulously organized library.
The r-squared value of 0.4312913 further underscored the substantial degree to which the variation in the number of library assistants could be explained by the number of xkcd comics about programming. This result served as a gentle nudge to ponder the possibility of a deeper underlying connection, much like realizing the layers of humorous references embedded within an xkcd comic strip.
Furthermore, the p-value less than 0.01 exerted an air of statistical significance, standing out as prominently as a well-timed punchline in the world of stand-up comedy. This statistical evidence highlighted the validity of the observed correlation and prompted us to entertain the idea of a symbiotic relationship between the worlds of library science and programming humor, much like the harmonious interplay between the structure of a well-organized library and the art of crafting a perfectly succinct code.
In summary, our research uncovered a statistically significant correlation between the number of library assistants in North Dakota and the publication of xkcd comics focused on programming, shedding light on the potential interwoven nature of these seemingly unrelated domains. Our findings encourage further exploration into the delightful enigma of this correlation, prompting researchers to explore this curious pairing with the same earnest curiosity as one would approach unraveling a particularly clever pun.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The correlation between the number of library assistants in North Dakota and the publication of xkcd comics centered on programming humor has sparked a lively conversation akin to the banter between a library book club and a group of programming enthusiasts. Our findings not only support but also amplify the existing research on this engaging correlation. Delving into the literature, we are reminded of Smith's (2017) discussion on the meticulous organization in libraries and the structured nature of well-crafted code - a comparison that our results seem to corroborate. The connection between the precise organization of library collections and the careful structuring of code is as evident as finding a well-thought-out punchline in a satirical comic strip.

In a similar light, Doe's (2018) exploration of the cultural impact of xkcd comics on the programming community elicits curious parallels to our findings. Just as Doe illumined the subtle humor that often goes unnoticed in programming-themed comics, our research has unveiled a statistically significant relationship between the number of library assistants and the creation of xkcd comics focused on programming. This unexpected correlation serves as a gentle reminder that there is often more humor hidden in statistical analyses than meets the eye, much like finding a clever joke nestled in the complexity of code.

Moreover, Jones's (2019) comprehensive analysis of the evolving landscape of library science and the role of technology echoes our contemplation of the intertwined realms of libraries and programming humor. Our findings serve as an enjoyable reminder of the potential intersection and symbiotic relationship between the world of libraries and the realm of programming artistry, much like the serendipitous blend of a well-written punchline with the underlying complexity of statistical analysis.

As we consider how our results affirm the scholarly musings highlighted in the literature, we cannot help but reflect on the unsuspected interplay of these seemingly disparate domains. Our research, much like a cleverly constructed comic strip, has unraveled a statistically significant correlation that invites further inquiry with the same enthusiasm one might have for deciphering an intricately crafted pun. This correlation serves as a lighthearted reminder of the whimsical connections that exist in the world around us, much like discovering the unexpected humor in the interplay between libraries and programming-themed comics.


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 library assistants in North Dakota and xkcd comics published about programming. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

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]]
Checking Out the Relationship Between Library Assistants in North Dakota and xkcd Comics on Programming: A Statistical Analysis

[[ABSTRACT]]
In this study, we took a page from the book of curiosity and set out to investigate the potential link between the number of library assistants in North Dakota and the publication of xkcd comics focused on programming. Leveraging data from the Bureau of Labor Statistics and employing AI analysis of xkcd comics from 2007 to 2021, we approached this correlation as diligently as a librarian cataloging books. Our analysis unveiled a correlation coefficient of 0.6567277 and a p-value less than 0.01, highlighting a statistically significant relationship between these seemingly unrelated subjects. The findings of this study invite us to ponder whether there may be more to this pairing than meets the eye, akin to finding hidden references in a well-crafted comic strip. We hope our research sparks further investigation into the fascinating interplay between the world of library science and the realm of programming humor.

[[INTRDUCTION]]
When it comes to uncovering the unexpected connections in our world, nothing quite matches the thrill of stumbling upon an improbable correlation that leaves researchers scratching their heads in disbelief. As we delve into the realms of library science and programming humor, we are reminded of the famous quote by the author Jorge Luis Borges, "I have always imagined that Paradise will be a kind of library, while simultaneously providing a sneak peek into the enigmatic world of programming, where one misplaced semicolon can spell doom for even the savviest of coders."
Our study delves into what initially seems to be an odd couple - the number of diligent library assistants in North Dakota and the wittily insightful xkcd comics addressing the intricacies of programming. Like intrepid explorers, we sought to unravel the hidden threads that tie these seemingly unrelated entities, much like trying to decipher a complex piece of code without any comments to guide the way.
Just as an aspiring botanist carefully selects the best fertilizer for nurturing their plants, we meticulously gathered data from the Bureau of Labor Statistics and subjected the comics from 2007 to 2021 to rigorous AI analysis, teasing out any subtleties lurking beneath the surface, much like analyzing a complex algorithm for hidden bugs.
In the not-so-quiet corridors of statistical analysis, our expedition yielded a correlation coefficient of 0.6567277, twinkling like a starry-eyed scientist in a lab coat, and a p-value less than 0.01, standing out like a quirkily drawn character in an xkcd comic. These findings raised eyebrows and elicited whispers of surprise, akin to stumbling upon a well-concealed Easter egg in a labyrinth of digital art.
This paper invites our esteemed readers to join us on a journey through the intricate tapestry of numbers and humor, reminding us that just like a cleverly crafted pun, there might be more to this peculiar connection than meets the eye. Our findings beckon researchers to continue peeling back the layers of this curious correlation, much like unraveling the nuances of a cryptic crossword, in the hope of shedding light on the fascinating interplay between the seemingly distant realms of library science and programming wit.

[[RESULTS]]
Our investigation into the potential relationship between the number of library assistants in North Dakota and xkcd comics centered on programming humor yielded intriguing findings that allure both the scientific mind and the aficionados of wit and whimsy. As we navigated through the labyrinth of data, we uncovered a notable correlation coefficient of 0.6567277, indicating a moderate positive relationship between the two variables. This correlation left us feeling as pleasantly surprised as stumbling upon a hidden gem within the shelves of a meticulously organized library.
The r-squared value of 0.4312913 further underscored the substantial degree to which the variation in the number of library assistants could be explained by the number of xkcd comics about programming. This result served as a gentle nudge to ponder the possibility of a deeper underlying connection, much like realizing the layers of humorous references embedded within an xkcd comic strip.
Furthermore, the p-value less than 0.01 exerted an air of statistical significance, standing out as prominently as a well-timed punchline in the world of stand-up comedy. This statistical evidence highlighted the validity of the observed correlation and prompted us to entertain the idea of a symbiotic relationship between the worlds of library science and programming humor, much like the harmonious interplay between the structure of a well-organized library and the art of crafting a perfectly succinct code.
In summary, our research uncovered a statistically significant correlation between the number of library assistants in North Dakota and the publication of xkcd comics focused on programming, shedding light on the potential interwoven nature of these seemingly unrelated domains. Our findings encourage further exploration into the delightful enigma of this correlation, prompting researchers to explore this curious pairing with the same earnest curiosity as one would approach unraveling a particularly clever pun.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In unraveling the enthralling correlation between the number of library assistants in North Dakota and the publication of xkcd comics on programming, our findings have unveiled a connection as unexpected and intriguing as uncovering a well-hidden Easter egg within lines of code. The statistically significant correlation coefficient of 0.6567277 and the p-value less than 0.01 stand as a testament to the compelling interplay between the meticulous world of library science and the witty domain of programming humor, much like discovering a clever play-on-words buried within the lines of an algorithm.

This whimsical correlation may leave one pondering the intricate threads that bind these seemingly unrelated subjects, much like being inspired to find subtle references cleverly hidden within an xkcd comic. While our exploration has illuminated this captivating connection, it also underscores the richness and unpredictability of the scientific realm, akin to the unpredictable nature of experimental results when a statistical analysis has been conducted with a touch of levity.

As the curtains draw to a close, our study boldly declares that no further research is needed in transcending the enigmatic nexus of library science and programming humor. We bid adieu to this delightful correlation, leaving it to inspire as many chuckles and head-scratching moments as an unexpected punchline in the midst of a scholarly debate.


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 Checking Out the Relationship Between Library Assistants in North Dakota and xkcd Comics on Programming: A Statistical Analysis. Respond only with the name of a fictional academic journal.

ChatGPT:

Journal of Quirky Studies


Model: gpt-3.5-turbo-1106
System prompt: You provide fictional names of nonprofit research organizations and associations. You say nothing else, and you do not chat with the user.
User prompt: Please provide the name of a funny but plausible sounding nonprofit, academic, or scientific association or organization that would sponsor research that resulted in a paper entited Checking Out the Relationship Between Library Assistants in North Dakota and xkcd Comics on Programming: A Statistical Analysis. Respond only with the name of a fictional organization.

ChatGPT:

The Society for Quirky Research and Analysis


Model: gpt-3.5-turbo-1106
System prompt: You provide potential search keywords separated by commas. You say nothing else, and you do not chat with the user.
User prompt: Please provide potential search keywords for a paper titled Checking Out the Relationship Between Library Assistants in North Dakota and xkcd Comics on Programming: A Statistical Analysis with an abstract of In this study, we took a page from the book of curiosity and set out to investigate the potential link between the number of library assistants in North Dakota and the publication of xkcd comics focused on programming. Leveraging data from the Bureau of Labor Statistics and employing AI analysis of xkcd comics from 2007 to 2021, we approached this correlation as diligently as a librarian cataloging books. Our analysis unveiled a correlation coefficient of 0.6567277 and a p-value less than 0.01, highlighting a statistically significant relationship between these seemingly unrelated subjects. The findings of this study invite us to ponder whether there may be more to this pairing than meets the eye, akin to finding hidden references in a well-crafted comic strip. We hope our research sparks further investigation into the fascinating interplay between the world of library science and the realm of programming humor.

ChatGPT:

library assistants, North Dakota, xkcd comics, programming, statistical analysis, correlation, Bureau of Labor Statistics, AI analysis, correlation coefficient, p-value, relationship, hidden references

*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 library assistants in North Dakota
Detailed data title: BLS estimate of library assistants, clerical in North Dakota
Source: Bureau of Larbor Statistics
See what else correlates with The number of library assistants in North Dakota

xkcd comics published about programming
Detailed data title: The number of xkcd comics published each year about programming
Source: AI analysis of xkcd comics
Additional Info: I designed a Python workflow to perform OCR on every xkcd comic, feed that text into a large language model, and ask the model whether this comic was about the category named in the title.

See what else correlates with xkcd comics published about programming

Correlation r = 0.6567277 (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.4312913 (Coefficient of determination)
This means 43.1% of the change in the one variable (i.e., xkcd comics published about programming) is predictable based on the change in the other (i.e., The number of library assistants in North Dakota) over the 15 years from 2007 through 2021.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 0.0078. 0.0078226761171912890000000000
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.66 in 0.78% of random cases. Said differently, if you correlated 128 random variables Which I absolutely did.
with the same 14 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 14 because we have two variables measured over a period of 15 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.22, 0.87 ] 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.
200720082009201020112012201320142015201620172018201920202021
The number of library assistants in North Dakota (Laborers)1901309070120100120901101101701501004090
xkcd comics published about programming (xkcd comics)272215131252013172119111578




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([190,130,90,70,120,100,120,90,110,110,170,150,100,40,90,])
array_2 = np.array([27,22,15,13,12,5,20,13,17,21,19,11,15,7,8,])
array_1_name = "The number of library assistants in North Dakota"
array_2_name = "xkcd comics published about programming"

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

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



Reuseable content

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

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

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

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

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

Download images for these variables:


View another random correlation

How fun was this correlation?

You're the correlation whisperer we needed!


Correlation ID: 3438 · Black Variable ID: 12671 · Red Variable ID: 20009
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0