about · email me · subscribe
Spurious correlation #4,904 · View random

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is Votes for Democratic Senators in Illinois and the second variable is Google searches for 'how to immigrate to norway'.  The chart goes from 2004 to 2020, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

It seems that as the Democratic votes for Senators in Illinois decreased, so did the desirability to navigate to Norway! It's like they say, as Illinois goes, so goes the nation -- and apparently, potentially to a Scandinavian destination as well! The political shift must have created a 'Nordic knock-on effect,' leading some to reconsider their international relocation plans. Who knew there was a direct link between Illinois politics and the allure of fjords and Northern lights? It's a real 'Senatorial Snowball Effect' on transatlantic travel intentions!

Model: dalle-3
Prompt: [ Cyber folk ] An image showcasing a futuristic virtual environment where an intricate network of glowing neon lines intertwine and connect to form a line graph depicting the decrease in Democrat votes for Senators in Illinois. Adjacent to the graph, a series of digital charts display the declining trend of Google searches for "how to immigrate to Norway." The interconnectedness of the two variables is represented by pulsating arrows flowing from the graphs. The caption, "As Illinois votes go down, interest in Norway immigration follows suit," is subtly integrated into the cyber-folk setting, adding depth to the narrative. 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: Democrat votes for Senators in Illinois and Google searches for 'how to immigrate to norway'. 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: Psychedelic Cute 2D animation Woodblock painting inspired by bauhaus Cyber folk
ChatGPT: Cyber folk

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 Democrat votes for Senators in Illinois and Google searches for 'how to immigrate to norway', in the following situation: It seems that as the Democratic votes for Senators in Illinois decreased, so did the desirability to navigate to Norway! It's like they say, as Illinois goes, so goes the nation -- and apparently, potentially to a Scandinavian destination as well! The political shift must have created a 'Nordic knock-on effect,' leading some to reconsider their international relocation plans. Who knew there was a direct link between Illinois politics and the allure of fjords and Northern lights? It's a real 'Senatorial Snowball Effect' on transatlantic travel intentions!. Keep the description simple.
ChatGPT: In a simple visual scene, we see a line graph showing the decrease in Democrat votes for Senators in Illinois, while next to it, there's a chart displaying a decline in Google searches for "how to immigrate to Norway." The graphs are side by side, with arrows connecting them, symbolizing the interconnectedness of the two variables. A caption underneath reads, "As Illinois votes go down, interest in Norway immigration follows suit."

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: [ Cyber folk ] and depicting this scene: In a simple visual scene, we see a line graph showing the decrease in Democrat votes for Senators in Illinois, while next to it, there's a chart displaying a decline in Google searches for "how to immigrate to Norway." The graphs are side by side, with arrows connecting them, symbolizing the interconnectedness of the two variables. A caption underneath reads, "As Illinois votes go down, interest in Norway immigration follows suit." Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: [ Cyber folk ] An image showcasing a futuristic virtual environment where an intricate network of glowing neon lines intertwine and connect to form a line graph depicting the decrease in Democrat votes for Senators in Illinois. Adjacent to the graph, a series of digital charts display the declining trend of Google searches for "how to immigrate to Norway." The interconnectedness of the two variables is represented by pulsating arrows flowing from the graphs. The caption, "As Illinois votes go down, interest in Norway immigration follows suit," is subtly integrated into the cyber-folk setting, adding depth to the narrative.

*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 Democrat votes for Senators in Illinois caused how to immigrate to norway (Google searches for 'how to immigrate to norway') to decrease. Include one good pun.

AI academic paper

(Because p < 0.05)
The Left Leaps: Exploring the Link between Democratic Sentiments in Illinois and Curious Google Searches for Nordic Immigration

The Journal of Political Quirkology

Jan 2024

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




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

Please draft the title and abstract of an academic research paper presenting the findings of the connection between Democrat votes for Senators in Illinois and Google searches for 'how to immigrate to norway'. Make lots of jokes, goofy observations, and puns.

Make the title seem clever.

Your research team used data from MIT Election Data and Science Lab, Harvard Dataverse and Google Trends to assess this nagging question. You found a correlation coefficient of 0.8155501 and p < 0.05 for 2004 to 2020.

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

[[TITLE]]
Lorem ipsum dolor sit

[[ABSTRACT]]
Lorem ipsum dolor sit



ChatGPT:
[[TITLE]]
The Left Leaps: Exploring the Link between Democratic Sentiments in Illinois and Curious Google Searches for Nordic Immigration

[[ABSTRACT]]
The integration of online behavior with political inclination yields a bevy of fascinating insights, quite similar to the captivating allure of a magic show. In this study, we navigate the quirky intersection of political preferences and digital curiosity by examining the relationship between Democratic votes for Senators in Illinois and Google searches for "how to immigrate to Norway." Channeling our inner nosy neighbors, we deftly employ data from MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends as our trusty crystal ball to assess this peculiar connection. Our findings, akin to a surprising punchline at a dinner party, reveal a striking correlation coefficient of 0.8155501 and a statistically significant p-value of less than 0.05 for the period spanning from 2004 to 2020. In essence, our investigation not only unravels the intriguing dance between political allegiances and whimsical dreams of Nordic migration but also underscores the delightful complexity of human behavior in the digital age.


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

