about · email me · subscribe
Spurious correlation #5,680 · View random

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is Air quality in Evansville, Indiana and the second variable is Number of Lawyers in the United States.  The chart goes from 1989 to 2022, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

The improved air quality in Evansville meant that everyone was breathing easier. As a result, more people decided to pursue a career in law because they could now see a clearer path to success. In other words, the higher oxygen levels led to a 'bar'age of individuals entering the legal field, all vying to 'sue'ceed. It's like the city said, "Let's 'litigate' against pollution," and ended up 'brief'ing the nation on the importance of clean air. It just goes to show that when the atmosphere is cleaner, the legal atmosphere gets busier!

Model: dalle-3
Prompt: Generate an image of a modern, bustling cityscape set against the backdrop of a clear, vibrant sky. The architecture should feature sleek, high-tech buildings, exuding a sense of innovation and progress. In the foreground, depict a line of sharply dressed individuals, embodying the determination and ambition of aspiring legal professionals. The atmosphere should convey a palpable sense of excitement, reflecting the surge of energy within the legal industry. 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 quality in Evansville, Indiana and Number of Lawyers in the United States. 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: Photorealism High-tech Minimalism Art nouveau a meme
ChatGPT: High-tech

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 quality in Evansville, Indiana and Number of Lawyers in the United States, in the following situation: The improved air quality in Evansville meant that everyone was breathing easier. As a result, more people decided to pursue a career in law because they could now see a clearer path to success. In other words, the higher oxygen levels led to a 'bar'age of individuals entering the legal field, all vying to 'sue'ceed. It's like the city said, "Let's 'litigate' against pollution," and ended up 'brief'ing the nation on the importance of clean air. It just goes to show that when the atmosphere is cleaner, the legal atmosphere gets busier!. Keep the description simple.
ChatGPT: In Evansville, Indiana, the air quality is crystal clear. People are breathing easier and the city is thriving. A line of eager lawyers forms, as the number of aspiring legal professionals across the United States continues to rise. The clean air seems to have brought a surge of ambition and determination, and the legal industry is buzzing with new energy.

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: [ High-tech ] and depicting this scene: In Evansville, Indiana, the air quality is crystal clear. People are breathing easier and the city is thriving. A line of eager lawyers forms, as the number of aspiring legal professionals across the United States continues to rise. The clean air seems to have brought a surge of ambition and determination, and the legal industry is buzzing with new energy. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Generate an image of a modern, bustling cityscape set against the backdrop of a clear, vibrant sky. The architecture should feature sleek, high-tech buildings, exuding a sense of innovation and progress. In the foreground, depict a line of sharply dressed individuals, embodying the determination and ambition of aspiring legal professionals. The atmosphere should convey a palpable sense of excitement, reflecting the surge of energy within the legal industry.

*Variations in the User Prompts from chart to chart are just the result of random number generation in Python. I wrote a few arrays of various styles and methods to ask questions to change up the results. Every time this site writes an explanation or generates an image, the script picks from each at random.

I sequence the requests into multiple prompts because I find GPT 3.5 to perform much better with short, well-managed contexts. Thus, I track the context directly in Python and only ask ChatGPT targeted questions.

Model: gpt-3.5-turbo-1106 (fine-tuned)
System prompt: You provide humorous responses in the form of plausible sounding explanations for correlations. You assume the correlation is causative for the purpose of the explanation even if it is ridiculous. You do not chat with the user, you only reply with the causal connection explanation and nothing else.
User prompt: Please make up a funny explanation for how an increase in Air quality in Evansville, Indiana caused Number of Lawyers in the United States to increase. Include one good pun.

AI academic paper

(Because p < 0.01)
Taking a Breath: The Air-ey Relation Between Evansville's Air Quality and the Legal Stature of Lawyers in the United States

Journal of Environmental Law and Urban Air Quality

Jan 2024

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




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

Please draft the title and abstract of an academic research paper presenting the findings of the connection between Air quality in Evansville, Indiana and Number of Lawyers in the United States. Make lots of jokes, goofy observations, and puns.

Include a pun in the title.

Your research team used data from Environmental Protection Agency and ABA to assess this nagging question. You found a correlation coefficient of 0.8230457 and p < 0.01 for 1989 to 2022.

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]]
Taking a Breath: The Air-ey Relation Between Evansville's Air Quality and the Legal Stature of Lawyers in the United States

[[ABSTRACT]]
In this study, we investigate the seemingly unrelated duo of air quality in Evansville, Indiana, and the number of lawyers in the United States. Yes, you read that right! While it may sound like a search for "toxic lawyering," our research took a deep breath and delved into the statistical connection. Using data from the Environmental Protection Agency and the American Bar Association, we conducted a comprehensive analysis from 1989 to 2022. To our surprise, we observed a strong correlation coefficient of 0.8230457 and a significant p-value of less than 0.01. Our findings suggest that there may be an "air"-y relationship between Evansville's air quality and the legal landscape in the United States. Whether this correlation is a breath of fresh air or merely legal hot air, our study provides an insightful perspective that may leave you "gasp"-ing for more.


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

Please make up the introduction section of an academic research paper presenting the findings of the connection between Air quality in Evansville, Indiana and Number of Lawyers in the United States. Make lots of jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Here is the title and abstract of the paper:
[[TITLE]]
Taking a Breath: The Air-ey Relation Between Evansville's Air Quality and the Legal Stature of Lawyers in the United States

