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

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is Wind power generated in Honduras and the second variable is Number of Lawyers in the United States.  The chart goes from 2011 to 2021, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

The increased wind power in Honduras led to a rise in kite production. This in turn resulted in more kites getting stuck in trees in the US, leading to an uptick in demand for lawyers to settle property disputes over kite retrieval. After all, when it comes to tangled legal matters, they're the experts in navigating the 'air' of the law!

Model: dalle-3
Prompt: Prompt: Generate a photorealistic image of a serene coastal landscape in Honduras, with giant wind turbines towering above the shore. The turbines are depicted harnessing the power of the breeze, spinning ferociously as the wind picks up. In the distance, the ocean stretches toward the horizon, with the United States visible on the other side. On the US shoreline, a group of lawyers stands, with the wind carrying the whispers of the turbines to them. The lawyers are depicted feeling inexplicably drawn to pursue law, with evidence of a surge in the number of legal professionals visible in the background. The image should capture the palpable influence of the wind, stirring a flurry of enthusiasm among aspiring lawyers. 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: Wind power generated in Honduras 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: Surrealism Oragami Photorealism Art nouveau Cutsy graphics
ChatGPT: Photorealism

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 Wind power generated in Honduras and Number of Lawyers in the United States, in the following situation: Because as wind power in Honduras increased, it created a surge of energy that blew across the ocean. This wind energy had a mesmerizing effect on lawyers in the United States, leading to a sudden influx of people wanting to become lawyers. The irresistible pull of the wind just whispered to them, "You should pursue law!" And, before you know it, the legal field was booming with a gust of new recruits. Just goes to show you, when it comes to wind power, the possibilities are truly blowing in the wind!. Keep the description simple.
ChatGPT: Picture a serene coastal landscape in Honduras, where giant wind turbines stand tall, harnessing the power of the breeze. As the wind picks up, the turbines spin ferociously, generating an abundance of clean, sustainable energy. Across the ocean, in the United States, a group of lawyers stands at the shoreline. Suddenly, a gust of wind carries the whispers of the turbines, and the lawyers feel inexplicably drawn to pursue law. The wind's influence is palpable as it stirs up a flurry of enthusiasm among aspiring lawyers, creating a visible surge in the number of legal professionals in the country.

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: [ Photorealism ] and depicting this scene: Picture a serene coastal landscape in Honduras, where giant wind turbines stand tall, harnessing the power of the breeze. As the wind picks up, the turbines spin ferociously, generating an abundance of clean, sustainable energy. Across the ocean, in the United States, a group of lawyers stands at the shoreline. Suddenly, a gust of wind carries the whispers of the turbines, and the lawyers feel inexplicably drawn to pursue law. The wind's influence is palpable as it stirs up a flurry of enthusiasm among aspiring lawyers, creating a visible surge in the number of legal professionals in the country. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Prompt: Generate a photorealistic image of a serene coastal landscape in Honduras, with giant wind turbines towering above the shore. The turbines are depicted harnessing the power of the breeze, spinning ferociously as the wind picks up. In the distance, the ocean stretches toward the horizon, with the United States visible on the other side. On the US shoreline, a group of lawyers stands, with the wind carrying the whispers of the turbines to them. The lawyers are depicted feeling inexplicably drawn to pursue law, with evidence of a surge in the number of legal professionals visible in the background. The image should capture the palpable influence of the wind, stirring a flurry of enthusiasm among aspiring lawyers.

*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 Wind power generated in Honduras caused Number of Lawyers in the United States to increase. Add a funny one-liner at the end.

AI academic paper

(Because p < 0.01)
Blowing in the Legal Winds: A Statistical Analysis of the Relationship Between Wind Power Generation in Honduras and the Number of Lawyers in the United States

The Journal of Renewable Energy Economics and Legal 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 witty academic researcher. Your writing sounds like it belongs in a statistics journal.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 Wind power generated in Honduras and Number of Lawyers in the United States. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

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

Your research team used data from Energy Information Administration and ABA to assess this nagging question. You found a correlation coefficient of 0.9268435 and p < 0.01 for 2011 to 2021.

Please respond in this format (replace "Lorem ipsum dolor sit" with your title and abstract)

[[TITLE]]
Lorem ipsum dolor sit

[[ABSTRACT]]
Lorem ipsum dolor sit



ChatGPT:
[[TITLE]]
Blowing in the Legal Winds: A Statistical Analysis of the Relationship Between Wind Power Generation in Honduras and the Number of Lawyers in the United States

[[ABSTRACT]]
This paper aims to shed light on the unusual yet intriguing relationship between the amount of wind power generated in Honduras and the number of lawyers in the United States. Drawing on data from the Energy Information Administration and the American Bar Association from 2011 to 2021, our study examines the correlation between these seemingly unrelated factors. Our findings reveal a remarkably high correlation coefficient of 0.9268435 with a significance level of p < 0.01, suggesting a strong positive relationship between the two variables.

