about · email me · subscribe
Spurious correlation #1,965 · 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 Costco Wholesale's stock price (COST).  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 more students became experts in military technologies, they devised efficient strategies for restocking and organizing goods at Costco, leading to lower operational costs and higher profits for the company. After all, nothing ensures a well-stocked store quite like a battalion of tech-savvy, highly organized Costco employees!

Model: dalle-3
Prompt: Generate an image of a group of military technology and applied sciences graduates proudly displaying their Bachelor's degree certificates while wearing their graduation caps and gowns. Behind them, a large digital display shows the stock price of Costco Wholesale soaring high, accompanied by the company's logo. The graduates are celebrating their accomplishment as they look towards the screen, symbolizing the successful intersection of academia and the business world. The overall scene should have a sense of achievement and pride, with a futuristic and tech-savvy vibe. 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 Costco Wholesale's stock price. 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: An image that looks like it is a scene from 'Star Wars' A Discovery magazine cover image Futuristic Oragami Voxel art
ChatGPT: A Discovery magazine cover image

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 Costco Wholesale's stock price together. Keep the description simple.
ChatGPT: In the scene, a group of military technology and applied sciences graduates are proudly holding their Bachelor's degree certificates, wearing their graduation caps and gowns. Behind them, a large digital display shows the stock price of Costco Wholesale soaring high, accompanied by the company's logo. The graduates are celebrating their accomplishment as they look towards the screen, symbolizing the successful intersection of academia and the business world.

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 Discovery magazine cover image ] and depicting this scene: In the scene, a group of military technology and applied sciences graduates are proudly holding their Bachelor's degree certificates, wearing their graduation caps and gowns. Behind them, a large digital display shows the stock price of Costco Wholesale soaring high, accompanied by the company's logo. The graduates are celebrating their accomplishment as they look towards the screen, symbolizing the successful intersection of academia and the business world. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Generate an image of a group of military technology and applied sciences graduates proudly displaying their Bachelor's degree certificates while wearing their graduation caps and gowns. Behind them, a large digital display shows the stock price of Costco Wholesale soaring high, accompanied by the company's logo. The graduates are celebrating their accomplishment as they look towards the screen, symbolizing the successful intersection of academia and the business world. The overall scene should have a sense of achievement and pride, with a futuristic and tech-savvy vibe.

*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 Costco Wholesale's stock price (COST) to increase. Add a funny one-liner at the end.

AI academic paper

(Because p < 0.01)
Shield Stocks: The Battle-Tested Connection Between Military Technologies and Costco Wholesale's Stock Price

The Journal of Military Technology and Retail Finance

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

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

Make the title a clever pun.

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.9937476 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]]
"Shield Stocks: The Battle-Tested Connection Between Military Technologies and Costco Wholesale's Stock Price"

[[ABSTRACT]]
This research delves into the intriguing question of whether there is a significant connection between the number of Bachelor's degrees awarded in Military Technologies and Applied Sciences and the stock price of Costco Wholesale (COST). Utilizing data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), a detailed analysis was conducted for the period spanning 2012 to 2021. The findings revealed a remarkably high correlation coefficient of 0.9937476 at a significance level of p < 0.01, signifying a compelling relationship between the two variables.

Through our investigation, it became clear that the number of individuals being awarded degrees in military technologies and applied sciences could indeed impact the stock price of Costco Wholesale. This correlation may prove to be a real "cost-saving" measure for investors seeking to capitalize on this curious connection. Result and full study at your "COST"!



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

Please make up the introduction section of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Military technologies and applied sciences and Costco Wholesale's stock price (COST). 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]]
"Shield Stocks: The Battle-Tested Connection Between Military Technologies and Costco Wholesale's Stock Price"

[[ABSTRACT]]
This research delves into the intriguing question of whether there is a significant connection between the number of Bachelor's degrees awarded in Military Technologies and Applied Sciences and the stock price of Costco Wholesale (COST). Utilizing data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), a detailed analysis was conducted for the period spanning 2012 to 2021. The findings revealed a remarkably high correlation coefficient of 0.9937476 at a significance level of p < 0.01, signifying a compelling relationship between the two variables.

Through our investigation, it became clear that the number of individuals being awarded degrees in military technologies and applied sciences could indeed impact the stock price of Costco Wholesale. This correlation may prove to be a real "cost-saving" measure for investors seeking to capitalize on this curious connection. Result and full study at your "COST"!


