about · email me · subscribe
Spurious correlation #3,593 · 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 California and the second variable is NASA's budget as a percentage of the total US Federal Budget.  The chart goes from 1985 to 2022, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

Because fewer robberies in California led to a decrease in demand for security systems, resulting in surplus funds that the government redirected from NASA's budget to buy giant telescopes to look for potential new robbery hotspots in the galaxy.

Model: dalle-3
Prompt: Generate an image depicting a steampunk version of California's rolling hills with giant telescopes scattered throughout. The telescopes should have intricate gears and pipes, reminiscent of steampunk technology, and be pointed toward the night sky. The landscape should convey a sense of both technological advancement and historical elegance, blending the natural beauty of California with the intriguing concept of astronomers using redirected funds from NASA to search for new robbery hotspots in the galaxy. 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 California and NASA's budget as a percentage of the total US Federal Budget. 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: Art nouveau Charcoal Voxel art Steampunk Celtic art
ChatGPT: Steampunk

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 California and NASA's budget as a percentage of the total US Federal Budget, in the following situation: Because fewer robberies in California led to a decrease in demand for security systems, resulting in surplus funds that the government redirected from NASA's budget to buy giant telescopes to look for potential new robbery hotspots in the galaxy.. Keep the description simple.
ChatGPT: In California, a decrease in robberies led to fewer demands for security systems. This resulted in surplus funds that the government redirected from NASA's budget. As a result, giant telescopes were purchased and set up among the rolling hills. Astronomers now searched the galaxy for potential new robbery hotspots, using the redirected funds from NASA's budget.

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: [ Steampunk ] and depicting this scene: In California, a decrease in robberies led to fewer demands for security systems. This resulted in surplus funds that the government redirected from NASA's budget. As a result, giant telescopes were purchased and set up among the rolling hills. Astronomers now searched the galaxy for potential new robbery hotspots, using the redirected funds from NASA's budget. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Generate an image depicting a steampunk version of California's rolling hills with giant telescopes scattered throughout. The telescopes should have intricate gears and pipes, reminiscent of steampunk technology, and be pointed toward the night sky. The landscape should convey a sense of both technological advancement and historical elegance, blending the natural beauty of California with the intriguing concept of astronomers using redirected funds from NASA to search for new robbery hotspots in the galaxy.

*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
System prompt: You provide humerus 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. Your responses should be able to be used as the title for a funny post, or the top comment on a thread explaining the connection.
User prompt: Please make up a funny explanation for how a decrease in Robberies in California caused NASA's budget as a percentage of the total US Federal Budget to decrease. Make it lighthearted and humerus but plausible, and keep it short to ~90 tokens. Do not start with 'well' or 'you see' or similar statements. Do not restate the variables; lead with the answer (what comes after 'because...')

AI academic paper

(Because p < 0.01)
Blasting off with Budgets: The Galactic Connection Between Robberies in California and NASA's Funding as a Percentage of the Total US Federal Budget

Journal of Extraterrestrial Economics

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 dry but witty academic researcher. You speak in the passive voice, and your writing sounds like it belongs in a medical or economics journal.You write titles and abstracts of goofy academic research papers.
User prompt:
Pretend you are an academic researcher. Your writing sounds like it belongs in a medical or economics journal. However, you frequently crack jokes, make puns, and add unexpected twists in your writing.

Please draft the title and abstract of an academic research paper presenting the findings of the connection between Robberies in California and NASA's budget as a percentage of the total US Federal Budget. Make lots of jokes, goofy observations, and puns.

Make the title a clever pun.

Your research team used data from FBI Criminal Justice Information Services and Planetary.org to assess this nagging question. You found a correlation coefficient of 0.8987233 and p < 0.01 for 1985 to 2022.

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

[[TITLE]]
Lorem ipsum dolor sit

[[ABSTRACT]]
Lorem ipsum dolor sit



ChatGPT:
[[TITLE]]
Blasting off with Budgets: The Galactic Connection Between Robberies in California and NASA's Funding as a Percentage of the Total US Federal Budget

[[ABSTRACT]]
This research paper presents the tantalizingly hilarious investigation into the relationship between robberies in California and the funding allocated to NASA as a percentage of the overall US Federal Budget. Through the meticulous analysis of data from the FBI Criminal Justice Information Services, as well as the cosmic insights from Planetary.org, our research team unveiled a correlation coefficient of 0.8987233 and a p-value less than 0.01 for the period of 1985 to 2022. The results call for a reexamination of the old adage "money doesn't grow on trees" to perhaps "money doesn't fly out of this world" as we delve into the possibility of astronomical influences on earthly misdemeanors. This unexpected connection between earthly theft and astronomical budgets sheds light on the cosmic forces at play in the world of economics and crime, inviting further exploration and comedic speculation.


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

Please make up the introduction section of an academic research paper presenting the findings of the connection between Robberies in California and NASA's budget as a percentage of the total US Federal Budget. Make lots of jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Here is the title and abstract of the paper:
[[TITLE]]
Blasting off with Budgets: The Galactic Connection Between Robberies in California and NASA's Funding as a Percentage of the Total US Federal Budget

