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

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is Master's degrees awarded in Psychology and the second variable is The number of private detectives in North Carolina.  The chart goes from 2012 to 2021, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

More people were finally able to figure out what everyone else was thinking, leading to a surge in demand for professional snoopers who could uncover even the sneakiest secrets. Now there are more spies in the Carolinas than at a double-agent convention!

Model: dalle-3
Prompt: Generate an image that resembles a black-and-white newspaper illustration. Depict a scene set in a cozy office in North Carolina. On the desk, there is a neat stack of shiny Master's degree certificates in Psychology. In the background, a group of private detectives are gathered around a whiteboard, engaged in a discussion about investigation strategies for their current case. Capture the atmosphere of a professional and focused environment without incorporating any words or speech bubbles. 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: Master's degrees awarded in Psychology and The number of private detectives in North Carolina. 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: Minimalism Cyber folk Macabre Pop art A black-and-white newspaper illustration
ChatGPT: A black-and-white newspaper illustration

Model: gpt-3.5-turbo-1106
System prompt: You describe simple visual scenes that depict the two variables stated. You combine both variables into one scene.
User prompt: Please describe a visual scene that prominently depicts both Master's degrees awarded in Psychology and The number of private detectives in North Carolina together. Keep the description simple.
ChatGPT: In a cozy office in North Carolina, a stack of shiny Master's degree certificates in Psychology is neatly arranged on a desk. In the background, a group of private detectives are gathered around a whiteboard, discussing investigation strategies for their current case.

Model: gpt-3.5-turbo-1106
System prompt: You write and improve image generation prompts for DALLE-3. You maintain the same subjects, but enhance the visuals.
User prompt: Please respond with an image generation prompt that would be likely to create an interesting visual using DALLE-3, using the following style: [ A black-and-white newspaper illustration ] and depicting this scene: In a cozy office in North Carolina, a stack of shiny Master's degree certificates in Psychology is neatly arranged on a desk. In the background, a group of private detectives are gathered around a whiteboard, discussing investigation strategies for their current case. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Generate an image that resembles a black-and-white newspaper illustration. Depict a scene set in a cozy office in North Carolina. On the desk, there is a neat stack of shiny Master's degree certificates in Psychology. In the background, a group of private detectives are gathered around a whiteboard, engaged in a discussion about investigation strategies for their current case. Capture the atmosphere of a professional and focused environment without incorporating any words or speech bubbles.

*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 Master's degrees awarded in Psychology caused The number of private detectives in North Carolina to increase. Add a funny one-liner at the end.

AI academic paper

(Because p < 0.01)
The Detective's Dilemma: Uncovering the Link Between Master's Degrees in Psychology and Private Investigators in North Carolina

Journal of Investigative Psychology

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 Master's degrees awarded in Psychology and The number of private detectives in North Carolina. 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 National Center for Education Statistics and Bureau of Larbor Statistics to assess this nagging question. You found a correlation coefficient of 0.9878544 and p < 0.01 for 2012 to 2021.

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

[[TITLE]]
Lorem ipsum dolor sit

[[ABSTRACT]]
Lorem ipsum dolor sit



ChatGPT:
[[TITLE]]
The Detective's Dilemma: Uncovering the Link Between Master's Degrees in Psychology and Private Investigators in North Carolina

[[ABSTRACT]]
This study delves into the perplexing relationship between the number of Master's degrees awarded in Psychology and the proliferation of private detectives in the enigmatic state of North Carolina. Utilizing data from the National Center for Education Statistics and the Bureau of Labor Statistics, our research team sought to unravel the enigma shrouding this curious correlation.

Our findings revealed a striking correlation coefficient of 0.9878544 and a p-value less than 0.01 for the years spanning from 2012 to 2021. While we meticulously adhered to the rigorous standards of statistical analysis, it is important to remember that correlation does not imply causation, and there could be lurking variables at play.

The implications of this investigation extend far beyond the confines of the hallowed halls of academia. By shedding light on this curious connection, we hope to inspire further scrutiny and perhaps even spark a wave of wit and whimsy within the typically staid domain of academic research.


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 Master's degrees awarded in Psychology and The number of private detectives in North Carolina. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Here is the title and abstract of the paper:
[[TITLE]]
The Detective's Dilemma: Uncovering the Link Between Master's Degrees in Psychology and Private Investigators in North Carolina

[[ABSTRACT]]
This study delves into the perplexing relationship between the number of Master's degrees awarded in Psychology and the proliferation of private detectives in the enigmatic state of North Carolina. Utilizing data from the National Center for Education Statistics and the Bureau of Labor Statistics, our research team sought to unravel the enigma shrouding this curious correlation.

Our findings revealed a striking correlation coefficient of 0.9878544 and a p-value less than 0.01 for the years spanning from 2012 to 2021. While we meticulously adhered to the rigorous standards of statistical analysis, it is important to remember that correlation does not imply causation, and there could be lurking variables at play.

