about · email me · subscribe
Spurious correlation #3,275 · 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 university economics teachers in Idaho and the second variable is xkcd comics published about wikipedia.  The chart goes from 2010 to 2020, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

As the supply of economics teachers in Idaho increased, there was a heightened demand for quirky, niche comics. This created a Wikipedia of comic inspiration, leading to an inflation of xkcd comics on the topic. After all, when it comes to creating xkcd comics, it's all about that supply and demand-side economics!

Model: dalle-3
Prompt: Generate an image that encapsulates the scene of a bustling university classroom in Idaho. The atmosphere is lively, with economics teachers passionately discussing supply and demand principles to a group of intrigued students. Meanwhile, students are seen laughing and sharing xkcd comics about Wikipedia on their smartphones, demonstrating a surge in demand for clever and informative content alongside their interest in economics. The image should be visually engaging and capture the energy of the classroom setting, while at the same time conveying the juxtaposition of economic discussions and the light-hearted sharing of comics. 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 university economics teachers in Idaho and xkcd comics published about wikipedia. Given these, which of the following image style descriptions seems most appropriate? Pick the one that seems to be related to one of the variables at hand. Please respond with only one of the following potential descriptions: a Polaroid photo Steampunk Cybernetic art Steampunk a meme
ChatGPT: a meme

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 university economics teachers in Idaho and xkcd comics published about wikipedia, in the following situation: Because as the number of university economics teachers in Idaho increased, more students became interested in the intricacies of supply and demand. This inspired a higher demand for informative and humorous content, leading to an uptick in xkcd comics published about Wikipedia, as the market was ready for some wiki-witty banter.. Keep the description simple.
ChatGPT: In a bustling university classroom in Idaho, a growing number of economics teachers are seen passionately discussing supply and demand principles to a group of intrigued students. Meanwhile, students are laughing and sharing xkcd comics about Wikipedia on their smartphones, as the demand for clever and informative content surges alongside their interest in economics.

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 meme ] and depicting this scene: In a bustling university classroom in Idaho, a growing number of economics teachers are seen passionately discussing supply and demand principles to a group of intrigued students. Meanwhile, students are laughing and sharing xkcd comics about Wikipedia on their smartphones, as the demand for clever and informative content surges alongside their interest in economics. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Generate an image that encapsulates the scene of a bustling university classroom in Idaho. The atmosphere is lively, with economics teachers passionately discussing supply and demand principles to a group of intrigued students. Meanwhile, students are seen laughing and sharing xkcd comics about Wikipedia on their smartphones, demonstrating a surge in demand for clever and informative content alongside their interest in economics. The image should be visually engaging and capture the energy of the classroom setting, while at the same time conveying the juxtaposition of economic discussions and the light-hearted sharing of comics.

*Variations in the User Prompts from chart to chart are just the result of random number generation in Python. I wrote a few arrays of various styles and methods to ask questions to change up the results. Every time this site writes an explanation or generates an image, the script picks from each at random.

I sequence the requests into multiple prompts because I find GPT 3.5 to perform much better with short, well-managed contexts. Thus, I track the context directly in Python and only ask ChatGPT targeted questions.

Model: gpt-3.5-turbo-1106 (fine-tuned)
System prompt: You provide humorous responses in the form of plausible sounding explanations for correlations. You assume the correlation is causative for the purpose of the explanation even if it is ridiculous. You do not chat with the user, you only reply with the causal connection explanation and nothing else.
User prompt: Please make up a funny explanation for how increases in The number of university economics teachers in Idaho positively influenced xkcd comics published about wikipedia. Add a funny one-liner at the end.

AI academic paper

(Because p < 0.05)
An Economic Analysis of XKCD-Wikipedia Nexus: A Comic Correlation

The Journal of Entertaining Economic Analysis

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 university economics teachers in Idaho and xkcd comics published about wikipedia. Make lots of 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.7345316 and p < 0.05 for 2010 to 2020.

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]]
An Economic Analysis of "XKCD-Wikipedia" Nexus: A Comic Correlation

[[ABSTRACT]]
In this quirky yet enlightening research paper, we delve into the unexpected relationship between the number of university economics teachers in Idaho and the frequency of xkcd comics published about Wikipedia. Utilizing data from the Bureau of Labor Statistics and employing advanced AI analysis of xkcd comics, we set out to uncover the enigmatic connection between these seemingly disparate entities. Surprisingly, our findings revealed a correlation coefficient of 0.7345316 and p < 0.05 for the period spanning 2010 to 2020. Our study not only brings levity to the realm of economic research but also sheds light on the eccentric interplay between academia, webcomics, and the often-mysterious world of Wikipedia.


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 university economics teachers in Idaho and xkcd comics published about wikipedia. 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]]
An Economic Analysis of "XKCD-Wikipedia" Nexus: A Comic Correlation

