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

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is Robberies in Nebraska and the second variable is Cigarette Smoking Rate for US adults.  The chart goes from 2001 to 2021, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

As the number of robberies in Nebraska decreased, there was a corresponding decrease in the demand for stolen cigarettes on the black market. This led to a temporary shortage of cheap cigarettes available to US adults, prompting many to either cut back or quit smoking altogether. As the saying goes, you can't steal a healthy set of lungs!

Model: dalle-3
Prompt: Generate an image of a serene street in Nebraska, with rows of quaint houses. People are sitting on their porches, basking in the tranquility. The street is empty of any signs of crime, and a subtle sense of security pervades the air. In the background, a group of friends share hearty laughter and engaging conversation, their carefree demeanor reflecting the reduced smoking rate in the area. Let the colors be warm and inviting, evoking a sense of comfort and community. 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: Robberies in Nebraska and Cigarette Smoking Rate for US adults. 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: Steampunk Data cyber art Charcoal a meme A comic-book-style illustration with muted colors and a dotted halftone pattern from the 1960s
ChatGPT: Data cyber art

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 Robberies in Nebraska and Cigarette Smoking Rate for US adults, in the following situation: Because with fewer robberies in Nebraska, there were fewer desperate hotheads turning to cigarette theft, leading to a decrease in the national smoking rate as a result of reduced availability.. Keep the description simple.
ChatGPT: A peaceful street in Nebraska with a noticeable decrease in theft and crime, where people are sitting outside their homes, enjoying the calm atmosphere. In the background, a group of friends laughing and conversing without a care in the world, with no cigarettes in sight, symbolizing the reduction in the smoking rate.

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: [ Data cyber art ] and depicting this scene: A peaceful street in Nebraska with a noticeable decrease in theft and crime, where people are sitting outside their homes, enjoying the calm atmosphere. In the background, a group of friends laughing and conversing without a care in the world, with no cigarettes in sight, symbolizing the reduction in the smoking rate. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Generate an image of a serene street in Nebraska, with rows of quaint houses. People are sitting on their porches, basking in the tranquility. The street is empty of any signs of crime, and a subtle sense of security pervades the air. In the background, a group of friends share hearty laughter and engaging conversation, their carefree demeanor reflecting the reduced smoking rate in the area. Let the colors be warm and inviting, evoking a sense of comfort and community.

*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 Robberies in Nebraska caused Cigarette Smoking Rate for US adults to decrease.\Make it sound serious until the end.

AI academic paper

(Because p < 0.01)
The Great Nebraska Heist: Uncovering the Correlation Between Robberies and Smoking Rates in the U.S.

The Journal of Criminological Epidemiology

Jan 2024

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




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

Please draft the title and abstract of an academic research paper presenting the findings of the connection between Robberies in Nebraska and Cigarette Smoking Rate for US adults. Make lots of jokes, goofy observations, and puns.

Make the title seem clever.

Your research team used data from FBI Criminal Justice Information Services and CDC to assess this nagging question. You found a correlation coefficient of 0.9127989 and p < 0.01 for 2001 to 2021.

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

[[TITLE]]
Lorem ipsum dolor sit

[[ABSTRACT]]
Lorem ipsum dolor sit



ChatGPT:
[[TITLE]]
The Great Nebraska Heist: Uncovering the Correlation Between Robberies and Smoking Rates in the U.S.

[[ABSTRACT]]
In this research paper, we delve into the unusual world of crime and smoking to investigate the connection between the frequency of robberies in Nebraska and the cigarette smoking rate among U.S. adults. Utilizing data from the FBI Criminal Justice Information Services and the CDC, our team explored this unlikely relationship, aiming to shed light on the intersecting realms of criminal activity and public health.

Our study spanned a robust 20-year period from 2001 to 2021, a timeframe peppered with both criminal antics and their potential stress-relieving consequences. Through rigorous statistical analyses, we unearthed a correlation coefficient of 0.9127989 and a p-value of less than 0.01, providing compelling evidence for a significant association between these seemingly disparate phenomena.

While we may not have apprehended the smoking gun in this investigation, our findings underscore the need for further exploration into the intricate web of factors influencing crime and health behaviors. This research not only showcases the bizarre yet intriguing dynamics that can emerge from data analysis, but also highlights the importance of considering unorthodox correlations in understanding societal trends. We hope that our work piques the interest of fellow scholars and prompts future studies to smoke out the hidden connections between crime and public health.


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

Please make up the introduction section of an academic research paper presenting the findings of the connection between Robberies in Nebraska and Cigarette Smoking Rate for US adults. Make lots of jokes, goofy observations, and puns.

Here is the title and abstract of the paper:
[[TITLE]]
The Great Nebraska Heist: Uncovering the Correlation Between Robberies and Smoking Rates in the U.S.

[[ABSTRACT]]
In this research paper, we delve into the unusual world of crime and smoking to investigate the connection between the frequency of robberies in Nebraska and the cigarette smoking rate among U.S. adults. Utilizing data from the FBI Criminal Justice Information Services and the CDC, our team explored this unlikely relationship, aiming to shed light on the intersecting realms of criminal activity and public health.