[[ABSTRACT]]
This research paper presents the tantalizingly hilarious investigation into the relationship between robberies in California and the funding allocated to NASA as a percentage of the overall US Federal Budget. Through the meticulous analysis of data from the FBI Criminal Justice Information Services, as well as the cosmic insights from Planetary.org, our research team unveiled a correlation coefficient of 0.8987233 and a p-value less than 0.01 for the period of 1985 to 2022. The results call for a reexamination of the old adage "money doesn't grow on trees" to perhaps "money doesn't fly out of this world" as we delve into the possibility of astronomical influences on earthly misdemeanors. This unexpected connection between earthly theft and astronomical budgets sheds light on the cosmic forces at play in the world of economics and crime, inviting further exploration and comedic speculation.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

The relationship between earthly phenomena and celestial events has long intrigued both scholars and casual observers alike. This paper aims to delve into the connection between incidents of robbery in the state of California and the allocation of funds to the National Aeronautics and Space Administration (NASA) as a percentage of the total US Federal Budget. The idea that there may be a cosmic correlation between criminal activities and extraterrestrial funding may at first seem far-fetched, but our study uncovers an unexpectedly compelling association.

While the common aphorism "money doesn't grow on trees" has been a standard maxim of financial wisdom, our findings prompt us to consider the possibility that "money doesn't fly out of this world." Just as the moon exerts its gravitational pull on the tides, could the cosmos similarly influence the ebb and flow of fiscal allocations and criminal behavior? This paper seeks to explore the implications of such a cosmic link, offering a humorous and thought-provoking perspective on the entwined nature of economics, astronomy, and mischievous human behavior.

One cannot help but be drawn to the juxtaposition of the down-to-earth realm of crime in California with the stratospheric aspirations of NASA's annual budget within the grand tapestry of the US Federal Budget. As we peel back the layers of this unique relationship, it becomes evident that there may be more than just a celestial pun or two at play in the universe of government finance and criminal activity.

Our research not only unveils an intriguing correlation between these seemingly disparate elements, but it also underscores the need for a reexamination of our understanding of the interconnected forces shaping our world. We invite our readers to join us on this cosmic journey through the cosmos of economics and crime, as we unravel the enigmatic tie between theft and the stars.


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

Please make up a literature review section of an academic research paper presenting the findings of the connection between Robberies in California and NASA's budget as a percentage of the total US Federal Budget. 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 devolve ever further, and mention something completely ridiculous, like you conducted literature review by reading CVS receipts.

Here is the title and abstract of the paper:
[[TITLE]]
Blasting off with Budgets: The Galactic Connection Between Robberies in California and NASA's Funding as a Percentage of the Total US Federal Budget

[[ABSTRACT]]
This research paper presents the tantalizingly hilarious investigation into the relationship between robberies in California and the funding allocated to NASA as a percentage of the overall US Federal Budget. Through the meticulous analysis of data from the FBI Criminal Justice Information Services, as well as the cosmic insights from Planetary.org, our research team unveiled a correlation coefficient of 0.8987233 and a p-value less than 0.01 for the period of 1985 to 2022. The results call for a reexamination of the old adage "money doesn't grow on trees" to perhaps "money doesn't fly out of this world" as we delve into the possibility of astronomical influences on earthly misdemeanors. This unexpected connection between earthly theft and astronomical budgets sheds light on the cosmic forces at play in the world of economics and crime, inviting further exploration and comedic speculation.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
The relationship between earthly phenomena and celestial events has long intrigued both scholars and casual observers alike. This paper aims to delve into the connection between incidents of robbery in the state of California and the allocation of funds to the National Aeronautics and Space Administration (NASA) as a percentage of the total US Federal Budget. The idea that there may be a cosmic correlation between criminal activities and extraterrestrial funding may at first seem far-fetched, but our study uncovers an unexpectedly compelling association.
While the common aphorism "money doesn't grow on trees" has been a standard maxim of financial wisdom, our findings prompt us to consider the possibility that "money doesn't fly out of this world." Just as the moon exerts its gravitational pull on the tides, could the cosmos similarly influence the ebb and flow of fiscal allocations and criminal behavior? This paper seeks to explore the implications of such a cosmic link, offering a humorous and thought-provoking perspective on the entwined nature of economics, astronomy, and mischievous human behavior.
One cannot help but be drawn to the juxtaposition of the down-to-earth realm of crime in California with the stratospheric aspirations of NASA's annual budget within the grand tapestry of the US Federal Budget. As we peel back the layers of this unique relationship, it becomes evident that there may be more than just a celestial pun or two at play in the universe of government finance and criminal activity.
Our research not only unveils an intriguing correlation between these seemingly disparate elements, but it also underscores the need for a reexamination of our understanding of the interconnected forces shaping our world. We invite our readers to join us on this cosmic journey through the cosmos of economics and crime, as we unravel the enigmatic tie between theft and the stars.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

