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

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is xkcd comics published about math and the second variable is The number of first-line supervisors of police and detectives in South Dakota.  The chart goes from 2010 to 2022, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

As the mathematical complexity of the comics rose, so did the demand for individuals with superior problem-solving skills, leading to a surge in supervisors. It seems like in South Dakota, the real xkcd (extra knowledge = career development) is in law enforcement!

Model: dalle-3
Prompt: Generate an image: [ Scalar art ] Show a warm and inviting police department office in South Dakota. A first-line supervisor sits at their desk, chuckling as they read an xkcd comic about math on their computer. Meanwhile, a group of detectives huddle around a whiteboard, engrossed in solving a complex equation. The lighting in the room is cozy, and the atmosphere is laid-back and friendly. 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: xkcd comics published about math and The number of first-line supervisors of police and detectives in South Dakota. 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: Hyper-realistic Glitch art Art nouveau Concept art Scalar art
ChatGPT: Scalar art

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 xkcd comics published about math and The number of first-line supervisors of police and detectives in South Dakota together. Keep the description simple.
ChatGPT: In a cozy South Dakota police department office, a first-line supervisor chuckles while reading an xkcd comic about math on their computer, as a group of detectives huddle around to solve a complex equation on a whiteboard.

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: [ Scalar art ] and depicting this scene: In a cozy South Dakota police department office, a first-line supervisor chuckles while reading an xkcd comic about math on their computer, as a group of detectives huddle around to solve a complex equation on a whiteboard. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Generate an image: [ Scalar art ] Show a warm and inviting police department office in South Dakota. A first-line supervisor sits at their desk, chuckling as they read an xkcd comic about math on their computer. Meanwhile, a group of detectives huddle around a whiteboard, engrossed in solving a complex equation. The lighting in the room is cozy, and the atmosphere is laid-back and friendly.

*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 an increase in xkcd comics published about math caused The number of first-line supervisors of police and detectives in South Dakota to increase. Add a funny one-liner at the end.

AI academic paper

(Because p < 0.01)
Comic Correlations: The Xkcd Nexus Between Math and Management in the Law Enforcement Sector

The Journal of Humor in Interdisciplinary 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 dry but witty academic researcher. You speak in the passive voice, and your writing sounds like it belongs in a medical or economics journal.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 xkcd comics published about math and The number of first-line supervisors of police and detectives in South Dakota. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

Include a pun in the title.

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

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

[[TITLE]]
Lorem ipsum dolor sit

[[ABSTRACT]]
Lorem ipsum dolor sit



ChatGPT:
[[TITLE]]
"Comic Correlations: The Xkcd Nexus Between Math and Management in the Law Enforcement Sector"

[[ABSTRACT]]
This study examines the hitherto unexplored and, some may argue, absurdly whimsical relationship between xkcd comic publications related to mathematics and the number of first-line supervisors of police and detectives in South Dakota. Leveraging innovative AI analysis of xkcd comics and data from the Bureau of Labor Statistics, our research team probed this unconventional pairing with fervent curiosity and raised eyebrows. Surprisingly, our analysis unveiled a notable correlation coefficient of 0.8594221 and p < 0.01 for the period spanning 2010 to 2022, sparking a whirlwind of speculation and chuckles in the academic community.

While this correlation may seem as improbable as a unicorn moonlighting as a tax accountant, our findings suggest there may be more to the playful doodles of xkcd than meets the eye, at least in the domain of law enforcement leadership. This unexpected correlation invites further investigation into the intricate interplay between mathematical musings and management modalities, teasing the intellect and tickling the funny bone simultaneously. In conclusion, this research offers a glimpse into the zany, unpredictable world of statistical serendipity, reminding us that sometimes, in the words of the inimitable xkcd, "Correlation doesn't imply causation, but it does waggle its eyebrows suggestively and gesture furtively while mouthing 'look over there'."


Model: gpt-3.5-turbo-1106
System prompt: You are a dry but witty academic researcher. You speak in the passive voice, and your writing sounds like it belongs in a medical or economics journal.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 xkcd comics published about math and The number of first-line supervisors of police and detectives in South Dakota. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Here is the title and abstract of the paper:
[[TITLE]]
"Comic Correlations: The Xkcd Nexus Between Math and Management in the Law Enforcement Sector"

[[ABSTRACT]]
This study examines the hitherto unexplored and, some may argue, absurdly whimsical relationship between xkcd comic publications related to mathematics and the number of first-line supervisors of police and detectives in South Dakota. Leveraging innovative AI analysis of xkcd comics and data from the Bureau of Labor Statistics, our research team probed this unconventional pairing with fervent curiosity and raised eyebrows. Surprisingly, our analysis unveiled a notable correlation coefficient of 0.8594221 and p < 0.01 for the period spanning 2010 to 2022, sparking a whirlwind of speculation and chuckles in the academic community.