The implications of this investigation extend far beyond the confines of the hallowed halls of academia. By shedding light on this curious connection, we hope to inspire further scrutiny and perhaps even spark a wave of wit and whimsy within the typically staid domain of academic research.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
INTRODUCTION

The pursuit of truth has long been a noble endeavor, whether it involves unraveling the mysteries of the cosmos or decoding the intriguing interplay between seemingly disparate variables. In this vein, our present investigation seeks to untangle the perplexing connection between the number of Master's degrees awarded in Psychology and the burgeoning cohort of private detectives in the enigmatic state of North Carolina.

The field of psychology, with its intricate studies of the human mind and behavior, has captivated scholars and laypersons alike for centuries. Likewise, the alluring allure of private investigation, with its echoes of film noir and hard-boiled literature, has beckoned to those with a predilection for enigma and intrigue.

This study, therefore, ventures to weave together these seemingly unrelated threads of academia and investigation. By harnessing the power of statistical analysis and data gathered from the National Center for Education Statistics and the Bureau of Labor Statistics, we endeavor to shed light on the fascinating correlation that has manifested between these two domains.

As we embark on this empirical journey, we are reminded of the sage admonition that correlation does not imply causation. It is with this caveat in mind that we present our findings, urging both caution and curiosity in the interpretation of our results.

Through this exploration, we aspire not only to add to the ever-growing corpus of academic knowledge but also to inject a dash of levity and curiosity into the oftentimes austere realm of scholarly inquiry. Perhaps, in illuminating this unexpected connection, we may provoke a wry smile and a raised eyebrow from our esteemed colleagues in the field of research.

In the hallowed tradition of scientific inquiry, we invite the reader to accompany us on this expedition, as we traverse the labyrinthine pathways of data analysis and seek to unearth the underlying tapestry that intertwines Master's degrees in Psychology and the enigmatic world of private investigation in the heart of North Carolina.


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 Master's degrees awarded in Psychology and The number of private detectives in North Carolina. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

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

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

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

Here is the title and abstract of the paper:
[[TITLE]]
The Detective's Dilemma: Uncovering the Link Between Master's Degrees in Psychology and Private Investigators in North Carolina

[[ABSTRACT]]
This study delves into the perplexing relationship between the number of Master's degrees awarded in Psychology and the proliferation of private detectives in the enigmatic state of North Carolina. Utilizing data from the National Center for Education Statistics and the Bureau of Labor Statistics, our research team sought to unravel the enigma shrouding this curious correlation.

Our findings revealed a striking correlation coefficient of 0.9878544 and a p-value less than 0.01 for the years spanning from 2012 to 2021. While we meticulously adhered to the rigorous standards of statistical analysis, it is important to remember that correlation does not imply causation, and there could be lurking variables at play.

The implications of this investigation extend far beyond the confines of the hallowed halls of academia. By shedding light on this curious connection, we hope to inspire further scrutiny and perhaps even spark a wave of wit and whimsy within the typically staid domain of academic research.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
INTRODUCTION
The pursuit of truth has long been a noble endeavor, whether it involves unraveling the mysteries of the cosmos or decoding the intriguing interplay between seemingly disparate variables. In this vein, our present investigation seeks to untangle the perplexing connection between the number of Master's degrees awarded in Psychology and the burgeoning cohort of private detectives in the enigmatic state of North Carolina.
The field of psychology, with its intricate studies of the human mind and behavior, has captivated scholars and laypersons alike for centuries. Likewise, the alluring allure of private investigation, with its echoes of film noir and hard-boiled literature, has beckoned to those with a predilection for enigma and intrigue.
This study, therefore, ventures to weave together these seemingly unrelated threads of academia and investigation. By harnessing the power of statistical analysis and data gathered from the National Center for Education Statistics and the Bureau of Labor Statistics, we endeavor to shed light on the fascinating correlation that has manifested between these two domains.
As we embark on this empirical journey, we are reminded of the sage admonition that correlation does not imply causation. It is with this caveat in mind that we present our findings, urging both caution and curiosity in the interpretation of our results.
Through this exploration, we aspire not only to add to the ever-growing corpus of academic knowledge but also to inject a dash of levity and curiosity into the oftentimes austere realm of scholarly inquiry. Perhaps, in illuminating this unexpected connection, we may provoke a wry smile and a raised eyebrow from our esteemed colleagues in the field of research.
In the hallowed tradition of scientific inquiry, we invite the reader to accompany us on this expedition, as we traverse the labyrinthine pathways of data analysis and seek to unearth the underlying tapestry that intertwines Master's degrees in Psychology and the enigmatic world of private investigation in the heart of North Carolina.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