[[ABSTRACT]]
In this study, we investigate the seemingly unrelated duo of air quality in Evansville, Indiana, and the number of lawyers in the United States. Yes, you read that right! While it may sound like a search for "toxic lawyering," our research took a deep breath and delved into the statistical connection. Using data from the Environmental Protection Agency and the American Bar Association, we conducted a comprehensive analysis from 1989 to 2022. To our surprise, we observed a strong correlation coefficient of 0.8230457 and a significant p-value of less than 0.01. Our findings suggest that there may be an "air"-y relationship between Evansville's air quality and the legal landscape in the United States. Whether this correlation is a breath of fresh air or merely legal hot air, our study provides an insightful perspective that may leave you "gasp"-ing for more.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

The intersection of environmental factors and societal dynamics has long been a topic of interest for researchers seeking to understand the complexities of human behavior and its impact on our surroundings. As we embark on this journey to unravel the mysterious connection between air quality in Evansville, Indiana, and the legal prowess of lawyers in the United States, we find ourselves in a realm where the air is ripe with possibilities. Our quest may seem as improbable as finding a "briefcase" filled with legal documents at the bottom of the Ohio River, but rest assured, dear reader, we are not simply blowing "smokescreens" - pun intended.

Evansville, Indiana, a city nestled along the banks of the Ohio River, has been grappling with air quality concerns for decades. Meanwhile, the legal profession in the United States continues to grow, with an ever-increasing number of attorneys joining the ranks. While these two seemingly disparate phenomena might appear about as harmonious as a stuck gavel at a silent auction, our data-driven investigation has revealed intriguing patterns that invite us to ponder the "case" for their potential correlation.

The aim of this study is not to leave our audience breathless with anticipation, but rather to shed light on the "air"-y relationship between the quality of air in Evansville and the prevalence of lawyers across the country. Through meticulous analysis and statistical scrutiny, we seek to discern whether there exists a tangible link between these variables or if it's just a mere coincidence floating in the "legal ether."

As we venture into this uncharted territory, we invite you to join us on this scholarly escapade, as we navigate through the "murky waters" of data analysis and draw inferences that may have you exclaiming, "I object!" or "The evidence is air-tight!"

So, buckle your seatbelts, grab your air filtration masks, and prepare for a journey that promises to be as enlightening as a well-crafted legal argument and as refreshing as a gust of wind by the Ohio River. Let us dive into the depths of this unexpected correlation and see if we can uncover substantive evidence or if it all ultimately dissipates like a mere puff of legal smoke!


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

Please make up a literature review section of an academic research paper presenting the findings of the connection between Air quality in Evansville, Indiana and Number of Lawyers in the United States. 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 name some cartoons and childrens' shows that you watched that are related to the topic.

Here is the title and abstract of the paper:
[[TITLE]]
Taking a Breath: The Air-ey Relation Between Evansville's Air Quality and the Legal Stature of Lawyers in the United States

[[ABSTRACT]]
In this study, we investigate the seemingly unrelated duo of air quality in Evansville, Indiana, and the number of lawyers in the United States. Yes, you read that right! While it may sound like a search for "toxic lawyering," our research took a deep breath and delved into the statistical connection. Using data from the Environmental Protection Agency and the American Bar Association, we conducted a comprehensive analysis from 1989 to 2022. To our surprise, we observed a strong correlation coefficient of 0.8230457 and a significant p-value of less than 0.01. Our findings suggest that there may be an "air"-y relationship between Evansville's air quality and the legal landscape in the United States. Whether this correlation is a breath of fresh air or merely legal hot air, our study provides an insightful perspective that may leave you "gasp"-ing for more.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
The intersection of environmental factors and societal dynamics has long been a topic of interest for researchers seeking to understand the complexities of human behavior and its impact on our surroundings. As we embark on this journey to unravel the mysterious connection between air quality in Evansville, Indiana, and the legal prowess of lawyers in the United States, we find ourselves in a realm where the air is ripe with possibilities. Our quest may seem as improbable as finding a "briefcase" filled with legal documents at the bottom of the Ohio River, but rest assured, dear reader, we are not simply blowing "smokescreens" - pun intended.
Evansville, Indiana, a city nestled along the banks of the Ohio River, has been grappling with air quality concerns for decades. Meanwhile, the legal profession in the United States continues to grow, with an ever-increasing number of attorneys joining the ranks. While these two seemingly disparate phenomena might appear about as harmonious as a stuck gavel at a silent auction, our data-driven investigation has revealed intriguing patterns that invite us to ponder the "case" for their potential correlation.
The aim of this study is not to leave our audience breathless with anticipation, but rather to shed light on the "air"-y relationship between the quality of air in Evansville and the prevalence of lawyers across the country. Through meticulous analysis and statistical scrutiny, we seek to discern whether there exists a tangible link between these variables or if it's just a mere coincidence floating in the "legal ether."
As we venture into this uncharted territory, we invite you to join us on this scholarly escapade, as we navigate through the "murky waters" of data analysis and draw inferences that may have you exclaiming, "I object!" or "The evidence is air-tight!"
So, buckle your seatbelts, grab your air filtration masks, and prepare for a journey that promises to be as enlightening as a well-crafted legal argument and as refreshing as a gust of wind by the Ohio River. Let us dive into the depths of this unexpected correlation and see if we can uncover substantive evidence or if it all ultimately dissipates like a mere puff of legal smoke!

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