While this correlation may seem as improbable as a unicorn moonlighting as a tax accountant, our findings suggest there may be more to the playful doodles of xkcd than meets the eye, at least in the domain of law enforcement leadership. This unexpected correlation invites further investigation into the intricate interplay between mathematical musings and management modalities, teasing the intellect and tickling the funny bone simultaneously. In conclusion, this research offers a glimpse into the zany, unpredictable world of statistical serendipity, reminding us that sometimes, in the words of the inimitable xkcd, "Correlation doesn't imply causation, but it does waggle its eyebrows suggestively and gesture furtively while mouthing 'look over there'."

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

The intersection of mathematics and management may seem as incongruous as a penguin at a salsa dance competition, yet the unyielding tendrils of correlation have drawn our attention to a most unexpected pairing: xkcd comics about math and the number of first-line supervisors of police and detectives in South Dakota. This curious union has sparked both bewilderment and fascination, prompting us to embark on a quest to unravel the enigmatic bond between number crunching and crime fighting.

While the comic stylings of xkcd may elicit more chuckles than scholarly citations in conventional academic discourse, the reach of its humor and insight cannot be gainsaid. Similarly, the task of supervising law enforcement officers in the prairies of South Dakota is no laughing matter, yet our data suggests an invisible thread binding these seemingly disparate realms. As we delve into this unlikely connection, we tread the line between skepticism and intrigue, mindful of the dangers of drawing premature conclusions while remaining open to the tantalizing prospect of unearthing a hidden gem of statistical oddity.

The aim of this study is not only to uncover a potential statistical quirk but also to invite a deeper consideration of the interplay between seemingly unrelated domains—because where there’s a chance of uncovering unexpected correlations, there’s also an opportunity for laughter, curiosity, and the occasional eyebrow raise. After all, in the words of xkcd’s perceptive creator, "Science. It works, b****es."


Model: gpt-3.5-turbo-1106
System prompt: You are a dry but witty academic researcher. You speak in the passive voice, and your writing sounds like it belongs in a medical or economics journal.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 xkcd comics published about math and The number of first-line supervisors of police and detectives in South Dakota. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

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

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

Start by naming serious-sounding studies by authors like Smith, Doe, and Jones - but then quickly devolve. Name some real non-fiction books that would be related to the topic. Then name some real fiction books that sound like they could be related. Then name a couple popular internet memes that are related to one of the topics.

Here is the title and abstract of the paper:
[[TITLE]]
"Comic Correlations: The Xkcd Nexus Between Math and Management in the Law Enforcement Sector"

[[ABSTRACT]]
This study examines the hitherto unexplored and, some may argue, absurdly whimsical relationship between xkcd comic publications related to mathematics and the number of first-line supervisors of police and detectives in South Dakota. Leveraging innovative AI analysis of xkcd comics and data from the Bureau of Labor Statistics, our research team probed this unconventional pairing with fervent curiosity and raised eyebrows. Surprisingly, our analysis unveiled a notable correlation coefficient of 0.8594221 and p < 0.01 for the period spanning 2010 to 2022, sparking a whirlwind of speculation and chuckles in the academic community.

While this correlation may seem as improbable as a unicorn moonlighting as a tax accountant, our findings suggest there may be more to the playful doodles of xkcd than meets the eye, at least in the domain of law enforcement leadership. This unexpected correlation invites further investigation into the intricate interplay between mathematical musings and management modalities, teasing the intellect and tickling the funny bone simultaneously. In conclusion, this research offers a glimpse into the zany, unpredictable world of statistical serendipity, reminding us that sometimes, in the words of the inimitable xkcd, "Correlation doesn't imply causation, but it does waggle its eyebrows suggestively and gesture furtively while mouthing 'look over there'."

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
The intersection of mathematics and management may seem as incongruous as a penguin at a salsa dance competition, yet the unyielding tendrils of correlation have drawn our attention to a most unexpected pairing: xkcd comics about math and the number of first-line supervisors of police and detectives in South Dakota. This curious union has sparked both bewilderment and fascination, prompting us to embark on a quest to unravel the enigmatic bond between number crunching and crime fighting.
While the comic stylings of xkcd may elicit more chuckles than scholarly citations in conventional academic discourse, the reach of its humor and insight cannot be gainsaid. Similarly, the task of supervising law enforcement officers in the prairies of South Dakota is no laughing matter, yet our data suggests an invisible thread binding these seemingly disparate realms. As we delve into this unlikely connection, we tread the line between skepticism and intrigue, mindful of the dangers of drawing premature conclusions while remaining open to the tantalizing prospect of unearthing a hidden gem of statistical oddity.
The aim of this study is not only to uncover a potential statistical quirk but also to invite a deeper consideration of the interplay between seemingly unrelated domains—because where there’s a chance of uncovering unexpected correlations, there’s also an opportunity for laughter, curiosity, and the occasional eyebrow raise. After all, in the words of xkcd’s perceptive creator, "Science. It works, bes."

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

Various studies have delved into the enigmatic world of mathematical humor and its potential impact on diverse spheres of human activity. Smith et al. (2017) examined the psychological effects of math-related humor on workplace productivity, while Doe and Jones (2019) explored the use of mathematical concepts in leadership development programs. Building on this foundation, our investigation probes an unexpectedly specific intersection—the nexus between xkcd comics about math and the number of first-line supervisors of police and detectives in South Dakota.

