about · email me · subscribe
Spurious correlation #3,726 · View random

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is Bachelor's degrees awarded in Military technologies and the second variable is Nasdaq's stock price (NDAQ).  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

As the number of military technology experts with Bachelor's degrees rises, so does their demand in the job market. This leads to an influx of highly specialized individuals entering the workforce. With their knack for strategic thinking and precision, these graduates inadvertently bring a new level of efficiency and innovation to various industries. This surge in productivity and forward-thinking approaches boosts the overall performance of companies listed on Nasdaq, sending their stock prices soaring. It's a case of the 'military precision' mindset infiltrating the stock market and propelling it to new heights!

Model: dalle-3
Prompt: "Generate an image that captures a sci-fi fantasy world, featuring a military academy graduation ceremony. In the foreground, show students in ceremonial gowns receiving Bachelor's degrees in Military Technologies and Applied Sciences. In the background, a large digital stock ticker should display Nasdaq's stock price (NDAQ) increasing steadily, reflecting the surge in demand due to the graduates' informed investment decisions. The scene should exude a sense of achievement and integration of technology and military education." 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: Bachelor's degrees awarded in Military technologies and applied sciences and Nasdaq's stock price (NDAQ). 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: Art nouveau Sci-fi fantacy Parallax art Parallax art Cybernetic art
ChatGPT: Sci-fi fantasy

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 Bachelor's degrees awarded in Military technologies and applied sciences and Nasdaq's stock price (NDAQ), in the following situation: Because as more people become experts in military technologies and applied sciences, they develop a keen understanding of strategic maneuvers, leading them to invest in Nasdaq-listed companies with precision. This influx of knowledgeable investors causes an increase in demand for Nasdaq stocks, ultimately driving up its price.. Keep the description simple.
ChatGPT: In the scene, a graduation ceremony is taking place at a military academy, with students in their ceremonial gowns receiving Bachelor's degrees in Military Technologies and Applied Sciences. In the background, a large digital stock ticker displays Nasdaq's stock price (NDAQ) increasing steadily, reflecting the surge in demand due to the graduates' informed investment decisions.

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: [ Sci-fi fantasy ] and depicting this scene: In the scene, a graduation ceremony is taking place at a military academy, with students in their ceremonial gowns receiving Bachelor's degrees in Military Technologies and Applied Sciences. In the background, a large digital stock ticker displays Nasdaq's stock price (NDAQ) increasing steadily, reflecting the surge in demand due to the graduates' informed investment decisions. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: "Generate an image that captures a sci-fi fantasy world, featuring a military academy graduation ceremony. In the foreground, show students in ceremonial gowns receiving Bachelor's degrees in Military Technologies and Applied Sciences. In the background, a large digital stock ticker should display Nasdaq's stock price (NDAQ) increasing steadily, reflecting the surge in demand due to the graduates' informed investment decisions. The scene should exude a sense of achievement and integration of technology and military education."

*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 Bachelor's degrees awarded in Military technologies and applied sciences caused Nasdaq's stock price (NDAQ) to increase.

AI academic paper

(Because p < 0.01)
Burgeoning Bachelor's: Booming Bachelor's Degrees in Battlefield Breakthroughs and Nasdaq's Nifty Numbers

The Journal of Interdisciplinary Diplomatic 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 researcher writing an academic paper.You write titles and abstracts of goofy academic research papers.
User prompt:
Pretend you are an academic researcher. Your writing sounds like it belongs in a medical or economics journal. However, you frequently crack jokes, make puns, and add unexpected twists in your writing.

Please draft the title and abstract of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Military technologies and Nasdaq's stock price (NDAQ). Make lots of jokes, goofy observations, and puns.

Make the title an alliteration.

Your research team used data from National Center for Education Statistics and LSEG Analytics (Refinitiv) to assess this nagging question. You found a correlation coefficient of 0.9894220 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]]
Burgeoning Bachelor's: Booming Bachelor's Degrees in Battlefield Breakthroughs and Nasdaq's Nifty Numbers

[[ABSTRACT]]
This paper investigates the surprising link between the number of Bachelor's degrees awarded in military technologies and the performance of Nasdaq's stock price (NDAQ). By delving into the data from the National Center for Education Statistics and LSEG Analytics (Refinitiv) from 2012 to 2021, we uncovered a correlation coefficient of 0.9894220 and p < 0.01. Our findings reveal a statistically significant relationship that has often been overlooked. We aim to shed light on this unanticipated connection and spur further research in the field. As the saying goes, "the market is a battlefield," and our study seeks to add an intriguing twist to this adage by exploring how military technology education may be influencing the fluctuations of Nasdaq's stock price.


Model: gpt-3.5-turbo-1106
System prompt: You are a researcher writing an academic paper.You draft the introduction section of an academic research paper.
User prompt:
Pretend you are an academic researcher. Your writing sounds like it belongs in a medical or economics journal. However, you frequently crack jokes, make puns, or add unexpected twists in your writing.

Please make up the introduction section of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Military technologies and Nasdaq's stock price (NDAQ). Make lots of 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]]
Burgeoning Bachelor's: Booming Bachelor's Degrees in Battlefield Breakthroughs and Nasdaq's Nifty Numbers

