about · email me · subscribe
Spurious correlation #5,364 · 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 Mobile, Alabama and the second variable is xkcd comics published about existentialism.  The chart goes from 2007 to 2018, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

As the air quality improved, the local population found themselves less existential, leading to a decreased demand for xkcd comics on the topic. Alternatively, the existential angst in the xkcd creator was mysteriously tied to the pollution levels in Mobile, prompting a shift in comic themes.

Model: dalle-3
Prompt: Generate an image that captures the essence of a neighborhood in Mobile, Alabama, amidst the clearing air pollution, showcasing people strolling outside and enjoying the fresh air. Additionally, portray the xkcd creator's studio with the shift in comic themes from existentialism to lighthearted, whimsical scenarios. The image should convey the positive connection between improved air quality and the shift in creative themes, resonating relief for both the city and the creator. Capture the serene atmosphere of the neighborhood and the lighthearted creativity emanating from the studio in a way that would be likely shared on Reddit for its humor and heartwarming message. 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 Mobile, Alabama and xkcd comics published about existentialism. 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: Cybernetic art inspired by bauhaus Minimalism a funny image you would see on reddit Oragami
ChatGPT: a funny image you would see on reddit

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 Mobile, Alabama and xkcd comics published about existentialism, in the following situation: As the air quality improved, the local population found themselves less existential, leading to a decreased demand for xkcd comics on the topic. Alternatively, the existential angst in the xkcd creator was mysteriously tied to the pollution levels in Mobile, prompting a shift in comic themes.. Keep the description simple.
ChatGPT: In a quiet neighborhood in Mobile, Alabama, a thick smog of air pollution slowly lifted as the local factories installed new filtration systems. As the air cleared, people could be seen walking outside with smiles on their faces, enjoying the fresh breeze. Meanwhile, over at the xkcd creator's studio, the once prevalent themes of existentialism took a backseat as the artist began drawing lighthearted, whimsical comics, featuring characters in playful scenarios. A connection seemed to exist between the improved air quality and the shift in comic themes, bringing a sense of relief to both the city and the creator.

Model: gpt-3.5-turbo-1106
System prompt: You write and improve image generation prompts for DALLE-3. You maintain the same subjects, but enhance the visuals.
User prompt: Please respond with an image generation prompt that would be likely to create an interesting visual using DALLE-3, using the following style: [ a funny image you would see on reddit ] and depicting this scene: In a quiet neighborhood in Mobile, Alabama, a thick smog of air pollution slowly lifted as the local factories installed new filtration systems. As the air cleared, people could be seen walking outside with smiles on their faces, enjoying the fresh breeze. Meanwhile, over at the xkcd creator's studio, the once prevalent themes of existentialism took a backseat as the artist began drawing lighthearted, whimsical comics, featuring characters in playful scenarios. A connection seemed to exist between the improved air quality and the shift in comic themes, bringing a sense of relief to both the city and the creator. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Generate an image that captures the essence of a neighborhood in Mobile, Alabama, amidst the clearing air pollution, showcasing people strolling outside and enjoying the fresh air. Additionally, portray the xkcd creator's studio with the shift in comic themes from existentialism to lighthearted, whimsical scenarios. The image should convey the positive connection between improved air quality and the shift in creative themes, resonating relief for both the city and the creator. Capture the serene atmosphere of the neighborhood and the lighthearted creativity emanating from the studio in a way that would be likely shared on Reddit for its humor and heartwarming message.

*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 Mobile, Alabama caused xkcd comics published about existentialism to decrease.

AI academic paper

(Because p < 0.01)
The Thin Air Thin Line: Examining the Correlation Between Air Pollution in Mobile, Alabama and xkcd Comics on Existentialism

The Journal of Irreverent Environmental Studies

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 goofy academic researcher writing an academic paper. You follow the rules, but you throw out convention regularly to make jokes and funny asides.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 Mobile, Alabama and xkcd comics published about existentialism. 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 AI analysis of xkcd comics to assess this nagging question. You found a correlation coefficient of 0.8091054 and p < 0.01 for 2007 to 2018.

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]]
The Thin Air Thin Line: Examining the Correlation Between Air Pollution in Mobile, Alabama and xkcd Comics on Existentialism

[[ABSTRACT]]
The compelling relationship between air pollution and existential dread, while previously unexplored, has been a topic of much debate among both environmentalists and philosophers alike. In this study, we sought to unravel this enigmatic connection by delving into the atmospheric conditions of Mobile, Alabama, and scrutinizing the thematic nuances of xkcd comics related to existentialism. Employing data from the Environmental Protection Agency and employing sophisticated AI algorithms to analyze the corpus of xkcd comics, we uncovered a surprising correlation coefficient of 0.8091054 and a p-value of less than 0.01 for the period spanning from 2007 to 2018. Our analysis aims to shed light on this unexpected nexus, offering insights into the intertwining realms of environmental pollution and philosophical musings, and possibly providing quirky fodder for future interdisciplinary investigations.


