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

A linear line chart with years as the X-axis and two variables on the Y-axis. The first variable is NYSE Composite Index Annual Percentage Change and the second variable is The number of merchandise displayers and window trimmers in Puerto Rico.  The chart goes from 2003 to 2022, and the two variables track closely in value over that time. Small Image
Download png
, svg

AI explanation

As the stocks fell, so did the window displays in Puerto Rico. It seems the market downturn really put a pane in the retail industry's plans, leading to a clear selloff of those in the merchandise display and window trimming business. It's just a sashame how the NYSE's performance had such a direct impact on Puerto Rico's window fashionistas.

Model: dalle-3
Prompt: [A photo-realistic image] An aerial view of a vibrant street in the heart of San Juan, Puerto Rico. The colorful facades of buildings line the bustling street, drawing the eye to a large electronic screen on one building displaying the NYSE Composite Index Annual Percentage Change, indicating a noticeable dip. Through the bright windows of a retail store, we observe the dwindling number of merchandise displayers and window trimmers, some employees sadly packing up their display materials. The somber expressions on the employees' faces reflect the connection between the dropping stock market performance and the reduced workforce. 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: NYSE Composite Index Annual Percentage Change and The number of merchandise displayers and window trimmers in Puerto Rico. 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 photo-realistic image Brutalism A comic-book-style illustration with muted colors and a dotted halftone pattern from the 1960s a funny image macro Cybernetic art
ChatGPT: A photo-realistic image

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 NYSE Composite Index Annual Percentage Change and The number of merchandise displayers and window trimmers in Puerto Rico, in the following situation: Because as the stock market's performance dropped, so did Puerto Rico's displayers and trimmers - turns out they trimmed their workforce in line with the market's downward trend. They just couldn't display the same enthusiasm for the job when their stocks were down!. Keep the description simple.
ChatGPT: In the heart of San Juan, Puerto Rico, a bustling street is lined with colorful storefronts. A large electronic screen on one building displays the NYSE Composite Index Annual Percentage Change, showing a noticeable dip. Meanwhile, through the bright windows of a retail store, we see the number of merchandise displayers and window trimmers dwindling as some employees sadly pack up their display materials. The connection between the dropping stock market performance and the reduced workforce is evident in the somber expressions on the faces of the employees.

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 photo-realistic image ] and depicting this scene: In the heart of San Juan, Puerto Rico, a bustling street is lined with colorful storefronts. A large electronic screen on one building displays the NYSE Composite Index Annual Percentage Change, showing a noticeable dip. Meanwhile, through the bright windows of a retail store, we see the number of merchandise displayers and window trimmers dwindling as some employees sadly pack up their display materials. The connection between the dropping stock market performance and the reduced workforce is evident in the somber expressions on the faces of the employees. Keep the visual depiction simple. Do not include any words or speech bubbles.
ChatGPT: [A photo-realistic image] An aerial view of a vibrant street in the heart of San Juan, Puerto Rico. The colorful facades of buildings line the bustling street, drawing the eye to a large electronic screen on one building displaying the NYSE Composite Index Annual Percentage Change, indicating a noticeable dip. Through the bright windows of a retail store, we observe the dwindling number of merchandise displayers and window trimmers, some employees sadly packing up their display materials. The somber expressions on the employees' faces reflect the connection between the dropping stock market performance and the reduced workforce.

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

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

Model: gpt-3.5-turbo-1106 (fine-tuned)
System prompt: You provide humorous responses in the form of plausible sounding explanations for correlations. You assume the correlation is causative for the purpose of the explanation even if it is ridiculous. You do not chat with the user, you only reply with the causal connection explanation and nothing else.
User prompt: Please make up a funny explanation for how a decrease in NYSE Composite Index Annual Percentage Change caused The number of merchandise displayers and window trimmers in Puerto Rico to decrease. Include one good pun.

AI academic paper

(Because p < 0.05)
Stock Ticker Shock: Exploring the Relationship between NYSE Composite Index Annual Percentage Change and The Impact of Merchandise Displayers and Window Trimmers on the Island of Enchantment

The Journal of Financial Feng Shui and Market Mojo

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 witty academic researcher. Your writing sounds like it belongs in a statistics 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 NYSE Composite Index Annual Percentage Change and The number of merchandise displayers and window trimmers in Puerto Rico. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

Make the title a clever pun.

Your research team used data from 1stock1 and Bureau of Larbor Statistics to assess this nagging question. You found a correlation coefficient of 0.5538451 and p < 0.05 for 2003 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]]
Stock Ticker Shock: Exploring the Relationship between NYSE Composite Index Annual Percentage Change and The Impact of Merchandise Displayers and Window Trimmers on the Island of Enchantment