Our study spanned a robust 20-year period from 2001 to 2021, a timeframe peppered with both criminal antics and their potential stress-relieving consequences. Through rigorous statistical analyses, we unearthed a correlation coefficient of 0.9127989 and a p-value of less than 0.01, providing compelling evidence for a significant association between these seemingly disparate phenomena.

While we may not have apprehended the smoking gun in this investigation, our findings underscore the need for further exploration into the intricate web of factors influencing crime and health behaviors. This research not only showcases the bizarre yet intriguing dynamics that can emerge from data analysis, but also highlights the importance of considering unorthodox correlations in understanding societal trends. We hope that our work piques the interest of fellow scholars and prompts future studies to smoke out the hidden connections between crime and public health.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
INTRODUCTION

In the realm of unexpected correlations, the link between crime and public health may not be the first connection to spark the imagination. Yet, as we embark on this unconventional investigation, we find ourselves immersed in the entangled web of robberies and smoking habits. The Great Nebraska Heist represents a peculiar entry point into the intersection of criminal escapades and tobacco-related indulgences, bringing forth both intrigue and bewilderment.

As we embark on this academic escapade, it is imperative to acknowledge the multilayered nature of societal phenomena. While the idea of robbers and smokers coexisting in a delicate dance of statistical significance may seem far-fetched, one cannot simply dismiss the potential correlations that may arise from the depths of data analysis. After all, correlations have a knack for lurking in unexpected corners, much like that elusive sock that mysteriously disappears in the laundry.

Our expedition into the realm of criminal mischief and cigarette consumption is not merely an exercise in whimsy; rather, it is fueled by a fervent curiosity to uncover the underlying patterns driving human behavior. Just as a detective meticulously scours a crime scene for clues, we too have combed through the data, aiming to unveil the peculiar relationships that emerge when one juxtaposes felonious activities with public health habits.

As we venture forth, armed with statistical tools and a penchant for the unconventional, it is our hope that this scholarly endeavor not only unearths intriguing findings but also injects a dash of levity into the often somber world of academic inquiry. So, pack your investigative spirit and prepare to wade through the quagmire of robberies and smoking rates, for the journey ahead promises both scholarly insights and a touch of whimsy. Let the odyssey commence!


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

Please make up a literature review section of an academic research paper presenting the findings of the connection between Robberies in Nebraska and Cigarette Smoking Rate for US adults. 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 Great Nebraska Heist: Uncovering the Correlation Between Robberies and Smoking Rates in the U.S.

[[ABSTRACT]]
In this research paper, we delve into the unusual world of crime and smoking to investigate the connection between the frequency of robberies in Nebraska and the cigarette smoking rate among U.S. adults. Utilizing data from the FBI Criminal Justice Information Services and the CDC, our team explored this unlikely relationship, aiming to shed light on the intersecting realms of criminal activity and public health.

Our study spanned a robust 20-year period from 2001 to 2021, a timeframe peppered with both criminal antics and their potential stress-relieving consequences. Through rigorous statistical analyses, we unearthed a correlation coefficient of 0.9127989 and a p-value of less than 0.01, providing compelling evidence for a significant association between these seemingly disparate phenomena.

While we may not have apprehended the smoking gun in this investigation, our findings underscore the need for further exploration into the intricate web of factors influencing crime and health behaviors. This research not only showcases the bizarre yet intriguing dynamics that can emerge from data analysis, but also highlights the importance of considering unorthodox correlations in understanding societal trends. We hope that our work piques the interest of fellow scholars and prompts future studies to smoke out the hidden connections between crime and public health.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
INTRODUCTION
In the realm of unexpected correlations, the link between crime and public health may not be the first connection to spark the imagination. Yet, as we embark on this unconventional investigation, we find ourselves immersed in the entangled web of robberies and smoking habits. The Great Nebraska Heist represents a peculiar entry point into the intersection of criminal escapades and tobacco-related indulgences, bringing forth both intrigue and bewilderment.
As we embark on this academic escapade, it is imperative to acknowledge the multilayered nature of societal phenomena. While the idea of robbers and smokers coexisting in a delicate dance of statistical significance may seem far-fetched, one cannot simply dismiss the potential correlations that may arise from the depths of data analysis. After all, correlations have a knack for lurking in unexpected corners, much like that elusive sock that mysteriously disappears in the laundry.
Our expedition into the realm of criminal mischief and cigarette consumption is not merely an exercise in whimsy; rather, it is fueled by a fervent curiosity to uncover the underlying patterns driving human behavior. Just as a detective meticulously scours a crime scene for clues, we too have combed through the data, aiming to unveil the peculiar relationships that emerge when one juxtaposes felonious activities with public health habits.
As we venture forth, armed with statistical tools and a penchant for the unconventional, it is our hope that this scholarly endeavor not only unearths intriguing findings but also injects a dash of levity into the often somber world of academic inquiry. So, pack your investigative spirit and prepare to wade through the quagmire of robberies and smoking rates, for the journey ahead promises both scholarly insights and a touch of whimsy. Let the odyssey commence!

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