Model: gpt-3.5-turbo-1106
System prompt: You are a goofy academic researcher writing an academic paper. You follow the rules, but you throw out convention regularly to make jokes and funny asides.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 Mobile, Alabama and xkcd comics published about existentialism. Make lots of jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Here is the title and abstract of the paper:
[[TITLE]]
The Thin Air Thin Line: Examining the Correlation Between Air Pollution in Mobile, Alabama and xkcd Comics on Existentialism

[[ABSTRACT]]
The compelling relationship between air pollution and existential dread, while previously unexplored, has been a topic of much debate among both environmentalists and philosophers alike. In this study, we sought to unravel this enigmatic connection by delving into the atmospheric conditions of Mobile, Alabama, and scrutinizing the thematic nuances of xkcd comics related to existentialism. Employing data from the Environmental Protection Agency and employing sophisticated AI algorithms to analyze the corpus of xkcd comics, we uncovered a surprising correlation coefficient of 0.8091054 and a p-value of less than 0.01 for the period spanning from 2007 to 2018. Our analysis aims to shed light on this unexpected nexus, offering insights into the intertwining realms of environmental pollution and philosophical musings, and possibly providing quirky fodder for future interdisciplinary investigations.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
**[[INTRODUCTION]]**

The study of air pollution and its impact on human health and well-being has long been a serious and pressing matter. However, what if I told you that our research has led us not only to quantify the harmful effects of air pollution, but also to uncover a peculiar correlation between the quality of air in Mobile, Alabama, and the publication of xkcd comics pertaining to existentialism? Yes, you read that right. We are not only delving into the realm of atmospheric particulate matter but also into the world of stick figures and thought-provoking, often absurd musings on the meaning of life.

As we dive into this unconventional investigation, we invite you to join us on a journey through the hazy corridors of air quality data and the equally cryptic and whimsical world of xkcd comics. Our intention is to demonstrate that there is indeed a "thin air thin line" connecting air pollution and existential contemplation, and to offer a lighthearted, yet statistically sound, analysis of this unexpected relationship.

But before we plunge into the peculiar depths of this study, let us first establish the context and motivation behind this seemingly whimsical endeavor. Despite the seemingly disparate nature of our subjects, Mobile, Alabama, provides us with a unique setting for examining the impact of air pollution, while xkcd comics offer us a treasure trove of witty, intellectually stimulating content ripe for analysis. Our pursuit of this unorthodox connection is not merely for frivolous amusement, but to provoke thought and to present a novel perspective on the intricate web of environmental and philosophical influences in contemporary society. So, let us embark on this journey of whimsy and wonder, armed with data, algorithms, and a healthy dose of humor.


Model: gpt-3.5-turbo-1106
System prompt: You are a goofy academic researcher writing an academic paper. You follow the rules, but you throw out convention regularly to make jokes and funny asides.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 Mobile, Alabama and xkcd comics published about existentialism. 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]]
The Thin Air Thin Line: Examining the Correlation Between Air Pollution in Mobile, Alabama and xkcd Comics on Existentialism

[[ABSTRACT]]
The compelling relationship between air pollution and existential dread, while previously unexplored, has been a topic of much debate among both environmentalists and philosophers alike. In this study, we sought to unravel this enigmatic connection by delving into the atmospheric conditions of Mobile, Alabama, and scrutinizing the thematic nuances of xkcd comics related to existentialism. Employing data from the Environmental Protection Agency and employing sophisticated AI algorithms to analyze the corpus of xkcd comics, we uncovered a surprising correlation coefficient of 0.8091054 and a p-value of less than 0.01 for the period spanning from 2007 to 2018. Our analysis aims to shed light on this unexpected nexus, offering insights into the intertwining realms of environmental pollution and philosophical musings, and possibly providing quirky fodder for future interdisciplinary investigations.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
The study of air pollution and its impact on human health and well-being has long been a serious and pressing matter. However, what if I told you that our research has led us not only to quantify the harmful effects of air pollution, but also to uncover a peculiar correlation between the quality of air in Mobile, Alabama, and the publication of xkcd comics pertaining to existentialism? Yes, you read that right. We are not only delving into the realm of atmospheric particulate matter but also into the world of stick figures and thought-provoking, often absurd musings on the meaning of life.
As we dive into this unconventional investigation, we invite you to join us on a journey through the hazy corridors of air quality data and the equally cryptic and whimsical world of xkcd comics. Our intention is to demonstrate that there is indeed a "thin air thin line" connecting air pollution and existential contemplation, and to offer a lighthearted, yet statistically sound, analysis of this unexpected relationship.
But before we plunge into the peculiar depths of this study, let us first establish the context and motivation behind this seemingly whimsical endeavor. Despite the seemingly disparate nature of our subjects, Mobile, Alabama, provides us with a unique setting for examining the impact of air pollution, while xkcd comics offer us a treasure trove of witty, intellectually stimulating content ripe for analysis. Our pursuit of this unorthodox connection is not merely for frivolous amusement, but to provoke thought and to present a novel perspective on the intricate web of environmental and philosophical influences in contemporary society. So, let us embark on this journey of whimsy and wonder, armed with data, algorithms, and a healthy dose of humor.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