In their seminal work, Smith and Doe (2010) explored the confluence of educational attainment in Psychology and occupational choices in the southeastern United States. Their quantitative analysis revealed intriguing patterns in the distribution of Master's degrees awarded in Psychology and the prevalence of private investigators in the region. This initial foray into the intersection of academic achievement and investigative pursuits laid the groundwork for further inquiry into this unanticipated association.

Jones and Smith (2015) subsequently expanded upon this line of investigation, delving into the peculiar relationship between higher education in psychological disciplines and the instantiation of detective vocations in specific states. Their comprehensive examination of regional variations uncovered notable disparities in the correlation between Master's degrees in Psychology and the presence of private detectives, paving the way for a more nuanced understanding of this curious linkage.

While these foundational studies provided valuable insights, our research endeavors to augment this body of knowledge by focusing specifically on the enigmatic realm of North Carolina. Venturing beyond the realm of quantitative analyses, our approach incorporates an eclectic array of scholarly and popular sources to encompass the multifaceted dimensions of our inquiry.

In "Psychological Puzzles in Private Investigations" by Brown (2018), the author delves into the psychological underpinnings of detective work, elucidating the intricate interplay between cognitive processes and investigative techniques. Although not directly related to the quantitative aspect of our investigation, this work offers a thought-provoking perspective on the intersection of psychology and private investigation, serving as a nuanced backdrop for our empirical analysis.

On a more tangential note, the fictional works of Arthur Conan Doyle, particularly the adventures of Sherlock Holmes in "The Hound of the Baskervilles" and "A Study in Scarlet," present captivating portrayals of detective prowess and deductive reasoning. While these literary endeavors exist in the realm of fiction, they underscore the enduring fascination with the enigmatic world of investigative endeavors, serving as a cultural touchstone for our contemplation of the connection between academic pursuits in psychology and the professional domain of private investigation.

In a whimsical departure from traditional academic citations, the animated series "Scooby-Doo, Where Are You!" and the playful antics of the Mystery Inc. gang offer a lighthearted yet relevant portrayal of amateur sleuthing. While perhaps not meeting the rigorous standards of empirical rigor, these animated exploits showcase the enduring allure of enigma and puzzles, mirroring the perpetual human curiosity that underpins our investigation into the perplexing correlation between Master's degrees in Psychology and the proliferation of private detectives in North Carolina.


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 Master's degrees awarded in Psychology and The number of private detectives in North Carolina. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Your research team collected data from all across the internet, but mostly just used information from National Center for Education Statistics and Bureau of Larbor Statistics . You used data from 2012 to 2021

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

Here is the title, abstract, and introduction of the paper:
[[TITLE]]
The Detective's Dilemma: Uncovering the Link Between Master's Degrees in Psychology and Private Investigators in North Carolina

[[ABSTRACT]]
This study delves into the perplexing relationship between the number of Master's degrees awarded in Psychology and the proliferation of private detectives in the enigmatic state of North Carolina. Utilizing data from the National Center for Education Statistics and the Bureau of Labor Statistics, our research team sought to unravel the enigma shrouding this curious correlation.

Our findings revealed a striking correlation coefficient of 0.9878544 and a p-value less than 0.01 for the years spanning from 2012 to 2021. While we meticulously adhered to the rigorous standards of statistical analysis, it is important to remember that correlation does not imply causation, and there could be lurking variables at play.

The implications of this investigation extend far beyond the confines of the hallowed halls of academia. By shedding light on this curious connection, we hope to inspire further scrutiny and perhaps even spark a wave of wit and whimsy within the typically staid domain of academic research.

[[INTRODUCTION]]
INTRODUCTION
The pursuit of truth has long been a noble endeavor, whether it involves unraveling the mysteries of the cosmos or decoding the intriguing interplay between seemingly disparate variables. In this vein, our present investigation seeks to untangle the perplexing connection between the number of Master's degrees awarded in Psychology and the burgeoning cohort of private detectives in the enigmatic state of North Carolina.
The field of psychology, with its intricate studies of the human mind and behavior, has captivated scholars and laypersons alike for centuries. Likewise, the alluring allure of private investigation, with its echoes of film noir and hard-boiled literature, has beckoned to those with a predilection for enigma and intrigue.
This study, therefore, ventures to weave together these seemingly unrelated threads of academia and investigation. By harnessing the power of statistical analysis and data gathered from the National Center for Education Statistics and the Bureau of Labor Statistics, we endeavor to shed light on the fascinating correlation that has manifested between these two domains.
As we embark on this empirical journey, we are reminded of the sage admonition that correlation does not imply causation. It is with this caveat in mind that we present our findings, urging both caution and curiosity in the interpretation of our results.
Through this exploration, we aspire not only to add to the ever-growing corpus of academic knowledge but also to inject a dash of levity and curiosity into the oftentimes austere realm of scholarly inquiry. Perhaps, in illuminating this unexpected connection, we may provoke a wry smile and a raised eyebrow from our esteemed colleagues in the field of research.
In the hallowed tradition of scientific inquiry, we invite the reader to accompany us on this expedition, as we traverse the labyrinthine pathways of data analysis and seek to unearth the underlying tapestry that intertwines Master's degrees in Psychology and the enigmatic world of private investigation in the heart of North Carolina.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

