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

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is Air pollution in Amarillo, Texas and the second variable is Michael Schumacher's Formula One Ranking.  The chart goes from 1992 to 2012, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

The air pollution in Amarillo, Texas created a unique set of atmospheric conditions that somehow boosted Michael Schumacher's driving performance, propelling him up the Formula One rankings. It's like he had a secret turbo boost from the smog! Keep your eyes on the skies, because in Amarillo, it's not just the wind that's making things go faster! Total gas, but it seems like Schumacher found the perfect formula for success in that dirty air!

Model: dalle-3
Prompt: Prompt: Generate an image depicting an intense scene amid heavy smog in Amarillo, Texas. Michael Schumacher skillfully pilots his Formula One car, deftly overtaking competitors in the polluted air. Ensure the cars and the smog are depicted in hyper-realistic detail. 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: Air pollution in Amarillo, Texas and Michael Schumacher's Formula One Ranking. Given these, which of the following image style descriptions seems most appropriate? Pick the one that seems to be related to one of the variables at hand. Please respond with only one of the following potential descriptions: Art nouveau Cutsy graphics Hyper-realistic Concept art Symbolism
ChatGPT: Hyper-realistic

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 Air pollution in Amarillo, Texas and Michael Schumacher's Formula One Ranking, in the following situation: Because the air pollution in Amarillo, Texas caused an increase in wind resistance, making it more difficult for other drivers to achieve top speeds, and Michael Schumacher, with his experience in maneuvering through cloud of smog, was able to capitalize on the chaos and zoom past his competitors, securing a higher standing in Formula One rankings.. Keep the description simple.
ChatGPT: Amidst the thick smog of Amarillo, Texas, cars struggle to navigate the polluted air. In the chaos, Michael Schumacher deftly maneuvers his Formula One car, using his expert skills to zip past his competitors, gaining a higher standing in the rankings.

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: [ Hyper-realistic ] and depicting this scene: Amidst the thick smog of Amarillo, Texas, cars struggle to navigate the polluted air. In the chaos, Michael Schumacher deftly maneuvers his Formula One car, using his expert skills to zip past his competitors, gaining a higher standing in the rankings. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Prompt: Generate an image depicting an intense scene amid heavy smog in Amarillo, Texas. Michael Schumacher skillfully pilots his Formula One car, deftly overtaking competitors in the polluted air. Ensure the cars and the smog are depicted in hyper-realistic detail.

*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 Air pollution in Amarillo, Texas caused Michael Schumacher's Formula One Ranking to increase. Add a funny one-liner at the end.

AI academic paper

(Because p < 0.01)
Racing Through the Smog: Unveiling the Air Pollution-Accelerated Race to Glory in Michael Schumacher's Formula One Career

Journal of Applied Motorsport Science

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 Air pollution in Amarillo, Texas and Michael Schumacher's Formula One Ranking. Make lots of jokes, goofy observations, and puns.

Make the title seem clever.

Your research team used data from Environmental Protection Agency and Wikipedia to assess this nagging question. You found a correlation coefficient of 0.7855787 and p < 0.01 for 1992 to 2012.

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]]
"Racing Through the Smog: Unveiling the Air Pollution-Accelerated Race to Glory in Michael Schumacher's Formula One Career"

[[ABSTRACT]]
In this study, we aim to unravel the enigmatic connection between air pollution in Amarillo, Texas, and Michael Schumacher's Formula One ranking. Utilizing EPA data on air quality and Wikipedia's comprehensive records of Schumacher's racing career, we delved into this intriguing intersection of environmental factors and athletic performance. Our findings reveal a surprising correlation coefficient of 0.7855787 and a p-value less than 0.01 for the period spanning from 1992 to 2012. The discernible relationship between Schumacher's achievements and air pollution levels prompts us to reexamine the steering forces shaping competitive racing outcomes. Our results underscore the importance of considering environmental variables as potential drivers of sporting success and highlight the significance of a breath of fresh air, both figuratively and literally, in the pursuit of victory.


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 Air pollution in Amarillo, Texas and Michael Schumacher's Formula One Ranking. Make lots of 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]]
"Racing Through the Smog: Unveiling the Air Pollution-Accelerated Race to Glory in Michael Schumacher's Formula One Career"

[[ABSTRACT]]
In this study, we aim to unravel the enigmatic connection between air pollution in Amarillo, Texas, and Michael Schumacher's Formula One ranking. Utilizing EPA data on air quality and Wikipedia's comprehensive records of Schumacher's racing career, we delved into this intriguing intersection of environmental factors and athletic performance. Our findings reveal a surprising correlation coefficient of 0.7855787 and a p-value less than 0.01 for the period spanning from 1992 to 2012. The discernible relationship between Schumacher's achievements and air pollution levels prompts us to reexamine the steering forces shaping competitive racing outcomes. Our results underscore the importance of considering environmental variables as potential drivers of sporting success and highlight the significance of a breath of fresh air, both figuratively and literally, in the pursuit of victory.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

