about · email me · subscribe
Spurious correlation #3,670 · 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 Farmington, New Mexico and the second variable is Frank Lampard's Premier League goal tally.  The chart goes from 2006 to 2016, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

As the air cleared in Farmington, it created a more 'sucker' environment for Frank Lampard, where he just couldn't breathe in those crucial moments on the field. With fewer pollutants to 'assist' him, he found himself gasping for goals and unable to 'net' as many as before. It seems like the only thing that didn't decrease was his 'header' hair.

Model: dalle-3
Prompt: Title: Hazy Soccer Match Create an imagery of Farmington, New Mexico, with a hazy sky due to air pollution. In the background, depict heavy factory smoke rising into the hazy air. In the forefront, set the scene at a Premier League soccer field. Show Frank Lampard scoring a goal while the goalkeeper is distracted by a bright red balloon floating behind them. The players and stadium should be depicted realistically with attention to detail in their uniforms and the field. 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 Farmington, New Mexico and Frank Lampard's Premier League goal tally. 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: Sci-fi fantacy a Polaroid photo Realistic Celtic art Minimalism
ChatGPT: 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 Farmington, New Mexico and Frank Lampard's Premier League goal tally, in the following situation: The increase in air pollution in Farmington, New Mexico led to a surge in balloon production, which distracted opposing goalkeepers and allowed Frank Lampard to score more goals in the Premier League.. Keep the description simple.
ChatGPT: In Farmington, New Mexico, the sky is hazy with air pollution as factories release smoke into the air. Meanwhile, on a Premier League soccer field, Frank Lampard scores a goal with a bright red balloon floating behind the goalkeeper, causing a distraction.

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: [ Realistic ] and depicting this scene: In Farmington, New Mexico, the sky is hazy with air pollution as factories release smoke into the air. Meanwhile, on a Premier League soccer field, Frank Lampard scores a goal with a bright red balloon floating behind the goalkeeper, causing a distraction. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Title: Hazy Soccer Match Create an imagery of Farmington, New Mexico, with a hazy sky due to air pollution. In the background, depict heavy factory smoke rising into the hazy air. In the forefront, set the scene at a Premier League soccer field. Show Frank Lampard scoring a goal while the goalkeeper is distracted by a bright red balloon floating behind them. The players and stadium should be depicted realistically with attention to detail in their uniforms and the field.

*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 a decrease in Air pollution in Farmington, New Mexico caused Frank Lampard's Premier League goal tally to decrease. Include one good pun.

AI academic paper

(Because p < 0.01)
Clearing the Air: Unearthing the Link Between Air Pollution and Lampard's League Goals

The Journal of Sports Ecology and Environmental Health

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

Please draft the title and abstract of an academic research paper presenting the findings of the connection between Air pollution in Farmington, New Mexico and Frank Lampard's Premier League goal tally. Make lots of jokes, goofy observations, and puns.

Make the title punny if you can come up with clever pun. If not, just make it sound clever.

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

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]]
Clearing the Air: Unearthing the Link Between Air Pollution and Lampard's League Goals

[[ABSTRACT]]
This research study delves into the unexpected connection between air pollution levels in Farmington, New Mexico, and the Premier League goal tally of the legendary Frank Lampard. Through an unconventional analysis that combines environmental data from the Environmental Protection Agency and soccer statistics from Wikipedia, we have unearthed a striking correlation between the two previously unrelated phenomena. Our findings reveal a noteworthy correlation coefficient of 0.8613073 and a significance level of p < 0.01 for the period spanning 2006 to 2016. This suggests a statistically robust relationship, prompting us to consider the whimsical notion of air quality potentially influencing the prowess of a football luminary. Our study not only sheds light on this curious association but also underscores the importance of approaching research endeavors with an open mind and a willingness to uncover unexpected linkages. As we unravel this intriguing subject matter, we invite readers to join us in recognizing the whimsy and wonder that can emerge from the melding of traditionally distinct domains of inquiry.


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

Please make up the introduction section of an academic research paper presenting the findings of the connection between Air pollution in Farmington, New Mexico and Frank Lampard's Premier League goal tally. Make lots of jokes, goofy observations, and puns.

Here is the title and abstract of the paper:
[[TITLE]]
Clearing the Air: Unearthing the Link Between Air Pollution and Lampard's League Goals

[[ABSTRACT]]
This research study delves into the unexpected connection between air pollution levels in Farmington, New Mexico, and the Premier League goal tally of the legendary Frank Lampard. Through an unconventional analysis that combines environmental data from the Environmental Protection Agency and soccer statistics from Wikipedia, we have unearthed a striking correlation between the two previously unrelated phenomena. Our findings reveal a noteworthy correlation coefficient of 0.8613073 and a significance level of p < 0.01 for the period spanning 2006 to 2016. This suggests a statistically robust relationship, prompting us to consider the whimsical notion of air quality potentially influencing the prowess of a football luminary. Our study not only sheds light on this curious association but also underscores the importance of approaching research endeavors with an open mind and a willingness to uncover unexpected linkages. As we unravel this intriguing subject matter, we invite readers to join us in recognizing the whimsy and wonder that can emerge from the melding of traditionally distinct domains of inquiry.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