In "Smith et al.," the authors find that the frequency of robberies in Nebraska has been a subject of interest in the field of criminology, with discussions centering on factors such as socioeconomic conditions, law enforcement strategies, and community dynamics. Meanwhile, "Doe and Jones" delve into the intricate landscape of public health, examining the prevalence of cigarette smoking among U.S. adults and the myriad factors that influence tobacco use.

Moving beyond the academic realm, "The Art of the Heist" by Myles J. Conor offers a thrilling non-fiction account of audacious robberies, providing captivating narratives that may fuel one's imagination about the motivations behind criminal activities. On the other hand, works such as "Up in Smoke" by Jane Marlboro and "The Great Cigarette Caper" by Philip Morley present fictionalized depictions of smoking-related escapades, demonstrating the enduring allure of vice-laden tales.

In a deviation from traditional scholarly sources, the omnipresent forces of social media have also weighed in on this enigmatic correlation. Tweets such as "Robbery at the corner store, time for a stress-relieving smoke" and "Caught red-handed? A cigarette break sounds like a fitting denouement" offer glimpses into the potential interplay between criminal incidents and smoking behaviors.

As we navigate this academic landscape enshrouded in intrigue, one cannot help but marvel at the peculiar juxtaposition of these seemingly incongruous realms. From erudite research to fictional musings, the eternally boundless realms of crime and smoking continue to beckon the curious and the scholarly alike. Let us embark on this whimsical journey, for who knows what amusing findings may await in the shadows of peculiarity!


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

Please make up the methodology section of an academic research paper presenting the findings of the connection between Robberies in Nebraska and Cigarette Smoking Rate for US adults. Make lots of jokes, goofy observations, and puns.

Your research team collected data from all across the internet, but mostly just used information from FBI Criminal Justice Information Services and CDC . You used data from 2001 to 2021

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

Here is the title, abstract, and introduction of the paper:
[[TITLE]]
The Great Nebraska Heist: Uncovering the Correlation Between Robberies and Smoking Rates in the U.S.

[[ABSTRACT]]
In this research paper, we delve into the unusual world of crime and smoking to investigate the connection between the frequency of robberies in Nebraska and the cigarette smoking rate among U.S. adults. Utilizing data from the FBI Criminal Justice Information Services and the CDC, our team explored this unlikely relationship, aiming to shed light on the intersecting realms of criminal activity and public health.

Our study spanned a robust 20-year period from 2001 to 2021, a timeframe peppered with both criminal antics and their potential stress-relieving consequences. Through rigorous statistical analyses, we unearthed a correlation coefficient of 0.9127989 and a p-value of less than 0.01, providing compelling evidence for a significant association between these seemingly disparate phenomena.

While we may not have apprehended the smoking gun in this investigation, our findings underscore the need for further exploration into the intricate web of factors influencing crime and health behaviors. This research not only showcases the bizarre yet intriguing dynamics that can emerge from data analysis, but also highlights the importance of considering unorthodox correlations in understanding societal trends. We hope that our work piques the interest of fellow scholars and prompts future studies to smoke out the hidden connections between crime and public health.

[[INTRODUCTION]]
INTRODUCTION
In the realm of unexpected correlations, the link between crime and public health may not be the first connection to spark the imagination. Yet, as we embark on this unconventional investigation, we find ourselves immersed in the entangled web of robberies and smoking habits. The Great Nebraska Heist represents a peculiar entry point into the intersection of criminal escapades and tobacco-related indulgences, bringing forth both intrigue and bewilderment.
As we embark on this academic escapade, it is imperative to acknowledge the multilayered nature of societal phenomena. While the idea of robbers and smokers coexisting in a delicate dance of statistical significance may seem far-fetched, one cannot simply dismiss the potential correlations that may arise from the depths of data analysis. After all, correlations have a knack for lurking in unexpected corners, much like that elusive sock that mysteriously disappears in the laundry.
Our expedition into the realm of criminal mischief and cigarette consumption is not merely an exercise in whimsy; rather, it is fueled by a fervent curiosity to uncover the underlying patterns driving human behavior. Just as a detective meticulously scours a crime scene for clues, we too have combed through the data, aiming to unveil the peculiar relationships that emerge when one juxtaposes felonious activities with public health habits.
As we venture forth, armed with statistical tools and a penchant for the unconventional, it is our hope that this scholarly endeavor not only unearths intriguing findings but also injects a dash of levity into the often somber world of academic inquiry. So, pack your investigative spirit and prepare to wade through the quagmire of robberies and smoking rates, for the journey ahead promises both scholarly insights and a touch of whimsy. Let the odyssey commence!

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To embark on this whimsical yet scholarly odyssey into the realms of crime and smoking, we employed a methodology that would make Sherlock Holmes proud. Our data-gathering efforts resembled an elaborate heist of information, involving meticulous sleuthing through databases and archives. While we didn't don disguises or engage in cloak-and-dagger tactics, our approach was no less captivating.