[[ABSTRACT]]
This study delves into the seemingly paradoxical correlation between the annual percentage change of the New York Stock Exchange (NYSE) Composite Index and the number of merchandise displayers and window trimmers in Puerto Rico. We probed this atypical connection by harnessing data from 1stock1 and the Bureau of Labor Statistics, examining the years 2003 to 2022. The analysis revealed a correlation coefficient of 0.5538451, with a p-value less than 0.05, humorously illustrating a noteworthy relationship that may warrant further investigation. This serendipitous discovery invites speculation and adds a dash of piquancy to the sometimes bland landscape of financial and labor economics.


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics 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 NYSE Composite Index Annual Percentage Change and The number of merchandise displayers and window trimmers in Puerto Rico. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, 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]]
Stock Ticker Shock: Exploring the Relationship between NYSE Composite Index Annual Percentage Change and The Impact of Merchandise Displayers and Window Trimmers on the Island of Enchantment

[[ABSTRACT]]
This study delves into the seemingly paradoxical correlation between the annual percentage change of the New York Stock Exchange (NYSE) Composite Index and the number of merchandise displayers and window trimmers in Puerto Rico. We probed this atypical connection by harnessing data from 1stock1 and the Bureau of Labor Statistics, examining the years 2003 to 2022. The analysis revealed a correlation coefficient of 0.5538451, with a p-value less than 0.05, humorously illustrating a noteworthy relationship that may warrant further investigation. This serendipitous discovery invites speculation and adds a dash of piquancy to the sometimes bland landscape of financial and labor economics.

-------

Your response should start like this:

[[INTRODUCTION]]



ChatGPT:
[[INTRODUCTION]]

In the realm of finance and labor economics, there is a perennial quest to uncover hidden connections and unexpected relationships. Our study, titled "Stock Ticker Shock: Exploring the Relationship between NYSE Composite Index Annual Percentage Change and The Impact of Merchandise Displayers and Window Trimmers on the Island of Enchantment," embarks on an intriguing exploration of the intertwined dynamics between stock market movements and the labor force in the enchanting setting of Puerto Rico.

As financial analysts and labor economists, we are no strangers to the conventional relationships between economic indicators and labor market variables. However, in the course of our analysis, we stumbled upon a correlation that could be described as nothing short of enchanting – the perplexing link between the annual percentage change of the NYSE Composite Index and the number of merchandise displayers and window trimmers in the captivating island of Puerto Rico.

Our investigation harnessed datasets from 1stock1 and the Bureau of Labor Statistics, spanning the years 2003 to 2022. The resulting analysis unveiled a correlation coefficient of 0.5538451, accompanied by a p-value that wielded its significance with aplomb, clocking in at less than 0.05. These statistical revelations, while unexpected, provided us with a whimsical glimpse into a relationship that beckons for further unraveling.

The serendipitous discovery of this correlation not only piqued our curiosity but also infused a touch of mirth into the typically serious domain of financial and labor economics. This finding injects a dash of intrigue and a hint of whimsy into the otherwise staid landscape of economic analyses, prompting us to dive deeper into the underlying nuances of this unanticipated affinity.

As we embark on this scholarly journey, our aim is not only to relay the statistical evidence of this connection but also to elicit a subtle chuckle and a raised eyebrow from our esteemed colleagues in the field. Join us as we unravel the mysterious union between stock market gyrations and the labor force in the idyllic backdrop of Puerto Rico, and perhaps, uncover a few unexpected surprises along the way.


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics 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 NYSE Composite Index Annual Percentage Change and The number of merchandise displayers and window trimmers in Puerto Rico. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, jokes, goofy observations, and puns.

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

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

Start by naming serious-sounding studies by authors like Smith, Doe, and Jones - but then quickly devolve. Name some real non-fiction books that would be related to the topic. Then name some real fiction books that sound like they could be related. Then name some movies that you watched that are tangentially related to the topic.

Here is the title and abstract of the paper:
[[TITLE]]
Stock Ticker Shock: Exploring the Relationship between NYSE Composite Index Annual Percentage Change and The Impact of Merchandise Displayers and Window Trimmers on the Island of Enchantment

[[ABSTRACT]]
This study delves into the seemingly paradoxical correlation between the annual percentage change of the New York Stock Exchange (NYSE) Composite Index and the number of merchandise displayers and window trimmers in Puerto Rico. We probed this atypical connection by harnessing data from 1stock1 and the Bureau of Labor Statistics, examining the years 2003 to 2022. The analysis revealed a correlation coefficient of 0.5538451, with a p-value less than 0.05, humorously illustrating a noteworthy relationship that may warrant further investigation. This serendipitous discovery invites speculation and adds a dash of piquancy to the sometimes bland landscape of financial and labor economics.

-------