In "Smith et al.'s study on Air Quality and Public Health," the authors find a significant association between air pollution and various health concerns, ranging from respiratory disorders to cardiovascular diseases. Furthermore, "Doe and Johnson's analysis of Environmental Regulations and Their Impact" highlights the crucial role of stringent environmental policies in mitigating the detrimental effects of air pollution on local communities. These studies underscore the gravity of air quality issues and their implications for public health and welfare.

Moving on to a related realm of inquiry, "Existentialism and Its Modern Relevance" by Jones and Brown delves into the timeless philosophical discourse on existentialism, emphasizing its enduring pertinence in contemporary society. Moreover, "Philosophical Musings on the Human Condition" by Gray and Park offers a comprehensive exploration of existential themes in literary and artistic expressions, providing a rich backdrop for examining the philosophical underpinnings of our study.

Transitioning from the academic sphere to popular culture, we turn our attention to fictional works that resonate with the themes of environmental consciousness and existential contemplation. "The Lorax" by Dr. Seuss and "Slaughterhouse-Five" by Kurt Vonnegut represent contrasting yet evocative narratives that intersect with our investigation, highlighting the interplay between ecological concerns and existential introspection.

But wait, the journey into the labyrinth of literature does not end there. In an unforeseen turn of events, the researchers delved into unconventional sources of inspiration, including the back labels of household cleaning products and the timeless wisdom of fortune cookies. While these sources may elicit a chuckle, the insights garnered from our unorthodox literary expedition proved surprisingly enlightening.

In the search for a more offbeat perspective, the authors also cast a whimsical glance at xkcd comics, revealing unsuspected depths beneath the seemingly lighthearted veneer of stick-figure humor. As we wade through the hilariously illustrated musings on the human condition, the unexpected convergence between existential quandaries and the atmospheric milieu of Mobile, Alabama, gradually unveils itself, underscoring the perplexing interconnection between environmental perturbations and philosophical introspections.

As we emerge from the fantastical and into the empirical, it becomes evident that the scholarly literature, albeit serious in its intent, has unwittingly laid the groundwork for this peculiar trajectory of inquiry, leading us to the enthralling confluence of ozone levels and stick-figure comics.


Model: gpt-3.5-turbo-1106
System prompt: You are a goofy academic researcher writing an academic paper. You follow the rules, but you throw out convention regularly to make jokes and funny asides.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 Mobile, Alabama and xkcd comics published about existentialism. Make lots of jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Your research team collected data from all across the internet, but mostly just used information from Environmental Protection Agency and AI analysis of xkcd comics . You used data from 2007 to 2018

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]]
The Thin Air Thin Line: Examining the Correlation Between Air Pollution in Mobile, Alabama and xkcd Comics on Existentialism

[[ABSTRACT]]
The compelling relationship between air pollution and existential dread, while previously unexplored, has been a topic of much debate among both environmentalists and philosophers alike. In this study, we sought to unravel this enigmatic connection by delving into the atmospheric conditions of Mobile, Alabama, and scrutinizing the thematic nuances of xkcd comics related to existentialism. Employing data from the Environmental Protection Agency and employing sophisticated AI algorithms to analyze the corpus of xkcd comics, we uncovered a surprising correlation coefficient of 0.8091054 and a p-value of less than 0.01 for the period spanning from 2007 to 2018. Our analysis aims to shed light on this unexpected nexus, offering insights into the intertwining realms of environmental pollution and philosophical musings, and possibly providing quirky fodder for future interdisciplinary investigations.

[[INTRODUCTION]]
The study of air pollution and its impact on human health and well-being has long been a serious and pressing matter. However, what if I told you that our research has led us not only to quantify the harmful effects of air pollution, but also to uncover a peculiar correlation between the quality of air in Mobile, Alabama, and the publication of xkcd comics pertaining to existentialism? Yes, you read that right. We are not only delving into the realm of atmospheric particulate matter but also into the world of stick figures and thought-provoking, often absurd musings on the meaning of life.
As we dive into this unconventional investigation, we invite you to join us on a journey through the hazy corridors of air quality data and the equally cryptic and whimsical world of xkcd comics. Our intention is to demonstrate that there is indeed a "thin air thin line" connecting air pollution and existential contemplation, and to offer a lighthearted, yet statistically sound, analysis of this unexpected relationship.
But before we plunge into the peculiar depths of this study, let us first establish the context and motivation behind this seemingly whimsical endeavor. Despite the seemingly disparate nature of our subjects, Mobile, Alabama, provides us with a unique setting for examining the impact of air pollution, while xkcd comics offer us a treasure trove of witty, intellectually stimulating content ripe for analysis. Our pursuit of this unorthodox connection is not merely for frivolous amusement, but to provoke thought and to present a novel perspective on the intricate web of environmental and philosophical influences in contemporary society. So, let us embark on this journey of whimsy and wonder, armed with data, algorithms, and a healthy dose of humor.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To tackle the daunting task of unraveling the unlikely bond between air pollution in Mobile, Alabama, and xkcd comics about existentialism, we employed a methodological approach that was as rigorous as it was whimsical. Our data collection and analysis process involved a fusion of traditional environmental monitoring techniques and cutting-edge AI analysis of web-based comic strips. We assure you, this was not your run-of-the-mill research endeavor.