Smith (2010) investigates the potential link between economic phenomena and cosmic events, setting the stage for a discussion of the cosmic connection between fiscal allocations and criminal behavior. Similarly, Doe (2015) delves into the intricacies of budgetary trends within federal agencies, prompting a closer examination of the potential influence of space exploration on mundane criminal activities. Furthermore, Jones (2018) expounds on the broader implications of celestial bodies on economic principles, paving the way for a whimsically engaging exploration of the relationship between robberies in California and NASA's funding as a percentage of the total US Federal Budget.

A number of non-fiction works shed light on the intersection of economics, astronomy, and crime, providing a robust foundation for our investigation. "The Economic Universe: From Black Holes to Black Markets" by Galactic Economist et al. (2019) offers a comprehensive analysis of the parallels between cosmic phenomena and financial systems, fueling our curiosity about potential astro-economic connections. Additionally, "Starlight, Starbright: How Celestial Bodies Shape Our Daily Lives" by Solar System Sociologist (2016) provides a sociological lens through which to examine the impact of cosmic forces on earthly activities, inspiring us to consider the influence of NASA's budget on criminal behaviors in California.

Turning to fictional literature, "The Martian Heist" by Space Sleuth (2020) presents an imaginative tale of interplanetary theft, offering a whimsical yet thought-provoking narrative that underscores the potential impact of cosmic exploration on criminal ventures. In a similar vein, "Cosmic Capers: Mischievous Adventures Beyond the Stratosphere" by Intergalactic Author (2017) invites readers on a lighthearted journey through celestial escapades, prompting reflection on the intersection of extraterrestrial aspirations and earthly transgressions.

In the course of this literature review, it is essential to note the unexpected sources of insight that have contributed to our understanding of the cosmic connection between robberies in California and NASA's budget as a percentage of the total US Federal Budget. While traditional scholarly works have provided valuable context, our team has also drawn inspiration from unconventional sources, including interpretive dance performances, vintage cereal box advertisements, and even the cryptic messages hidden within CVS receipts. These unorthodox influences, while not formally acknowledged in academic circles, have nevertheless sparked moments of hilarity and creative contemplation in our pursuit of cosmic correlations.

As we synthesize the diverse perspectives gleaned from both scholarly and unconventional sources, it becomes clear that the relationship between earthly theft and astronomical budgets is a topic of immense hilarity and profound absurdity. This confluence of economics, astronomy, and mischief invites us to embrace the whimsical possibilities inherent in the cosmic ballet of financial allocations and criminal capers.


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

Please make up the methodology section of an academic research paper presenting the findings of the connection between Robberies in California and NASA's budget as a percentage of the total US Federal Budget. Make lots of jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Your research team collected data from all across the internet, but mostly just used information from FBI Criminal Justice Information Services and Planetary.org . You used data from 1985 to 2022

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

Here is the title, abstract, and introduction of the paper:
[[TITLE]]
Blasting off with Budgets: The Galactic Connection Between Robberies in California and NASA's Funding as a Percentage of the Total US Federal Budget

[[ABSTRACT]]
This research paper presents the tantalizingly hilarious investigation into the relationship between robberies in California and the funding allocated to NASA as a percentage of the overall US Federal Budget. Through the meticulous analysis of data from the FBI Criminal Justice Information Services, as well as the cosmic insights from Planetary.org, our research team unveiled a correlation coefficient of 0.8987233 and a p-value less than 0.01 for the period of 1985 to 2022. The results call for a reexamination of the old adage "money doesn't grow on trees" to perhaps "money doesn't fly out of this world" as we delve into the possibility of astronomical influences on earthly misdemeanors. This unexpected connection between earthly theft and astronomical budgets sheds light on the cosmic forces at play in the world of economics and crime, inviting further exploration and comedic speculation.

[[INTRODUCTION]]
The relationship between earthly phenomena and celestial events has long intrigued both scholars and casual observers alike. This paper aims to delve into the connection between incidents of robbery in the state of California and the allocation of funds to the National Aeronautics and Space Administration (NASA) as a percentage of the total US Federal Budget. The idea that there may be a cosmic correlation between criminal activities and extraterrestrial funding may at first seem far-fetched, but our study uncovers an unexpectedly compelling association.
While the common aphorism "money doesn't grow on trees" has been a standard maxim of financial wisdom, our findings prompt us to consider the possibility that "money doesn't fly out of this world." Just as the moon exerts its gravitational pull on the tides, could the cosmos similarly influence the ebb and flow of fiscal allocations and criminal behavior? This paper seeks to explore the implications of such a cosmic link, offering a humorous and thought-provoking perspective on the entwined nature of economics, astronomy, and mischievous human behavior.
One cannot help but be drawn to the juxtaposition of the down-to-earth realm of crime in California with the stratospheric aspirations of NASA's annual budget within the grand tapestry of the US Federal Budget. As we peel back the layers of this unique relationship, it becomes evident that there may be more than just a celestial pun or two at play in the universe of government finance and criminal activity.
Our research not only unveils an intriguing correlation between these seemingly disparate elements, but it also underscores the need for a reexamination of our understanding of the interconnected forces shaping our world. We invite our readers to join us on this cosmic journey through the cosmos of economics and crime, as we unravel the enigmatic tie between theft and the stars.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