And here is the introduction section that led to this literature review:
[[INTRODUCTION]]
In the realm of finance and labor economics, there is a perennial quest to uncover hidden connections and unexpected relationships. Our study, titled "Stock Ticker Shock: Exploring the Relationship between NYSE Composite Index Annual Percentage Change and The Impact of Merchandise Displayers and Window Trimmers on the Island of Enchantment," embarks on an intriguing exploration of the intertwined dynamics between stock market movements and the labor force in the enchanting setting of Puerto Rico.
As financial analysts and labor economists, we are no strangers to the conventional relationships between economic indicators and labor market variables. However, in the course of our analysis, we stumbled upon a correlation that could be described as nothing short of enchanting – the perplexing link between the annual percentage change of the NYSE Composite Index and the number of merchandise displayers and window trimmers in the captivating island of Puerto Rico.
Our investigation harnessed datasets from 1stock1 and the Bureau of Labor Statistics, spanning the years 2003 to 2022. The resulting analysis unveiled a correlation coefficient of 0.5538451, accompanied by a p-value that wielded its significance with aplomb, clocking in at less than 0.05. These statistical revelations, while unexpected, provided us with a whimsical glimpse into a relationship that beckons for further unraveling.
The serendipitous discovery of this correlation not only piqued our curiosity but also infused a touch of mirth into the typically serious domain of financial and labor economics. This finding injects a dash of intrigue and a hint of whimsy into the otherwise staid landscape of economic analyses, prompting us to dive deeper into the underlying nuances of this unanticipated affinity.
As we embark on this scholarly journey, our aim is not only to relay the statistical evidence of this connection but also to elicit a subtle chuckle and a raised eyebrow from our esteemed colleagues in the field. Join us as we unravel the mysterious union between stock market gyrations and the labor force in the idyllic backdrop of Puerto Rico, and perhaps, uncover a few unexpected surprises along the way.

-------

Your response should start like this:

[[LITERATURE REVIEW]]



ChatGPT:
[[LITERATURE REVIEW]]

In the pursuit of elucidating the curious interplay between the NYSE Composite Index Annual Percentage Change and the number of merchandise displayers and window trimmers in Puerto Rico, scholars have endeavored to explore the underpinnings of this unexpected correlation. The empirical investigations into this obscure association have invoked the works of esteemed researchers such as Smith, Doe, and Jones, whose contributions have laid the groundwork for this unconventional line of inquiry.

In "Financial Fluctuations and Labor Market Dynamics," Smith examines the traditional linkages between stock market movements and labor market variables, providing a comprehensive analysis of the standard relationships that define the economic landscape. Doe, in "Economic Trends in Puerto Rico," offers a thorough dissection of labor force trends and highlights the unmistakable charm of Puerto Rico as a focal point for examining labor dynamics. Jones, in "Economy and Labor in Island Paradises," extends this exploration to encompass the enigmatic allure of island economies, setting the stage for the enigmatic findings that lay ahead.

Moving beyond the confines of academic discourse, non-fiction literature pertaining to labor economics and the charm of enchanting locales presents an intriguing backdrop for the investigation at hand. Works such as "The Wealth of Nations" by Adam Smith and "Capital in the Twenty-First Century" by Thomas Piketty provide a scholarly context for comprehending economic phenomena, albeit with a slightly less enchanting focus than our current endeavor.

In the realm of fiction, the allure of enchanting locales and economic intrigue converge in works such as "The Beach" by Alex Garland and "The Rum Diary" by Hunter S. Thompson. These literary creations, while veering from the empirical rigor of academic research, encompass the spirit of exploration and unexpected discoveries that resonate with the theme of our investigation.

On a more light-hearted note, cinematic representations of idyllic islands and economic whimsy offer a playful parallel to our scholarly pursuit. Films such as "Jurassic Park," set against the stunning backdrop of an island paradise, and "Pirates of the Caribbean," with its swashbuckling escapades amidst economic undertones, infuse a dash of levity into the otherwise austere discussion of financial and labor dynamics.

As we traverse the realms of literature, both scholarly and imaginative, the essence of our scholarly inquiry is interwoven with hints of whimsy and piquancy, inviting us to approach our subject matter with a blend of academic rigor and lighthearted curiosity.


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics 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 NYSE Composite Index Annual Percentage Change and The number of merchandise displayers and window trimmers in Puerto Rico. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, 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 1stock1 and Bureau of Larbor Statistics . You used data from 2003 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]]
Stock Ticker Shock: Exploring the Relationship between NYSE Composite Index Annual Percentage Change and The Impact of Merchandise Displayers and Window Trimmers on the Island of Enchantment

[[ABSTRACT]]
This study delves into the seemingly paradoxical correlation between the annual percentage change of the New York Stock Exchange (NYSE) Composite Index and the number of merchandise displayers and window trimmers in Puerto Rico. We probed this atypical connection by harnessing data from 1stock1 and the Bureau of Labor Statistics, examining the years 2003 to 2022. The analysis revealed a correlation coefficient of 0.5538451, with a p-value less than 0.05, humorously illustrating a noteworthy relationship that may warrant further investigation. This serendipitous discovery invites speculation and adds a dash of piquancy to the sometimes bland landscape of financial and labor economics.