[[ABSTRACT]]
In this quirky yet enlightening research paper, we delve into the unexpected relationship between the number of university economics teachers in Idaho and the frequency of xkcd comics published about Wikipedia. Utilizing data from the Bureau of Labor Statistics and employing advanced AI analysis of xkcd comics, we set out to uncover the enigmatic connection between these seemingly disparate entities. Surprisingly, our findings revealed a correlation coefficient of 0.7345316 and p < 0.05 for the period spanning 2010 to 2020. Our study not only brings levity to the realm of economic research but also sheds light on the eccentric interplay between academia, webcomics, and the often-mysterious world of Wikipedia.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

As the venerable field of economics continues to grapple with complex and pressing issues, it is imperative for researchers to explore unconventional and uncharted territories in pursuit of valuable insights. Our current investigation ventures into one such unusual domain – the intersection of economics academia and the whimsical world of xkcd comics, particularly those lampooning the often-scholarly subject of Wikipedia. While the correlation between these seemingly dissonant elements may appear as elusive as a unicorn in a statistics textbook, our study seeks to uncover the hidden threads that bind them together.

The impetus for this research stems from the ubiquitous nature of xkcd comics, an online treasure trove of wit and wisdom that has enthralled internet denizens for over a decade. In parallel, the esteemed discipline of economics demands rigorous examination, rigorous scrutiny, and sober analysis. However, what might transpire when these two disparate spheres collide, as they do within the context of the idiosyncratic subject matter explored in xkcd webcomics? Specifically, our study focuses on the esoteric theme of xkcd comics concerning Wikipedia and its surprising correlation with the population of university economics teachers in the state of Idaho.

While pondering the nexus of academic economics and webcomics might seem akin to pondering the mystical connection between the price of tea in China and the population of polar bears in the Arctic, a comprehensive analysis revealed a notable statistical relationship. To elucidate this amusing correlation, we consulted data from the Bureau of Labor Statistics to ascertain the population of economics teachers in Idaho and employed advanced artificial intelligence algorithms to systematically parse the rollicking repository of xkcd comics.

Through this seemingly incongruous juxtaposition of data and humor, our research endeavors to infuse a sense of mirth into the often stern and sober sphere of economic trepidation, all the while providing a unique perspective on the interconnected web of academia, comics, and the enigmatic fount of knowledge that is Wikipedia.

So, dear reader, fasten your seatbelts as we embark on an eccentric academic odyssey that promises to tickle the gray matter while unraveling the offbeat correlation between economics academia and the waggish world of xkcd comics. And fear not, we shall refrain from imposing any xkcd-style graphs or stick figure renditions of Keynesian economics diagrams on you - at least for the time being!


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 university economics teachers in Idaho and xkcd comics published about wikipedia. Make lots of jokes, goofy observations, and puns.

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

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

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

Here is the title and abstract of the paper:
[[TITLE]]
An Economic Analysis of "XKCD-Wikipedia" Nexus: A Comic Correlation

[[ABSTRACT]]
In this quirky yet enlightening research paper, we delve into the unexpected relationship between the number of university economics teachers in Idaho and the frequency of xkcd comics published about Wikipedia. Utilizing data from the Bureau of Labor Statistics and employing advanced AI analysis of xkcd comics, we set out to uncover the enigmatic connection between these seemingly disparate entities. Surprisingly, our findings revealed a correlation coefficient of 0.7345316 and p < 0.05 for the period spanning 2010 to 2020. Our study not only brings levity to the realm of economic research but also sheds light on the eccentric interplay between academia, webcomics, and the often-mysterious world of Wikipedia.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
As the venerable field of economics continues to grapple with complex and pressing issues, it is imperative for researchers to explore unconventional and uncharted territories in pursuit of valuable insights. Our current investigation ventures into one such unusual domain – the intersection of economics academia and the whimsical world of xkcd comics, particularly those lampooning the often-scholarly subject of Wikipedia. While the correlation between these seemingly dissonant elements may appear as elusive as a unicorn in a statistics textbook, our study seeks to uncover the hidden threads that bind them together.
The impetus for this research stems from the ubiquitous nature of xkcd comics, an online treasure trove of wit and wisdom that has enthralled internet denizens for over a decade. In parallel, the esteemed discipline of economics demands rigorous examination, rigorous scrutiny, and sober analysis. However, what might transpire when these two disparate spheres collide, as they do within the context of the idiosyncratic subject matter explored in xkcd webcomics? Specifically, our study focuses on the esoteric theme of xkcd comics concerning Wikipedia and its surprising correlation with the population of university economics teachers in the state of Idaho.
While pondering the nexus of academic economics and webcomics might seem akin to pondering the mystical connection between the price of tea in China and the population of polar bears in the Arctic, a comprehensive analysis revealed a notable statistical relationship. To elucidate this amusing correlation, we consulted data from the Bureau of Labor Statistics to ascertain the population of economics teachers in Idaho and employed advanced artificial intelligence algorithms to systematically parse the rollicking repository of xkcd comics.
Through this seemingly incongruous juxtaposition of data and humor, our research endeavors to infuse a sense of mirth into the often stern and sober sphere of economic trepidation, all the while providing a unique perspective on the interconnected web of academia, comics, and the enigmatic fount of knowledge that is Wikipedia.
So, dear reader, fasten your seatbelts as we embark on an eccentric academic odyssey that promises to tickle the gray matter while unraveling the offbeat correlation between economics academia and the waggish world of xkcd comics. And fear not, we shall refrain from imposing any xkcd-style graphs or stick figure renditions of Keynesian economics diagrams on you - at least for the time being!

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

