about · email me · subscribe
Spurious correlation #3,161 · 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 Transportation and the second variable is Advanced Micro Devices' stock price (AMD).  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 people became experts in transportation and moving materials, they found innovative ways to "drive" efficiency in AMD's supply chain, leading to cost savings and ultimately boosting the company's stock price. Plus, their knowledge helped AMD stay ahead in the "race" for advanced technology, giving them a smooth "ride" to success in the market.

Model: dalle-3
Prompt: Generate an image depicting a dynamic highway scene with recent graduates in transportation and materials moving driving their way into the future. Show them passing by a towering digital billboard displaying the stock price of Advanced Micro Devices (AMD) as it surges upward, reflecting the company's growing market impact. Capture the energetic spirit of young investors eagerly jumping on board the AMD stock train, all while speeding along the bustling highway. 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 Transportation and materials moving and Advanced Micro Devices' stock price (AMD). 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: a meme Parallax art A Discovery magazine cover image Woodblock painting Surrealism
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 Transportation and materials moving and Advanced Micro Devices' stock price (AMD), in the following situation: Because more graduates were driving their careers in transportation, they were moving in the fast lane, accelerating the demand for efficient processors from AMD. As a result, investors hitched a ride on the rising stock value, causing AMD to race ahead in the market.. Keep the description simple.
ChatGPT: A group of recent graduates in transportation and materials moving are seen driving on a busy highway, symbolizing the rise in bachelor's degrees awarded in that field. As they speed along, they pass by a large digital billboard displaying the stock price of Advanced Micro Devices (AMD), which is flashing an upward trend, indicating the surge in the company's stock value due to increased demand for efficient processors. Investors are shown eagerly jumping on board the AMD stock train as it races ahead in the market.

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: A group of recent graduates in transportation and materials moving are seen driving on a busy highway, symbolizing the rise in bachelor's degrees awarded in that field. As they speed along, they pass by a large digital billboard displaying the stock price of Advanced Micro Devices (AMD), which is flashing an upward trend, indicating the surge in the company's stock value due to increased demand for efficient processors. Investors are shown eagerly jumping on board the AMD stock train as it races ahead in the market. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Generate an image depicting a dynamic highway scene with recent graduates in transportation and materials moving driving their way into the future. Show them passing by a towering digital billboard displaying the stock price of Advanced Micro Devices (AMD) as it surges upward, reflecting the company's growing market impact. Capture the energetic spirit of young investors eagerly jumping on board the AMD stock train, all while speeding along the bustling highway.

*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 Transportation and materials moving caused Advanced Micro Devices' stock price (AMD) to increase. Include one good pun.

AI academic paper

(Because p < 0.01)
Booming Brokering: Transportation Education and AMD Stocks Soaring in Synchronization

The Journal of Transport Finance and Market Trends

Jan 2024

Reminder: This paper is AI-generated. Not real!
Quick note: This sequence is long and repetitive. That's how the prompt engineering works for this one. I manage the output in Python to format it into this PDF.




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

Please draft the title and abstract of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Transportation and materials moving and Advanced Micro Devices' stock price (AMD). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

Rhyme words 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.9652917 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]]
Booming Brokering: Transportation Education and AMD Stocks Soaring in Synchronization

[[ABSTRACT]]
This study delves into the enthralling relationship between the number of Bachelor's degrees awarded in Transportation and materials moving and the stock performance of Advanced Micro Devices (AMD). Leveraging data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), we embarked on an exhilarating adventure to unravel the intricate ties between the educational realm and the ever-thrilling world of stock prices. The analysis, complete with statistical wizardry, yielded a tantalizing correlation coefficient of 0.9652917 and a p-value of less than 0.01 for the period spanning from 2012 to 2021, exposing a connection of astonishing magnitude.

Through rigorous scrutiny and a touch of cheeky humor, we invite readers to marvel at the curious dance of figures and stocks, where the movement of minds in transportation education appears to dance in harmony with the oscillations of AMD stock prices. This research offers an intellectual romp through the unexpected crossroads of academia and market dynamics, proving that even in the seemingly mundane realm of transportation education, there lies a powerhouse of influence on the capricious world of stock trading.


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

Please make up the introduction section of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Transportation and materials moving and Advanced Micro Devices' stock price (AMD). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Here is the title and abstract of the paper:
[[TITLE]]
Booming Brokering: Transportation Education and AMD Stocks Soaring in Synchronization

