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

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is Global Per Capita Rice Consumption and the second variable is The number of legislators in Alaska.  The chart goes from 2003 to 2019, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

People realized they could just stick to their day jobs instead of rice-ing to the occasion in politics.

Model: dalle-3
Prompt: Create an image of a rustic cabin against a backdrop of snowy mountains, with a warm glow emanating from its windows. Inside, a group of legislators gather around a wooden table, engrossed in discussion. The table is set with various dishes, but conspicuously absent is a large, steaming pot of rice. The legislators depart in the early afternoon, their discussion seeming to have concluded unusually early. This visual should convey the atmosphere of a cozy yet business-like gathering, with subtle cues hinting at the missing staple food and the shift in their routine. 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: Global Per Capita Rice Consumption and The number of legislators in Alaska. 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: Futuristic Cute cartoon Parallax art Symbolism Oragami
ChatGPT: Symbolism

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 Global Per Capita Rice Consumption and The number of legislators in Alaska, in the following situation: As global per capita rice consumption decreased, people became less inclined to sit for long legislative sessions, causing a decrease in the number of legislators in Alaska as they opted for shorter work days to avoid getting hangry.. Keep the description simple.
ChatGPT: In a rustic cabin in Alaska, a group of legislators gather around a table. They appear to be discussing matters as they enjoy a meal together. However, the table is notably absent of a large, steaming pot of rice that would typically be the centerpiece of their meal. The legislators are seen leaving the cabin early in the afternoon, their discussions having concluded in a shorter than usual time frame. This change in their routine is reflective of the decreased global per capita rice consumption, as they opt for shorter workdays to avoid getting hangry without the staple food.

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: [ Symbolism ] and depicting this scene: In a rustic cabin in Alaska, a group of legislators gather around a table. They appear to be discussing matters as they enjoy a meal together. However, the table is notably absent of a large, steaming pot of rice that would typically be the centerpiece of their meal. The legislators are seen leaving the cabin early in the afternoon, their discussions having concluded in a shorter than usual time frame. This change in their routine is reflective of the decreased global per capita rice consumption, as they opt for shorter workdays to avoid getting hangry without the staple food. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Create an image of a rustic cabin against a backdrop of snowy mountains, with a warm glow emanating from its windows. Inside, a group of legislators gather around a wooden table, engrossed in discussion. The table is set with various dishes, but conspicuously absent is a large, steaming pot of rice. The legislators depart in the early afternoon, their discussion seeming to have concluded unusually early. This visual should convey the atmosphere of a cozy yet business-like gathering, with subtle cues hinting at the missing staple food and the shift in their routine.

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

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

Model: gpt-3.5-turbo-1106 (fine-tuned)
System prompt: You provide humorous responses in the form of plausible sounding explanations for correlations. You assume the correlation is causative for the purpose of the explanation even if it is ridiculous. You do not chat with the user, you only reply with the causal connection explanation and nothing else.
User prompt: Please make up a funny explanation for how a decrease in Global Per Capita Rice Consumption caused The number of legislators in Alaska to decrease.

AI academic paper

(Because p < 0.01)
Ridiculously Rapid Rice Rampage: The Relationship Between Global Per Capita Rice Consumption and The number of legislators in Alaska

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

Please draft the title and abstract of an academic research paper presenting the findings of the connection between Global Per Capita Rice Consumption and The number of legislators in Alaska. Make lots of jokes, goofy observations, and puns.

Make the title an alliteration.

Your research team used data from and Bureau of Larbor Statistics to assess this nagging question. You found a correlation coefficient of 0.8761119 and p < 0.01 for 2003 to 2019.

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]]
Ridiculously Rapid Rice Rampage: The Relationship Between Global Per Capita Rice Consumption and The number of legislators in Alaska

[[ABSTRACT]]
Our research project delves into the peculiar and utterly amusing phenomenon of the potential link between global per capita rice consumption and the number of legislators in the great state of Alaska. With a plethora of puns and a sprinkle of statistical analysis, we aim to shine a light on this unexpected connection. Using data from the Food and Agriculture Organization and the Bureau of Labor Statistics, our research team has uncovered a correlation coefficient of 0.8761119 and a p-value of less than 0.01 for the years 2003 to 2019. The results are as clear as two grains of rice in a sushi roll – there seems to be a strange but statistically significant relationship between consuming rice worldwide and the number of legislators in the Last Frontier. We invite readers to join us on this whimsical journey of discovery, where serious science meets tongue-in-cheek analysis to uncover unexpected correlations.


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

Please make up the introduction section of an academic research paper presenting the findings of the connection between Global Per Capita Rice Consumption and The number of legislators in Alaska. Make lots of jokes, goofy observations, and puns.

Here is the title and abstract of the paper:
[[TITLE]]
Ridiculously Rapid Rice Rampage: The Relationship Between Global Per Capita Rice Consumption and The number of legislators in Alaska

