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

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is Number of public school students in 9th grade and the second variable is The number of legislators in Alaska.  The chart goes from 2003 to 2021, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

The influx of 9th graders sparked a sudden interest in politics, leading to a surge in student government campaigns. These campaigns became so competitive that they caught the attention of the current legislators who decided to mentor the aspiring young politicians. This unexpected mentorship program eventually led to a higher number of legislators in Alaska as more and more students entered into the political arena, proving that sometimes the real change-makers are not old enough to vote!

Model: dalle-3
Prompt: Create an image of a bustling classroom filled with 9th-grade students eagerly engaging in their lessons, surrounded by oversized pencils. Meanwhile, in the background, depict Alaska's Capitol building with a gathering of legislators addressing the concerns over the size of pencils and its impact on handwriting development in schools. The scene should capture the energetic atmosphere of the classroom and the serious discussion in the background, all while emphasizing the prominence of the oversized pencils. 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: Number of public school students in 9th grade and The number of legislators in Alaska. Given these, which of the following image style descriptions seems most appropriate? Pick the one that seems to be related to one of the variables at hand. Please respond with only one of the following potential descriptions: A comic-book-style illustration with muted colors and a dotted halftone pattern from the 1960s A scene from Skyrim Data cyber art An image that looks like it is a scene from a Pixar movie Vaporwave
ChatGPT: A scene from Skyrim

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 Number of public school students in 9th grade and The number of legislators in Alaska, in the following situation: Because as the number of public school students in 9th grade fluctuates, so does the demand for oversized pencils, ultimately leading to an increase in the number of legislators in Alaska. The need for legislators to address concerns over the size of pencils and the potential impact on handwriting development in schools cannot be overstated.. Keep the description simple.
ChatGPT: In a bustling classroom, a group of 9th grade students eagerly engages in their lessons. As the number of public school students in 9th grade fluctuates, the demand for oversized pencils increases dramatically. Meanwhile, in the background, Alaska's Capitol building sees a rise in the number of legislators, who gather to address concerns over the size of pencils and its potential impact on handwriting development in schools.

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: [ A scene from Skyrim ] and depicting this scene: In a bustling classroom, a group of 9th grade students eagerly engages in their lessons. As the number of public school students in 9th grade fluctuates, the demand for oversized pencils increases dramatically. Meanwhile, in the background, Alaska's Capitol building sees a rise in the number of legislators, who gather to address concerns over the size of pencils and its potential impact on handwriting development in schools. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: Create an image of a bustling classroom filled with 9th-grade students eagerly engaging in their lessons, surrounded by oversized pencils. Meanwhile, in the background, depict Alaska's Capitol building with a gathering of legislators addressing the concerns over the size of pencils and its impact on handwriting development in schools. The scene should capture the energetic atmosphere of the classroom and the serious discussion in the background, all while emphasizing the prominence of the oversized pencils.

*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 increases in Number of public school students in 9th grade positively influenced The number of legislators in Alaska.

AI academic paper

(Because p < 0.01)
Legislating Learning: An Analysis of the Class-Size Correlation in Alaska

The Alaskan Journal of Education Policy and Practice

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 Number of public school students in 9th grade and The number of legislators in Alaska. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

Include a pun in the title.

Your research team used data from National Center for Education Statistics and Bureau of Larbor Statistics to assess this nagging question. You found a correlation coefficient of 0.8645057 and p < 0.01 for 2003 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]]
"Legislating Learning: An Analysis of the Class-Size Correlation in Alaska"

[[ABSTRACT]]
In this paper, we delve into the curious correlation between the number of public school students in 9th grade and the number of legislators in Alaska. You might say we're "legislating" this relationship to find out if it's truly "class"-ic or just a coincidence. Our research team utilized data from the National Center for Education Statistics and Bureau of Labor Statistics to quench our curiosity about this seemingly unrelated pair.

Our findings revealed a correlation coefficient of 0.8645057, proving that there is indeed a significant relationship between the number of 9th-grade students in public schools and the number of legislators in Alaska. It appears that when it comes to education and governance in the Last Frontier, the two are more interconnected than one might "legislate." Despite the eye-rolling, we were told these are the jokes that are expected of a so-called "academic professional."

Overall, our research challenges the conventional wisdom about the separation of "school" and "state" and highlights the importance of considering all the factors at play when discussing educational policy and representation in government. One might say our findings are "legislation" that these seemingly unrelated variables should not be "class"-ified as independent.


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 Number of public school students in 9th grade and The number of legislators in Alaska. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

Here is the title and abstract of the paper:
[[TITLE]]
"Legislating Learning: An Analysis of the Class-Size Correlation in Alaska"

[[ABSTRACT]]
In this paper, we delve into the curious correlation between the number of public school students in 9th grade and the number of legislators in Alaska. You might say we're "legislating" this relationship to find out if it's truly "class"-ic or just a coincidence. Our research team utilized data from the National Center for Education Statistics and Bureau of Labor Statistics to quench our curiosity about this seemingly unrelated pair.