Racing has always been a high-octane spectacle that captures the imagination and fuels the competitive spirit, much like a good espresso shot revs up the morning routine. In the world of Formula One, legendary figures like Michael Schumacher have left tire marks on the track of history, setting the pace for generations of aspiring racers. As researchers, we are accustomed to seeking patterns and connections in unexpected places, much like trying to find a missing sock after doing laundry - sometimes, what you uncover is a real toe-tally surprise.

Often, the link between athletic performance and environmental factors is overlooked, much like the unnoticed presence of the lone piece of broccoli in a dish of macaroni and cheese. However, our study plunges into the hazy realm of air pollution in Amarillo, Texas, and its intriguing correlation with the remarkable achievements of Michael Schumacher. As we embark on this unconventional investigation, we aim to shed light on the underexplored territory of how air quality could have possibly fueled Schumacher's racing triumphs, beyond the obvious metaphorical "air in the sails".

One might ask, "Does air pollution really correlate with Formula One success? Or is this just a bunch of exhaust-ive speculation?" Well, strap in, because the data suggests there might be more than just hot air to this idea. With EPA air quality metrics and Schumacher's race performances in hand, we navigated through the twists and turns of statistical analysis to uncover an unexpected relationship with a coefficient that would make any mathematician's heart race (if they had discovered it first).

So, buckle up, hold on to your helmet, and fasten your seatbelt - we are about to embark on a journey that veers from the expected race track of sporting analysis into the unexpected terrain of environmental impact on competitive success. Our findings might just turn the tide on how we perceive the intersection of air pollution and high-speed glory. It's time to peel out and break new ground – just like Schumacher did on the tarmac.


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 Air pollution in Amarillo, Texas and Michael Schumacher's Formula One Ranking. Make lots of jokes, goofy observations, and puns.

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

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

Start by naming serious-sounding studies by authors like Smith, Doe, and Jones - but then quickly devolve. Name some real non-fiction books that would be related to the topic. Then name some real fiction books that sound like they could be related. Then cite some social media posts you read that seem to be related.

Here is the title and abstract of the paper:
[[TITLE]]
"Racing Through the Smog: Unveiling the Air Pollution-Accelerated Race to Glory in Michael Schumacher's Formula One Career"

[[ABSTRACT]]
In this study, we aim to unravel the enigmatic connection between air pollution in Amarillo, Texas, and Michael Schumacher's Formula One ranking. Utilizing EPA data on air quality and Wikipedia's comprehensive records of Schumacher's racing career, we delved into this intriguing intersection of environmental factors and athletic performance. Our findings reveal a surprising correlation coefficient of 0.7855787 and a p-value less than 0.01 for the period spanning from 1992 to 2012. The discernible relationship between Schumacher's achievements and air pollution levels prompts us to reexamine the steering forces shaping competitive racing outcomes. Our results underscore the importance of considering environmental variables as potential drivers of sporting success and highlight the significance of a breath of fresh air, both figuratively and literally, in the pursuit of victory.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
Racing has always been a high-octane spectacle that captures the imagination and fuels the competitive spirit, much like a good espresso shot revs up the morning routine. In the world of Formula One, legendary figures like Michael Schumacher have left tire marks on the track of history, setting the pace for generations of aspiring racers. As researchers, we are accustomed to seeking patterns and connections in unexpected places, much like trying to find a missing sock after doing laundry - sometimes, what you uncover is a real toe-tally surprise.
Often, the link between athletic performance and environmental factors is overlooked, much like the unnoticed presence of the lone piece of broccoli in a dish of macaroni and cheese. However, our study plunges into the hazy realm of air pollution in Amarillo, Texas, and its intriguing correlation with the remarkable achievements of Michael Schumacher. As we embark on this unconventional investigation, we aim to shed light on the underexplored territory of how air quality could have possibly fueled Schumacher's racing triumphs, beyond the obvious metaphorical "air in the sails".
One might ask, "Does air pollution really correlate with Formula One success? Or is this just a bunch of exhaust-ive speculation?" Well, strap in, because the data suggests there might be more than just hot air to this idea. With EPA air quality metrics and Schumacher's race performances in hand, we navigated through the twists and turns of statistical analysis to uncover an unexpected relationship with a coefficient that would make any mathematician's heart race (if they had discovered it first).
So, buckle up, hold on to your helmet, and fasten your seatbelt - we are about to embark on a journey that veers from the expected race track of sporting analysis into the unexpected terrain of environmental impact on competitive success. Our findings might just turn the tide on how we perceive the intersection of air pollution and high-speed glory. It's time to peel out and break new ground – just like Schumacher did on the tarmac.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