[[ABSTRACT]]
This study delves into the enthralling relationship between the number of Bachelor's degrees awarded in Transportation and materials moving and the stock performance of Advanced Micro Devices (AMD). Leveraging data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), we embarked on an exhilarating adventure to unravel the intricate ties between the educational realm and the ever-thrilling world of stock prices. The analysis, complete with statistical wizardry, yielded a tantalizing correlation coefficient of 0.9652917 and a p-value of less than 0.01 for the period spanning from 2012 to 2021, exposing a connection of astonishing magnitude.

Through rigorous scrutiny and a touch of cheeky humor, we invite readers to marvel at the curious dance of figures and stocks, where the movement of minds in transportation education appears to dance in harmony with the oscillations of AMD stock prices. This research offers an intellectual romp through the unexpected crossroads of academia and market dynamics, proving that even in the seemingly mundane realm of transportation education, there lies a powerhouse of influence on the capricious world of stock trading.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

The world of higher education is often likened to a bustling marketplace of knowledge, where students seek to stock up on skills and expertise for their journey into the realm of employment. Meanwhile, the stock market, with its ebbs and flows, mirrors the pulse of economic dynamics that keep investors on their toes. But what if these two seemingly disparate worlds were not only in sync but actually choreographed a mesmerizing dance of correlation?

In this paper, we unveil the unexpected partnership between the number of Bachelor's degrees awarded in Transportation and materials moving and the performance of Advanced Micro Devices (AMD) stock. Lest you presume this exploration to be a mere exercise in whimsy, hold your horses, dear reader, for our findings promise a riveting tale of connections unfolding before you.

Much like a coin tossed in the air, the intricacies of this relationship have hovered in an enigmatic realm, waiting to be dissected by the keen eye of statistical analysis. Leveraging data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), our study harnessed the power of numbers to uncover the spirited parallelism between the educational pursuits in transportation and the value oscillations of AMD stock.

As we embark on this intellectual escapade, we invite you to ponder the whimsies of correlation, where the tick-tock of graduation ceremonies seems to resonate with the dynamics of stock market serendipities. It is not every day that one gets to marvel at the unexpected synchronicities between academia and market caprice, but here we are, ready to unravel this riveting tale of statistical enchantment.

In the pages that follow, be prepared to witness the enthralling dance of data and stock prices, where the seemingly mundane choices of academic pursuits appear to hold sway over the vivacious undulations of stock market fortunes. This, dear reader, is no pedestrian enterprise; rather, it is an intellectual expedition into the heart of unlikely alliances, where the numbers whisper secrets that the world of finance may yet to fully appreciate.


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

Please make up a literature review section of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Transportation and materials moving and Advanced Micro Devices' stock price (AMD). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

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

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

Start by naming serious-sounding studies by authors like Smith, Doe, and Jones - but then quickly devolve. Name some real non-fiction books that would be related to the topic. Then name some real fiction books that sound like they could be related. Perhaps you also got inspiration from some board games that are vaugely related.

Here is the title and abstract of the paper:
[[TITLE]]
Booming Brokering: Transportation Education and AMD Stocks Soaring in Synchronization

[[ABSTRACT]]
This study delves into the enthralling relationship between the number of Bachelor's degrees awarded in Transportation and materials moving and the stock performance of Advanced Micro Devices (AMD). Leveraging data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), we embarked on an exhilarating adventure to unravel the intricate ties between the educational realm and the ever-thrilling world of stock prices. The analysis, complete with statistical wizardry, yielded a tantalizing correlation coefficient of 0.9652917 and a p-value of less than 0.01 for the period spanning from 2012 to 2021, exposing a connection of astonishing magnitude.

Through rigorous scrutiny and a touch of cheeky humor, we invite readers to marvel at the curious dance of figures and stocks, where the movement of minds in transportation education appears to dance in harmony with the oscillations of AMD stock prices. This research offers an intellectual romp through the unexpected crossroads of academia and market dynamics, proving that even in the seemingly mundane realm of transportation education, there lies a powerhouse of influence on the capricious world of stock trading.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
The world of higher education is often likened to a bustling marketplace of knowledge, where students seek to stock up on skills and expertise for their journey into the realm of employment. Meanwhile, the stock market, with its ebbs and flows, mirrors the pulse of economic dynamics that keep investors on their toes. But what if these two seemingly disparate worlds were not only in sync but actually choreographed a mesmerizing dance of correlation?
In this paper, we unveil the unexpected partnership between the number of Bachelor's degrees awarded in Transportation and materials moving and the performance of Advanced Micro Devices (AMD) stock. Lest you presume this exploration to be a mere exercise in whimsy, hold your horses, dear reader, for our findings promise a riveting tale of connections unfolding before you.
Much like a coin tossed in the air, the intricacies of this relationship have hovered in an enigmatic realm, waiting to be dissected by the keen eye of statistical analysis. Leveraging data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), our study harnessed the power of numbers to uncover the spirited parallelism between the educational pursuits in transportation and the value oscillations of AMD stock.
As we embark on this intellectual escapade, we invite you to ponder the whimsies of correlation, where the tick-tock of graduation ceremonies seems to resonate with the dynamics of stock market serendipities. It is not every day that one gets to marvel at the unexpected synchronicities between academia and market caprice, but here we are, ready to unravel this riveting tale of statistical enchantment.
In the pages that follow, be prepared to witness the enthralling dance of data and stock prices, where the seemingly mundane choices of academic pursuits appear to hold sway over the vivacious undulations of stock market fortunes. This, dear reader, is no pedestrian enterprise; rather, it is an intellectual expedition into the heart of unlikely alliances, where the numbers whisper secrets that the world of finance may yet to fully appreciate.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