Please make up the introduction section of an academic research paper presenting the findings of the connection between Democrat votes for Senators in Illinois and Google searches for 'how to immigrate to norway'. Make lots of jokes, goofy observations, and puns.

Here is the title and abstract of the paper:
[[TITLE]]
The Left Leaps: Exploring the Link between Democratic Sentiments in Illinois and Curious Google Searches for Nordic Immigration

[[ABSTRACT]]
The integration of online behavior with political inclination yields a bevy of fascinating insights, quite similar to the captivating allure of a magic show. In this study, we navigate the quirky intersection of political preferences and digital curiosity by examining the relationship between Democratic votes for Senators in Illinois and Google searches for "how to immigrate to Norway." Channeling our inner nosy neighbors, we deftly employ data from MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends as our trusty crystal ball to assess this peculiar connection. Our findings, akin to a surprising punchline at a dinner party, reveal a striking correlation coefficient of 0.8155501 and a statistically significant p-value of less than 0.05 for the period spanning from 2004 to 2020. In essence, our investigation not only unravels the intriguing dance between political allegiances and whimsical dreams of Nordic migration but also underscores the delightful complexity of human behavior in the digital age.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

Political sentiment and digital escapades – a match seemingly as odd as pineapple on pizza, yet as intriguing as a Sudoku puzzle. Our study delves into this curious nexus, pursuing the enigmatic link between Democratic votes for Senators in Illinois and the peculiar quest for information on immigrating to Norway. Like detectives on a whimsical case, we set out to decode the hidden patterns and connections that lie beneath the surface of online searches and political preferences.

Imagine a scene where politics and googling walk into a bar – an unlikely pair but one that may just ignite a captivating conversation. Or perhaps it's more like a game of chess where each move holds surprising significance and potential outcomes. Our endeavor threads these intriguing analogies, seeking to unravel the humorously tangled web of statistics, behavioral insights, and a touch of digital whimsy.

The Midwest's political landscape and the allure of Nordic migration – a pairing akin to brie and cranberry, tantalizing in its peculiar symmetry. Through our study, we aim to lend a probing gaze at this seemingly offbeat correlation, exploring how the political inclinations of Illinois residents intersect with the yearnings for distant fjords and aurora-filled skies. It's a bit like trying to rationalize the juxtaposition of a deep-dish pizza and a Nordic smorgasbord – unexpected, yet undeniably captivating.

As we delve into our analysis, we don our metaphorical detective hats – imagine Sherlock Holmes meets the digital era – to uncover whether there's more to this relationship than meets the eye. Is it a whimsical fling of digital curiosity, or a profound reflection of underlying sociopolitical currents? Our paper aims to unfurl the dramatic backdrop and potential punchlines that underlie this quirky interplay of data and human behavior. After all, who knew that the voting booth and visions of Nordic landscapes could share such a captivating waltz? Let the investigation commence!


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

Please make up a literature review section of an academic research paper presenting the findings of the connection between Democrat votes for Senators in Illinois and Google searches for 'how to immigrate to norway'. 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 cite some social media posts you read that seem to be related.

Here is the title and abstract of the paper:
[[TITLE]]
The Left Leaps: Exploring the Link between Democratic Sentiments in Illinois and Curious Google Searches for Nordic Immigration

[[ABSTRACT]]
The integration of online behavior with political inclination yields a bevy of fascinating insights, quite similar to the captivating allure of a magic show. In this study, we navigate the quirky intersection of political preferences and digital curiosity by examining the relationship between Democratic votes for Senators in Illinois and Google searches for "how to immigrate to Norway." Channeling our inner nosy neighbors, we deftly employ data from MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends as our trusty crystal ball to assess this peculiar connection. Our findings, akin to a surprising punchline at a dinner party, reveal a striking correlation coefficient of 0.8155501 and a statistically significant p-value of less than 0.05 for the period spanning from 2004 to 2020. In essence, our investigation not only unravels the intriguing dance between political allegiances and whimsical dreams of Nordic migration but also underscores the delightful complexity of human behavior in the digital age.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
Political sentiment and digital escapades – a match seemingly as odd as pineapple on pizza, yet as intriguing as a Sudoku puzzle. Our study delves into this curious nexus, pursuing the enigmatic link between Democratic votes for Senators in Illinois and the peculiar quest for information on immigrating to Norway. Like detectives on a whimsical case, we set out to decode the hidden patterns and connections that lie beneath the surface of online searches and political preferences.
Imagine a scene where politics and googling walk into a bar – an unlikely pair but one that may just ignite a captivating conversation. Or perhaps it's more like a game of chess where each move holds surprising significance and potential outcomes. Our endeavor threads these intriguing analogies, seeking to unravel the humorously tangled web of statistics, behavioral insights, and a touch of digital whimsy.
The Midwest's political landscape and the allure of Nordic migration – a pairing akin to brie and cranberry, tantalizing in its peculiar symmetry. Through our study, we aim to lend a probing gaze at this seemingly offbeat correlation, exploring how the political inclinations of Illinois residents intersect with the yearnings for distant fjords and aurora-filled skies. It's a bit like trying to rationalize the juxtaposition of a deep-dish pizza and a Nordic smorgasbord – unexpected, yet undeniably captivating.
As we delve into our analysis, we don our metaphorical detective hats – imagine Sherlock Holmes meets the digital era – to uncover whether there's more to this relationship than meets the eye. Is it a whimsical fling of digital curiosity, or a profound reflection of underlying sociopolitical currents? Our paper aims to unfurl the dramatic backdrop and potential punchlines that underlie this quirky interplay of data and human behavior. After all, who knew that the voting booth and visions of Nordic landscapes could share such a captivating waltz? Let the investigation commence!

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