[[ABSTRACT]]
Our research project delves into the peculiar and utterly amusing phenomenon of the potential link between global per capita rice consumption and the number of legislators in the great state of Alaska. With a plethora of puns and a sprinkle of statistical analysis, we aim to shine a light on this unexpected connection. Using data from the Food and Agriculture Organization and the Bureau of Labor Statistics, our research team has uncovered a correlation coefficient of 0.8761119 and a p-value of less than 0.01 for the years 2003 to 2019. The results are as clear as two grains of rice in a sushi roll – there seems to be a strange but statistically significant relationship between consuming rice worldwide and the number of legislators in the Last Frontier. We invite readers to join us on this whimsical journey of discovery, where serious science meets tongue-in-cheek analysis to uncover unexpected correlations.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

Welcome, fellow academics and curious minds, to the wonderfully bizarre world of our research on the relationship between global per capita rice consumption and the number of legislators in Alaska. It all started with a rice-studded brainstorming session where we pondered the odd and unlikely connections in the vast landscape of data analysis. Little did we know that our quest for statistical enlightenment would lead us to the quirky correlation between rice consumption and legislative abundance in the land of the midnight sun.

As researchers, we often find ourselves knee-deep in data, searching for correlations that are as elusive as a single grain of rice dropped on a kitchen floor. However, in this particular endeavor, our journey unfolded like a perfectly cooked batch of fluffy basmati rice – surprisingly delightful and full of unexpected flavor.

Our fascination with this oddball puzzle was fueled by the sheer audacity of the idea. Who would have thought that the ancient grain of rice, beloved by billions worldwide, could be entangled in a statistical pas de deux with the governance of a state known for its breathtaking landscapes and moose sightings? It's like discovering that sushi can actually be a political act – talk about a roll call!

The sheer absurdity of the apparent connection piqued our research team's interest, prompting us to embark on a scholarly investigation that combines the seriousness of empirical analysis with the light-heartedness of a whimsical tale. Like intrepid explorers of the statistical world, we took on the challenge with a mix of curiosity and a generous dash of humor, ready to uncover the unexpected twists and turns that awaited us.

So, buckle up, dear readers, as we take you on a rollercoaster ride through the data jungle, where rice meets legislation in a surprising dance of digits and laws. Prepare to be amused, astonished, and, most importantly, enlightened, as we unveil the peculiar relationship between rice consumption and the number of legislators in the 49th state of the United States. It's a journey that promises to leave you with a smile on your face and, just maybe, a newfound appreciation for the quirks of statistical analysis.

Let the adventure begin!


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

Please make up a literature review section of an academic research paper presenting the findings of the connection between Global Per Capita Rice Consumption and The number of legislators in Alaska. 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]]
Ridiculously Rapid Rice Rampage: The Relationship Between Global Per Capita Rice Consumption and The number of legislators in Alaska

[[ABSTRACT]]
Our research project delves into the peculiar and utterly amusing phenomenon of the potential link between global per capita rice consumption and the number of legislators in the great state of Alaska. With a plethora of puns and a sprinkle of statistical analysis, we aim to shine a light on this unexpected connection. Using data from the Food and Agriculture Organization and the Bureau of Labor Statistics, our research team has uncovered a correlation coefficient of 0.8761119 and a p-value of less than 0.01 for the years 2003 to 2019. The results are as clear as two grains of rice in a sushi roll – there seems to be a strange but statistically significant relationship between consuming rice worldwide and the number of legislators in the Last Frontier. We invite readers to join us on this whimsical journey of discovery, where serious science meets tongue-in-cheek analysis to uncover unexpected correlations.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
Welcome, fellow academics and curious minds, to the wonderfully bizarre world of our research on the relationship between global per capita rice consumption and the number of legislators in Alaska. It all started with a rice-studded brainstorming session where we pondered the odd and unlikely connections in the vast landscape of data analysis. Little did we know that our quest for statistical enlightenment would lead us to the quirky correlation between rice consumption and legislative abundance in the land of the midnight sun.
As researchers, we often find ourselves knee-deep in data, searching for correlations that are as elusive as a single grain of rice dropped on a kitchen floor. However, in this particular endeavor, our journey unfolded like a perfectly cooked batch of fluffy basmati rice – surprisingly delightful and full of unexpected flavor.
Our fascination with this oddball puzzle was fueled by the sheer audacity of the idea. Who would have thought that the ancient grain of rice, beloved by billions worldwide, could be entangled in a statistical pas de deux with the governance of a state known for its breathtaking landscapes and moose sightings? It's like discovering that sushi can actually be a political act – talk about a roll call!
The sheer absurdity of the apparent connection piqued our research team's interest, prompting us to embark on a scholarly investigation that combines the seriousness of empirical analysis with the light-heartedness of a whimsical tale. Like intrepid explorers of the statistical world, we took on the challenge with a mix of curiosity and a generous dash of humor, ready to uncover the unexpected twists and turns that awaited us.
So, buckle up, dear readers, as we take you on a rollercoaster ride through the data jungle, where rice meets legislation in a surprising dance of digits and laws. Prepare to be amused, astonished, and, most importantly, enlightened, as we unveil the peculiar relationship between rice consumption and the number of legislators in the 49th state of the United States. It's a journey that promises to leave you with a smile on your face and, just maybe, a newfound appreciation for the quirks of statistical analysis.
Let the adventure begin!

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