To investigate the unearthly connection between robberies in California and NASA's budget as a percentage of the total US Federal Budget, our research team employed a range of celestial and terrestrial research methods.

First, the data on robberies in California was collected from the FBI Criminal Justice Information Services, which compiles crime statistics from law enforcement agencies across the United States. This information provided a terrestrial foundation for our analysis, grounding our investigation in the earthly realm of criminal activity.

Next, to capture the cosmic dimension of the research, our team turned to Planetary.org, a renowned source of astronomical insights. There, we accessed data on NASA's budget as a percentage of the total US Federal Budget, spanning the years from 1985 to 2022. This cosmic perspective allowed us to juxtapose the extraterrestrial aspirations of NASA's funding with the down-to-earth realm of criminal activities in California.

The data from both sources were subjected to rigorous analysis, including correlation coefficients and statistical significance testing. Through a methodological approach that blended the earthly data with the cosmic insights, we aimed to shed light on the intriguing relationship between fiscal allocations for space exploration and criminal behaviors on our own planet.

Furthermore, we employed a comically convoluted algorithm, affectionately named the "Cosmically Ridiculous Correlation Calculator," to humorously probe the potential links between these phenomena. While the algorithm's output was lighthearted, its code was crafted with the utmost academic rigor, infusing the analysis with both levity and statistical robustness.

The juxtaposition of these methods offered a balanced and comprehensive approach to uncovering the hidden ties between earthly theft and celestial budgets, providing a multidimensional perspective on the cosmic forces at play in the intersection of economics and crime.


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

Please make up the results section of an academic research paper presenting the findings of the connection between Robberies in California and NASA's budget as a percentage of the total US Federal Budget. Make lots of jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

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

For the time period 1985 to 2022, you found a correlation 0.8987233, r-squared of 0.8077035, 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]]
Blasting off with Budgets: The Galactic Connection Between Robberies in California and NASA's Funding as a Percentage of the Total US Federal Budget

[[ABSTRACT]]
This research paper presents the tantalizingly hilarious investigation into the relationship between robberies in California and the funding allocated to NASA as a percentage of the overall US Federal Budget. Through the meticulous analysis of data from the FBI Criminal Justice Information Services, as well as the cosmic insights from Planetary.org, our research team unveiled a correlation coefficient of 0.8987233 and a p-value less than 0.01 for the period of 1985 to 2022. The results call for a reexamination of the old adage "money doesn't grow on trees" to perhaps "money doesn't fly out of this world" as we delve into the possibility of astronomical influences on earthly misdemeanors. This unexpected connection between earthly theft and astronomical budgets sheds light on the cosmic forces at play in the world of economics and crime, inviting further exploration and comedic speculation.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
The relationship between earthly phenomena and celestial events has long intrigued both scholars and casual observers alike. This paper aims to delve into the connection between incidents of robbery in the state of California and the allocation of funds to the National Aeronautics and Space Administration (NASA) as a percentage of the total US Federal Budget. The idea that there may be a cosmic correlation between criminal activities and extraterrestrial funding may at first seem far-fetched, but our study uncovers an unexpectedly compelling association.
While the common aphorism "money doesn't grow on trees" has been a standard maxim of financial wisdom, our findings prompt us to consider the possibility that "money doesn't fly out of this world." Just as the moon exerts its gravitational pull on the tides, could the cosmos similarly influence the ebb and flow of fiscal allocations and criminal behavior? This paper seeks to explore the implications of such a cosmic link, offering a humorous and thought-provoking perspective on the entwined nature of economics, astronomy, and mischievous human behavior.
One cannot help but be drawn to the juxtaposition of the down-to-earth realm of crime in California with the stratospheric aspirations of NASA's annual budget within the grand tapestry of the US Federal Budget. As we peel back the layers of this unique relationship, it becomes evident that there may be more than just a celestial pun or two at play in the universe of government finance and criminal activity.
Our research not only unveils an intriguing correlation between these seemingly disparate elements, but it also underscores the need for a reexamination of our understanding of the interconnected forces shaping our world. We invite our readers to join us on this cosmic journey through the cosmos of economics and crime, as we unravel the enigmatic tie between theft and the stars.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The analysis of data collected from the FBI Criminal Justice Information Services and Planetary.org revealed a remarkably strong correlation between the occurrence of robberies in California and the percentage of the US Federal Budget allocated to NASA. The correlation coefficient was calculated to be 0.8987233, indicating a robust positive association between the two variables. Additionally, the coefficient of determination (r-squared) was estimated to be 0.8077035, suggesting that approximately 80.77% of the variability in the occurrences of robberies in California can be explained by the percentage of the federal budget allocated to NASA.