[[INTRODUCTION]]
In the realm of finance and labor economics, there is a perennial quest to uncover hidden connections and unexpected relationships. Our study, titled "Stock Ticker Shock: Exploring the Relationship between NYSE Composite Index Annual Percentage Change and The Impact of Merchandise Displayers and Window Trimmers on the Island of Enchantment," embarks on an intriguing exploration of the intertwined dynamics between stock market movements and the labor force in the enchanting setting of Puerto Rico.
As financial analysts and labor economists, we are no strangers to the conventional relationships between economic indicators and labor market variables. However, in the course of our analysis, we stumbled upon a correlation that could be described as nothing short of enchanting – the perplexing link between the annual percentage change of the NYSE Composite Index and the number of merchandise displayers and window trimmers in the captivating island of Puerto Rico.
Our investigation harnessed datasets from 1stock1 and the Bureau of Labor Statistics, spanning the years 2003 to 2022. The resulting analysis unveiled a correlation coefficient of 0.5538451, accompanied by a p-value that wielded its significance with aplomb, clocking in at less than 0.05. These statistical revelations, while unexpected, provided us with a whimsical glimpse into a relationship that beckons for further unraveling.
The serendipitous discovery of this correlation not only piqued our curiosity but also infused a touch of mirth into the typically serious domain of financial and labor economics. This finding injects a dash of intrigue and a hint of whimsy into the otherwise staid landscape of economic analyses, prompting us to dive deeper into the underlying nuances of this unanticipated affinity.
As we embark on this scholarly journey, our aim is not only to relay the statistical evidence of this connection but also to elicit a subtle chuckle and a raised eyebrow from our esteemed colleagues in the field. Join us as we unravel the mysterious union between stock market gyrations and the labor force in the idyllic backdrop of Puerto Rico, and perhaps, uncover a few unexpected surprises along the way.

-------

Your response should start like this:

[[METHODOLOGY]]



ChatGPT:

[[METHODOLOGY]]

Our methodology for investigating the curious connection between the NYSE Composite Index and the employment of merchandise displayers and window trimmers in Puerto Rico was a mix of meticulous data wrangling and a sprinkle of statistical sorcery. We embarked on this quest armed with datasets from 1stock1 and the Bureau of Labor Statistics, navigating the treacherous peaks and valleys of financial and labor data from 2003 to 2022.

To lay the groundwork for our investigation, we employed a series of convoluted algorithms and arcane spells to clean, harmonize, and fortify the datasets, ensuring they were primed for statistical interrogation. After this ritualistic purification process, we conducted a rigorous exploration of the relationship between the annual percentage change of the NYSE Composite Index and the number of merchandise displayers and window trimmers in the land of coquis and swaying palm trees.

By wielding the formidable tools of correlation analysis, we sought to unearth the hidden bonds between these seemingly disparate entities. Our statistical incantations revealed a correlation coefficient of 0.5538451, with a p-value that shimmered with significance, donning a cloak of less than 0.05. With these numerical incantations at our disposal, we commenced the weaving of our data narrative, endeavoring to shed light on this unlikely dalliance between stock market fluctuations and the bustling world of merchandise displayers and window trimmers on the enchanting isle of Puerto Rico.

While our approach may seem whimsical and our rhetoric laced with sly humor, rest assured that our statistical incantations were conducted with the utmost rigor and seriousness. Yet, we cannot help but chuckle at the delightful quirks and unexpected findings that emanated from our analytical cauldron. Our concoction of statistical brew and laughter-fueled astonishment serves as a testament to the unpredictable nature of economic relationships and the joy of uncovering hidden connections in the fabric of labor and finance.


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics 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 NYSE Composite Index Annual Percentage Change and The number of merchandise displayers and window trimmers in Puerto Rico. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, 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 1stock1 and Bureau of Larbor Statistics .

For the time period 2003 to 2022, you found a correlation 0.5538451, r-squared of 0.3067444, and p < 0.05.

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

Here is the title and abstract of the paper:
[[TITLE]]
Stock Ticker Shock: Exploring the Relationship between NYSE Composite Index Annual Percentage Change and The Impact of Merchandise Displayers and Window Trimmers on the Island of Enchantment

[[ABSTRACT]]
This study delves into the seemingly paradoxical correlation between the annual percentage change of the New York Stock Exchange (NYSE) Composite Index and the number of merchandise displayers and window trimmers in Puerto Rico. We probed this atypical connection by harnessing data from 1stock1 and the Bureau of Labor Statistics, examining the years 2003 to 2022. The analysis revealed a correlation coefficient of 0.5538451, with a p-value less than 0.05, humorously illustrating a noteworthy relationship that may warrant further investigation. This serendipitous discovery invites speculation and adds a dash of piquancy to the sometimes bland landscape of financial and labor economics.

-------

And here is the methodology section that led to this result:
[[METHODOLOGY]]
In the realm of finance and labor economics, there is a perennial quest to uncover hidden connections and unexpected relationships. Our study, titled "Stock Ticker Shock: Exploring the Relationship between NYSE Composite Index Annual Percentage Change and The Impact of Merchandise Displayers and Window Trimmers on the Island of Enchantment," embarks on an intriguing exploration of the intertwined dynamics between stock market movements and the labor force in the enchanting setting of Puerto Rico.
As financial analysts and labor economists, we are no strangers to the conventional relationships between economic indicators and labor market variables. However, in the course of our analysis, we stumbled upon a correlation that could be described as nothing short of enchanting – the perplexing link between the annual percentage change of the NYSE Composite Index and the number of merchandise displayers and window trimmers in the captivating island of Puerto Rico.
Our investigation harnessed datasets from 1stock1 and the Bureau of Labor Statistics, spanning the years 2003 to 2022. The resulting analysis unveiled a correlation coefficient of 0.5538451, accompanied by a p-value that wielded its significance with aplomb, clocking in at less than 0.05. These statistical revelations, while unexpected, provided us with a whimsical glimpse into a relationship that beckons for further unraveling.
The serendipitous discovery of this correlation not only piqued our curiosity but also infused a touch of mirth into the typically serious domain of financial and labor economics. This finding injects a dash of intrigue and a hint of whimsy into the otherwise staid landscape of economic analyses, prompting us to dive deeper into the underlying nuances of this unanticipated affinity.
As we embark on this scholarly journey, our aim is not only to relay the statistical evidence of this connection but also to elicit a subtle chuckle and a raised eyebrow from our esteemed colleagues in the field. Join us as we unravel the mysterious union between stock market gyrations and the labor force in the idyllic backdrop of Puerto Rico, and perhaps, uncover a few unexpected surprises along the way.

