Download png, svg
Check back later, or email me if you'd enjoy seeing this work in real-time.
Discover a new correlation
View all correlations
View all research papers
Report an error
Data details
The number of movies Anthony Hopkins appeared inSource: The Movie DB
Additional Info: The Remains of the Day (1993); The Elephant Man (1980); Shadowlands (1993); The Road to Wellville (1994); Bad Company (2002); Nixon (1995); The Human Stain (2003); Hearts in Atlantis (2001); Fracture (2007); Instinct (1999); Titus (1999); The Edge (1997); Hannibal (2001); The World's Fastest Indian (2005); Magic (1978); Across the Lake (1988); The Bunker (1981); Surviving Picasso (1996); Spotswood (1992); Guilty Conscience (1985); The Good Father (1985); The Rite (2011); Slipstream (2007); The Hunchback of Notre Dame (1982); The Innocent (1993); The Tenth Man (1988); Arch of Triumph (1985); Hitchcock (2012); A Chorus of Disapproval (1989); Othello (1981); August (1996); The Dawning (1988); One Man’s War (1991); Kidnapping Mr. Heineken (2015); Little Eyolf (1982); Solace (2015); Blackway (2015); Mayflower: The Pilgrims' Adventure (1979); Inside the Labyrinth: The Making of 'The Silence of the Lambs' (2001); Love & Loyalty: The Making of 'The Remains of the Day' (2001); King Lear (2018); The Father (2020); Now Is Everything (2019); Heartland (1989); The Lost Children of Berlin (1997); One Life (2023); Elyse (2020); The Virtuoso (2021); Where Are You (2022); Inside Story - The Silence of the Lambs (2010); Zero Contact (2022); Hannibal Hopkins et Sir Anthony (2021); Freud's Last Session (2023); The Third Rule (2010); Faroe Islands (1989); The Silence of the Lambs (1991); Meet Joe Black (1998); The Bounty (1984); Legends of the Fall (1994); The Wolfman (2010); Desperate Hours (1990); The Mask of Zorro (1998); Red Dragon (2002); Proof (2005); The City of Your Final Destination (2009); A Change of Seasons (1980); 84 Charing Cross Road (1987); Audrey Rose (1977); The Trial (1993); All Creatures Great and Small (1975); Mussolini and I (1985); The Lindbergh Kidnapping Case (1976); Tony Bennett: The Music Never Ends (2007); Dark Victory (1976); The Dresser (2015); Misconduct (2016); Thor: From Asgard to Earth (2011); Blunt (1987); The Two Popes (2019); Thor: Assembling the Troupe (2011); Hello: A Portrait Of Leslie Phillips (2013); Marlon Brando: The Wild One (1994); The Making of 'The Silence of the Lambs' (1991); Blind Loyalty, Hollow Honor: England's Fatal Flaw (2001); Beowulf (2007); Amistad (1997); Howards End (1992); Shortcut to Happiness (2003); International Velvet (1978); You Will Meet a Tall Dark Stranger (2010); Collide (2016); Siegfried & Roy: The Magic Box (1999); Breaking the Silence: The Making of Hannibal (2001); Peter O'Toole: Along the Sky Road to Aqaba (2022); Thor (2011); Freejack (1992); Thor: The Dark World (2013); Noah (2014); 360 (2012); RED 2 (2013); Transformers: The Last Knight (2017); Bram Stoker's Dracula (1992); The True Story of Hannibal (2005); Richard Attenborough: A Life in Film (2014); Blood Lines: Dracula - The Man. The Myth. The Movies. (1992); Shirley Maclaine: Kicking Up Her Heels (1996); The Remains of the Day: The Filmmaker's Journey (2001); The Son (2022); Armageddon Time (2022); A Tribute To Ismail Merchant (2005); All the King's Men (2006); Alexander (2004); Chaplin (1992); A Bridge Too Far (1977); The Blood Is the Life: The Making of 'Bram Stoker's Dracula' (2007); A Director's Journey: The Making of 'Red Dragon' (2003); Bobby (2006); Earth and the American Dream (1992); Thor: Ragnarok (2017); Spielberg (2017); Victory at Entebbe (1976); Rebel Moon - Part One: A Child of Fire (2023); Bare Knuckles (2010); A Century of Cinema (1994); Love, Antosha (2019); Nothing Like a Dame (2018); Mission: Impossible II (2000); Parkinson at 50 (2021); How the Grinch Stole Christmas (2000); And the Oscar Goes to... (2014)
See what else correlates with The number of movies Anthony Hopkins appeared in
Votes for the Republican Presidential candidate in Wyoming
Detailed data title: Percentage of all votes cast for the Republican Presidential candidate in Wyoming
Source: MIT Election Data and Science Lab, Harvard Dataverse
See what else correlates with Votes for the Republican Presidential candidate in Wyoming
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.8300650 (Coefficient of determination)
This means 83% of the change in the one variable (i.e., Votes for the Republican Presidential candidate in Wyoming) is predictable based on the change in the other (i.e., The number of movies Anthony Hopkins appeared in) over the 11 years from 1976 through 2020.
p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 9.6E-5. 0.0000958742013483000600000000
The p-value is a measure of how probable it is that we would randomly find a result this extreme. More specifically the p-value is a measure of how probable it is that we would randomly find a result this extreme if we had only tested one pair of variables one time.
But I am a p-villain. I absolutely did not test only one pair of variables one time. I correlated hundreds of millions of pairs of variables. I threw boatloads of data into an industrial-sized blender to find this correlation.
Who is going to stop me? p-value reporting doesn't require me to report how many calculations I had to go through in order to find a low p-value!
On average, you will find a correaltion as strong as -0.91 in 0.0096% of random cases. Said differently, if you correlated 10,430 random variables Which I absolutely did.
with the same 10 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 10 because we have two variables measured over a period of 11 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.98, -0.69 ] 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.
1976 | 1980 | 1984 | 1988 | 1992 | 1996 | 2000 | 2004 | 2012 | 2016 | 2020 | |
The number of movies Anthony Hopkins appeared in (Movie appearances) | 3 | 2 | 1 | 3 | 7 | 3 | 2 | 1 | 2 | 2 | 2 |
Votes for the Republican Presidential candidate in Wyoming (Percentage of votes) | 59.3036 | 62.6439 | 70.5098 | 60.5304 | 39.6965 | 49.8121 | 69.2227 | 68.7396 | 68.1936 | 67.3984 | 69.4998 |
Why this works
- Data dredging: I have 25,237 variables in my database. I compare all these variables against each other to find ones that randomly match up. That's 636,906,169 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.
- 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. - 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. - 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. - 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. - Inverted Y-axis: I inverted the Y-axis on the chart above so that the lines would move together. This is visually pleasing, but not at all intuitive. Below is a line graph that does not invert the Y-axis.
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([3,2,1,3,7,3,2,1,2,2,2,])
array_2 = np.array([59.3036,62.6439,70.5098,60.5304,39.6965,49.8121,69.2227,68.7396,68.1936,67.3984,69.4998,])
array_1_name = "The number of movies Anthony Hopkins appeared in"
array_2_name = "Votes for the Republican Presidential candidate in Wyoming"
# 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:
- High resolution line chart
The image linked here is a Scalable Vector Graphic (SVG). It is the highest resolution that is possible to achieve. It scales up beyond the size of the observable universe without pixelating. You do not need to email me asking if I have a higher resolution image. I do not. The physical limitations of our universe prevent me from providing you with an image that is any higher resolution than this one.
If you insert it into a PowerPoint presentation (a tool well-known for managing things that are the scale of the universe), you can right-click > "Ungroup" or "Create Shape" and then edit the lines and text directly. You can also change the colors this way.
Alternatively you can use a tool like Inkscape. - High resolution line chart, optimized for mobile
- Alternative high resolution line chart
- Scatterplot
- Portable line chart (png)
- Portable line chart (png), optimized for mobile
- Line chart for only The number of movies Anthony Hopkins appeared in
- Line chart for only Votes for the Republican Presidential candidate in Wyoming
Hats off to you for rating!
Correlation ID: 16970 · Black Variable ID: 26686 · Red Variable ID: 26194