When it comes to sports, one may not immediately envision a link between the eloquent art of scoring goals on the soccer pitch and the not-so-eloquent matter of air pollution in a remote town in New Mexico. However, as we delve into the fascinating world of unexpected connections, we are reminded that truth can be stranger than fiction. In this paper, we embark on a whimsical journey that unearths an unlikely camaraderie between Farmington, New Mexico's air quality and the Premier League goal tally of the football icon, Frank Lampard.

As researchers, we often find ourselves enveloped in the pursuit of underexplored linkages, at times straying into the realm of the bizarre – but, after all, isn't science all about embracing the unexpected? In this study, we have not only embraced the unexpected, but we've also given it a warm handshake and invited it for afternoon tea. The fusion of environmental data and football statistics has led us to an intriguing correlation, rivalling the unpredictability of the football pitches where Lampard once showcased his astonishing talent.

In the words of Shakespeare, "All the world's a stage." And indeed, our research sets the stage for a most unusual act – where air quality and athletic achievement perform a duet that would leave even the most seasoned critics pondering. With a correlation coefficient that would make statisticians do a double-take and a significance level that would cause them to raise an eyebrow, we find ourselves contemplating the possibility of air pollutants sneaking onto the soccer field, attempting to thwart Lampard's goal-scoring prowess.

A nod, a wink, and a raised eyebrow. This is how we approach the intriguing correlation that we present in this paper. We invite the reader to join us in exploring the uncharted territory where the whimsical and the empirical intersect, and where even the quantitatively-minded are compelled to consider the potential impact of the unseen forces of pollution on the graceful ballet of the beautiful game. So, sit back, relax, and prepare for a journey that will leave you both scratching your head and marveling at the unexpected hilarity of the universe.


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

Please make up a literature review section of an academic research paper presenting the findings of the connection between Air pollution in Farmington, New Mexico and Frank Lampard's Premier League goal tally. 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 devolve ever further, and mention something completely ridiculous, like you conducted literature review by reading the backs of shampoo bottles.

Here is the title and abstract of the paper:
[[TITLE]]
Clearing the Air: Unearthing the Link Between Air Pollution and Lampard's League Goals

[[ABSTRACT]]
This research study delves into the unexpected connection between air pollution levels in Farmington, New Mexico, and the Premier League goal tally of the legendary Frank Lampard. Through an unconventional analysis that combines environmental data from the Environmental Protection Agency and soccer statistics from Wikipedia, we have unearthed a striking correlation between the two previously unrelated phenomena. Our findings reveal a noteworthy correlation coefficient of 0.8613073 and a significance level of p < 0.01 for the period spanning 2006 to 2016. This suggests a statistically robust relationship, prompting us to consider the whimsical notion of air quality potentially influencing the prowess of a football luminary. Our study not only sheds light on this curious association but also underscores the importance of approaching research endeavors with an open mind and a willingness to uncover unexpected linkages. As we unravel this intriguing subject matter, we invite readers to join us in recognizing the whimsy and wonder that can emerge from the melding of traditionally distinct domains of inquiry.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
When it comes to sports, one may not immediately envision a link between the eloquent art of scoring goals on the soccer pitch and the not-so-eloquent matter of air pollution in a remote town in New Mexico. However, as we delve into the fascinating world of unexpected connections, we are reminded that truth can be stranger than fiction. In this paper, we embark on a whimsical journey that unearths an unlikely camaraderie between Farmington, New Mexico's air quality and the Premier League goal tally of the football icon, Frank Lampard.
As researchers, we often find ourselves enveloped in the pursuit of underexplored linkages, at times straying into the realm of the bizarre – but, after all, isn't science all about embracing the unexpected? In this study, we have not only embraced the unexpected, but we've also given it a warm handshake and invited it for afternoon tea. The fusion of environmental data and football statistics has led us to an intriguing correlation, rivalling the unpredictability of the football pitches where Lampard once showcased his astonishing talent.
In the words of Shakespeare, "All the world's a stage." And indeed, our research sets the stage for a most unusual act – where air quality and athletic achievement perform a duet that would leave even the most seasoned critics pondering. With a correlation coefficient that would make statisticians do a double-take and a significance level that would cause them to raise an eyebrow, we find ourselves contemplating the possibility of air pollutants sneaking onto the soccer field, attempting to thwart Lampard's goal-scoring prowess.
A nod, a wink, and a raised eyebrow. This is how we approach the intriguing correlation that we present in this paper. We invite the reader to join us in exploring the uncharted territory where the whimsical and the empirical intersect, and where even the quantitatively-minded are compelled to consider the potential impact of the unseen forces of pollution on the graceful ballet of the beautiful game. So, sit back, relax, and prepare for a journey that will leave you both scratching your head and marveling at the unexpected hilarity of the universe.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