In the realm of academic inquiry, the relationship between educational trends and market dynamics has long been a subject of scholarly scrutiny. Smith et al. (2015) astutely examined the correlation between educational enrollment shifts and stock performance with a focus on the transportation sector, providing a nuanced exploration of the potential interplay. Similarly, Doe (2017) delved into the influence of educational disciplines on stock market trends and brought to light the compelling dynamics at play.

Turning to the broader context of academic discourse, "The Economics of Transportation" by Button and Hensher (2015) offers a comprehensive perspective on the economic underpinnings of transportation education and its wider impact. Conversely, "The Art of Stock Market Success" by Jones (2018) delves into the intricate artistry of stock trading, providing a canvas upon which the broad strokes of market movements are painted.

Venturing further afield, the fictional works of "The Ticket to Ride Mysteries" series by Locomotive and Caboose (2016) invite readers into a whimsical world where railway adventures intertwine with enigmatic mysteries. Similarly, the classic tale of "The Stockbroker's Gambit" by Bull and Bear (1984) weaves a narrative of financial intrigue and market machinations, stimulating the imagination with its enthralling plot twists.

In a uniting of fact and amusement, board games like "Monopoly: Transportation Edition" and "AMD Stock Market Showdown" offer playful simulations of market dynamics and transport investment strategies, adding a layer of gamified delight to our exploration of the entwined realms of education and stock performance.

These diverse sources, spanning the serious to the whimsical, pave the way for our intellectual odyssey into the unexpected nexus of transportation education and AMD stock prices.


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

Please make up the methodology section of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Transportation and materials moving and Advanced Micro Devices' stock price (AMD). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Your research team collected data from all across the internet, but mostly just used information from 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]]
Booming Brokering: Transportation Education and AMD Stocks Soaring in Synchronization

[[ABSTRACT]]
This study delves into the enthralling relationship between the number of Bachelor's degrees awarded in Transportation and materials moving and the stock performance of Advanced Micro Devices (AMD). Leveraging data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), we embarked on an exhilarating adventure to unravel the intricate ties between the educational realm and the ever-thrilling world of stock prices. The analysis, complete with statistical wizardry, yielded a tantalizing correlation coefficient of 0.9652917 and a p-value of less than 0.01 for the period spanning from 2012 to 2021, exposing a connection of astonishing magnitude.

Through rigorous scrutiny and a touch of cheeky humor, we invite readers to marvel at the curious dance of figures and stocks, where the movement of minds in transportation education appears to dance in harmony with the oscillations of AMD stock prices. This research offers an intellectual romp through the unexpected crossroads of academia and market dynamics, proving that even in the seemingly mundane realm of transportation education, there lies a powerhouse of influence on the capricious world of stock trading.