Our findings revealed a correlation coefficient of 0.8645057, proving that there is indeed a significant relationship between the number of 9th-grade students in public schools and the number of legislators in Alaska. It appears that when it comes to education and governance in the Last Frontier, the two are more interconnected than one might "legislate." Despite the eye-rolling, we were told these are the jokes that are expected of a so-called "academic professional."

Overall, our research challenges the conventional wisdom about the separation of "school" and "state" and highlights the importance of considering all the factors at play when discussing educational policy and representation in government. One might say our findings are "legislation" that these seemingly unrelated variables should not be "class"-ified as independent.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

As we delve into the fascinating world of education and governance, we are faced with a peculiar correlation that has raised more than a few eyebrows in the academic community. The connection between the number of public school students in 9th grade and the number of legislators in Alaska has baffled many, prompting inquiries that might seem as puzzling as a math problem with no solution. This relationship is not only statistically significant but also teeming with pun-tential - after all, who knew that class size and legislative size could be in cahoots?

And speaking of cahoots, one might say that when it comes to these seemingly unrelated variables, they are not so "non-sequential" after all. Our initial reaction mirrored that of a reluctant laugh at a dad joke - is there really a meaningful relationship between the number of 9th-grade students in public schools and the number of legislators in the land of the midnight sun?

Our research aimed to shed light on this peculiar association, attempting to answer the question: Are the number of students in their formative high school years and the number of lawmakers in a state truly intertwined, or are we simply playing a numbers game with no winning combination?

It turns out, much like a cleverly constructed dad joke, the correlation between these two variables is not to be dismissed lightly. With a correlation coefficient of 0.8645057, it seems that the number of 9th-grade students and the number of legislators in Alaska are more entwined than one might "legislate." It's almost as if they were destined to be part of the same punchline, adding a touch of unexpected humor to the otherwise serious world of statistical analysis.

So, what does this unexpected relationship mean for educational policy and governance in the Last Frontier? And how should we interpret this "class"-y correlation in the context of state representation? It seems that our findings suggest we need to rethink the traditional division between "school" and "state," as these seemingly unrelated variables are more interlinked than one might initially "legislate." Our research serves as a reminder that numbers, much like dad jokes, are never as independent as they might appear at first glance.

Through this research, we hope to challenge the conventional wisdom surrounding these variables and impress upon our readers the importance of considering all the factors at play when discussing educational policy and representation in government. In doing so, we hope to bring a little levity to the academic discourse, proving that even in the world of statistical analysis, there's always room for a well-placed pun or two!


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 Number of public school students in 9th grade and The number of legislators in Alaska. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

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

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

Start by naming serious-sounding studies by authors like Smith, Doe, and Jones - but then quickly devolve. Name some real non-fiction books that would be related to the topic. Then name some real fiction books that sound like they could be related. Then cite some social media posts you read that seem to be related.

Here is the title and abstract of the paper:
[[TITLE]]
"Legislating Learning: An Analysis of the Class-Size Correlation in Alaska"

[[ABSTRACT]]
In this paper, we delve into the curious correlation between the number of public school students in 9th grade and the number of legislators in Alaska. You might say we're "legislating" this relationship to find out if it's truly "class"-ic or just a coincidence. Our research team utilized data from the National Center for Education Statistics and Bureau of Labor Statistics to quench our curiosity about this seemingly unrelated pair.

Our findings revealed a correlation coefficient of 0.8645057, proving that there is indeed a significant relationship between the number of 9th-grade students in public schools and the number of legislators in Alaska. It appears that when it comes to education and governance in the Last Frontier, the two are more interconnected than one might "legislate." Despite the eye-rolling, we were told these are the jokes that are expected of a so-called "academic professional."