In "Air Quality and Its Impact on Human Health," Smith et al. examine the detrimental effects of air pollution on respiratory health in various regions across the United States. The authors find that exposure to high levels of particulate matter and ozone is associated with an increased risk of respiratory diseases, providing a comprehensive overview of the environmental and health implications of air pollution. Similarly, Doe and Jones, in their study "Environmental Factors and Athletic Performance," delve into the impact of environmental elements on athletic performance, including the effects of air quality on cardiovascular endurance and overall physical well-being.

Moving from the realm of factual and empirical studies to the world of literature, the work of renowned environmentalist Bill McKibben in "The End of Nature" brings attention to the interconnectedness of natural systems and human activities, underscoring the profound influence of environmental factors on human existence. Moreover, Barbara Kingsolver's "Prodigal Summer" offers a vivid exploration of the intricate relationship between wildlife and human society, hinting at the nuanced interactions between ecological conditions and human behavior.

Devoting attention to the impact of outdoor air pollution on indoor air quality, the authors of "Indoor Air Pollution and Health" elucidate the pervasive consequences of pollutants seeping into homes and other enclosed spaces. Furthermore, delving into the fictitious realm, the works of J.R.R. Tolkien, particularly "The Lord of the Rings," prompt contemplation of the precarious balance between industrialization and the preservation of natural landscapes, sowing seeds of thought regarding the potential influence of environmental disturbances on unexpected facets of human endeavor.

Beyond the conventional sources of academic discourse, the researcher extends their scrutiny to unconventional reservoirs of knowledge. In the pursuit of uncovering unorthodox connections, the researcher amusingly confesses to perusing the unlikely troves of information found on the back labels of household products, from shampoo bottles to cleaning agents, attempting to glean insights into the enigmatic linkage between air pollution in Farmington, New Mexico, and Frank Lampard's notable achievements on the football field. While the veracity of these sources may be questionable, the researcher's pursuit of unusual angles of inquiry brings a lighthearted and whimsical dimension to the scholarly pursuit of knowledge.

In the spirit of intellectual curiosity and a penchant for the unconventional, the researcher draws upon a wide array of sources, traversing the realms of concrete evidence, literary musings, and even the most unexpected corners of everyday life, all in a quest to shed light on the peculiar correlation between air pollution and Premier League goal tallies.


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

Please make up the methodology section of an academic research paper presenting the findings of the connection between Air pollution in Farmington, New Mexico and Frank Lampard's Premier League goal tally. Make lots of jokes, goofy observations, and puns.

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 2006 to 2016

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]]
Clearing the Air: Unearthing the Link Between Air Pollution and Lampard's League Goals

[[ABSTRACT]]
This research study delves into the unexpected connection between air pollution levels in Farmington, New Mexico, and the Premier League goal tally of the legendary Frank Lampard. Through an unconventional analysis that combines environmental data from the Environmental Protection Agency and soccer statistics from Wikipedia, we have unearthed a striking correlation between the two previously unrelated phenomena. Our findings reveal a noteworthy correlation coefficient of 0.8613073 and a significance level of p < 0.01 for the period spanning 2006 to 2016. This suggests a statistically robust relationship, prompting us to consider the whimsical notion of air quality potentially influencing the prowess of a football luminary. Our study not only sheds light on this curious association but also underscores the importance of approaching research endeavors with an open mind and a willingness to uncover unexpected linkages. As we unravel this intriguing subject matter, we invite readers to join us in recognizing the whimsy and wonder that can emerge from the melding of traditionally distinct domains of inquiry.

[[INTRODUCTION]]
When it comes to sports, one may not immediately envision a link between the eloquent art of scoring goals on the soccer pitch and the not-so-eloquent matter of air pollution in a remote town in New Mexico. However, as we delve into the fascinating world of unexpected connections, we are reminded that truth can be stranger than fiction. In this paper, we embark on a whimsical journey that unearths an unlikely camaraderie between Farmington, New Mexico's air quality and the Premier League goal tally of the football icon, Frank Lampard.
As researchers, we often find ourselves enveloped in the pursuit of underexplored linkages, at times straying into the realm of the bizarre – but, after all, isn't science all about embracing the unexpected? In this study, we have not only embraced the unexpected, but we've also given it a warm handshake and invited it for afternoon tea. The fusion of environmental data and football statistics has led us to an intriguing correlation, rivalling the unpredictability of the football pitches where Lampard once showcased his astonishing talent.
In the words of Shakespeare, "All the world's a stage." And indeed, our research sets the stage for a most unusual act – where air quality and athletic achievement perform a duet that would leave even the most seasoned critics pondering. With a correlation coefficient that would make statisticians do a double-take and a significance level that would cause them to raise an eyebrow, we find ourselves contemplating the possibility of air pollutants sneaking onto the soccer field, attempting to thwart Lampard's goal-scoring prowess.
A nod, a wink, and a raised eyebrow. This is how we approach the intriguing correlation that we present in this paper. We invite the reader to join us in exploring the uncharted territory where the whimsical and the empirical intersect, and where even the quantitatively-minded are compelled to consider the potential impact of the unseen forces of pollution on the graceful ballet of the beautiful game. So, sit back, relax, and prepare for a journey that will leave you both scratching your head and marveling at the unexpected hilarity of the universe.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To untangle the enigmatic connection between air pollution in Farmington, New Mexico, and the Premier League goal tally of the illustrious Frank Lampard, our research team employed an assortment of unorthodox methods and offbeat approaches. We embarked on this whimsical quest armed with an eclectic blend of data from the Environmental Protection Agency, Wikipedia, and a dash of unconventional thinking.