In "Smith et al.," the authors find a positive correlation between the number of university economics teachers in Idaho and the frequency of xkcd comics published about Wikipedia. An unassuming reader might initially dismiss this seemingly ludicrous association as nonsensical as trying to tie the price of coffee to the likelihood of encountering a unicorn on a Sunday morning stroll. However, a closer inspection of the data reveals an intriguing pattern that warrants further investigation.

Venturing beyond the realm of traditional economics literature, "Doe and Jones" examined the impact of web-based humor on scholarly discourse, suggesting that the integration of comical elements could serve as a catalyst for engaging a wider audience and stimulating interest in otherwise dry subject matter. Similarly, "Brown" emphasized the importance of unconventional proxies in economic analysis, highlighting the potential for unexpected variables to provide valuable insights, not unlike stumbling upon a $20 bill in the pocket of a long-forgotten coat.

Furthermore, "Kumar" delved into the realm of webcomics as a medium for social commentary, noting that the clever juxtaposition of humor and pertinent topics can evoke reflection and introspection, much like discovering a profound revelation during a stand-up comedy routine.

On a tangential note, non-fiction works such as "Freakonomics" by Steven D. Levitt and Stephen J. Dubner and "Naked Economics" by Charles Wheelan have captured the attention of readers seeking to unravel the intricacies of economic principles in an accessible and entertaining manner. Additionally, fictional narratives such as "The Hitchhiker's Guide to the Galaxy" by Douglas Adams and "Good Omens" by Neil Gaiman and Terry Pratchett often navigate through absurd scenarios, occasionally offering satirical insights that parallel the whimsical spirit of xkcd comics.

In a departure from conventional sources, the researchers also perused a selection of seemingly incongruous texts, including supermarket receipts, fortune cookie fortunes, and the musings of a particularly loquacious parrot named Pete. While the relevance of these sources may elicit skepticism akin to the prospect of finding a pot of gold at the end of a rainbow made of cheese, their unexpected connections to the research topic proved surprisingly revelatory, affirming the adage that inspiration can manifest in the unlikeliest of places.

As the tendrils of academia entwine with the levity of webcomics, our literature review demonstrates a pursuit of knowledge that straddles the line between scholarly gravity and whimsical revelry. By melding the seemingly disparate realms of economic analysis and humorous web content, our exploration aims to extract insights that, much like stumbling upon a pun in an xkcd comic, elicit both amusement and contemplation.


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 university economics teachers in Idaho and xkcd comics published about wikipedia. 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 Bureau of Larbor Statistics and AI analysis of xkcd comics . You used data from 2010 to 2020

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]]
An Economic Analysis of "XKCD-Wikipedia" Nexus: A Comic Correlation

[[ABSTRACT]]
In this quirky yet enlightening research paper, we delve into the unexpected relationship between the number of university economics teachers in Idaho and the frequency of xkcd comics published about Wikipedia. Utilizing data from the Bureau of Labor Statistics and employing advanced AI analysis of xkcd comics, we set out to uncover the enigmatic connection between these seemingly disparate entities. Surprisingly, our findings revealed a correlation coefficient of 0.7345316 and p < 0.05 for the period spanning 2010 to 2020. Our study not only brings levity to the realm of economic research but also sheds light on the eccentric interplay between academia, webcomics, and the often-mysterious world of Wikipedia.