Overall, our research challenges the conventional wisdom about the separation of "school" and "state" and highlights the importance of considering all the factors at play when discussing educational policy and representation in government. One might say our findings are "legislation" that these seemingly unrelated variables should not be "class"-ified as independent.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
As we delve into the fascinating world of education and governance, we are faced with a peculiar correlation that has raised more than a few eyebrows in the academic community. The connection between the number of public school students in 9th grade and the number of legislators in Alaska has baffled many, prompting inquiries that might seem as puzzling as a math problem with no solution. This relationship is not only statistically significant but also teeming with pun-tential - after all, who knew that class size and legislative size could be in cahoots?
And speaking of cahoots, one might say that when it comes to these seemingly unrelated variables, they are not so "non-sequential" after all. Our initial reaction mirrored that of a reluctant laugh at a dad joke - is there really a meaningful relationship between the number of 9th-grade students in public schools and the number of legislators in the land of the midnight sun?
Our research aimed to shed light on this peculiar association, attempting to answer the question: Are the number of students in their formative high school years and the number of lawmakers in a state truly intertwined, or are we simply playing a numbers game with no winning combination?
It turns out, much like a cleverly constructed dad joke, the correlation between these two variables is not to be dismissed lightly. With a correlation coefficient of 0.8645057, it seems that the number of 9th-grade students and the number of legislators in Alaska are more entwined than one might "legislate." It's almost as if they were destined to be part of the same punchline, adding a touch of unexpected humor to the otherwise serious world of statistical analysis.
So, what does this unexpected relationship mean for educational policy and governance in the Last Frontier? And how should we interpret this "class"-y correlation in the context of state representation? It seems that our findings suggest we need to rethink the traditional division between "school" and "state," as these seemingly unrelated variables are more interlinked than one might initially "legislate." Our research serves as a reminder that numbers, much like dad jokes, are never as independent as they might appear at first glance.
Through this research, we hope to challenge the conventional wisdom surrounding these variables and impress upon our readers the importance of considering all the factors at play when discussing educational policy and representation in government. In doing so, we hope to bring a little levity to the academic discourse, proving that even in the world of statistical analysis, there's always room for a well-placed pun or two!

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

The connection between the number of public school students in 9th grade and the number of legislators in Alaska has sparked curiosity and disbelief in the academic community. Smith et al. (2015) explored this intriguing relationship between educational demographics and legislative representation, paving the way for subsequent research to further illuminate this unexpected correlation. Despite sounding like the setup to a convoluted dad joke, the link between class size and legislative size is no laughing matter – well, maybe just a little.

Doe's work in "Numbers and Politics: An Unlikely Alliance" delves into the intricate dance of statistics and governance, uncovering a surprising harmony between seemingly unrelated variables. After all, one must admit that when it comes to the number of influential figures in the lives of 9th graders, the presence of legislators might be more than just a number game – it's a potential game-changer. Sorry, I'm here all week.

Jones' publication "The Algebra of Representation" sheds light on the mathematical underpinnings of legislative dynamics and their unforeseen connection to educational demographics. The author's findings challenge the traditional notion that school and state are independent entities, hinting at a more intertwined relationship akin to a good old-fashioned dad joke – both are surprisingly difficult to ignore.

In the realm of non-fiction literature, the works of "Educational Equations: Unveiling the Mysteries of School Systems" and "Legislative Limericks: The Art of Political Puns" expound upon the complex interplay between education and governance, providing valuable insights into the correlation between the number of 9th-grade students and the legislative body in Alaska. The unexpected humor in uncovering this connection is not lost on the academic community, much like a well-timed dad joke at a serious conference.

Turning to unexpected sources, fictional works like "The Count of Monte Legislate" and "Great Expectations: Legislative Edition" offer imaginative narratives that, surprisingly, touch upon the intersection of educational demographics and political representation. While not factual research, these literary pieces prompt reflection on the hidden ties between seemingly disparate elements, akin to the revelation of a dad joke's hidden punchline.

In the world of social media, a tweet by @EduFacts247 jokingly remarked, "Who knew that counting 9th graders and counting legislators could be related? #DadJokesInResearch." The light-hearted comment inadvertently captures the essence of this peculiar relationship, demonstrating that even in the serious pursuit of knowledge, a touch of humor can be as enlightening as it is entertaining.

Excuse the pun, but it seems the linkage between the number of 9th-grade students and the number of legislators in Alaska is not merely academic – it's a numbers game with significant implications for educational policy and governance. With scholarly literature, fiction, and social media banter painting a colorful panorama of this unexpected correlation, it's evident that this research has sparked the kind of interest that not even a well-crafted dad joke could elicit.


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 Number of public school students in 9th grade and The number of legislators in Alaska. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

Your research team collected data from all across the internet, but mostly just used information from National Center for Education Statistics and Bureau of Larbor Statistics . You used data from 2003 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]]
"Legislating Learning: An Analysis of the Class-Size Correlation in Alaska"

[[ABSTRACT]]
In this paper, we delve into the curious correlation between the number of public school students in 9th grade and the number of legislators in Alaska. You might say we're "legislating" this relationship to find out if it's truly "class"-ic or just a coincidence. Our research team utilized data from the National Center for Education Statistics and Bureau of Labor Statistics to quench our curiosity about this seemingly unrelated pair.

Our findings revealed a correlation coefficient of 0.8645057, proving that there is indeed a significant relationship between the number of 9th-grade students in public schools and the number of legislators in Alaska. It appears that when it comes to education and governance in the Last Frontier, the two are more interconnected than one might "legislate." Despite the eye-rolling, we were told these are the jokes that are expected of a so-called "academic professional."

Overall, our research challenges the conventional wisdom about the separation of "school" and "state" and highlights the importance of considering all the factors at play when discussing educational policy and representation in government. One might say our findings are "legislation" that these seemingly unrelated variables should not be "class"-ified as independent.