Firstly, we obtained air quality data from the Environmental Protection Agency, carefully selecting Mobile, Alabama, as our focal point due to its distinctive blend of Southern charm and atmospheric complexity. We collected a plethora of data on criteria air pollutants such as particulate matter, nitrogen dioxide, and ozone, with a keen eye on identifying potential patterns and fluctuations over the 2007 to 2018 timeframe. We were determined to leave no particle unturned in our quest for air quality insights.

Meanwhile, to probe the world of existential xkcd comics, we turned to the vast expanse of the internet, focusing on the trove of stick figure wisdom available on the xkcd website. Using state-of-the-art AI algorithms, we systematically combed through the corpus of xkcd comics, honing in on those that delved into the profound, perplexing realm of existential contemplation. Our AI algorithms not only captured the thematic essence of the comics but also quantified the existential angst levels with the precision that only a machine learning algorithm can muster.

With the data in hand, we unleashed a battalion of statistical tools, from correlation analyses to time-series modeling, to uncover the hidden threads linking Mobile's atmospheric makeup to the existential quandaries depicted in Randall Munroe's masterful stick-figure creations.

Suffice it to say, our methodology was as eclectic as the juxtaposition of air particles and philosophical musings, melding the tried-and-true methods of environmental monitoring with the cognitive insights of AI-powered comic analysis. We approached the data like a detective, with a magnifying glass in one hand and a stack of xkcd comics in the other, ready to decode the whimsy of existence amidst the haze of air pollution.


Model: gpt-3.5-turbo-1106
System prompt: You are a goofy academic researcher writing an academic paper. You follow the rules, but you throw out convention regularly to make jokes and funny asides.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 Mobile, Alabama and xkcd comics published about existentialism. Make lots of jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

Your research team collected data from all across the internet, but mostly just used information from Environmental Protection Agency and AI analysis of xkcd comics .

For the time period 2007 to 2018, you found a correlation 0.8091054, r-squared of 0.6546515, 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]]
The Thin Air Thin Line: Examining the Correlation Between Air Pollution in Mobile, Alabama and xkcd Comics on Existentialism

[[ABSTRACT]]
The compelling relationship between air pollution and existential dread, while previously unexplored, has been a topic of much debate among both environmentalists and philosophers alike. In this study, we sought to unravel this enigmatic connection by delving into the atmospheric conditions of Mobile, Alabama, and scrutinizing the thematic nuances of xkcd comics related to existentialism. Employing data from the Environmental Protection Agency and employing sophisticated AI algorithms to analyze the corpus of xkcd comics, we uncovered a surprising correlation coefficient of 0.8091054 and a p-value of less than 0.01 for the period spanning from 2007 to 2018. Our analysis aims to shed light on this unexpected nexus, offering insights into the intertwining realms of environmental pollution and philosophical musings, and possibly providing quirky fodder for future interdisciplinary investigations.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
The study of air pollution and its impact on human health and well-being has long been a serious and pressing matter. However, what if I told you that our research has led us not only to quantify the harmful effects of air pollution, but also to uncover a peculiar correlation between the quality of air in Mobile, Alabama, and the publication of xkcd comics pertaining to existentialism? Yes, you read that right. We are not only delving into the realm of atmospheric particulate matter but also into the world of stick figures and thought-provoking, often absurd musings on the meaning of life.
As we dive into this unconventional investigation, we invite you to join us on a journey through the hazy corridors of air quality data and the equally cryptic and whimsical world of xkcd comics. Our intention is to demonstrate that there is indeed a "thin air thin line" connecting air pollution and existential contemplation, and to offer a lighthearted, yet statistically sound, analysis of this unexpected relationship.
But before we plunge into the peculiar depths of this study, let us first establish the context and motivation behind this seemingly whimsical endeavor. Despite the seemingly disparate nature of our subjects, Mobile, Alabama, provides us with a unique setting for examining the impact of air pollution, while xkcd comics offer us a treasure trove of witty, intellectually stimulating content ripe for analysis. Our pursuit of this unorthodox connection is not merely for frivolous amusement, but to provoke thought and to present a novel perspective on the intricate web of environmental and philosophical influences in contemporary society. So, let us embark on this journey of whimsy and wonder, armed with data, algorithms, and a healthy dose of humor.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The correlation analysis between air pollution in Mobile, Alabama, and the publication of xkcd comics on existentialism yielded some unexpected and, dare I say, delightful findings. Our analysis revealed a correlation coefficient of 0.8091054, indicating a moderately strong positive relationship between these seemingly disparate variables. The r-squared value of 0.6546515 further emphasizes the robustness of this connection, suggesting that approximately 65.47% of the variation in xkcd comics related to existentialism can be explained by changes in air pollution levels in Mobile. In statistical terms, this relationship is as strong as the caffeine content in a meticulously brewed cup of espresso – quite stimulating, indeed!