First and foremost, we gallivanted across the digital expanse, foraging for environmental data like intrepid explorers on a treasure hunt. After unearthing treasure troves of air quality metrics from the Environmental Protection Agency's digital archives, we meticulously sifted through the numbers, treating each data point like a unique puzzle piece in the grand mosaic of our study. As we navigated this sea of figures, we occasionally found ourselves inadvertently enamored with the romantic notion of air pollutant particles pirouetting whimsically in the New Mexican breeze, albeit in an entirely facetious manner, of course.

Simultaneously, we delved into the immersive world of soccer statistics, traversing the virtual hallways of Wikipedia with fervent determination. With the same fervor typically reserved for unraveling the mysteries of the universe, we compiled Frank Lampard's Premier League goal tallies from 2006 to 2016, harnessing the power of digital technology to track his every goal-scoring exploit. In between fervid computations and perplexed chuckles, we meticulously charted Lampard's feats on the field and couldn't help but ponder if, amidst his sterling performances, there was a covert dance between air pollutants and his goal-scoring prowess.

To unravel the potential correlation between air pollution and Lampard's goal-scoring prowess, we twirled into the waltz of statistical analysis with the grace of auditioning amateurs in a ballroom. Armed with equations and algorithms like cumbersome ballroom garb, we meticulously calculated correlation coefficients and significance levels, summoning the spirits of numerical sorcery to discern the profound implications of our findings. This enthralling dance with numbers yielded a correlation coefficient that demanded a second glance, making us question if the mischievous spirits of statistical whimsy were in fact at play.

Moreover, in our analysis, we prioritized rigor and precision, treating the peculiar hypothesis of air quality's influence on Premier League goal tallies with the utmost seriousness, despite the whimsy inherent in our exploratory thrust into this strange, uncharted territory. Our statistical analyses were executed with a fervor equal to that of a maiden's declaration of love in a Shakespearean play, and our results were handled with a care as delicate as a dainty teacup in a tempest. With every calculation and interpretation, we also maintained a sense of lighthearted amusement, constantly reminding ourselves of the arterial humor in our audacious endeavor.

Therefore, our research methodology was a rhythmic blend of precision, playfulness, and a sprinkle of scholarly exuberance. Once we had aligned the stars, danced with the numbers, and savored the intriguing correlations, we found ourselves at the threshold of unveiling an unexpected yet amusing link between the seemingly incongruous realms of air pollution and Premier League goal-scoring finesse.


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

Please make up the results section of an academic research paper presenting the findings of the connection between Air pollution in Farmington, New Mexico and Frank Lampard's Premier League goal tally. Make lots of jokes, goofy observations, and puns.

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 2006 to 2016, you found a correlation 0.8613073, r-squared of 0.7418502, 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]]
Clearing the Air: Unearthing the Link Between Air Pollution and Lampard's League Goals

[[ABSTRACT]]
This research study delves into the unexpected connection between air pollution levels in Farmington, New Mexico, and the Premier League goal tally of the legendary Frank Lampard. Through an unconventional analysis that combines environmental data from the Environmental Protection Agency and soccer statistics from Wikipedia, we have unearthed a striking correlation between the two previously unrelated phenomena. Our findings reveal a noteworthy correlation coefficient of 0.8613073 and a significance level of p < 0.01 for the period spanning 2006 to 2016. This suggests a statistically robust relationship, prompting us to consider the whimsical notion of air quality potentially influencing the prowess of a football luminary. Our study not only sheds light on this curious association but also underscores the importance of approaching research endeavors with an open mind and a willingness to uncover unexpected linkages. As we unravel this intriguing subject matter, we invite readers to join us in recognizing the whimsy and wonder that can emerge from the melding of traditionally distinct domains of inquiry.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
When it comes to sports, one may not immediately envision a link between the eloquent art of scoring goals on the soccer pitch and the not-so-eloquent matter of air pollution in a remote town in New Mexico. However, as we delve into the fascinating world of unexpected connections, we are reminded that truth can be stranger than fiction. In this paper, we embark on a whimsical journey that unearths an unlikely camaraderie between Farmington, New Mexico's air quality and the Premier League goal tally of the football icon, Frank Lampard.
As researchers, we often find ourselves enveloped in the pursuit of underexplored linkages, at times straying into the realm of the bizarre – but, after all, isn't science all about embracing the unexpected? In this study, we have not only embraced the unexpected, but we've also given it a warm handshake and invited it for afternoon tea. The fusion of environmental data and football statistics has led us to an intriguing correlation, rivalling the unpredictability of the football pitches where Lampard once showcased his astonishing talent.
In the words of Shakespeare, "All the world's a stage." And indeed, our research sets the stage for a most unusual act – where air quality and athletic achievement perform a duet that would leave even the most seasoned critics pondering. With a correlation coefficient that would make statisticians do a double-take and a significance level that would cause them to raise an eyebrow, we find ourselves contemplating the possibility of air pollutants sneaking onto the soccer field, attempting to thwart Lampard's goal-scoring prowess.
A nod, a wink, and a raised eyebrow. This is how we approach the intriguing correlation that we present in this paper. We invite the reader to join us in exploring the uncharted territory where the whimsical and the empirical intersect, and where even the quantitatively-minded are compelled to consider the potential impact of the unseen forces of pollution on the graceful ballet of the beautiful game. So, sit back, relax, and prepare for a journey that will leave you both scratching your head and marveling at the unexpected hilarity of the universe.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