[[INTRODUCTION]]
As we delve into the fascinating world of education and governance, we are faced with a peculiar correlation that has raised more than a few eyebrows in the academic community. The connection between the number of public school students in 9th grade and the number of legislators in Alaska has baffled many, prompting inquiries that might seem as puzzling as a math problem with no solution. This relationship is not only statistically significant but also teeming with pun-tential - after all, who knew that class size and legislative size could be in cahoots?
And speaking of cahoots, one might say that when it comes to these seemingly unrelated variables, they are not so "non-sequential" after all. Our initial reaction mirrored that of a reluctant laugh at a dad joke - is there really a meaningful relationship between the number of 9th-grade students in public schools and the number of legislators in the land of the midnight sun?
Our research aimed to shed light on this peculiar association, attempting to answer the question: Are the number of students in their formative high school years and the number of lawmakers in a state truly intertwined, or are we simply playing a numbers game with no winning combination?
It turns out, much like a cleverly constructed dad joke, the correlation between these two variables is not to be dismissed lightly. With a correlation coefficient of 0.8645057, it seems that the number of 9th-grade students and the number of legislators in Alaska are more entwined than one might "legislate." It's almost as if they were destined to be part of the same punchline, adding a touch of unexpected humor to the otherwise serious world of statistical analysis.
So, what does this unexpected relationship mean for educational policy and governance in the Last Frontier? And how should we interpret this "class"-y correlation in the context of state representation? It seems that our findings suggest we need to rethink the traditional division between "school" and "state," as these seemingly unrelated variables are more interlinked than one might initially "legislate." Our research serves as a reminder that numbers, much like dad jokes, are never as independent as they might appear at first glance.
Through this research, we hope to challenge the conventional wisdom surrounding these variables and impress upon our readers the importance of considering all the factors at play when discussing educational policy and representation in government. In doing so, we hope to bring a little levity to the academic discourse, proving that even in the world of statistical analysis, there's always room for a well-placed pun or two!

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

Ah, the methodology section – where the magic (or madness, depending on who you ask) happens. In order to uncover the mysteries behind the intriguing correlation between the number of public school students in 9th grade and the number of legislators in Alaska, our research team embarked on an adventure that could be likened to searching for a punchline in a sea of dad jokes.

In classic academic fashion, we combed through a plethora of data sources, with the National Center for Education Statistics and the Bureau of Labor Statistics serving as our trusty companions on this statistical expedition. After all, what's a research endeavor without a reliable sidekick or two? It's like they say, "Where there's an academic pursuit, there's data – and maybe a can of soda, too."

We collected data spanning from 2003 to 2021, creating a timeline akin to the plot of a suspenseful novel, with twists, turns, and statistical significance waiting just around the corner. It's a bit like conducting a thorough investigation, except our suspects are numbers and our evidence is correlation coefficients.

Our team utilized a medley of statistical techniques including regression analysis, time series analysis, and cluster sampling, creating a methodology that could be described as a statistical casserole – a little bit of this, a pinch of that, and a whole lot of number-crunching fun. It's like preparing a hearty meal, but instead of ingredients, we're dealing with variables and covariates.

Speaking of variables and covariates, our research involved mulling over a myriad of factors that could potentially influence the relationship between class size and legislative representation. We explored everything from economic indicators to educational policies, creating a comprehensive analysis that could be viewed as the academic equivalent of making a potluck dish – everyone contributes something, and in the end, we hope it all comes together in a meaningful way.

But, much like a dad joke, our methodology is not without its quirks and playful nuances. We've combined the rigors of statistical analysis with a sprinkle of humor, aiming to infuse a bit of levity into the often serious world of research methodologies. After all, who said statistical research can't have a sense of humor? It's like adding a clever twist to a well-worn joke – unexpected and refreshing.


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 Number of public school students in 9th grade and The number of legislators in Alaska. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

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

For the time period 2003 to 2021, you found a correlation 0.8645057, r-squared of 0.7473702, 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]]
"Legislating Learning: An Analysis of the Class-Size Correlation in Alaska"

[[ABSTRACT]]
In this paper, we delve into the curious correlation between the number of public school students in 9th grade and the number of legislators in Alaska. You might say we're "legislating" this relationship to find out if it's truly "class"-ic or just a coincidence. Our research team utilized data from the National Center for Education Statistics and Bureau of Labor Statistics to quench our curiosity about this seemingly unrelated pair.

Our findings revealed a correlation coefficient of 0.8645057, proving that there is indeed a significant relationship between the number of 9th-grade students in public schools and the number of legislators in Alaska. It appears that when it comes to education and governance in the Last Frontier, the two are more interconnected than one might "legislate." Despite the eye-rolling, we were told these are the jokes that are expected of a so-called "academic professional."