Data Collection:
We amassed a treasure trove of data from the FBI Criminal Justice Information Services and the Centers for Disease Control and Prevention (CDC). These sources provided us with a wealth of information, allowing us to explore the frequency of robberies in Nebraska and the prevalence of cigarette smoking among U.S. adults. It was like sifting through clues at a crime scene, only instead of fingerprints and footprints, we were poring over statistics and trends.

Analytical Techniques:
To unravel the mystery of the correlation between robberies and smoking rates, we harnessed the powers of statistical analysis. Armed with our trusty software and a steely resolve to uncover connections, we delved into the realm of correlation coefficients and p-values. Our calculations were as precise as Sherlock's deductions, and we navigated the labyrinth of data with the dexterity of a seasoned investigator.

Temporal Scope:
Our investigation spanned a time horizon from 2001 to 2021, capturing the ebb and flow of criminal activity and tobacco consumption over two eventful decades. This expansive timeframe allowed us to capture the nuances of societal shifts and behavioral patterns, akin to studying the evolution of a cunning adversary's modus operandi.

Unraveling the Correlation:
With the data in our clutches, we applied rigorous statistical tests to unveil the intricate threads linking robberies and smoking rates. While we didn't dust for fingerprints or conduct interrogations, we meticulously examined the data for signs of correlation, uncovering a surprising association in the process.

While our research methods may not involve classic detective work, they captured the spirit of unraveling enigmatic connections in a lighthearted yet scholarly manner. With our data in hand and our analytical tools at the ready, we set out to shed light on the captivating relationship between criminal capers and tobacco indulgences.


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

Please make up the results section of an academic research paper presenting the findings of the connection between Robberies in Nebraska and Cigarette Smoking Rate for US adults. Make lots of jokes, goofy observations, and puns.

Your research team collected data from all across the internet, but mostly just used information from FBI Criminal Justice Information Services and CDC .

For the time period 2001 to 2021, you found a correlation 0.9127989, r-squared of 0.8332019, and p < 0.01.

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

Here is the title and abstract of the paper:
[[TITLE]]
The Great Nebraska Heist: Uncovering the Correlation Between Robberies and Smoking Rates in the U.S.

[[ABSTRACT]]
In this research paper, we delve into the unusual world of crime and smoking to investigate the connection between the frequency of robberies in Nebraska and the cigarette smoking rate among U.S. adults. Utilizing data from the FBI Criminal Justice Information Services and the CDC, our team explored this unlikely relationship, aiming to shed light on the intersecting realms of criminal activity and public health.

Our study spanned a robust 20-year period from 2001 to 2021, a timeframe peppered with both criminal antics and their potential stress-relieving consequences. Through rigorous statistical analyses, we unearthed a correlation coefficient of 0.9127989 and a p-value of less than 0.01, providing compelling evidence for a significant association between these seemingly disparate phenomena.

While we may not have apprehended the smoking gun in this investigation, our findings underscore the need for further exploration into the intricate web of factors influencing crime and health behaviors. This research not only showcases the bizarre yet intriguing dynamics that can emerge from data analysis, but also highlights the importance of considering unorthodox correlations in understanding societal trends. We hope that our work piques the interest of fellow scholars and prompts future studies to smoke out the hidden connections between crime and public health.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
INTRODUCTION
In the realm of unexpected correlations, the link between crime and public health may not be the first connection to spark the imagination. Yet, as we embark on this unconventional investigation, we find ourselves immersed in the entangled web of robberies and smoking habits. The Great Nebraska Heist represents a peculiar entry point into the intersection of criminal escapades and tobacco-related indulgences, bringing forth both intrigue and bewilderment.
As we embark on this academic escapade, it is imperative to acknowledge the multilayered nature of societal phenomena. While the idea of robbers and smokers coexisting in a delicate dance of statistical significance may seem far-fetched, one cannot simply dismiss the potential correlations that may arise from the depths of data analysis. After all, correlations have a knack for lurking in unexpected corners, much like that elusive sock that mysteriously disappears in the laundry.
Our expedition into the realm of criminal mischief and cigarette consumption is not merely an exercise in whimsy; rather, it is fueled by a fervent curiosity to uncover the underlying patterns driving human behavior. Just as a detective meticulously scours a crime scene for clues, we too have combed through the data, aiming to unveil the peculiar relationships that emerge when one juxtaposes felonious activities with public health habits.
As we venture forth, armed with statistical tools and a penchant for the unconventional, it is our hope that this scholarly endeavor not only unearths intriguing findings but also injects a dash of levity into the often somber world of academic inquiry. So, pack your investigative spirit and prepare to wade through the quagmire of robberies and smoking rates, for the journey ahead promises both scholarly insights and a touch of whimsy. Let the odyssey commence!

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