Our analysis unearthed a startling correlation between air pollution levels in Farmington, New Mexico, and the Premier League goal tally of the renowned Frank Lampard. The correlation coefficient of 0.8613073 indicates a strong positive relationship between these seemingly unrelated variables. This robust association was further supported by an r-squared value of 0.7418502, signifying that approximately 74% of the variance in Lampard's goal tally can be explained by air pollution levels in Farmington. With a significance level of p < 0.01, the probability of obtaining such a strong correlation by chance alone is slim to none, compelling us to consider the presence of a compelling, albeit puzzling, connection.

Figure 1 (to be included) illustrates the scatterplot depicting the tight relationship between air pollution in Farmington, New Mexico, and Lampard's Premier League goal tally. The points on the graph are as tightly knit as a well-organized defense, affirming the validity of our findings and challenging the conventional boundaries of what can influence athletic performance.

These results not only highlight the statistical significance of the correlation but also invite us to reflect on the unexpected interplay between environmental factors and sports achievements. While it may seem like a quirky coincidence, our data paints a compelling picture of the unseen forces at play in the world of professional sports. As we venture further into this peculiar domain, we are reminded that sometimes, truth is indeed stranger than fiction.

The correlation we've uncovered dances on the edge of the soccer field, challenging conventional wisdom and beckoning us to consider the whimsical possibilities that may influence athletic prowess. Our research offers a refreshing reminder that the world of sports, much like life itself, is teeming with the unexpected and the peculiar. In the spirit of embracing the unconventional, we invite the reader to join us in embracing the delightful peculiarity of this connection, as we bask in the revelry of the whimsical and the empirical intersecting in this enchanting liaison between air pollution and Lampard's goal-scoring antics.


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

Please make up the discussion section of an academic research paper presenting the findings of the connection between Air pollution in Farmington, New Mexico and Frank Lampard's Premier League goal tally. Make lots of jokes, goofy observations, and puns.

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]]
Clearing the Air: Unearthing the Link Between Air Pollution and Lampard's League Goals

[[ABSTRACT]]
This research study delves into the unexpected connection between air pollution levels in Farmington, New Mexico, and the Premier League goal tally of the legendary Frank Lampard. Through an unconventional analysis that combines environmental data from the Environmental Protection Agency and soccer statistics from Wikipedia, we have unearthed a striking correlation between the two previously unrelated phenomena. Our findings reveal a noteworthy correlation coefficient of 0.8613073 and a significance level of p < 0.01 for the period spanning 2006 to 2016. This suggests a statistically robust relationship, prompting us to consider the whimsical notion of air quality potentially influencing the prowess of a football luminary. Our study not only sheds light on this curious association but also underscores the importance of approaching research endeavors with an open mind and a willingness to uncover unexpected linkages. As we unravel this intriguing subject matter, we invite readers to join us in recognizing the whimsy and wonder that can emerge from the melding of traditionally distinct domains of inquiry.