-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

The connection between educational trends and stock market performance has been a subject of considerable interest and debate. As the market continuously navigates through various external factors, the influence of educational fields on stock prices has become a captivating area of research. Against this backdrop, we set out to investigate the potential relationship between the number of Bachelor's degrees awarded in Military Technologies and Applied Sciences and the stock price of Costco Wholesale (COST).

The idea for this study stemmed from a casual conversation over some military-themed snacks at a local convenience store. One of the researchers quipped, "I wonder if there are any military-themed connections to Costco's stock performance. Maybe they are strategizing for a price war!" Little did we know that this lighthearted exchange would eventually lead to a thought-provoking and data-intensive research endeavor.

Scholars and investors alike have always been keen to unearth hidden patterns and anomalies in the stock market. And with this study, we aim to contribute to the ongoing discourse by shedding light on a unique, and perhaps unexpected, relationship.

Now, armed with statistical tools and a knack for uncovering correlations, we dive into the world of military technologies and wholesale giants, ready to tackle this intriguing puzzle. It's time to march through the data and uncover whether there's truly a "stock strategy" hidden beneath the surface.


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

Please make up a literature review section of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Military technologies and applied sciences and Costco Wholesale's stock price (COST). 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 cite some social media posts you read that seem to be related.

Here is the title and abstract of the paper:
[[TITLE]]
"Shield Stocks: The Battle-Tested Connection Between Military Technologies and Costco Wholesale's Stock Price"

[[ABSTRACT]]
This research delves into the intriguing question of whether there is a significant connection between the number of Bachelor's degrees awarded in Military Technologies and Applied Sciences and the stock price of Costco Wholesale (COST). Utilizing data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), a detailed analysis was conducted for the period spanning 2012 to 2021. The findings revealed a remarkably high correlation coefficient of 0.9937476 at a significance level of p < 0.01, signifying a compelling relationship between the two variables.

Through our investigation, it became clear that the number of individuals being awarded degrees in military technologies and applied sciences could indeed impact the stock price of Costco Wholesale. This correlation may prove to be a real "cost-saving" measure for investors seeking to capitalize on this curious connection. Result and full study at your "COST"!


-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
The connection between educational trends and stock market performance has been a subject of considerable interest and debate. As the market continuously navigates through various external factors, the influence of educational fields on stock prices has become a captivating area of research. Against this backdrop, we set out to investigate the potential relationship between the number of Bachelor's degrees awarded in Military Technologies and Applied Sciences and the stock price of Costco Wholesale (COST).
The idea for this study stemmed from a casual conversation over some military-themed snacks at a local convenience store. One of the researchers quipped, "I wonder if there are any military-themed connections to Costco's stock performance. Maybe they are strategizing for a price war!" Little did we know that this lighthearted exchange would eventually lead to a thought-provoking and data-intensive research endeavor.
Scholars and investors alike have always been keen to unearth hidden patterns and anomalies in the stock market. And with this study, we aim to contribute to the ongoing discourse by shedding light on a unique, and perhaps unexpected, relationship.
Now, armed with statistical tools and a knack for uncovering correlations, we dive into the world of military technologies and wholesale giants, ready to tackle this intriguing puzzle. It's time to march through the data and uncover whether there's truly a "stock strategy" hidden beneath the surface.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

Several studies have explored the relationship between educational trends and stock market performance, providing valuable insights into the potential impact of academic disciplines on market dynamics. Smith et al. (2015) delve into the influence of educational fields on stock prices, emphasizing the critical role of specialized knowledge and skills in shaping market outcomes. Doe and Jones (2018) extend this line of inquiry by examining the connection between specific academic disciplines, such as Military Technologies and Applied Sciences, and stock price movements within the retail industry.

In "The Art of War" by Sun Tzu, the ancient military strategist wittily remarked, "In the midst of chaos, there is also opportunity." Similarly, in our investigation, we seek to uncover the hidden opportunities and correlations between the awarding of Bachelor's degrees in Military Technologies and Applied Sciences and the stock price of Costco Wholesale. Perhaps this should be considered an example of "stock warfare" in the modern marketplace.

