about · email me · subscribe
Spurious correlation #3,933 · 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 KLA Corporation's stock price (KLAC).  The chart goes from 2012 to 2021, and the two variables track closely in value over that time. Small Image

AI explanation

As more military technology experts emerged, the demand for highly advanced potato peeling mechanisms skyrocketed. KLA Corporation, known for their expertise in precision engineering, quickly pivoted to dominate the lucrative market for state-of-the-art automated potato peeling machines, leading to a surge in their stock price.

Model: dalle-3
Prompt: Generate an image of a lively graduation ceremony taking place in a crowded hall. In the forefront, depict a group of students adorned in military attire, standing proud with their Bachelor's degrees in Military Technologies and Applied Sciences. Behind them, display a large banner showcasing the rising stock price of KLA Corporation, indicated by a graph with a steep upward trend. Additionally, include a scene where a group of engineers and investors engage in an enthusiastic discussion about the newly developed secret laser-guided potato cannons, hinting at the promising business opportunities. 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 KLA Corporation's stock price (KLAC). 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: Whimsical illustration An image that looks like it is a scene from 'Star Wars' A scene from Skyrim a funny image macro Pop art
ChatGPT: A scene from 'Star Wars'

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 KLA Corporation's stock price (KLAC), in the following situation: Because the rise in Bachelor's degrees in Military technologies and applied sciences led to more high-tech military gadgets like secret laser-guided potato cannons. KLA Corporation's stock price shot up, fueled by the promise of spud-tacular profits.. Keep the description simple.
ChatGPT: In a crowded graduation ceremony, a group of students in military attire proudly hold their Bachelor's degrees in Military Technologies and Applied Sciences. In the background, a large banner shows the rising stock price of KLA Corporation, indicated by a graph with a steep upward trend. Meanwhile, a group of engineers and investors eagerly discuss the exciting prospect of the newly developed secret laser-guided potato cannons, their eyes sparkling with the promise of spud-tacular profits.

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 scene from 'Star Wars' ] and depicting this scene: In a crowded graduation ceremony, a group of students in military attire proudly hold their Bachelor's degrees in Military Technologies and Applied Sciences. In the background, a large banner shows the rising stock price of KLA Corporation, indicated by a graph with a steep upward trend. Meanwhile, a group of engineers and investors eagerly discuss the exciting prospect of the newly developed secret laser-guided potato cannons, their eyes sparkling with the promise of spud-tacular profits. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Generate an image of a lively graduation ceremony taking place in a crowded hall. In the forefront, depict a group of students adorned in military attire, standing proud with their Bachelor's degrees in Military Technologies and Applied Sciences. Behind them, display a large banner showcasing the rising stock price of KLA Corporation, indicated by a graph with a steep upward trend. Additionally, include a scene where a group of engineers and investors engage in an enthusiastic discussion about the newly developed secret laser-guided potato cannons, hinting at the promising business opportunities.

*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 KLA Corporation's stock price (KLAC) to increase.

AI academic paper

(Because p < 0.01)
From Degrees to Dividends: The Stock Price Benefits of Bachelor's Degrees in Military Technologies for KLA Corporation

The Journal of Defense-Tech Economics

Jan 2024
Quick note: This sequence is long and repetitive. That's how the prompt engineering works for this one. I manage the output in Python to format it into this PDF.




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

Please draft the title and abstract of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Military technologies and KLA Corporation's stock price (KLAC). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

Include a pun in the title.

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.9694555 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]]
"From Degrees to Dividends: The Stock Price Benefits of Bachelor's Degrees in Military Technologies for KLA Corporation"

[[ABSTRACT]]
In this research paper, we delve into the unexpected correlation between the number of Bachelor's degrees awarded in Military Technologies and the stock price of KLA Corporation (KLAC). Taking a tongue-in-cheek approach to data analysis, we aimed to answer the question: "Does degree accumulation in Military Technologies march in step with KLA Corporation's stock prices?" Armed with data from the National Center for Education Statistics and LSEG Analytics (Refinitiv) for the period 2012 to 2021, we uncovered a striking correlation coefficient of 0.9694555, with p < 0.01. It appears that the correlation between military technology degrees and KLA Corporation's stock price is not just coincidental; it's a commanding relationship!

Given the enormity of this finding, one might say it's a true "military-industrial complex" foray into the stock market. If we can make light of the correlation, it's safe to say that investing in military technology could be the "enlistment" KLA Corporation needs to boost its stock prices!


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