The findings not only unveil a statistically significant relationship between the two variables (p < 0.01), but also prompt one to consider the cosmic forces at play in the realm of fiscal allocations and criminal behavior. As depicted in the scatterplot (Fig. 1), the data points exhibit a clear upward trend, showcasing the compelling association between these seemingly disparate phenomena.

These results challenge conventional wisdom and introduce a cosmic dimension to the understanding of economic and criminal dynamics. It may be apt to reframe the old adage "money doesn't grow on trees" to perhaps "money doesn't fly out of this world," as we ponder the possibility of extraterrestrial influences on earthly misdemeanors. This unexpected correlation beckons a reexamination of the traditional boundaries between earthly affairs and cosmic endeavors, inviting further exploration and contemplation.

One cannot help but marvel at the cosmic whimsy entwined in the coalescence of astronomical budgets and earthly theft, as our findings divulge the captivating interplay between these domains. This correlation, with its astronomical implications on earthly activities, introduces a whimsical twist to the conventional understanding of economics and crime, inspiring both curiosity and amusement.

In conclusion, the results of this study not only expose an unexpected correlation between the occurrences of robberies in California and the percentage of the US Federal Budget allocated to NASA, but also unearth the cosmic thread woven into the fabric of economic and criminal phenomena. This cosmic connection between the celestial and the terrestrial domains prompts us to reconsider the forces influencing our world, infusing levity and intrigue into the often serious realms of academia and policy.


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

Please make up the discussion section of an academic research paper presenting the findings of the connection between Robberies in California and NASA's budget as a percentage of the total US Federal Budget. Make lots of jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

Limit your response to 500 tokens.

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

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

[[TITLE]]
Blasting off with Budgets: The Galactic Connection Between Robberies in California and NASA's Funding as a Percentage of the Total US Federal Budget

[[ABSTRACT]]
This research paper presents the tantalizingly hilarious investigation into the relationship between robberies in California and the funding allocated to NASA as a percentage of the overall US Federal Budget. Through the meticulous analysis of data from the FBI Criminal Justice Information Services, as well as the cosmic insights from Planetary.org, our research team unveiled a correlation coefficient of 0.8987233 and a p-value less than 0.01 for the period of 1985 to 2022. The results call for a reexamination of the old adage "money doesn't grow on trees" to perhaps "money doesn't fly out of this world" as we delve into the possibility of astronomical influences on earthly misdemeanors. This unexpected connection between earthly theft and astronomical budgets sheds light on the cosmic forces at play in the world of economics and crime, inviting further exploration and comedic speculation.

[[LITERATURE REVIEW]]
Smith (2010) investigates the potential link between economic phenomena and cosmic events, setting the stage for a discussion of the cosmic connection between fiscal allocations and criminal behavior. Similarly, Doe (2015) delves into the intricacies of budgetary trends within federal agencies, prompting a closer examination of the potential influence of space exploration on mundane criminal activities. Furthermore, Jones (2018) expounds on the broader implications of celestial bodies on economic principles, paving the way for a whimsically engaging exploration of the relationship between robberies in California and NASA's funding as a percentage of the total US Federal Budget.
A number of non-fiction works shed light on the intersection of economics, astronomy, and crime, providing a robust foundation for our investigation. "The Economic Universe: From Black Holes to Black Markets" by Galactic Economist et al. (2019) offers a comprehensive analysis of the parallels between cosmic phenomena and financial systems, fueling our curiosity about potential astro-economic connections. Additionally, "Starlight, Starbright: How Celestial Bodies Shape Our Daily Lives" by Solar System Sociologist (2016) provides a sociological lens through which to examine the impact of cosmic forces on earthly activities, inspiring us to consider the influence of NASA's budget on criminal behaviors in California.
Turning to fictional literature, "The Martian Heist" by Space Sleuth (2020) presents an imaginative tale of interplanetary theft, offering a whimsical yet thought-provoking narrative that underscores the potential impact of cosmic exploration on criminal ventures. In a similar vein, "Cosmic Capers: Mischievous Adventures Beyond the Stratosphere" by Intergalactic Author (2017) invites readers on a lighthearted journey through celestial escapades, prompting reflection on the intersection of extraterrestrial aspirations and earthly transgressions.
In the course of this literature review, it is essential to note the unexpected sources of insight that have contributed to our understanding of the cosmic connection between robberies in California and NASA's budget as a percentage of the total US Federal Budget. While traditional scholarly works have provided valuable context, our team has also drawn inspiration from unconventional sources, including interpretive dance performances, vintage cereal box advertisements, and even the cryptic messages hidden within CVS receipts. These unorthodox influences, while not formally acknowledged in academic circles, have nevertheless sparked moments of hilarity and creative contemplation in our pursuit of cosmic correlations.
As we synthesize the diverse perspectives gleaned from both scholarly and unconventional sources, it becomes clear that the relationship between earthly theft and astronomical budgets is a topic of immense hilarity and profound absurdity. This confluence of economics, astronomy, and mischief invites us to embrace the whimsical possibilities inherent in the cosmic ballet of financial allocations and criminal capers.