Numerous studies have delved into the impact of air pollution on human health, economic productivity, and environmental sustainability, offering a rich tapestry of scholarly insights. Smith et al. (2017) demonstrated the deleterious effects of air pollution on respiratory health, while Doe and Jones (2019) underscored its correlation with diminished cognitive function. These investigations provide crucial groundwork for understanding the broader ramifications of air pollution, but they have yet to explore its unexpected link to the career trajectory of Formula One legend Michael Schumacher.

Turning to the realm of sports and competition, the work of LeBron and Messi (2015) shed light on the psychological and physiological determinants of athletic prowess, raising thought-provoking questions about the potential role of environmental factors in shaping sporting outcomes. Yet, the notion of air pollution as an influencer in the context of Formula One racing remains an uncharted corner of inquiry.

In addition to these works, an array of non-fiction literature directly addressing air pollution and its repercussions on society can be found. "The Silent Killer: The Unseen Impact of Air Pollution" by Greenbaum (2018) offers a comprehensive exposé on the pervasive effects of air pollution, while "Breathless: A City's Battle for Clean Air" by Clearsky (2016) presents a gripping account of a community's struggle against airborne contaminants.

Adding a playful twist, works of fiction also provide a platform for exploring the interplay between environmental factors and remarkable achievements. In "The Fast and the Curious: A Tale of Speed and Smog" by Velocitizer (2014), the protagonist uncovers an unexpected alliance between air pollution and record-breaking race times in a whimsical narrative set in the world of motorsports. Similarly, "The Cloudy Victory" by AirHead (2012) weaves a fantastical tale where air pollution mysteriously propels athletes to unparalleled successes, blurring the lines between reality and fiction.

Furthermore, the proliferation of social media has brought forth an assortment of intriguing posts that hint at the uncanny parallels between air quality and sporting triumphs. A tweet by @RacingProphet proclaiming, "The fumes of victory mingle with the smog of possibility - there's more than meets the eye in the race for glory! #AirPollutionEffect" draws attention to the enigmatic synergy between air pollution and athletic accomplishments, encapsulating the fervent musings of online enthusiasts on this unconventional nexus.

Therefore, the current body of literature, both academically rigorous and creatively fanciful, beckons for a deeper examination of the intersection between air pollution in Amarillo, Texas, and Michael Schumacher's Formula One ranking. While the topic may seem far-fetched at first, the forthcoming section will reveal the compelling evidence that links these seemingly disparate elements and challenges conventional perceptions of environmental influence on sporting achievement.


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 Air pollution in Amarillo, Texas and Michael Schumacher's Formula One Ranking. Make lots of 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 Environmental Protection Agency and Wikipedia . You used data from 1992 to 2012

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]]
"Racing Through the Smog: Unveiling the Air Pollution-Accelerated Race to Glory in Michael Schumacher's Formula One Career"

[[ABSTRACT]]
In this study, we aim to unravel the enigmatic connection between air pollution in Amarillo, Texas, and Michael Schumacher's Formula One ranking. Utilizing EPA data on air quality and Wikipedia's comprehensive records of Schumacher's racing career, we delved into this intriguing intersection of environmental factors and athletic performance. Our findings reveal a surprising correlation coefficient of 0.7855787 and a p-value less than 0.01 for the period spanning from 1992 to 2012. The discernible relationship between Schumacher's achievements and air pollution levels prompts us to reexamine the steering forces shaping competitive racing outcomes. Our results underscore the importance of considering environmental variables as potential drivers of sporting success and highlight the significance of a breath of fresh air, both figuratively and literally, in the pursuit of victory.

[[INTRODUCTION]]
Racing has always been a high-octane spectacle that captures the imagination and fuels the competitive spirit, much like a good espresso shot revs up the morning routine. In the world of Formula One, legendary figures like Michael Schumacher have left tire marks on the track of history, setting the pace for generations of aspiring racers. As researchers, we are accustomed to seeking patterns and connections in unexpected places, much like trying to find a missing sock after doing laundry - sometimes, what you uncover is a real toe-tally surprise.
Often, the link between athletic performance and environmental factors is overlooked, much like the unnoticed presence of the lone piece of broccoli in a dish of macaroni and cheese. However, our study plunges into the hazy realm of air pollution in Amarillo, Texas, and its intriguing correlation with the remarkable achievements of Michael Schumacher. As we embark on this unconventional investigation, we aim to shed light on the underexplored territory of how air quality could have possibly fueled Schumacher's racing triumphs, beyond the obvious metaphorical "air in the sails".
One might ask, "Does air pollution really correlate with Formula One success? Or is this just a bunch of exhaust-ive speculation?" Well, strap in, because the data suggests there might be more than just hot air to this idea. With EPA air quality metrics and Schumacher's race performances in hand, we navigated through the twists and turns of statistical analysis to uncover an unexpected relationship with a coefficient that would make any mathematician's heart race (if they had discovered it first).
So, buckle up, hold on to your helmet, and fasten your seatbelt - we are about to embark on a journey that veers from the expected race track of sporting analysis into the unexpected terrain of environmental impact on competitive success. Our findings might just turn the tide on how we perceive the intersection of air pollution and high-speed glory. It's time to peel out and break new ground – just like Schumacher did on the tarmac.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To uncover the mystifying link between air pollution in Amarillo, Texas, and Michael Schumacher's Formula One ranking, we embarked on a quest that rivaled the intensity and precision of an F1 pit stop. Our methodology ingeniously blended the thorough examination of EPA air quality data with the meticulous scrutiny of Michael Schumacher's racing career from the expansive archives of Wikipedia. We promisingly collected data from 1992 to 2012, covering Schumacher's heyday as a dominant force on the racing circuit.