Our results are not only statistically significant but also quite "blown away" by the unexpected link between wind power in Honduras and the presence of lawyers in the United States. The implications of this correlation beg the age-old question: "What do wind energy and lawyers have in common?" This unexpected connection may prompt further research and speculation in both the legal and energy sectors, proving that sometimes, the winds of statistical analysis can uncover the most surprising relationships.


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics journal.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 Wind power generated in Honduras and Number of Lawyers in the United States. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

Here is the title and abstract of the paper:
[[TITLE]]
Blowing in the Legal Winds: A Statistical Analysis of the Relationship Between Wind Power Generation in Honduras and the Number of Lawyers in the United States

[[ABSTRACT]]
This paper aims to shed light on the unusual yet intriguing relationship between the amount of wind power generated in Honduras and the number of lawyers in the United States. Drawing on data from the Energy Information Administration and the American Bar Association from 2011 to 2021, our study examines the correlation between these seemingly unrelated factors. Our findings reveal a remarkably high correlation coefficient of 0.9268435 with a significance level of p < 0.01, suggesting a strong positive relationship between the two variables.

Our results are not only statistically significant but also quite "blown away" by the unexpected link between wind power in Honduras and the presence of lawyers in the United States. The implications of this correlation beg the age-old question: "What do wind energy and lawyers have in common?" This unexpected connection may prompt further research and speculation in both the legal and energy sectors, proving that sometimes, the winds of statistical analysis can uncover the most surprising relationships.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

Holy windmills, Batman! We are about to embark on a statistical journey that blows the mind. As we unleash our findings on the relationship between wind power generation in Honduras and the number of lawyers in the United States, buckle up for a mixture of 100% renewable energy and a touch of legal wit.

Sailing through the seas of data, we were struck by the gust of correlation between these seemingly unrelated variables. It's truly as shocking as finding a lawyer in a courtroom – unexpected but not entirely out of place. Speaking of which, did you hear about the lawyer who tried to sue the airline for losing his luggage? He lost the case.

With the aim to breeze through the unexpected connection, we delved into the Energy Information Administration's data on wind power generation in Honduras and the American Bar Association's records on the number of lawyers in the United States. A cross-border investigation, you might say. These two datasets, when combined, painted a picture that was as surprising as a tornado in a desert.

Our findings pointed to a correlation coefficient of 0.9268435, which is as strong as a gust of wind during a hurricane. This significant relationship, with a p-value less than 0.01, left us as pleased as a lawyer winning a court case. It's safe to say that the winds have whispered some intriguing secrets to us in this study.

Now, what exactly do wind power and lawyers have in common? We're not pulling your leg – it seems they may share a common statistical ground. Like the lawyer who was cross-examining a goose, we found ourselves in an unexpected situation, but just as curious. This statistical partnership could be the start of a revolution as powerful as a wind turbine on a windy day.

As we embark on this statistical escapade, let's fasten our seatbelts and prepare for a journey into unexplored territory where the winds of statistical analysis may indeed stir up some unexpected findings. So, sit back, relax, and get ready to be "blown away" by the surprising connection we are about to unveil.


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics journal.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 Wind power generated in Honduras and Number of Lawyers in the United States. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

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

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

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

Here is the title and abstract of the paper:
[[TITLE]]
Blowing in the Legal Winds: A Statistical Analysis of the Relationship Between Wind Power Generation in Honduras and the Number of Lawyers in the United States

[[ABSTRACT]]
This paper aims to shed light on the unusual yet intriguing relationship between the amount of wind power generated in Honduras and the number of lawyers in the United States. Drawing on data from the Energy Information Administration and the American Bar Association from 2011 to 2021, our study examines the correlation between these seemingly unrelated factors. Our findings reveal a remarkably high correlation coefficient of 0.9268435 with a significance level of p < 0.01, suggesting a strong positive relationship between the two variables.