To delve into the wonderfully wacky world of the relationship between global per capita rice consumption and the number of legislators in Alaska, we turn to a range of scholarly studies that address the complex dynamics of food consumption, political representation, and everything in between. Smith and Doe (2015) provide a comprehensive analysis of global rice consumption trends, shedding light on the cultural, economic, and nutritional aspects of this staple grain. Meanwhile, Jones (2018) offers a detailed examination of legislative structures and dynamics, encompassing diverse contexts from around the world. These rigorous studies serve as the bedrock upon which our whimsical investigation unfolds.

As we begin our literary journey down this unconventional research path, it's essential to recognize the seriousness of the subject matter. However, we cannot resist the temptation to inject a dash of levity into our scholarly pursuits. With that in mind, we turn to non-fiction works that explore the intricate web of food, politics, and societal systems. Titles such as "Rice and Reality: A Global Perspective" by Foodie Author and "Legislative Largesse: The Inner Workings of Political Representation" by PoliSci Expert provide valuable insights into the realms of rice consumption and legislative intricacies. The depth and breadth of these scholarly contributions inform our approach as we navigate the uncharted waters of this peculiar correlation.

In the quest for a light-hearted twist, one cannot overlook the potential inspiration drawn from fiction literature, where unexpected connections and serendipitous encounters reign supreme. The classic novel "Rice and Reason" by Literary Luminary takes readers on a wild, imaginary ride through the whimsical relationship between rice and political power. Similarly, "Legislators in Neverland" by Author Extraordinaire playfully explores the fantastical notion of legislative abundance in an enchanted realm. While these fictional works may seem fanciful, they serve as a delightful reminder that even the most unlikely pairings can spark intriguing narratives.

As we transition into the realm of cartoons and children's shows, we embrace the joy and curiosity inherent in these timeless creations. Who could forget the mischievous antics of the animated character "Rice Rat" in the beloved series "Adventures in the Pantry"? The audacious adventures of this pint-sized protagonist capture the imagination and, perhaps, offer a hint of the unexpected connections we seek to unravel. Likewise, "Legislator Leo" from the educational program "Civics Circus" introduces young viewers to the fascinating world of governance, planting seeds of knowledge that may bloom into the most delightful revelations.

In this literature review, we set the stage for a scholarly exploration that combines the rigor of empirical analysis with the sheer delight of unexpected correlations and unlikely pairings. Through the lens of serious inquiry and lighthearted amusement, we aim to uncover the peculiar connection between global per capita rice consumption and the number of legislators in the captivating landscape of Alaska. In the spirit of scholarly whimsy, let us proceed with a sense of wonder and a healthy dose of humor, ready to embrace the unexpected twists and turns that await us.


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

Please make up the methodology section of an academic research paper presenting the findings of the connection between Global Per Capita Rice Consumption and The number of legislators in Alaska. Make lots of jokes, goofy observations, and puns.

Your research team collected data from all across the internet, but mostly just used information from and Bureau of Larbor Statistics . You used data from 2003 to 2019

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]]
Ridiculously Rapid Rice Rampage: The Relationship Between Global Per Capita Rice Consumption and The number of legislators in Alaska

[[ABSTRACT]]
Our research project delves into the peculiar and utterly amusing phenomenon of the potential link between global per capita rice consumption and the number of legislators in the great state of Alaska. With a plethora of puns and a sprinkle of statistical analysis, we aim to shine a light on this unexpected connection. Using data from the Food and Agriculture Organization and the Bureau of Labor Statistics, our research team has uncovered a correlation coefficient of 0.8761119 and a p-value of less than 0.01 for the years 2003 to 2019. The results are as clear as two grains of rice in a sushi roll – there seems to be a strange but statistically significant relationship between consuming rice worldwide and the number of legislators in the Last Frontier. We invite readers to join us on this whimsical journey of discovery, where serious science meets tongue-in-cheek analysis to uncover unexpected correlations.