Exploring the intersection of military technologies and stock performance, our research draws inspiration from non-fiction works such as "Weaponized Lies" by Daniel J. Levitin and "The Innovators" by Walter Isaacson. However, the potential link between Costco Wholesale's stock price and Bachelor's degrees conferred in military technologies also piques the imagination, evoking themes reminiscent of "War and Peace" by Leo Tolstoy and "Catch-22" by Joseph Heller. After all, navigating the stock market can sometimes feel like a comedic tragedy with a hint of absurdity.

On a more contemporary note, social media platforms have also become a source of intriguing insights. In a Twitter post by @StockSavvySam, the observation that "Costco's stocks seem to march to the beat of a different drum. Could military-related degrees be the secret weapon behind their performance?" offers a lighthearted yet thought-provoking perspective on the potential underlying forces driving Costco's stock price movement.

As we embark on this empirical journey, we set out to uncover the unexpected connections and humorous quips that may arise from exploring the relationship between Bachelor's degrees in Military Technologies and Applied Sciences and the stock price of Costco Wholesale. It's time to unearth the statistical ammunition and dive deep into the data trenches, armed with puns and data in equal measure.


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

Please make up the methodology section of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Military technologies and applied sciences and Costco Wholesale's stock price (COST). 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]]
"Shield Stocks: The Battle-Tested Connection Between Military Technologies and Costco Wholesale's Stock Price"

[[ABSTRACT]]
This research delves into the intriguing question of whether there is a significant connection between the number of Bachelor's degrees awarded in Military Technologies and Applied Sciences and the stock price of Costco Wholesale (COST). Utilizing data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), a detailed analysis was conducted for the period spanning 2012 to 2021. The findings revealed a remarkably high correlation coefficient of 0.9937476 at a significance level of p < 0.01, signifying a compelling relationship between the two variables.

Through our investigation, it became clear that the number of individuals being awarded degrees in military technologies and applied sciences could indeed impact the stock price of Costco Wholesale. This correlation may prove to be a real "cost-saving" measure for investors seeking to capitalize on this curious connection. Result and full study at your "COST"!


[[INTRODUCTION]]
The connection between educational trends and stock market performance has been a subject of considerable interest and debate. As the market continuously navigates through various external factors, the influence of educational fields on stock prices has become a captivating area of research. Against this backdrop, we set out to investigate the potential relationship between the number of Bachelor's degrees awarded in Military Technologies and Applied Sciences and the stock price of Costco Wholesale (COST).
The idea for this study stemmed from a casual conversation over some military-themed snacks at a local convenience store. One of the researchers quipped, "I wonder if there are any military-themed connections to Costco's stock performance. Maybe they are strategizing for a price war!" Little did we know that this lighthearted exchange would eventually lead to a thought-provoking and data-intensive research endeavor.
Scholars and investors alike have always been keen to unearth hidden patterns and anomalies in the stock market. And with this study, we aim to contribute to the ongoing discourse by shedding light on a unique, and perhaps unexpected, relationship.
Now, armed with statistical tools and a knack for uncovering correlations, we dive into the world of military technologies and wholesale giants, ready to tackle this intriguing puzzle. It's time to march through the data and uncover whether there's truly a "stock strategy" hidden beneath the surface.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To commence our investigation, we gathered data on the number of Bachelor's degrees conferred in Military Technologies and Applied Sciences from the National Center for Education Statistics. This involved traversing through an arsenal of academic databases and wading through the digital battleground of higher education records. Our data collection process was as meticulous as a military inspection, leaving no degree unaccounted for.

Once we had amassed this academic ammunition, we shifted our focus to the financial frontline and extracted daily stock price data for Costco Wholesale (COST) from LSEG Analytics (Refinitiv). Like seasoned scouts, our research team scoured the market terrain for the precise information needed to scrutinize the correlation between educational accolades and stock performance.

With these datasets in hand, we set out to conduct a rigorous quantitative analysis. We employed a series of statistical tools, including correlation analysis and regression modeling, to assess the relationship between the number of Bachelor's degrees in Military Technologies and Applied Sciences and Costco Wholesale's stock price. This statistical reconnaissance allowed us to gauge the strength and direction of any potential connection and provided a foundation for our subsequent interpretation of the findings.