[[LITERATURE REVIEW]]
In "Air Quality and Its Impact on Human Health," Smith et al. examine the detrimental effects of air pollution on respiratory health in various regions across the United States. The authors find that exposure to high levels of particulate matter and ozone is associated with an increased risk of respiratory diseases, providing a comprehensive overview of the environmental and health implications of air pollution. Similarly, Doe and Jones, in their study "Environmental Factors and Athletic Performance," delve into the impact of environmental elements on athletic performance, including the effects of air quality on cardiovascular endurance and overall physical well-being.
Moving from the realm of factual and empirical studies to the world of literature, the work of renowned environmentalist Bill McKibben in "The End of Nature" brings attention to the interconnectedness of natural systems and human activities, underscoring the profound influence of environmental factors on human existence. Moreover, Barbara Kingsolver's "Prodigal Summer" offers a vivid exploration of the intricate relationship between wildlife and human society, hinting at the nuanced interactions between ecological conditions and human behavior.
Devoting attention to the impact of outdoor air pollution on indoor air quality, the authors of "Indoor Air Pollution and Health" elucidate the pervasive consequences of pollutants seeping into homes and other enclosed spaces. Furthermore, delving into the fictitious realm, the works of J.R.R. Tolkien, particularly "The Lord of the Rings," prompt contemplation of the precarious balance between industrialization and the preservation of natural landscapes, sowing seeds of thought regarding the potential influence of environmental disturbances on unexpected facets of human endeavor.
Beyond the conventional sources of academic discourse, the researcher extends their scrutiny to unconventional reservoirs of knowledge. In the pursuit of uncovering unorthodox connections, the researcher amusingly confesses to perusing the unlikely troves of information found on the back labels of household products, from shampoo bottles to cleaning agents, attempting to glean insights into the enigmatic linkage between air pollution in Farmington, New Mexico, and Frank Lampard's notable achievements on the football field. While the veracity of these sources may be questionable, the researcher's pursuit of unusual angles of inquiry brings a lighthearted and whimsical dimension to the scholarly pursuit of knowledge.
In the spirit of intellectual curiosity and a penchant for the unconventional, the researcher draws upon a wide array of sources, traversing the realms of concrete evidence, literary musings, and even the most unexpected corners of everyday life, all in a quest to shed light on the peculiar correlation between air pollution and Premier League goal tallies.

[[RESULTS]]
Our analysis unearthed a startling correlation between air pollution levels in Farmington, New Mexico, and the Premier League goal tally of the renowned Frank Lampard. The correlation coefficient of 0.8613073 indicates a strong positive relationship between these seemingly unrelated variables. This robust association was further supported by an r-squared value of 0.7418502, signifying that approximately 74% of the variance in Lampard's goal tally can be explained by air pollution levels in Farmington. With a significance level of p < 0.01, the probability of obtaining such a strong correlation by chance alone is slim to none, compelling us to consider the presence of a compelling, albeit puzzling, connection.
Figure 1 (to be included) illustrates the scatterplot depicting the tight relationship between air pollution in Farmington, New Mexico, and Lampard's Premier League goal tally. The points on the graph are as tightly knit as a well-organized defense, affirming the validity of our findings and challenging the conventional boundaries of what can influence athletic performance.
These results not only highlight the statistical significance of the correlation but also invite us to reflect on the unexpected interplay between environmental factors and sports achievements. While it may seem like a quirky coincidence, our data paints a compelling picture of the unseen forces at play in the world of professional sports. As we venture further into this peculiar domain, we are reminded that sometimes, truth is indeed stranger than fiction.
The correlation we've uncovered dances on the edge of the soccer field, challenging conventional wisdom and beckoning us to consider the whimsical possibilities that may influence athletic prowess. Our research offers a refreshing reminder that the world of sports, much like life itself, is teeming with the unexpected and the peculiar. In the spirit of embracing the unconventional, we invite the reader to join us in embracing the delightful peculiarity of this connection, as we bask in the revelry of the whimsical and the empirical intersecting in this enchanting liaison between air pollution and Lampard's goal-scoring antics.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

Our study has not only unveiled a captivating connection between air pollution in Farmington, New Mexico, and Frank Lampard's Premier League goal tally but has also lent credence to the whimsical inklings presented in the literature review. The results presented here align with previous research that underpins the influence of environmental factors on human health and physical performance, affirming the serious consideration of the peculiar link we've stumbled upon.

The correlation between air pollution and Lampard's goal tally, akin to the ripple effect of a finely placed free kick, draws attention to the intricate and often unforeseen interactions between environmental elements and athletic prowess. Our findings echo the work of Smith et al., spotlighting the significant impact of air quality on human well-being, while also mirroring Doe and Jones' exploration of environmental factors on athletic performance. It appears that the influence of air pollution extends beyond respiratory health to dabble in the realm of sports, adding a new layer of significance to the broader impacts of environmental quality.

Furthermore, our results resonate with the literary musings of McKibben and Kingsolver, hinting at the profound interconnectedness between human endeavors and the natural world. As we witness the surprising alliance between pollution in Farmington and Lampard's net-bound exploits, it becomes evident that the domain of sports is not immune to the subtle influences of environmental perturbations. Just as the quest for the One Ring hinges on delicate environmental balances in Middle-earth, our study underscores the delicate equilibrium between air quality and remarkable athletic achievements in the Premier League.

In an unexpected turn, our unconventional inquiry into the back labels of everyday household products seems less ludicrous and more prescient as we uncover this astonishing correlation. Much like a hidden gem discovered amidst seemingly unrelated artifacts, our research highlights the importance of embracing unconventional angles of inquiry, underscoring the potential for surprising linkages to emerge from the most unlikely sources.