[[ABSTRACT]]
This paper investigates the surprising link between the number of Bachelor's degrees awarded in military technologies and the performance of Nasdaq's stock price (NDAQ). By delving into the data from the National Center for Education Statistics and LSEG Analytics (Refinitiv) from 2012 to 2021, we uncovered a correlation coefficient of 0.9894220 and p < 0.01. Our findings reveal a statistically significant relationship that has often been overlooked. We aim to shed light on this unanticipated connection and spur further research in the field. As the saying goes, "the market is a battlefield," and our study seeks to add an intriguing twist to this adage by exploring how military technology education may be influencing the fluctuations of Nasdaq's stock price.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
Welcome, esteemed readers and fellow enthusiasts of the enigmatic world of statistics and stock market fluctuations. In this paper, we embark on an expedition to unravel the perplexing correlation between the number of Bachelor's degrees awarded in military technologies and the whimsical waltz of Nasdaq's stock price (NDAQ). While this investigation may initially seem like a blast from the past, we assure you that the findings are more electrifying than a high-voltage experiment in a physics lab.

Let's face it, the curious coupling of military technologies and stock prices might appear as incongruous as an economist at a rocket launch! Nevertheless, we have dived into the data with the fervor of a scientist chasing a comet and unearthed a statistically significant correlation coefficient that will make even the most seasoned econometricians raise an eyebrow.

Our journey begins with a remarkable abstract coefficient of 0.9894220 and p < 0.01. Now, if that doesn't make your statistical senses tingle with excitement, I don't know what will! This, my dear readers, is not just any correlation—it's the kind of statistical relationship that makes one pause and wonder, "What on earth could military technology education have to do with the capricious dance of Nasdaq's stock price?"

We promise you a rollicking ride through the labyrinth of data analysis and statistical inference. So buckle up, ladies and gentlemen, for a journey that's as unpredictable as the stock market itself! After all, as researchers, it's our job to uncover connections that are as surprising as finding a chemistry lab in a cornfield.

So, grab your lab coats and pocket protectors as we venture into the realm of booming Bachelor's degrees in battlefield breakthroughs and Nasdaq's nifty numbers. This is not your typical academic paper—this is a statistical odyssey that will leave you scratching your head and grinning like a Cheshire cat.

Stay tuned for the fascinating findings that will challenge your perceptions and tickle your academic curiosity. As the great Carl Sagan once said, "Somewhere, something incredible is waiting to be known." Let's uncover that incredible something together!


Model: gpt-3.5-turbo-1106
System prompt: You are a researcher writing an academic paper.You draft a literature review section of an academic research paper, that starts out dry for the first few sentences but then becomes hilarious and goofy.
User prompt:
Pretend you are an academic researcher. Your writing sounds like it belongs in a medical or economics journal. However, you frequently crack jokes, make puns, or add unexpected twists in your writing.

Please make up a literature review section of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Military technologies and Nasdaq's stock price (NDAQ). Make lots of jokes, goofy observations, and puns.

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

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

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

Here is the title and abstract of the paper:
[[TITLE]]
Burgeoning Bachelor's: Booming Bachelor's Degrees in Battlefield Breakthroughs and Nasdaq's Nifty Numbers

[[ABSTRACT]]
This paper investigates the surprising link between the number of Bachelor's degrees awarded in military technologies and the performance of Nasdaq's stock price (NDAQ). By delving into the data from the National Center for Education Statistics and LSEG Analytics (Refinitiv) from 2012 to 2021, we uncovered a correlation coefficient of 0.9894220 and p < 0.01. Our findings reveal a statistically significant relationship that has often been overlooked. We aim to shed light on this unanticipated connection and spur further research in the field. As the saying goes, "the market is a battlefield," and our study seeks to add an intriguing twist to this adage by exploring how military technology education may be influencing the fluctuations of Nasdaq's stock price.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
Welcome, esteemed readers and fellow enthusiasts of the enigmatic world of statistics and stock market fluctuations. In this paper, we embark on an expedition to unravel the perplexing correlation between the number of Bachelor's degrees awarded in military technologies and the whimsical waltz of Nasdaq's stock price (NDAQ). While this investigation may initially seem like a blast from the past, we assure you that the findings are more electrifying than a high-voltage experiment in a physics lab.
Let's face it, the curious coupling of military technologies and stock prices might appear as incongruous as an economist at a rocket launch! Nevertheless, we have dived into the data with the fervor of a scientist chasing a comet and unearthed a statistically significant correlation coefficient that will make even the most seasoned econometricians raise an eyebrow.
Our journey begins with a remarkable abstract coefficient of 0.9894220 and p < 0.01. Now, if that doesn't make your statistical senses tingle with excitement, I don't know what will! This, my dear readers, is not just any correlation—it's the kind of statistical relationship that makes one pause and wonder, "What on earth could military technology education have to do with the capricious dance of Nasdaq's stock price?"
We promise you a rollicking ride through the labyrinth of data analysis and statistical inference. So buckle up, ladies and gentlemen, for a journey that's as unpredictable as the stock market itself! After all, as researchers, it's our job to uncover connections that are as surprising as finding a chemistry lab in a cornfield.
So, grab your lab coats and pocket protectors as we venture into the realm of booming Bachelor's degrees in battlefield breakthroughs and Nasdaq's nifty numbers. This is not your typical academic paper—this is a statistical odyssey that will leave you scratching your head and grinning like a Cheshire cat.
Stay tuned for the fascinating findings that will challenge your perceptions and tickle your academic curiosity. As the great Carl Sagan once said, "Somewhere, something incredible is waiting to be known." Let's uncover that incredible something together!

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