Turning to the realm of literature, "Mathematics: A Very Short Introduction" by Timothy Gowers and "The Mathematics of Love: Patterns, Proofs, and the Search for the Ultimate Equation" by Hannah Fry offer incisive perspectives on the diverse manifestations of mathematical concepts in everyday life. Moving into the realm of fiction, the works of Agatha Christie, particularly "The ABC Murders," provide a tantalizing, albeit tangential, connection to the world of law enforcement and detective work. Additionally, the mathematical musings in Douglas Adams' "The Hitchhiker's Guide to the Galaxy" echo the playful approach to complex concepts found in xkcd comics.

A curious parallel emerges in internet culture with the "This is Fine" meme, often invoked in the face of absurd or perplexing situations. Similarly, the unexpected correlation between xkcd math comics and law enforcement supervision in South Dakota may initially prompt a similar response—befuddlement followed by resigned acceptance. Nevertheless, as we navigate this uncharted confluence of humor, mathematics, and management, we approach our findings with a healthy dose of academic rigor and a readiness to embrace the unexpected.

As we transition from the familiar landscapes of traditional research to the more whimsical terrains of xkcd and law enforcement statistics, our journey takes an unexpected turn—a serendipitous detour into the uncharted wilderness of statistical zaniness, where correlation meets comedy and mathematics mingles with management in an uproarious dance of scholarly speculation.


Model: gpt-3.5-turbo-1106
System prompt: You are a dry but witty academic researcher. You speak in the passive voice, and your writing sounds like it belongs in a medical or economics journal.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 xkcd comics published about math and The number of first-line supervisors of police and detectives in South Dakota. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

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

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

Here is the title, abstract, and introduction of the paper:
[[TITLE]]
"Comic Correlations: The Xkcd Nexus Between Math and Management in the Law Enforcement Sector"

[[ABSTRACT]]
This study examines the hitherto unexplored and, some may argue, absurdly whimsical relationship between xkcd comic publications related to mathematics and the number of first-line supervisors of police and detectives in South Dakota. Leveraging innovative AI analysis of xkcd comics and data from the Bureau of Labor Statistics, our research team probed this unconventional pairing with fervent curiosity and raised eyebrows. Surprisingly, our analysis unveiled a notable correlation coefficient of 0.8594221 and p < 0.01 for the period spanning 2010 to 2022, sparking a whirlwind of speculation and chuckles in the academic community.

While this correlation may seem as improbable as a unicorn moonlighting as a tax accountant, our findings suggest there may be more to the playful doodles of xkcd than meets the eye, at least in the domain of law enforcement leadership. This unexpected correlation invites further investigation into the intricate interplay between mathematical musings and management modalities, teasing the intellect and tickling the funny bone simultaneously. In conclusion, this research offers a glimpse into the zany, unpredictable world of statistical serendipity, reminding us that sometimes, in the words of the inimitable xkcd, "Correlation doesn't imply causation, but it does waggle its eyebrows suggestively and gesture furtively while mouthing 'look over there'."

[[INTRODUCTION]]
The intersection of mathematics and management may seem as incongruous as a penguin at a salsa dance competition, yet the unyielding tendrils of correlation have drawn our attention to a most unexpected pairing: xkcd comics about math and the number of first-line supervisors of police and detectives in South Dakota. This curious union has sparked both bewilderment and fascination, prompting us to embark on a quest to unravel the enigmatic bond between number crunching and crime fighting.
While the comic stylings of xkcd may elicit more chuckles than scholarly citations in conventional academic discourse, the reach of its humor and insight cannot be gainsaid. Similarly, the task of supervising law enforcement officers in the prairies of South Dakota is no laughing matter, yet our data suggests an invisible thread binding these seemingly disparate realms. As we delve into this unlikely connection, we tread the line between skepticism and intrigue, mindful of the dangers of drawing premature conclusions while remaining open to the tantalizing prospect of unearthing a hidden gem of statistical oddity.
The aim of this study is not only to uncover a potential statistical quirk but also to invite a deeper consideration of the interplay between seemingly unrelated domains—because where there’s a chance of uncovering unexpected correlations, there’s also an opportunity for laughter, curiosity, and the occasional eyebrow raise. After all, in the words of xkcd’s perceptive creator, "Science. It works, bes."

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To investigate the perplexing relationship between xkcd comics related to mathematics and the number of first-line supervisors of police and detectives in South Dakota, a multifaceted approach was adopted. Leveraging the power of AI analysis and pulling data from the internet as well as the Bureau of Labor Statistics, our research team navigated the convoluted labyrinth of comic semantics and labor statistics with a mixture of fervent determination and a healthy dose of whimsical curiosity.

The collection of data on xkcd comics was a task as intricate as untangling a ball of yarn in a room full of playful kittens. Firstly, an extensive search was conducted to compile a comprehensive dataset of xkcd comics specifically focused on mathematical themes. The AI analysis then methodically dissected each comic, examining the subtle nuances and esoteric references that often characterize the works of xkcd. Not unlike threading a needle in a haystack, the AI algorithm meticulously categorized and scrutinized the mathematical content of the comics, capturing the essence of their humor and insight.