-------

Your response should start like this:

[[RESULTS]]



ChatGPT:

[[RESULTS]]

The statistical analysis revealed a correlation coefficient of 0.5538451 between the annual percentage change of the NYSE Composite Index and the number of merchandise displayers and window trimmers in Puerto Rico. The coefficient of determination (R-squared) was 0.3067444. These findings imply a moderately positive relationship between these variables.

The p-value being less than 0.05 further strengthened the evidence in favor of the correlation, signifying that the relationship was unlikely to have occurred by chance alone. This implies that the association between the NYSE Composite Index Annual Percentage Change and the number of merchandise displayers and window trimmers in Puerto Rico is statistically significant.

Figure 1 presents a scatterplot illustrating the robust correlation between the two variables. The chart showcases the whimsical dance of the data points, highlighting the unexpected connection between the fluctuations of the NYSE Composite Index and the labor force specialized in merchandise display and window trimming in the enchanting confines of Puerto Rico.

Our research not only sheds light on this curious association but also infuses a touch of unpredictability and charm into the rigid world of financial and labor economics. This delightful discovery invites further examination and speculation, compelling the scholarly community to ponder the underlying mechanisms that underpin this unconventional correlation.

The correlation unveiled in this study serves as a gentle reminder that even in the seemingly austere realm of economic analyses, a hint of serendipity and amusement can unfurl, beckoning researchers to unearth unforeseen connections and marvel at the enchanting interplay of variables.


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics 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 NYSE Composite Index Annual Percentage Change and The number of merchandise displayers and window trimmers in Puerto Rico. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, 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]]
Stock Ticker Shock: Exploring the Relationship between NYSE Composite Index Annual Percentage Change and The Impact of Merchandise Displayers and Window Trimmers on the Island of Enchantment

[[ABSTRACT]]
This study delves into the seemingly paradoxical correlation between the annual percentage change of the New York Stock Exchange (NYSE) Composite Index and the number of merchandise displayers and window trimmers in Puerto Rico. We probed this atypical connection by harnessing data from 1stock1 and the Bureau of Labor Statistics, examining the years 2003 to 2022. The analysis revealed a correlation coefficient of 0.5538451, with a p-value less than 0.05, humorously illustrating a noteworthy relationship that may warrant further investigation. This serendipitous discovery invites speculation and adds a dash of piquancy to the sometimes bland landscape of financial and labor economics.

[[LITERATURE REVIEW]]
In the pursuit of elucidating the curious interplay between the NYSE Composite Index Annual Percentage Change and the number of merchandise displayers and window trimmers in Puerto Rico, scholars have endeavored to explore the underpinnings of this unexpected correlation. The empirical investigations into this obscure association have invoked the works of esteemed researchers such as Smith, Doe, and Jones, whose contributions have laid the groundwork for this unconventional line of inquiry.
In "Financial Fluctuations and Labor Market Dynamics," Smith examines the traditional linkages between stock market movements and labor market variables, providing a comprehensive analysis of the standard relationships that define the economic landscape. Doe, in "Economic Trends in Puerto Rico," offers a thorough dissection of labor force trends and highlights the unmistakable charm of Puerto Rico as a focal point for examining labor dynamics. Jones, in "Economy and Labor in Island Paradises," extends this exploration to encompass the enigmatic allure of island economies, setting the stage for the enigmatic findings that lay ahead.
Moving beyond the confines of academic discourse, non-fiction literature pertaining to labor economics and the charm of enchanting locales presents an intriguing backdrop for the investigation at hand. Works such as "The Wealth of Nations" by Adam Smith and "Capital in the Twenty-First Century" by Thomas Piketty provide a scholarly context for comprehending economic phenomena, albeit with a slightly less enchanting focus than our current endeavor.
In the realm of fiction, the allure of enchanting locales and economic intrigue converge in works such as "The Beach" by Alex Garland and "The Rum Diary" by Hunter S. Thompson. These literary creations, while veering from the empirical rigor of academic research, encompass the spirit of exploration and unexpected discoveries that resonate with the theme of our investigation.
On a more light-hearted note, cinematic representations of idyllic islands and economic whimsy offer a playful parallel to our scholarly pursuit. Films such as "Jurassic Park," set against the stunning backdrop of an island paradise, and "Pirates of the Caribbean," with its swashbuckling escapades amidst economic undertones, infuse a dash of levity into the otherwise austere discussion of financial and labor dynamics.
As we traverse the realms of literature, both scholarly and imaginative, the essence of our scholarly inquiry is interwoven with hints of whimsy and piquancy, inviting us to approach our subject matter with a blend of academic rigor and lighthearted curiosity.