Please make up the introduction section of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Military technologies and KLA Corporation's stock price (KLAC). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Here is the title and abstract of the paper:
[[TITLE]]
"From Degrees to Dividends: The Stock Price Benefits of Bachelor's Degrees in Military Technologies for KLA Corporation"

[[ABSTRACT]]
In this research paper, we delve into the unexpected correlation between the number of Bachelor's degrees awarded in Military Technologies and the stock price of KLA Corporation (KLAC). Taking a tongue-in-cheek approach to data analysis, we aimed to answer the question: "Does degree accumulation in Military Technologies march in step with KLA Corporation's stock prices?" Armed with data from the National Center for Education Statistics and LSEG Analytics (Refinitiv) for the period 2012 to 2021, we uncovered a striking correlation coefficient of 0.9694555, with p < 0.01. It appears that the correlation between military technology degrees and KLA Corporation's stock price is not just coincidental; it's a commanding relationship!

Given the enormity of this finding, one might say it's a true "military-industrial complex" foray into the stock market. If we can make light of the correlation, it's safe to say that investing in military technology could be the "enlistment" KLA Corporation needs to boost its stock prices!

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

The connection between education, particularly in the military technology field, and its impact on the stock prices of corporations may initially seem like a march into uncharted territory. However, our research aims to bring this relationship into sharp focus, shedding light on a correlation that is more than a mere coincidence. While some might find it hard to believe that Bachelor's degrees in Military Technologies can influence the stock price of a corporation, our findings suggest otherwise.

As we dive into this complex entanglement of academic pursuits and financial outcomes, it's hard to resist a good joke. What do military technology degrees and stock prices have in common? They both require carefully calculated strategies, and sometimes, a little bit of luck! But our research reveals there's more than just luck at play here. It seems that the correlation between the two is as strong as a well-orchestrated military operation.

The provocative data we uncovered leads us to ponder: are those pursuing military technology degrees unknowingly enlisting in a different kind of mission -- bolstering the stock performance of KLA Corporation? It's a stock market phenomenon that might just have investors saying, "give me an arsenal of military technology degrees, and watch my stock portfolio shoot up!"

Our findings serve as a clarion call to both academia and the financial realm, signaling that there's value in examining unexpected connections. As we march forward in this paper, we urge readers not to dismiss this correlation as an anomaly. It's time to take this "correlation in camouflage" seriously and recognize its potential impact on investment decisions.

In the words of a wise stock trader, "When it comes to military technology degrees and stock prices, those who ignore history might be destined to 'navy SEAL' their fate!"


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

Please make up a literature review section of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Military technologies and KLA Corporation's stock price (KLAC). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

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

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

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

Here is the title and abstract of the paper:
[[TITLE]]
"From Degrees to Dividends: The Stock Price Benefits of Bachelor's Degrees in Military Technologies for KLA Corporation"

[[ABSTRACT]]
In this research paper, we delve into the unexpected correlation between the number of Bachelor's degrees awarded in Military Technologies and the stock price of KLA Corporation (KLAC). Taking a tongue-in-cheek approach to data analysis, we aimed to answer the question: "Does degree accumulation in Military Technologies march in step with KLA Corporation's stock prices?" Armed with data from the National Center for Education Statistics and LSEG Analytics (Refinitiv) for the period 2012 to 2021, we uncovered a striking correlation coefficient of 0.9694555, with p < 0.01. It appears that the correlation between military technology degrees and KLA Corporation's stock price is not just coincidental; it's a commanding relationship!

Given the enormity of this finding, one might say it's a true "military-industrial complex" foray into the stock market. If we can make light of the correlation, it's safe to say that investing in military technology could be the "enlistment" KLA Corporation needs to boost its stock prices!

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
The connection between education, particularly in the military technology field, and its impact on the stock prices of corporations may initially seem like a march into uncharted territory. However, our research aims to bring this relationship into sharp focus, shedding light on a correlation that is more than a mere coincidence. While some might find it hard to believe that Bachelor's degrees in Military Technologies can influence the stock price of a corporation, our findings suggest otherwise.
As we dive into this complex entanglement of academic pursuits and financial outcomes, it's hard to resist a good joke. What do military technology degrees and stock prices have in common? They both require carefully calculated strategies, and sometimes, a little bit of luck! But our research reveals there's more than just luck at play here. It seems that the correlation between the two is as strong as a well-orchestrated military operation.
The provocative data we uncovered leads us to ponder: are those pursuing military technology degrees unknowingly enlisting in a different kind of mission -- bolstering the stock performance of KLA Corporation? It's a stock market phenomenon that might just have investors saying, "give me an arsenal of military technology degrees, and watch my stock portfolio shoot up!"
Our findings serve as a clarion call to both academia and the financial realm, signaling that there's value in examining unexpected connections. As we march forward in this paper, we urge readers not to dismiss this correlation as an anomaly. It's time to take this "correlation in camouflage" seriously and recognize its potential impact on investment decisions.
In the words of a wise stock trader, "When it comes to military technology degrees and stock prices, those who ignore history might be destined to 'navy SEAL' their fate!"

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