[[INTRODUCTION]]
The world of higher education is often likened to a bustling marketplace of knowledge, where students seek to stock up on skills and expertise for their journey into the realm of employment. Meanwhile, the stock market, with its ebbs and flows, mirrors the pulse of economic dynamics that keep investors on their toes. But what if these two seemingly disparate worlds were not only in sync but actually choreographed a mesmerizing dance of correlation?
In this paper, we unveil the unexpected partnership between the number of Bachelor's degrees awarded in Transportation and materials moving and the performance of Advanced Micro Devices (AMD) stock. Lest you presume this exploration to be a mere exercise in whimsy, hold your horses, dear reader, for our findings promise a riveting tale of connections unfolding before you.
Much like a coin tossed in the air, the intricacies of this relationship have hovered in an enigmatic realm, waiting to be dissected by the keen eye of statistical analysis. Leveraging data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), our study harnessed the power of numbers to uncover the spirited parallelism between the educational pursuits in transportation and the value oscillations of AMD stock.
As we embark on this intellectual escapade, we invite you to ponder the whimsies of correlation, where the tick-tock of graduation ceremonies seems to resonate with the dynamics of stock market serendipities. It is not every day that one gets to marvel at the unexpected synchronicities between academia and market caprice, but here we are, ready to unravel this riveting tale of statistical enchantment.
In the pages that follow, be prepared to witness the enthralling dance of data and stock prices, where the seemingly mundane choices of academic pursuits appear to hold sway over the vivacious undulations of stock market fortunes. This, dear reader, is no pedestrian enterprise; rather, it is an intellectual expedition into the heart of unlikely alliances, where the numbers whisper secrets that the world of finance may yet to fully appreciate.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To undertake this captivating exploration, we embarked on a data-driven Odyssey across the vast seas of educational statistics and financial markets. Our majestic vessel, fashioned out of R and Python programming languages, charted a course to gather data from the National Center for Education Statistics and LSEG Analytics (Refinitiv).

First, we cast our net into the ocean of educational data to capture the annual count of Bachelor's degrees awarded in the field of Transportation and materials moving from 2012 to 2021. Not unlike intrepid fishermen, we navigated through the pixelated waves of electronic databases, reeling in the numerical bounty that would become the cornerstone of our investigation.

Next, our expedition turned its prow toward the rippling waters of stock market indices, particularly setting our sights on the performance of Advanced Micro Devices (AMD) stock. The evolution of this stock, from its humble beginnings in 2012 to its triumphant heights in 2021, would provide the dynamic canvas upon which to sketch the enthralling correlation with the academic tributaries we had earlier charted.

Now, here comes the exciting part – the incantations of statistical analysis! With a flick of the wand, we summoned the powerful sorcery of correlation analysis to reveal the hidden patterns within the data we had collected. Armed with the mystical tools of Pearson correlation coefficient and p-values, we stirred the cauldron of mathematical incantations to unveil the spellbinding relationship between the educational realm of transportation and the tantalizing world of AMD stock performance.

As we gazed upon the results of our labor, our scholarly hearts quickened at the sight of the correlation coefficient, which stood proudly at 0.9652917. The p-value, flitting about like a mischievous sprite, darted beneath the threshold of 0.01, signaling a statistically significant relationship that left us in awe of the wondrous mysteries that numbers can unveil.

With the masterstroke of statistical analysis, we captured the elusive dance between academic pursuits and market dynamics, revealing a connection of astounding magnitude. It was as if we had stumbled upon a rare gem that had long been concealed beneath the surface of a seemingly mundane landscape.

And there you have it, dear reader – our methodology, though steeped in sober scholarly rigor, bore witness to a journey through statistical enchantment that brought to light the nexus between the scholarly pursuits in transportation education and the mercurial movements of Advanced Micro Devices stock.


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

Please make up the results section of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Transportation and materials moving and Advanced Micro Devices' stock price (AMD). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

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

For the time period 2012 to 2021, you found a correlation 0.9652917, r-squared of 0.9317881, 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]]
Booming Brokering: Transportation Education and AMD Stocks Soaring in Synchronization

[[ABSTRACT]]
This study delves into the enthralling relationship between the number of Bachelor's degrees awarded in Transportation and materials moving and the stock performance of Advanced Micro Devices (AMD). Leveraging data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), we embarked on an exhilarating adventure to unravel the intricate ties between the educational realm and the ever-thrilling world of stock prices. The analysis, complete with statistical wizardry, yielded a tantalizing correlation coefficient of 0.9652917 and a p-value of less than 0.01 for the period spanning from 2012 to 2021, exposing a connection of astonishing magnitude.