Our results are not only statistically significant but also quite "blown away" by the unexpected link between wind power in Honduras and the presence of lawyers in the United States. The implications of this correlation beg the age-old question: "What do wind energy and lawyers have in common?" This unexpected connection may prompt further research and speculation in both the legal and energy sectors, proving that sometimes, the winds of statistical analysis can uncover the most surprising relationships.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
Holy windmills, Batman! We are about to embark on a statistical journey that blows the mind. As we unleash our findings on the relationship between wind power generation in Honduras and the number of lawyers in the United States, buckle up for a mixture of 100% renewable energy and a touch of legal wit.
Sailing through the seas of data, we were struck by the gust of correlation between these seemingly unrelated variables. It's truly as shocking as finding a lawyer in a courtroom – unexpected but not entirely out of place. Speaking of which, did you hear about the lawyer who tried to sue the airline for losing his luggage? He lost the case.
With the aim to breeze through the unexpected connection, we delved into the Energy Information Administration's data on wind power generation in Honduras and the American Bar Association's records on the number of lawyers in the United States. A cross-border investigation, you might say. These two datasets, when combined, painted a picture that was as surprising as a tornado in a desert.
Our findings pointed to a correlation coefficient of 0.9268435, which is as strong as a gust of wind during a hurricane. This significant relationship, with a p-value less than 0.01, left us as pleased as a lawyer winning a court case. It's safe to say that the winds have whispered some intriguing secrets to us in this study.
Now, what exactly do wind power and lawyers have in common? We're not pulling your leg – it seems they may share a common statistical ground. Like the lawyer who was cross-examining a goose, we found ourselves in an unexpected situation, but just as curious. This statistical partnership could be the start of a revolution as powerful as a wind turbine on a windy day.
As we embark on this statistical escapade, let's fasten our seatbelts and prepare for a journey into unexplored territory where the winds of statistical analysis may indeed stir up some unexpected findings. So, sit back, relax, and get ready to be "blown away" by the surprising connection we are about to unveil.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

The relationship between wind power generation in Honduras and the number of lawyers in the United States may seem as mismatched as wearing a Hawaiian shirt to a formal event, yet the statistical findings of their correlation cannot be brushed aside. In "Smith et al.'s Study on Energy and Legal Employment," the authors find that wind power generation and legal employment are, in fact, positively correlated, leading to the emergence of a "legal wind" figuratively blowing across the boundaries of statistical analysis.

The statistical connection between wind power in a Central American country and legal employment in the United States might seem as unlikely as finding a lawyer in a library—however, the correlation coefficient between these two variables can't be denied. "Doe and Jones' Analysis of Jurisprudence and Renewable Energy" supports this notion and brings to light this unique association that's as surprising as a lawyer's opening statement being a knock-knock joke.

Drawing inspiration from non-fiction literature, "Energy Law and Policy" by Lincoln Davies and Alexandra Klass may have laid a solid foundation for understanding the legal landscape related to wind power generation. While "The Wind-Up Bird Chronicle" by Haruki Murakami, "The Girl with the Dragon Tattoo" by Stieg Larsson, and "To Kill a Mockingbird" by Harper Lee, may not deal directly with wind power or legal matters, their titles certainly evoke a sense of wind and legal intrigue, just like our unexpected statistical findings.

In the realm of board games, "Clue" may remind us of the investigative nature of statistical research, where unexpected connections are uncovered akin to finding the hidden truth behind a crime. And just as in the game "Monopoly," where financial and legal matters play a significant role, our statistical exploration aims to shed light on the intricate interplay between wind power and legal professions.

As we navigate through this unusual territory of statistical findings, much like a lawyer sheepishly admitting to a dad joke, we can't ignore the surprising correlation between wind power generation in Honduras and the number of lawyers in the United States. It seems that sometimes, statistical analysis can blow our minds in the most unexpected ways.


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics journal.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 Wind power generated in Honduras and Number of Lawyers in the United States. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

Your research team collected data from all across the internet, but mostly just used information from Energy Information Administration and ABA . You used data from 2011 to 2021

Make up the research methods you don't know. Make them a bit goofy and convoluted.

Here is the title, abstract, and introduction of the paper:
[[TITLE]]
Blowing in the Legal Winds: A Statistical Analysis of the Relationship Between Wind Power Generation in Honduras and the Number of Lawyers in the United States

[[ABSTRACT]]
This paper aims to shed light on the unusual yet intriguing relationship between the amount of wind power generated in Honduras and the number of lawyers in the United States. Drawing on data from the Energy Information Administration and the American Bar Association from 2011 to 2021, our study examines the correlation between these seemingly unrelated factors. Our findings reveal a remarkably high correlation coefficient of 0.9268435 with a significance level of p < 0.01, suggesting a strong positive relationship between the two variables.

Our results are not only statistically significant but also quite "blown away" by the unexpected link between wind power in Honduras and the presence of lawyers in the United States. The implications of this correlation beg the age-old question: "What do wind energy and lawyers have in common?" This unexpected connection may prompt further research and speculation in both the legal and energy sectors, proving that sometimes, the winds of statistical analysis can uncover the most surprising relationships.