To ensure the robustness of our analysis, we also implemented a time series analysis to examine temporal patterns and fluctuations within the data. This involved tracking the ebb and flow of both degree awards and stock prices over the period from 2012 to 2021. Much like military strategists plotting tactical movements, we navigated through the temporal landscape, meticulously mapping out the dynamics of education and finance.

In parallel to these analyses, we conducted sensitivity tests to assess the stability of the observed relationship under varying conditions. This involved subjecting our data to rigorous stress tests, scrutinizing it from all angles to ensure that the revealed connection was not merely a statistical coincidence, but rather a robust and enduring association.

Amidst the serious data crunching and methodological maneuvering, it's worth noting that we did encounter a fair share of statistical skirmishes. It turns out that navigating through the intricate web of data can sometimes feel like traversing a minefield – one misstep and the entire analysis could detonate. However, armed with statistical expertise and a touch of humor, we deftly defused any analytical mines that lay in our path and emerged unscathed, ready to unveil our findings.

Our methodology was not without its comedic relief. As we delved into the intricacies of military technologies and stock prices, we couldn't help but be reminded of the saying, "Why don't stock traders ever go to war? Because they prefer a bull market over a bear market!" Despite the occasional statistical quagmires and humorous distractions, our commitment to methodological rigor remained unwavering.

With our data carefully assembled and our statistical arsenal primed, we were ready to embark on our analysis, armed with an unwavering determination to uncover the hidden connections between military technologies and Costco's stock performance.


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

Please make up the results section of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Military technologies and applied sciences and Costco Wholesale's stock price (COST). 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.9937476, r-squared of 0.9875344, 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]]
"Shield Stocks: The Battle-Tested Connection Between Military Technologies and Costco Wholesale's Stock Price"

[[ABSTRACT]]
This research delves into the intriguing question of whether there is a significant connection between the number of Bachelor's degrees awarded in Military Technologies and Applied Sciences and the stock price of Costco Wholesale (COST). Utilizing data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), a detailed analysis was conducted for the period spanning 2012 to 2021. The findings revealed a remarkably high correlation coefficient of 0.9937476 at a significance level of p < 0.01, signifying a compelling relationship between the two variables.

Through our investigation, it became clear that the number of individuals being awarded degrees in military technologies and applied sciences could indeed impact the stock price of Costco Wholesale. This correlation may prove to be a real "cost-saving" measure for investors seeking to capitalize on this curious connection. Result and full study at your "COST"!


-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
The connection between educational trends and stock market performance has been a subject of considerable interest and debate. As the market continuously navigates through various external factors, the influence of educational fields on stock prices has become a captivating area of research. Against this backdrop, we set out to investigate the potential relationship between the number of Bachelor's degrees awarded in Military Technologies and Applied Sciences and the stock price of Costco Wholesale (COST).
The idea for this study stemmed from a casual conversation over some military-themed snacks at a local convenience store. One of the researchers quipped, "I wonder if there are any military-themed connections to Costco's stock performance. Maybe they are strategizing for a price war!" Little did we know that this lighthearted exchange would eventually lead to a thought-provoking and data-intensive research endeavor.
Scholars and investors alike have always been keen to unearth hidden patterns and anomalies in the stock market. And with this study, we aim to contribute to the ongoing discourse by shedding light on a unique, and perhaps unexpected, relationship.
Now, armed with statistical tools and a knack for uncovering correlations, we dive into the world of military technologies and wholesale giants, ready to tackle this intriguing puzzle. It's time to march through the data and uncover whether there's truly a "stock strategy" hidden beneath the surface.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The analysis of the data collected from the National Center for Education Statistics and LSEG Analytics (Refinitiv) revealed a strikingly robust connection between the number of Bachelor's degrees awarded in Military Technologies and Applied Sciences and the stock price of Costco Wholesale (COST). For the period from 2012 to 2021, we found a remarkably high correlation coefficient of 0.9937476, establishing a vigorous positive relationship between the two variables. This pronounced correlation indicates a strong tendency for changes in the number of degrees awarded in military technologies and applied sciences to be mirrored by corresponding fluctuations in Costco's stock price.

It appears that while military tactics involve strategic maneuvers, military technologies may also have a strategic impact on stock market performance. It's almost as if investors have been unwittingly engaged in a "stock battle" related to military technologies. One could say that the stock market is deploying "cost-effective" strategies without even realizing it.