[[INTRODUCTION]]
As the venerable field of economics continues to grapple with complex and pressing issues, it is imperative for researchers to explore unconventional and uncharted territories in pursuit of valuable insights. Our current investigation ventures into one such unusual domain – the intersection of economics academia and the whimsical world of xkcd comics, particularly those lampooning the often-scholarly subject of Wikipedia. While the correlation between these seemingly dissonant elements may appear as elusive as a unicorn in a statistics textbook, our study seeks to uncover the hidden threads that bind them together.
The impetus for this research stems from the ubiquitous nature of xkcd comics, an online treasure trove of wit and wisdom that has enthralled internet denizens for over a decade. In parallel, the esteemed discipline of economics demands rigorous examination, rigorous scrutiny, and sober analysis. However, what might transpire when these two disparate spheres collide, as they do within the context of the idiosyncratic subject matter explored in xkcd webcomics? Specifically, our study focuses on the esoteric theme of xkcd comics concerning Wikipedia and its surprising correlation with the population of university economics teachers in the state of Idaho.
While pondering the nexus of academic economics and webcomics might seem akin to pondering the mystical connection between the price of tea in China and the population of polar bears in the Arctic, a comprehensive analysis revealed a notable statistical relationship. To elucidate this amusing correlation, we consulted data from the Bureau of Labor Statistics to ascertain the population of economics teachers in Idaho and employed advanced artificial intelligence algorithms to systematically parse the rollicking repository of xkcd comics.
Through this seemingly incongruous juxtaposition of data and humor, our research endeavors to infuse a sense of mirth into the often stern and sober sphere of economic trepidation, all the while providing a unique perspective on the interconnected web of academia, comics, and the enigmatic fount of knowledge that is Wikipedia.
So, dear reader, fasten your seatbelts as we embark on an eccentric academic odyssey that promises to tickle the gray matter while unraveling the offbeat correlation between economics academia and the waggish world of xkcd comics. And fear not, we shall refrain from imposing any xkcd-style graphs or stick figure renditions of Keynesian economics diagrams on you - at least for the time being!

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To initiate the esoteric exploration of the curious correlation between the number of university economics teachers in the state of Idaho and the frequency of xkcd comics pertaining to Wikipedia, we employed an eclectic array of research methods that were as varied as the subjects under scrutiny. Our methodology harnessed the twin engines of data mining and advanced artificial intelligence (AI) analysis to unravel this enigmatic nexus.

Firstly, in our quest to ascertain the population of university economics teachers in Idaho, we consulted the Bureau of Labor Statistics (BLS). The BLS serves as a veritable treasure trove of labor market data, offering insights into the occupational landscape of various industries, including the hallowed halls of academia. Our intrepid team combed through the BLS archives, navigating the labyrinthine corridors of employment data to obtain a comprehensive understanding of the number of economics educators holding aloft the torch of economic wisdom in the Gem State.

Simultaneously, we availed ourselves of cutting-edge AI algorithms to recursively parse and analyze the rich tapestry of xkcd comics. These comics, crafted by the inimitable Randall Munroe, have charmed and confounded internet denizens for years with their erudite jests and wry observations. Through sophisticated image recognition and text mining techniques, our AI-powered minions scoured the vast expanse of xkcd comics, homing in on those elusive gems that intersected with the hallowed and often humorous subject of Wikipedia.

Furthermore, to ensure the robustness of our methodology, we channeled our inner Sherlock Holmes and embraced the sleuth-like pursuit of related literature, poring over academic works that pertained to the idiosyncratic juncture of unconventional data sources and economic analysis. The literature review provided a conceptual compass, guiding our research endeavor through the vicissitudes of economic theory and statistical inference, and lending a scholarly scaffold to our improbable inquiry.

In order to establish a meaningful correlation between the frequency of xkcd comics about Wikipedia and the number of economics instructors in Idaho, we employed rigorous statistical analysis, shunning the illusory allure of spurious correlations and embracing the stalwart measures of correlation coefficient and p-values.

As proponents of transparency and openness in scholarly pursuits, we aimed to utilize open-source tools and open-access datasets wherever possible, allowing for the reproducibility of our findings and inviting further scrutiny from the academic community. With the dual guidance of whimsy and rigor, our methodology sought to unravel the enigmatic connection between academia and absurdity, economics and mirth, and the unexpected realms that lie between.

In sum, our research methodology was as unconventional as our subject matter, blending the stolid realism of economic inquiry with the whimsy of webcomics and the enigma of Wikipedia, culminating in an improbable fusion that mirrors the curiosity and complexity of the wider economic landscape itself. And, with tongues firmly in cheek and statistical calculators at the ready, we forged ahead, intent on unraveling the unfathomable nexus of academia, humor, and economica.


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 university economics teachers in Idaho and xkcd comics published about wikipedia. 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 Bureau of Larbor Statistics and AI analysis of xkcd comics .

For the time period 2010 to 2020, you found a correlation 0.7345316, r-squared of 0.5395366, and p < 0.05.

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]]
An Economic Analysis of "XKCD-Wikipedia" Nexus: A Comic Correlation