In pursuit of unraveling the perplexing correlation between the number of Master's degrees awarded in Psychology and the proliferation of private investigators in North Carolina, the research team embarked upon a methodical journey fraught with statistical perils and enigmatic variables.

Data Sources:
The study harnessed the inexhaustible resources of the internet and diligently scoured the National Center for Education Statistics and the Bureau of Labor Statistics for pertinent information pertaining to Master's degrees awarded in Psychology and the employment figures of private investigators. The data from these sources, spanning the years 2012 to 2021, served as the bedrock upon which this investigation was built.

Data Collection:
The process of data collection entailed mining through a myriad of databases and reports, akin to prospecting for statistical gold in the digital wilderness. The extraction of relevant figures, akin to the unearthing of buried treasure, was carried out with meticulous attention to detail and an unwavering commitment to accuracy.

Statistical Analysis:
Having amassed the requisite data, the research team undertook a rigorous voyage into the abstruse realm of statistical analysis. The correlation coefficient, that elusive harbinger of association between variables, was calculated with meticulous care. The team navigated the multifaceted terrain of p-values, wielding them as tools to ascertain the statistical significance of the observed correlation.

Caveats and Limitations:
It is crucial to approach the findings of this investigation with a discerning eye, mindful of the admonition that correlation does not entail causation. The inherent limitations of secondary data sources and potential confounding variables demand prudent interpretation of the results.

In a departure from the dour gravitas often associated with scholarly inquiry, this methodology seeks to infuse the arid landscape of statistical analysis with a touch of whimsy and buoyancy. The journey into the labyrinth of methodology, much like the pursuit of truth itself, is enlivened by the occasional spark of wit and a nod to the delight of discovery in unlikely places.


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 Master's degrees awarded in Psychology and The number of private detectives in North Carolina. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

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

For the time period 2012 to 2021, you found a correlation 0.9878544, r-squared of 0.9758563, and p < 0.01.

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

Here is the title and abstract of the paper:
[[TITLE]]
The Detective's Dilemma: Uncovering the Link Between Master's Degrees in Psychology and Private Investigators in North Carolina

[[ABSTRACT]]
This study delves into the perplexing relationship between the number of Master's degrees awarded in Psychology and the proliferation of private detectives in the enigmatic state of North Carolina. Utilizing data from the National Center for Education Statistics and the Bureau of Labor Statistics, our research team sought to unravel the enigma shrouding this curious correlation.

Our findings revealed a striking correlation coefficient of 0.9878544 and a p-value less than 0.01 for the years spanning from 2012 to 2021. While we meticulously adhered to the rigorous standards of statistical analysis, it is important to remember that correlation does not imply causation, and there could be lurking variables at play.

The implications of this investigation extend far beyond the confines of the hallowed halls of academia. By shedding light on this curious connection, we hope to inspire further scrutiny and perhaps even spark a wave of wit and whimsy within the typically staid domain of academic research.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
INTRODUCTION
The pursuit of truth has long been a noble endeavor, whether it involves unraveling the mysteries of the cosmos or decoding the intriguing interplay between seemingly disparate variables. In this vein, our present investigation seeks to untangle the perplexing connection between the number of Master's degrees awarded in Psychology and the burgeoning cohort of private detectives in the enigmatic state of North Carolina.
The field of psychology, with its intricate studies of the human mind and behavior, has captivated scholars and laypersons alike for centuries. Likewise, the alluring allure of private investigation, with its echoes of film noir and hard-boiled literature, has beckoned to those with a predilection for enigma and intrigue.
This study, therefore, ventures to weave together these seemingly unrelated threads of academia and investigation. By harnessing the power of statistical analysis and data gathered from the National Center for Education Statistics and the Bureau of Labor Statistics, we endeavor to shed light on the fascinating correlation that has manifested between these two domains.
As we embark on this empirical journey, we are reminded of the sage admonition that correlation does not imply causation. It is with this caveat in mind that we present our findings, urging both caution and curiosity in the interpretation of our results.
Through this exploration, we aspire not only to add to the ever-growing corpus of academic knowledge but also to inject a dash of levity and curiosity into the oftentimes austere realm of scholarly inquiry. Perhaps, in illuminating this unexpected connection, we may provoke a wry smile and a raised eyebrow from our esteemed colleagues in the field of research.
In the hallowed tradition of scientific inquiry, we invite the reader to accompany us on this expedition, as we traverse the labyrinthine pathways of data analysis and seek to unearth the underlying tapestry that intertwines Master's degrees in Psychology and the enigmatic world of private investigation in the heart of North Carolina.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The results of our investigation yielded a notably high correlation coefficient of 0.9878544, indicating a strong positive linear relationship between the number of Master's degrees awarded in Psychology and the count of private detectives in the state of North Carolina. This finding implies that as the number of Master's degrees in Psychology increased, there was a proportional rise in the cadre of private investigators lurking amidst the shadowy streets of North Carolina.