Exploring the correlation between educational pursuits and financial outcomes has been a longstanding endeavor in the realm of economic and market research. Smith and Doe in "The Economics of Education" have delved into the impact of specific academic disciplines on career trajectories and income potential, shedding light on the often underappreciated interplay between education and financial success. However, their work, while comprehensive, did not anticipate the engaging correlation we are about to uncover in the realm of military technologies and stock prices.

In a similar vein, Jones et al. in "Educational Paths and Wealth Accumulation" have examined the relationship between educational qualifications and financial prosperity, providing valuable insights into the myriad factors that contribute to individuals' financial portfolios. Little did they know, however, that their research holds but a mere glimmer of the unexpected correlation we are poised to reveal.

Turning to the broader context of technological advancement and its implications for financial markets, "The Innovator's Dilemma" by Clayton M. Christensen presents a comprehensive analysis of how disruptive technologies shape corporate success and failure. While the book does not explicitly touch on military technologies, its exploration of the intertwining of technological innovation and market performance provides a sturdy foundation for understanding the broader dynamics at play.

Taking a more creative leap, the works of Tom Clancy, including "Clear and Present Danger" and "The Sum of All Fears," offer gripping narratives of military strategy and geopolitical tensions. Although these novels are, of course, fictional works, the themes of military technology, espionage, and international relations could inspire readers to consider the far-reaching implications of military technologies on real-world economic forces.

Stepping into the territory of the absurd, it is worth noting the less conventional sources that have shaped our understanding of this uncharted correlation. While conducting this literature review, the researchers stumbled upon unexpected insights in the unlikeliest of places. Who would have thought that the back of a shampoo bottle, with its musings on "marine minerals" and "arsenal of nutrients," could offer an offbeat perspective on the influence of military technologies on stock prices? Alas, sometimes the most illuminating revelations come from the most unexpected sources!



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

Please make up the methodology section of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Military technologies and KLA Corporation's stock price (KLAC). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Your research team collected data from all across the internet, but mostly just used information from 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]]
"From Degrees to Dividends: The Stock Price Benefits of Bachelor's Degrees in Military Technologies for KLA Corporation"

[[ABSTRACT]]
In this research paper, we delve into the unexpected correlation between the number of Bachelor's degrees awarded in Military Technologies and the stock price of KLA Corporation (KLAC). Taking a tongue-in-cheek approach to data analysis, we aimed to answer the question: "Does degree accumulation in Military Technologies march in step with KLA Corporation's stock prices?" Armed with data from the National Center for Education Statistics and LSEG Analytics (Refinitiv) for the period 2012 to 2021, we uncovered a striking correlation coefficient of 0.9694555, with p < 0.01. It appears that the correlation between military technology degrees and KLA Corporation's stock price is not just coincidental; it's a commanding relationship!

Given the enormity of this finding, one might say it's a true "military-industrial complex" foray into the stock market. If we can make light of the correlation, it's safe to say that investing in military technology could be the "enlistment" KLA Corporation needs to boost its stock prices!

[[INTRODUCTION]]
The connection between education, particularly in the military technology field, and its impact on the stock prices of corporations may initially seem like a march into uncharted territory. However, our research aims to bring this relationship into sharp focus, shedding light on a correlation that is more than a mere coincidence. While some might find it hard to believe that Bachelor's degrees in Military Technologies can influence the stock price of a corporation, our findings suggest otherwise.
As we dive into this complex entanglement of academic pursuits and financial outcomes, it's hard to resist a good joke. What do military technology degrees and stock prices have in common? They both require carefully calculated strategies, and sometimes, a little bit of luck! But our research reveals there's more than just luck at play here. It seems that the correlation between the two is as strong as a well-orchestrated military operation.
The provocative data we uncovered leads us to ponder: are those pursuing military technology degrees unknowingly enlisting in a different kind of mission -- bolstering the stock performance of KLA Corporation? It's a stock market phenomenon that might just have investors saying, "give me an arsenal of military technology degrees, and watch my stock portfolio shoot up!"
Our findings serve as a clarion call to both academia and the financial realm, signaling that there's value in examining unexpected connections. As we march forward in this paper, we urge readers not to dismiss this correlation as an anomaly. It's time to take this "correlation in camouflage" seriously and recognize its potential impact on investment decisions.
In the words of a wise stock trader, "When it comes to military technology degrees and stock prices, those who ignore history might be destined to 'navy SEAL' their fate!"

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To initiate this unconventional investigation into the correlation between Bachelor's degrees awarded in Military Technologies and the stock price of KLA Corporation (KLAC), we implemented a multifaceted methodological approach that could rival the intricacies of military strategy. Our research team first marched to the beat of data collection, gathering information from the National Center for Education Statistics and LSEG Analytics (Refinitiv) for the years 2012 to 2021. The battle to procure this data was intense, but ultimately, we triumphed and brought our spoils of war to the battlefield of statistical analysis.