[[RESULTS]]
The statistical analysis revealed a correlation coefficient of 0.5538451 between the annual percentage change of the NYSE Composite Index and the number of merchandise displayers and window trimmers in Puerto Rico. The coefficient of determination (R-squared) was 0.3067444. These findings imply a moderately positive relationship between these variables.
The p-value being less than 0.05 further strengthened the evidence in favor of the correlation, signifying that the relationship was unlikely to have occurred by chance alone. This implies that the association between the NYSE Composite Index Annual Percentage Change and the number of merchandise displayers and window trimmers in Puerto Rico is statistically significant.
Figure 1 presents a scatterplot illustrating the robust correlation between the two variables. The chart showcases the whimsical dance of the data points, highlighting the unexpected connection between the fluctuations of the NYSE Composite Index and the labor force specialized in merchandise display and window trimming in the enchanting confines of Puerto Rico.
Our research not only sheds light on this curious association but also infuses a touch of unpredictability and charm into the rigid world of financial and labor economics. This delightful discovery invites further examination and speculation, compelling the scholarly community to ponder the underlying mechanisms that underpin this unconventional correlation.
The correlation unveiled in this study serves as a gentle reminder that even in the seemingly austere realm of economic analyses, a hint of serendipity and amusement can unfurl, beckoning researchers to unearth unforeseen connections and marvel at the enchanting interplay of variables.

-------

Your response should start like this:

[[DISCUSSION]]



ChatGPT:

[[DISCUSSION]]

The results of this study present a compelling case for the presence of a statistically significant relationship between the annual percentage change of the NYSE Composite Index and the number of merchandise displayers and window trimmers in Puerto Rico. These findings not only validate the long-standing curiosity surrounding this enigmatic correlation but also add a whimsical dimension to the discourse within the realms of financial and labor economics.

The positive correlation coefficient of 0.5538451, as well as the coefficient of determination (R-squared) of 0.3067444, both signify a moderately strong relationship between these seemingly disparate variables. This supports prior research that has highlighted the influential role of stock market movements on labor market dynamics, albeit in a more unexpected and enchanting context.

The p-value being less than 0.05 further bolsters the validity of this association, confirming that the relationship between the NYSE Composite Index Annual Percentage Change and the number of merchandise displayers and window trimmers in Puerto Rico is not merely a serendipitous occurrence. Instead, it beckons us to delve deeper into the captivating interplay of economic indicators and the labor force in this charming Caribbean locale.

Harking back to the literature review, the investigation into island economies and labor dynamics, although traditionally focused on standard economic relationships, inadvertently set the stage for this delightful revelation. The unexpected intersection of labor economics and the allure of enchanting locales, echoed in both non-fiction and fictional works, serves as a fitting backdrop for our present inquiry. The whimsical spirit of exploration and discovery prevalent in these literary and cinematic representations finds a parallel in our scholarly pursuit, infusing a sense of unpredictability and charm into the otherwise staid discourse of financial and labor dynamics.

The scatterplot presented in Figure 1 encapsulates the delightful dance of the data points, visually showcasing the captivating connection between the fluctuations of the NYSE Composite Index and the labor force specialized in merchandise display and window trimming in Puerto Rico. This visual representation not only reaffirms the robustness of the correlation but also serves as a whimsical reminder that even within the analytic rigidity of economic analyses, the unexpected and enchanting can unfurl, beckoning researchers to embrace the supple dance of unforeseen connections and marvel at the beguiling interplay of variables.

In concluding, our study's findings not only provide empirical substantiation for the curious correlation between the NYSE Composite Index Annual Percentage Change and the number of merchandise displayers and window trimmers in Puerto Rico but also evoke a sense of intellectual playfulness and unanticipated delight within this traditionally buttoned-up academic domain. These results open the door to a deeper exploration of the charming interplay between finance and labor, inviting the scholarly community to examine the underlying mechanisms that underpin this unconventional and enchanting correlation.


Model: gpt-3.5-turbo-1106
System prompt: You are a witty academic researcher. Your writing sounds like it belongs in a statistics 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 NYSE Composite Index Annual Percentage Change and The number of merchandise displayers and window trimmers in Puerto Rico. Make it seem dry like academic research paper, but with lots of subtle hidden offhand remarks, 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]]
Stock Ticker Shock: Exploring the Relationship between NYSE Composite Index Annual Percentage Change and The Impact of Merchandise Displayers and Window Trimmers on the Island of Enchantment

[[ABSTRACT]]
This study delves into the seemingly paradoxical correlation between the annual percentage change of the New York Stock Exchange (NYSE) Composite Index and the number of merchandise displayers and window trimmers in Puerto Rico. We probed this atypical connection by harnessing data from 1stock1 and the Bureau of Labor Statistics, examining the years 2003 to 2022. The analysis revealed a correlation coefficient of 0.5538451, with a p-value less than 0.05, humorously illustrating a noteworthy relationship that may warrant further investigation. This serendipitous discovery invites speculation and adds a dash of piquancy to the sometimes bland landscape of financial and labor economics.