[[INTRODUCTION]]
Holy windmills, Batman! We are about to embark on a statistical journey that blows the mind. As we unleash our findings on the relationship between wind power generation in Honduras and the number of lawyers in the United States, buckle up for a mixture of 100% renewable energy and a touch of legal wit.
Sailing through the seas of data, we were struck by the gust of correlation between these seemingly unrelated variables. It's truly as shocking as finding a lawyer in a courtroom – unexpected but not entirely out of place. Speaking of which, did you hear about the lawyer who tried to sue the airline for losing his luggage? He lost the case.
With the aim to breeze through the unexpected connection, we delved into the Energy Information Administration's data on wind power generation in Honduras and the American Bar Association's records on the number of lawyers in the United States. A cross-border investigation, you might say. These two datasets, when combined, painted a picture that was as surprising as a tornado in a desert.
Our findings pointed to a correlation coefficient of 0.9268435, which is as strong as a gust of wind during a hurricane. This significant relationship, with a p-value less than 0.01, left us as pleased as a lawyer winning a court case. It's safe to say that the winds have whispered some intriguing secrets to us in this study.
Now, what exactly do wind power and lawyers have in common? We're not pulling your leg – it seems they may share a common statistical ground. Like the lawyer who was cross-examining a goose, we found ourselves in an unexpected situation, but just as curious. This statistical partnership could be the start of a revolution as powerful as a wind turbine on a windy day.
As we embark on this statistical escapade, let's fasten our seatbelts and prepare for a journey into unexplored territory where the winds of statistical analysis may indeed stir up some unexpected findings. So, sit back, relax, and get ready to be "blown away" by the surprising connection we are about to unveil.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To uncover the mysterious link between wind power generation in Honduras and the number of lawyers in the United States, we embarked on a methodological adventure more thrilling than a kite flying contest on a blustery day. Our approach was as thorough as a legal brief yet as flexible as a wind turbine in a storm.

First, we harnessed the power of data collection from the Energy Information Administration and the American Bar Association, which served as our treasure maps in this statistical expedition. The data from the Energy Information Administration provided us with a comprehensive overview of wind power generation in Honduras, while the American Bar Association's records bestowed upon us the number of lawyers in the United States. The synergy between these datasets set the stage for a statistical exploration as invigorating as a sailboat ride through a gale.

Employing a time frame spanning from 2011 to 2021, our journey through the historical records was as meticulous as a lawyer crafting a compelling argument before the jury. We carefully navigated through the waves of annual data, ensuring that no gust of information was left uncovered. After all, we wanted to capture every breeze, much like a wind farm capturing every gust of air with precision.

Now, time for a quick break from the wind and lawyers. Did you hear about the wind turbine who couldn't land a date? He had too many fans.

Returning to our methodological journey, we applied advanced statistical techniques to analyze the relationship between these two seemingly disparate variables. Our analytical arsenal featured correlation analysis, regression models, and a sprinkle of inferential statistics to interpret the winds of data swirling around us.

The correlation analysis allowed us to quantify the strength of the relationship between wind power generation in Honduras and the number of lawyers in the United States. It was as if we were measuring the force of a legal argument against the backdrop of renewable energy potential.

Next, we unleashed the power of regression models to delve even deeper into the nuances of this unexpected relationship. Like a legal case with multiple layers of evidence, the regression analysis enabled us to uncover the underlying patterns and associations between wind power and the legal profession.

Finally, our foray into inferential statistics provided us with the robustness to draw meaningful conclusions about the broader population from which our data were derived. It was a bit like drawing parallels between case law and precedents in legal proceedings.

As we wrapped up our methodological journey, we couldn't help but appreciate the sheer ingenuity of the statistical techniques employed in unraveling the connection between wind power generation in Honduras and the number of lawyers in the United States. Just as a sharp legal argument can turn the tide in a courtroom, our statistical methods paved the way for unveiling the surprising correlation between these two domains.


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics journal.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 Wind power generated in Honduras and Number of Lawyers in the United States. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

Your research team collected data from all across the internet, but mostly just used information from Energy Information Administration and ABA .

For the time period 2011 to 2021, you found a correlation 0.9268435, r-squared of 0.8590388, 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]]
Blowing in the Legal Winds: A Statistical Analysis of the Relationship Between Wind Power Generation in Honduras and the Number of Lawyers in the United States

[[ABSTRACT]]
This paper aims to shed light on the unusual yet intriguing relationship between the amount of wind power generated in Honduras and the number of lawyers in the United States. Drawing on data from the Energy Information Administration and the American Bar Association from 2011 to 2021, our study examines the correlation between these seemingly unrelated factors. Our findings reveal a remarkably high correlation coefficient of 0.9268435 with a significance level of p < 0.01, suggesting a strong positive relationship between the two variables.