It's worth noting that the p-value was found to be less than 0.01, signifying that the observed correlation is highly unlikely to be a result of random chance. In other words, the likelihood of this uncanny association occurring purely by accident is about as slim as a supermodel's BMI.

To visually capture the essence of our statistical revelry, we present Figure 1, a scatterplot that beautifully encapsulates the robust correlation between air pollution in Mobile, Alabama, and the appearance of xkcd comics exploring the intricacies of existential contemplation. It's essentially a graphical representation of "what goes up must come down," only in this case, it's more like "as air pollution levels rise, so too does the existential introspection in xkcd comics."

Through our research, we've not only uncovered a surprising statistical relationship between these variables but have also managed to infuse a bit of whimsy and quirky intrigue into the often sober world of environmental and philosophical inquiries. It seems that the scientific quest for understanding has a lighter side, akin to finding a witty easter egg hidden in a densely coded algorithm.

The results of our investigation stand as a testament to the unanticipated connections that can arise when we peer through the lens of data analysis, reminding us that even the most improbable relationships may hold significant meaning. In the words of xkcd, "Correlation does not imply causation, but it does waggle its eyebrows suggestively and gesture furtively while mouthing 'look over there'." Indeed, our findings beckon us to explore the intricacies of this peculiar connection further, offering a refreshing perspective on the interplay between air pollution and existential thought. With these results, we pave the way for future interdisciplinary inquiries, where statistical analyses and artistic musings can coalesce in delightful harmony.


Model: gpt-3.5-turbo-1106
System prompt: You are a goofy academic researcher writing an academic paper. You follow the rules, but you throw out convention regularly to make jokes and funny asides.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 Mobile, Alabama and xkcd comics published about existentialism. Make lots of jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

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]]
The Thin Air Thin Line: Examining the Correlation Between Air Pollution in Mobile, Alabama and xkcd Comics on Existentialism

[[ABSTRACT]]
The compelling relationship between air pollution and existential dread, while previously unexplored, has been a topic of much debate among both environmentalists and philosophers alike. In this study, we sought to unravel this enigmatic connection by delving into the atmospheric conditions of Mobile, Alabama, and scrutinizing the thematic nuances of xkcd comics related to existentialism. Employing data from the Environmental Protection Agency and employing sophisticated AI algorithms to analyze the corpus of xkcd comics, we uncovered a surprising correlation coefficient of 0.8091054 and a p-value of less than 0.01 for the period spanning from 2007 to 2018. Our analysis aims to shed light on this unexpected nexus, offering insights into the intertwining realms of environmental pollution and philosophical musings, and possibly providing quirky fodder for future interdisciplinary investigations.

[[LITERATURE REVIEW]]
In "Smith et al.'s study on Air Quality and Public Health," the authors find a significant association between air pollution and various health concerns, ranging from respiratory disorders to cardiovascular diseases. Furthermore, "Doe and Johnson's analysis of Environmental Regulations and Their Impact" highlights the crucial role of stringent environmental policies in mitigating the detrimental effects of air pollution on local communities. These studies underscore the gravity of air quality issues and their implications for public health and welfare.
Moving on to a related realm of inquiry, "Existentialism and Its Modern Relevance" by Jones and Brown delves into the timeless philosophical discourse on existentialism, emphasizing its enduring pertinence in contemporary society. Moreover, "Philosophical Musings on the Human Condition" by Gray and Park offers a comprehensive exploration of existential themes in literary and artistic expressions, providing a rich backdrop for examining the philosophical underpinnings of our study.
Transitioning from the academic sphere to popular culture, we turn our attention to fictional works that resonate with the themes of environmental consciousness and existential contemplation. "The Lorax" by Dr. Seuss and "Slaughterhouse-Five" by Kurt Vonnegut represent contrasting yet evocative narratives that intersect with our investigation, highlighting the interplay between ecological concerns and existential introspection.
But wait, the journey into the labyrinth of literature does not end there. In an unforeseen turn of events, the researchers delved into unconventional sources of inspiration, including the back labels of household cleaning products and the timeless wisdom of fortune cookies. While these sources may elicit a chuckle, the insights garnered from our unorthodox literary expedition proved surprisingly enlightening.
In the search for a more offbeat perspective, the authors also cast a whimsical glance at xkcd comics, revealing unsuspected depths beneath the seemingly lighthearted veneer of stick-figure humor. As we wade through the hilariously illustrated musings on the human condition, the unexpected convergence between existential quandaries and the atmospheric milieu of Mobile, Alabama, gradually unveils itself, underscoring the perplexing interconnection between environmental perturbations and philosophical introspections.
As we emerge from the fantastical and into the empirical, it becomes evident that the scholarly literature, albeit serious in its intent, has unwittingly laid the groundwork for this peculiar trajectory of inquiry, leading us to the enthralling confluence of ozone levels and stick-figure comics.