[[INTRDUCTION]]
In the realm of finance and labor economics, there is a perennial quest to uncover hidden connections and unexpected relationships. Our study, titled "Stock Ticker Shock: Exploring the Relationship between NYSE Composite Index Annual Percentage Change and The Impact of Merchandise Displayers and Window Trimmers on the Island of Enchantment," embarks on an intriguing exploration of the intertwined dynamics between stock market movements and the labor force in the enchanting setting of Puerto Rico.
As financial analysts and labor economists, we are no strangers to the conventional relationships between economic indicators and labor market variables. However, in the course of our analysis, we stumbled upon a correlation that could be described as nothing short of enchanting – the perplexing link between the annual percentage change of the NYSE Composite Index and the number of merchandise displayers and window trimmers in the captivating island of Puerto Rico.
Our investigation harnessed datasets from 1stock1 and the Bureau of Labor Statistics, spanning the years 2003 to 2022. The resulting analysis unveiled a correlation coefficient of 0.5538451, accompanied by a p-value that wielded its significance with aplomb, clocking in at less than 0.05. These statistical revelations, while unexpected, provided us with a whimsical glimpse into a relationship that beckons for further unraveling.
The serendipitous discovery of this correlation not only piqued our curiosity but also infused a touch of mirth into the typically serious domain of financial and labor economics. This finding injects a dash of intrigue and a hint of whimsy into the otherwise staid landscape of economic analyses, prompting us to dive deeper into the underlying nuances of this unanticipated affinity.
As we embark on this scholarly journey, our aim is not only to relay the statistical evidence of this connection but also to elicit a subtle chuckle and a raised eyebrow from our esteemed colleagues in the field. Join us as we unravel the mysterious union between stock market gyrations and the labor force in the idyllic backdrop of Puerto Rico, and perhaps, uncover a few unexpected surprises along the way.

[[RESULTS]]
The statistical analysis revealed a correlation coefficient of 0.5538451 between the annual percentage change of the NYSE Composite Index and the number of merchandise displayers and window trimmers in Puerto Rico. The coefficient of determination (R-squared) was 0.3067444. These findings imply a moderately positive relationship between these variables.
The p-value being less than 0.05 further strengthened the evidence in favor of the correlation, signifying that the relationship was unlikely to have occurred by chance alone. This implies that the association between the NYSE Composite Index Annual Percentage Change and the number of merchandise displayers and window trimmers in Puerto Rico is statistically significant.
Figure 1 presents a scatterplot illustrating the robust correlation between the two variables. The chart showcases the whimsical dance of the data points, highlighting the unexpected connection between the fluctuations of the NYSE Composite Index and the labor force specialized in merchandise display and window trimming in the enchanting confines of Puerto Rico.
Our research not only sheds light on this curious association but also infuses a touch of unpredictability and charm into the rigid world of financial and labor economics. This delightful discovery invites further examination and speculation, compelling the scholarly community to ponder the underlying mechanisms that underpin this unconventional correlation.
The correlation unveiled in this study serves as a gentle reminder that even in the seemingly austere realm of economic analyses, a hint of serendipity and amusement can unfurl, beckoning researchers to unearth unforeseen connections and marvel at the enchanting interplay of variables.

-------

Your response should start like this:

[[CONCLUSION]]



ChatGPT:

[[CONCLUSION]]

In conclusion, our study has illuminated a correlation of 0.5538451 between the annual percentage change of the NYSE Composite Index and the number of merchandise displayers and window trimmers in Puerto Rico, evoking a sense of wonder and bemusement among the scholarly community. The statistical significance of this relationship, with a p-value of less than 0.05, adds a touch of unpredictability and whimsy to the typically measured domain of financial and labor economics.

The unanticipated dance of the data points in Figure 1, reminiscent of a lively salsa, vividly illustrates the unexpected bond between stock market gyrations and the labor force specialized in merchandise display and window trimming on the captivating island of Puerto Rico. This charming revelation presents a delightful opportunity for additional exploration and perhaps a whimsical dalliance with economic theory.

Our findings, although seemingly improbable, serve as a gentle nudge to researchers, enticing them to embrace the serendipitous and relish the unexpected in the pursuit of economic insights. Nevertheless, it's time to put a cap on this peculiar connection; it seems we've wrung this relationship dry. As such, we assert with confidence that no further research is needed in this delightful, albeit enigmatic, realm.


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 Stock Ticker Shock: Exploring the Relationship between NYSE Composite Index Annual Percentage Change and The Impact of Merchandise Displayers and Window Trimmers on the Island of Enchantment. Respond only with the name of a fictional academic journal.

ChatGPT:

The Journal of Financial Feng Shui and Market Mojo


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 Stock Ticker Shock: Exploring the Relationship between NYSE Composite Index Annual Percentage Change and The Impact of Merchandise Displayers and Window Trimmers on the Island of Enchantment. Respond only with the name of a fictional organization.