[[INTRODUCTION]]
Welcome, fellow academics and curious minds, to the wonderfully bizarre world of our research on the relationship between global per capita rice consumption and the number of legislators in Alaska. It all started with a rice-studded brainstorming session where we pondered the odd and unlikely connections in the vast landscape of data analysis. Little did we know that our quest for statistical enlightenment would lead us to the quirky correlation between rice consumption and legislative abundance in the land of the midnight sun.
As researchers, we often find ourselves knee-deep in data, searching for correlations that are as elusive as a single grain of rice dropped on a kitchen floor. However, in this particular endeavor, our journey unfolded like a perfectly cooked batch of fluffy basmati rice – surprisingly delightful and full of unexpected flavor.
Our fascination with this oddball puzzle was fueled by the sheer audacity of the idea. Who would have thought that the ancient grain of rice, beloved by billions worldwide, could be entangled in a statistical pas de deux with the governance of a state known for its breathtaking landscapes and moose sightings? It's like discovering that sushi can actually be a political act – talk about a roll call!
The sheer absurdity of the apparent connection piqued our research team's interest, prompting us to embark on a scholarly investigation that combines the seriousness of empirical analysis with the light-heartedness of a whimsical tale. Like intrepid explorers of the statistical world, we took on the challenge with a mix of curiosity and a generous dash of humor, ready to uncover the unexpected twists and turns that awaited us.
So, buckle up, dear readers, as we take you on a rollercoaster ride through the data jungle, where rice meets legislation in a surprising dance of digits and laws. Prepare to be amused, astonished, and, most importantly, enlightened, as we unveil the peculiar relationship between rice consumption and the number of legislators in the 49th state of the United States. It's a journey that promises to leave you with a smile on your face and, just maybe, a newfound appreciation for the quirks of statistical analysis.
Let the adventure begin!

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To navigate the tangled web of rice consumption and legislative numbers, our research team employed a blend of traditional statistical analysis and an unconventional approach that would make even the most stoic of statisticians crack a smile. Our investigative journey began by scouring the depths of the internet to collect data from reputable sources, notably the Food and Agriculture Organization and the Bureau of Labor Statistics. We sifted through a mountain of digital data, a process that felt akin to searching for a single grain of wild rice in a sea of sushi rice.

The cornerstone of our methodology was the collection of global per capita rice consumption data from 2003 to 2019. We embraced the minutiae of rice-eating patterns worldwide, from the consumption habits in bustling urban centers to the rice-obsessed festivals in remote villages. Our quest for legislative information led us to meticulously track the number of legislators in Alaska over the same time period, a task as meticulous as counting each individual grain in a heaping bowl of paella.

With the data in hand, we then dove into the statistical maelstrom, employing a hodgepodge of regression analysis, correlation coefficients, and t-tests to unravel the peculiar connection between rice consumption and legislative abundance. Our approach can be likened to crafting a delicious risotto – a careful blend of methods, all stirred together to yield a rich and flavorful insight.

To ensure the veracity of our findings, we took into account various confounding factors, such as population size, socioeconomic indicators, and political climate. We didn't want our conclusions to resemble a bowl of half-cooked rice – half-baked and unsatisfying.

In the spirit of academic rigor and lighthearted inquiry, we sautéed our statistical cauldron, garnishing it with a dash of humor and a sprinkle of whimsy. After all, what good is research if it's as dry as day-old rice? Our aim was to present our findings in a way that would engage, entertain, and enlighten, much like a perfectly crafted meal that satisfies both the palate and the intellect.

Our approach may have been unconventional, but our commitment to uncovering the unexpected relationship between rice consumption and legislative representation was unwavering. Our statistical toolbox may have been adorned with glitter and confetti, but make no mistake – the results we uncovered are as robust as a well-cooked bowl of sticky rice.


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

Please make up the results section of an academic research paper presenting the findings of the connection between Global Per Capita Rice Consumption and The number of legislators in Alaska. Make lots of jokes, goofy observations, and puns.

Your research team collected data from all across the internet, but mostly just used information from and Bureau of Larbor Statistics .

For the time period 2003 to 2019, you found a correlation 0.8761119, r-squared of 0.7675720, 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]]
Ridiculously Rapid Rice Rampage: The Relationship Between Global Per Capita Rice Consumption and The number of legislators in Alaska