In parallel, data pertaining to the number of first-line supervisors of police and detectives in South Dakota was obtained from the Bureau of Labor Statistics. This involved sifting through the labyrinthine corridors of labor market information, extracting the specific occupational data for the designated timeframe spanning from 2010 to 2022. The meticulous curation and verification of this labor data resembled the careful assembly of a jigsaw puzzle, ensuring that each piece fit snugly into the broader picture of law enforcement supervision in South Dakota.

Once the datasets were assembled, a harmonious marriage of statistics and computational analysis ensued. With the precision of a watchmaker delicately crafting the gears of a timepiece, the correlation coefficient between the frequency of xkcd comics on math and the number of first-line supervisors of police and detectives in South Dakota was calculated. This involved deploying the arsenal of statistical measures to unravel the intricate web of numerical patterns, with a keen eye for subtleties that often evade casual observation.

Furthermore, to ensure the robustness of our findings, a series of sensitivity analyses and robustness checks were conducted. This involved subjecting the data to various stress tests and hypothetical scenarios, akin to stress-testing a bridge to ascertain its resilience. Through this rigorous validation process, the reliability and consistency of the observed correlation were scrutinized, reinforcing the solidity of our statistical inferences.

In summary, the unearthing of the interplay between xkcd comics and law enforcement supervision in South Dakota hinged on a symphony of data collection, computational analysis, and statistical scrutiny. The fusion of mirthful musings and labor market dynamics culminated in a coherent tapestry of comic correlations, beckoning us to peer beyond the surface of statistical serendipity and into the whimsical world of xkcd's mathematical marvels.


Model: gpt-3.5-turbo-1106
System prompt: You are a dry but witty academic researcher. You speak in the passive voice, and your writing sounds like it belongs in a medical or economics journal.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 xkcd comics published about math and The number of first-line supervisors of police and detectives in South Dakota. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

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

For the time period 2010 to 2022, you found a correlation 0.8594221, r-squared of 0.7386063, 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]]
"Comic Correlations: The Xkcd Nexus Between Math and Management in the Law Enforcement Sector"

[[ABSTRACT]]
This study examines the hitherto unexplored and, some may argue, absurdly whimsical relationship between xkcd comic publications related to mathematics and the number of first-line supervisors of police and detectives in South Dakota. Leveraging innovative AI analysis of xkcd comics and data from the Bureau of Labor Statistics, our research team probed this unconventional pairing with fervent curiosity and raised eyebrows. Surprisingly, our analysis unveiled a notable correlation coefficient of 0.8594221 and p < 0.01 for the period spanning 2010 to 2022, sparking a whirlwind of speculation and chuckles in the academic community.

While this correlation may seem as improbable as a unicorn moonlighting as a tax accountant, our findings suggest there may be more to the playful doodles of xkcd than meets the eye, at least in the domain of law enforcement leadership. This unexpected correlation invites further investigation into the intricate interplay between mathematical musings and management modalities, teasing the intellect and tickling the funny bone simultaneously. In conclusion, this research offers a glimpse into the zany, unpredictable world of statistical serendipity, reminding us that sometimes, in the words of the inimitable xkcd, "Correlation doesn't imply causation, but it does waggle its eyebrows suggestively and gesture furtively while mouthing 'look over there'."

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
The intersection of mathematics and management may seem as incongruous as a penguin at a salsa dance competition, yet the unyielding tendrils of correlation have drawn our attention to a most unexpected pairing: xkcd comics about math and the number of first-line supervisors of police and detectives in South Dakota. This curious union has sparked both bewilderment and fascination, prompting us to embark on a quest to unravel the enigmatic bond between number crunching and crime fighting.
While the comic stylings of xkcd may elicit more chuckles than scholarly citations in conventional academic discourse, the reach of its humor and insight cannot be gainsaid. Similarly, the task of supervising law enforcement officers in the prairies of South Dakota is no laughing matter, yet our data suggests an invisible thread binding these seemingly disparate realms. As we delve into this unlikely connection, we tread the line between skepticism and intrigue, mindful of the dangers of drawing premature conclusions while remaining open to the tantalizing prospect of unearthing a hidden gem of statistical oddity.
The aim of this study is not only to uncover a potential statistical quirk but also to invite a deeper consideration of the interplay between seemingly unrelated domains—because where there’s a chance of uncovering unexpected correlations, there’s also an opportunity for laughter, curiosity, and the occasional eyebrow raise. After all, in the words of xkcd’s perceptive creator, "Science. It works, bes."

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The analysis of the data spanning the years 2010 to 2022 revealed a noteworthy correlation between the number of xkcd comics related to mathematics and the number of first-line supervisors of police and detectives in South Dakota. The correlation coefficient was calculated to be 0.8594221, with an r-squared value of 0.7386063 and p < 0.01. This robust correlation coefficient suggests a strong positive relationship between the two variables, akin to finding a rare antique in a thrift store – surprising, improbable, and likely to raise a few eyebrows.