The coefficient of determination (r-squared) value of 0.9758563 suggests that an impressive 97.59% of the variation in the number of private detectives can be accounted for by the number of Master's degrees in Psychology. One might quip that this relationship is so conspicuous, it would make even the most inscrutable private eye arch an eyebrow in admiration.

Furthermore, the p-value, which was found to be less than 0.01, indicates that the observed correlation is statistically significant, providing compelling evidence to reject the null hypothesis and forcing us to confront this unconventional connection head-on.

Figure 1 depicts a scatterplot illustrating the remarkably strong positive correlation between the two variables. The data points cling to the ascending line with a fervor that would make even the most loyal henchman envious. The tightly clustered points form a near perfect linear pattern, leaving no room for doubt that there is indeed a discernible link between these seemingly unrelated domains.

It is important to note, however, that while our findings present a compelling case for the association between Master's degrees in Psychology and the presence of private detectives in North Carolina, we must exercise caution in inferring causation from this correlation. As we delve deeper into the realm of statistical analysis, let us not forget that correlation, like a red herring, can often lead the unwary astray.

In conclusion, our scrutiny of the intriguing relationship between Master's degrees in Psychology and the proliferation of private detectives in North Carolina has uncovered a striking correlation that challenges conventional wisdom. Our hope is that this discovery will enliven scholarly discourse and inspire a curiosity that unravels the mysteries lurking in the most unexpected of places.


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 Master's degrees awarded in Psychology and The number of private detectives in North Carolina. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Limit your response to 500 tokens.

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

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

[[TITLE]]
The Detective's Dilemma: Uncovering the Link Between Master's Degrees in Psychology and Private Investigators in North Carolina

[[ABSTRACT]]
This study delves into the perplexing relationship between the number of Master's degrees awarded in Psychology and the proliferation of private detectives in the enigmatic state of North Carolina. Utilizing data from the National Center for Education Statistics and the Bureau of Labor Statistics, our research team sought to unravel the enigma shrouding this curious correlation.

Our findings revealed a striking correlation coefficient of 0.9878544 and a p-value less than 0.01 for the years spanning from 2012 to 2021. While we meticulously adhered to the rigorous standards of statistical analysis, it is important to remember that correlation does not imply causation, and there could be lurking variables at play.

The implications of this investigation extend far beyond the confines of the hallowed halls of academia. By shedding light on this curious connection, we hope to inspire further scrutiny and perhaps even spark a wave of wit and whimsy within the typically staid domain of academic research.

[[LITERATURE REVIEW]]
In their seminal work, Smith and Doe (2010) explored the confluence of educational attainment in Psychology and occupational choices in the southeastern United States. Their quantitative analysis revealed intriguing patterns in the distribution of Master's degrees awarded in Psychology and the prevalence of private investigators in the region. This initial foray into the intersection of academic achievement and investigative pursuits laid the groundwork for further inquiry into this unanticipated association.
Jones and Smith (2015) subsequently expanded upon this line of investigation, delving into the peculiar relationship between higher education in psychological disciplines and the instantiation of detective vocations in specific states. Their comprehensive examination of regional variations uncovered notable disparities in the correlation between Master's degrees in Psychology and the presence of private detectives, paving the way for a more nuanced understanding of this curious linkage.
While these foundational studies provided valuable insights, our research endeavors to augment this body of knowledge by focusing specifically on the enigmatic realm of North Carolina. Venturing beyond the realm of quantitative analyses, our approach incorporates an eclectic array of scholarly and popular sources to encompass the multifaceted dimensions of our inquiry.
In "Psychological Puzzles in Private Investigations" by Brown (2018), the author delves into the psychological underpinnings of detective work, elucidating the intricate interplay between cognitive processes and investigative techniques. Although not directly related to the quantitative aspect of our investigation, this work offers a thought-provoking perspective on the intersection of psychology and private investigation, serving as a nuanced backdrop for our empirical analysis.
On a more tangential note, the fictional works of Arthur Conan Doyle, particularly the adventures of Sherlock Holmes in "The Hound of the Baskervilles" and "A Study in Scarlet," present captivating portrayals of detective prowess and deductive reasoning. While these literary endeavors exist in the realm of fiction, they underscore the enduring fascination with the enigmatic world of investigative endeavors, serving as a cultural touchstone for our contemplation of the connection between academic pursuits in psychology and the professional domain of private investigation.
In a whimsical departure from traditional academic citations, the animated series "Scooby-Doo, Where Are You!" and the playful antics of the Mystery Inc. gang offer a lighthearted yet relevant portrayal of amateur sleuthing. While perhaps not meeting the rigorous standards of empirical rigor, these animated exploits showcase the enduring allure of enigma and puzzles, mirroring the perpetual human curiosity that underpins our investigation into the perplexing correlation between Master's degrees in Psychology and the proliferation of private detectives in North Carolina.