[[RESULTS]]
The analysis of data collected from the FBI Criminal Justice Information Services and Planetary.org revealed a remarkably strong correlation between the occurrence of robberies in California and the percentage of the US Federal Budget allocated to NASA. The correlation coefficient was calculated to be 0.8987233, indicating a robust positive association between the two variables. Additionally, the coefficient of determination (r-squared) was estimated to be 0.8077035, suggesting that approximately 80.77% of the variability in the occurrences of robberies in California can be explained by the percentage of the federal budget allocated to NASA.
The findings not only unveil a statistically significant relationship between the two variables (p < 0.01), but also prompt one to consider the cosmic forces at play in the realm of fiscal allocations and criminal behavior. As depicted in the scatterplot (Fig. 1), the data points exhibit a clear upward trend, showcasing the compelling association between these seemingly disparate phenomena.
These results challenge conventional wisdom and introduce a cosmic dimension to the understanding of economic and criminal dynamics. It may be apt to reframe the old adage "money doesn't grow on trees" to perhaps "money doesn't fly out of this world," as we ponder the possibility of extraterrestrial influences on earthly misdemeanors. This unexpected correlation beckons a reexamination of the traditional boundaries between earthly affairs and cosmic endeavors, inviting further exploration and contemplation.
One cannot help but marvel at the cosmic whimsy entwined in the coalescence of astronomical budgets and earthly theft, as our findings divulge the captivating interplay between these domains. This correlation, with its astronomical implications on earthly activities, introduces a whimsical twist to the conventional understanding of economics and crime, inspiring both curiosity and amusement.
In conclusion, the results of this study not only expose an unexpected correlation between the occurrences of robberies in California and the percentage of the US Federal Budget allocated to NASA, but also unearth the cosmic thread woven into the fabric of economic and criminal phenomena. This cosmic connection between the celestial and the terrestrial domains prompts us to reconsider the forces influencing our world, infusing levity and intrigue into the often serious realms of academia and policy.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The findings of this study support and expand upon the earlier research that suggested a potential link between cosmic events and economic phenomena. It appears that the cosmic dance of NASA's budget as a percentage of the US Federal Budget and the occurrences of robberies in California has indeed unfolded in a manner that defies traditional economic and criminological explanations.

The correlation coefficient of 0.8987233, with a p-value less than 0.01, affirms the statistical significance of the relationship between these variables. This robust positive association is in line with the whimsically engaging investigations by Smith (2010) and Doe (2015), who initially broached the idea of celestial influences on fiscal allocations and criminal behaviors. It seems that the cosmic ballet of financial allocations and criminal capers is not merely a product of fanciful imagination, but a tangible and statistically significant phenomenon.

The unexpected sources of insight that have contributed to our understanding of this cosmic connection, as highlighted in the literature review, have played a pivotal role in shaping our approach to this research. The whimsical tales of interplanetary theft in "The Martian Heist" by Space Sleuth (2020) and the mischievous adventures beyond the stratosphere in "Cosmic Capers: Mischievous Adventures Beyond the Stratosphere" by Intergalactic Author (2017) have not only entertained readers but have also provided valuable conceptual frameworks for contemplating the potential impact of cosmic exploration on criminal ventures. It is remarkable how even the most improbable and seemingly frivolous narratives can serve as the launching pad for scholarly endeavors.

The meticulous analysis of the data, as depicted in the scatterplot (Fig. 1), showcases a clear upward trend, further bolstering the already compelling association between NASA's budget and robberies in the Golden State. This evidence not only challenges conventional wisdom but also invites us to reconsider the boundaries between earthly affairs and cosmic endeavors. While it may be tempting to dismiss such findings as the product of sheer cosmic happenstance, the statistical rigor of our analysis commands a level of intellectual gravity that cannot be easily disentangled.

We must also acknowledge the potential limitations of this study. While the statistically significant correlation invites whimsical speculation about the cosmic whimsy entwined in the coalescence of astronomical budgets and earthly theft, the underlying mechanisms and causality remain shrouded in cosmic ambiguity. It is conceivable that other extraneous variables may contribute to this curious correlation, perhaps lurking in the cosmic background noise of economic and criminological phenomena.

In conclusion, the discovery of this unexpected correlation offers a thought-provoking departure from conventional economic and criminological paradigms. It is the cosmic thread woven into the fabric of economic and criminal phenomena that prompts us to reconsider the forces influencing our world, infusing levity and intrigue into the often serious realms of academia and policy. As we continue to unravel the intricacies of this cosmic connection, the cosmic whimsy embedded within the relationship between NASA's budget and robberies in California invites further exploration and contemplation, not just in the scientific community, but also among celestial jesters and earthly audience members alike.


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

Please make up a short conclusion of an academic research paper presenting the findings of the connection between Robberies in California and NASA's budget as a percentage of the total US Federal Budget. Make lots of jokes, goofy observations, and puns. Stay serious and dry most of the time, but then occasionally let your wit shine through.

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

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
Blasting off with Budgets: The Galactic Connection Between Robberies in California and NASA's Funding as a Percentage of the Total US Federal Budget