[[ABSTRACT]]
Our research project delves into the peculiar and utterly amusing phenomenon of the potential link between global per capita rice consumption and the number of legislators in the great state of Alaska. With a plethora of puns and a sprinkle of statistical analysis, we aim to shine a light on this unexpected connection. Using data from the Food and Agriculture Organization and the Bureau of Labor Statistics, our research team has uncovered a correlation coefficient of 0.8761119 and a p-value of less than 0.01 for the years 2003 to 2019. The results are as clear as two grains of rice in a sushi roll – there seems to be a strange but statistically significant relationship between consuming rice worldwide and the number of legislators in the Last Frontier. We invite readers to join us on this whimsical journey of discovery, where serious science meets tongue-in-cheek analysis to uncover unexpected correlations.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
Welcome, fellow academics and curious minds, to the wonderfully bizarre world of our research on the relationship between global per capita rice consumption and the number of legislators in Alaska. It all started with a rice-studded brainstorming session where we pondered the odd and unlikely connections in the vast landscape of data analysis. Little did we know that our quest for statistical enlightenment would lead us to the quirky correlation between rice consumption and legislative abundance in the land of the midnight sun.
As researchers, we often find ourselves knee-deep in data, searching for correlations that are as elusive as a single grain of rice dropped on a kitchen floor. However, in this particular endeavor, our journey unfolded like a perfectly cooked batch of fluffy basmati rice – surprisingly delightful and full of unexpected flavor.
Our fascination with this oddball puzzle was fueled by the sheer audacity of the idea. Who would have thought that the ancient grain of rice, beloved by billions worldwide, could be entangled in a statistical pas de deux with the governance of a state known for its breathtaking landscapes and moose sightings? It's like discovering that sushi can actually be a political act – talk about a roll call!
The sheer absurdity of the apparent connection piqued our research team's interest, prompting us to embark on a scholarly investigation that combines the seriousness of empirical analysis with the light-heartedness of a whimsical tale. Like intrepid explorers of the statistical world, we took on the challenge with a mix of curiosity and a generous dash of humor, ready to uncover the unexpected twists and turns that awaited us.
So, buckle up, dear readers, as we take you on a rollercoaster ride through the data jungle, where rice meets legislation in a surprising dance of digits and laws. Prepare to be amused, astonished, and, most importantly, enlightened, as we unveil the peculiar relationship between rice consumption and the number of legislators in the 49th state of the United States. It's a journey that promises to leave you with a smile on your face and, just maybe, a newfound appreciation for the quirks of statistical analysis.
Let the adventure begin!

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The results of our research have left us both astonished and entertained by the remarkably strong relationship between global per capita rice consumption and the number of legislators in Alaska. We found a correlation coefficient of 0.8761119, an r-squared of 0.7675720, and a p-value of less than 0.01 for the time period spanning from 2003 to 2019. These numbers are as striking as a rice paddy against a clear blue sky, highlighting a connection that seems to defy conventional wisdom.

In Fig. 1, our scatterplot portrays a delightful dance of data points, twirling and swirling in a pattern that suggests a synchronized tango between rice consumption and legislative headcount. Just like a perfectly executed sushi roll, the plot reveals a harmonious relationship that is not easily dismissed. The figure stands as a testament to the unexpected correlations that lie beneath the surface of seemingly unrelated variables – a reminder that statistical analysis can often be as unpredictable as a game of musical chairs in the state legislature.

The statistical significance of this correlation is about as clear as a well-cooked bowl of rice – which is to say, crystal clear. The probability value of less than 0.01 speaks volumes about the strength of the relationship, leaving us with a sense of wonder at the curious connection between a staple food consumed by millions and the legislative landscape of Alaska.

In summary, our findings tell a tale of a statistical romance as enchanting as a moonlit night in a rice field. The dance of numbers and legislator counts has revealed an unexpected partnership that invites further contemplation and amusement, illustrating once more that the world of data analysis is filled with surprises, twists, and turns. Join us as we revel in the delight of this whimsical discovery and celebrate the joy of uncovering peculiar connections in the realm of statistical analysis.


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

Please make up the discussion section of an academic research paper presenting the findings of the connection between Global Per Capita Rice Consumption and The number of legislators in Alaska. Make lots of jokes, goofy observations, and puns.

Limit your response to 500 tokens.

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

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

[[TITLE]]
Ridiculously Rapid Rice Rampage: The Relationship Between Global Per Capita Rice Consumption and The number of legislators in Alaska

[[ABSTRACT]]
Our research project delves into the peculiar and utterly amusing phenomenon of the potential link between global per capita rice consumption and the number of legislators in the great state of Alaska. With a plethora of puns and a sprinkle of statistical analysis, we aim to shine a light on this unexpected connection. Using data from the Food and Agriculture Organization and the Bureau of Labor Statistics, our research team has uncovered a correlation coefficient of 0.8761119 and a p-value of less than 0.01 for the years 2003 to 2019. The results are as clear as two grains of rice in a sushi roll – there seems to be a strange but statistically significant relationship between consuming rice worldwide and the number of legislators in the Last Frontier. We invite readers to join us on this whimsical journey of discovery, where serious science meets tongue-in-cheek analysis to uncover unexpected correlations.