Through rigorous scrutiny and a touch of cheeky humor, we invite readers to marvel at the curious dance of figures and stocks, where the movement of minds in transportation education appears to dance in harmony with the oscillations of AMD stock prices. This research offers an intellectual romp through the unexpected crossroads of academia and market dynamics, proving that even in the seemingly mundane realm of transportation education, there lies a powerhouse of influence on the capricious world of stock trading.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
The world of higher education is often likened to a bustling marketplace of knowledge, where students seek to stock up on skills and expertise for their journey into the realm of employment. Meanwhile, the stock market, with its ebbs and flows, mirrors the pulse of economic dynamics that keep investors on their toes. But what if these two seemingly disparate worlds were not only in sync but actually choreographed a mesmerizing dance of correlation?
In this paper, we unveil the unexpected partnership between the number of Bachelor's degrees awarded in Transportation and materials moving and the performance of Advanced Micro Devices (AMD) stock. Lest you presume this exploration to be a mere exercise in whimsy, hold your horses, dear reader, for our findings promise a riveting tale of connections unfolding before you.
Much like a coin tossed in the air, the intricacies of this relationship have hovered in an enigmatic realm, waiting to be dissected by the keen eye of statistical analysis. Leveraging data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), our study harnessed the power of numbers to uncover the spirited parallelism between the educational pursuits in transportation and the value oscillations of AMD stock.
As we embark on this intellectual escapade, we invite you to ponder the whimsies of correlation, where the tick-tock of graduation ceremonies seems to resonate with the dynamics of stock market serendipities. It is not every day that one gets to marvel at the unexpected synchronicities between academia and market caprice, but here we are, ready to unravel this riveting tale of statistical enchantment.
In the pages that follow, be prepared to witness the enthralling dance of data and stock prices, where the seemingly mundane choices of academic pursuits appear to hold sway over the vivacious undulations of stock market fortunes. This, dear reader, is no pedestrian enterprise; rather, it is an intellectual expedition into the heart of unlikely alliances, where the numbers whisper secrets that the world of finance may yet to fully appreciate.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The quantitative analysis of Bachelor's degrees awarded in Transportation and materials moving and the stock performance of Advanced Micro Devices (AMD) has uncovered a striking correlation. Over the period from 2012 to 2021, our investigation revealed a robust correlation coefficient of 0.9652917 and an r-squared value of 0.9317881, indicative of an extraordinarily strong relationship. The p-value of less than 0.01 further solidifies the statistical significance of this association. These findings exude a sense of astonishment, captivating in their portrayal of the unexpected link between seemingly disparate realms.

Figure 1 showcases a scatterplot illustrating this noteworthy correlation, serving as a visual testament to the compelling nature of our discovery. The scatterplot, akin to a snapshot frozen in time, captures the entwined movements of transportation education and the AMD stock, inviting contemplation of the harmonious synergy between these two domains.

The remarkable alignment revealed through our analysis opens the door to an array of witty insights and unexpected connections. It is a testament to the often-unexplored interplay of educational trends and market dynamics, sparking intrigue and igniting curiosity in the minds of scholars and market enthusiasts alike.

In essence, our results shed light on the captivating relationship between the educational sphere of transportation and the rollercoaster ride of AMD stock prices, proving that in the intricate web of statistical sorcery, even the most peculiar pairings may hold significant sway. This revelatory journey of statistical exploration paves the way for further contemplation of the nuanced interdependencies that underpin the tapestry of economic and educational ecosystems.


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

Please make up the discussion section of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Transportation and materials moving and Advanced Micro Devices' stock price (AMD). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Limit your response to 500 tokens.

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

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

[[TITLE]]
Booming Brokering: Transportation Education and AMD Stocks Soaring in Synchronization

[[ABSTRACT]]
This study delves into the enthralling relationship between the number of Bachelor's degrees awarded in Transportation and materials moving and the stock performance of Advanced Micro Devices (AMD). Leveraging data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), we embarked on an exhilarating adventure to unravel the intricate ties between the educational realm and the ever-thrilling world of stock prices. The analysis, complete with statistical wizardry, yielded a tantalizing correlation coefficient of 0.9652917 and a p-value of less than 0.01 for the period spanning from 2012 to 2021, exposing a connection of astonishing magnitude.

Through rigorous scrutiny and a touch of cheeky humor, we invite readers to marvel at the curious dance of figures and stocks, where the movement of minds in transportation education appears to dance in harmony with the oscillations of AMD stock prices. This research offers an intellectual romp through the unexpected crossroads of academia and market dynamics, proving that even in the seemingly mundane realm of transportation education, there lies a powerhouse of influence on the capricious world of stock trading.

[[LITERATURE REVIEW]]
In the realm of academic inquiry, the relationship between educational trends and market dynamics has long been a subject of scholarly scrutiny. Smith et al. (2015) astutely examined the correlation between educational enrollment shifts and stock performance with a focus on the transportation sector, providing a nuanced exploration of the potential interplay. Similarly, Doe (2017) delved into the influence of educational disciplines on stock market trends and brought to light the compelling dynamics at play.
Turning to the broader context of academic discourse, "The Economics of Transportation" by Button and Hensher (2015) offers a comprehensive perspective on the economic underpinnings of transportation education and its wider impact. Conversely, "The Art of Stock Market Success" by Jones (2018) delves into the intricate artistry of stock trading, providing a canvas upon which the broad strokes of market movements are painted.
Venturing further afield, the fictional works of "The Ticket to Ride Mysteries" series by Locomotive and Caboose (2016) invite readers into a whimsical world where railway adventures intertwine with enigmatic mysteries. Similarly, the classic tale of "The Stockbroker's Gambit" by Bull and Bear (1984) weaves a narrative of financial intrigue and market machinations, stimulating the imagination with its enthralling plot twists.
In a uniting of fact and amusement, board games like "Monopoly: Transportation Edition" and "AMD Stock Market Showdown" offer playful simulations of market dynamics and transport investment strategies, adding a layer of gamified delight to our exploration of the entwined realms of education and stock performance.
These diverse sources, spanning the serious to the whimsical, pave the way for our intellectual odyssey into the unexpected nexus of transportation education and AMD stock prices.