To grasp the enigmatic relationship between air quality in Evansville, Indiana, and the legal landscape in the United States, one must explore the extant literature on environmental factors, legal dynamics, and the peculiar interplay between them. The correlation between seemingly unrelated variables often leaves researchers grappling with bewilderment akin to a lawyer finding themselves in the midst of a mistrial. However, as we take a deep inhalation of scholarly insight, we aim to exhale revelations that may leave readers both informed and entertained.

Smith et al. (2017) delve into the intricacies of regional air quality in their seminal work, "The Winds of Change: A Comprehensive Analysis of Air Quality in Small to Medium-Sized Cities." Their study amplifies the importance of understanding the local variations in air quality, shedding light on the significance of Evansville's environmental concerns. Meanwhile, Doe and Jones (2019) examine the exponential growth of legal professionals in their article, "Bar None: An Insider's Look Into the Surge of Lawyers in Modern Society." Their incisive analysis seeks to unravel the catalytic factors propelling the burgeoning legal community, beckoning readers to ponder the implications on a national scale.

Turning to non-fiction literature, "Legal Lungs: A Breath of Fresh Air for Litigators" by Legal Mind & Body Institute (2018) offers a contemplative exploration into the impact of air quality on legal acumen, albeit in a metaphorical sense. In a similar vein, "Pollution and Precedents: How Air Quality Shapes Legal Practice" by Environmental Jurisprudence Foundation (2020) presents a compelling argument for the underappreciated influence of air quality on legal reasoning.

In a departure from strictly academic works, the fiction realm also provides intriguing perspectives on the confluence of air quality and legal proceedings. From John Grisham's legal thrillers, such as "The Pelican Brief" and "The Firm," to Scott Turow's captivating narratives in "Presumed Innocent," these fictional tales may not directly address the specific correlation at hand but certainly imbue readers with an appreciation for legal drama amidst the backdrop of societal and environmental contexts.

Shifting to the realm of animated enlightenment, the cartoon series "Captain Planet and the Planeteers" imparts invaluable lessons on environmental stewardship and legal advocacy through the adventures of the eponymous superhero and his eclectic team of eco-champions. Additionally, the educational program "The Magic School Bus," particularly the episode on pollution, elucidates the interconnectedness of environmental factors, legal responsibilities, and the imperative of advocating for a cleaner, healthier world.

As we traverse the eclectic landscape of scholarly, fictional, and animated works, we are reminded that the pursuit of knowledge often beckons us to embrace the unexpected and unearth the hidden connections veiled in the folds of human experience and environmental influences. So, dear reader, inhale deeply, hold your breath, and prepare for a journey as unpredictable as a legal twist and as vivid as a breath of fresh air on a summer's day.


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

Please make up the methodology section of an academic research paper presenting the findings of the connection between Air quality in Evansville, Indiana and Number of Lawyers in the United States. Make lots of jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Your research team collected data from all across the internet, but mostly just used information from Environmental Protection Agency and ABA . You used data from 1989 to 2022

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]]
Taking a Breath: The Air-ey Relation Between Evansville's Air Quality and the Legal Stature of Lawyers in the United States

[[ABSTRACT]]
In this study, we investigate the seemingly unrelated duo of air quality in Evansville, Indiana, and the number of lawyers in the United States. Yes, you read that right! While it may sound like a search for "toxic lawyering," our research took a deep breath and delved into the statistical connection. Using data from the Environmental Protection Agency and the American Bar Association, we conducted a comprehensive analysis from 1989 to 2022. To our surprise, we observed a strong correlation coefficient of 0.8230457 and a significant p-value of less than 0.01. Our findings suggest that there may be an "air"-y relationship between Evansville's air quality and the legal landscape in the United States. Whether this correlation is a breath of fresh air or merely legal hot air, our study provides an insightful perspective that may leave you "gasp"-ing for more.

[[INTRODUCTION]]
The intersection of environmental factors and societal dynamics has long been a topic of interest for researchers seeking to understand the complexities of human behavior and its impact on our surroundings. As we embark on this journey to unravel the mysterious connection between air quality in Evansville, Indiana, and the legal prowess of lawyers in the United States, we find ourselves in a realm where the air is ripe with possibilities. Our quest may seem as improbable as finding a "briefcase" filled with legal documents at the bottom of the Ohio River, but rest assured, dear reader, we are not simply blowing "smokescreens" - pun intended.
Evansville, Indiana, a city nestled along the banks of the Ohio River, has been grappling with air quality concerns for decades. Meanwhile, the legal profession in the United States continues to grow, with an ever-increasing number of attorneys joining the ranks. While these two seemingly disparate phenomena might appear about as harmonious as a stuck gavel at a silent auction, our data-driven investigation has revealed intriguing patterns that invite us to ponder the "case" for their potential correlation.
The aim of this study is not to leave our audience breathless with anticipation, but rather to shed light on the "air"-y relationship between the quality of air in Evansville and the prevalence of lawyers across the country. Through meticulous analysis and statistical scrutiny, we seek to discern whether there exists a tangible link between these variables or if it's just a mere coincidence floating in the "legal ether."
As we venture into this uncharted territory, we invite you to join us on this scholarly escapade, as we navigate through the "murky waters" of data analysis and draw inferences that may have you exclaiming, "I object!" or "The evidence is air-tight!"
So, buckle your seatbelts, grab your air filtration masks, and prepare for a journey that promises to be as enlightening as a well-crafted legal argument and as refreshing as a gust of wind by the Ohio River. Let us dive into the depths of this unexpected correlation and see if we can uncover substantive evidence or if it all ultimately dissipates like a mere puff of legal smoke!

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]
As curious as it may seem, our methodology for investigating the correspondence between air quality in Evansville, Indiana, and the number of lawyers in the United States was as meticulous as a lawyer parsing through a dense legal document. Our data collection journey took us through the digital corridors of the Environmental Protection Agency (EPA) and the American Bar Association (ABA), where we found ourselves wading through a deluge of statistics and reports. With both feet firmly planted in the world wide web, we embarked on a quest to sift through the virtual haystack for the proverbial correlation needle.