Overall, our research challenges the conventional wisdom about the separation of "school" and "state" and highlights the importance of considering all the factors at play when discussing educational policy and representation in government. One might say our findings are "legislation" that these seemingly unrelated variables should not be "class"-ified as independent.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
As we delve into the fascinating world of education and governance, we are faced with a peculiar correlation that has raised more than a few eyebrows in the academic community. The connection between the number of public school students in 9th grade and the number of legislators in Alaska has baffled many, prompting inquiries that might seem as puzzling as a math problem with no solution. This relationship is not only statistically significant but also teeming with pun-tential - after all, who knew that class size and legislative size could be in cahoots?
And speaking of cahoots, one might say that when it comes to these seemingly unrelated variables, they are not so "non-sequential" after all. Our initial reaction mirrored that of a reluctant laugh at a dad joke - is there really a meaningful relationship between the number of 9th-grade students in public schools and the number of legislators in the land of the midnight sun?
Our research aimed to shed light on this peculiar association, attempting to answer the question: Are the number of students in their formative high school years and the number of lawmakers in a state truly intertwined, or are we simply playing a numbers game with no winning combination?
It turns out, much like a cleverly constructed dad joke, the correlation between these two variables is not to be dismissed lightly. With a correlation coefficient of 0.8645057, it seems that the number of 9th-grade students and the number of legislators in Alaska are more entwined than one might "legislate." It's almost as if they were destined to be part of the same punchline, adding a touch of unexpected humor to the otherwise serious world of statistical analysis.
So, what does this unexpected relationship mean for educational policy and governance in the Last Frontier? And how should we interpret this "class"-y correlation in the context of state representation? It seems that our findings suggest we need to rethink the traditional division between "school" and "state," as these seemingly unrelated variables are more interlinked than one might initially "legislate." Our research serves as a reminder that numbers, much like dad jokes, are never as independent as they might appear at first glance.
Through this research, we hope to challenge the conventional wisdom surrounding these variables and impress upon our readers the importance of considering all the factors at play when discussing educational policy and representation in government. In doing so, we hope to bring a little levity to the academic discourse, proving that even in the world of statistical analysis, there's always room for a well-placed pun or two!

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The analysis of the data collected from 2003 to 2021 revealed a strong correlation between the number of public school students in 9th grade and the number of legislators in Alaska. The correlation coefficient, calculated to be 0.8645057, indicates a robust positive relationship between these seemingly unrelated variables. It seems that when it comes to education and governance in the Last Frontier, the two are more connected than one might "legislate." We can't help but wonder if the legislators have been taking attendance!

The r-squared value of 0.7473702 further confirms the strength of this association, showing that approximately 74.7% of the variation in the number of legislators can be explained by the number of 9th-grade students. It's almost as if the legislators are making laws with one "i" on their students!

Furthermore, the p-value of less than 0.01 suggests that this correlation is statistically significant. It's as clear as day that this relationship is not just a fluke or a mere coincidence. One might even say it's as crucial as having a "class" clown in the legislature!

Fig. 1 displays the scatterplot illustrating the strong positive correlation between the number of 9th-grade students in public schools and the number of legislators in the state of Alaska. The plot points form a pattern that seems to say, "You can count on us to be connected!" Just like the unexpected punchline in a dad joke, this correlation certainly adds an element of surprise to the academic discourse.


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 Number of public school students in 9th grade and The number of legislators in Alaska. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

Limit your response to 500 tokens.

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

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

[[TITLE]]
"Legislating Learning: An Analysis of the Class-Size Correlation in Alaska"

[[ABSTRACT]]
In this paper, we delve into the curious correlation between the number of public school students in 9th grade and the number of legislators in Alaska. You might say we're "legislating" this relationship to find out if it's truly "class"-ic or just a coincidence. Our research team utilized data from the National Center for Education Statistics and Bureau of Labor Statistics to quench our curiosity about this seemingly unrelated pair.

Our findings revealed a correlation coefficient of 0.8645057, proving that there is indeed a significant relationship between the number of 9th-grade students in public schools and the number of legislators in Alaska. It appears that when it comes to education and governance in the Last Frontier, the two are more interconnected than one might "legislate." Despite the eye-rolling, we were told these are the jokes that are expected of a so-called "academic professional."

Overall, our research challenges the conventional wisdom about the separation of "school" and "state" and highlights the importance of considering all the factors at play when discussing educational policy and representation in government. One might say our findings are "legislation" that these seemingly unrelated variables should not be "class"-ified as independent.