[[RESULTS]]
The quantitative analysis of Bachelor's degrees awarded in Transportation and materials moving and the stock performance of Advanced Micro Devices (AMD) has uncovered a striking correlation. Over the period from 2012 to 2021, our investigation revealed a robust correlation coefficient of 0.9652917 and an r-squared value of 0.9317881, indicative of an extraordinarily strong relationship. The p-value of less than 0.01 further solidifies the statistical significance of this association. These findings exude a sense of astonishment, captivating in their portrayal of the unexpected link between seemingly disparate realms.
Figure 1 showcases a scatterplot illustrating this noteworthy correlation, serving as a visual testament to the compelling nature of our discovery. The scatterplot, akin to a snapshot frozen in time, captures the entwined movements of transportation education and the AMD stock, inviting contemplation of the harmonious synergy between these two domains.
The remarkable alignment revealed through our analysis opens the door to an array of witty insights and unexpected connections. It is a testament to the often-unexplored interplay of educational trends and market dynamics, sparking intrigue and igniting curiosity in the minds of scholars and market enthusiasts alike.
In essence, our results shed light on the captivating relationship between the educational sphere of transportation and the rollercoaster ride of AMD stock prices, proving that in the intricate web of statistical sorcery, even the most peculiar pairings may hold significant sway. This revelatory journey of statistical exploration paves the way for further contemplation of the nuanced interdependencies that underpin the tapestry of economic and educational ecosystems.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The findings of this investigation corroborate and build upon the existing scholarly discourse on the complex interplay between educational trends and market dynamics. As identified by Smith et al. (2015) and Doe (2017), our results align with the notion that educational enrollment shifts, particularly in the transportation sector, hold sway over stock performance. The robust correlation coefficient of 0.9652917, akin to a magician pulling a rabbit out of a hat, and the minuscule p-value further affirm the momentous statistical significance of this relationship.

In a delightful twist, our exploration hearkens back to the whimsical worlds painted by "The Ticket to Ride Mysteries" series and the enigmatic narrative of "The Stockbroker's Gambit." It appears that reality may indeed mirror fiction in the enthralling dance of transportation education and stock prices. In a lighthearted nod to these moments of literary amusement, our findings reflect the undercurrent of playfulness and surprise that permeates the intersection of academic inquiry and market dynamics.

Furthermore, the broader economic perspective offered by Button and Hensher's "The Economics of Transportation" comes into vivid focus as our analysis uncovers the compelling role of transportation education in shaping market movements. Like pieces on a chessboard, the seemingly inconspicuous educational trends in transportation and materials moving exert a profound influence on the intricate dance of stock prices, serving as a captivating illustration of the enduring interconnectedness between academic realms and market forces.

Our results, encapsulated in the visual delight of the scatterplot, stand as a testament to the enduring allure of unexpected connections and uncharted pathways of discovery. Thus, as we unpack the enthralling nexus between the humdrum world of transportation education and the soaring heights of AMD stock prices, it becomes clear that beneath the veneer of academic sobriety lies an intricate web of influence and whimsy, inviting scholars and market enthusiasts alike to revel in the serendipity of unexpected linkages.

In summary, our research adds a delightful splash of eclecticism to the academic tapestry, spotlighting the captivating interplay of educational trends and stock performance in a lighthearted dance of statistical intrigue. This intellectual escapade offers a compelling reminder that, in the captivating realm of scholarly exploration, even seemingly mundane pairings harbor an undercurrent of whimsy and astonishment, luring curious minds into the empyreal beyond of statistical serendipity.


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

Please make up a short conclusion of an academic research paper presenting the findings of the connection between Bachelor's degrees awarded in Transportation and materials moving and Advanced Micro Devices' stock price (AMD). Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

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

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
Booming Brokering: Transportation Education and AMD Stocks Soaring in Synchronization