[[ABSTRACT]]
This research paper presents the tantalizingly hilarious investigation into the relationship between robberies in California and the funding allocated to NASA as a percentage of the overall US Federal Budget. Through the meticulous analysis of data from the FBI Criminal Justice Information Services, as well as the cosmic insights from Planetary.org, our research team unveiled a correlation coefficient of 0.8987233 and a p-value less than 0.01 for the period of 1985 to 2022. The results call for a reexamination of the old adage "money doesn't grow on trees" to perhaps "money doesn't fly out of this world" as we delve into the possibility of astronomical influences on earthly misdemeanors. This unexpected connection between earthly theft and astronomical budgets sheds light on the cosmic forces at play in the world of economics and crime, inviting further exploration and comedic speculation.

[[INTRDUCTION]]
The relationship between earthly phenomena and celestial events has long intrigued both scholars and casual observers alike. This paper aims to delve into the connection between incidents of robbery in the state of California and the allocation of funds to the National Aeronautics and Space Administration (NASA) as a percentage of the total US Federal Budget. The idea that there may be a cosmic correlation between criminal activities and extraterrestrial funding may at first seem far-fetched, but our study uncovers an unexpectedly compelling association.
While the common aphorism "money doesn't grow on trees" has been a standard maxim of financial wisdom, our findings prompt us to consider the possibility that "money doesn't fly out of this world." Just as the moon exerts its gravitational pull on the tides, could the cosmos similarly influence the ebb and flow of fiscal allocations and criminal behavior? This paper seeks to explore the implications of such a cosmic link, offering a humorous and thought-provoking perspective on the entwined nature of economics, astronomy, and mischievous human behavior.
One cannot help but be drawn to the juxtaposition of the down-to-earth realm of crime in California with the stratospheric aspirations of NASA's annual budget within the grand tapestry of the US Federal Budget. As we peel back the layers of this unique relationship, it becomes evident that there may be more than just a celestial pun or two at play in the universe of government finance and criminal activity.
Our research not only unveils an intriguing correlation between these seemingly disparate elements, but it also underscores the need for a reexamination of our understanding of the interconnected forces shaping our world. We invite our readers to join us on this cosmic journey through the cosmos of economics and crime, as we unravel the enigmatic tie between theft and the stars.

[[RESULTS]]
The analysis of data collected from the FBI Criminal Justice Information Services and Planetary.org revealed a remarkably strong correlation between the occurrence of robberies in California and the percentage of the US Federal Budget allocated to NASA. The correlation coefficient was calculated to be 0.8987233, indicating a robust positive association between the two variables. Additionally, the coefficient of determination (r-squared) was estimated to be 0.8077035, suggesting that approximately 80.77% of the variability in the occurrences of robberies in California can be explained by the percentage of the federal budget allocated to NASA.
The findings not only unveil a statistically significant relationship between the two variables (p < 0.01), but also prompt one to consider the cosmic forces at play in the realm of fiscal allocations and criminal behavior. As depicted in the scatterplot (Fig. 1), the data points exhibit a clear upward trend, showcasing the compelling association between these seemingly disparate phenomena.
These results challenge conventional wisdom and introduce a cosmic dimension to the understanding of economic and criminal dynamics. It may be apt to reframe the old adage "money doesn't grow on trees" to perhaps "money doesn't fly out of this world," as we ponder the possibility of extraterrestrial influences on earthly misdemeanors. This unexpected correlation beckons a reexamination of the traditional boundaries between earthly affairs and cosmic endeavors, inviting further exploration and contemplation.
One cannot help but marvel at the cosmic whimsy entwined in the coalescence of astronomical budgets and earthly theft, as our findings divulge the captivating interplay between these domains. This correlation, with its astronomical implications on earthly activities, introduces a whimsical twist to the conventional understanding of economics and crime, inspiring both curiosity and amusement.
In conclusion, the results of this study not only expose an unexpected correlation between the occurrences of robberies in California and the percentage of the US Federal Budget allocated to NASA, but also unearth the cosmic thread woven into the fabric of economic and criminal phenomena. This cosmic connection between the celestial and the terrestrial domains prompts us to reconsider the forces influencing our world, infusing levity and intrigue into the often serious realms of academia and policy.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our investigation into the link between robberies in California and NASA's budget as a percentage of the US Federal Budget has yielded some astronomically intriguing findings. The robust correlation coefficient of 0.8987233 suggests a strong positive association between these seemingly disparate variables. While we expected to uncover stellar insights, we were pleasantly surprised by the cosmic implications of our results.

This unexpected connection challenges traditional notions of fiscal dynamics and criminal behavior. It may be time to expand our financial lexicon to consider that "money doesn't fly out of this world," as our data points to potential extraterrestrial influences on earthly misdemeanors. The correlation between these celestial budgets and earthly theft adds a whimsical twist to our understanding of economics and crime, inviting both earnest reflection and cosmic mirth.