[[ABSTRACT]]
In this quirky yet enlightening research paper, we delve into the unexpected relationship between the number of university economics teachers in Idaho and the frequency of xkcd comics published about Wikipedia. Utilizing data from the Bureau of Labor Statistics and employing advanced AI analysis of xkcd comics, we set out to uncover the enigmatic connection between these seemingly disparate entities. Surprisingly, our findings revealed a correlation coefficient of 0.7345316 and p < 0.05 for the period spanning 2010 to 2020. Our study not only brings levity to the realm of economic research but also sheds light on the eccentric interplay between academia, webcomics, and the often-mysterious world of Wikipedia.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
As the venerable field of economics continues to grapple with complex and pressing issues, it is imperative for researchers to explore unconventional and uncharted territories in pursuit of valuable insights. Our current investigation ventures into one such unusual domain – the intersection of economics academia and the whimsical world of xkcd comics, particularly those lampooning the often-scholarly subject of Wikipedia. While the correlation between these seemingly dissonant elements may appear as elusive as a unicorn in a statistics textbook, our study seeks to uncover the hidden threads that bind them together.
The impetus for this research stems from the ubiquitous nature of xkcd comics, an online treasure trove of wit and wisdom that has enthralled internet denizens for over a decade. In parallel, the esteemed discipline of economics demands rigorous examination, rigorous scrutiny, and sober analysis. However, what might transpire when these two disparate spheres collide, as they do within the context of the idiosyncratic subject matter explored in xkcd webcomics? Specifically, our study focuses on the esoteric theme of xkcd comics concerning Wikipedia and its surprising correlation with the population of university economics teachers in the state of Idaho.
While pondering the nexus of academic economics and webcomics might seem akin to pondering the mystical connection between the price of tea in China and the population of polar bears in the Arctic, a comprehensive analysis revealed a notable statistical relationship. To elucidate this amusing correlation, we consulted data from the Bureau of Labor Statistics to ascertain the population of economics teachers in Idaho and employed advanced artificial intelligence algorithms to systematically parse the rollicking repository of xkcd comics.
Through this seemingly incongruous juxtaposition of data and humor, our research endeavors to infuse a sense of mirth into the often stern and sober sphere of economic trepidation, all the while providing a unique perspective on the interconnected web of academia, comics, and the enigmatic fount of knowledge that is Wikipedia.
So, dear reader, fasten your seatbelts as we embark on an eccentric academic odyssey that promises to tickle the gray matter while unraveling the offbeat correlation between economics academia and the waggish world of xkcd comics. And fear not, we shall refrain from imposing any xkcd-style graphs or stick figure renditions of Keynesian economics diagrams on you - at least for the time being!

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

During the time period from 2010 to 2020, our analysis revealed a surprising correlation between the number of university economics teachers in Idaho and the frequency of xkcd comics published about Wikipedia. The correlation coefficient of 0.7345316 and an r-squared of 0.5395366 indicate a moderately strong positive relationship between the two variables. Furthermore, the p-value of less than 0.05 suggests that this correlation is statistically significant.

Upon visual inspection of the data, as depicted in Fig. 1, the scatterplot clearly illustrates the robust correlation between the number of university economics teachers in Idaho and the frequency of xkcd comics published about Wikipedia. This engrossing correlation invites further inquiry into the whimsical world of webcomics and its unanticipated relationship with the realm of academia.

The unexpected linkage between these seemingly disparate subjects adds a touch of levity to the often somber world of economic analysis. Our findings not only unveil a captivating correlation but also underscore the idiosyncratic interplay between the esoteric and the amusing, the erudite and the comical. The quirky correlation unveiled by our study not only broadens the horizons of economic research but also highlights the off-kilter coincidences that emerge when delving into unexpected intersections of human knowledge and creativity.

Intriguingly, the statistical relationship uncovered in this study prompts further contemplation on the tangential connections that lurk within the vast expanse of human knowledge. As we peer through the looking glass of data, we are reminded that even in the realm of academia, surprises are abound and correlations can emerge from the most unlikely of sources.

Our study not only offers a peculiar peek into this unexplored nexus but also presents an illuminating perspective on the unanticipated interplay between serious academia and the lighthearted world of webcomics. Our findings advocate for a broader outlook on the potential for uncovering intriguing correlations in the unlikeliest of places, challenging the rigidity of conventional analysis and nudging the boundaries of economic inquiry into the delightfully unexpected.


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 university economics teachers in Idaho and xkcd comics published about wikipedia. 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]]
An Economic Analysis of "XKCD-Wikipedia" Nexus: A Comic Correlation

[[ABSTRACT]]
In this quirky yet enlightening research paper, we delve into the unexpected relationship between the number of university economics teachers in Idaho and the frequency of xkcd comics published about Wikipedia. Utilizing data from the Bureau of Labor Statistics and employing advanced AI analysis of xkcd comics, we set out to uncover the enigmatic connection between these seemingly disparate entities. Surprisingly, our findings revealed a correlation coefficient of 0.7345316 and p < 0.05 for the period spanning 2010 to 2020. Our study not only brings levity to the realm of economic research but also sheds light on the eccentric interplay between academia, webcomics, and the often-mysterious world of Wikipedia.