As we delve into the realm of military technologies and stock market dynamics, we encounter a diverse array of studies that have attempted to uncover the underlying forces at play. Smith (2015) posited that the proliferation of Bachelor's degrees in military technologies may have far-reaching effects on the technological landscape, while Doe (2018) suggested the potential reverberations of such education on national security and defense expenditure. Jones (2020) delved into the intricacies of stock price movements and the various macroeconomic factors, paving the way for our research to wade into uncharted territory where military prowess and market prowess intertwine.

However, as we meander through the academic underbrush, we encounter a few unexpected fauna. In "The Art of War" by Sun Tzu, the ancient military strategist provides insights that strangely resonate with the principles of strategic trading. Perhaps there's a parallel between the battles of yore and the contemporary war of the markets – a tableau where the clash of ideologies converges, and the only victor is the ever-fluctuating Nasdaq.

Turning to the realm of fiction, "Ender's Game" by Orson Scott Card offers a speculative glimpse into a futuristic world where military prowess and technological advancement are inextricably linked. The narrative, although a work of fiction, stimulates our imaginations and compels us to ponder the potential ramifications of military education on stock market dynamics. As we traverse through these eclectic sources, we confront the realization that there may indeed be a nexus between military education and market alchemy.

And who could forget the viral sensation that encapsulates the zeitgeist of the digital age? Yes, we're talking about none other than the "This is Fine" meme. In its absurd portrayal of a dog surrounded by chaos, sipping coffee, the meme encapsulates the spirit of resilience amidst turbulent circumstances – a sentiment that oddly mirrors the unpredictable nature of Nasdaq's stock price. One cannot help but wonder if there's a subtle allegory to be found in the juxtaposition of military education and the prevailing sentiment of "this is fine" amidst market volatility.

The plethora of literature has laid the groundwork for our investigation into the correlation between burgeoning Bachelor's degrees in battlefield breakthroughs and the capricious dance of Nasdaq's stock price. With scholarly fortitude and a touch of whimsy, we embark on this scholarly quest to uncover the unexpected connections that lie hidden beneath the veneer of academia and finance.


Model: gpt-3.5-turbo-1106
System prompt: You are a researcher writing an academic paper.You draft the methodology section of an academic research paper.
User prompt:
Pretend you are an academic researcher. Your writing sounds like it belongs in a medical or economics journal. However, you frequently crack jokes, make puns, or add unexpected twists in your writing.

Please make up the methodology section of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Military technologies and Nasdaq's stock price (NDAQ). Make lots of 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 LSEG Analytics (Refinitiv) . 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]]
Burgeoning Bachelor's: Booming Bachelor's Degrees in Battlefield Breakthroughs and Nasdaq's Nifty Numbers

[[ABSTRACT]]
This paper investigates the surprising link between the number of Bachelor's degrees awarded in military technologies and the performance of Nasdaq's stock price (NDAQ). By delving into the data from the National Center for Education Statistics and LSEG Analytics (Refinitiv) from 2012 to 2021, we uncovered a correlation coefficient of 0.9894220 and p < 0.01. Our findings reveal a statistically significant relationship that has often been overlooked. We aim to shed light on this unanticipated connection and spur further research in the field. As the saying goes, "the market is a battlefield," and our study seeks to add an intriguing twist to this adage by exploring how military technology education may be influencing the fluctuations of Nasdaq's stock price.

[[INTRODUCTION]]
Welcome, esteemed readers and fellow enthusiasts of the enigmatic world of statistics and stock market fluctuations. In this paper, we embark on an expedition to unravel the perplexing correlation between the number of Bachelor's degrees awarded in military technologies and the whimsical waltz of Nasdaq's stock price (NDAQ). While this investigation may initially seem like a blast from the past, we assure you that the findings are more electrifying than a high-voltage experiment in a physics lab.
Let's face it, the curious coupling of military technologies and stock prices might appear as incongruous as an economist at a rocket launch! Nevertheless, we have dived into the data with the fervor of a scientist chasing a comet and unearthed a statistically significant correlation coefficient that will make even the most seasoned econometricians raise an eyebrow.
Our journey begins with a remarkable abstract coefficient of 0.9894220 and p < 0.01. Now, if that doesn't make your statistical senses tingle with excitement, I don't know what will! This, my dear readers, is not just any correlation—it's the kind of statistical relationship that makes one pause and wonder, "What on earth could military technology education have to do with the capricious dance of Nasdaq's stock price?"
We promise you a rollicking ride through the labyrinth of data analysis and statistical inference. So buckle up, ladies and gentlemen, for a journey that's as unpredictable as the stock market itself! After all, as researchers, it's our job to uncover connections that are as surprising as finding a chemistry lab in a cornfield.
So, grab your lab coats and pocket protectors as we venture into the realm of booming Bachelor's degrees in battlefield breakthroughs and Nasdaq's nifty numbers. This is not your typical academic paper—this is a statistical odyssey that will leave you scratching your head and grinning like a Cheshire cat.
Stay tuned for the fascinating findings that will challenge your perceptions and tickle your academic curiosity. As the great Carl Sagan once said, "Somewhere, something incredible is waiting to be known." Let's uncover that incredible something together!

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To embark on this curious quest of unraveling the mystical marriage between military technology education and the fickle fortunes of Nasdaq's stock price, we harnessed an arsenal of research methods that were as intricate as assembling a Rube Goldberg machine and as nuanced as crafting a delicate soufflé. Our data collection, akin to an elaborate scavenger hunt, drew from the rich repositories of the National Center for Education Statistics and the formidable vaults of LSEG Analytics (Refinitiv).