The exploration of seemingly improbable connections between political preferences and online behavior has intrigued scholars and armchair analysts alike. Our investigation into the relationship between Democratic votes for Senators in Illinois and Google searches for "how to immigrate to Norway" adds a delightful dash of whimsy to this scholarly pursuit.

To set the stage, Smith et al. (2018) conducted a comprehensive analysis of voter behavior in Illinois, unraveling the complex tapestry of Democratic support in the state. Their meticulous study provides a robust foundation for understanding the political landscape in our focal region. Furthermore, Doe and Jones (2019) elucidated the intricacies of digital curiosity, delving into the intriguing dynamics of Google searches and the motivations that underpin them. Their work serves as a crucial compass as we navigate the terrain of online inquiries related to Nordic migration dreams.

Venturing beyond the academic realm, non-fiction works such as "The Nordic Way: Discover The World's Most Perfect Swedes" by Larson (2017) and "Aurora Borealis: The Allure of Northern Lights" by Berg (2016) capture the magnetic pull of Nordic countries and their appeal to the global imagination. While these books do not directly investigate the nexus of political affiliations and dreams of Nordic relocation, they offer a glimpse into the enchanting aura that surrounds these distant lands.

On a more fictional note, the classic "Finnish Fantasy: Tales of Trolls and Tranquility" by Jansson (1951) and "Norwegian Nights: A Saga of Sea Monsters and Social-Democrats" by Haug (2005) infuse folklore and mythical elements with a hint of political undercurrents, weaving a whimsical tapestry that resonates with our study's theme. While these literary works may stretch the boundaries of reality, they serve as a lighthearted nod to the fanciful dimensions of our research topic.

In the digital realm, social media posts have also offered glimpses into the fusion of political sentiments and yearnings for Nordic escapades. Anecdotal tales recounting how a fervent supporter of a Democratic candidate in Illinois suddenly starts sharing articles about Nordic culture and immigration policies indeed make for amusing yet thought-provoking anecdotes (Personal communication, @NordicDreamer, 2018).

As we continue our journey into the borderlands of Democratic votes and Nordic aspirations, our expedition is akin to stumbling upon a comical dance between serious politics and lighthearted daydreams. The convergence of these seemingly disparate realms evokes a bemusing image of a political rally segueing into an earnest discussion on Viking folklore - an unexpected yet captivating turn of events.


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

Please make up the methodology section of an academic research paper presenting the findings of the connection between Democrat votes for Senators in Illinois and Google searches for 'how to immigrate to norway'. Make lots of jokes, goofy observations, and puns.

Your research team collected data from all across the internet, but mostly just used information from MIT Election Data and Science Lab, Harvard Dataverse and Google Trends . You used data from 2004 to 2020

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

Here is the title, abstract, and introduction of the paper:
[[TITLE]]
The Left Leaps: Exploring the Link between Democratic Sentiments in Illinois and Curious Google Searches for Nordic Immigration

[[ABSTRACT]]
The integration of online behavior with political inclination yields a bevy of fascinating insights, quite similar to the captivating allure of a magic show. In this study, we navigate the quirky intersection of political preferences and digital curiosity by examining the relationship between Democratic votes for Senators in Illinois and Google searches for "how to immigrate to Norway." Channeling our inner nosy neighbors, we deftly employ data from MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends as our trusty crystal ball to assess this peculiar connection. Our findings, akin to a surprising punchline at a dinner party, reveal a striking correlation coefficient of 0.8155501 and a statistically significant p-value of less than 0.05 for the period spanning from 2004 to 2020. In essence, our investigation not only unravels the intriguing dance between political allegiances and whimsical dreams of Nordic migration but also underscores the delightful complexity of human behavior in the digital age.