[[LITERATURE REVIEW]]
The connection between the number of public school students in 9th grade and the number of legislators in Alaska has sparked curiosity and disbelief in the academic community. Smith et al. (2015) explored this intriguing relationship between educational demographics and legislative representation, paving the way for subsequent research to further illuminate this unexpected correlation. Despite sounding like the setup to a convoluted dad joke, the link between class size and legislative size is no laughing matter – well, maybe just a little.
Doe's work in "Numbers and Politics: An Unlikely Alliance" delves into the intricate dance of statistics and governance, uncovering a surprising harmony between seemingly unrelated variables. After all, one must admit that when it comes to the number of influential figures in the lives of 9th graders, the presence of legislators might be more than just a number game – it's a potential game-changer. Sorry, I'm here all week.
Jones' publication "The Algebra of Representation" sheds light on the mathematical underpinnings of legislative dynamics and their unforeseen connection to educational demographics. The author's findings challenge the traditional notion that school and state are independent entities, hinting at a more intertwined relationship akin to a good old-fashioned dad joke – both are surprisingly difficult to ignore.
In the realm of non-fiction literature, the works of "Educational Equations: Unveiling the Mysteries of School Systems" and "Legislative Limericks: The Art of Political Puns" expound upon the complex interplay between education and governance, providing valuable insights into the correlation between the number of 9th-grade students and the legislative body in Alaska. The unexpected humor in uncovering this connection is not lost on the academic community, much like a well-timed dad joke at a serious conference.
Turning to unexpected sources, fictional works like "The Count of Monte Legislate" and "Great Expectations: Legislative Edition" offer imaginative narratives that, surprisingly, touch upon the intersection of educational demographics and political representation. While not factual research, these literary pieces prompt reflection on the hidden ties between seemingly disparate elements, akin to the revelation of a dad joke's hidden punchline.
In the world of social media, a tweet by @EduFacts247 jokingly remarked, "Who knew that counting 9th graders and counting legislators could be related? #DadJokesInResearch." The light-hearted comment inadvertently captures the essence of this peculiar relationship, demonstrating that even in the serious pursuit of knowledge, a touch of humor can be as enlightening as it is entertaining.
Excuse the pun, but it seems the linkage between the number of 9th-grade students and the number of legislators in Alaska is not merely academic – it's a numbers game with significant implications for educational policy and governance. With scholarly literature, fiction, and social media banter painting a colorful panorama of this unexpected correlation, it's evident that this research has sparked the kind of interest that not even a well-crafted dad joke could elicit.

[[RESULTS]]
The analysis of the data collected from 2003 to 2021 revealed a strong correlation between the number of public school students in 9th grade and the number of legislators in Alaska. The correlation coefficient, calculated to be 0.8645057, indicates a robust positive relationship between these seemingly unrelated variables. It seems that when it comes to education and governance in the Last Frontier, the two are more connected than one might "legislate." We can't help but wonder if the legislators have been taking attendance!
The r-squared value of 0.7473702 further confirms the strength of this association, showing that approximately 74.7% of the variation in the number of legislators can be explained by the number of 9th-grade students. It's almost as if the legislators are making laws with one "i" on their students!
Furthermore, the p-value of less than 0.01 suggests that this correlation is statistically significant. It's as clear as day that this relationship is not just a fluke or a mere coincidence. One might even say it's as crucial as having a "class" clown in the legislature!
Fig. 1 displays the scatterplot illustrating the strong positive correlation between the number of 9th-grade students in public schools and the number of legislators in the state of Alaska. The plot points form a pattern that seems to say, "You can count on us to be connected!" Just like the unexpected punchline in a dad joke, this correlation certainly adds an element of surprise to the academic discourse.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

Our study provides compelling evidence of a strong and significant relationship between the number of public school students in 9th grade and the number of legislators in Alaska. The findings confirm and extend prior research on this rather peculiar connection, shedding light on the surprising influence of educational demographics on legislative dynamics. It's safe to say that this correlation is no "joke" – well, maybe a dad joke or two.

The literature, though peppered with puns and lighthearted jests, has consistently highlighted the unexpected bond between class size and legislative size. Our results only serve to underscore the robustness of this relationship, reaffirming that educational demographics are more than mere numbers – they can wield significant influence on political representation. Much like a dad joke, this connection may catch us off guard, but its impact is undeniable.

Our findings align with Smith et al.'s (2015) preliminary work, lending further support to the notion that the number of legislators in Alaska is intricately linked with the number of 9th-grade students in public schools. The substantial correlation coefficient we obtained substantiates the idea that educational demographics play a significant role in shaping the legislative landscape. It's as if the legislators are saying, "I'm just here for the 'class' act!" – cue the dad joke drumroll.

Furthermore, Jones' insights on the mathematical underpinnings of legislative dynamics find resonance in our results, highlighting the unexpected harmony between seemingly unrelated variables. This prompts us to think of the relationship between class size and legislative size as not just an academic curiosity, but a substantial influence worthy of further investigation. It's like finding a hidden punchline in a dad joke – you never quite expect it, but it's there, and it leaves an impression.

Our research further corroborates the unconventional narratives in fictional works like "The Count of Monte Legislate" and "Great Expectations: Legislative Edition," where the intersection of educational demographics and political representation is imaginatively explored. The seemingly disparate elements in our study, much like the unexpected twists in a good dad joke, coalesce into a coherent and meaningful story, demonstrating that this relationship is not a mere statistical curiosity, but a substantive factor in educational policy and governance.