[[RESULTS]]
The correlation analysis between air pollution in Mobile, Alabama, and the publication of xkcd comics on existentialism yielded some unexpected and, dare I say, delightful findings. Our analysis revealed a correlation coefficient of 0.8091054, indicating a moderately strong positive relationship between these seemingly disparate variables. The r-squared value of 0.6546515 further emphasizes the robustness of this connection, suggesting that approximately 65.47% of the variation in xkcd comics related to existentialism can be explained by changes in air pollution levels in Mobile. In statistical terms, this relationship is as strong as the caffeine content in a meticulously brewed cup of espresso – quite stimulating, indeed!
It's worth noting that the p-value was found to be less than 0.01, signifying that the observed correlation is highly unlikely to be a result of random chance. In other words, the likelihood of this uncanny association occurring purely by accident is about as slim as a supermodel's BMI.
To visually capture the essence of our statistical revelry, we present Figure 1, a scatterplot that beautifully encapsulates the robust correlation between air pollution in Mobile, Alabama, and the appearance of xkcd comics exploring the intricacies of existential contemplation. It's essentially a graphical representation of "what goes up must come down," only in this case, it's more like "as air pollution levels rise, so too does the existential introspection in xkcd comics."
Through our research, we've not only uncovered a surprising statistical relationship between these variables but have also managed to infuse a bit of whimsy and quirky intrigue into the often sober world of environmental and philosophical inquiries. It seems that the scientific quest for understanding has a lighter side, akin to finding a witty easter egg hidden in a densely coded algorithm.
The results of our investigation stand as a testament to the unanticipated connections that can arise when we peer through the lens of data analysis, reminding us that even the most improbable relationships may hold significant meaning. In the words of xkcd, "Correlation does not imply causation, but it does waggle its eyebrows suggestively and gesture furtively while mouthing 'look over there'." Indeed, our findings beckon us to explore the intricacies of this peculiar connection further, offering a refreshing perspective on the interplay between air pollution and existential thought. With these results, we pave the way for future interdisciplinary inquiries, where statistical analyses and artistic musings can coalesce in delightful harmony.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The compelling nexus between Mobile's air pollution and xkcd comics on existentialism presents a veritable smorgasbord of quirky musings for the scientific palate. Our results not only support but playfully embellish the existing literature, resembling a scientific encore with a comedic twist. As we recall the unexpected foray into unconventional sources of inspiration in our literature review, including the eerily poignant wisdom of fortune cookies, our findings paint a picture that is as serendipitous as stumbling upon a four-leaf clover in a laboratory petri dish.

The robust correlation coefficient of 0.8091054 we uncovered serves as the statistical punchline to a whimsically constructed data set, emphasizing the unlikely yet undeniable connection between the atmospheric concoction of Mobile and the existential meanderings of stick-figure creations. This correlation is as strong as the gravitational pull of a captivating hypothesis, irresistibly drawing us into the tantalizing dance of scientific inquiry and artistic exploration. In a realm where numbers typically reign supreme, our findings evoke a scientific "stand-up" routine, balancing rigorous analysis with a pinch of light-hearted observation.

Moreover, the r-squared value of 0.6546515 affirms that approximately 65.47% of the variations in existential xkcd comics can be attributed to changes in air pollution levels. This statistical bedfellow of air pollution and existential introspection conjures an image as fanciful as a polymath's doodles in the margins of a scholarly treatise, demonstrating the whimsical interplay between environmental perturbations and philosophical ruminations.

The p-value of less than 0.01 further accentuates the unlikelihood of this intriguing correlation occurring purely by random chance, akin to serendipitously stumbling upon a shred of evidence in a labyrinth of data points. This statistical verdict is as resolute as a scholarly librarian shielding a rare edition from the perils of coffee spills – a testament to the meticulous rigor underpinning our analysis.

As we reflect on the results of our interdisciplinary escapade, one cannot help but be enchanted by the undeniably unexpected convergence of air pollution and existential xkcd comics. Our findings invite the scientific community to embrace the quirkier side of inquiry, where statistical analyses do not merely uncover patterns but also unveil the whimsy nestled within empirical landscapes. With a nod to both the poignant observations of xkcd and the serious undercurrents of air quality research, we extend an invitation for fellow investigators to join us in this whimsical dance of correlations and comic musings, paving the way for future scholarly endeavors filled with both intellectual gravity and buoyant humor.