With the enlisted data in hand, we deployed the artillery of quantitative methods to scrutinize the relationship between military technology degrees and KLA Corporation's stock price. First, we calculated the annual number of Bachelor's degrees awarded in Military Technologies, donning our "data camouflage" to blend in with the statistical landscape. Then, we mustered a battalion of financial metrics to analyze the stock price fluctuations of KLA Corporation against this academic backdrop. It was a true symbiosis of academia and finance, where the syllabi of educational institutions intertwined with the stock index like a well-choreographed ballet.

Scouring through the data trenches, we conducted a rigorous time series analysis, akin to unraveling the complex movements of a military parade. This involved deciphering trends, seasonality, and any potential cyclical patterns in both the acquisition of military technology degrees and the undulations of KLA Corporation's stock price. Like a stealthy reconnaissance mission, we scrutinized every nook and cranny of the dataset, peeling back layers of numbers to uncover the hidden connections lurking within.

Having scrutinized the data lines of defense, we launched a robust statistical analysis, akin to a battalion conducting a thorough inspection of their armory. Our arsenal included correlation analysis, regression modeling, and hypothesis testing, all wielded with precision and purpose. We unleashed the forces of statistical significance, combatting the forces of randomness and chance, ultimately emerging victorious with our correlation coefficient of 0.9694555 and a p-value less than 0.01 - a triumph that could rival the most celebrated military conquests!

Amidst the rigorous statistical maneuvers, we also employed thematic analysis to dissect the qualitative undercurrents of military technology education and its potential influences on the stock market. This involved parsing through academic curricula, deciphering industry trends, and delving into the strategic implications of educational pursuits on corporate financial performance. It was a strategic interrogation of the nuances that captivated our attention, much like a military tactician dissecting the complexities of geopolitical landscapes.

With our data arsenal fully deployed and our statistical maneuvers executed with precision, we were poised to emerge from the trenches of methodological rigor with a groundbreaking understanding of the correlation between military technology degrees and KLA Corporation's stock price. In the words of Sun Tzu, "The general who wins the battle makes many calculations in his temple before the battle is fought."

Stay tuned for the next installment when we move on to our "Results" section and present our empirical findings in all their stock-market-meets-military-technology glory!


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

Please make up the results section of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Military technologies and KLA Corporation's stock price (KLAC). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Your research team collected data from all across the internet, but mostly just used information from National Center for Education Statistics and LSEG Analytics (Refinitiv) .

For the time period 2012 to 2021, you found a correlation 0.9694555, r-squared of 0.9398440, 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]]
"From Degrees to Dividends: The Stock Price Benefits of Bachelor's Degrees in Military Technologies for KLA Corporation"

[[ABSTRACT]]
In this research paper, we delve into the unexpected correlation between the number of Bachelor's degrees awarded in Military Technologies and the stock price of KLA Corporation (KLAC). Taking a tongue-in-cheek approach to data analysis, we aimed to answer the question: "Does degree accumulation in Military Technologies march in step with KLA Corporation's stock prices?" Armed with data from the National Center for Education Statistics and LSEG Analytics (Refinitiv) for the period 2012 to 2021, we uncovered a striking correlation coefficient of 0.9694555, with p < 0.01. It appears that the correlation between military technology degrees and KLA Corporation's stock price is not just coincidental; it's a commanding relationship!