Our data encompassed a period spanning from 1989 to 2022, capturing the ebbs and flows of air quality in Evansville and the burgeoning legal landscape in the United States. The information obtained from the EPA provided us with detailed records of air quality measurements, including pollutants such as ozone, particulate matter, and carbon monoxide. Meanwhile, the ABA supplied us with data on the number of active lawyers, law firms, and legal activity across the nation.

To analyze this abundance of data, we unleashed the power of statistical tools that would make even the most seasoned lawyer reach for their legal briefs. Utilizing the statistical software R, we applied various techniques such as correlation analysis, regression modeling, and time series analysis to unravel the potential connections between air quality and the legal profession.

Upon applying these analytical methods, we were able to unearth a correlation coefficient that beguiled us with its strength—signaling a noteworthy relationship between the air quality in Evansville and the number of lawyers in the United States. Furthermore, our p-value of less than 0.01 provided compelling evidence to suggest that this relationship was not just a fluke but a genuine phenomenon worthy of further scrutiny.

In addition to our quantitative endeavors, we also ventured into the realm of qualitative inquiry, conducting interviews with legal professionals and environmental experts to gather nuanced insights that added depth to our findings. These interviews yielded anecdotes and perspectives that painted a vivid picture of the intertwined nature of air quality and the legal domain, leading us to explore potential causal relationships that extend beyond mere statistical correlation.

In sum, our methodology danced on the tightrope of objectivity and creativity, traversing through a maze of numbers and narratives to unearth the hidden ties between the air in Evansville and the legal landscape in the United States. As we present our findings, we invite readers to breathe in the implications of this unlikely connection, pondering whether the winds of change may be blowing through the legal profession or if it's all just a "gassy" coincidence after all.


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

Please make up the results section of an academic research paper presenting the findings of the connection between Air quality in Evansville, Indiana and Number of Lawyers in the United States. Make lots of jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Your research team collected data from all across the internet, but mostly just used information from Environmental Protection Agency and ABA .

For the time period 1989 to 2022, you found a correlation 0.8230457, r-squared of 0.6774043, 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]]
Taking a Breath: The Air-ey Relation Between Evansville's Air Quality and the Legal Stature of Lawyers in the United States

[[ABSTRACT]]
In this study, we investigate the seemingly unrelated duo of air quality in Evansville, Indiana, and the number of lawyers in the United States. Yes, you read that right! While it may sound like a search for "toxic lawyering," our research took a deep breath and delved into the statistical connection. Using data from the Environmental Protection Agency and the American Bar Association, we conducted a comprehensive analysis from 1989 to 2022. To our surprise, we observed a strong correlation coefficient of 0.8230457 and a significant p-value of less than 0.01. Our findings suggest that there may be an "air"-y relationship between Evansville's air quality and the legal landscape in the United States. Whether this correlation is a breath of fresh air or merely legal hot air, our study provides an insightful perspective that may leave you "gasp"-ing for more.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
The intersection of environmental factors and societal dynamics has long been a topic of interest for researchers seeking to understand the complexities of human behavior and its impact on our surroundings. As we embark on this journey to unravel the mysterious connection between air quality in Evansville, Indiana, and the legal prowess of lawyers in the United States, we find ourselves in a realm where the air is ripe with possibilities. Our quest may seem as improbable as finding a "briefcase" filled with legal documents at the bottom of the Ohio River, but rest assured, dear reader, we are not simply blowing "smokescreens" - pun intended.
Evansville, Indiana, a city nestled along the banks of the Ohio River, has been grappling with air quality concerns for decades. Meanwhile, the legal profession in the United States continues to grow, with an ever-increasing number of attorneys joining the ranks. While these two seemingly disparate phenomena might appear about as harmonious as a stuck gavel at a silent auction, our data-driven investigation has revealed intriguing patterns that invite us to ponder the "case" for their potential correlation.
The aim of this study is not to leave our audience breathless with anticipation, but rather to shed light on the "air"-y relationship between the quality of air in Evansville and the prevalence of lawyers across the country. Through meticulous analysis and statistical scrutiny, we seek to discern whether there exists a tangible link between these variables or if it's just a mere coincidence floating in the "legal ether."
As we venture into this uncharted territory, we invite you to join us on this scholarly escapade, as we navigate through the "murky waters" of data analysis and draw inferences that may have you exclaiming, "I object!" or "The evidence is air-tight!"
So, buckle your seatbelts, grab your air filtration masks, and prepare for a journey that promises to be as enlightening as a well-crafted legal argument and as refreshing as a gust of wind by the Ohio River. Let us dive into the depths of this unexpected correlation and see if we can uncover substantive evidence or if it all ultimately dissipates like a mere puff of legal smoke!

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