In conclusion, our findings bolster the idea that the number of 9th-grade students and the legislative body in Alaska are indeed intertwined in a way that cannot be dismissed as mere coincidence. This unexpected correlation, much like a well-timed dad joke, brings an element of surprise and levity to the academic discourse while underscoring the substantial implications for educational policy and representation in government. It's clear that when it comes to the connection between class size and legislative size, this research is no laughing matter – except for the occasional dad joke, of course.


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 Number of public school students in 9th grade and The number of legislators in Alaska. You can't resist a good dad joke. Add a relevant dad joke related to the content every couple of sentences.

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

Here are the title, abstract, introduction, and results sections.
[[TITLE]]
"Legislating Learning: An Analysis of the Class-Size Correlation in Alaska"

[[ABSTRACT]]
In this paper, we delve into the curious correlation between the number of public school students in 9th grade and the number of legislators in Alaska. You might say we're "legislating" this relationship to find out if it's truly "class"-ic or just a coincidence. Our research team utilized data from the National Center for Education Statistics and Bureau of Labor Statistics to quench our curiosity about this seemingly unrelated pair.

Our findings revealed a correlation coefficient of 0.8645057, proving that there is indeed a significant relationship between the number of 9th-grade students in public schools and the number of legislators in Alaska. It appears that when it comes to education and governance in the Last Frontier, the two are more interconnected than one might "legislate." Despite the eye-rolling, we were told these are the jokes that are expected of a so-called "academic professional."

Overall, our research challenges the conventional wisdom about the separation of "school" and "state" and highlights the importance of considering all the factors at play when discussing educational policy and representation in government. One might say our findings are "legislation" that these seemingly unrelated variables should not be "class"-ified as independent.

[[INTRDUCTION]]
As we delve into the fascinating world of education and governance, we are faced with a peculiar correlation that has raised more than a few eyebrows in the academic community. The connection between the number of public school students in 9th grade and the number of legislators in Alaska has baffled many, prompting inquiries that might seem as puzzling as a math problem with no solution. This relationship is not only statistically significant but also teeming with pun-tential - after all, who knew that class size and legislative size could be in cahoots?
And speaking of cahoots, one might say that when it comes to these seemingly unrelated variables, they are not so "non-sequential" after all. Our initial reaction mirrored that of a reluctant laugh at a dad joke - is there really a meaningful relationship between the number of 9th-grade students in public schools and the number of legislators in the land of the midnight sun?
Our research aimed to shed light on this peculiar association, attempting to answer the question: Are the number of students in their formative high school years and the number of lawmakers in a state truly intertwined, or are we simply playing a numbers game with no winning combination?
It turns out, much like a cleverly constructed dad joke, the correlation between these two variables is not to be dismissed lightly. With a correlation coefficient of 0.8645057, it seems that the number of 9th-grade students and the number of legislators in Alaska are more entwined than one might "legislate." It's almost as if they were destined to be part of the same punchline, adding a touch of unexpected humor to the otherwise serious world of statistical analysis.
So, what does this unexpected relationship mean for educational policy and governance in the Last Frontier? And how should we interpret this "class"-y correlation in the context of state representation? It seems that our findings suggest we need to rethink the traditional division between "school" and "state," as these seemingly unrelated variables are more interlinked than one might initially "legislate." Our research serves as a reminder that numbers, much like dad jokes, are never as independent as they might appear at first glance.
Through this research, we hope to challenge the conventional wisdom surrounding these variables and impress upon our readers the importance of considering all the factors at play when discussing educational policy and representation in government. In doing so, we hope to bring a little levity to the academic discourse, proving that even in the world of statistical analysis, there's always room for a well-placed pun or two!

[[RESULTS]]
The analysis of the data collected from 2003 to 2021 revealed a strong correlation between the number of public school students in 9th grade and the number of legislators in Alaska. The correlation coefficient, calculated to be 0.8645057, indicates a robust positive relationship between these seemingly unrelated variables. It seems that when it comes to education and governance in the Last Frontier, the two are more connected than one might "legislate." We can't help but wonder if the legislators have been taking attendance!
The r-squared value of 0.7473702 further confirms the strength of this association, showing that approximately 74.7% of the variation in the number of legislators can be explained by the number of 9th-grade students. It's almost as if the legislators are making laws with one "i" on their students!
Furthermore, the p-value of less than 0.01 suggests that this correlation is statistically significant. It's as clear as day that this relationship is not just a fluke or a mere coincidence. One might even say it's as crucial as having a "class" clown in the legislature!
Fig. 1 displays the scatterplot illustrating the strong positive correlation between the number of 9th-grade students in public schools and the number of legislators in the state of Alaska. The plot points form a pattern that seems to say, "You can count on us to be connected!" Just like the unexpected punchline in a dad joke, this correlation certainly adds an element of surprise to the academic discourse.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our research has delved into the unexpected but undeniable connection between the number of 9th-grade students in public schools and the number of legislators in Alaska. It seems that when it comes to these seemingly unrelated variables, they are as interlinked as a dad joke and an eye roll. Our findings have shed light on the importance of considering all factors, whether serious or ticklish, when discussing educational policy and representation in government.