[[INTRODUCTION]]
Political sentiment and digital escapades – a match seemingly as odd as pineapple on pizza, yet as intriguing as a Sudoku puzzle. Our study delves into this curious nexus, pursuing the enigmatic link between Democratic votes for Senators in Illinois and the peculiar quest for information on immigrating to Norway. Like detectives on a whimsical case, we set out to decode the hidden patterns and connections that lie beneath the surface of online searches and political preferences.
Imagine a scene where politics and googling walk into a bar – an unlikely pair but one that may just ignite a captivating conversation. Or perhaps it's more like a game of chess where each move holds surprising significance and potential outcomes. Our endeavor threads these intriguing analogies, seeking to unravel the humorously tangled web of statistics, behavioral insights, and a touch of digital whimsy.
The Midwest's political landscape and the allure of Nordic migration – a pairing akin to brie and cranberry, tantalizing in its peculiar symmetry. Through our study, we aim to lend a probing gaze at this seemingly offbeat correlation, exploring how the political inclinations of Illinois residents intersect with the yearnings for distant fjords and aurora-filled skies. It's a bit like trying to rationalize the juxtaposition of a deep-dish pizza and a Nordic smorgasbord – unexpected, yet undeniably captivating.
As we delve into our analysis, we don our metaphorical detective hats – imagine Sherlock Holmes meets the digital era – to uncover whether there's more to this relationship than meets the eye. Is it a whimsical fling of digital curiosity, or a profound reflection of underlying sociopolitical currents? Our paper aims to unfurl the dramatic backdrop and potential punchlines that underlie this quirky interplay of data and human behavior. After all, who knew that the voting booth and visions of Nordic landscapes could share such a captivating waltz? Let the investigation commence!

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To uncover the clandestine connection between Illinois Democratic votes and the quest for Norway's embrace, we embarked on a data odyssey that would make Odysseus himself envious. With a team assembled from diverse backgrounds — a political analyst, a data scientist, a web aficionado, and an enthusiastic Nordic enthusiast — we navigated the intriguing waters of online search behavior and political trends.

Our pursuit began with wrangling data from the MIT Election Data and Science Lab, where we harnessed the labyrinthine datasets like intrepid explorers traversing a digital Amazon. The political landscape of Illinois served as our enigmatic jungle, and we meticulously cataloged and dissected the Democratic votes for Senators, as if picking apart the layers of a perplexing political onion.

Next, we ventured into the wilderness of Harvard Dataverse, unearthing datasets like archeologists on a quest for the lost city of El Dorado. The arcane treasures we sought were the Google search trends, specifically those inquiring about the puzzling art of immigrating to Norway. With a keen eye for detail and a dash of whimsy, we dissected the temporal patterns of these curious quests for Nordic escapades.

The pièce de résistance of our escapade, the jewel in our digital crown, was the eminent Google Trends. We harnessed its wily algorithms and fickle metrics to unravel the ebb and flow of Illinoisans' inquisitive ponderings about Nordic migration. Much like skilled scouts tracking elusive prey, we pored over the data from 2004 to 2020, scrutinizing the peaks and valleys of these fervent searches with a mix of wonder and statistical rigor.

Having amassed this wealth of digital archaeology, we performed a veritable ballet of statistical analyses, akin to waltzing through a maze of numbers and probabilities. We employed correlation coefficients and regression models, wielding our statistical tools like sorcerers conjuring spells to reveal the invisible threads that connected Illinois Democratic votes to dreams of Nordic soil.

In the end, our investigation leaned on the sturdiest crutch of scientific inquiry — the venerable hypothesis testing. We prodded and probed, crafting our hypotheses into elegant propositions as if sculpting the marble of Michelangelo himself, and subjected them to the crucible of statistical scrutiny to discern the irrefutable truths lurking behind these seemingly disparate phenomena.


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

Please make up the results section of an academic research paper presenting the findings of the connection between Democrat votes for Senators in Illinois and Google searches for 'how to immigrate to norway'. Make lots of jokes, goofy observations, and puns.

Your research team collected data from all across the internet, but mostly just used information from MIT Election Data and Science Lab, Harvard Dataverse and Google Trends .

For the time period 2004 to 2020, you found a correlation 0.8155501, r-squared of 0.6651220, and p < 0.05.

One figure will be included. The figure (Fig. 1) is a scatterplot showing the strong correlation between the two variables. You don't need to specify where; I will add the figure.

Here is the title and abstract of the paper:
[[TITLE]]
The Left Leaps: Exploring the Link between Democratic Sentiments in Illinois and Curious Google Searches for Nordic Immigration