Our analysis of the data collected from 1989 to 2022 revealed a robust correlation between air quality in Evansville, Indiana, and the number of lawyers in the United States. The correlation coefficient of 0.8230457 indicated a strong positive relationship between these seemingly unrelated variables. In plain English, it seems that as the air quality in Evansville improves or worsens, the number of lawyers across the country follows suit, like a legal flock of birds migrating in response to environmental changes.

The scatterplot (Fig. 1) visually encapsulates this surprising connection, portraying a scatter of data points that align remarkably well with the linear trend line. It's as if the legal and environmental stars have aligned, painting a picture that even the most skeptical statistician must acknowledge.

Furthermore, the r-squared value of 0.6774043 implies that approximately 67.74% of the variance in the number of lawyers can be explained by changes in air quality in Evansville. One might be tempted to say that the legal landscape in the United States breathes in unison with Evansville, as if in an elegant legal waltz choreographed by the winds of change.

Our analysis also revealed a p-value of less than 0.01, indicating statistical significance. This means that the likelihood of observing such a strong relationship between air quality in Evansville and the number of lawyers in the United States by chance alone is about as rare as finding a paper trail leading directly from air pollution to the nearest attorney's office.

In conclusion, our findings suggest that there may be more to the air quality in Evansville than meets the respiratory system. Whether this correlation is a mere reflection of statistical "noise pollution" or a meaningful indicator of the legal ecosystem's sensitivity to environmental changes, our study provides compelling evidence of an unexpected and significant relationship between air quality in Evansville and the number of lawyers in the United States. It's as if the legal profession and environmental conditions are engaged in a subtle dance, where each move of the air quality influences the legal domain, as though the lawyers themselves were part of a "legal-air-ian" orchestration.


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

Please make up the discussion section of an academic research paper presenting the findings of the connection between Air quality in Evansville, Indiana and Number of Lawyers in the United States. Make lots of jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Limit your response to 500 tokens.

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

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

[[TITLE]]
Taking a Breath: The Air-ey Relation Between Evansville's Air Quality and the Legal Stature of Lawyers in the United States

[[ABSTRACT]]
In this study, we investigate the seemingly unrelated duo of air quality in Evansville, Indiana, and the number of lawyers in the United States. Yes, you read that right! While it may sound like a search for "toxic lawyering," our research took a deep breath and delved into the statistical connection. Using data from the Environmental Protection Agency and the American Bar Association, we conducted a comprehensive analysis from 1989 to 2022. To our surprise, we observed a strong correlation coefficient of 0.8230457 and a significant p-value of less than 0.01. Our findings suggest that there may be an "air"-y relationship between Evansville's air quality and the legal landscape in the United States. Whether this correlation is a breath of fresh air or merely legal hot air, our study provides an insightful perspective that may leave you "gasp"-ing for more.

[[LITERATURE REVIEW]]
To grasp the enigmatic relationship between air quality in Evansville, Indiana, and the legal landscape in the United States, one must explore the extant literature on environmental factors, legal dynamics, and the peculiar interplay between them. The correlation between seemingly unrelated variables often leaves researchers grappling with bewilderment akin to a lawyer finding themselves in the midst of a mistrial. However, as we take a deep inhalation of scholarly insight, we aim to exhale revelations that may leave readers both informed and entertained.
Smith et al. (2017) delve into the intricacies of regional air quality in their seminal work, "The Winds of Change: A Comprehensive Analysis of Air Quality in Small to Medium-Sized Cities." Their study amplifies the importance of understanding the local variations in air quality, shedding light on the significance of Evansville's environmental concerns. Meanwhile, Doe and Jones (2019) examine the exponential growth of legal professionals in their article, "Bar None: An Insider's Look Into the Surge of Lawyers in Modern Society." Their incisive analysis seeks to unravel the catalytic factors propelling the burgeoning legal community, beckoning readers to ponder the implications on a national scale.
Turning to non-fiction literature, "Legal Lungs: A Breath of Fresh Air for Litigators" by Legal Mind & Body Institute (2018) offers a contemplative exploration into the impact of air quality on legal acumen, albeit in a metaphorical sense. In a similar vein, "Pollution and Precedents: How Air Quality Shapes Legal Practice" by Environmental Jurisprudence Foundation (2020) presents a compelling argument for the underappreciated influence of air quality on legal reasoning.
In a departure from strictly academic works, the fiction realm also provides intriguing perspectives on the confluence of air quality and legal proceedings. From John Grisham's legal thrillers, such as "The Pelican Brief" and "The Firm," to Scott Turow's captivating narratives in "Presumed Innocent," these fictional tales may not directly address the specific correlation at hand but certainly imbue readers with an appreciation for legal drama amidst the backdrop of societal and environmental contexts.
Shifting to the realm of animated enlightenment, the cartoon series "Captain Planet and the Planeteers" imparts invaluable lessons on environmental stewardship and legal advocacy through the adventures of the eponymous superhero and his eclectic team of eco-champions. Additionally, the educational program "The Magic School Bus," particularly the episode on pollution, elucidates the interconnectedness of environmental factors, legal responsibilities, and the imperative of advocating for a cleaner, healthier world.
As we traverse the eclectic landscape of scholarly, fictional, and animated works, we are reminded that the pursuit of knowledge often beckons us to embrace the unexpected and unearth the hidden connections veiled in the folds of human experience and environmental influences. So, dear reader, inhale deeply, hold your breath, and prepare for a journey as unpredictable as a legal twist and as vivid as a breath of fresh air on a summer's day.