First and foremost, we meticulously scoured the educational landscape to gather the number of Bachelor's degrees awarded in military technologies from 2012 to 2021. Our team, brimming with the enthusiasm of a pack of eager beavers, combed through countless databases with the fervor of archeologists unearthing long-lost relics. The data, much like the ingredients of a top-secret recipe, was carefully collated and cleansed to ensure its reliability and validity—the twin pillars of any formidable research endeavor.

Once armed with the entrancing figures of bachelor's degrees in military technologies, we turned our attention to the capricious domain of stock prices. Embarking on a labyrinthine journey akin to navigating a hedge maze with blindfolds, we extracted the daily closing stock prices of Nasdaq (NDAQ) from the lumbering databases of LSEG Analytics (Refinitiv). The data, like a wilful stallion, was tamed and meticulously arranged into a coherent format suitable for rigorous statistical scrutiny.

With our arsenal of data at the ready, we unleashed the ferocious power of statistical analysis, wielding the formidable tools of correlation coefficient computation and hypothesis testing. Our statistical magicians, armed with abacuses and calculators, conjured the elusive correlation coefficient and and winked as the p-value danced before their eyes. The relationship between the numbers of bachelor's degrees in military technologies and the gyrations of Nasdaq's stock price was scrutinized with the rigor of a detective solving a perplexing case.

In the crucible of statistical inquiry, we also prudently considered potential confounding variables, crafting multiple regression models that were as intricate as a clockwork mechanism. Each variable was scrutinized with the intensity of a watchmaker examining the gears of a timepiece, ensuring that our models were robust and resilient against spurious relationships. The statistical dance among variables was akin to a ballet performance, with each step carefully choreographed to uncover the underlying patterns amidst the statistical cacophony.

Furthermore, we conducted sensitivity analyses to gauge the robustness of our findings, akin to stress-testing a bridge to ensure its fortitude in the face of gales and tremors. Our statistical edifice, much like a resilient skyscraper, was subjected to the battering winds of alternative model specifications to validate the stability of our results.

In summary, our methodology unfolded like a riveting tale of academic exploration, blending the art of data collection with the wizardry of statistical analysis. Like intrepid voyagers navigating uncharted waters, we charted a course through the twin realms of military technology education and stock market dynamics, unveiling unexpected connections and challenging conventional wisdom with the audacity of maverick scholars.

Stay tuned for the thrilling voyage through our findings, where the remarkable relationship between Bachelor's degrees in battlefield breakthroughs and Nasdaq's nifty numbers will be unveiled in all its glory!


Model: gpt-3.5-turbo-1106
System prompt: You are a researcher writing an academic paper.You draft the results section of an academic research paper. You speak in the past tense (you found...).
User prompt:
Pretend you are an academic researcher. Your writing sounds like it belongs in a medical or economics journal. However, you frequently crack jokes, make puns, or add unexpected twists in your writing.

Please make up the results section of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Military technologies and Nasdaq's stock price (NDAQ). Make lots of 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 LSEG Analytics (Refinitiv) .

For the time period 2012 to 2021, you found a correlation 0.9894220, r-squared of 0.9789559, 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]]
Burgeoning Bachelor's: Booming Bachelor's Degrees in Battlefield Breakthroughs and Nasdaq's Nifty Numbers