Firstly, we fixed our analytical gaze on gathering air quality indices from the Environmental Protection Agency, ensuring that our search didn’t blow any hot air. With data in tow, we then shifted gears to exploring the fast-paced world of Formula One, poring over the virtual racetrack of Wikipedia to extract every lap time, podium finish, and championship triumph that Schumacher etched into the annals of racing history—all while avoiding the pitfalls of misinformation lurking around each digital corner.

Our next maneuver involved a sophisticated statistical analysis, a turn of events that required careful navigation through the labyrinth of spreadsheets and software tools. We meticulously calculated the correlation coefficient between air pollution levels in Amarillo and the fluctuations in Schumacher's performance indicators, including race wins, podium finishes, and championship standings. This statistical tango aimed to unravel the tantalizing connection that seemed to float ominously in the exhaust-filled air.

In a serendipitous twist of fate, our analysis surfaced a startling correlation coefficient of 0.7855787, which, to put it in layman's terms, would raise eyebrows faster than an F1 car accelerates from 0 to 100 km/h. With the p-value confidently staking its claim as less than 0.01, we found ourselves hurtling down the information highway with an unexpected tailwind, adding further credence to the significance of our findings.

Ultimately, this research harnessed an eclectic blend of environmental data and sporting achievements, thrusting us into the forefront of an unexplored domain where the scent of burning rubber intersected with the odorous realities of air pollution. Our methodology, although not as thrilling as a lap around Monza, embraced the spirit of inquiry and precision that characterizes both the scientific endeavor and the pursuit of victory on the racetrack. Now, with the methodological gears thoroughly elucidated, we rev up our engines to unveil the riveting revelations that emerged from this unorthodox exploration at the intersection of speed and smog.


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 Air pollution in Amarillo, Texas and Michael Schumacher's Formula One Ranking. Make lots of 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 Environmental Protection Agency and Wikipedia .

For the time period 1992 to 2012, you found a correlation 0.7855787, r-squared of 0.6171339, 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]]
"Racing Through the Smog: Unveiling the Air Pollution-Accelerated Race to Glory in Michael Schumacher's Formula One Career"

[[ABSTRACT]]
In this study, we aim to unravel the enigmatic connection between air pollution in Amarillo, Texas, and Michael Schumacher's Formula One ranking. Utilizing EPA data on air quality and Wikipedia's comprehensive records of Schumacher's racing career, we delved into this intriguing intersection of environmental factors and athletic performance. Our findings reveal a surprising correlation coefficient of 0.7855787 and a p-value less than 0.01 for the period spanning from 1992 to 2012. The discernible relationship between Schumacher's achievements and air pollution levels prompts us to reexamine the steering forces shaping competitive racing outcomes. Our results underscore the importance of considering environmental variables as potential drivers of sporting success and highlight the significance of a breath of fresh air, both figuratively and literally, in the pursuit of victory.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
Racing has always been a high-octane spectacle that captures the imagination and fuels the competitive spirit, much like a good espresso shot revs up the morning routine. In the world of Formula One, legendary figures like Michael Schumacher have left tire marks on the track of history, setting the pace for generations of aspiring racers. As researchers, we are accustomed to seeking patterns and connections in unexpected places, much like trying to find a missing sock after doing laundry - sometimes, what you uncover is a real toe-tally surprise.
Often, the link between athletic performance and environmental factors is overlooked, much like the unnoticed presence of the lone piece of broccoli in a dish of macaroni and cheese. However, our study plunges into the hazy realm of air pollution in Amarillo, Texas, and its intriguing correlation with the remarkable achievements of Michael Schumacher. As we embark on this unconventional investigation, we aim to shed light on the underexplored territory of how air quality could have possibly fueled Schumacher's racing triumphs, beyond the obvious metaphorical "air in the sails".
One might ask, "Does air pollution really correlate with Formula One success? Or is this just a bunch of exhaust-ive speculation?" Well, strap in, because the data suggests there might be more than just hot air to this idea. With EPA air quality metrics and Schumacher's race performances in hand, we navigated through the twists and turns of statistical analysis to uncover an unexpected relationship with a coefficient that would make any mathematician's heart race (if they had discovered it first).
So, buckle up, hold on to your helmet, and fasten your seatbelt - we are about to embark on a journey that veers from the expected race track of sporting analysis into the unexpected terrain of environmental impact on competitive success. Our findings might just turn the tide on how we perceive the intersection of air pollution and high-speed glory. It's time to peel out and break new ground – just like Schumacher did on the tarmac.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The analysis of our data revealed a remarkably robust correlation between air pollution levels in Amarillo, Texas, and Michael Schumacher's Formula One ranking. For the period from 1992 to 2012, the correlation coefficient stood at an impressive 0.7855787, indicating a strong positive relationship between these seemingly disparate variables. This finding aligns with the notion that sometimes the most intriguing connections may lurk beyond the finish line, waiting to be unveiled.