[[RESULTS]]
Our analysis of the data collected from 1989 to 2022 revealed a robust correlation between air quality in Evansville, Indiana, and the number of lawyers in the United States. The correlation coefficient of 0.8230457 indicated a strong positive relationship between these seemingly unrelated variables. In plain English, it seems that as the air quality in Evansville improves or worsens, the number of lawyers across the country follows suit, like a legal flock of birds migrating in response to environmental changes.
The scatterplot (Fig. 1) visually encapsulates this surprising connection, portraying a scatter of data points that align remarkably well with the linear trend line. It's as if the legal and environmental stars have aligned, painting a picture that even the most skeptical statistician must acknowledge.
Furthermore, the r-squared value of 0.6774043 implies that approximately 67.74% of the variance in the number of lawyers can be explained by changes in air quality in Evansville. One might be tempted to say that the legal landscape in the United States breathes in unison with Evansville, as if in an elegant legal waltz choreographed by the winds of change.
Our analysis also revealed a p-value of less than 0.01, indicating statistical significance. This means that the likelihood of observing such a strong relationship between air quality in Evansville and the number of lawyers in the United States by chance alone is about as rare as finding a paper trail leading directly from air pollution to the nearest attorney's office.
In conclusion, our findings suggest that there may be more to the air quality in Evansville than meets the respiratory system. Whether this correlation is a mere reflection of statistical "noise pollution" or a meaningful indicator of the legal ecosystem's sensitivity to environmental changes, our study provides compelling evidence of an unexpected and significant relationship between air quality in Evansville and the number of lawyers in the United States. It's as if the legal profession and environmental conditions are engaged in a subtle dance, where each move of the air quality influences the legal domain, as though the lawyers themselves were part of a "legal-air-ian" orchestration.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

Our results substantiate the whimsical sentiments expressed in the literature review, exhibiting a correlation that is as clear as a sunny day and as unexpected as a tornado in a law library. While the connection between air quality in Evansville and the number of lawyers nationwide may seem as elusive as an attorney's vacation schedule, our findings highlight a robust and statistically significant relationship that demands serious consideration.

The correlation coefficient of 0.8230457, akin to a legal brief with compelling evidence, signifies a strong positive association between these two disparate variables. It appears that the legal landscape responds to the inhalations and exhalations of Evansville's air quality changes with a synchronicity reminiscent of a well-rehearsed legal argument. Our findings align harmoniously with the prior scholarship that hinted at the interplay between environmental factors and legal dynamics, serving as a testament to the resilience of this unexpected connection in the face of statistical scrutiny.

Moreover, the r-squared value of 0.6774043 underscores that a substantial proportion of the variability in the number of lawyers can be elucidated by fluctuations in Evansville's air quality. This result echoes the metaphorical symphony of legal and environmental influences, illustrating that the legal ecosystem may indeed be attuned to the environmental "notes" emanating from the quaint city of Evansville – a city whose impact reverberates on a national scale.

The significant p-value further solidifies the gravity of our findings, highlighting the unlikelihood of this relationship being a mere statistical anomaly. One might jest that the probability of such a strong correlation arising by chance alone is as remote as a legal pad floating through a gust of air pollution.

In light of our results, it becomes apparent that the seemingly unrelated variables of air quality in Evansville and the number of lawyers in the United States are entwined in a manner as intricate as the finest legal arguments and as compelling as the cleanest breath of air. Our study presents a compelling case for continued inquiry into the intricate dance of environmental forces and legal dynamics, uncovering a connection that may leave scholars "air-ing" on the side of curiosity for years to come.


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

Please make up a short conclusion of an academic research paper presenting the findings of the connection between Air quality in Evansville, Indiana and Number of Lawyers in the United States. Make lots of jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

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

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
Taking a Breath: The Air-ey Relation Between Evansville's Air Quality and the Legal Stature of Lawyers in the United States

[[ABSTRACT]]
In this study, we investigate the seemingly unrelated duo of air quality in Evansville, Indiana, and the number of lawyers in the United States. Yes, you read that right! While it may sound like a search for "toxic lawyering," our research took a deep breath and delved into the statistical connection. Using data from the Environmental Protection Agency and the American Bar Association, we conducted a comprehensive analysis from 1989 to 2022. To our surprise, we observed a strong correlation coefficient of 0.8230457 and a significant p-value of less than 0.01. Our findings suggest that there may be an "air"-y relationship between Evansville's air quality and the legal landscape in the United States. Whether this correlation is a breath of fresh air or merely legal hot air, our study provides an insightful perspective that may leave you "gasp"-ing for more.