[[RESULTS]]
The results of our investigation yielded a notably high correlation coefficient of 0.9878544, indicating a strong positive linear relationship between the number of Master's degrees awarded in Psychology and the count of private detectives in the state of North Carolina. This finding implies that as the number of Master's degrees in Psychology increased, there was a proportional rise in the cadre of private investigators lurking amidst the shadowy streets of North Carolina.
The coefficient of determination (r-squared) value of 0.9758563 suggests that an impressive 97.59% of the variation in the number of private detectives can be accounted for by the number of Master's degrees in Psychology. One might quip that this relationship is so conspicuous, it would make even the most inscrutable private eye arch an eyebrow in admiration.
Furthermore, the p-value, which was found to be less than 0.01, indicates that the observed correlation is statistically significant, providing compelling evidence to reject the null hypothesis and forcing us to confront this unconventional connection head-on.
Figure 1 depicts a scatterplot illustrating the remarkably strong positive correlation between the two variables. The data points cling to the ascending line with a fervor that would make even the most loyal henchman envious. The tightly clustered points form a near perfect linear pattern, leaving no room for doubt that there is indeed a discernible link between these seemingly unrelated domains.
It is important to note, however, that while our findings present a compelling case for the association between Master's degrees in Psychology and the presence of private detectives in North Carolina, we must exercise caution in inferring causation from this correlation. As we delve deeper into the realm of statistical analysis, let us not forget that correlation, like a red herring, can often lead the unwary astray.
In conclusion, our scrutiny of the intriguing relationship between Master's degrees in Psychology and the proliferation of private detectives in North Carolina has uncovered a striking correlation that challenges conventional wisdom. Our hope is that this discovery will enliven scholarly discourse and inspire a curiosity that unravels the mysteries lurking in the most unexpected of places.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The results of our investigation into the peculiar correlation between the number of Master's degrees awarded in Psychology and the abundance of private detectives in the enigmatic state of North Carolina confirm and extend the findings of previous research in this area.

First, our findings align with the earlier work of Smith and Doe (2010), who initially uncovered patterns in the distribution of Master's degrees in Psychology and the prevalence of private investigators in the southeastern United States. Our study strengthens their conclusions by demonstrating a robust positive correlation between these variables, providing additional evidence for the presence of this uncanny connection.

Moreover, the discoveries of Jones and Smith (2015) regarding the disparities in the correlation between Master's degrees in Psychology and the proliferation of private detectives in specific states find further support in our investigation. By focusing specifically on the intriguing realm of North Carolina, we have extended their insights to this unique geographical context, revealing a similarly conspicuous correlation. It seems that the allure of investigative pursuits in this state is intertwined with the academic achievements in psychological disciplines in a manner that is as captivating as the most enigmatic of whodunits.

Our findings not only reinforce the existing body of knowledge but also invite further exploration into the underlying mechanisms and potential explanations for this unexpected association. Perhaps there are hidden psychological motivations driving individuals towards both academic pursuits in Psychology and the clandestine world of private investigations. While our study has discerned a compelling correlation, unraveling the causative factors behind this connection may require a deeper delve into the mysterious recesses of human cognition and behavior.

It is remarkable to contemplate how our investigation, initiated as an empirical inquiry, has intersected with whimsical portrayals of detective prowess in literature and popular culture. Just as in "The Hound of the Baskervilles" and "A Study in Scarlet," where Sherlock Holmes unravels intricate puzzles, our pursuit of understanding has led us to a nuanced appreciation of the enigmatic connection between academic endeavors and the professional domain of private investigation. Even the playful antics of the Mystery Inc. gang in "Scooby-Doo, Where Are You!" offer a charming mirror to our scholarly contemplations, reminding us of the enduring human fascination with enigma and puzzles.

In conclusion, our revelatory findings bolster the evolving tapestry of knowledge surrounding this singular correlation, elevating the scholarly discourse with a blend of empirical rigor and the playful allure of the enigmatic. As researchers, let us remain vigilant in our pursuit of understanding, ever mindful that the most unexpected phenomena may hold the key to unraveling the mysteries that enthrall us.


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 Master's degrees awarded in Psychology and The number of private detectives in North Carolina. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

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

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
The Detective's Dilemma: Uncovering the Link Between Master's Degrees in Psychology and Private Investigators in North Carolina

[[ABSTRACT]]
This study delves into the perplexing relationship between the number of Master's degrees awarded in Psychology and the proliferation of private detectives in the enigmatic state of North Carolina. Utilizing data from the National Center for Education Statistics and the Bureau of Labor Statistics, our research team sought to unravel the enigma shrouding this curious correlation.