Our analysis of the connection between robberies in Nebraska and the cigarette smoking rate among U.S. adults for the period 2001 to 2021 yielded some eyebrow-raising results. We harnessed the power of statistical tools and data sleuthing to uncover a correlation coefficient of 0.9127989, an r-squared value of 0.8332019, and a p-value of less than 0.01. In other words, there's a statistically significant link between the two variables which left our research team scratching our heads in amazement.

To visually capture this unexpected correlation, we present Fig. 1, a scatterplot brimming with data points that tell the story of robberies and smoking rates holding hands in a statistical embrace. It's a match made in the depths of data analysis, a quirky tango between crime and tobacco that defies conventional wisdom and leaves researchers pondering the mysteries of human behavior.

In this game of statistical hide and seek, we didn't expect to stumble upon such a robust relationship between these seemingly unrelated phenomena. It's as if the universe decided to play a cosmic prank on us, revealing a connection that elicits both amusement and bewilderment.

The very thought of robbers and smokers influencing each other's existence may invoke visions of a curious buddy-cop comedy, where two unlikely companions navigate the streets of statistical significance. Perhaps we've stumbled upon the plot for the next blockbuster summer movie – "The Smoky Bandits" or "Ocean's Eleven: Packs a Day Edition". Hollywood, take note.

While our findings open the door to a realm of unexpected connections, it's essential to approach them with a balance of curiosity and caution. As we navigate this uncharted territory of crime and public health, we're reminded of the adage, "correlation does not imply causation". So, we resist the urge to jump to hasty conclusions and instead encourage further exploration to unravel the complexities of this curious correlation.

In conclusion, our research unearths an unlikely yet statistically significant association between robberies in Nebraska and the smoking rates of U.S. adults. What initially seemed like a whimsical journey into the unknown has left us with more questions than answers. Nevertheless, our findings provide a quirky reminder that the web of human behavior is woven with threads of unexpected relationships, waiting to be unraveled by diligent researchers armed with statistical acumen and a sprinkle of humor.


Model: gpt-3.5-turbo-1106
System prompt: You are a goofy academic researcher writing an academic paper. You follow the rules, but you throw out convention regularly to make jokes and funny asides.You draft 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 Robberies in Nebraska and Cigarette Smoking Rate for US adults. 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 Great Nebraska Heist: Uncovering the Correlation Between Robberies and Smoking Rates in the U.S.

[[ABSTRACT]]
In this research paper, we delve into the unusual world of crime and smoking to investigate the connection between the frequency of robberies in Nebraska and the cigarette smoking rate among U.S. adults. Utilizing data from the FBI Criminal Justice Information Services and the CDC, our team explored this unlikely relationship, aiming to shed light on the intersecting realms of criminal activity and public health.

Our study spanned a robust 20-year period from 2001 to 2021, a timeframe peppered with both criminal antics and their potential stress-relieving consequences. Through rigorous statistical analyses, we unearthed a correlation coefficient of 0.9127989 and a p-value of less than 0.01, providing compelling evidence for a significant association between these seemingly disparate phenomena.

While we may not have apprehended the smoking gun in this investigation, our findings underscore the need for further exploration into the intricate web of factors influencing crime and health behaviors. This research not only showcases the bizarre yet intriguing dynamics that can emerge from data analysis, but also highlights the importance of considering unorthodox correlations in understanding societal trends. We hope that our work piques the interest of fellow scholars and prompts future studies to smoke out the hidden connections between crime and public health.

[[LITERATURE REVIEW]]
In "Smith et al.," the authors find that the frequency of robberies in Nebraska has been a subject of interest in the field of criminology, with discussions centering on factors such as socioeconomic conditions, law enforcement strategies, and community dynamics. Meanwhile, "Doe and Jones" delve into the intricate landscape of public health, examining the prevalence of cigarette smoking among U.S. adults and the myriad factors that influence tobacco use.
Moving beyond the academic realm, "The Art of the Heist" by Myles J. Conor offers a thrilling non-fiction account of audacious robberies, providing captivating narratives that may fuel one's imagination about the motivations behind criminal activities. On the other hand, works such as "Up in Smoke" by Jane Marlboro and "The Great Cigarette Caper" by Philip Morley present fictionalized depictions of smoking-related escapades, demonstrating the enduring allure of vice-laden tales.
In a deviation from traditional scholarly sources, the omnipresent forces of social media have also weighed in on this enigmatic correlation. Tweets such as "Robbery at the corner store, time for a stress-relieving smoke" and "Caught red-handed? A cigarette break sounds like a fitting denouement" offer glimpses into the potential interplay between criminal incidents and smoking behaviors.
As we navigate this academic landscape enshrouded in intrigue, one cannot help but marvel at the peculiar juxtaposition of these seemingly incongruous realms. From erudite research to fictional musings, the eternally boundless realms of crime and smoking continue to beckon the curious and the scholarly alike. Let us embark on this whimsical journey, for who knows what amusing findings may await in the shadows of peculiarity!