It is evident that further analysis in this celestial comedy of errors may shed light on the intricate interplay between astronomical budgets and earthly transgressions, but for now, we assert that no more research is needed in this area. The cosmic conundrum of budgetary influences on criminal activities has been sufficiently illuminated, leaving us with a starry-eyed appreciation for the cosmic capers of economics and crime.


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 Blasting off with Budgets: The Galactic Connection Between Robberies in California and NASA's Funding as a Percentage of the Total US Federal Budget. Respond only with the name of a fictional academic journal.

ChatGPT:

Journal of Extraterrestrial Economics


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 Blasting off with Budgets: The Galactic Connection Between Robberies in California and NASA's Funding as a Percentage of the Total US Federal Budget. Respond only with the name of a fictional organization.

ChatGPT:

The Cosmic Research Consortium


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 Blasting off with Budgets: The Galactic Connection Between Robberies in California and NASA's Funding as a Percentage of the Total US Federal Budget with an abstract of This research paper presents the tantalizingly hilarious investigation into the relationship between robberies in California and the funding allocated to NASA as a percentage of the overall US Federal Budget. Through the meticulous analysis of data from the FBI Criminal Justice Information Services, as well as the cosmic insights from Planetary.org, our research team unveiled a correlation coefficient of 0.8987233 and a p-value less than 0.01 for the period of 1985 to 2022. The results call for a reexamination of the old adage "money doesn't grow on trees" to perhaps "money doesn't fly out of this world" as we delve into the possibility of astronomical influences on earthly misdemeanors. This unexpected connection between earthly theft and astronomical budgets sheds light on the cosmic forces at play in the world of economics and crime, inviting further exploration and comedic speculation.

ChatGPT:

Robberies in California, NASA funding, US Federal Budget, correlation coefficient, FBI Criminal Justice Information Services, Planetary.org, cosmic influences, astronomical budgets, economic crime, correlation between robberies and budget

*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 California
Detailed data title: The robbery rate per 100,000 residents in California
Source: FBI Criminal Justice Information Services
See what else correlates with Robberies in California

NASA's budget as a percentage of the total US Federal Budget
Source: Planetary.org
See what else correlates with NASA's budget as a percentage of the total US Federal Budget

Correlation r = 0.8987233 (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.8077035 (Coefficient of determination)
This means 80.8% of the change in the one variable (i.e., NASA's budget as a percentage of the total US Federal Budget) is predictable based on the change in the other (i.e., Robberies in California) over the 38 years from 1985 through 2022.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 1.9E-14. 0.0000000000000188777638132932
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.9 in 1.9E-12% of random cases. Said differently, if you correlated 52,972,375,853,957 random variables You don't actually need 52 trillion 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 37 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 37 because we have two variables measured over a period of 38 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.81, 0.95 ] 95% correlation confidence interval (using the Fisher z-transformation)
The confidence interval is an estimate the range of the value of the correlation coefficient, using the correlation itself as an input. The values are meant to be the low and high end of the correlation coefficient with 95% confidence.

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


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

Still, sometimes one of the variables has more years of data available than the other. This page only shows the overlapping years. To see all the years, click on "See what else correlates with..." link above.
19851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022
Robberies in California (Robbery rate)327.7342.9301.3305.8331.8377411.3424.1405.1356.8331.2295.6252.5210.6181.1177.9186.7185.6179.8172.3176195.1193.4188.8173.4155.6144.1148.7139.6125.5135.6139.4143.7137.7132.6113.6114.1123.5
NASA's budget as a percentage of the total US Federal Budget (Percent of Federal Budget)0.770.750.760.850.960.991.051.011.010.940.880.890.90.860.80.750.760.720.680.660.630.570.580.60.540.550.490.490.490.490.50.490.470.480.480.350.330.41




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([327.7,342.9,301.3,305.8,331.8,377,411.3,424.1,405.1,356.8,331.2,295.6,252.5,210.6,181.1,177.9,186.7,185.6,179.8,172.3,176,195.1,193.4,188.8,173.4,155.6,144.1,148.7,139.6,125.5,135.6,139.4,143.7,137.7,132.6,113.6,114.1,123.5,])
array_2 = np.array([0.77,0.75,0.76,0.85,0.96,0.99,1.05,1.01,1.01,0.94,0.88,0.89,0.9,0.86,0.8,0.75,0.76,0.72,0.68,0.66,0.63,0.57,0.58,0.6,0.54,0.55,0.49,0.49,0.49,0.49,0.5,0.49,0.47,0.48,0.48,0.35,0.33,0.41,])
array_1_name = "Robberies in California"
array_2_name = "NASA's budget as a percentage of the total US Federal Budget"

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

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



Reuseable content

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

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

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

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

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

Download images for these variables:


View another random correlation

How fun was this correlation?

Your rating is much appreciated!


Correlation ID: 3593 · Black Variable ID: 20215 · Red Variable ID: 1084
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0