Moreover, the r-squared value of 0.6171339 further emphasizes the substantial influence of air pollution on Schumacher's performance, illustrating that approximately 61.7% of the variation in his ranking can be attributed to air quality in Amarillo. This statistical insight reinforces the notion that the air we breathe isn't just a gust of wind in the grand scheme of athletic triumphs – it can also act as a tailwind propelling athletes to greater heights.

The p-value of less than 0.01 provides strong evidence to reject the null hypothesis, affirming that the observed correlation is unlikely to have occurred by chance alone. This emphasizes the need to recognize the role of environmental variables in shaping athletic excellence, reminding us that when it comes to victories, the air quality might just matter as much as the driver's quality.

In Fig. 1, the scatterplot vividly illustrates the striking correlation we uncovered, portraying the convergence of air pollution levels and Schumacher's ranking. The tightly clustered data points manifest a compelling narrative, hinting that as the air quality wavered, so did Schumacher's career trajectory in the exhilarating world of Formula One.

The findings of our study not only underscore the impact of environmental conditions on athletic performance but also beckon us to rethink the dynamics at play in the pursuit of sporting greatness. Just as a gust of wind can alter the trajectory of a race car hurtling down the track, our results illuminate the nuanced role of air pollution in shaping Schumacher's extraordinary racing career.


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 Air pollution in Amarillo, Texas and Michael Schumacher's Formula One Ranking. Make lots of 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]]
"Racing Through the Smog: Unveiling the Air Pollution-Accelerated Race to Glory in Michael Schumacher's Formula One Career"

[[ABSTRACT]]
In this study, we aim to unravel the enigmatic connection between air pollution in Amarillo, Texas, and Michael Schumacher's Formula One ranking. Utilizing EPA data on air quality and Wikipedia's comprehensive records of Schumacher's racing career, we delved into this intriguing intersection of environmental factors and athletic performance. Our findings reveal a surprising correlation coefficient of 0.7855787 and a p-value less than 0.01 for the period spanning from 1992 to 2012. The discernible relationship between Schumacher's achievements and air pollution levels prompts us to reexamine the steering forces shaping competitive racing outcomes. Our results underscore the importance of considering environmental variables as potential drivers of sporting success and highlight the significance of a breath of fresh air, both figuratively and literally, in the pursuit of victory.

[[LITERATURE REVIEW]]
Numerous studies have delved into the impact of air pollution on human health, economic productivity, and environmental sustainability, offering a rich tapestry of scholarly insights. Smith et al. (2017) demonstrated the deleterious effects of air pollution on respiratory health, while Doe and Jones (2019) underscored its correlation with diminished cognitive function. These investigations provide crucial groundwork for understanding the broader ramifications of air pollution, but they have yet to explore its unexpected link to the career trajectory of Formula One legend Michael Schumacher.
Turning to the realm of sports and competition, the work of LeBron and Messi (2015) shed light on the psychological and physiological determinants of athletic prowess, raising thought-provoking questions about the potential role of environmental factors in shaping sporting outcomes. Yet, the notion of air pollution as an influencer in the context of Formula One racing remains an uncharted corner of inquiry.
In addition to these works, an array of non-fiction literature directly addressing air pollution and its repercussions on society can be found. "The Silent Killer: The Unseen Impact of Air Pollution" by Greenbaum (2018) offers a comprehensive exposé on the pervasive effects of air pollution, while "Breathless: A City's Battle for Clean Air" by Clearsky (2016) presents a gripping account of a community's struggle against airborne contaminants.
Adding a playful twist, works of fiction also provide a platform for exploring the interplay between environmental factors and remarkable achievements. In "The Fast and the Curious: A Tale of Speed and Smog" by Velocitizer (2014), the protagonist uncovers an unexpected alliance between air pollution and record-breaking race times in a whimsical narrative set in the world of motorsports. Similarly, "The Cloudy Victory" by AirHead (2012) weaves a fantastical tale where air pollution mysteriously propels athletes to unparalleled successes, blurring the lines between reality and fiction.
Furthermore, the proliferation of social media has brought forth an assortment of intriguing posts that hint at the uncanny parallels between air quality and sporting triumphs. A tweet by @RacingProphet proclaiming, "The fumes of victory mingle with the smog of possibility - there's more than meets the eye in the race for glory! #AirPollutionEffect" draws attention to the enigmatic synergy between air pollution and athletic accomplishments, encapsulating the fervent musings of online enthusiasts on this unconventional nexus.
Therefore, the current body of literature, both academically rigorous and creatively fanciful, beckons for a deeper examination of the intersection between air pollution in Amarillo, Texas, and Michael Schumacher's Formula One ranking. While the topic may seem far-fetched at first, the forthcoming section will reveal the compelling evidence that links these seemingly disparate elements and challenges conventional perceptions of environmental influence on sporting achievement.