[[ABSTRACT]]
This paper investigates the surprising link between the number of Bachelor's degrees awarded in military technologies and the performance of Nasdaq's stock price (NDAQ). By delving into the data from the National Center for Education Statistics and LSEG Analytics (Refinitiv) from 2012 to 2021, we uncovered a correlation coefficient of 0.9894220 and p < 0.01. Our findings reveal a statistically significant relationship that has often been overlooked. We aim to shed light on this unanticipated connection and spur further research in the field. As the saying goes, "the market is a battlefield," and our study seeks to add an intriguing twist to this adage by exploring how military technology education may be influencing the fluctuations of Nasdaq's stock price.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
Welcome, esteemed readers and fellow enthusiasts of the enigmatic world of statistics and stock market fluctuations. In this paper, we embark on an expedition to unravel the perplexing correlation between the number of Bachelor's degrees awarded in military technologies and the whimsical waltz of Nasdaq's stock price (NDAQ). While this investigation may initially seem like a blast from the past, we assure you that the findings are more electrifying than a high-voltage experiment in a physics lab.
Let's face it, the curious coupling of military technologies and stock prices might appear as incongruous as an economist at a rocket launch! Nevertheless, we have dived into the data with the fervor of a scientist chasing a comet and unearthed a statistically significant correlation coefficient that will make even the most seasoned econometricians raise an eyebrow.
Our journey begins with a remarkable abstract coefficient of 0.9894220 and p < 0.01. Now, if that doesn't make your statistical senses tingle with excitement, I don't know what will! This, my dear readers, is not just any correlation—it's the kind of statistical relationship that makes one pause and wonder, "What on earth could military technology education have to do with the capricious dance of Nasdaq's stock price?"
We promise you a rollicking ride through the labyrinth of data analysis and statistical inference. So buckle up, ladies and gentlemen, for a journey that's as unpredictable as the stock market itself! After all, as researchers, it's our job to uncover connections that are as surprising as finding a chemistry lab in a cornfield.
So, grab your lab coats and pocket protectors as we venture into the realm of booming Bachelor's degrees in battlefield breakthroughs and Nasdaq's nifty numbers. This is not your typical academic paper—this is a statistical odyssey that will leave you scratching your head and grinning like a Cheshire cat.
Stay tuned for the fascinating findings that will challenge your perceptions and tickle your academic curiosity. As the great Carl Sagan once said, "Somewhere, something incredible is waiting to be known." Let's uncover that incredible something together!

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

Ladies and gentlemen, fasten your seatbelts and get ready for a statistical rollercoaster ride, because the results of our investigation into the connection between the number of Bachelor's degrees awarded in military technologies and the shimmies and shakes of Nasdaq's stock price (NDAQ) are in, and they are nothing short of exhilarating!

We are delighted to report a jaw-dropping correlation coefficient of 0.9894220 between the aforementioned variables. To put it in layman's terms, this correlation is tighter than a lab coat on a chemistry whiz! The sky-high r-squared value of 0.9789559 further cements the robustness of this relationship, demonstrating that this is no statistical fluke – it's as concrete as a physics equation.

But wait, it gets even better! The p-value of less than 0.01 practically screams statistical significance! This p-value is so small, it's like finding a needle in a haystack – but instead of a needle, it's a significant correlation hiding among all the data points.

To add some visual flair to these eye-popping statistics, behold the illustrious Fig. 1 – a scatterplot that captures the undeniable bond between the number of Bachelor's degrees in military technologies and the undulations of Nasdaq's stock price. If this scatterplot were a painting, it would be akin to the Mona Lisa of statistical relationships – enigmatic, compelling, and garnering the attention of scholars near and far.

In conclusion, this investigation has unveiled a relationship so profound and unexpected that it would make even the most seasoned stock market analysts do a double take. Our findings open up a Pandora's box of questions and possibilities, challenging traditional notions of what influences stock prices and inspiring further research in this captivating field. It's a bit like discovering a secret formula in a mad scientist's lab – it leaves us eager to delve deeper and uncover the intricacies of this uncharted territory.

So, fellow enthusiasts of statistics and stock market mysteries, rest assured that the unexpected connection between military technology education and Nasdaq's stock price is not just a statistical anomaly – it's a revelation that could reshape the way we perceive the financial landscape. As the great Albert Einstein once said, "The only source of knowledge is experience," and our experience has certainly catalyzed a newfound understanding of this enthralling correlation.


Model: gpt-3.5-turbo-1106
System prompt: You are a researcher writing an academic paper.You draft the discussion section of an academic research paper.
User prompt:
Pretend you are an academic researcher. Your writing sounds like it belongs in a medical or economics journal. However, you frequently crack jokes, make puns, or add unexpected twists in your writing.

Please make up the discussion section of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Military technologies and Nasdaq's stock price (NDAQ). Make lots of 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]]
Burgeoning Bachelor's: Booming Bachelor's Degrees in Battlefield Breakthroughs and Nasdaq's Nifty Numbers

[[ABSTRACT]]
This paper investigates the surprising link between the number of Bachelor's degrees awarded in military technologies and the performance of Nasdaq's stock price (NDAQ). By delving into the data from the National Center for Education Statistics and LSEG Analytics (Refinitiv) from 2012 to 2021, we uncovered a correlation coefficient of 0.9894220 and p < 0.01. Our findings reveal a statistically significant relationship that has often been overlooked. We aim to shed light on this unanticipated connection and spur further research in the field. As the saying goes, "the market is a battlefield," and our study seeks to add an intriguing twist to this adage by exploring how military technology education may be influencing the fluctuations of Nasdaq's stock price.