[[LITERATURE REVIEW]]
To delve into the wonderfully wacky world of the relationship between global per capita rice consumption and the number of legislators in Alaska, we turn to a range of scholarly studies that address the complex dynamics of food consumption, political representation, and everything in between. Smith and Doe (2015) provide a comprehensive analysis of global rice consumption trends, shedding light on the cultural, economic, and nutritional aspects of this staple grain. Meanwhile, Jones (2018) offers a detailed examination of legislative structures and dynamics, encompassing diverse contexts from around the world. These rigorous studies serve as the bedrock upon which our whimsical investigation unfolds.
As we begin our literary journey down this unconventional research path, it's essential to recognize the seriousness of the subject matter. However, we cannot resist the temptation to inject a dash of levity into our scholarly pursuits. With that in mind, we turn to non-fiction works that explore the intricate web of food, politics, and societal systems. Titles such as "Rice and Reality: A Global Perspective" by Foodie Author and "Legislative Largesse: The Inner Workings of Political Representation" by PoliSci Expert provide valuable insights into the realms of rice consumption and legislative intricacies. The depth and breadth of these scholarly contributions inform our approach as we navigate the uncharted waters of this peculiar correlation.
In the quest for a light-hearted twist, one cannot overlook the potential inspiration drawn from fiction literature, where unexpected connections and serendipitous encounters reign supreme. The classic novel "Rice and Reason" by Literary Luminary takes readers on a wild, imaginary ride through the whimsical relationship between rice and political power. Similarly, "Legislators in Neverland" by Author Extraordinaire playfully explores the fantastical notion of legislative abundance in an enchanted realm. While these fictional works may seem fanciful, they serve as a delightful reminder that even the most unlikely pairings can spark intriguing narratives.
As we transition into the realm of cartoons and children's shows, we embrace the joy and curiosity inherent in these timeless creations. Who could forget the mischievous antics of the animated character "Rice Rat" in the beloved series "Adventures in the Pantry"? The audacious adventures of this pint-sized protagonist capture the imagination and, perhaps, offer a hint of the unexpected connections we seek to unravel. Likewise, "Legislator Leo" from the educational program "Civics Circus" introduces young viewers to the fascinating world of governance, planting seeds of knowledge that may bloom into the most delightful revelations.
In this literature review, we set the stage for a scholarly exploration that combines the rigor of empirical analysis with the sheer delight of unexpected correlations and unlikely pairings. Through the lens of serious inquiry and lighthearted amusement, we aim to uncover the peculiar connection between global per capita rice consumption and the number of legislators in the captivating landscape of Alaska. In the spirit of scholarly whimsy, let us proceed with a sense of wonder and a healthy dose of humor, ready to embrace the unexpected twists and turns that await us.

[[RESULTS]]
The results of our research have left us both astonished and entertained by the remarkably strong relationship between global per capita rice consumption and the number of legislators in Alaska. We found a correlation coefficient of 0.8761119, an r-squared of 0.7675720, and a p-value of less than 0.01 for the time period spanning from 2003 to 2019. These numbers are as striking as a rice paddy against a clear blue sky, highlighting a connection that seems to defy conventional wisdom.
In Fig. 1, our scatterplot portrays a delightful dance of data points, twirling and swirling in a pattern that suggests a synchronized tango between rice consumption and legislative headcount. Just like a perfectly executed sushi roll, the plot reveals a harmonious relationship that is not easily dismissed. The figure stands as a testament to the unexpected correlations that lie beneath the surface of seemingly unrelated variables – a reminder that statistical analysis can often be as unpredictable as a game of musical chairs in the state legislature.
The statistical significance of this correlation is about as clear as a well-cooked bowl of rice – which is to say, crystal clear. The probability value of less than 0.01 speaks volumes about the strength of the relationship, leaving us with a sense of wonder at the curious connection between a staple food consumed by millions and the legislative landscape of Alaska.
In summary, our findings tell a tale of a statistical romance as enchanting as a moonlit night in a rice field. The dance of numbers and legislator counts has revealed an unexpected partnership that invites further contemplation and amusement, illustrating once more that the world of data analysis is filled with surprises, twists, and turns. Join us as we revel in the delight of this whimsical discovery and celebrate the joy of uncovering peculiar connections in the realm of statistical analysis.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

Our research journey has led us through the whimsical landscape of statistical analysis, where we have encountered a correlation as delightful as a sushi roll and as surprising as a surprise ingredient in a recipe. The results of our study have affirmed the peculiar and captivating relationship between global per capita rice consumption and the number of legislators in Alaska, validating the previous scholarly works that, despite their whimsical nature, have provided a solid foundation for our investigation.

As we mull over the unexpected statistical connection we have unraveled, we cannot help but recall the fictional works that playfully hinted at such unlikely pairings. "Rice and Reason" and "Legislators in Neverland," though undoubtedly whimsical in their approach, seem to have captured the essence of this enchanting correlation. It is as if fiction has bled into reality, offering us a taste of the surreal in the world of empirical analysis.

The significance of our correlation coefficient and the p-value that practically shouts "statistical significance" at us like an overenthusiastic legislator cannot be ignored. Our findings have not only validated the presence of this correlation but have also imbued our scholarly pursuit with a sense of scholarly whimsy, effectively transforming our research from a conventional statistical venture into a delightful exploration of unexpected connections.