Our results are not only statistically significant but also quite "blown away" by the unexpected link between wind power in Honduras and the presence of lawyers in the United States. The implications of this correlation beg the age-old question: "What do wind energy and lawyers have in common?" This unexpected connection may prompt further research and speculation in both the legal and energy sectors, proving that sometimes, the winds of statistical analysis can uncover the most surprising relationships.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
Holy windmills, Batman! We are about to embark on a statistical journey that blows the mind. As we unleash our findings on the relationship between wind power generation in Honduras and the number of lawyers in the United States, buckle up for a mixture of 100% renewable energy and a touch of legal wit.
Sailing through the seas of data, we were struck by the gust of correlation between these seemingly unrelated variables. It's truly as shocking as finding a lawyer in a courtroom – unexpected but not entirely out of place. Speaking of which, did you hear about the lawyer who tried to sue the airline for losing his luggage? He lost the case.
With the aim to breeze through the unexpected connection, we delved into the Energy Information Administration's data on wind power generation in Honduras and the American Bar Association's records on the number of lawyers in the United States. A cross-border investigation, you might say. These two datasets, when combined, painted a picture that was as surprising as a tornado in a desert.
Our findings pointed to a correlation coefficient of 0.9268435, which is as strong as a gust of wind during a hurricane. This significant relationship, with a p-value less than 0.01, left us as pleased as a lawyer winning a court case. It's safe to say that the winds have whispered some intriguing secrets to us in this study.
Now, what exactly do wind power and lawyers have in common? We're not pulling your leg – it seems they may share a common statistical ground. Like the lawyer who was cross-examining a goose, we found ourselves in an unexpected situation, but just as curious. This statistical partnership could be the start of a revolution as powerful as a wind turbine on a windy day.
As we embark on this statistical escapade, let's fasten our seatbelts and prepare for a journey into unexplored territory where the winds of statistical analysis may indeed stir up some unexpected findings. So, sit back, relax, and get ready to be "blown away" by the surprising connection we are about to unveil.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The statistical analysis revealed a remarkably high correlation coefficient of 0.9268435 between wind power generation in Honduras and the number of lawyers in the United States. It seems that while the wind is busy powering homes in Honduras, it's also blowing some legal minds across the border. What a "windsational" discovery!

The strength of this relationship was further supported by an r-squared value of 0.8590388, indicating that approximately 85.9% of the variation in the number of lawyers in the United States can be explained by the variation in wind power generation in Honduras. It's as if the wind is whispering legal advice across the miles, ensuring that the legal world is well-ventilated.

The significant p-value of less than 0.01 adds another layer of certainty to our findings. It's as certain as the wind blowing in a storm – we can confidently say that there is a strong positive relationship between these two variables. Who would have thought that the legal landscape in the United States could be influenced by the gusts of wind in Honduras? This unexpected correlation has truly breezed its way into our statistical analysis.

Fig. 1 presents a scatterplot illustrating the strong positive correlation between wind power generation in Honduras and the number of lawyers in the United States. The points are as closely clustered as a flock of seagulls riding the wind currents, showcasing the undeniable relationship between these two variables.

What a whirlwind of a discovery! It seems that as the wind turbines in Honduras spin, they are not only generating renewable energy but also stirring up some unexpected statistical patterns in the legal world. This correlation may have legal scholars scratching their heads, but there's no need for them to lawyer up – our statistical winds have blown the evidence in.


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics journal.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 Wind power generated in Honduras and Number of Lawyers in the United States. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

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]]
Blowing in the Legal Winds: A Statistical Analysis of the Relationship Between Wind Power Generation in Honduras and the Number of Lawyers in the United States

[[ABSTRACT]]
This paper aims to shed light on the unusual yet intriguing relationship between the amount of wind power generated in Honduras and the number of lawyers in the United States. Drawing on data from the Energy Information Administration and the American Bar Association from 2011 to 2021, our study examines the correlation between these seemingly unrelated factors. Our findings reveal a remarkably high correlation coefficient of 0.9268435 with a significance level of p < 0.01, suggesting a strong positive relationship between the two variables.

Our results are not only statistically significant but also quite "blown away" by the unexpected link between wind power in Honduras and the presence of lawyers in the United States. The implications of this correlation beg the age-old question: "What do wind energy and lawyers have in common?" This unexpected connection may prompt further research and speculation in both the legal and energy sectors, proving that sometimes, the winds of statistical analysis can uncover the most surprising relationships.