Our findings revealed a striking correlation coefficient of 0.9878544 and a p-value less than 0.01 for the years spanning from 2012 to 2021. While we meticulously adhered to the rigorous standards of statistical analysis, it is important to remember that correlation does not imply causation, and there could be lurking variables at play.

The implications of this investigation extend far beyond the confines of the hallowed halls of academia. By shedding light on this curious connection, we hope to inspire further scrutiny and perhaps even spark a wave of wit and whimsy within the typically staid domain of academic research.

[[INTRDUCTION]]
INTRODUCTION
The pursuit of truth has long been a noble endeavor, whether it involves unraveling the mysteries of the cosmos or decoding the intriguing interplay between seemingly disparate variables. In this vein, our present investigation seeks to untangle the perplexing connection between the number of Master's degrees awarded in Psychology and the burgeoning cohort of private detectives in the enigmatic state of North Carolina.
The field of psychology, with its intricate studies of the human mind and behavior, has captivated scholars and laypersons alike for centuries. Likewise, the alluring allure of private investigation, with its echoes of film noir and hard-boiled literature, has beckoned to those with a predilection for enigma and intrigue.
This study, therefore, ventures to weave together these seemingly unrelated threads of academia and investigation. By harnessing the power of statistical analysis and data gathered from the National Center for Education Statistics and the Bureau of Labor Statistics, we endeavor to shed light on the fascinating correlation that has manifested between these two domains.
As we embark on this empirical journey, we are reminded of the sage admonition that correlation does not imply causation. It is with this caveat in mind that we present our findings, urging both caution and curiosity in the interpretation of our results.
Through this exploration, we aspire not only to add to the ever-growing corpus of academic knowledge but also to inject a dash of levity and curiosity into the oftentimes austere realm of scholarly inquiry. Perhaps, in illuminating this unexpected connection, we may provoke a wry smile and a raised eyebrow from our esteemed colleagues in the field of research.
In the hallowed tradition of scientific inquiry, we invite the reader to accompany us on this expedition, as we traverse the labyrinthine pathways of data analysis and seek to unearth the underlying tapestry that intertwines Master's degrees in Psychology and the enigmatic world of private investigation in the heart of North Carolina.

[[RESULTS]]
The results of our investigation yielded a notably high correlation coefficient of 0.9878544, indicating a strong positive linear relationship between the number of Master's degrees awarded in Psychology and the count of private detectives in the state of North Carolina. This finding implies that as the number of Master's degrees in Psychology increased, there was a proportional rise in the cadre of private investigators lurking amidst the shadowy streets of North Carolina.
The coefficient of determination (r-squared) value of 0.9758563 suggests that an impressive 97.59% of the variation in the number of private detectives can be accounted for by the number of Master's degrees in Psychology. One might quip that this relationship is so conspicuous, it would make even the most inscrutable private eye arch an eyebrow in admiration.
Furthermore, the p-value, which was found to be less than 0.01, indicates that the observed correlation is statistically significant, providing compelling evidence to reject the null hypothesis and forcing us to confront this unconventional connection head-on.
Figure 1 depicts a scatterplot illustrating the remarkably strong positive correlation between the two variables. The data points cling to the ascending line with a fervor that would make even the most loyal henchman envious. The tightly clustered points form a near perfect linear pattern, leaving no room for doubt that there is indeed a discernible link between these seemingly unrelated domains.
It is important to note, however, that while our findings present a compelling case for the association between Master's degrees in Psychology and the presence of private detectives in North Carolina, we must exercise caution in inferring causation from this correlation. As we delve deeper into the realm of statistical analysis, let us not forget that correlation, like a red herring, can often lead the unwary astray.
In conclusion, our scrutiny of the intriguing relationship between Master's degrees in Psychology and the proliferation of private detectives in North Carolina has uncovered a striking correlation that challenges conventional wisdom. Our hope is that this discovery will enliven scholarly discourse and inspire a curiosity that unravels the mysteries lurking in the most unexpected of places.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our investigation has unearthed a remarkably robust correlation between the number of Master's degrees awarded in Psychology and the cohort of private detectives in North Carolina. The compelling correlation coefficient and statistically significant p-value indicate a connection that is as clear as a bright spotlight in a dimly lit alley.

While our findings beg the question of what mysterious forces might be driving this unexpected relationship, we must resist the temptation to leap to conclusions. As we know, correlation does not imply causation, and there may be lurking variables waiting to emerge from the shadows of statistical analysis.

As we wrap up this curious expedition, we are reminded of the sage advice to approach with both caution and curiosity. Our hope is that this study will not only pique the interest of fellow researchers but also inject a sprinkle of intrigue and whimsy into the traditionally serious realm of academic inquiry.

It is evident that our findings have cracked open a case that is as confounding as a locked room mystery. However, for now, it appears that no further investigation is warranted in this enigmatic territory. As the old adage goes, sometimes it's best to let sleeping private eyes lie.