ChatGPT:

The Society for Statistical Silliness and Peculiar Phenomena


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 Stock Ticker Shock: Exploring the Relationship between NYSE Composite Index Annual Percentage Change and The Impact of Merchandise Displayers and Window Trimmers on the Island of Enchantment with an abstract of This study delves into the seemingly paradoxical correlation between the annual percentage change of the New York Stock Exchange (NYSE) Composite Index and the number of merchandise displayers and window trimmers in Puerto Rico. We probed this atypical connection by harnessing data from 1stock1 and the Bureau of Labor Statistics, examining the years 2003 to 2022. The analysis revealed a correlation coefficient of 0.5538451, with a p-value less than 0.05, humorously illustrating a noteworthy relationship that may warrant further investigation. This serendipitous discovery invites speculation and adds a dash of piquancy to the sometimes bland landscape of financial and labor economics.

ChatGPT:

NYSE Composite Index, annual percentage change, merchandise displayers, window trimmers, Puerto Rico, correlation, Bureau of Labor Statistics, stock market, labor economics, financial economics

*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

NYSE Composite Index Annual Percentage Change
Source: 1stock1
See what else correlates with NYSE Composite Index Annual Percentage Change

The number of merchandise displayers and window trimmers in Puerto Rico
Detailed data title: BLS estimate of merchandise displayers and window trimmers in Puerto Rico
Source: Bureau of Larbor Statistics
See what else correlates with The number of merchandise displayers and window trimmers in Puerto Rico

Correlation r = 0.5538451 (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.3067444 (Coefficient of determination)
This means 30.7% of the change in the one variable (i.e., The number of merchandise displayers and window trimmers in Puerto Rico) is predictable based on the change in the other (i.e., NYSE Composite Index Annual Percentage Change) over the 20 years from 2003 through 2022.

p < 0.05, which statistically significant(Null hypothesis significance test)
The p-value is 0.011. 0.0112878795632629230000000000
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.55 in 1.1% of random cases. Said differently, if you correlated 89 random variables Which I absolutely did.
with the same 19 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 19 because we have two variables measured over a period of 20 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.15, 0.8 ] 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.
20032004200520062007200820092010201120122013201420152016201720182019202020212022
NYSE Composite Index Annual Percentage Change (Percentage)28.8112.576.9517.866.58-40.8924.810.84-6.1112.9323.184.22-6.429.0115.84-11.222.324.418.17-11.53
The number of merchandise displayers and window trimmers in Puerto Rico (Laborers)390340380350290230250210330360430260270340430280340300310230




Why this works

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




Try it yourself

You can calculate the values on this page on your own! Try running the Python code to see the calculation results. Step 1: Download and install Python on your computer.

Step 2: Open a plaintext editor like Notepad and paste the code below into it.

Step 3: Save the file as "calculate_correlation.py" in a place you will remember, like your desktop. Copy the file location to your clipboard. On Windows, you can right-click the file and click "Properties," and then copy what comes after "Location:" As an example, on my computer the location is "C:\Users\tyler\Desktop"

Step 4: Open a command line window. For example, by pressing start and typing "cmd" and them pressing enter.

Step 5: Install the required modules by typing "pip install numpy", then pressing enter, then typing "pip install scipy", then pressing enter.

Step 6: Navigate to the location where you saved the Python file by using the "cd" command. For example, I would type "cd C:\Users\tyler\Desktop" and push enter.

Step 7: Run the Python script by typing "python calculate_correlation.py"

If you run into any issues, I suggest asking ChatGPT to walk you through installing Python and running the code below on your system. Try this question:

"Walk me through installing Python on my computer to run a script that uses scipy and numpy. Go step-by-step and ask me to confirm before moving on. Start by asking me questions about my operating system so that you know how to proceed. Assume I want the simplest installation with the latest version of Python and that I do not currently have any of the necessary elements installed. Remember to only give me one step per response and confirm I have done it before proceeding."


# These modules make it easier to perform the calculation
import numpy as np
from scipy import stats

# We'll define a function that we can call to return the correlation calculations
def calculate_correlation(array1, array2):

    # Calculate Pearson correlation coefficient and p-value
    correlation, p_value = stats.pearsonr(array1, array2)

    # Calculate R-squared as the square of the correlation coefficient
    r_squared = correlation**2

    return correlation, r_squared, p_value

# These are the arrays for the variables shown on this page, but you can modify them to be any two sets of numbers
array_1 = np.array([28.81,12.57,6.95,17.86,6.58,-40.89,24.8,10.84,-6.11,12.93,23.18,4.22,-6.42,9.01,15.84,-11.2,22.32,4.4,18.17,-11.53,])
array_2 = np.array([390,340,380,350,290,230,250,210,330,360,430,260,270,340,430,280,340,300,310,230,])
array_1_name = "NYSE Composite Index Annual Percentage Change"
array_2_name = "The number of merchandise displayers and window trimmers in Puerto Rico"

# 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 stellar!


Correlation ID: 3130 · Black Variable ID: 315 · Red Variable ID: 16697
about · subscribe · emailme@tylervigen.com · twitter

CC BY 4.0