In conclusion, our findings offer an intriguing fusion of the empirical and the fanciful, challenging the boundaries of conventional scholarship and beckoning us to journey into the enchanting realm where air pollution and Premier League prowess converge. As we navigate this captivating intersection, we are reminded of the endless possibilities that await when we dare to peer beyond the confines of traditional disciplines, immersing ourselves in the delightful interplay of seemingly incongruent domains.


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

Please make up a short conclusion of an academic research paper presenting the findings of the connection between Air pollution in Farmington, New Mexico and Frank Lampard's Premier League goal tally. Make lots of jokes, goofy observations, and puns.

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]]
Clearing the Air: Unearthing the Link Between Air Pollution and Lampard's League Goals

[[ABSTRACT]]
This research study delves into the unexpected connection between air pollution levels in Farmington, New Mexico, and the Premier League goal tally of the legendary Frank Lampard. Through an unconventional analysis that combines environmental data from the Environmental Protection Agency and soccer statistics from Wikipedia, we have unearthed a striking correlation between the two previously unrelated phenomena. Our findings reveal a noteworthy correlation coefficient of 0.8613073 and a significance level of p < 0.01 for the period spanning 2006 to 2016. This suggests a statistically robust relationship, prompting us to consider the whimsical notion of air quality potentially influencing the prowess of a football luminary. Our study not only sheds light on this curious association but also underscores the importance of approaching research endeavors with an open mind and a willingness to uncover unexpected linkages. As we unravel this intriguing subject matter, we invite readers to join us in recognizing the whimsy and wonder that can emerge from the melding of traditionally distinct domains of inquiry.

[[INTRDUCTION]]
When it comes to sports, one may not immediately envision a link between the eloquent art of scoring goals on the soccer pitch and the not-so-eloquent matter of air pollution in a remote town in New Mexico. However, as we delve into the fascinating world of unexpected connections, we are reminded that truth can be stranger than fiction. In this paper, we embark on a whimsical journey that unearths an unlikely camaraderie between Farmington, New Mexico's air quality and the Premier League goal tally of the football icon, Frank Lampard.
As researchers, we often find ourselves enveloped in the pursuit of underexplored linkages, at times straying into the realm of the bizarre – but, after all, isn't science all about embracing the unexpected? In this study, we have not only embraced the unexpected, but we've also given it a warm handshake and invited it for afternoon tea. The fusion of environmental data and football statistics has led us to an intriguing correlation, rivalling the unpredictability of the football pitches where Lampard once showcased his astonishing talent.
In the words of Shakespeare, "All the world's a stage." And indeed, our research sets the stage for a most unusual act – where air quality and athletic achievement perform a duet that would leave even the most seasoned critics pondering. With a correlation coefficient that would make statisticians do a double-take and a significance level that would cause them to raise an eyebrow, we find ourselves contemplating the possibility of air pollutants sneaking onto the soccer field, attempting to thwart Lampard's goal-scoring prowess.
A nod, a wink, and a raised eyebrow. This is how we approach the intriguing correlation that we present in this paper. We invite the reader to join us in exploring the uncharted territory where the whimsical and the empirical intersect, and where even the quantitatively-minded are compelled to consider the potential impact of the unseen forces of pollution on the graceful ballet of the beautiful game. So, sit back, relax, and prepare for a journey that will leave you both scratching your head and marveling at the unexpected hilarity of the universe.

[[RESULTS]]
Our analysis unearthed a startling correlation between air pollution levels in Farmington, New Mexico, and the Premier League goal tally of the renowned Frank Lampard. The correlation coefficient of 0.8613073 indicates a strong positive relationship between these seemingly unrelated variables. This robust association was further supported by an r-squared value of 0.7418502, signifying that approximately 74% of the variance in Lampard's goal tally can be explained by air pollution levels in Farmington. With a significance level of p < 0.01, the probability of obtaining such a strong correlation by chance alone is slim to none, compelling us to consider the presence of a compelling, albeit puzzling, connection.
Figure 1 (to be included) illustrates the scatterplot depicting the tight relationship between air pollution in Farmington, New Mexico, and Lampard's Premier League goal tally. The points on the graph are as tightly knit as a well-organized defense, affirming the validity of our findings and challenging the conventional boundaries of what can influence athletic performance.
These results not only highlight the statistical significance of the correlation but also invite us to reflect on the unexpected interplay between environmental factors and sports achievements. While it may seem like a quirky coincidence, our data paints a compelling picture of the unseen forces at play in the world of professional sports. As we venture further into this peculiar domain, we are reminded that sometimes, truth is indeed stranger than fiction.
The correlation we've uncovered dances on the edge of the soccer field, challenging conventional wisdom and beckoning us to consider the whimsical possibilities that may influence athletic prowess. Our research offers a refreshing reminder that the world of sports, much like life itself, is teeming with the unexpected and the peculiar. In the spirit of embracing the unconventional, we invite the reader to join us in embracing the delightful peculiarity of this connection, as we bask in the revelry of the whimsical and the empirical intersecting in this enchanting liaison between air pollution and Lampard's goal-scoring antics.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our study has unveiled a correlation between air pollution in Farmington, New Mexico, and the Premier League goal tally of the illustrious Frank Lampard that rivals the unpredictability of a penalty shootout. As we ponder this peculiar link, we can't help but marvel at the possibility of airborne particles giving a whole new meaning to "assisting" a goal. It seems that the environmental factors in Farmington have been doing more than just inspiring a lungful of fresh air for our football legend; they've been orchestrating a symphony of goals, quite literally, from thin air.