[[ABSTRACT]]
The integration of online behavior with political inclination yields a bevy of fascinating insights, quite similar to the captivating allure of a magic show. In this study, we navigate the quirky intersection of political preferences and digital curiosity by examining the relationship between Democratic votes for Senators in Illinois and Google searches for "how to immigrate to Norway." Channeling our inner nosy neighbors, we deftly employ data from MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends as our trusty crystal ball to assess this peculiar connection. Our findings, akin to a surprising punchline at a dinner party, reveal a striking correlation coefficient of 0.8155501 and a statistically significant p-value of less than 0.05 for the period spanning from 2004 to 2020. In essence, our investigation not only unravels the intriguing dance between political allegiances and whimsical dreams of Nordic migration but also underscores the delightful complexity of human behavior in the digital age.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
Political sentiment and digital escapades – a match seemingly as odd as pineapple on pizza, yet as intriguing as a Sudoku puzzle. Our study delves into this curious nexus, pursuing the enigmatic link between Democratic votes for Senators in Illinois and the peculiar quest for information on immigrating to Norway. Like detectives on a whimsical case, we set out to decode the hidden patterns and connections that lie beneath the surface of online searches and political preferences.
Imagine a scene where politics and googling walk into a bar – an unlikely pair but one that may just ignite a captivating conversation. Or perhaps it's more like a game of chess where each move holds surprising significance and potential outcomes. Our endeavor threads these intriguing analogies, seeking to unravel the humorously tangled web of statistics, behavioral insights, and a touch of digital whimsy.
The Midwest's political landscape and the allure of Nordic migration – a pairing akin to brie and cranberry, tantalizing in its peculiar symmetry. Through our study, we aim to lend a probing gaze at this seemingly offbeat correlation, exploring how the political inclinations of Illinois residents intersect with the yearnings for distant fjords and aurora-filled skies. It's a bit like trying to rationalize the juxtaposition of a deep-dish pizza and a Nordic smorgasbord – unexpected, yet undeniably captivating.
As we delve into our analysis, we don our metaphorical detective hats – imagine Sherlock Holmes meets the digital era – to uncover whether there's more to this relationship than meets the eye. Is it a whimsical fling of digital curiosity, or a profound reflection of underlying sociopolitical currents? Our paper aims to unfurl the dramatic backdrop and potential punchlines that underlie this quirky interplay of data and human behavior. After all, who knew that the voting booth and visions of Nordic landscapes could share such a captivating waltz? Let the investigation commence!

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

Our analysis unveiled a robust and striking correlation between Democratic votes for Senators in Illinois and Google searches for "how to immigrate to Norway" from 2004 to 2020. The Pearson correlation coefficient stood at an impressive 0.8155501, indicating a strong positive relationship between these seemingly disparate variables. This finding, akin to discovering a hidden treasure in the attic, suggests a noteworthy connection between political inclinations and the whimsical fascination with Nordic immigration aspirations.

Moreover, the coefficient of determination (r-squared) of 0.6651220 implies that approximately 66.51% of the variance in Google searches for "how to immigrate to Norway" can be explained by variations in Democratic votes for Senators in Illinois. This statistic, much like a captivating twist in a mystery novel, underscores the substantial influence of political leanings on the digital curiosity surrounding Nordic migration.

Intriguingly, the p-value of less than 0.05 provided definitive evidence of the statistical significance of the relationship. This result, akin to a magician flawlessly executing a spellbinding trick, further emphasizes the substantive nature of the observed correlation.

To visually capture the compelling association, the scatterplot in Figure 1 beautifully encapsulates the strong positive trend between Democratic votes for Senators in Illinois and Google searches for "how to immigrate to Norway." The tightly clustered data points, reminiscent of a harmonious ensemble, vividly illustrate the pronounced bond between these two seemingly incongruent domains.

In essence, our exploration of this unexpected link between political allegiance and digital yearnings not only reveals a substantial correlation but also paints a whimsically intriguing tableau of human behavior and its delightful penchant for amusing juxtapositions.


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

Please make up the discussion section of an academic research paper presenting the findings of the connection between Democrat votes for Senators in Illinois and Google searches for 'how to immigrate to norway'. 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]]
The Left Leaps: Exploring the Link between Democratic Sentiments in Illinois and Curious Google Searches for Nordic Immigration

[[ABSTRACT]]
The integration of online behavior with political inclination yields a bevy of fascinating insights, quite similar to the captivating allure of a magic show. In this study, we navigate the quirky intersection of political preferences and digital curiosity by examining the relationship between Democratic votes for Senators in Illinois and Google searches for "how to immigrate to Norway." Channeling our inner nosy neighbors, we deftly employ data from MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends as our trusty crystal ball to assess this peculiar connection. Our findings, akin to a surprising punchline at a dinner party, reveal a striking correlation coefficient of 0.8155501 and a statistically significant p-value of less than 0.05 for the period spanning from 2004 to 2020. In essence, our investigation not only unravels the intriguing dance between political allegiances and whimsical dreams of Nordic migration but also underscores the delightful complexity of human behavior in the digital age.