In the spirit of scholarly amusement and statistical wonder, let us savor this whimsical discovery and revel in the joy of uncovering a link as surprising as finding a fortune cookie message in a bag of rice. The captivating dance of numbers and legislative headcount has left us with a feeling of lighthearted bemusement, reminding us that even the most serious of statistical analyses can hold delightful surprises. Join us as we continue on this curious journey, where serious research meets scholarly silliness, and the unexpected becomes the norm.


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

Please make up a short conclusion of an academic research paper presenting the findings of the connection between Global Per Capita Rice Consumption and The number of legislators in Alaska. Make lots of jokes, goofy observations, and puns.

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

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
Ridiculously Rapid Rice Rampage: The Relationship Between Global Per Capita Rice Consumption and The number of legislators in Alaska

[[ABSTRACT]]
Our research project delves into the peculiar and utterly amusing phenomenon of the potential link between global per capita rice consumption and the number of legislators in the great state of Alaska. With a plethora of puns and a sprinkle of statistical analysis, we aim to shine a light on this unexpected connection. Using data from the Food and Agriculture Organization and the Bureau of Labor Statistics, our research team has uncovered a correlation coefficient of 0.8761119 and a p-value of less than 0.01 for the years 2003 to 2019. The results are as clear as two grains of rice in a sushi roll – there seems to be a strange but statistically significant relationship between consuming rice worldwide and the number of legislators in the Last Frontier. We invite readers to join us on this whimsical journey of discovery, where serious science meets tongue-in-cheek analysis to uncover unexpected correlations.

[[INTRDUCTION]]
Welcome, fellow academics and curious minds, to the wonderfully bizarre world of our research on the relationship between global per capita rice consumption and the number of legislators in Alaska. It all started with a rice-studded brainstorming session where we pondered the odd and unlikely connections in the vast landscape of data analysis. Little did we know that our quest for statistical enlightenment would lead us to the quirky correlation between rice consumption and legislative abundance in the land of the midnight sun.
As researchers, we often find ourselves knee-deep in data, searching for correlations that are as elusive as a single grain of rice dropped on a kitchen floor. However, in this particular endeavor, our journey unfolded like a perfectly cooked batch of fluffy basmati rice – surprisingly delightful and full of unexpected flavor.
Our fascination with this oddball puzzle was fueled by the sheer audacity of the idea. Who would have thought that the ancient grain of rice, beloved by billions worldwide, could be entangled in a statistical pas de deux with the governance of a state known for its breathtaking landscapes and moose sightings? It's like discovering that sushi can actually be a political act – talk about a roll call!
The sheer absurdity of the apparent connection piqued our research team's interest, prompting us to embark on a scholarly investigation that combines the seriousness of empirical analysis with the light-heartedness of a whimsical tale. Like intrepid explorers of the statistical world, we took on the challenge with a mix of curiosity and a generous dash of humor, ready to uncover the unexpected twists and turns that awaited us.
So, buckle up, dear readers, as we take you on a rollercoaster ride through the data jungle, where rice meets legislation in a surprising dance of digits and laws. Prepare to be amused, astonished, and, most importantly, enlightened, as we unveil the peculiar relationship between rice consumption and the number of legislators in the 49th state of the United States. It's a journey that promises to leave you with a smile on your face and, just maybe, a newfound appreciation for the quirks of statistical analysis.
Let the adventure begin!

[[RESULTS]]
The results of our research have left us both astonished and entertained by the remarkably strong relationship between global per capita rice consumption and the number of legislators in Alaska. We found a correlation coefficient of 0.8761119, an r-squared of 0.7675720, and a p-value of less than 0.01 for the time period spanning from 2003 to 2019. These numbers are as striking as a rice paddy against a clear blue sky, highlighting a connection that seems to defy conventional wisdom.
In Fig. 1, our scatterplot portrays a delightful dance of data points, twirling and swirling in a pattern that suggests a synchronized tango between rice consumption and legislative headcount. Just like a perfectly executed sushi roll, the plot reveals a harmonious relationship that is not easily dismissed. The figure stands as a testament to the unexpected correlations that lie beneath the surface of seemingly unrelated variables – a reminder that statistical analysis can often be as unpredictable as a game of musical chairs in the state legislature.
The statistical significance of this correlation is about as clear as a well-cooked bowl of rice – which is to say, crystal clear. The probability value of less than 0.01 speaks volumes about the strength of the relationship, leaving us with a sense of wonder at the curious connection between a staple food consumed by millions and the legislative landscape of Alaska.
In summary, our findings tell a tale of a statistical romance as enchanting as a moonlit night in a rice field. The dance of numbers and legislator counts has revealed an unexpected partnership that invites further contemplation and amusement, illustrating once more that the world of data analysis is filled with surprises, twists, and turns. Join us as we revel in the delight of this whimsical discovery and celebrate the joy of uncovering peculiar connections in the realm of statistical analysis.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In the realm of statistical analysis, few things are as delightful as stumbling upon a correlation that is as unexpected as finding a hidden grain of rice in a bowl of risotto. Our exploration of the connection between global per capita rice consumption and the number of legislators in the peculiarly wondrous state of Alaska has left us both amused and astonished. The statistically significant relationship we uncovered is as surprising as discovering a fortune cookie message that accurately predicts legislative headcount.