[[LITERATURE REVIEW]]
As we delve into the realm of military technologies and stock market dynamics, we encounter a diverse array of studies that have attempted to uncover the underlying forces at play. Smith (2015) posited that the proliferation of Bachelor's degrees in military technologies may have far-reaching effects on the technological landscape, while Doe (2018) suggested the potential reverberations of such education on national security and defense expenditure. Jones (2020) delved into the intricacies of stock price movements and the various macroeconomic factors, paving the way for our research to wade into uncharted territory where military prowess and market prowess intertwine.
However, as we meander through the academic underbrush, we encounter a few unexpected fauna. In "The Art of War" by Sun Tzu, the ancient military strategist provides insights that strangely resonate with the principles of strategic trading. Perhaps there's a parallel between the battles of yore and the contemporary war of the markets – a tableau where the clash of ideologies converges, and the only victor is the ever-fluctuating Nasdaq.
Turning to the realm of fiction, "Ender's Game" by Orson Scott Card offers a speculative glimpse into a futuristic world where military prowess and technological advancement are inextricably linked. The narrative, although a work of fiction, stimulates our imaginations and compels us to ponder the potential ramifications of military education on stock market dynamics. As we traverse through these eclectic sources, we confront the realization that there may indeed be a nexus between military education and market alchemy.
And who could forget the viral sensation that encapsulates the zeitgeist of the digital age? Yes, we're talking about none other than the "This is Fine" meme. In its absurd portrayal of a dog surrounded by chaos, sipping coffee, the meme encapsulates the spirit of resilience amidst turbulent circumstances – a sentiment that oddly mirrors the unpredictable nature of Nasdaq's stock price. One cannot help but wonder if there's a subtle allegory to be found in the juxtaposition of military education and the prevailing sentiment of "this is fine" amidst market volatility.
The plethora of literature has laid the groundwork for our investigation into the correlation between burgeoning Bachelor's degrees in battlefield breakthroughs and the capricious dance of Nasdaq's stock price. With scholarly fortitude and a touch of whimsy, we embark on this scholarly quest to uncover the unexpected connections that lie hidden beneath the veneer of academia and finance.

[[RESULTS]]
Ladies and gentlemen, fasten your seatbelts and get ready for a statistical rollercoaster ride, because the results of our investigation into the connection between the number of Bachelor's degrees awarded in military technologies and the shimmies and shakes of Nasdaq's stock price (NDAQ) are in, and they are nothing short of exhilarating!
We are delighted to report a jaw-dropping correlation coefficient of 0.9894220 between the aforementioned variables. To put it in layman's terms, this correlation is tighter than a lab coat on a chemistry whiz! The sky-high r-squared value of 0.9789559 further cements the robustness of this relationship, demonstrating that this is no statistical fluke – it's as concrete as a physics equation.
But wait, it gets even better! The p-value of less than 0.01 practically screams statistical significance! This p-value is so small, it's like finding a needle in a haystack – but instead of a needle, it's a significant correlation hiding among all the data points.
To add some visual flair to these eye-popping statistics, behold the illustrious Fig. 1 – a scatterplot that captures the undeniable bond between the number of Bachelor's degrees in military technologies and the undulations of Nasdaq's stock price. If this scatterplot were a painting, it would be akin to the Mona Lisa of statistical relationships – enigmatic, compelling, and garnering the attention of scholars near and far.
In conclusion, this investigation has unveiled a relationship so profound and unexpected that it would make even the most seasoned stock market analysts do a double take. Our findings open up a Pandora's box of questions and possibilities, challenging traditional notions of what influences stock prices and inspiring further research in this captivating field. It's a bit like discovering a secret formula in a mad scientist's lab – it leaves us eager to delve deeper and uncover the intricacies of this uncharted territory.
So, fellow enthusiasts of statistics and stock market mysteries, rest assured that the unexpected connection between military technology education and Nasdaq's stock price is not just a statistical anomaly – it's a revelation that could reshape the way we perceive the financial landscape. As the great Albert Einstein once said, "The only source of knowledge is experience," and our experience has certainly catalyzed a newfound understanding of this enthralling correlation.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

Now, let's roll up our sleeves and dissect the implications of our eye-popping findings like a scientist eagerly peering at a petri dish. Our results not only support the prior research but also add a dash of pizzazz to the academic world. Remember the unexpected fauna in the literature review? Well, it seems that Sun Tzu's strategic wisdom and Ender's Game's futuristic ponderings have foreshadowed our discovery that military education and market dynamics march to the same beat.

Our statistical rollercoaster ride has left us giddy with excitement, showcasing that the proliferation of Bachelor's degrees in military technologies and Nasdaq's stock price are practically like two peas in a pod. It's as if the universe orchestrated a cosmic dance, intertwining education and market machinations in a way that challenges traditional paradigms. The results not only cement the robustness of our findings but also leave us pondering the profound implications. This correlation is tighter than the magnetism in a quantum entanglement, and it's as significant as finding a statistical needle in a vast haystack of data points.

Moreover, our results underscore the intricate interplay between academic pursuits and financial fluctuations, painting a vivid canvas that's equal parts perplexing and enlightening. This discovery is like stumbling upon a treasure map in a dusty old library – it beckons us to explore uncharted terrain and unravel the mysteries lurking in the intersection of military education and market volatility.

In closing, our findings open a Pandora's box of possibilities, prompting us to embark on a scholarly quest akin to a daring archeological expedition. The unexpected connection we've uncovered is not just a statistical anomaly; it's a revelation that could reshape the way we perceive the financial landscape, instigating a paradigm shift that may have an impact as seismic as a volcanic eruption in the world of academia and finance. So, buckle up and get ready for an exhilarating journey into the unexplored depths of this captivating field!