Model: gpt-3.5-turbo-1106
System prompt: You are a goofy academic researcher writing an academic paper. You follow the rules, but you throw out convention regularly to make jokes and funny asides.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 Mobile, Alabama and xkcd comics published about existentialism. Make lots of jokes, goofy observations, and puns. Sneak in some jokes and clever puns about science, research, statistics, and the variables.

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]]
The Thin Air Thin Line: Examining the Correlation Between Air Pollution in Mobile, Alabama and xkcd Comics on Existentialism

[[ABSTRACT]]
The compelling relationship between air pollution and existential dread, while previously unexplored, has been a topic of much debate among both environmentalists and philosophers alike. In this study, we sought to unravel this enigmatic connection by delving into the atmospheric conditions of Mobile, Alabama, and scrutinizing the thematic nuances of xkcd comics related to existentialism. Employing data from the Environmental Protection Agency and employing sophisticated AI algorithms to analyze the corpus of xkcd comics, we uncovered a surprising correlation coefficient of 0.8091054 and a p-value of less than 0.01 for the period spanning from 2007 to 2018. Our analysis aims to shed light on this unexpected nexus, offering insights into the intertwining realms of environmental pollution and philosophical musings, and possibly providing quirky fodder for future interdisciplinary investigations.

[[INTRDUCTION]]
The study of air pollution and its impact on human health and well-being has long been a serious and pressing matter. However, what if I told you that our research has led us not only to quantify the harmful effects of air pollution, but also to uncover a peculiar correlation between the quality of air in Mobile, Alabama, and the publication of xkcd comics pertaining to existentialism? Yes, you read that right. We are not only delving into the realm of atmospheric particulate matter but also into the world of stick figures and thought-provoking, often absurd musings on the meaning of life.
As we dive into this unconventional investigation, we invite you to join us on a journey through the hazy corridors of air quality data and the equally cryptic and whimsical world of xkcd comics. Our intention is to demonstrate that there is indeed a "thin air thin line" connecting air pollution and existential contemplation, and to offer a lighthearted, yet statistically sound, analysis of this unexpected relationship.
But before we plunge into the peculiar depths of this study, let us first establish the context and motivation behind this seemingly whimsical endeavor. Despite the seemingly disparate nature of our subjects, Mobile, Alabama, provides us with a unique setting for examining the impact of air pollution, while xkcd comics offer us a treasure trove of witty, intellectually stimulating content ripe for analysis. Our pursuit of this unorthodox connection is not merely for frivolous amusement, but to provoke thought and to present a novel perspective on the intricate web of environmental and philosophical influences in contemporary society. So, let us embark on this journey of whimsy and wonder, armed with data, algorithms, and a healthy dose of humor.

[[RESULTS]]
The correlation analysis between air pollution in Mobile, Alabama, and the publication of xkcd comics on existentialism yielded some unexpected and, dare I say, delightful findings. Our analysis revealed a correlation coefficient of 0.8091054, indicating a moderately strong positive relationship between these seemingly disparate variables. The r-squared value of 0.6546515 further emphasizes the robustness of this connection, suggesting that approximately 65.47% of the variation in xkcd comics related to existentialism can be explained by changes in air pollution levels in Mobile. In statistical terms, this relationship is as strong as the caffeine content in a meticulously brewed cup of espresso – quite stimulating, indeed!
It's worth noting that the p-value was found to be less than 0.01, signifying that the observed correlation is highly unlikely to be a result of random chance. In other words, the likelihood of this uncanny association occurring purely by accident is about as slim as a supermodel's BMI.
To visually capture the essence of our statistical revelry, we present Figure 1, a scatterplot that beautifully encapsulates the robust correlation between air pollution in Mobile, Alabama, and the appearance of xkcd comics exploring the intricacies of existential contemplation. It's essentially a graphical representation of "what goes up must come down," only in this case, it's more like "as air pollution levels rise, so too does the existential introspection in xkcd comics."
Through our research, we've not only uncovered a surprising statistical relationship between these variables but have also managed to infuse a bit of whimsy and quirky intrigue into the often sober world of environmental and philosophical inquiries. It seems that the scientific quest for understanding has a lighter side, akin to finding a witty easter egg hidden in a densely coded algorithm.
The results of our investigation stand as a testament to the unanticipated connections that can arise when we peer through the lens of data analysis, reminding us that even the most improbable relationships may hold significant meaning. In the words of xkcd, "Correlation does not imply causation, but it does waggle its eyebrows suggestively and gesture furtively while mouthing 'look over there'." Indeed, our findings beckon us to explore the intricacies of this peculiar connection further, offering a refreshing perspective on the interplay between air pollution and existential thought. With these results, we pave the way for future interdisciplinary inquiries, where statistical analyses and artistic musings can coalesce in delightful harmony.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our offbeat odyssey through the labyrinth of air pollution and existential xkcd comics has yielded surprisingly robust and statistically sound results. It seems that the air in Mobile, Alabama isn't just filled with particulate matter – it's also rife with existential ponderings that would make even Sartre raise an eyebrow. Our findings point to a connection as strong as the gravitational pull between two star-crossed lovers, or perhaps as poignant as the tears shed over a particularly moving Fibonacci sequence.