Much like a good dad joke, the correlation coefficient of 0.8645057 has revealed that this relationship is no laughing matter - it's statistically significant! It's almost as if the legislators have been "counting" on the students all along. Our research emphasizes the need to rethink the traditional separation between "school" and "state" and highlights the unexpected partnerships that can emerge when we dive into the numbers.

In the grand tradition of dad jokes, our findings suggest that no more research is needed in this area. We've "counted" the connections and are confident that this correlation is as solid as a well-crafted pun.

And there you have it - case closed! It's as clear as 1, 2, 3.


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 Legislating Learning: An Analysis of the Class-Size Correlation in Alaska. Respond only with the name of a fictional academic journal.

ChatGPT:

The Alaskan Journal of Education Policy and Practice


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 Legislating Learning: An Analysis of the Class-Size Correlation in Alaska. Respond only with the name of a fictional organization.

ChatGPT:

The Center for Educational Equity and Opportunity


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 Legislating Learning: An Analysis of the Class-Size Correlation in Alaska with an abstract of In this paper, we delve into the curious correlation between the number of public school students in 9th grade and the number of legislators in Alaska. You might say we're "legislating" this relationship to find out if it's truly "class"-ic or just a coincidence. Our research team utilized data from the National Center for Education Statistics and Bureau of Labor Statistics to quench our curiosity about this seemingly unrelated pair.
Our findings revealed a correlation coefficient of 0.8645057, proving that there is indeed a significant relationship between the number of 9th-grade students in public schools and the number of legislators in Alaska. It appears that when it comes to education and governance in the Last Frontier, the two are more interconnected than one might "legislate." Despite the eye-rolling, we were told these are the jokes that are expected of a so-called "academic professional."
Overall, our research challenges the conventional wisdom about the separation of "school" and "state" and highlights the importance of considering all the factors at play when discussing educational policy and representation in government. One might say our findings are "legislation" that these seemingly unrelated variables should not be "class"-ified as independent.

ChatGPT:

Alaska, education policy, class size, legislators, public school students, correlation analysis, National Center for Education Statistics, Bureau of Labor Statistics, educational governance

*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

Number of public school students in 9th grade
Detailed data title: 9th grade enrollment in public elementary and secondary schools
Source: National Center for Education Statistics
See what else correlates with Number of public school students in 9th grade

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

Correlation r = 0.8645057 (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.7473702 (Coefficient of determination)
This means 74.7% of the change in the one variable (i.e., The number of legislators in Alaska) is predictable based on the change in the other (i.e., Number of public school students in 9th grade) over the 19 years from 2003 through 2021.

p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 1.81E-6. 0.0000018081827101369380000000
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.86 in 0.000181% of random cases. Said differently, if you correlated 553,041 random variables You don't actually need 553 thousand variables to find a correlation like this one. I don't have that many variables in my database. You can also correlate variables that are not independent. I do this a lot.

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

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

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

[ 0.68, 0.95 ] 95% correlation confidence interval (using the Fisher z-transformation)
The confidence interval is an estimate the range of the value of the correlation coefficient, using the correlation itself as an input. The values are meant to be the low and high end of the correlation coefficient with 95% confidence.

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


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

Still, sometimes one of the variables has more years of data available than the other. This page only shows the overlapping years. To see all the years, click on "See what else correlates with..." link above.
2003200420052006200720082009201020112012201320142015201620172018201920202021
Number of public school students in 9th grade (Students)4190240428134042871204259910419983041225504080020400786039569903975260397952040325304019480398617039955704004440404423040137304168520
The number of legislators in Alaska (Legislators)360450410450310370290230100170160150100110120180200180590




Why this works

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

    For the purposes of this project, I counted a point as an outlier if it the residual was two standard deviations from the mean.

    (This bullet point only shows up in the details page on charts that do, in fact, have outliers.)
    They stand out on the scatterplot above: notice the dots that are far away from any other dots. I intentionally mishandeled outliers, which makes the correlation look extra strong.




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([4190240,4281340,4287120,4259910,4199830,4122550,4080020,4007860,3956990,3975260,3979520,4032530,4019480,3986170,3995570,4004440,4044230,4013730,4168520,])
array_2 = np.array([360,450,410,450,310,370,290,230,100,170,160,150,100,110,120,180,200,180,590,])
array_1_name = "Number of public school students in 9th grade"
array_2_name = "The number of legislators in Alaska"

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

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



Reuseable content

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

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

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

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

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

Download images for these variables:


View another random correlation

How fun was this correlation?

I'm genuinely thankful for your rating!


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

CC BY 4.0