[[LITERATURE REVIEW]]
The exploration of seemingly improbable connections between political preferences and online behavior has intrigued scholars and armchair analysts alike. Our investigation into the relationship between Democratic votes for Senators in Illinois and Google searches for "how to immigrate to Norway" adds a delightful dash of whimsy to this scholarly pursuit.
To set the stage, Smith et al. (2018) conducted a comprehensive analysis of voter behavior in Illinois, unraveling the complex tapestry of Democratic support in the state. Their meticulous study provides a robust foundation for understanding the political landscape in our focal region. Furthermore, Doe and Jones (2019) elucidated the intricacies of digital curiosity, delving into the intriguing dynamics of Google searches and the motivations that underpin them. Their work serves as a crucial compass as we navigate the terrain of online inquiries related to Nordic migration dreams.
Venturing beyond the academic realm, non-fiction works such as "The Nordic Way: Discover The World's Most Perfect Swedes" by Larson (2017) and "Aurora Borealis: The Allure of Northern Lights" by Berg (2016) capture the magnetic pull of Nordic countries and their appeal to the global imagination. While these books do not directly investigate the nexus of political affiliations and dreams of Nordic relocation, they offer a glimpse into the enchanting aura that surrounds these distant lands.
On a more fictional note, the classic "Finnish Fantasy: Tales of Trolls and Tranquility" by Jansson (1951) and "Norwegian Nights: A Saga of Sea Monsters and Social-Democrats" by Haug (2005) infuse folklore and mythical elements with a hint of political undercurrents, weaving a whimsical tapestry that resonates with our study's theme. While these literary works may stretch the boundaries of reality, they serve as a lighthearted nod to the fanciful dimensions of our research topic.
In the digital realm, social media posts have also offered glimpses into the fusion of political sentiments and yearnings for Nordic escapades. Anecdotal tales recounting how a fervent supporter of a Democratic candidate in Illinois suddenly starts sharing articles about Nordic culture and immigration policies indeed make for amusing yet thought-provoking anecdotes (Personal communication, @NordicDreamer, 2018).
As we continue our journey into the borderlands of Democratic votes and Nordic aspirations, our expedition is akin to stumbling upon a comical dance between serious politics and lighthearted daydreams. The convergence of these seemingly disparate realms evokes a bemusing image of a political rally segueing into an earnest discussion on Viking folklore - an unexpected yet captivating turn of events.

[[RESULTS]]
Our analysis unveiled a robust and striking correlation between Democratic votes for Senators in Illinois and Google searches for "how to immigrate to Norway" from 2004 to 2020. The Pearson correlation coefficient stood at an impressive 0.8155501, indicating a strong positive relationship between these seemingly disparate variables. This finding, akin to discovering a hidden treasure in the attic, suggests a noteworthy connection between political inclinations and the whimsical fascination with Nordic immigration aspirations.
Moreover, the coefficient of determination (r-squared) of 0.6651220 implies that approximately 66.51% of the variance in Google searches for "how to immigrate to Norway" can be explained by variations in Democratic votes for Senators in Illinois. This statistic, much like a captivating twist in a mystery novel, underscores the substantial influence of political leanings on the digital curiosity surrounding Nordic migration.
Intriguingly, the p-value of less than 0.05 provided definitive evidence of the statistical significance of the relationship. This result, akin to a magician flawlessly executing a spellbinding trick, further emphasizes the substantive nature of the observed correlation.
To visually capture the compelling association, the scatterplot in Figure 1 beautifully encapsulates the strong positive trend between Democratic votes for Senators in Illinois and Google searches for "how to immigrate to Norway." The tightly clustered data points, reminiscent of a harmonious ensemble, vividly illustrate the pronounced bond between these two seemingly incongruent domains.
In essence, our exploration of this unexpected link between political allegiance and digital yearnings not only reveals a substantial correlation but also paints a whimsically intriguing tableau of human behavior and its delightful penchant for amusing juxtapositions.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The findings of our study have spun a captivating web of intrigue, unearthing a correlation that is as surprising as stumbling upon a unicorn in a bustling metropolis – the tantalizing link between Democratic votes for Senators in Illinois and Google searches for "how to immigrate to Norway." While this connection might initially seem as improbable as a penguin in the tropics, our results lend credence to the prior research that hinted at the enthralling dance between political inclinations and the allure of Nordic migration.

Harnessing the wisdom of Smith et al. (2018), who meticulously dissected the fabric of Democratic support in the Land of Lincoln, our study corroborates their findings by revealing a robust relationship between Democratic votes and the digital yearning for Nordic escapades. It's as if the echoes of political fervor in Illinois reverberate through the digital realm, whispering tales of far-off lands and fjord-filled fantasies.

Furthermore, the work of Doe and Jones (2019), which delved into the enigmatic motivations underlying Google searches, gains further credence through our investigation. The statistical significance of our results hammers home the point that curiosity about Nordic immigration is not merely a flight of fancy, but a palpable and measurable reflection of political sentiments.

In a delightful twist, the lighthearted forays into the fictional and non-fictional realms of Nordic tales and folklore, as hinted at by Larson (2017), Berg (2016), Jansson (1951), and Haug (2005), receive a nod of validation through our study. The whimsical allure of Nordic lands, it seems, tugs at the heartstrings of Democrats in Illinois, manifesting in their digital quests for information on emigration.

It appears that our results are much like a comical dance between serious politics and lighthearted daydreams, where unexpected yet enthralling turns of events captivate our scholarly musings. The data paints a whimsically intriguing tableau of human behavior, where the serious and the surreal coalesce in a ballet of statistical significance and messy global daydreams.


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

Please make up a short conclusion of an academic research paper presenting the findings of the connection between Democrat votes for Senators in Illinois and Google searches for 'how to immigrate to norway'. 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]]
The Left Leaps: Exploring the Link between Democratic Sentiments in Illinois and Curious Google Searches for Nordic Immigration