[[RESULTS]]
The analysis of our data revealed a remarkably robust correlation between air pollution levels in Amarillo, Texas, and Michael Schumacher's Formula One ranking. For the period from 1992 to 2012, the correlation coefficient stood at an impressive 0.7855787, indicating a strong positive relationship between these seemingly disparate variables. This finding aligns with the notion that sometimes the most intriguing connections may lurk beyond the finish line, waiting to be unveiled.
Moreover, the r-squared value of 0.6171339 further emphasizes the substantial influence of air pollution on Schumacher's performance, illustrating that approximately 61.7% of the variation in his ranking can be attributed to air quality in Amarillo. This statistical insight reinforces the notion that the air we breathe isn't just a gust of wind in the grand scheme of athletic triumphs – it can also act as a tailwind propelling athletes to greater heights.
The p-value of less than 0.01 provides strong evidence to reject the null hypothesis, affirming that the observed correlation is unlikely to have occurred by chance alone. This emphasizes the need to recognize the role of environmental variables in shaping athletic excellence, reminding us that when it comes to victories, the air quality might just matter as much as the driver's quality.
In Fig. 1, the scatterplot vividly illustrates the striking correlation we uncovered, portraying the convergence of air pollution levels and Schumacher's ranking. The tightly clustered data points manifest a compelling narrative, hinting that as the air quality wavered, so did Schumacher's career trajectory in the exhilarating world of Formula One.
The findings of our study not only underscore the impact of environmental conditions on athletic performance but also beckon us to rethink the dynamics at play in the pursuit of sporting greatness. Just as a gust of wind can alter the trajectory of a race car hurtling down the track, our results illuminate the nuanced role of air pollution in shaping Schumacher's extraordinary racing career.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The remarkable connection we uncovered between air pollution levels in Amarillo, Texas, and Michael Schumacher's Formula One ranking defies conventional wisdom and oozes intrigue – it's like discovering a turbo boost hidden in the smog. Our findings not only align with prior research on environmental variables shaping athletic excellence but also elevate our understanding of the whims of fate in the high-octane world of motor racing.

Let's harken back to the whimsical narratives presented in "The Fast and the Curious" and "The Cloudy Victory." While these works were undoubtedly fictitious, our study lends a gleaming streak of truth to the notion of air pollution clandestinely propelling athletes to unparalleled successes. The scatterplot depicting the convergence of air pollution levels and Schumacher's ranking vividly encapsulates this unfathomable alliance, akin to the uncanny harmony of a finely-tuned engine and the rhythm of the racetrack.

The nod to @RacingProphet's enigmatic tweet reverberates through our findings, emphasizing that the "fumes of victory" indeed mingle with the "smog of possibility." The statistically robust correlation coefficient and r-squared value substantiate the profound influence of air pollution on Schumacher's performance, debunking the age-old adage that "clean air makes a clean race." Sometimes, it's the impurities in the air that seem to embolden a racer's quest for greatness.

Our results not only lend credence to the unconventional intersection of air pollution and Formula One accolades but also underscore the need to rejuvenate sports science with a lungful of fresh perspectives. Just as a gust of wind can catapult a race car forward, so can the unseen forces of air quality shape an athlete's trajectory toward glory.

In the pursuit of sporting triumphs, let's not dismiss the possibility that the air we breathe might hold the key to exhilarating victories and unprecedented achievements. As we continue to chart the unexplored terrain of environmental influencers in sports, may our findings ignite a metaphorical tailwind for future research to soar through this uncharted, yet exhilarating, realm.


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 Air pollution in Amarillo, Texas and Michael Schumacher's Formula One Ranking. Make lots of 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]]
"Racing Through the Smog: Unveiling the Air Pollution-Accelerated Race to Glory in Michael Schumacher's Formula One Career"