[[ABSTRACT]]
This study delves into the enthralling relationship between the number of Bachelor's degrees awarded in Transportation and materials moving and the stock performance of Advanced Micro Devices (AMD). Leveraging data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), we embarked on an exhilarating adventure to unravel the intricate ties between the educational realm and the ever-thrilling world of stock prices. The analysis, complete with statistical wizardry, yielded a tantalizing correlation coefficient of 0.9652917 and a p-value of less than 0.01 for the period spanning from 2012 to 2021, exposing a connection of astonishing magnitude.

Through rigorous scrutiny and a touch of cheeky humor, we invite readers to marvel at the curious dance of figures and stocks, where the movement of minds in transportation education appears to dance in harmony with the oscillations of AMD stock prices. This research offers an intellectual romp through the unexpected crossroads of academia and market dynamics, proving that even in the seemingly mundane realm of transportation education, there lies a powerhouse of influence on the capricious world of stock trading.

[[INTRDUCTION]]
The world of higher education is often likened to a bustling marketplace of knowledge, where students seek to stock up on skills and expertise for their journey into the realm of employment. Meanwhile, the stock market, with its ebbs and flows, mirrors the pulse of economic dynamics that keep investors on their toes. But what if these two seemingly disparate worlds were not only in sync but actually choreographed a mesmerizing dance of correlation?
In this paper, we unveil the unexpected partnership between the number of Bachelor's degrees awarded in Transportation and materials moving and the performance of Advanced Micro Devices (AMD) stock. Lest you presume this exploration to be a mere exercise in whimsy, hold your horses, dear reader, for our findings promise a riveting tale of connections unfolding before you.
Much like a coin tossed in the air, the intricacies of this relationship have hovered in an enigmatic realm, waiting to be dissected by the keen eye of statistical analysis. Leveraging data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), our study harnessed the power of numbers to uncover the spirited parallelism between the educational pursuits in transportation and the value oscillations of AMD stock.
As we embark on this intellectual escapade, we invite you to ponder the whimsies of correlation, where the tick-tock of graduation ceremonies seems to resonate with the dynamics of stock market serendipities. It is not every day that one gets to marvel at the unexpected synchronicities between academia and market caprice, but here we are, ready to unravel this riveting tale of statistical enchantment.
In the pages that follow, be prepared to witness the enthralling dance of data and stock prices, where the seemingly mundane choices of academic pursuits appear to hold sway over the vivacious undulations of stock market fortunes. This, dear reader, is no pedestrian enterprise; rather, it is an intellectual expedition into the heart of unlikely alliances, where the numbers whisper secrets that the world of finance may yet to fully appreciate.

[[RESULTS]]
The quantitative analysis of Bachelor's degrees awarded in Transportation and materials moving and the stock performance of Advanced Micro Devices (AMD) has uncovered a striking correlation. Over the period from 2012 to 2021, our investigation revealed a robust correlation coefficient of 0.9652917 and an r-squared value of 0.9317881, indicative of an extraordinarily strong relationship. The p-value of less than 0.01 further solidifies the statistical significance of this association. These findings exude a sense of astonishment, captivating in their portrayal of the unexpected link between seemingly disparate realms.
Figure 1 showcases a scatterplot illustrating this noteworthy correlation, serving as a visual testament to the compelling nature of our discovery. The scatterplot, akin to a snapshot frozen in time, captures the entwined movements of transportation education and the AMD stock, inviting contemplation of the harmonious synergy between these two domains.
The remarkable alignment revealed through our analysis opens the door to an array of witty insights and unexpected connections. It is a testament to the often-unexplored interplay of educational trends and market dynamics, sparking intrigue and igniting curiosity in the minds of scholars and market enthusiasts alike.
In essence, our results shed light on the captivating relationship between the educational sphere of transportation and the rollercoaster ride of AMD stock prices, proving that in the intricate web of statistical sorcery, even the most peculiar pairings may hold significant sway. This revelatory journey of statistical exploration paves the way for further contemplation of the nuanced interdependencies that underpin the tapestry of economic and educational ecosystems.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In wrapping up our enchanting expedition into the entwined realms of education and finance, we are left with an illuminating portrait of correlation and captivation. The synchronicities uncovered between Bachelor's degrees in Transportation and materials moving and the tempestuous undulations of Advanced Micro Devices (AMD) stock prices speak volumes about the subtle intricacies at play in the world of statistical romance. Our findings, adorned with a correlation coefficient of 0.9652917 and a p-value that would make even the most discerning statistician nod in approval, offer an intellectually whimsical saga of connection. It is as if the transportation education arena and the stock market share a secret dance, hidden in plain sight, serving as a reminder that in the reality of statistical enchantment, nothing is quite as mundane as it seems.