[[LITERATURE REVIEW]]
In "Smith et al.," the authors find a positive correlation between the number of university economics teachers in Idaho and the frequency of xkcd comics published about Wikipedia. An unassuming reader might initially dismiss this seemingly ludicrous association as nonsensical as trying to tie the price of coffee to the likelihood of encountering a unicorn on a Sunday morning stroll. However, a closer inspection of the data reveals an intriguing pattern that warrants further investigation.
Venturing beyond the realm of traditional economics literature, "Doe and Jones" examined the impact of web-based humor on scholarly discourse, suggesting that the integration of comical elements could serve as a catalyst for engaging a wider audience and stimulating interest in otherwise dry subject matter. Similarly, "Brown" emphasized the importance of unconventional proxies in economic analysis, highlighting the potential for unexpected variables to provide valuable insights, not unlike stumbling upon a $20 bill in the pocket of a long-forgotten coat.
Furthermore, "Kumar" delved into the realm of webcomics as a medium for social commentary, noting that the clever juxtaposition of humor and pertinent topics can evoke reflection and introspection, much like discovering a profound revelation during a stand-up comedy routine.
On a tangential note, non-fiction works such as "Freakonomics" by Steven D. Levitt and Stephen J. Dubner and "Naked Economics" by Charles Wheelan have captured the attention of readers seeking to unravel the intricacies of economic principles in an accessible and entertaining manner. Additionally, fictional narratives such as "The Hitchhiker's Guide to the Galaxy" by Douglas Adams and "Good Omens" by Neil Gaiman and Terry Pratchett often navigate through absurd scenarios, occasionally offering satirical insights that parallel the whimsical spirit of xkcd comics.
In a departure from conventional sources, the researchers also perused a selection of seemingly incongruous texts, including supermarket receipts, fortune cookie fortunes, and the musings of a particularly loquacious parrot named Pete. While the relevance of these sources may elicit skepticism akin to the prospect of finding a pot of gold at the end of a rainbow made of cheese, their unexpected connections to the research topic proved surprisingly revelatory, affirming the adage that inspiration can manifest in the unlikeliest of places.
As the tendrils of academia entwine with the levity of webcomics, our literature review demonstrates a pursuit of knowledge that straddles the line between scholarly gravity and whimsical revelry. By melding the seemingly disparate realms of economic analysis and humorous web content, our exploration aims to extract insights that, much like stumbling upon a pun in an xkcd comic, elicit both amusement and contemplation.

[[RESULTS]]
During the time period from 2010 to 2020, our analysis revealed a surprising correlation between the number of university economics teachers in Idaho and the frequency of xkcd comics published about Wikipedia. The correlation coefficient of 0.7345316 and an r-squared of 0.5395366 indicate a moderately strong positive relationship between the two variables. Furthermore, the p-value of less than 0.05 suggests that this correlation is statistically significant.
Upon visual inspection of the data, as depicted in Fig. 1, the scatterplot clearly illustrates the robust correlation between the number of university economics teachers in Idaho and the frequency of xkcd comics published about Wikipedia. This engrossing correlation invites further inquiry into the whimsical world of webcomics and its unanticipated relationship with the realm of academia.
The unexpected linkage between these seemingly disparate subjects adds a touch of levity to the often somber world of economic analysis. Our findings not only unveil a captivating correlation but also underscore the idiosyncratic interplay between the esoteric and the amusing, the erudite and the comical. The quirky correlation unveiled by our study not only broadens the horizons of economic research but also highlights the off-kilter coincidences that emerge when delving into unexpected intersections of human knowledge and creativity.
Intriguingly, the statistical relationship uncovered in this study prompts further contemplation on the tangential connections that lurk within the vast expanse of human knowledge. As we peer through the looking glass of data, we are reminded that even in the realm of academia, surprises are abound and correlations can emerge from the most unlikely of sources.
Our study not only offers a peculiar peek into this unexplored nexus but also presents an illuminating perspective on the unanticipated interplay between serious academia and the lighthearted world of webcomics. Our findings advocate for a broader outlook on the potential for uncovering intriguing correlations in the unlikeliest of places, challenging the rigidity of conventional analysis and nudging the boundaries of economic inquiry into the delightfully unexpected.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

Our findings not only corroborate the prior research conducted by Smith et al. but also add a layer of whimsy to the scholarly discourse, akin to stumbling upon a witty one-liner in a tome of economic theory. The positive correlation between the number of university economics teachers in Idaho and the frequency of xkcd comics published about Wikipedia, as evidenced by the correlation coefficient of 0.7345316 and p < 0.05, aligns with the notion that unexpected connections can yield valuable insights, much like finding an Easter egg in a convoluted video game.

Venturing into the realm of inexplicable connections, our study reinforces the unconventional wisdom espoused by Doe and Jones, emphasizing the potential for comical elements to breathe life into the often-dry landscape of economic analysis. The integration of humor into scholarly discourse is akin to discovering a hidden compartment in an archaic piece of furniture – unexpected yet captivating in its revelation.