The scatterplot in Figure 1 visually represents this significant correlation, displaying a clear and compelling pattern of mathematical musings and managerial prowess intertwining in an inexplicably harmonious manner. The visual representation of the data is as striking as a well-timed punchline in a room full of mathematicians – almost too good to be true, yet undeniably captivating.

These findings prompt us to ponder the whimsical and inexplicable nature of statistical associations, reminding us that beneath the surface of mundane datasets lies the potential for unexpected connections to emerge. While the relationship between xkcd comics and law enforcement leadership may seem as outlandish as a penguin navigating a dance floor, our research underscores the unfathomable intricacies of correlation that transcend the boundaries of conventional wisdom.

In conclusion, our analysis of the correlation between xkcd comics on mathematics and the number of first-line supervisors of police and detectives in South Dakota offers a thought-provoking glimpse into the quirkier side of statistical inquiry, combining the rigors of academic investigation with the playfulness of chance discovery. It challenges us to consider the extraordinary possibilities that lie within the realm of correlation, affirming that in the tapestry of data, humor, curiosity, and statistical significance are woven together in unexpected harmony.


Model: gpt-3.5-turbo-1106
System prompt: You are a dry but witty academic researcher. You speak in the passive voice, and your writing sounds like it belongs in a medical or economics journal.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 xkcd comics published about math and The number of first-line supervisors of police and detectives in South Dakota. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Limit your response to 500 tokens.

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

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

[[TITLE]]
"Comic Correlations: The Xkcd Nexus Between Math and Management in the Law Enforcement Sector"

[[ABSTRACT]]
This study examines the hitherto unexplored and, some may argue, absurdly whimsical relationship between xkcd comic publications related to mathematics and the number of first-line supervisors of police and detectives in South Dakota. Leveraging innovative AI analysis of xkcd comics and data from the Bureau of Labor Statistics, our research team probed this unconventional pairing with fervent curiosity and raised eyebrows. Surprisingly, our analysis unveiled a notable correlation coefficient of 0.8594221 and p < 0.01 for the period spanning 2010 to 2022, sparking a whirlwind of speculation and chuckles in the academic community.

While this correlation may seem as improbable as a unicorn moonlighting as a tax accountant, our findings suggest there may be more to the playful doodles of xkcd than meets the eye, at least in the domain of law enforcement leadership. This unexpected correlation invites further investigation into the intricate interplay between mathematical musings and management modalities, teasing the intellect and tickling the funny bone simultaneously. In conclusion, this research offers a glimpse into the zany, unpredictable world of statistical serendipity, reminding us that sometimes, in the words of the inimitable xkcd, "Correlation doesn't imply causation, but it does waggle its eyebrows suggestively and gesture furtively while mouthing 'look over there'."

[[LITERATURE REVIEW]]
Various studies have delved into the enigmatic world of mathematical humor and its potential impact on diverse spheres of human activity. Smith et al. (2017) examined the psychological effects of math-related humor on workplace productivity, while Doe and Jones (2019) explored the use of mathematical concepts in leadership development programs. Building on this foundation, our investigation probes an unexpectedly specific intersection—the nexus between xkcd comics about math and the number of first-line supervisors of police and detectives in South Dakota.
Turning to the realm of literature, "Mathematics: A Very Short Introduction" by Timothy Gowers and "The Mathematics of Love: Patterns, Proofs, and the Search for the Ultimate Equation" by Hannah Fry offer incisive perspectives on the diverse manifestations of mathematical concepts in everyday life. Moving into the realm of fiction, the works of Agatha Christie, particularly "The ABC Murders," provide a tantalizing, albeit tangential, connection to the world of law enforcement and detective work. Additionally, the mathematical musings in Douglas Adams' "The Hitchhiker's Guide to the Galaxy" echo the playful approach to complex concepts found in xkcd comics.
A curious parallel emerges in internet culture with the "This is Fine" meme, often invoked in the face of absurd or perplexing situations. Similarly, the unexpected correlation between xkcd math comics and law enforcement supervision in South Dakota may initially prompt a similar response—befuddlement followed by resigned acceptance. Nevertheless, as we navigate this uncharted confluence of humor, mathematics, and management, we approach our findings with a healthy dose of academic rigor and a readiness to embrace the unexpected.
As we transition from the familiar landscapes of traditional research to the more whimsical terrains of xkcd and law enforcement statistics, our journey takes an unexpected turn—a serendipitous detour into the uncharted wilderness of statistical zaniness, where correlation meets comedy and mathematics mingles with management in an uproarious dance of scholarly speculation.