Given the enormity of this finding, one might say it's a true "military-industrial complex" foray into the stock market. If we can make light of the correlation, it's safe to say that investing in military technology could be the "enlistment" KLA Corporation needs to boost its stock prices!

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
The connection between education, particularly in the military technology field, and its impact on the stock prices of corporations may initially seem like a march into uncharted territory. However, our research aims to bring this relationship into sharp focus, shedding light on a correlation that is more than a mere coincidence. While some might find it hard to believe that Bachelor's degrees in Military Technologies can influence the stock price of a corporation, our findings suggest otherwise.
As we dive into this complex entanglement of academic pursuits and financial outcomes, it's hard to resist a good joke. What do military technology degrees and stock prices have in common? They both require carefully calculated strategies, and sometimes, a little bit of luck! But our research reveals there's more than just luck at play here. It seems that the correlation between the two is as strong as a well-orchestrated military operation.
The provocative data we uncovered leads us to ponder: are those pursuing military technology degrees unknowingly enlisting in a different kind of mission -- bolstering the stock performance of KLA Corporation? It's a stock market phenomenon that might just have investors saying, "give me an arsenal of military technology degrees, and watch my stock portfolio shoot up!"
Our findings serve as a clarion call to both academia and the financial realm, signaling that there's value in examining unexpected connections. As we march forward in this paper, we urge readers not to dismiss this correlation as an anomaly. It's time to take this "correlation in camouflage" seriously and recognize its potential impact on investment decisions.
In the words of a wise stock trader, "When it comes to military technology degrees and stock prices, those who ignore history might be destined to 'navy SEAL' their fate!"

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The results of our analysis revealed a remarkably strong and positive correlation between the number of Bachelor's degrees awarded in Military Technologies and the stock price of KLA Corporation (KLAC) for the period of 2012 to 2021. The correlation coefficient was calculated to be 0.9694555, indicating a nearly perfect positive linear relationship. The r-squared value of 0.9398440 further supports the robustness of this correlation, explaining approximately 94% of the variation in KLA Corporation's stock price attributable to the number of military technology degrees awarded.

Fig. 1 displays the scatterplot illustrating the striking correlation between the two variables. The data points align so closely that one might mistake them for soldiers standing at attention, ready to march in lockstep with the stock prices. This correlation is solid as a bayonet and could be the ammunition investors need for their portfolios.

It seems that the pursuit of knowledge in military technology may not only bolster national defense but also have a substantial influence on the performance of KLA Corporation's stock. One might quip that investing in military technology education is the real "stock market boot camp" for ensuring financial success. This correlation isn't just a battlefield myth; it's a statistically sound relationship with significant implications for both academics and investors.

The statistical significance level, denoted by p < 0.01, reinforces the confidence in our findings, indicating that the observed correlation is highly unlikely to be a result of random chance. It's clear that this relationship goes beyond mere coincidence and demands further attention and exploration.

Our analysis offers compelling evidence of the unexpected connection between Bachelor's degrees in Military Technologies and the stock performance of KLA Corporation, and we opine that this correlation may have broader implications for understanding the interplay between education and the financial markets. It's a correlation that's no flash in the pan; this connection is as sturdy as a well-fortified military bunker. And much like the precision of military strategy, the link between these variables is both strong and strategic.


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

Please make up the discussion section of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Military technologies and KLA Corporation's stock price (KLAC). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Limit your response to 500 tokens.

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

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

[[TITLE]]
"From Degrees to Dividends: The Stock Price Benefits of Bachelor's Degrees in Military Technologies for KLA Corporation"

[[ABSTRACT]]
In this research paper, we delve into the unexpected correlation between the number of Bachelor's degrees awarded in Military Technologies and the stock price of KLA Corporation (KLAC). Taking a tongue-in-cheek approach to data analysis, we aimed to answer the question: "Does degree accumulation in Military Technologies march in step with KLA Corporation's stock prices?" Armed with data from the National Center for Education Statistics and LSEG Analytics (Refinitiv) for the period 2012 to 2021, we uncovered a striking correlation coefficient of 0.9694555, with p < 0.01. It appears that the correlation between military technology degrees and KLA Corporation's stock price is not just coincidental; it's a commanding relationship!

Given the enormity of this finding, one might say it's a true "military-industrial complex" foray into the stock market. If we can make light of the correlation, it's safe to say that investing in military technology could be the "enlistment" KLA Corporation needs to boost its stock prices!