The r-squared value of 0.9875344 further emphasizes the compelling nature of this relationship, indicating that approximately 98.75% of the variability in Costco's stock price can be explained by changes in the number of Bachelor's degrees awarded in military technologies and applied sciences. It seems that while military technologies are designed for defense and offense, they may also have an offensive impact on stock prices.

The low p-value of less than 0.01 confirms the statistical significance of this correlation, providing strong evidence in support of the relationship between education in military technologies and applied sciences and the performance of Costco Wholesale's stock. It's as if this correlation is reporting for duty, ready to stand the test of statistical scrutiny.

The scatterplot (Fig. 1) visually represents the substantial correlation between the two variables, depicting a clear pattern of movement in tandem. It's as if the data points are standing in formation, marching together toward an unmistakable connection. It appears that indeed, the interplay between military technologies and Costco's stock price has not gone unnoticed by statistical analysis.

Overall, the findings of this study highlight the surprising link between educational trends in military technologies and applied sciences and the stock price of Costco Wholesale. It seems that military technologies may not only be shaping the future of defense, but also quietly exerting an influence on the world of finance. This correlation may very well be one of the best-kept "stock secrets" of our time – a true revelation camouflaged within the data.


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

Please make up the discussion section of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Military technologies and applied sciences and Costco Wholesale's stock price (COST). 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]]
"Shield Stocks: The Battle-Tested Connection Between Military Technologies and Costco Wholesale's Stock Price"

[[ABSTRACT]]
This research delves into the intriguing question of whether there is a significant connection between the number of Bachelor's degrees awarded in Military Technologies and Applied Sciences and the stock price of Costco Wholesale (COST). Utilizing data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), a detailed analysis was conducted for the period spanning 2012 to 2021. The findings revealed a remarkably high correlation coefficient of 0.9937476 at a significance level of p < 0.01, signifying a compelling relationship between the two variables.

Through our investigation, it became clear that the number of individuals being awarded degrees in military technologies and applied sciences could indeed impact the stock price of Costco Wholesale. This correlation may prove to be a real "cost-saving" measure for investors seeking to capitalize on this curious connection. Result and full study at your "COST"!


[[LITERATURE REVIEW]]
Several studies have explored the relationship between educational trends and stock market performance, providing valuable insights into the potential impact of academic disciplines on market dynamics. Smith et al. (2015) delve into the influence of educational fields on stock prices, emphasizing the critical role of specialized knowledge and skills in shaping market outcomes. Doe and Jones (2018) extend this line of inquiry by examining the connection between specific academic disciplines, such as Military Technologies and Applied Sciences, and stock price movements within the retail industry.
In "The Art of War" by Sun Tzu, the ancient military strategist wittily remarked, "In the midst of chaos, there is also opportunity." Similarly, in our investigation, we seek to uncover the hidden opportunities and correlations between the awarding of Bachelor's degrees in Military Technologies and Applied Sciences and the stock price of Costco Wholesale. Perhaps this should be considered an example of "stock warfare" in the modern marketplace.
Exploring the intersection of military technologies and stock performance, our research draws inspiration from non-fiction works such as "Weaponized Lies" by Daniel J. Levitin and "The Innovators" by Walter Isaacson. However, the potential link between Costco Wholesale's stock price and Bachelor's degrees conferred in military technologies also piques the imagination, evoking themes reminiscent of "War and Peace" by Leo Tolstoy and "Catch-22" by Joseph Heller. After all, navigating the stock market can sometimes feel like a comedic tragedy with a hint of absurdity.
On a more contemporary note, social media platforms have also become a source of intriguing insights. In a Twitter post by @StockSavvySam, the observation that "Costco's stocks seem to march to the beat of a different drum. Could military-related degrees be the secret weapon behind their performance?" offers a lighthearted yet thought-provoking perspective on the potential underlying forces driving Costco's stock price movement.
As we embark on this empirical journey, we set out to uncover the unexpected connections and humorous quips that may arise from exploring the relationship between Bachelor's degrees in Military Technologies and Applied Sciences and the stock price of Costco Wholesale. It's time to unearth the statistical ammunition and dive deep into the data trenches, armed with puns and data in equal measure.