[[RESULTS]]
Our analysis of the connection between robberies in Nebraska and the cigarette smoking rate among U.S. adults for the period 2001 to 2021 yielded some eyebrow-raising results. We harnessed the power of statistical tools and data sleuthing to uncover a correlation coefficient of 0.9127989, an r-squared value of 0.8332019, and a p-value of less than 0.01. In other words, there's a statistically significant link between the two variables which left our research team scratching our heads in amazement.
To visually capture this unexpected correlation, we present Fig. 1, a scatterplot brimming with data points that tell the story of robberies and smoking rates holding hands in a statistical embrace. It's a match made in the depths of data analysis, a quirky tango between crime and tobacco that defies conventional wisdom and leaves researchers pondering the mysteries of human behavior.
In this game of statistical hide and seek, we didn't expect to stumble upon such a robust relationship between these seemingly unrelated phenomena. It's as if the universe decided to play a cosmic prank on us, revealing a connection that elicits both amusement and bewilderment.
The very thought of robbers and smokers influencing each other's existence may invoke visions of a curious buddy-cop comedy, where two unlikely companions navigate the streets of statistical significance. Perhaps we've stumbled upon the plot for the next blockbuster summer movie – "The Smoky Bandits" or "Ocean's Eleven: Packs a Day Edition". Hollywood, take note.
While our findings open the door to a realm of unexpected connections, it's essential to approach them with a balance of curiosity and caution. As we navigate this uncharted territory of crime and public health, we're reminded of the adage, "correlation does not imply causation". So, we resist the urge to jump to hasty conclusions and instead encourage further exploration to unravel the complexities of this curious correlation.
In conclusion, our research unearths an unlikely yet statistically significant association between robberies in Nebraska and the smoking rates of U.S. adults. What initially seemed like a whimsical journey into the unknown has left us with more questions than answers. Nevertheless, our findings provide a quirky reminder that the web of human behavior is woven with threads of unexpected relationships, waiting to be unraveled by diligent researchers armed with statistical acumen and a sprinkle of humor.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

Our results have set the stage for a captivating discussion that explores the perplexing yet intriguing connection between robberies in Nebraska and the smoking rates of U.S. adults. But before we dive into the depths of this comically unexpected correlation, let's take a moment to recognize the sneaky influences that lurked within our literature review.

The work of Myles J. Conor and his thrilling account of audacious heists may have seemed purely anecdotal, but in the spirit of suspense-driven crime dramas, our findings have indeed unraveled a plot twist worthy of a riveting page-turner. Likewise, the tongue-in-cheek social media musings about stress-relieving cigarette breaks after a robbery may have elicited a chuckle or two, but little did we know that these lighthearted remarks would foreshadow a statistical storyline of their own.

In line with previous research, our study confirms the existence of a striking correlation with a coefficient of 0.9127989, highlighting the unexpectedly intertwined fate of crime and smoking. This strong association, supported by a p-value of less than 0.01, underscores the need for further investigation and contemplation, not only to understand this quirky relationship, but also to appreciate the peculiar dance of statistics and human behavior.

Admittedly, our findings elicit musings that could rival the plot of a Hollywood comedy caper. Picture this: a group of robbers, clad in classic black-and-white stripes, strolling through smoke-filled alleys, their trusty cigarette packs at the ready. It's a scenario that seems more suited to the silver screen than the annals of academic research, yet here we are, confronted with a statistically significant connection that defies conventional reasoning and beckons us to explore the unexpected entanglements of human conduct.

While it may be tempting to don our metaphorical detective hats and proclaim a causal relationship between these divergent phenomena, we must heed the wisdom of statistical caution. After all, correlation does not imply causation, and our research serves as a gentle reminder to tread lightly in the realm of correlation, armed with both curiosity and skepticism.

As we peer through the lens of statistical significance and navigate this labyrinth of unexpected connections, our study underscores the profound and often whimsical caprices of human behavior. In a world where crime and smoking rates converge, it's essential to embrace the humor and mystery veiled in the data and approach our findings with an open mind and a flair for the unexpected.

So, dear readers, take a moment to bask in the quirkiness of our findings, for in this peculiar correlation lies the essence of scientific discovery – a subtle nod to the unpredictable interplay of statistics, society, and the whimsical machinations of human behavior. As we continue to unravel the enigmatic threads that bind crime and public health, let us embark on this offbeat journey with a sprinkle of humor and an unwavering commitment to uncovering the laughter, the surprises, and the profound insights that lie within the data.


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

Please make up a short conclusion of an academic research paper presenting the findings of the connection between Robberies in Nebraska and Cigarette Smoking Rate for US adults. 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 Great Nebraska Heist: Uncovering the Correlation Between Robberies and Smoking Rates in the U.S.

[[ABSTRACT]]
In this research paper, we delve into the unusual world of crime and smoking to investigate the connection between the frequency of robberies in Nebraska and the cigarette smoking rate among U.S. adults. Utilizing data from the FBI Criminal Justice Information Services and the CDC, our team explored this unlikely relationship, aiming to shed light on the intersecting realms of criminal activity and public health.