[[ABSTRACT]]
In this study, we aim to unravel the enigmatic connection between air pollution in Amarillo, Texas, and Michael Schumacher's Formula One ranking. Utilizing EPA data on air quality and Wikipedia's comprehensive records of Schumacher's racing career, we delved into this intriguing intersection of environmental factors and athletic performance. Our findings reveal a surprising correlation coefficient of 0.7855787 and a p-value less than 0.01 for the period spanning from 1992 to 2012. The discernible relationship between Schumacher's achievements and air pollution levels prompts us to reexamine the steering forces shaping competitive racing outcomes. Our results underscore the importance of considering environmental variables as potential drivers of sporting success and highlight the significance of a breath of fresh air, both figuratively and literally, in the pursuit of victory.

[[INTRDUCTION]]
Racing has always been a high-octane spectacle that captures the imagination and fuels the competitive spirit, much like a good espresso shot revs up the morning routine. In the world of Formula One, legendary figures like Michael Schumacher have left tire marks on the track of history, setting the pace for generations of aspiring racers. As researchers, we are accustomed to seeking patterns and connections in unexpected places, much like trying to find a missing sock after doing laundry - sometimes, what you uncover is a real toe-tally surprise.
Often, the link between athletic performance and environmental factors is overlooked, much like the unnoticed presence of the lone piece of broccoli in a dish of macaroni and cheese. However, our study plunges into the hazy realm of air pollution in Amarillo, Texas, and its intriguing correlation with the remarkable achievements of Michael Schumacher. As we embark on this unconventional investigation, we aim to shed light on the underexplored territory of how air quality could have possibly fueled Schumacher's racing triumphs, beyond the obvious metaphorical "air in the sails".
One might ask, "Does air pollution really correlate with Formula One success? Or is this just a bunch of exhaust-ive speculation?" Well, strap in, because the data suggests there might be more than just hot air to this idea. With EPA air quality metrics and Schumacher's race performances in hand, we navigated through the twists and turns of statistical analysis to uncover an unexpected relationship with a coefficient that would make any mathematician's heart race (if they had discovered it first).
So, buckle up, hold on to your helmet, and fasten your seatbelt - we are about to embark on a journey that veers from the expected race track of sporting analysis into the unexpected terrain of environmental impact on competitive success. Our findings might just turn the tide on how we perceive the intersection of air pollution and high-speed glory. It's time to peel out and break new ground – just like Schumacher did on the tarmac.

[[RESULTS]]
The analysis of our data revealed a remarkably robust correlation between air pollution levels in Amarillo, Texas, and Michael Schumacher's Formula One ranking. For the period from 1992 to 2012, the correlation coefficient stood at an impressive 0.7855787, indicating a strong positive relationship between these seemingly disparate variables. This finding aligns with the notion that sometimes the most intriguing connections may lurk beyond the finish line, waiting to be unveiled.
Moreover, the r-squared value of 0.6171339 further emphasizes the substantial influence of air pollution on Schumacher's performance, illustrating that approximately 61.7% of the variation in his ranking can be attributed to air quality in Amarillo. This statistical insight reinforces the notion that the air we breathe isn't just a gust of wind in the grand scheme of athletic triumphs – it can also act as a tailwind propelling athletes to greater heights.
The p-value of less than 0.01 provides strong evidence to reject the null hypothesis, affirming that the observed correlation is unlikely to have occurred by chance alone. This emphasizes the need to recognize the role of environmental variables in shaping athletic excellence, reminding us that when it comes to victories, the air quality might just matter as much as the driver's quality.
In Fig. 1, the scatterplot vividly illustrates the striking correlation we uncovered, portraying the convergence of air pollution levels and Schumacher's ranking. The tightly clustered data points manifest a compelling narrative, hinting that as the air quality wavered, so did Schumacher's career trajectory in the exhilarating world of Formula One.
The findings of our study not only underscore the impact of environmental conditions on athletic performance but also beckon us to rethink the dynamics at play in the pursuit of sporting greatness. Just as a gust of wind can alter the trajectory of a race car hurtling down the track, our results illuminate the nuanced role of air pollution in shaping Schumacher's extraordinary racing career.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our study illuminates the unexpected interplay between air pollution in Amarillo, Texas, and Michael Schumacher's Formula One ranking, showcasing an intriguing connection that hits all the right racing notes. This correlation, though initially as surprising as finding a trove of gold at the end of a carbon footprint, stands as robust as a well-built racecar chassis. The statistical insights we've uncovered offer a breath of fresh air in the realm of sporting analysis, reminding us that even the most seemingly stationary factors, much like a parked car, can have an astonishing impact on athletic success.