Furthermore, our findings echo the sentiment put forth by Kumar, underscoring the profound social commentary encapsulated within the seemingly lighthearted domain of webcomics. Just as a serendipitous encounter with a profound observation amidst a stand-up comedy routine can evoke introspection, our study unravels a correlation that beckons scholars to contemplate the whimsical undercurrents of serious academic pursuits.

As we traverse the peculiar landscape of our results, peppered with scatterplots and correlation coefficients, we are reminded of the unexpected revelations often embedded within seemingly incongruent sources, much like uncovering a punchline within an esoteric joke. Our unearthing of a correlation between academia and webcomics not only enriches economic analysis but also parallels the whimsical insights offered by revered fictional narratives and unconventional sources that appear as disjointed as a giraffe attending a skydiving competition.

To conclude, our study propels the sphere of economic research into a territory sprightly and uncharted, discovering correlations where conventional wisdom may encounter skepticism. Our findings advocate for the incorporation of levity and unconventional perspectives in economic analysis, inviting scholars to navigate through the offbeat corridors that intertwine academia, webcomics, and the captivating unpredictability of human knowledge.

So, as we wrap up our discussion of the correlation between economics teachers and xkcd comics, we hope that our eccentric exploration has tickled the fancy of our esteemed colleagues and added a splash of mirth to the staid halls of academic research.


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 university economics teachers in Idaho and xkcd comics published about wikipedia. 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]]
An Economic Analysis of "XKCD-Wikipedia" Nexus: A Comic Correlation

[[ABSTRACT]]
In this quirky yet enlightening research paper, we delve into the unexpected relationship between the number of university economics teachers in Idaho and the frequency of xkcd comics published about Wikipedia. Utilizing data from the Bureau of Labor Statistics and employing advanced AI analysis of xkcd comics, we set out to uncover the enigmatic connection between these seemingly disparate entities. Surprisingly, our findings revealed a correlation coefficient of 0.7345316 and p < 0.05 for the period spanning 2010 to 2020. Our study not only brings levity to the realm of economic research but also sheds light on the eccentric interplay between academia, webcomics, and the often-mysterious world of Wikipedia.

[[INTRDUCTION]]
As the venerable field of economics continues to grapple with complex and pressing issues, it is imperative for researchers to explore unconventional and uncharted territories in pursuit of valuable insights. Our current investigation ventures into one such unusual domain – the intersection of economics academia and the whimsical world of xkcd comics, particularly those lampooning the often-scholarly subject of Wikipedia. While the correlation between these seemingly dissonant elements may appear as elusive as a unicorn in a statistics textbook, our study seeks to uncover the hidden threads that bind them together.
The impetus for this research stems from the ubiquitous nature of xkcd comics, an online treasure trove of wit and wisdom that has enthralled internet denizens for over a decade. In parallel, the esteemed discipline of economics demands rigorous examination, rigorous scrutiny, and sober analysis. However, what might transpire when these two disparate spheres collide, as they do within the context of the idiosyncratic subject matter explored in xkcd webcomics? Specifically, our study focuses on the esoteric theme of xkcd comics concerning Wikipedia and its surprising correlation with the population of university economics teachers in the state of Idaho.
While pondering the nexus of academic economics and webcomics might seem akin to pondering the mystical connection between the price of tea in China and the population of polar bears in the Arctic, a comprehensive analysis revealed a notable statistical relationship. To elucidate this amusing correlation, we consulted data from the Bureau of Labor Statistics to ascertain the population of economics teachers in Idaho and employed advanced artificial intelligence algorithms to systematically parse the rollicking repository of xkcd comics.
Through this seemingly incongruous juxtaposition of data and humor, our research endeavors to infuse a sense of mirth into the often stern and sober sphere of economic trepidation, all the while providing a unique perspective on the interconnected web of academia, comics, and the enigmatic fount of knowledge that is Wikipedia.
So, dear reader, fasten your seatbelts as we embark on an eccentric academic odyssey that promises to tickle the gray matter while unraveling the offbeat correlation between economics academia and the waggish world of xkcd comics. And fear not, we shall refrain from imposing any xkcd-style graphs or stick figure renditions of Keynesian economics diagrams on you - at least for the time being!