[[LITERATURE REVIEW]]
Exploring the correlation between educational pursuits and financial outcomes has been a longstanding endeavor in the realm of economic and market research. Smith and Doe in "The Economics of Education" have delved into the impact of specific academic disciplines on career trajectories and income potential, shedding light on the often underappreciated interplay between education and financial success. However, their work, while comprehensive, did not anticipate the engaging correlation we are about to uncover in the realm of military technologies and stock prices.
In a similar vein, Jones et al. in "Educational Paths and Wealth Accumulation" have examined the relationship between educational qualifications and financial prosperity, providing valuable insights into the myriad factors that contribute to individuals' financial portfolios. Little did they know, however, that their research holds but a mere glimmer of the unexpected correlation we are poised to reveal.
Turning to the broader context of technological advancement and its implications for financial markets, "The Innovator's Dilemma" by Clayton M. Christensen presents a comprehensive analysis of how disruptive technologies shape corporate success and failure. While the book does not explicitly touch on military technologies, its exploration of the intertwining of technological innovation and market performance provides a sturdy foundation for understanding the broader dynamics at play.
Taking a more creative leap, the works of Tom Clancy, including "Clear and Present Danger" and "The Sum of All Fears," offer gripping narratives of military strategy and geopolitical tensions. Although these novels are, of course, fictional works, the themes of military technology, espionage, and international relations could inspire readers to consider the far-reaching implications of military technologies on real-world economic forces.
Stepping into the territory of the absurd, it is worth noting the less conventional sources that have shaped our understanding of this uncharted correlation. While conducting this literature review, the researchers stumbled upon unexpected insights in the unlikeliest of places. Who would have thought that the back of a shampoo bottle, with its musings on "marine minerals" and "arsenal of nutrients," could offer an offbeat perspective on the influence of military technologies on stock prices? Alas, sometimes the most illuminating revelations come from the most unexpected sources!


[[RESULTS]]
The results of our analysis revealed a remarkably strong and positive correlation between the number of Bachelor's degrees awarded in Military Technologies and the stock price of KLA Corporation (KLAC) for the period of 2012 to 2021. The correlation coefficient was calculated to be 0.9694555, indicating a nearly perfect positive linear relationship. The r-squared value of 0.9398440 further supports the robustness of this correlation, explaining approximately 94% of the variation in KLA Corporation's stock price attributable to the number of military technology degrees awarded.
Fig. 1 displays the scatterplot illustrating the striking correlation between the two variables. The data points align so closely that one might mistake them for soldiers standing at attention, ready to march in lockstep with the stock prices. This correlation is solid as a bayonet and could be the ammunition investors need for their portfolios.
It seems that the pursuit of knowledge in military technology may not only bolster national defense but also have a substantial influence on the performance of KLA Corporation's stock. One might quip that investing in military technology education is the real "stock market boot camp" for ensuring financial success. This correlation isn't just a battlefield myth; it's a statistically sound relationship with significant implications for both academics and investors.
The statistical significance level, denoted by p < 0.01, reinforces the confidence in our findings, indicating that the observed correlation is highly unlikely to be a result of random chance. It's clear that this relationship goes beyond mere coincidence and demands further attention and exploration.
Our analysis offers compelling evidence of the unexpected connection between Bachelor's degrees in Military Technologies and the stock performance of KLA Corporation, and we opine that this correlation may have broader implications for understanding the interplay between education and the financial markets. It's a correlation that's no flash in the pan; this connection is as sturdy as a well-fortified military bunker. And much like the precision of military strategy, the link between these variables is both strong and strategic.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The findings of this study provide robust evidence of a remarkably strong and positive correlation between the number of Bachelor's degrees awarded in Military Technologies and the stock price of KLA Corporation (KLAC). Our results align with prior research in the field of educational and financial outcomes, albeit with an intriguing and unexpected twist.

The correlation coefficient of 0.9694555, with a p-value of less than 0.01, underscores the substantive relationship between military technology education and KLA Corporation's stock performance. This correlation is not to be dismissed as mere "combat humor"; it is statistically compelling and worthy of serious consideration.

Harkening back to our literature review, while Smith and Doe's work in "The Economics of Education" laid the groundwork for our understanding of the impact of specific academic disciplines on financial success, it did not anticipate the compelling correlation we have unearthed in the realm of military technologies and stock prices. Similarly, while the work of Jones et al. shed light on the relationship between educational qualifications and financial prosperity, it failed to capture the commanding influence of military technology degrees on a corporation's stock price.

The unexpected correlation uncovered in this study underscores the need to expand the purview of research in educational and financial outcomes. It suggests that specific academic disciplines, particularly in the domain of military technologies, may wield a more substantial influence on market performance than previously assumed. It's not just a "stock market boot camp" quip; it's a profound insight into the interplay between education and financial markets.

Our findings also echo the spirit of Clayton M. Christensen's "The Innovator's Dilemma" by unraveling the hidden dynamics at play when disruptive technologies, including those in the military domain, intersect with corporate success. The unexpected correlation we have unveiled may well be considered a form of innovation in and of itself within the context of market dynamics.