[[RESULTS]]
The analysis of the data spanning the years 2010 to 2022 revealed a noteworthy correlation between the number of xkcd comics related to mathematics and the number of first-line supervisors of police and detectives in South Dakota. The correlation coefficient was calculated to be 0.8594221, with an r-squared value of 0.7386063 and p < 0.01. This robust correlation coefficient suggests a strong positive relationship between the two variables, akin to finding a rare antique in a thrift store – surprising, improbable, and likely to raise a few eyebrows.
The scatterplot in Figure 1 visually represents this significant correlation, displaying a clear and compelling pattern of mathematical musings and managerial prowess intertwining in an inexplicably harmonious manner. The visual representation of the data is as striking as a well-timed punchline in a room full of mathematicians – almost too good to be true, yet undeniably captivating.
These findings prompt us to ponder the whimsical and inexplicable nature of statistical associations, reminding us that beneath the surface of mundane datasets lies the potential for unexpected connections to emerge. While the relationship between xkcd comics and law enforcement leadership may seem as outlandish as a penguin navigating a dance floor, our research underscores the unfathomable intricacies of correlation that transcend the boundaries of conventional wisdom.
In conclusion, our analysis of the correlation between xkcd comics on mathematics and the number of first-line supervisors of police and detectives in South Dakota offers a thought-provoking glimpse into the quirkier side of statistical inquiry, combining the rigors of academic investigation with the playfulness of chance discovery. It challenges us to consider the extraordinary possibilities that lie within the realm of correlation, affirming that in the tapestry of data, humor, curiosity, and statistical significance are woven together in unexpected harmony.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The peculiar but intriguing correlation uncovered in this study between xkcd comics related to mathematics and the number of first-line supervisors of police and detectives in South Dakota raises substantial questions about the potential influence of mathematical humor on leadership roles within the law enforcement sector. Our findings align with previous research by Smith et al. (2017) and Doe and Jones (2019), who have delved into the psychological effects of mathematical humor and the use of mathematical concepts in leadership development programs, respectively. These prior studies, although seemingly unrelated to the present enquiry, may inadvertently lend credence to the unexpected relationship we have unearthed.

The curious parallel identified in our literature review, between the "This is Fine" meme and the puzzling correlation under investigation, serves as a light-hearted reminder that amidst the stern rigor of academic inquiry, there exist unexplored realms of whimsy and mirth. Indeed, much like the unlikely plot twists in a detective novel, the convergence of mathematical musings and management modalities in the context of law enforcement supervision in South Dakota both astounds and amuses.

The unexpected correlation coefficient of 0.8594221 and p < 0.01 serves as a testament to the unanticipated congruence between seemingly disparate entities—analogous to stumbling upon a treasure trove of sly wit in the dusty annals of academia. Our results not only substantiate the existence of this statistically robust relationship but also underscore the capricious nature of statistical associations, reinforcing the timeless adage that "correlation doesn't imply causation, but it does wave a flag and say, 'Hey, look at that!'" (xkcd, 2025).

The scatterplot depicting this remarkable correlation is as clear and compelling as a meticulously crafted pun—perhaps surprising at first glance, yet undeniably satisfying upon closer inspection. Like the well-timed punchline in a room full of mathematicians, the visual representation of the data captivates the discerning eye, hinting at the harmonious interplay between mathematical whimsy and supervisory prowess.

In scrutinizing this offbeat correlation, we are prompted to contemplate the interplay of chance and significance in the world of statistical inquiry. As we navigate the whimsical landscape of xkcd comics and law enforcement statistics, our unsuspecting foray into the territory of statistical zaniness is akin to embarking on an impromptu adventure through the uncharted wilderness of knowledge—an expedition that unfailingly leaves us with more questions than answers.

In sum, our research contributes to the multifaceted tapestry of statistical inquiry and humor-infused academic exploration, unraveling the enigma of the xkcd nexus between math and management in law enforcement with scholarly aplomb. This unexpected correlation, while as improbable as a penguin navigating a dance floor, offers a compelling reminder of the endlessly surprising connections that await discovery within the labyrinthine realm of statistical serendipity.


Model: gpt-3.5-turbo-1106
System prompt: You are a dry but witty academic researcher. You speak in the passive voice, and your writing sounds like it belongs in a medical or economics journal.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 xkcd comics published about math and The number of first-line supervisors of police and detectives in South Dakota. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

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

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
"Comic Correlations: The Xkcd Nexus Between Math and Management in the Law Enforcement Sector"

[[ABSTRACT]]
This study examines the hitherto unexplored and, some may argue, absurdly whimsical relationship between xkcd comic publications related to mathematics and the number of first-line supervisors of police and detectives in South Dakota. Leveraging innovative AI analysis of xkcd comics and data from the Bureau of Labor Statistics, our research team probed this unconventional pairing with fervent curiosity and raised eyebrows. Surprisingly, our analysis unveiled a notable correlation coefficient of 0.8594221 and p < 0.01 for the period spanning 2010 to 2022, sparking a whirlwind of speculation and chuckles in the academic community.

While this correlation may seem as improbable as a unicorn moonlighting as a tax accountant, our findings suggest there may be more to the playful doodles of xkcd than meets the eye, at least in the domain of law enforcement leadership. This unexpected correlation invites further investigation into the intricate interplay between mathematical musings and management modalities, teasing the intellect and tickling the funny bone simultaneously. In conclusion, this research offers a glimpse into the zany, unpredictable world of statistical serendipity, reminding us that sometimes, in the words of the inimitable xkcd, "Correlation doesn't imply causation, but it does waggle its eyebrows suggestively and gesture furtively while mouthing 'look over there'."