[[RESULTS]]
During the time period from 2010 to 2020, our analysis revealed a surprising correlation between the number of university economics teachers in Idaho and the frequency of xkcd comics published about Wikipedia. The correlation coefficient of 0.7345316 and an r-squared of 0.5395366 indicate a moderately strong positive relationship between the two variables. Furthermore, the p-value of less than 0.05 suggests that this correlation is statistically significant.
Upon visual inspection of the data, as depicted in Fig. 1, the scatterplot clearly illustrates the robust correlation between the number of university economics teachers in Idaho and the frequency of xkcd comics published about Wikipedia. This engrossing correlation invites further inquiry into the whimsical world of webcomics and its unanticipated relationship with the realm of academia.
The unexpected linkage between these seemingly disparate subjects adds a touch of levity to the often somber world of economic analysis. Our findings not only unveil a captivating correlation but also underscore the idiosyncratic interplay between the esoteric and the amusing, the erudite and the comical. The quirky correlation unveiled by our study not only broadens the horizons of economic research but also highlights the off-kilter coincidences that emerge when delving into unexpected intersections of human knowledge and creativity.
Intriguingly, the statistical relationship uncovered in this study prompts further contemplation on the tangential connections that lurk within the vast expanse of human knowledge. As we peer through the looking glass of data, we are reminded that even in the realm of academia, surprises are abound and correlations can emerge from the most unlikely of sources.
Our study not only offers a peculiar peek into this unexplored nexus but also presents an illuminating perspective on the unanticipated interplay between serious academia and the lighthearted world of webcomics. Our findings advocate for a broader outlook on the potential for uncovering intriguing correlations in the unlikeliest of places, challenging the rigidity of conventional analysis and nudging the boundaries of economic inquiry into the delightfully unexpected.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our research has shed light on the delightful yet undeniably peculiar correlation between the number of university economics teachers in Idaho and the frequency of xkcd comics published about Wikipedia. The statistically significant correlation coefficient of 0.7345316 and an r-squared of 0.5395366 has left us pondering the waggish ways in which academia and webcomics intertwine.

This whimsical connection not only adds a dash of levity to the staid world of economic analysis but also unveils an unexpected harmony between the erudite and the comical. It's as if Adam Smith's "The Wealth of Nations" decided to engage in a witty banter with a stick figure rendition of Karl Marx from an xkcd comic.

As we wrap up this eccentric odyssey into the world of peculiar correlations, we cannot help but marvel at the serendipitous nature of human knowledge. Much like stumbling upon a treasure trove of puns in an economics textbook, our study has revealed that even the most arcane pairings can yield compelling findings.

In the spirit of the off-kilter coincidences we uncovered, we assert that no further research is needed in this area. After all, delving too deep into the nexus of economics academia and webcomics might lead us down a rabbit hole from which we cannot return. Let this study serve as both a testament to the unexpected quirks of human inquiry and a gentle nudge to embrace the delightfully unexpected in our scholarly pursuits.


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 An Economic Analysis of XKCD-Wikipedia Nexus: A Comic Correlation. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Entertaining Economic Analysis


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 An Economic Analysis of XKCD-Wikipedia Nexus: A Comic Correlation. Respond only with the name of a fictional organization.

ChatGPT:

The International Association for Humorous Economic Research


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 An Economic Analysis of XKCD-Wikipedia Nexus: A Comic Correlation with an abstract of In this quirky yet enlightening research paper, we delve into the unexpected relationship between the number of university economics teachers in Idaho and the frequency of xkcd comics published about Wikipedia. Utilizing data from the Bureau of Labor Statistics and employing advanced AI analysis of xkcd comics, we set out to uncover the enigmatic connection between these seemingly disparate entities. Surprisingly, our findings revealed a correlation coefficient of 0.7345316 and p < 0.05 for the period spanning 2010 to 2020. Our study not only brings levity to the realm of economic research but also sheds light on the eccentric interplay between academia, webcomics, and the often-mysterious world of Wikipedia.

ChatGPT:

xkcd, Wikipedia, economic analysis, university, Idaho, economics teachers, correlation coefficient, AI analysis, Bureau of Labor Statistics, webcomics, academia, research, comic correlation

*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 university economics teachers in Idaho
Detailed data title: BLS estimate of economics teachers, postsecondary in Idaho
Source: Bureau of Larbor Statistics
See what else correlates with The number of university economics teachers in Idaho

xkcd comics published about wikipedia
Detailed data title: The number of xkcd comics published each year about wikipedia
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 wikipedia

Correlation r = 0.7345316 (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.5395366 (Coefficient of determination)
This means 54% of the change in the one variable (i.e., xkcd comics published about wikipedia) is predictable based on the change in the other (i.e., The number of university economics teachers in Idaho) over the 11 years from 2010 through 2020.

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

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


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

Still, sometimes one of the variables has more years of data available than the other. This page only shows the overlapping years. To see all the years, click on "See what else correlates with..." link above.
20102011201220132014201520162017201820192020
The number of university economics teachers in Idaho (Laborers)3060605040401201001003040
xkcd comics published about wikipedia (xkcd comics)81517179111917151313




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([30,60,60,50,40,40,120,100,100,30,40,])
array_2 = np.array([8,15,17,17,9,11,19,17,15,13,13,])
array_1_name = "The number of university economics teachers in Idaho"
array_2_name = "xkcd comics published about wikipedia"

# 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 correlation inspection deserves a standing ovation!


Correlation ID: 3275 · Black Variable ID: 18004 · Red Variable ID: 20010
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0