Much like a thrilling plot twist in an otherwise predictable story, our investigation has prodded at the edges of convention, inviting contemplation of the unexpected partners in this statistical ballroom. The scatterplot, a visual testament to this unlikely bond, stands as a reminder that even in the most seemingly unrelated endeavors, a touch of correlation can spark curiosity and ignite contemplation.

With a sense of whimsy and an acknowledgment of the unexpected, we nudge the scholarly community and market aficionados to ponder the peculiar dance of figures and stocks, aware that in this statistical masquerade, every step may hold hidden meaning. As we bid adieu to this captivating tale of statistical waltz, we assert with confidence that in the realm of education and stock market dynamics, our findings stand as a testament to the bewitching interplay of seemingly unrelated domains.

In the spirit of scholarly gusto and a hint of statistical mischief, we declare that the case of Bachelor's degrees in Transportation and materials moving and AMD stock performance has been thoroughly examined. There is no need for further research in this area, for the tale of this extraordinary correlation has been told - until the next statistical adventure beckons. Let this be a reminder, dear readers, that in the realm of statistical caprice, every partnership may hold a tale ready to unravel.


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 Booming Brokering: Transportation Education and AMD Stocks Soaring in Synchronization. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Transport Finance and Market Trends


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 Booming Brokering: Transportation Education and AMD Stocks Soaring in Synchronization. Respond only with the name of a fictional organization.

ChatGPT:

The Institute for Financial Futuristics and Transport Economics


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 Booming Brokering: Transportation Education and AMD Stocks Soaring in Synchronization with an abstract of This study delves into the enthralling relationship between the number of Bachelor's degrees awarded in Transportation and materials moving and the stock performance of Advanced Micro Devices (AMD). Leveraging data from the National Center for Education Statistics and LSEG Analytics (Refinitiv), we embarked on an exhilarating adventure to unravel the intricate ties between the educational realm and the ever-thrilling world of stock prices. The analysis, complete with statistical wizardry, yielded a tantalizing correlation coefficient of 0.9652917 and a p-value of less than 0.01 for the period spanning from 2012 to 2021, exposing a connection of astonishing magnitude.
Through rigorous scrutiny and a touch of cheeky humor, we invite readers to marvel at the curious dance of figures and stocks, where the movement of minds in transportation education appears to dance in harmony with the oscillations of AMD stock prices. This research offers an intellectual romp through the unexpected crossroads of academia and market dynamics, proving that even in the seemingly mundane realm of transportation education, there lies a powerhouse of influence on the capricious world of stock trading.

ChatGPT:

Bachelor's degrees in transportation, transportation education, materials moving education, AMD stock performance, Advanced Micro Devices stock correlation, transportation education impact on stock prices, educational realm and stock prices, transportation education and market dynamics

*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 Transportation
Detailed data title: Bachelor's degrees conferred by postsecondary institutions, in field of study: Transportation and materials moving
Source: National Center for Education Statistics
See what else correlates with Bachelor's degrees awarded in Transportation

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

See what else correlates with Advanced Micro Devices' stock price (AMD)

Correlation r = 0.9652917 (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.9317881 (Coefficient of determination)
This means 93.2% of the change in the one variable (i.e., Advanced Micro Devices' stock price (AMD)) is predictable based on the change in the other (i.e., Bachelor's degrees awarded in Transportation) over the 10 years from 2012 through 2021.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 6.09E-6. 0.0000060884505575172740000000
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.000609% of random cases. Said differently, if you correlated 164,245 random variables You don't actually need 164 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.86, 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 Transportation (Degrees awarded)4876466145884730453147084924505152515993
Advanced Micro Devices' stock price (AMD) (Stock price)5.532.553.852.72.7711.4210.4218.0146.8692.11




Why this works

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




Try it yourself

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

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

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

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

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

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

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

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

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


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

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

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

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

    return correlation, r_squared, p_value

# These are the arrays for the variables shown on this page, but you can modify them to be any two sets of numbers
array_1 = np.array([4876,4661,4588,4730,4531,4708,4924,5051,5251,5993,])
array_2 = np.array([5.53,2.55,3.85,2.7,2.77,11.42,10.42,18.01,46.86,92.11,])
array_1_name = "Bachelor's degrees awarded in Transportation"
array_2_name = "Advanced Micro Devices' stock price (AMD)"

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

Bravo! Your evaluation rocks!


Correlation ID: 3161 · Black Variable ID: 1294 · Red Variable ID: 1585
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0