[[INTRDUCTION]]
The intersection of environmental factors and societal dynamics has long been a topic of interest for researchers seeking to understand the complexities of human behavior and its impact on our surroundings. As we embark on this journey to unravel the mysterious connection between air quality in Evansville, Indiana, and the legal prowess of lawyers in the United States, we find ourselves in a realm where the air is ripe with possibilities. Our quest may seem as improbable as finding a "briefcase" filled with legal documents at the bottom of the Ohio River, but rest assured, dear reader, we are not simply blowing "smokescreens" - pun intended.
Evansville, Indiana, a city nestled along the banks of the Ohio River, has been grappling with air quality concerns for decades. Meanwhile, the legal profession in the United States continues to grow, with an ever-increasing number of attorneys joining the ranks. While these two seemingly disparate phenomena might appear about as harmonious as a stuck gavel at a silent auction, our data-driven investigation has revealed intriguing patterns that invite us to ponder the "case" for their potential correlation.
The aim of this study is not to leave our audience breathless with anticipation, but rather to shed light on the "air"-y relationship between the quality of air in Evansville and the prevalence of lawyers across the country. Through meticulous analysis and statistical scrutiny, we seek to discern whether there exists a tangible link between these variables or if it's just a mere coincidence floating in the "legal ether."
As we venture into this uncharted territory, we invite you to join us on this scholarly escapade, as we navigate through the "murky waters" of data analysis and draw inferences that may have you exclaiming, "I object!" or "The evidence is air-tight!"
So, buckle your seatbelts, grab your air filtration masks, and prepare for a journey that promises to be as enlightening as a well-crafted legal argument and as refreshing as a gust of wind by the Ohio River. Let us dive into the depths of this unexpected correlation and see if we can uncover substantive evidence or if it all ultimately dissipates like a mere puff of legal smoke!

[[RESULTS]]
Our analysis of the data collected from 1989 to 2022 revealed a robust correlation between air quality in Evansville, Indiana, and the number of lawyers in the United States. The correlation coefficient of 0.8230457 indicated a strong positive relationship between these seemingly unrelated variables. In plain English, it seems that as the air quality in Evansville improves or worsens, the number of lawyers across the country follows suit, like a legal flock of birds migrating in response to environmental changes.
The scatterplot (Fig. 1) visually encapsulates this surprising connection, portraying a scatter of data points that align remarkably well with the linear trend line. It's as if the legal and environmental stars have aligned, painting a picture that even the most skeptical statistician must acknowledge.
Furthermore, the r-squared value of 0.6774043 implies that approximately 67.74% of the variance in the number of lawyers can be explained by changes in air quality in Evansville. One might be tempted to say that the legal landscape in the United States breathes in unison with Evansville, as if in an elegant legal waltz choreographed by the winds of change.
Our analysis also revealed a p-value of less than 0.01, indicating statistical significance. This means that the likelihood of observing such a strong relationship between air quality in Evansville and the number of lawyers in the United States by chance alone is about as rare as finding a paper trail leading directly from air pollution to the nearest attorney's office.
In conclusion, our findings suggest that there may be more to the air quality in Evansville than meets the respiratory system. Whether this correlation is a mere reflection of statistical "noise pollution" or a meaningful indicator of the legal ecosystem's sensitivity to environmental changes, our study provides compelling evidence of an unexpected and significant relationship between air quality in Evansville and the number of lawyers in the United States. It's as if the legal profession and environmental conditions are engaged in a subtle dance, where each move of the air quality influences the legal domain, as though the lawyers themselves were part of a "legal-air-ian" orchestration.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In closing, our research has blown the lid off the curious correlation between Evansville's air quality and the legal saturation of lawyers in the United States. This unexpected dance of data has left us all breathless (not just due to air pollution). Our findings, with a correlation coefficient that would make even the strictest judge nod in agreement, suggest that the legal landscape may indeed be influenced by the "airborne whisperings" from Evansville. It's as if the very winds of change carry legal implications, creating a legal atmosphere as unpredictable as the weather in Indiana.

It's tempting to ponder the possibilities that may arise from this unusual relationship. Could law firms start offering "clean air consultations"? Will future bar exams include questions on the impact of air quality on legal strategy? And should legal scholars now consider the role of particulate matter in civil disputes? The legal world is full of surprises, and it seems the air is no exception.

And yet, with a twinkle in our eyes and a nod to common sense, we assert that no more research is needed in this area. We've blown this case wide open, and it's clear that the air of Evansville has its legal "clout." It's time for us to take a deep breath, inhale the satisfaction of a well-concluded study, and exhale any lingering doubts. So, let's close this case and leave it to the proverbial legal winds!


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 Taking a Breath: The Air-ey Relation Between Evansville's Air Quality and the Legal Stature of Lawyers in the United States. Respond only with the name of a fictional academic journal.

ChatGPT:

Journal of Environmental Law and Urban Air Quality


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 Taking a Breath: The Air-ey Relation Between Evansville's Air Quality and the Legal Stature of Lawyers in the United States. Respond only with the name of a fictional organization.

ChatGPT:

The Center for Atmospheric Advancements and Legal Precedents


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 Taking a Breath: The Air-ey Relation Between Evansville's Air Quality and the Legal Stature of Lawyers in the United States with an abstract of In this study, we investigate the seemingly unrelated duo of air quality in Evansville, Indiana, and the number of lawyers in the United States. Yes, you read that right! While it may sound like a search for "toxic lawyering," our research took a deep breath and delved into the statistical connection. Using data from the Environmental Protection Agency and the American Bar Association, we conducted a comprehensive analysis from 1989 to 2022. To our surprise, we observed a strong correlation coefficient of 0.8230457 and a significant p-value of less than 0.01. Our findings suggest that there may be an "air"-y relationship between Evansville's air quality and the legal landscape in the United States. Whether this correlation is a breath of fresh air or merely legal hot air, our study provides an insightful perspective that may leave you "gasp"-ing for more.

ChatGPT:

air quality, lawyers, Evansville, Indiana, United States, correlation, statistical analysis, Environmental Protection Agency, American Bar Association, correlation coefficient, p-value, legal landscape, research study, relationship, statistical connection, data analysis

*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 quality in Evansville, Indiana
Detailed data title: Percentage of days with good or moderate air quality in Evansville, IN-KY
Source: Environmental Protection Agency
See what else correlates with Air quality in Evansville, Indiana

Number of Lawyers in the United States
Detailed data title: The Count of ABA Lawyers in the United States
Source: ABA
See what else correlates with Number of Lawyers in the United States

Correlation r = 0.8230457 (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.6774043 (Coefficient of determination)
This means 67.7% of the change in the one variable (i.e., Number of Lawyers in the United States) is predictable based on the change in the other (i.e., Air quality in Evansville, Indiana) over the 34 years from 1989 through 2022.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 2.31E-9. 0.0000000023077644825392470000
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.82 in 2.31E-7% of random cases. Said differently, if you correlated 433,319,781 random variables You don't actually need 433 million variables to find a correlation like this one. I don't have that many variables in my database. You can also correlate variables that are not independent. I do this a lot.

p-value calculations are useful for understanding the probability of a result happening by chance. They are most useful when used to highlight the risk of a fluke outcome. For example, if you calculate a p-value of 0.30, the risk that the result is a fluke is high. It is good to know that! But there are lots of ways to get a p-value of less than 0.01, as evidenced by this project.

In this particular case, the values are so extreme as to be meaningless. That's why no one reports p-values with specificity after they drop below 0.01.

Just to be clear: I'm being completely transparent about the calculations. There is no math trickery. This is just how statistics shakes out when you calculate hundreds of millions of random correlations.
with the same 33 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 33 because we have two variables measured over a period of 34 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.67, 0.91 ] 95% correlation confidence interval (using the Fisher z-transformation)
The confidence interval is an estimate the range of the value of the correlation coefficient, using the correlation itself as an input. The values are meant to be the low and high end of the correlation coefficient with 95% confidence.

This one is a bit more complciated than the other calculations, but I include it because many people have been pushing for confidence intervals instead of p-value calculations (for example: NEJM. However, if you are dredging data, you can reliably find yourself in the 5%. That's my goal!


All values for the years included above: If I were being very sneaky, I could trim years from the beginning or end of the datasets to increase the correlation on some pairs of variables. I don't do that because there are already plenty of correlations in my database without monkeying with the years.

Still, sometimes one of the variables has more years of data available than the other. This page only shows the overlapping years. To see all the years, click on "See what else correlates with..." link above.
1989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022
Air quality in Evansville, Indiana (Good air quality)85.753484.657576.986393.715889.5898081.643885.519188.493183.835684.383690.437291.780885.479592.328896.721387.671292.876787.123397.267898.630194.794595.890490.983699.178198.630198.356298.633998.904198.904110099.180399.452199.726
Number of Lawyers in the United States (Lawyers)725579755694777119799760846036865614896140953260953260985921100044010224601048900104975010586601084500110477011169701143360116212011803901203100122545012452001268010128143013007001312870133596013423801352080132874013279101327010




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

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

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




Try it yourself

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

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

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

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

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

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

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

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

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


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

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

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

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

    return correlation, r_squared, p_value

# These are the arrays for the variables shown on this page, but you can modify them to be any two sets of numbers
array_1 = np.array([85.7534,84.6575,76.9863,93.7158,89.589,80,81.6438,85.5191,88.4931,83.8356,84.3836,90.4372,91.7808,85.4795,92.3288,96.7213,87.6712,92.8767,87.1233,97.2678,98.6301,94.7945,95.8904,90.9836,99.1781,98.6301,98.3562,98.6339,98.9041,98.9041,100,99.1803,99.4521,99.726,])
array_2 = np.array([725579,755694,777119,799760,846036,865614,896140,953260,953260,985921,1000440,1022460,1048900,1049750,1058660,1084500,1104770,1116970,1143360,1162120,1180390,1203100,1225450,1245200,1268010,1281430,1300700,1312870,1335960,1342380,1352080,1328740,1327910,1327010,])
array_1_name = "Air quality in Evansville, Indiana"
array_2_name = "Number of Lawyers in the United States"

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

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



Reuseable content

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

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

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

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

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

Download images for these variables:


View another random correlation

How fun was this correlation?

Your correlation inspection deserves a standing ovation!


Correlation ID: 5680 · Black Variable ID: 20613 · Red Variable ID: 542
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0