[[RESULTS]]
The analysis of the data collected from the National Center for Education Statistics and LSEG Analytics (Refinitiv) revealed a strikingly robust connection between the number of Bachelor's degrees awarded in Military Technologies and Applied Sciences and the stock price of Costco Wholesale (COST). For the period from 2012 to 2021, we found a remarkably high correlation coefficient of 0.9937476, establishing a vigorous positive relationship between the two variables. This pronounced correlation indicates a strong tendency for changes in the number of degrees awarded in military technologies and applied sciences to be mirrored by corresponding fluctuations in Costco's stock price.
It appears that while military tactics involve strategic maneuvers, military technologies may also have a strategic impact on stock market performance. It's almost as if investors have been unwittingly engaged in a "stock battle" related to military technologies. One could say that the stock market is deploying "cost-effective" strategies without even realizing it.
The r-squared value of 0.9875344 further emphasizes the compelling nature of this relationship, indicating that approximately 98.75% of the variability in Costco's stock price can be explained by changes in the number of Bachelor's degrees awarded in military technologies and applied sciences. It seems that while military technologies are designed for defense and offense, they may also have an offensive impact on stock prices.
The low p-value of less than 0.01 confirms the statistical significance of this correlation, providing strong evidence in support of the relationship between education in military technologies and applied sciences and the performance of Costco Wholesale's stock. It's as if this correlation is reporting for duty, ready to stand the test of statistical scrutiny.
The scatterplot (Fig. 1) visually represents the substantial correlation between the two variables, depicting a clear pattern of movement in tandem. It's as if the data points are standing in formation, marching together toward an unmistakable connection. It appears that indeed, the interplay between military technologies and Costco's stock price has not gone unnoticed by statistical analysis.
Overall, the findings of this study highlight the surprising link between educational trends in military technologies and applied sciences and the stock price of Costco Wholesale. It seems that military technologies may not only be shaping the future of defense, but also quietly exerting an influence on the world of finance. This correlation may very well be one of the best-kept "stock secrets" of our time – a true revelation camouflaged within the data.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The results of our study provide compelling evidence in support of the notion that the number of Bachelor's degrees awarded in Military Technologies and Applied Sciences is significantly correlated with the stock price of Costco Wholesale (COST). The high correlation coefficient of 0.9937476 at a significance level of p < 0.01 demonstrates a robust and undeniable relationship between these variables. It's as if military precision has been covertly at play in the world of stock market fluctuations. You might say that these findings really "march to the beat" of a certain peculiar drum.

In line with the literature review, our findings are consistent with prior research that has explored the impact of academic disciplines on market dynamics. It appears that specialized knowledge and skills, particularly in industries related to military technologies, may indeed influence stock price movements. This association offers an intriguing insight into the potential interplay between education and financial markets – a true case of "military might" influencing market movements.

Additionally, the connection between military technologies and Costco's stock performance seems to echo the ancient wisdom of Sun Tzu, who famously stated, "In the midst of chaos, there is also opportunity." This correlation suggests that amidst the chaos of market fluctuations, there may be a hidden opportunity driven by the awarding of degrees in military technologies and applied sciences. It's as if the data itself has waged a successful "stock warfare" campaign.

Our results also align with non-fiction works that have examined the intersection of technology and market performance, reinforcing the idea that military technologies may play a significant role in shaping stock price dynamics. Who would have guessed that "Weaponized Lies" and "The Innovators" would find a practical application in the field of stock market analysis? Perhaps this is what they mean by "market weaponry."

Moreover, the strong statistical support for this relationship, as indicated by the r-squared value of 0.9875344 and the low p-value, underscores the significance of our findings. It's as if this correlation is reporting for duty, fully equipped with statistical firepower to defend its validity. One might humorously say that this correlation is truly on a "stock mission" to prove its worth.

The visual representation of the substantial correlation in the scatterplot further enhances the clarity of this relationship, painting a clear picture of the synchronized movement of the two variables. In a sense, it's as if the data points themselves are executing a perfectly coordinated march, illustrating an undeniable connection between education in military technologies and the stock price of Costco Wholesale. It seems that in this case, the numbers are indeed "marching in line" with the trends in military education.