The unmistakable alignment of data points in our scatterplot, akin to soldiers standing at attention, ready to march in sync with stock prices, serves as a compelling visual representation of the profound relationship between military technology knowledge and financial performance. It's not just a "military-industrial complex" foray into the stock market; it's a robust and strategic alliance.

In conclusion, this study's results provide compelling evidence of the unexpected connection between Bachelor's degrees in Military Technologies and the stock performance of KLA Corporation. Our findings serve as a clarion call for future research to delve deeper into the underlying mechanisms and implications of this correlation.

As we soldier on in the realm of economic and market research, it is imperative to remain open to unexpected correlations that may yield valuable insights. In the words of a seasoned strategist, "Sometimes, the most unexpected avenues lead to the most profound victories."


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

Please make up a short conclusion of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Military technologies and KLA Corporation's stock price (KLAC). You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences. Stay serious and dry most of the time, but then occasionally let your wit shine through.

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

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
"From Degrees to Dividends: The Stock Price Benefits of Bachelor's Degrees in Military Technologies for KLA Corporation"

[[ABSTRACT]]
In this research paper, we delve into the unexpected correlation between the number of Bachelor's degrees awarded in Military Technologies and the stock price of KLA Corporation (KLAC). Taking a tongue-in-cheek approach to data analysis, we aimed to answer the question: "Does degree accumulation in Military Technologies march in step with KLA Corporation's stock prices?" Armed with data from the National Center for Education Statistics and LSEG Analytics (Refinitiv) for the period 2012 to 2021, we uncovered a striking correlation coefficient of 0.9694555, with p < 0.01. It appears that the correlation between military technology degrees and KLA Corporation's stock price is not just coincidental; it's a commanding relationship!

Given the enormity of this finding, one might say it's a true "military-industrial complex" foray into the stock market. If we can make light of the correlation, it's safe to say that investing in military technology could be the "enlistment" KLA Corporation needs to boost its stock prices!

[[INTRDUCTION]]
The connection between education, particularly in the military technology field, and its impact on the stock prices of corporations may initially seem like a march into uncharted territory. However, our research aims to bring this relationship into sharp focus, shedding light on a correlation that is more than a mere coincidence. While some might find it hard to believe that Bachelor's degrees in Military Technologies can influence the stock price of a corporation, our findings suggest otherwise.
As we dive into this complex entanglement of academic pursuits and financial outcomes, it's hard to resist a good joke. What do military technology degrees and stock prices have in common? They both require carefully calculated strategies, and sometimes, a little bit of luck! But our research reveals there's more than just luck at play here. It seems that the correlation between the two is as strong as a well-orchestrated military operation.
The provocative data we uncovered leads us to ponder: are those pursuing military technology degrees unknowingly enlisting in a different kind of mission -- bolstering the stock performance of KLA Corporation? It's a stock market phenomenon that might just have investors saying, "give me an arsenal of military technology degrees, and watch my stock portfolio shoot up!"
Our findings serve as a clarion call to both academia and the financial realm, signaling that there's value in examining unexpected connections. As we march forward in this paper, we urge readers not to dismiss this correlation as an anomaly. It's time to take this "correlation in camouflage" seriously and recognize its potential impact on investment decisions.
In the words of a wise stock trader, "When it comes to military technology degrees and stock prices, those who ignore history might be destined to 'navy SEAL' their fate!"

[[RESULTS]]
The results of our analysis revealed a remarkably strong and positive correlation between the number of Bachelor's degrees awarded in Military Technologies and the stock price of KLA Corporation (KLAC) for the period of 2012 to 2021. The correlation coefficient was calculated to be 0.9694555, indicating a nearly perfect positive linear relationship. The r-squared value of 0.9398440 further supports the robustness of this correlation, explaining approximately 94% of the variation in KLA Corporation's stock price attributable to the number of military technology degrees awarded.
Fig. 1 displays the scatterplot illustrating the striking correlation between the two variables. The data points align so closely that one might mistake them for soldiers standing at attention, ready to march in lockstep with the stock prices. This correlation is solid as a bayonet and could be the ammunition investors need for their portfolios.
It seems that the pursuit of knowledge in military technology may not only bolster national defense but also have a substantial influence on the performance of KLA Corporation's stock. One might quip that investing in military technology education is the real "stock market boot camp" for ensuring financial success. This correlation isn't just a battlefield myth; it's a statistically sound relationship with significant implications for both academics and investors.
The statistical significance level, denoted by p < 0.01, reinforces the confidence in our findings, indicating that the observed correlation is highly unlikely to be a result of random chance. It's clear that this relationship goes beyond mere coincidence and demands further attention and exploration.
Our analysis offers compelling evidence of the unexpected connection between Bachelor's degrees in Military Technologies and the stock performance of KLA Corporation, and we opine that this correlation may have broader implications for understanding the interplay between education and the financial markets. It's a correlation that's no flash in the pan; this connection is as sturdy as a well-fortified military bunker. And much like the precision of military strategy, the link between these variables is both strong and strategic.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our research has brought to light an astonishing correlation between the number of Bachelor's degrees awarded in Military Technologies and the stock price of KLA Corporation (KLAC). The robust correlation coefficient of 0.9694555, coupled with an r-squared value of 0.9398440, highlights the nearly perfect positive linear relationship between these seemingly disparate variables. The statistical significance level, with p < 0.01, reinforces the credence of this connection, indicating that it's not a fluke but a substantial and noteworthy relationship.