Now, onto the grand conclusion...


Model: gpt-3.5-turbo-1106
System prompt: You are a researcher writing an academic paper.You draft the discussion section of goofy academic research papers that sounds like it belongs based on the title and abstract provided.
User prompt:
Pretend you are an academic researcher. Your writing sounds like it belongs in a medical or economics journal. However, you frequently crack jokes, make puns, or add unexpected twists in your writing.

Please make up a short conclusion of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Military technologies and Nasdaq's stock price (NDAQ). Make lots of 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]]
Burgeoning Bachelor's: Booming Bachelor's Degrees in Battlefield Breakthroughs and Nasdaq's Nifty Numbers

[[ABSTRACT]]
This paper investigates the surprising link between the number of Bachelor's degrees awarded in military technologies and the performance of Nasdaq's stock price (NDAQ). By delving into the data from the National Center for Education Statistics and LSEG Analytics (Refinitiv) from 2012 to 2021, we uncovered a correlation coefficient of 0.9894220 and p < 0.01. Our findings reveal a statistically significant relationship that has often been overlooked. We aim to shed light on this unanticipated connection and spur further research in the field. As the saying goes, "the market is a battlefield," and our study seeks to add an intriguing twist to this adage by exploring how military technology education may be influencing the fluctuations of Nasdaq's stock price.

[[INTRDUCTION]]
Welcome, esteemed readers and fellow enthusiasts of the enigmatic world of statistics and stock market fluctuations. In this paper, we embark on an expedition to unravel the perplexing correlation between the number of Bachelor's degrees awarded in military technologies and the whimsical waltz of Nasdaq's stock price (NDAQ). While this investigation may initially seem like a blast from the past, we assure you that the findings are more electrifying than a high-voltage experiment in a physics lab.
Let's face it, the curious coupling of military technologies and stock prices might appear as incongruous as an economist at a rocket launch! Nevertheless, we have dived into the data with the fervor of a scientist chasing a comet and unearthed a statistically significant correlation coefficient that will make even the most seasoned econometricians raise an eyebrow.
Our journey begins with a remarkable abstract coefficient of 0.9894220 and p < 0.01. Now, if that doesn't make your statistical senses tingle with excitement, I don't know what will! This, my dear readers, is not just any correlation—it's the kind of statistical relationship that makes one pause and wonder, "What on earth could military technology education have to do with the capricious dance of Nasdaq's stock price?"
We promise you a rollicking ride through the labyrinth of data analysis and statistical inference. So buckle up, ladies and gentlemen, for a journey that's as unpredictable as the stock market itself! After all, as researchers, it's our job to uncover connections that are as surprising as finding a chemistry lab in a cornfield.
So, grab your lab coats and pocket protectors as we venture into the realm of booming Bachelor's degrees in battlefield breakthroughs and Nasdaq's nifty numbers. This is not your typical academic paper—this is a statistical odyssey that will leave you scratching your head and grinning like a Cheshire cat.
Stay tuned for the fascinating findings that will challenge your perceptions and tickle your academic curiosity. As the great Carl Sagan once said, "Somewhere, something incredible is waiting to be known." Let's uncover that incredible something together!

[[RESULTS]]
Ladies and gentlemen, fasten your seatbelts and get ready for a statistical rollercoaster ride, because the results of our investigation into the connection between the number of Bachelor's degrees awarded in military technologies and the shimmies and shakes of Nasdaq's stock price (NDAQ) are in, and they are nothing short of exhilarating!
We are delighted to report a jaw-dropping correlation coefficient of 0.9894220 between the aforementioned variables. To put it in layman's terms, this correlation is tighter than a lab coat on a chemistry whiz! The sky-high r-squared value of 0.9789559 further cements the robustness of this relationship, demonstrating that this is no statistical fluke – it's as concrete as a physics equation.
But wait, it gets even better! The p-value of less than 0.01 practically screams statistical significance! This p-value is so small, it's like finding a needle in a haystack – but instead of a needle, it's a significant correlation hiding among all the data points.
To add some visual flair to these eye-popping statistics, behold the illustrious Fig. 1 – a scatterplot that captures the undeniable bond between the number of Bachelor's degrees in military technologies and the undulations of Nasdaq's stock price. If this scatterplot were a painting, it would be akin to the Mona Lisa of statistical relationships – enigmatic, compelling, and garnering the attention of scholars near and far.
In conclusion, this investigation has unveiled a relationship so profound and unexpected that it would make even the most seasoned stock market analysts do a double take. Our findings open up a Pandora's box of questions and possibilities, challenging traditional notions of what influences stock prices and inspiring further research in this captivating field. It's a bit like discovering a secret formula in a mad scientist's lab – it leaves us eager to delve deeper and uncover the intricacies of this uncharted territory.
So, fellow enthusiasts of statistics and stock market mysteries, rest assured that the unexpected connection between military technology education and Nasdaq's stock price is not just a statistical anomaly – it's a revelation that could reshape the way we perceive the financial landscape. As the great Albert Einstein once said, "The only source of knowledge is experience," and our experience has certainly catalyzed a newfound understanding of this enthralling correlation.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In the illustrious words of Sir Isaac Newton, "What goes up must come down," but our findings suggest that when it comes to the number of Bachelor's degrees awarded in military technologies and Nasdaq's stock price, what goes up may just keep going up! Our statistical escapade has revealed a correlation so strong, it's as if econometric equations and military blueprints were engaged in an unbreakable tango. It's a bit like finding a treasure map in a sea of stock market data—our discovery of this unexpected connection has illuminated a path for further exploration.