[[ABSTRACT]]
The integration of online behavior with political inclination yields a bevy of fascinating insights, quite similar to the captivating allure of a magic show. In this study, we navigate the quirky intersection of political preferences and digital curiosity by examining the relationship between Democratic votes for Senators in Illinois and Google searches for "how to immigrate to Norway." Channeling our inner nosy neighbors, we deftly employ data from MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends as our trusty crystal ball to assess this peculiar connection. Our findings, akin to a surprising punchline at a dinner party, reveal a striking correlation coefficient of 0.8155501 and a statistically significant p-value of less than 0.05 for the period spanning from 2004 to 2020. In essence, our investigation not only unravels the intriguing dance between political allegiances and whimsical dreams of Nordic migration but also underscores the delightful complexity of human behavior in the digital age.

[[INTRDUCTION]]
Political sentiment and digital escapades – a match seemingly as odd as pineapple on pizza, yet as intriguing as a Sudoku puzzle. Our study delves into this curious nexus, pursuing the enigmatic link between Democratic votes for Senators in Illinois and the peculiar quest for information on immigrating to Norway. Like detectives on a whimsical case, we set out to decode the hidden patterns and connections that lie beneath the surface of online searches and political preferences.
Imagine a scene where politics and googling walk into a bar – an unlikely pair but one that may just ignite a captivating conversation. Or perhaps it's more like a game of chess where each move holds surprising significance and potential outcomes. Our endeavor threads these intriguing analogies, seeking to unravel the humorously tangled web of statistics, behavioral insights, and a touch of digital whimsy.
The Midwest's political landscape and the allure of Nordic migration – a pairing akin to brie and cranberry, tantalizing in its peculiar symmetry. Through our study, we aim to lend a probing gaze at this seemingly offbeat correlation, exploring how the political inclinations of Illinois residents intersect with the yearnings for distant fjords and aurora-filled skies. It's a bit like trying to rationalize the juxtaposition of a deep-dish pizza and a Nordic smorgasbord – unexpected, yet undeniably captivating.
As we delve into our analysis, we don our metaphorical detective hats – imagine Sherlock Holmes meets the digital era – to uncover whether there's more to this relationship than meets the eye. Is it a whimsical fling of digital curiosity, or a profound reflection of underlying sociopolitical currents? Our paper aims to unfurl the dramatic backdrop and potential punchlines that underlie this quirky interplay of data and human behavior. After all, who knew that the voting booth and visions of Nordic landscapes could share such a captivating waltz? Let the investigation commence!

[[RESULTS]]
Our analysis unveiled a robust and striking correlation between Democratic votes for Senators in Illinois and Google searches for "how to immigrate to Norway" from 2004 to 2020. The Pearson correlation coefficient stood at an impressive 0.8155501, indicating a strong positive relationship between these seemingly disparate variables. This finding, akin to discovering a hidden treasure in the attic, suggests a noteworthy connection between political inclinations and the whimsical fascination with Nordic immigration aspirations.
Moreover, the coefficient of determination (r-squared) of 0.6651220 implies that approximately 66.51% of the variance in Google searches for "how to immigrate to Norway" can be explained by variations in Democratic votes for Senators in Illinois. This statistic, much like a captivating twist in a mystery novel, underscores the substantial influence of political leanings on the digital curiosity surrounding Nordic migration.
Intriguingly, the p-value of less than 0.05 provided definitive evidence of the statistical significance of the relationship. This result, akin to a magician flawlessly executing a spellbinding trick, further emphasizes the substantive nature of the observed correlation.
To visually capture the compelling association, the scatterplot in Figure 1 beautifully encapsulates the strong positive trend between Democratic votes for Senators in Illinois and Google searches for "how to immigrate to Norway." The tightly clustered data points, reminiscent of a harmonious ensemble, vividly illustrate the pronounced bond between these two seemingly incongruent domains.
In essence, our exploration of this unexpected link between political allegiance and digital yearnings not only reveals a substantial correlation but also paints a whimsically intriguing tableau of human behavior and its delightful penchant for amusing juxtapositions.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

As we wrap up this whimsical jamboree of political pondering and digital daydreams, it is clear that the connection between Democratic votes for Senators in Illinois and Google searches for "how to immigrate to Norway" is as compelling as a stand-up comedian with a knack for unexpected punchlines.

Our findings illuminate the delightful complexity of human behavior in the digital age and underscore the quirky ways in which political inclinations can intertwine with even the most whimsical of aspirations. It's like witnessing a fusion of salsa and Scandinavian folk dance – unexpected, yet undeniably fascinating.

The robust correlation coefficient and statistically significant p-value have unfolded a captivating narrative, akin to a riveting plot twist in a telenovela. As the scatterplot in Figure 1 visually encapsulates the bond between these seemingly incongruent domains, one cannot help but marvel at the curious dance between political allegiances and dreams of Nordic escapades.

In closing, we assert with confidence that further research in this area is as unnecessary as a second serving of lutefisk. The imprints of our investigation resound with the echoes of a well-delivered punchline – clear, impactful, and delightfully unexpected.