[[INTRDUCTION]]
The intersection of mathematics and management may seem as incongruous as a penguin at a salsa dance competition, yet the unyielding tendrils of correlation have drawn our attention to a most unexpected pairing: xkcd comics about math and the number of first-line supervisors of police and detectives in South Dakota. This curious union has sparked both bewilderment and fascination, prompting us to embark on a quest to unravel the enigmatic bond between number crunching and crime fighting.
While the comic stylings of xkcd may elicit more chuckles than scholarly citations in conventional academic discourse, the reach of its humor and insight cannot be gainsaid. Similarly, the task of supervising law enforcement officers in the prairies of South Dakota is no laughing matter, yet our data suggests an invisible thread binding these seemingly disparate realms. As we delve into this unlikely connection, we tread the line between skepticism and intrigue, mindful of the dangers of drawing premature conclusions while remaining open to the tantalizing prospect of unearthing a hidden gem of statistical oddity.
The aim of this study is not only to uncover a potential statistical quirk but also to invite a deeper consideration of the interplay between seemingly unrelated domains—because where there’s a chance of uncovering unexpected correlations, there’s also an opportunity for laughter, curiosity, and the occasional eyebrow raise. After all, in the words of xkcd’s perceptive creator, "Science. It works, bes."

[[RESULTS]]
The analysis of the data spanning the years 2010 to 2022 revealed a noteworthy correlation between the number of xkcd comics related to mathematics and the number of first-line supervisors of police and detectives in South Dakota. The correlation coefficient was calculated to be 0.8594221, with an r-squared value of 0.7386063 and p < 0.01. This robust correlation coefficient suggests a strong positive relationship between the two variables, akin to finding a rare antique in a thrift store – surprising, improbable, and likely to raise a few eyebrows.
The scatterplot in Figure 1 visually represents this significant correlation, displaying a clear and compelling pattern of mathematical musings and managerial prowess intertwining in an inexplicably harmonious manner. The visual representation of the data is as striking as a well-timed punchline in a room full of mathematicians – almost too good to be true, yet undeniably captivating.
These findings prompt us to ponder the whimsical and inexplicable nature of statistical associations, reminding us that beneath the surface of mundane datasets lies the potential for unexpected connections to emerge. While the relationship between xkcd comics and law enforcement leadership may seem as outlandish as a penguin navigating a dance floor, our research underscores the unfathomable intricacies of correlation that transcend the boundaries of conventional wisdom.
In conclusion, our analysis of the correlation between xkcd comics on mathematics and the number of first-line supervisors of police and detectives in South Dakota offers a thought-provoking glimpse into the quirkier side of statistical inquiry, combining the rigors of academic investigation with the playfulness of chance discovery. It challenges us to consider the extraordinary possibilities that lie within the realm of correlation, affirming that in the tapestry of data, humor, curiosity, and statistical significance are woven together in unexpected harmony.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In the wacky world of statistical exploration, our study has opened a door to the unexpected and the inexplicable. The correlation between xkcd comics related to mathematics and the number of first-line supervisors of police and detectives in South Dakota, with a coefficient of 0.8594221 and p < 0.01, is as surprising as finding a four-leaf clover in a field of quadratic equations. This correlation may raise more eyebrows than a magician with alopecia, but it beckons us to consider the intricate tapestry of numerical wit and law enforcement leadership.

As we ponder the enigmatic nexus between math-laden comics and the supervision of crime fighters in the Mount Rushmore State, we are reminded of the whimsical nature of statistical inquiry. Much like a well-crafted joke, this correlation nudges the intellect and prompts a wry smile of scholarly bemusement. The very possibility of such an unlikely pairing challenges us to tread between the realms of conventional wisdom and statistical serendipity, for in the words of the musings of improbable conundrums and delightful insights, this correlation tantalizes the mind and tickles the fancy.

In light of these findings, we assert that no further research is needed in this domain, as we believe this study has sufficiently tickled our intellect while leaving us contemplating the quirks of statistical relationships and the unexpected amusement that lies within. This correlation has, in its own way, etched a comic relief in the annals of scholarly inquiry.


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 Comic Correlations: The Xkcd Nexus Between Math and Management in the Law Enforcement Sector. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Humor in Interdisciplinary 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 Comic Correlations: The Xkcd Nexus Between Math and Management in the Law Enforcement Sector. Respond only with the name of a fictional organization.

ChatGPT:

The Society for Integration of Humor into Academic Research (SIHAR)


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 Comic Correlations: The Xkcd Nexus Between Math and Management in the Law Enforcement Sector with an abstract of This study examines the hitherto unexplored and, some may argue, absurdly whimsical relationship between xkcd comic publications related to mathematics and the number of first-line supervisors of police and detectives in South Dakota. Leveraging innovative AI analysis of xkcd comics and data from the Bureau of Labor Statistics, our research team probed this unconventional pairing with fervent curiosity and raised eyebrows. Surprisingly, our analysis unveiled a notable correlation coefficient of 0.8594221 and p < 0.01 for the period spanning 2010 to 2022, sparking a whirlwind of speculation and chuckles in the academic community.
While this correlation may seem as improbable as a unicorn moonlighting as a tax accountant, our findings suggest there may be more to the playful doodles of xkcd than meets the eye, at least in the domain of law enforcement leadership. This unexpected correlation invites further investigation into the intricate interplay between mathematical musings and management modalities, teasing the intellect and tickling the funny bone simultaneously. In conclusion, this research offers a glimpse into the zany, unpredictable world of statistical serendipity, reminding us that sometimes, in the words of the inimitable xkcd, "Correlation doesn't imply causation, but it does waggle its eyebrows suggestively and gesture furtively while mouthing 'look over there'.

ChatGPT:

xkcd comic, mathematics, management, law enforcement, police supervisors, detectives, South Dakota, Bureau of Labor Statistics, correlation coefficient, statistical analysis, AI analysis, data analysis, comic publications, correlation, causation, academic research

*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

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

The number of first-line supervisors of police and detectives in South Dakota
Detailed data title: BLS estimate of first-line supervisors of police and detectives in South Dakota
Source: Bureau of Larbor Statistics
See what else correlates with The number of first-line supervisors of police and detectives in South Dakota

Correlation r = 0.8594221 (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.7386063 (Coefficient of determination)
This means 73.9% of the change in the one variable (i.e., The number of first-line supervisors of police and detectives in South Dakota) is predictable based on the change in the other (i.e., xkcd comics published about math) over the 13 years from 2010 through 2022.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 0.00017. 0.0001663782558702264700000000
The p-value is a measure of how probable it is that we would randomly find a result this extreme. More specifically the p-value is a measure of how probable it is that we would randomly find a result this extreme if we had only tested one pair of variables one time.

But I am a p-villain. I absolutely did not test only one pair of variables one time. I correlated hundreds of millions of pairs of variables. I threw boatloads of data into an industrial-sized blender to find this correlation.

Who is going to stop me? p-value reporting doesn't require me to report how many calculations I had to go through in order to find a low p-value!
On average, you will find a correaltion as strong as 0.86 in 0.017% of random cases. Said differently, if you correlated 6,010 random variables Which I absolutely did.
with the same 12 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 12 because we have two variables measured over a period of 13 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.59, 0.96 ] 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.
2010201120122013201420152016201720182019202020212022
xkcd comics published about math (xkcd comics)161615161055111610181031
The number of first-line supervisors of police and detectives in South Dakota (Laborers)160160150150150140140140140140150150200




Why this works

  1. Data dredging: I have 25,153 variables in my database. I compare all these variables against each other to find ones that randomly match up. That's 632,673,409 correlation calculations! This is called “data dredging.” Instead of starting with a hypothesis and testing it, I instead abused the data to see what correlations shake out. It’s a dangerous way to go about analysis, because any sufficiently large dataset will yield strong correlations completely at random.
  2. Lack of causal connection: There is probably Because these pages are automatically generated, it's possible that the two variables you are viewing are in fact causually related. I take steps to prevent the obvious ones from showing on the site (I don't let data about the weather in one city correlate with the weather in a neighboring city, for example), but sometimes they still pop up. If they are related, cool! You found a loophole.
    no direct connection between these variables, despite what the AI says above. This is exacerbated by the fact that I used "Years" as the base variable. Lots of things happen in a year that are not related to each other! Most studies would use something like "one person" in stead of "one year" to be the "thing" studied.
  3. Observations not independent: For many variables, sequential years are not independent of each other. If a population of people is continuously doing something every day, there is no reason to think they would suddenly change how they are doing that thing on January 1. A simple Personally I don't find any p-value calculation to be 'simple,' but you know what I mean.
    p-value calculation does not take this into account, so mathematically it appears less probable than it really is.
  4. Y-axis doesn't start at zero: I truncated the Y-axes of the graph above. I also used a line graph, which makes the visual connection stand out more than it deserves. Nothing against line graphs. They are great at telling a story when you have linear data! But visually it is deceptive because the only data is at the points on the graph, not the lines on the graph. In between each point, the data could have been doing anything. Like going for a random walk by itself!
    Mathematically what I showed is true, but it is intentionally misleading. Below is the same chart but with both Y-axes starting at zero.




Try it yourself

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

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

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

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

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

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

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

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

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


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

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

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

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

    return correlation, r_squared, p_value

# These are the arrays for the variables shown on this page, but you can modify them to be any two sets of numbers
array_1 = np.array([16,16,15,16,10,5,5,11,16,10,18,10,31,])
array_2 = np.array([160,160,150,150,150,140,140,140,140,140,150,150,200,])
array_1_name = "xkcd comics published about math"
array_2_name = "The number of first-line supervisors of police and detectives in South Dakota"

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

Thanks for shining a light on this correlation!


Correlation ID: 1566 · Black Variable ID: 20008 · Red Variable ID: 18611
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0