The significance of this correlation is as clear as the blue sky on a pollution-free day, prompting us to consider the whimsical notion that perhaps Lampard's goal-scoring prowess was not purely the result of his exceptional skill, but also the unseen hand of the elements at play. And who would have thought that the air in Farmington, New Mexico, could have such a profound impact on the beautiful game of football across the pond?

In the spirit of embracing the unexpected, our research encourages a lighthearted consideration of the quirky entanglements between distinct domains of inquiry. As we bid farewell to this unusual correlation, we're left with the lingering chuckle of disbelief and the faint scent of the absurd. It seems that in the grand play of life, even the seemingly unrelated can come together for a whimsical duet.

In light of this enchanting liaison between air pollution and Lampard's goal-scoring antics, it is evident that no more research is needed in this area. We bid adieu to this delightful peculiarity with a nod, a grin, and the resounding assurance that in the realm of academic whimsy, the final whistle has blown.


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 Clearing the Air: Unearthing the Link Between Air Pollution and Lampard's League Goals. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Sports Ecology and Environmental Health


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 Clearing the Air: Unearthing the Link Between Air Pollution and Lampard's League Goals. Respond only with the name of a fictional organization.

ChatGPT:

The Center for Atmospheric Athletic Analysis


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 Clearing the Air: Unearthing the Link Between Air Pollution and Lampard's League Goals with an abstract of This research study delves into the unexpected connection between air pollution levels in Farmington, New Mexico, and the Premier League goal tally of the legendary Frank Lampard. Through an unconventional analysis that combines environmental data from the Environmental Protection Agency and soccer statistics from Wikipedia, we have unearthed a striking correlation between the two previously unrelated phenomena. Our findings reveal a noteworthy correlation coefficient of 0.8613073 and a significance level of p < 0.01 for the period spanning 2006 to 2016. This suggests a statistically robust relationship, prompting us to consider the whimsical notion of air quality potentially influencing the prowess of a football luminary. Our study not only sheds light on this curious association but also underscores the importance of approaching research endeavors with an open mind and a willingness to uncover unexpected linkages. As we unravel this intriguing subject matter, we invite readers to join us in recognizing the whimsy and wonder that can emerge from the melding of traditionally distinct domains of inquiry.

ChatGPT:

air pollution, pollution levels Farmington New Mexico, Premier League goals, Frank Lampard, correlation coefficient, statistical significance, environmental data, soccer statistics, unusual connections, unexpected linkages, research methods, whimsical research, distinct domains of inquiry

*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 Farmington, New Mexico
Detailed data title: Percentage of days 'unhealthy' or worse air quality in Farmington, NM
Source: Environmental Protection Agency
See what else correlates with Air pollution in Farmington, New Mexico

Frank Lampard's Premier League goal tally
Source: Wikipedia
See what else correlates with Frank Lampard's Premier League goal tally

Correlation r = 0.8613073 (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.7418502 (Coefficient of determination)
This means 74.2% of the change in the one variable (i.e., Frank Lampard's Premier League goal tally) is predictable based on the change in the other (i.e., Air pollution in Farmington, New Mexico) over the 11 years from 2006 through 2016.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 0.00066. 0.0006578177694246314000000000
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.86 in 0.066% of random cases. Said differently, if you correlated 1,520 random variables Which I absolutely did.
with the same 10 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 10 because we have two variables measured over a period of 11 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.96 ] 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.
20062007200820092010201120122013201420152016
Air pollution in Farmington, New Mexico (Bad air quality days)0.2739730001.09589000.273973000
Frank Lampard's Premier League goal tally (Goals scored)16111012221011156612




Why this works

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




Try it yourself

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

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

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

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

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

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

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

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

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


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

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

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

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

    return correlation, r_squared, p_value

# These are the arrays for the variables shown on this page, but you can modify them to be any two sets of numbers
array_1 = np.array([0.273973,0,0,0,1.09589,0,0,0.273973,0,0,0,])
array_2 = np.array([16,11,10,12,22,10,11,15,6,6,12,])
array_1_name = "Air pollution in Farmington, New Mexico"
array_2_name = "Frank Lampard's Premier League goal tally"

# 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 rating skills are top-notch!


Correlation ID: 3670 · Black Variable ID: 20619 · Red Variable ID: 98
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0