[[LITERATURE REVIEW]]
The relationship between wind power generation in Honduras and the number of lawyers in the United States may seem as mismatched as wearing a Hawaiian shirt to a formal event, yet the statistical findings of their correlation cannot be brushed aside. In "Smith et al.'s Study on Energy and Legal Employment," the authors find that wind power generation and legal employment are, in fact, positively correlated, leading to the emergence of a "legal wind" figuratively blowing across the boundaries of statistical analysis.
The statistical connection between wind power in a Central American country and legal employment in the United States might seem as unlikely as finding a lawyer in a library—however, the correlation coefficient between these two variables can't be denied. "Doe and Jones' Analysis of Jurisprudence and Renewable Energy" supports this notion and brings to light this unique association that's as surprising as a lawyer's opening statement being a knock-knock joke.
Drawing inspiration from non-fiction literature, "Energy Law and Policy" by Lincoln Davies and Alexandra Klass may have laid a solid foundation for understanding the legal landscape related to wind power generation. While "The Wind-Up Bird Chronicle" by Haruki Murakami, "The Girl with the Dragon Tattoo" by Stieg Larsson, and "To Kill a Mockingbird" by Harper Lee, may not deal directly with wind power or legal matters, their titles certainly evoke a sense of wind and legal intrigue, just like our unexpected statistical findings.
In the realm of board games, "Clue" may remind us of the investigative nature of statistical research, where unexpected connections are uncovered akin to finding the hidden truth behind a crime. And just as in the game "Monopoly," where financial and legal matters play a significant role, our statistical exploration aims to shed light on the intricate interplay between wind power and legal professions.
As we navigate through this unusual territory of statistical findings, much like a lawyer sheepishly admitting to a dad joke, we can't ignore the surprising correlation between wind power generation in Honduras and the number of lawyers in the United States. It seems that sometimes, statistical analysis can blow our minds in the most unexpected ways.

[[RESULTS]]
The statistical analysis revealed a remarkably high correlation coefficient of 0.9268435 between wind power generation in Honduras and the number of lawyers in the United States. It seems that while the wind is busy powering homes in Honduras, it's also blowing some legal minds across the border. What a "windsational" discovery!
The strength of this relationship was further supported by an r-squared value of 0.8590388, indicating that approximately 85.9% of the variation in the number of lawyers in the United States can be explained by the variation in wind power generation in Honduras. It's as if the wind is whispering legal advice across the miles, ensuring that the legal world is well-ventilated.
The significant p-value of less than 0.01 adds another layer of certainty to our findings. It's as certain as the wind blowing in a storm – we can confidently say that there is a strong positive relationship between these two variables. Who would have thought that the legal landscape in the United States could be influenced by the gusts of wind in Honduras? This unexpected correlation has truly breezed its way into our statistical analysis.
Fig. 1 presents a scatterplot illustrating the strong positive correlation between wind power generation in Honduras and the number of lawyers in the United States. The points are as closely clustered as a flock of seagulls riding the wind currents, showcasing the undeniable relationship between these two variables.
What a whirlwind of a discovery! It seems that as the wind turbines in Honduras spin, they are not only generating renewable energy but also stirring up some unexpected statistical patterns in the legal world. This correlation may have legal scholars scratching their heads, but there's no need for them to lawyer up – our statistical winds have blown the evidence in.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

Our findings have certainly blown away any preconceptions about the seemingly unrelated variables of wind power generation in Honduras and the number of lawyers in the United States. It appears that these two distinct entities may be more interconnected than we initially presumed. As we reflect on our unexpected yet statistically sound results, it becomes apparent that there are plausible explanations for this intriguing correlation.

The previous research by Smith et al. and Doe and Jones suggested a positive correlation between wind power generation and legal employment, which aligns with our findings. This serendipitous correlation is as unexpected as finding a lawyer-turned-windmill enthusiast – it challenges conventional notions and calls for further investigation into the underlying mechanisms driving this relationship.

The statistical strength of our correlation coefficient and the substantial r-squared value underscore the robustness of this unexpected connection. It's as clear as the wind on a breezy day that there is a substantial association between wind power in Honduras and the number of lawyers in the United States. Our results lend empirical support to the notion that the winds of statistical analysis can indeed uncover the most surprising relationships, much like a legal case with a twist ending that leaves everyone in disbelief.

The significant p-value further solidifies the credibility of our findings, akin to a gale-force wind that leaves no room for doubt. This prompts us to consider potential theoretical explanations for this unexpected correlation – perhaps the legal profession is more affected by global energy patterns than previously theorized. As surprising as it may sound, it seems that the legal world may not be immune to the gusts of statistical whimsy.

Our scatterplot beautifully illustrates the closely clustered relationship between wind power generation in Honduras and the number of lawyers in the United States. It's as visually striking as a courtroom drama, capturing the undeniable connection between these two variables. The wind turbines in Honduras seem to be spinning a tale that extends far beyond energy generation, perhaps drafting a new chapter in the legal landscape – a plot twist that even the most seasoned lawyers couldn't object to.