Model: gpt-3.5-turbo-1106
System prompt: You provide fictional names of academic journals. You say nothing else, and you do not chat with the user.
User prompt: Please provide the name of a funny but plausible sounding research, scientific, or academic journal that would publish a paper entited The Detective's Dilemma: Uncovering the Link Between Master's Degrees in Psychology and Private Investigators in North Carolina. Respond only with the name of a fictional academic journal.

ChatGPT:

Journal of Investigative Psychology


Model: gpt-3.5-turbo-1106
System prompt: You provide fictional names of nonprofit research organizations and associations. You say nothing else, and you do not chat with the user.
User prompt: Please provide the name of a funny but plausible sounding nonprofit, academic, or scientific association or organization that would sponsor research that resulted in a paper entited The Detective's Dilemma: Uncovering the Link Between Master's Degrees in Psychology and Private Investigators in North Carolina. Respond only with the name of a fictional organization.

ChatGPT:

The Society for Cognitive Criminology and Investigative Psychology


Model: gpt-3.5-turbo-1106
System prompt: You provide potential search keywords separated by commas. You say nothing else, and you do not chat with the user.
User prompt: Please provide potential search keywords for a paper titled The Detective's Dilemma: Uncovering the Link Between Master's Degrees in Psychology and Private Investigators in North Carolina with an abstract of This study delves into the perplexing relationship between the number of Master's degrees awarded in Psychology and the proliferation of private detectives in the enigmatic state of North Carolina. Utilizing data from the National Center for Education Statistics and the Bureau of Labor Statistics, our research team sought to unravel the enigma shrouding this curious correlation.
Our findings revealed a striking correlation coefficient of 0.9878544 and a p-value less than 0.01 for the years spanning from 2012 to 2021. While we meticulously adhered to the rigorous standards of statistical analysis, it is important to remember that correlation does not imply causation, and there could be lurking variables at play.
The implications of this investigation extend far beyond the confines of the hallowed halls of academia. By shedding light on this curious connection, we hope to inspire further scrutiny and perhaps even spark a wave of wit and whimsy within the typically staid domain of academic research.

ChatGPT:

North Carolina private investigators, master's degrees in psychology, correlation between master's degrees and private investigators, National Center for Education Statistics, Bureau of Labor Statistics, correlation coefficient, statistical analysis, lurking variables, causation vs correlation, implications of research, academic research scrutiny, North Carolina private detectives, psychology degrees and private investigation industry

*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

Master's degrees awarded in Psychology
Detailed data title: Master's degrees conferred by postsecondary institutions in Psychology
Source: National Center for Education Statistics
See what else correlates with Master's degrees awarded in Psychology

The number of private detectives in North Carolina
Detailed data title: BLS estimate of private detectives and investigators in North Carolina
Source: Bureau of Larbor Statistics
See what else correlates with The number of private detectives in North Carolina

Correlation r = 0.9878544 (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.9758563 (Coefficient of determination)
This means 97.6% of the change in the one variable (i.e., The number of private detectives in North Carolina) is predictable based on the change in the other (i.e., Master's degrees awarded in Psychology) over the 10 years from 2012 through 2021.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 9.4E-8. 0.0000000938234592786380200000
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.99 in 9.4E-6% of random cases. Said differently, if you correlated 10,658,315 random variables You don't actually need 10 million variables to find a correlation like this one. I don't have that many variables in my database. You can also correlate variables that are not independent. I do this a lot.

p-value calculations are useful for understanding the probability of a result happening by chance. They are most useful when used to highlight the risk of a fluke outcome. For example, if you calculate a p-value of 0.30, the risk that the result is a fluke is high. It is good to know that! But there are lots of ways to get a p-value of less than 0.01, as evidenced by this project.

In this particular case, the values are so extreme as to be meaningless. That's why no one reports p-values with specificity after they drop below 0.01.

Just to be clear: I'm being completely transparent about the calculations. There is no math trickery. This is just how statistics shakes out when you calculate hundreds of millions of random correlations.
with the same 9 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 9 because we have two variables measured over a period of 10 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.95, 1 ] 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.
2012201320142015201620172018201920202021
Master's degrees awarded in Psychology (Degrees awarded)27052277872792626772276452753927918291362975031776
The number of private detectives in North Carolina (Laborers)5205606204605405205706808001080




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([27052,27787,27926,26772,27645,27539,27918,29136,29750,31776,])
array_2 = np.array([520,560,620,460,540,520,570,680,800,1080,])
array_1_name = "Master's degrees awarded in Psychology"
array_2_name = "The number of private detectives in North Carolina"

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

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



Reuseable content

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

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

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

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

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

Download images for these variables:


View another random correlation

How fun was this correlation?

Your correlation inspection deserves a standing ovation!


Correlation ID: 1795 · Black Variable ID: 1337 · Red Variable ID: 12408
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0