Our study spanned a robust 20-year period from 2001 to 2021, a timeframe peppered with both criminal antics and their potential stress-relieving consequences. Through rigorous statistical analyses, we unearthed a correlation coefficient of 0.9127989 and a p-value of less than 0.01, providing compelling evidence for a significant association between these seemingly disparate phenomena.

While we may not have apprehended the smoking gun in this investigation, our findings underscore the need for further exploration into the intricate web of factors influencing crime and health behaviors. This research not only showcases the bizarre yet intriguing dynamics that can emerge from data analysis, but also highlights the importance of considering unorthodox correlations in understanding societal trends. We hope that our work piques the interest of fellow scholars and prompts future studies to smoke out the hidden connections between crime and public health.

[[INTRDUCTION]]
INTRODUCTION
In the realm of unexpected correlations, the link between crime and public health may not be the first connection to spark the imagination. Yet, as we embark on this unconventional investigation, we find ourselves immersed in the entangled web of robberies and smoking habits. The Great Nebraska Heist represents a peculiar entry point into the intersection of criminal escapades and tobacco-related indulgences, bringing forth both intrigue and bewilderment.
As we embark on this academic escapade, it is imperative to acknowledge the multilayered nature of societal phenomena. While the idea of robbers and smokers coexisting in a delicate dance of statistical significance may seem far-fetched, one cannot simply dismiss the potential correlations that may arise from the depths of data analysis. After all, correlations have a knack for lurking in unexpected corners, much like that elusive sock that mysteriously disappears in the laundry.
Our expedition into the realm of criminal mischief and cigarette consumption is not merely an exercise in whimsy; rather, it is fueled by a fervent curiosity to uncover the underlying patterns driving human behavior. Just as a detective meticulously scours a crime scene for clues, we too have combed through the data, aiming to unveil the peculiar relationships that emerge when one juxtaposes felonious activities with public health habits.
As we venture forth, armed with statistical tools and a penchant for the unconventional, it is our hope that this scholarly endeavor not only unearths intriguing findings but also injects a dash of levity into the often somber world of academic inquiry. So, pack your investigative spirit and prepare to wade through the quagmire of robberies and smoking rates, for the journey ahead promises both scholarly insights and a touch of whimsy. Let the odyssey commence!

[[RESULTS]]
Our analysis of the connection between robberies in Nebraska and the cigarette smoking rate among U.S. adults for the period 2001 to 2021 yielded some eyebrow-raising results. We harnessed the power of statistical tools and data sleuthing to uncover a correlation coefficient of 0.9127989, an r-squared value of 0.8332019, and a p-value of less than 0.01. In other words, there's a statistically significant link between the two variables which left our research team scratching our heads in amazement.
To visually capture this unexpected correlation, we present Fig. 1, a scatterplot brimming with data points that tell the story of robberies and smoking rates holding hands in a statistical embrace. It's a match made in the depths of data analysis, a quirky tango between crime and tobacco that defies conventional wisdom and leaves researchers pondering the mysteries of human behavior.
In this game of statistical hide and seek, we didn't expect to stumble upon such a robust relationship between these seemingly unrelated phenomena. It's as if the universe decided to play a cosmic prank on us, revealing a connection that elicits both amusement and bewilderment.
The very thought of robbers and smokers influencing each other's existence may invoke visions of a curious buddy-cop comedy, where two unlikely companions navigate the streets of statistical significance. Perhaps we've stumbled upon the plot for the next blockbuster summer movie – "The Smoky Bandits" or "Ocean's Eleven: Packs a Day Edition". Hollywood, take note.
While our findings open the door to a realm of unexpected connections, it's essential to approach them with a balance of curiosity and caution. As we navigate this uncharted territory of crime and public health, we're reminded of the adage, "correlation does not imply causation". So, we resist the urge to jump to hasty conclusions and instead encourage further exploration to unravel the complexities of this curious correlation.
In conclusion, our research unearths an unlikely yet statistically significant association between robberies in Nebraska and the smoking rates of U.S. adults. What initially seemed like a whimsical journey into the unknown has left us with more questions than answers. Nevertheless, our findings provide a quirky reminder that the web of human behavior is woven with threads of unexpected relationships, waiting to be unraveled by diligent researchers armed with statistical acumen and a sprinkle of humor.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

As we bring our escapade through the world of statistical surprises to a close, we find ourselves in the company of an unexpected duo – robbers and smokers, hand in hand in the realm of correlation coefficients and p-values. It's as if Bonnie and Clyde decided to take up smoking as a stress-reliever! Our findings illuminate the peculiar dance of data points that defy conventional reasoning, leaving us with both a sense of wonder and a persistent urge to crack a few more statistical mysteries.

The statistical joviality of a correlation coefficient of 0.9127989 and a p-value of less than 0.01 sends a ripple of bemusement through the academic community. It's a bit like finding out that Batman and the Joker share a love for statistical significance – utterly fascinating and slightly confounding.