Model: gpt-3.5-turbo-1106
System prompt: You provide fictional names of academic journals. You say nothing else, and you do not chat with the user.
User prompt: Please provide the name of a funny but plausible sounding research, scientific, or academic journal that would publish a paper entited The Left Leaps: Exploring the Link between Democratic Sentiments in Illinois and Curious Google Searches for Nordic Immigration. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Political Quirkology


Model: gpt-3.5-turbo-1106
System prompt: You provide fictional names of nonprofit research organizations and associations. You say nothing else, and you do not chat with the user.
User prompt: Please provide the name of a funny but plausible sounding nonprofit, academic, or scientific association or organization that would sponsor research that resulted in a paper entited The Left Leaps: Exploring the Link between Democratic Sentiments in Illinois and Curious Google Searches for Nordic Immigration. Respond only with the name of a fictional organization.

ChatGPT:

The Institute for Midwestern Studies and Internet Behavior


Model: gpt-3.5-turbo-1106
System prompt: You provide potential search keywords separated by commas. You say nothing else, and you do not chat with the user.
User prompt: Please provide potential search keywords for a paper titled The Left Leaps: Exploring the Link between Democratic Sentiments in Illinois and Curious Google Searches for Nordic Immigration with an abstract of The integration of online behavior with political inclination yields a bevy of fascinating insights, quite similar to the captivating allure of a magic show. In this study, we navigate the quirky intersection of political preferences and digital curiosity by examining the relationship between Democratic votes for Senators in Illinois and Google searches for "how to immigrate to Norway." Channeling our inner nosy neighbors, we deftly employ data from MIT Election Data and Science Lab, Harvard Dataverse, and Google Trends as our trusty crystal ball to assess this peculiar connection. Our findings, akin to a surprising punchline at a dinner party, reveal a striking correlation coefficient of 0.8155501 and a statistically significant p-value of less than 0.05 for the period spanning from 2004 to 2020. In essence, our investigation not only unravels the intriguing dance between political allegiances and whimsical dreams of Nordic migration but also underscores the delightful complexity of human behavior in the digital age.

ChatGPT:

Illinois Democratic votes, Nordic immigration, Google searches, political inclination, online behavior, digital curiosity, correlation coefficient, Google Trends, MIT Election Data and Science Lab, Harvard Dataverse, human behavior

*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

Votes for Democratic Senators in Illinois
Detailed data title: Percentage of votes cast for Federal Democrat Senate candidates in Illinois
Source: MIT Election Data and Science Lab, Harvard Dataverse
See what else correlates with Votes for Democratic Senators in Illinois

Google searches for 'how to immigrate to norway'
Detailed data title: Relative volume of Google searches for 'how to immigrate to norway' (Worldwide, without quotes)
Source: Google Trends
Additional Info: Relative search volume (not absolute numbers)

See what else correlates with Google searches for 'how to immigrate to norway'

Correlation r = 0.8155501 (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.6651220 (Coefficient of determination)
This means 66.5% of the change in the one variable (i.e., Google searches for 'how to immigrate to norway') is predictable based on the change in the other (i.e., Votes for Democratic Senators in Illinois) over the 6 years from 2004 through 2020.

p < 0.05, which statistically significant(Null hypothesis significance test)
The p-value is 0.048. 0.0478949930037174600000000000
The p-value is a measure of how probable it is that we would randomly find a result this extreme. More specifically the p-value is a measure of how probable it is that we would randomly find a result this extreme if we had only tested one pair of variables one time.

But I am a p-villain. I absolutely did not test only one pair of variables one time. I correlated hundreds of millions of pairs of variables. I threw boatloads of data into an industrial-sized blender to find this correlation.

Who is going to stop me? p-value reporting doesn't require me to report how many calculations I had to go through in order to find a low p-value!
On average, you will find a correaltion as strong as 0.82 in 4.8% of random cases. Said differently, if you correlated 21 random variables Which I absolutely did.
with the same 5 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 5 because we have two variables measured over a period of 6 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.01, 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.
200420082010201420162020
Votes for Democratic Senators in Illinois (Percentage of votes)69.968767.84146.416353.548754.861754.9336
Google searches for 'how to immigrate to norway' (Rel. search volume)15.66677.416672.333336.083336.758.41667




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. Very low n: There are not many data points included in this analysis. Even if the p-value is high, we should be suspicious of using so few datapoints in a correlation.
  5. 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([69.9687,67.841,46.4163,53.5487,54.8617,54.9336,])
array_2 = np.array([15.6667,7.41667,2.33333,6.08333,6.75,8.41667,])
array_1_name = "Votes for Democratic Senators in Illinois"
array_2_name = "Google searches for 'how to immigrate to norway'"

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

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



Reuseable content

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

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

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

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

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

Download images for these variables:


View another random correlation

How fun was this correlation?

Your correlation inspection deserves a standing ovation!


Correlation ID: 4904 · Black Variable ID: 26378 · Red Variable ID: 1351
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0