With a correlation coefficient that's as sturdy as a space shuttle built by statistically inclined astronauts, our results underscore the intriguing dance between environmental factors and philosophical expressions. The p-value being less than 0.01 is a clear indicator that this correlation is as legitimate as a Nobel laureate's acceptance speech.

As we wrap up this whimsical escapade, it's clear that our findings contribute to the rich tapestry of interdisciplinary weirdness, where data intertwines with stick figures and philosophical quandaries. This peculiar nexus, though as enigmatic as Schroedinger's cat, warrants no further investigation. It seems our work here is done, and the intertwining realms of air pollution and existential xkcd musings can rest in their quirky, statistically validated harmony.

In the wise words of xkcd, "Correlation does not imply causation, but it does make for a splendidly perplexing research subject."

No further research is needed. Thank you and good night, science.


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 The Thin Air Thin Line: Examining the Correlation Between Air Pollution in Mobile, Alabama and xkcd Comics on Existentialism. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Irreverent Environmental Studies


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 The Thin Air Thin Line: Examining the Correlation Between Air Pollution in Mobile, Alabama and xkcd Comics on Existentialism. Respond only with the name of a fictional organization.

ChatGPT:

The Institute for Eclectic Research and 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 The Thin Air Thin Line: Examining the Correlation Between Air Pollution in Mobile, Alabama and xkcd Comics on Existentialism with an abstract of The compelling relationship between air pollution and existential dread, while previously unexplored, has been a topic of much debate among both environmentalists and philosophers alike. In this study, we sought to unravel this enigmatic connection by delving into the atmospheric conditions of Mobile, Alabama, and scrutinizing the thematic nuances of xkcd comics related to existentialism. Employing data from the Environmental Protection Agency and employing sophisticated AI algorithms to analyze the corpus of xkcd comics, we uncovered a surprising correlation coefficient of 0.8091054 and a p-value of less than 0.01 for the period spanning from 2007 to 2018. Our analysis aims to shed light on this unexpected nexus, offering insights into the intertwining realms of environmental pollution and philosophical musings, and possibly providing quirky fodder for future interdisciplinary investigations.

ChatGPT:

existential dread, air pollution, Mobile Alabama, xkcd comics, correlation analysis, Environmental Protection Agency data, atmospheric conditions, philosophical musings, interdisciplinary investigations

*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 Mobile, Alabama
Detailed data title: Percentage of days with air quality at 'unhealthy for sensitive groups' or worse in Mobile, AL
Source: Environmental Protection Agency
See what else correlates with Air pollution in Mobile, Alabama

xkcd comics published about existentialism
Detailed data title: The number of xkcd comics published each year about existentialism
Source: AI analysis of xkcd comics
Additional Info: I designed a Python workflow to perform OCR on every xkcd comic, feed that text into a large language model, and ask the model whether this comic was about the category named in the title.

See what else correlates with xkcd comics published about existentialism

Correlation r = 0.8091054 (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.6546515 (Coefficient of determination)
This means 65.5% of the change in the one variable (i.e., xkcd comics published about existentialism) is predictable based on the change in the other (i.e., Air pollution in Mobile, Alabama) over the 12 years from 2007 through 2018.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 0.0014. 0.0014348354512568342000000000
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.81 in 0.14% of random cases. Said differently, if you correlated 697 random variables Which I absolutely did.
with the same 11 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 11 because we have two variables measured over a period of 12 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.44, 0.94 ] 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.
200720082009201020112012201320142015201620172018
Air pollution in Mobile, Alabama (Bad air quality days)5.292481.400561.117322.203862.302631.0563402.105260.2754820.5586591.385040.278551
xkcd comics published about existentialism (xkcd comics)1881189118107663




Why this works

  1. Data dredging: I have 25,237 variables in my database. I compare all these variables against each other to find ones that randomly match up. That's 636,906,169 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([5.29248,1.40056,1.11732,2.20386,2.30263,1.05634,0,2.10526,0.275482,0.558659,1.38504,0.278551,])
array_2 = np.array([18,8,11,8,9,11,8,10,7,6,6,3,])
array_1_name = "Air pollution in Mobile, Alabama"
array_2_name = "xkcd comics published about existentialism"

# 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 rating is out of this world!


Correlation ID: 5364 · Black Variable ID: 20916 · Red Variable ID: 20021
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0