As we conclude this whimsical journey, we cannot help but marvel at the statistical tango that unfolds between rice consumption and the legislative landscape. It's as if the grains of rice themselves are whispering secrets to the lawmakers, influencing the governance of the Last Frontier in ways we never imagined. Who would have thought that a steaming bowl of rice could have such an impact on the legislative dance of Alaska?

Our findings underscore the importance of embracing the unexpected in the world of data analysis. Just like a sushi roll that defies convention, our research serves as a reminder that statistical revelations can be as delightful as a surprise ingredient in an already delicious dish.

In light of these peculiar and remarkably entertaining findings, we assert with confidence that no further research is needed in this area. The connection between global per capita rice consumption and the number of legislators in Alaska stands as a testament to the marvels of statistical analysis and the whimsical surprises that await those who dare to explore the quirky corridors of data. Let us savor this unexpected connection, just as we savor the delightful flavors of a bowl of perfectly cooked rice.


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 Ridiculously Rapid Rice Rampage: The Relationship Between Global Per Capita Rice Consumption and The number of legislators in Alaska. Respond only with the name of a fictional academic journal.

ChatGPT:

The International Journal of Gastronomic 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 Ridiculously Rapid Rice Rampage: The Relationship Between Global Per Capita Rice Consumption and The number of legislators in Alaska. Respond only with the name of a fictional organization.

ChatGPT:

The International Institute for Comical Crop Consumption 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 Ridiculously Rapid Rice Rampage: The Relationship Between Global Per Capita Rice Consumption and The number of legislators in Alaska with an abstract of Our research project delves into the peculiar and utterly amusing phenomenon of the potential link between global per capita rice consumption and the number of legislators in the great state of Alaska. With a plethora of puns and a sprinkle of statistical analysis, we aim to shine a light on this unexpected connection. Using data from the Food and Agriculture Organization and the Bureau of Labor Statistics, our research team has uncovered a correlation coefficient of 0.8761119 and a p-value of less than 0.01 for the years 2003 to 2019. The results are as clear as two grains of rice in a sushi roll – there seems to be a strange but statistically significant relationship between consuming rice worldwide and the number of legislators in the Last Frontier. We invite readers to join us on this whimsical journey of discovery, where serious science meets tongue-in-cheek analysis to uncover unexpected correlations.

ChatGPT:

global per capita rice consumption, legislators in Alaska, rice consumption statistics, food and agriculture organization, bureau of labor statistics, correlation between rice consumption and legislators, rice consumption trend, Alaska legislature, statistical analysis of rice consumption, global food consumption patterns

*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

Global Per Capita Rice Consumption
Source:
See what else correlates with Global Per Capita Rice Consumption

The number of legislators in Alaska
Detailed data title: BLS estimate of legislators in Alaska
Source: Bureau of Larbor Statistics
See what else correlates with The number of legislators in Alaska

Correlation r = 0.8761119 (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.7675720 (Coefficient of determination)
This means 76.8% of the change in the one variable (i.e., The number of legislators in Alaska) is predictable based on the change in the other (i.e., Global Per Capita Rice Consumption) over the 17 years from 2003 through 2019.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 4.02E-6. 0.0000040161611884632730000000
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.88 in 0.000402% of random cases. Said differently, if you correlated 248,994 random variables You don't actually need 248 thousand 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 16 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 16 because we have two variables measured over a period of 17 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.68, 0.95 ] 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.
20032004200520062007200820092010201120122013201420152016201720182019
Global Per Capita Rice Consumption (Kilograms per Year Statista)56.15656.156.156.156.25656.353.753.853.95453.953.653.753.753.9
The number of legislators in Alaska (Legislators)360450410450310370290230100170160150100110120180200




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([56.1,56,56.1,56.1,56.1,56.2,56,56.3,53.7,53.8,53.9,54,53.9,53.6,53.7,53.7,53.9,])
array_2 = np.array([360,450,410,450,310,370,290,230,100,170,160,150,100,110,120,180,200,])
array_1_name = "Global Per Capita Rice Consumption"
array_2_name = "The number of legislators in Alaska"

# 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?

I'm grateful for your review!


Correlation ID: 3526 · Black Variable ID: 484 · Red Variable ID: 4679
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0