This illuminating correlation might lead one to say that investing in military technology education truly is the "bomb" for boosting stock prices! But seriously, folks, the seriousness of this finding cannot be understated, and its potential impact on investment decisions should not be overlooked. It's a correlation as solid as a tank and could hold the "key" to understanding the intricate interplay between education and financial markets.

The remarkable strength of this correlation brings a new meaning to the phrase "joining forces." It seems that not only do those pursuing military technology degrees serve to bolster national defense, but they may also unwittingly be enlisted in a different kind of mission – fortifying the stock performance of KLA Corporation. This correlation is not just a passing "faddish" trend but rather a significant connection with substantial implications for both academia and the realm of investments.

As we march towards the end of this paper, we emphatically assert that no more research is needed in this area. We have forged a path through the data, and it's clear that the connection between military technology degrees and KLA Corporation's stock price is as steadfast as a military formation at attention. It's time for investors to take note and potentially consider diversifying their portfolios with military technology education. After all, who wouldn't want a "degree-fense" strategy for a robust investment portfolio?


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 From Degrees to Dividends: The Stock Price Benefits of Bachelor's Degrees in Military Technologies for KLA Corporation. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Defense-Tech Economics


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 From Degrees to Dividends: The Stock Price Benefits of Bachelor's Degrees in Military Technologies for KLA Corporation. Respond only with the name of a fictional organization.

ChatGPT:

The Society for Advanced Military Technology Studies (S.A.M.T.S.)


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 From Degrees to Dividends: The Stock Price Benefits of Bachelor's Degrees in Military Technologies for KLA Corporation with an abstract of In this research paper, we delve into the unexpected correlation between the number of Bachelor's degrees awarded in Military Technologies and the stock price of KLA Corporation (KLAC). Taking a tongue-in-cheek approach to data analysis, we aimed to answer the question: "Does degree accumulation in Military Technologies march in step with KLA Corporation's stock prices?" Armed with data from the National Center for Education Statistics and LSEG Analytics (Refinitiv) for the period 2012 to 2021, we uncovered a striking correlation coefficient of 0.9694555, with p < 0.01. It appears that the correlation between military technology degrees and KLA Corporation's stock price is not just coincidental; it's a commanding relationship!
Given the enormity of this finding, one might say it's a true "military-industrial complex" foray into the stock market. If we can make light of the correlation, it's safe to say that investing in military technology could be the "enlistment" KLA Corporation needs to boost its stock prices!

ChatGPT:

"Bachelor's degrees in Military Technologies", "stock price benefits", "KLA Corporation", "correlation coefficient", "National Center for Education Statistics", "LSEG Analytics", "military technology degrees", "stock market correlation", "investing in military technology"

*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

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

See what else correlates with KLA Corporation's stock price (KLAC)

Correlation r = 0.9694555 (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.9398440 (Coefficient of determination)
This means 94% of the change in the one variable (i.e., KLA Corporation's stock price (KLAC)) 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 3.7E-6. 0.0000036703051737973865000000
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.97 in 0.00037% of random cases. Said differently, if you correlated 272,457 random variables You don't actually need 272 thousand 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.87, 0.99 ] 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
KLA Corporation's stock price (KLAC) (Stock price)39.1739.2451.4670.6268.0378.97105.7687.53180.78262.06




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([39.17,39.24,51.46,70.62,68.03,78.97,105.76,87.53,180.78,262.06,])
array_1_name = "Bachelor's degrees awarded in Military technologies"
array_2_name = "KLA Corporation's stock price (KLAC)"

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

I'm grateful for your review!


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

CC BY 4.0