In sum, our study reveals a thought-provoking relationship between the awarding of Bachelor's degrees in Military Technologies and Applied Sciences and the stock price of Costco Wholesale. This unexpected correlation not only sheds light on the potential impact of education on financial markets, but also adds a touch of humor to the otherwise serious realm of stock market analysis. It appears that amidst the complexities of the stock market, there may be a simplified "stock secret" hidden in the educational data – a revelation camouflaged within the statistical battlefield.


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

Please make up a short conclusion of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Military technologies and applied sciences and Costco Wholesale's stock price (COST). 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]]
"Shield Stocks: The Battle-Tested Connection Between Military Technologies and Costco Wholesale's Stock Price"

[[ABSTRACT]]
This research delves into the intriguing question of whether there is a significant connection between the number of Bachelor's degrees awarded in Military Technologies and Applied Sciences and the stock price of Costco Wholesale (COST). Utilizing data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), a detailed analysis was conducted for the period spanning 2012 to 2021. The findings revealed a remarkably high correlation coefficient of 0.9937476 at a significance level of p < 0.01, signifying a compelling relationship between the two variables.

Through our investigation, it became clear that the number of individuals being awarded degrees in military technologies and applied sciences could indeed impact the stock price of Costco Wholesale. This correlation may prove to be a real "cost-saving" measure for investors seeking to capitalize on this curious connection. Result and full study at your "COST"!


[[INTRDUCTION]]
The connection between educational trends and stock market performance has been a subject of considerable interest and debate. As the market continuously navigates through various external factors, the influence of educational fields on stock prices has become a captivating area of research. Against this backdrop, we set out to investigate the potential relationship between the number of Bachelor's degrees awarded in Military Technologies and Applied Sciences and the stock price of Costco Wholesale (COST).
The idea for this study stemmed from a casual conversation over some military-themed snacks at a local convenience store. One of the researchers quipped, "I wonder if there are any military-themed connections to Costco's stock performance. Maybe they are strategizing for a price war!" Little did we know that this lighthearted exchange would eventually lead to a thought-provoking and data-intensive research endeavor.
Scholars and investors alike have always been keen to unearth hidden patterns and anomalies in the stock market. And with this study, we aim to contribute to the ongoing discourse by shedding light on a unique, and perhaps unexpected, relationship.
Now, armed with statistical tools and a knack for uncovering correlations, we dive into the world of military technologies and wholesale giants, ready to tackle this intriguing puzzle. It's time to march through the data and uncover whether there's truly a "stock strategy" hidden beneath the surface.

[[RESULTS]]
The analysis of the data collected from the National Center for Education Statistics and LSEG Analytics (Refinitiv) revealed a strikingly robust connection between the number of Bachelor's degrees awarded in Military Technologies and Applied Sciences and the stock price of Costco Wholesale (COST). For the period from 2012 to 2021, we found a remarkably high correlation coefficient of 0.9937476, establishing a vigorous positive relationship between the two variables. This pronounced correlation indicates a strong tendency for changes in the number of degrees awarded in military technologies and applied sciences to be mirrored by corresponding fluctuations in Costco's stock price.
It appears that while military tactics involve strategic maneuvers, military technologies may also have a strategic impact on stock market performance. It's almost as if investors have been unwittingly engaged in a "stock battle" related to military technologies. One could say that the stock market is deploying "cost-effective" strategies without even realizing it.
The r-squared value of 0.9875344 further emphasizes the compelling nature of this relationship, indicating that approximately 98.75% of the variability in Costco's stock price can be explained by changes in the number of Bachelor's degrees awarded in military technologies and applied sciences. It seems that while military technologies are designed for defense and offense, they may also have an offensive impact on stock prices.
The low p-value of less than 0.01 confirms the statistical significance of this correlation, providing strong evidence in support of the relationship between education in military technologies and applied sciences and the performance of Costco Wholesale's stock. It's as if this correlation is reporting for duty, ready to stand the test of statistical scrutiny.
The scatterplot (Fig. 1) visually represents the substantial correlation between the two variables, depicting a clear pattern of movement in tandem. It's as if the data points are standing in formation, marching together toward an unmistakable connection. It appears that indeed, the interplay between military technologies and Costco's stock price has not gone unnoticed by statistical analysis.
Overall, the findings of this study highlight the surprising link between educational trends in military technologies and applied sciences and the stock price of Costco Wholesale. It seems that military technologies may not only be shaping the future of defense, but also quietly exerting an influence on the world of finance. This correlation may very well be one of the best-kept "stock secrets" of our time – a true revelation camouflaged within the data.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, this study has provided compelling evidence of a robust and significant relationship between the number of Bachelor's degrees awarded in Military Technologies and Applied Sciences and the stock price of Costco Wholesale (COST). The remarkably high correlation coefficient of 0.9937476 at a significance level of p < 0.01 indicates a strong association between these seemingly disparate variables. It seems that the market may have been taking its cues from the barracks all along, leading to a "stock market march" that is not to be trifled with.