As much as we'd like to continue this statistical soiree and unravel more mysteries of the financial world, we have to acknowledge that our investigation has brought us to a thrilling conclusion. The evidence is in, and it's as clear as a chemistry lab beaker—there's a remarkable link between the education of tomorrow's battlefield innovators and the numerical nuances of Nasdaq's stock price. It's a connection that's as surprising as discovering a quantum physicist at a paintball tournament, and it begs the question: what other uncharted territories exist in the realm of financial influences?

However, in the spirit of scientific inquiry and with the utmost confidence in our findings, we boldly assert that further research in this area may just be as futile as trying to measure the length of a piece of string with another piece of string – unnecessary and a tad bit confounding. Our statistical expedition has shed light on a relationship that, much like a captivating magic trick, demands attention and delights the curious mind.

So, fellow researchers and aficionados of the unpredictable world of statistics and financial intricacies, let's raise our beakers and toast to the revelation of this captivating correlation. Through our scientific lens, we have uncovered a connection that's as compelling as a good scientific mystery novel, and we can confidently take a bow, for the show is certainly not over, but this particular act has reached its satisfying conclusion.


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 Burgeoning Bachelor's: Booming Bachelor's Degrees in Battlefield Breakthroughs and Nasdaq's Nifty Numbers. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Interdisciplinary Diplomatic 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 Burgeoning Bachelor's: Booming Bachelor's Degrees in Battlefield Breakthroughs and Nasdaq's Nifty Numbers. Respond only with the name of a fictional organization.

ChatGPT:

The Institute for Academic Studies on Unconventional Career Paths


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 Burgeoning Bachelor's: Booming Bachelor's Degrees in Battlefield Breakthroughs and Nasdaq's Nifty Numbers with an abstract of This paper investigates the surprising link between the number of Bachelor's degrees awarded in military technologies and the performance of Nasdaq's stock price (NDAQ). By delving into the data from the National Center for Education Statistics and LSEG Analytics (Refinitiv) from 2012 to 2021, we uncovered a correlation coefficient of 0.9894220 and p < 0.01. Our findings reveal a statistically significant relationship that has often been overlooked. We aim to shed light on this unanticipated connection and spur further research in the field. As the saying goes, "the market is a battlefield," and our study seeks to add an intriguing twist to this adage by exploring how military technology education may be influencing the fluctuations of Nasdaq's stock price.

ChatGPT:

bachelor's degrees, military technologies, National Center for Education Statistics, LSEG Analytics, Refinitiv, correlation coefficient, stock price, Nasdaq, market fluctuations, education statistics, military technology education, stock performance

*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

Bachelor's degrees awarded in Military technologies
Detailed data title: Bachelor's degrees conferred by postsecondary institutions, in field of study: Military technologies and applied sciences
Source: National Center for Education Statistics
See what else correlates with Bachelor's degrees awarded in Military technologies

Nasdaq's stock price (NDAQ)
Detailed data title: Opening price of Nasdaq (NDAQ) on the first trading day of the year
Source: LSEG Analytics (Refinitiv)
Additional Info: Via Microsoft Excel Stockhistory function

See what else correlates with Nasdaq's stock price (NDAQ)

Correlation r = 0.9894220 (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.9789559 (Coefficient of determination)
This means 97.9% of the change in the one variable (i.e., Nasdaq's stock price (NDAQ)) is predictable based on the change in the other (i.e., Bachelor's degrees awarded in Military technologies) over the 10 years from 2012 through 2021.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 5.41E-8. 0.0000000540842138151423100000
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 5.41E-6% of random cases. Said differently, if you correlated 18,489,684 random variables You don't actually need 18 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
Bachelor's degrees awarded in Military technologies (Degrees awarded)8610518527635846965576711561524
Nasdaq's stock price (NDAQ) (Stock price)8.348.4713.316.0718.9722.4925.7226.8735.7544.58




Why this works

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




Try it yourself

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

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

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

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

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

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

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

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

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


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

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

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

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

    return correlation, r_squared, p_value

# These are the arrays for the variables shown on this page, but you can modify them to be any two sets of numbers
array_1 = np.array([86,105,185,276,358,469,655,767,1156,1524,])
array_2 = np.array([8.34,8.47,13.3,16.07,18.97,22.49,25.72,26.87,35.75,44.58,])
array_1_name = "Bachelor's degrees awarded in Military technologies"
array_2_name = "Nasdaq's stock price (NDAQ)"

# 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 being the explorer we needed!


Correlation ID: 3726 · Black Variable ID: 1284 · Red Variable ID: 1869
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0