In conclusion, our findings have blown our expectations out of the water, and it seems that the winds of statistical analysis have ushered in a new era of unexpected correlations. This unique connection prompts us to consider novel perspectives on the entwined nature of legal and energy patterns, shedding light on the intricate interplay between seemingly unrelated domains. As we chart new territories of statistical exploration, it becomes evident that the winds of correlation can lead us to uncharted territories, much like a surprise gust of wind on a calm day.


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics journal.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 Wind power generated in Honduras and Number of Lawyers in the United States. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

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]]
Blowing in the Legal Winds: A Statistical Analysis of the Relationship Between Wind Power Generation in Honduras and the Number of Lawyers in the United States

[[ABSTRACT]]
This paper aims to shed light on the unusual yet intriguing relationship between the amount of wind power generated in Honduras and the number of lawyers in the United States. Drawing on data from the Energy Information Administration and the American Bar Association from 2011 to 2021, our study examines the correlation between these seemingly unrelated factors. Our findings reveal a remarkably high correlation coefficient of 0.9268435 with a significance level of p < 0.01, suggesting a strong positive relationship between the two variables.

Our results are not only statistically significant but also quite "blown away" by the unexpected link between wind power in Honduras and the presence of lawyers in the United States. The implications of this correlation beg the age-old question: "What do wind energy and lawyers have in common?" This unexpected connection may prompt further research and speculation in both the legal and energy sectors, proving that sometimes, the winds of statistical analysis can uncover the most surprising relationships.

[[INTRDUCTION]]
Holy windmills, Batman! We are about to embark on a statistical journey that blows the mind. As we unleash our findings on the relationship between wind power generation in Honduras and the number of lawyers in the United States, buckle up for a mixture of 100% renewable energy and a touch of legal wit.
Sailing through the seas of data, we were struck by the gust of correlation between these seemingly unrelated variables. It's truly as shocking as finding a lawyer in a courtroom – unexpected but not entirely out of place. Speaking of which, did you hear about the lawyer who tried to sue the airline for losing his luggage? He lost the case.
With the aim to breeze through the unexpected connection, we delved into the Energy Information Administration's data on wind power generation in Honduras and the American Bar Association's records on the number of lawyers in the United States. A cross-border investigation, you might say. These two datasets, when combined, painted a picture that was as surprising as a tornado in a desert.
Our findings pointed to a correlation coefficient of 0.9268435, which is as strong as a gust of wind during a hurricane. This significant relationship, with a p-value less than 0.01, left us as pleased as a lawyer winning a court case. It's safe to say that the winds have whispered some intriguing secrets to us in this study.
Now, what exactly do wind power and lawyers have in common? We're not pulling your leg – it seems they may share a common statistical ground. Like the lawyer who was cross-examining a goose, we found ourselves in an unexpected situation, but just as curious. This statistical partnership could be the start of a revolution as powerful as a wind turbine on a windy day.
As we embark on this statistical escapade, let's fasten our seatbelts and prepare for a journey into unexplored territory where the winds of statistical analysis may indeed stir up some unexpected findings. So, sit back, relax, and get ready to be "blown away" by the surprising connection we are about to unveil.

[[RESULTS]]
The statistical analysis revealed a remarkably high correlation coefficient of 0.9268435 between wind power generation in Honduras and the number of lawyers in the United States. It seems that while the wind is busy powering homes in Honduras, it's also blowing some legal minds across the border. What a "windsational" discovery!
The strength of this relationship was further supported by an r-squared value of 0.8590388, indicating that approximately 85.9% of the variation in the number of lawyers in the United States can be explained by the variation in wind power generation in Honduras. It's as if the wind is whispering legal advice across the miles, ensuring that the legal world is well-ventilated.
The significant p-value of less than 0.01 adds another layer of certainty to our findings. It's as certain as the wind blowing in a storm – we can confidently say that there is a strong positive relationship between these two variables. Who would have thought that the legal landscape in the United States could be influenced by the gusts of wind in Honduras? This unexpected correlation has truly breezed its way into our statistical analysis.
Fig. 1 presents a scatterplot illustrating the strong positive correlation between wind power generation in Honduras and the number of lawyers in the United States. The points are as closely clustered as a flock of seagulls riding the wind currents, showcasing the undeniable relationship between these two variables.
What a whirlwind of a discovery! It seems that as the wind turbines in Honduras spin, they are not only generating renewable energy but also stirring up some unexpected statistical patterns in the legal world. This correlation may have legal scholars scratching their heads, but there's no need for them to lawyer up – our statistical winds have blown the evidence in.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our study has uncovered a truly "windsational" revelation – the remarkable correlation between wind power generation in Honduras and the number of lawyers in the United States. It seems that while the wind is busy powering homes in Honduras, it's also blowing some legal minds across the border. Talk about a cross-border exchange program! This unexpected connection may just be the "gale" force that reshapes our understanding of the intersection between renewable energy and legal professions.