In the ever-unfolding narrative of crime and public health, our study serves as a reminder that the pages of statistical analysis hold unforeseen tales of connection and whimsy. As we bid adieu to this peculiar pairing, we can't help but wonder about the next statistical odd couple waiting to be unearthed – perhaps a correlation between ice cream sales and polar bear migrations? The statistical playground offers endless surprises, each more quirky than the last.

In the spirit of academic exploration, we declare that our research has struck statistical gold in unveiling the link between robberies in Nebraska and cigarette smoking rates among U.S. adults. As much as we'd love to don our metaphorical detective hats and delve further into this enigmatic nexus, we must recognize that sometimes, a statistical oddity is simply a melodic quirk in the symphony of data.

Hence, in the spirit of statistical enlightenment and a sprinkle of scholarly whimsy, we boldly proclaim that no further research is needed in this offbeat avenue of inquiry. It's time to stow away our magnifying glasses and celebrate the capricious grandeur of statistics. Let the good-natured chuckles of academic curiosity reverberate through the hallowed halls of research, as we bid farewell to this unexpected rendezvous between robbers and smokers.


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 Great Nebraska Heist: Uncovering the Correlation Between Robberies and Smoking Rates in the U.S.. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Criminological Epidemiology


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 Great Nebraska Heist: Uncovering the Correlation Between Robberies and Smoking Rates in the U.S.. Respond only with the name of a fictional organization.

ChatGPT:

The Society for Quirky Research and Statistical Analysis (SQReSA)


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 Great Nebraska Heist: Uncovering the Correlation Between Robberies and Smoking Rates in the U.S. with an abstract of In this research paper, we delve into the unusual world of crime and smoking to investigate the connection between the frequency of robberies in Nebraska and the cigarette smoking rate among U.S. adults. Utilizing data from the FBI Criminal Justice Information Services and the CDC, our team explored this unlikely relationship, aiming to shed light on the intersecting realms of criminal activity and public health.
Our study spanned a robust 20-year period from 2001 to 2021, a timeframe peppered with both criminal antics and their potential stress-relieving consequences. Through rigorous statistical analyses, we unearthed a correlation coefficient of 0.9127989 and a p-value of less than 0.01, providing compelling evidence for a significant association between these seemingly disparate phenomena.
While we may not have apprehended the smoking gun in this investigation, our findings underscore the need for further exploration into the intricate web of factors influencing crime and health behaviors. This research not only showcases the bizarre yet intriguing dynamics that can emerge from data analysis, but also highlights the importance of considering unorthodox correlations in understanding societal trends. We hope that our work piques the interest of fellow scholars and prompts future studies to smoke out the hidden connections between crime and public health.

ChatGPT:

robberies, smoking rates, Nebraska, crime statistics, FBI Criminal Justice Information Services, CDC data, correlation analysis, statistical analysis, crime and health behaviors, public health, societal trends

*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

Robberies in Nebraska
Detailed data title: The robbery rate per 100,000 residents in Nebraska
Source: FBI Criminal Justice Information Services
See what else correlates with Robberies in Nebraska

Cigarette Smoking Rate for US adults
Detailed data title: US Adult Cigarette Smoking Rate
Source: CDC
See what else correlates with Cigarette Smoking Rate for US adults

Correlation r = 0.9127989 (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.8332019 (Coefficient of determination)
This means 83.3% of the change in the one variable (i.e., Cigarette Smoking Rate for US adults) is predictable based on the change in the other (i.e., Robberies in Nebraska) over the 21 years from 2001 through 2021.

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

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

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

Just to be clear: I'm being completely transparent about the calculations. There is no math trickery. This is just how statistics shakes out when you calculate hundreds of millions of random correlations.
with the same 20 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 20 because we have two variables measured over a period of 21 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.79, 0.96 ] 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.
200120022003200420052006200720082009201020112012201320142015201620172018201920202021
Robberies in Nebraska (Robbery rate)65.678.767.165.159.264.262.872.767.955.753.960.855.455.452.549.653.238.241.141.231.7
Cigarette Smoking Rate for US adults (Percentage)22.822.521.620.920.920.819.820.620.619.31918.117.816.815.115.51413.71412.511.5




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.




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([65.6,78.7,67.1,65.1,59.2,64.2,62.8,72.7,67.9,55.7,53.9,60.8,55.4,55.4,52.5,49.6,53.2,38.2,41.1,41.2,31.7,])
array_2 = np.array([22.8,22.5,21.6,20.9,20.9,20.8,19.8,20.6,20.6,19.3,19,18.1,17.8,16.8,15.1,15.5,14,13.7,14,12.5,11.5,])
array_1_name = "Robberies in Nebraska"
array_2_name = "Cigarette Smoking Rate for US adults"

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

You're the correlation whisperer we needed!


Correlation ID: 4028 · Black Variable ID: 20201 · Red Variable ID: 46
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0