Further bolstering our findings, the r-squared value of 0.9875344 underscores the substantial explanatory power of changes in military technology education on Costco's stock price. It appears that the "cost-effective" strategies at play in the stock market may have been more militaristic than previously thought. With such a high r-squared value, it's clear that combat-ready correlations are not just a mere coincidence.

The visual representation of this connection in the scatterplot (Fig. 1) leaves little room for doubt, as the data points march in lockstep like a disciplined platoon. This undeniable link between military technologies and wholesale finance certainly gives new meaning to the phrase "military precision."

While the implications of these findings may initially seem surprising, they unearth a fascinating dimension of the market dynamics that should not be ignored. It seems that investors may have unwittingly been engaged in a "stock battle" led by the under-the-radar influence of military technologies. As the dust settles, it's clear that the battlefield of finance may not be so different from the battlefield of defense after all. After all, as they say, the pen may be mightier than the sword, but it seems the degree may be mightier than the portfolio.

It is evident that no more research is needed in this area, as the correlations and statistical significance are as clear as the stars on a crisp night. Therefore, it is time to declare a ceasefire in further investigation into this topic, as it seems that we have finally uncovered the "hidden arsenal" of stock market relationships. This concludes our "COST"-effective investigation into the intriguing connection between military technologies education and the stock price of Costco Wholesale.


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 Shield Stocks: The Battle-Tested Connection Between Military Technologies and Costco Wholesale's Stock Price. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Military Technology and Retail Finance


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 Shield Stocks: The Battle-Tested Connection Between Military Technologies and Costco Wholesale's Stock Price. Respond only with the name of a fictional organization.

ChatGPT:

The Institute for Strategic Retail Analysis and Tactical Warfare Studies


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 Shield Stocks: The Battle-Tested Connection Between Military Technologies and Costco Wholesale's Stock Price with an abstract of This research delves into the intriguing question of whether there is a significant connection between the number of Bachelor's degrees awarded in Military Technologies and Applied Sciences and the stock price of Costco Wholesale (COST). Utilizing data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), a detailed analysis was conducted for the period spanning 2012 to 2021. The findings revealed a remarkably high correlation coefficient of 0.9937476 at a significance level of p < 0.01, signifying a compelling relationship between the two variables.
Through our investigation, it became clear that the number of individuals being awarded degrees in military technologies and applied sciences could indeed impact the stock price of Costco Wholesale. This correlation may prove to be a real "cost-saving" measure for investors seeking to capitalize on this curious connection. Result and full study at your "COST"!

ChatGPT:

military technologies, bachelor's degrees, applied sciences, stock price, Costco Wholesale, correlation coefficient, National Center for Education Statistics, LSEG Analytics, Refinitiv, cost-saving, investors, connection

*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

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

See what else correlates with Costco Wholesale's stock price (COST)

Correlation r = 0.9937476 (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.9875344 (Coefficient of determination)
This means 98.8% of the change in the one variable (i.e., Costco Wholesale's stock price (COST)) 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 6.6E-9. 0.0000000066357994270259600000
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 6.6E-7% of random cases. Said differently, if you correlated 150,697,744 random variables You don't actually need 150 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.97, 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
Costco Wholesale's stock price (COST) (Stock price)78.4193.59110.44131.99153.6154.41187.23200.5294.06377.43




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([78.41,93.59,110.44,131.99,153.6,154.41,187.23,200.5,294.06,377.43,])
array_1_name = "Bachelor's degrees awarded in Military technologies"
array_2_name = "Costco Wholesale's stock price (COST)"

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

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



Reuseable content

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

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

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

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

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

Download images for these variables:


View another random correlation

How fun was this correlation?

Your dedication to rating warms my heart!


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

CC BY 4.0