Our findings have not only left us "blown away" but have also opened the door to a whole new realm of speculation and inquiry. It's like the wind is whispering legal advice across the miles, ensuring that the legal world is well-ventilated. Imagine a world where legal briefs are fluttering in the wind like autumn leaves!

As we wrap up this study, it's important to note that the implications of this correlation stretch further than the eye can see, like the vastness of the open sky. The findings challenge conventional wisdom and beckon researchers to ponder deeply about the unseen forces at play in shaping the legal landscape. It's like a legal thriller with a "twist" ending – except in this case, the twist is a gust of wind!

In light of these "windsational" insights, we boldly assert that no further research is needed in this area. The wind has spoken, and the statistical winds have blown the evidence in. It's time to hang up our statistical umbrellas and let this "blown away" revelation settle in. After all, there's only so much "airtime" we can devote to uncovering the mysteries of wind and law.

So, with that, we bid adieu to this whirlwind of statistical exploration and leave it in the capable hands of future legal and energy enthusiasts to "breeze" through the implications of this correlation. After all, who knows what other surprising connections are waiting to be unearthed? It's a statistical world out there – and the winds of correlation are always ready to blow our minds!


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 Blowing in the Legal Winds: A Statistical Analysis of the Relationship Between Wind Power Generation in Honduras and the Number of Lawyers in the United States. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Renewable Energy Economics and Legal 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 Blowing in the Legal Winds: A Statistical Analysis of the Relationship Between Wind Power Generation in Honduras and the Number of Lawyers in the United States. Respond only with the name of a fictional organization.

ChatGPT:

The Global Institute for Renewable Energy and Legal Studies


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 Blowing in the Legal Winds: A Statistical Analysis of the Relationship Between Wind Power Generation in Honduras and the Number of Lawyers in the United States with an abstract of This paper aims to shed light on the unusual yet intriguing relationship between the amount of wind power generated in Honduras and the number of lawyers in the United States. Drawing on data from the Energy Information Administration and the American Bar Association from 2011 to 2021, our study examines the correlation between these seemingly unrelated factors. Our findings reveal a remarkably high correlation coefficient of 0.9268435 with a significance level of p < 0.01, suggesting a strong positive relationship between the two variables.
Our results are not only statistically significant but also quite "blown away" by the unexpected link between wind power in Honduras and the presence of lawyers in the United States. The implications of this correlation beg the age-old question: "What do wind energy and lawyers have in common?" This unexpected connection may prompt further research and speculation in both the legal and energy sectors, proving that sometimes, the winds of statistical analysis can uncover the most surprising relationships.

ChatGPT:

wind power generation, Honduras, lawyers, United States, statistical analysis, correlation coefficient, Energy Information Administration, American Bar Association

*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

Wind power generated in Honduras
Detailed data title: Total wind power generated in Honduras in billion kWh
Source: Energy Information Administration
See what else correlates with Wind power generated in Honduras

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.9268435 (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.8590388 (Coefficient of determination)
This means 85.9% 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., Wind power generated in Honduras) over the 11 years from 2011 through 2021.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 4.08E-5. 0.0000407784080011572100000000
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.93 in 0.00408% of random cases. Said differently, if you correlated 24,523 random variables You don't actually need 24 thousand variables to find a correlation like this one. You can also correlate variables that are not independent. I do this a lot.

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

Just to be clear: I'm being completely transparent about the calculations. There is no math trickery. This is just how statistics shakes out when you calculate hundreds of millions of random correlations.
with the same 10 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 10 because we have two variables measured over a period of 11 years. It's just the number of years minus ( the number of variables minus one ), which in this case simplifies to the number of years minus one.
you would randomly expect to find a correlation as strong as this one.

[ 0.74, 0.98 ] 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.
20112012201320142015201620172018201920202021
Wind power generated in Honduras (Billion kWh)0.1170.3380.310.3980.6650.5830.5780.9290.8180.7070.803674
Number of Lawyers in the United States (Lawyers)12254501245200126801012814301300700131287013359601342380135208013287401327910




Why this works

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




Try it yourself

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

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

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

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

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

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

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

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

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


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

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

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

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

    return correlation, r_squared, p_value

# These are the arrays for the variables shown on this page, but you can modify them to be any two sets of numbers
array_1 = np.array([0.117,0.338,0.31,0.398,0.665,0.583,0.578,0.929,0.818,0.707,0.803674,])
array_2 = np.array([1225450,1245200,1268010,1281430,1300700,1312870,1335960,1342380,1352080,1328740,1327910,])
array_1_name = "Wind power generated in Honduras"
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 rating skills are top-notch!


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

CC BY 4.0