Our findings beckon researchers to open the windows of inquiry wider, emphasizing the need to consider environmental variables as potential accelerator pedals in the race toward victory. The data speaks volumes – or perhaps revs up the engine – and nudges us to recognize the substantial influence of air quality on athletic performance. It seems that when it comes to competitive racing, the air we breathe may indeed carry more weight than we previously imagined – a realization as surprising as realizing that a Formula One car can run on dad jokes instead of fuel.

As we reach the finish line of this inquiry, it becomes apparent that air pollution, much like a persistent adversary on the track, may have stealthily influenced Schumacher's Formula One career. Our results offer a tantalizing glimpse into the untapped potential of considering environmental variables in the analysis of sporting achievements. Therefore, we assert with the utmost confidence and a playful exclamation that no further research in this area is needed – after all, it's time to let this correlation speed off into the sunset, leaving us with a sense of awe and an air of lighthearted amusement.


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 Racing Through the Smog: Unveiling the Air Pollution-Accelerated Race to Glory in Michael Schumacher's Formula One Career. Respond only with the name of a fictional academic journal.

ChatGPT:

Journal of Applied Motorsport Science


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 Racing Through the Smog: Unveiling the Air Pollution-Accelerated Race to Glory in Michael Schumacher's Formula One Career. Respond only with the name of a fictional organization.

ChatGPT:

The Center for Advanced Motor Sports Research and Environmental Studies (CAMRES)


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 Racing Through the Smog: Unveiling the Air Pollution-Accelerated Race to Glory in Michael Schumacher's Formula One Career with an abstract of In this study, we aim to unravel the enigmatic connection between air pollution in Amarillo, Texas, and Michael Schumacher's Formula One ranking. Utilizing EPA data on air quality and Wikipedia's comprehensive records of Schumacher's racing career, we delved into this intriguing intersection of environmental factors and athletic performance. Our findings reveal a surprising correlation coefficient of 0.7855787 and a p-value less than 0.01 for the period spanning from 1992 to 2012. The discernible relationship between Schumacher's achievements and air pollution levels prompts us to reexamine the steering forces shaping competitive racing outcomes. Our results underscore the importance of considering environmental variables as potential drivers of sporting success and highlight the significance of a breath of fresh air, both figuratively and literally, in the pursuit of victory.

ChatGPT:

Air pollution, Michael Schumacher, Formula One, racing career, EPA data, air quality, Amarillo Texas, environmental factors, athletic performance, correlation coefficient, p-value, competitive racing outcomes, environmental variables, sporting success

*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

Air pollution in Amarillo, Texas
Detailed data title: Percentage of days with air quality at 'unhealthy for sensitive groups' or worse in Amarillo, TX
Source: Environmental Protection Agency
See what else correlates with Air pollution in Amarillo, Texas

Michael Schumacher's Formula One Ranking
Detailed data title: Michael Schumacher's Formula One Rankings
Source: Wikipedia
See what else correlates with Michael Schumacher's Formula One Ranking

Correlation r = 0.7855787 (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.6171339 (Coefficient of determination)
This means 61.7% of the change in the one variable (i.e., Michael Schumacher's Formula One Ranking) is predictable based on the change in the other (i.e., Air pollution in Amarillo, Texas) over the 21 years from 1992 through 2012.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 2.4E-5. 0.0000244646145495575700000000
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.79 in 0.0024% of random cases. Said differently, if you correlated 40,875 random variables You don't actually need 40 thousand variables to find a correlation like this one. 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.

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 20 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 20 because we have two variables measured over a period of 21 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.54, 0.91 ] 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.
199219931994199519961997199819992000200120022003200420052006200720082009201020112012
Air pollution in Amarillo, Texas (Bad air quality days)00000000000000000002.216073.55191
Michael Schumacher's Formula One Ranking (Position)3411302511111320009813




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. Outlandish outliers: There are "outliers" in this data. In concept, "outlier" just means "way different than the rest of your dataset." When calculating a correlation like this, they are particularly impactful because a single outlier can substantially increase your correlation.

    For the purposes of this project, I counted a point as an outlier if it the residual was two standard deviations from the mean.

    (This bullet point only shows up in the details page on charts that do, in fact, have outliers.)
    They stand out on the scatterplot above: notice the dots that are far away from any other dots. I intentionally mishandeled outliers, which makes the correlation look extra strong.




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([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2.21607,3.55191,])
array_2 = np.array([3,4,1,1,3,0,2,5,1,1,1,1,1,3,2,0,0,0,9,8,13,])
array_1_name = "Air pollution in Amarillo, Texas"
array_2_name = "Michael Schumacher's Formula One Ranking"

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

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



Reuseable content

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

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

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

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

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

Download images for these variables:


View another random correlation

How fun was this correlation?

Your correlation inspection deserves a standing ovation!


Correlation ID: 3119 · Black Variable ID: 20261 · Red Variable ID: 104
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0