Download png, svg
AI explanation
As Dustin Hoffman's on-screen presence grew, so did the collective urge to experience a little bit of Hollywood glamour. Naturally, this led to a spike in Las Vegas hotel room check-ins, as people hoped to reenact their favorite movie scenes in the city of lights, cameras, and a whole lot of action. It's the Hoffman effect - where his myriad roles translated to real-life check-ins for a blockbuster Vegas vacation.Discover a new correlation
View all correlations
View all research papers
Report an error
Data details
The number of movies Dustin Hoffman appeared inSource: The Movie DB
Additional Info: Rain Man (1988); Wag the Dog (1997); Hook (1991); All the President's Men (1976); Sphere (1998); Mr. Magorium's Wonder Emporium (2007); Marathon Man (1976); Hero (1992); Moonlight Mile (2002); Agatha (1979); Straight Time (1978); Outbreak (1995); American Buffalo (1996); Kramer vs. Kramer (1979); Death of a Salesman (1985); Last Chance Harvey (2008); Visual Acoustics (2008); Jews and Baseball: An American Love Story (2010); Against the Tide (2009); The Shakespeare Sessions (2003); Tootsie (1982); Dustin! (2009); Boychoir (2014); Goldwyn: The Man and His Movies (2001); Common Threads: Stories from the Quilt (1989); A Better Man: The Making of 'Tootsie' (2008); Tuesday (2001); 'The Graduate' at 25 (1992); The Making of 'Tootsie' (1982); Now Showing: Unforgettable Moments from the Movies (2003); The Tale of Despereaux (2008); Family Business (1989); Billy Bathgate (1991); Ishtar (1987); Mad City (1997); Kung Fu Panda: Secrets of the Furious Five (2008); Barney's Version (2010); Kung Fu Panda Holiday (2010); All the President's Men Revisited (2013); Roald Dahl's Esio Trot (2015); Bette Midler: Ol' Red Hair Is Back (1977); Michael Ballhaus - Eine Reise durch mein Leben (2008); Into the Labyrinth (2019); Private Conversations: On the Set of ‘Death of a Salesman’ (1986); Meet the Fockers (2004); Sleepers (1996); Stranger Than Fiction (2006); I ♥ Huckabees (2004); Runaway Jury (2003); Kung Fu Panda (2008); Kung Fu Panda 2 (2011); Kung Fu Panda 3 (2016); The Meyerowitz Stories (New and Selected) (2017); Telling the Truth About Lies: The Making of "All the President's Men" (2006); Kung Fu Panda: Secrets of the Scroll (2016); Going the Distance: Remembering 'Marathon Man' (2001); The Magic of Hollywood... Is the Magic of People (1976); Warner Bros. 75th Anniversary: No Guts, No Glory (1998); Finding the Truth: The Making of 'Kramer vs. Kramer' (2001); Billy Connolly: Erect for 30 Years (1999); Finding Neverland (2004); Perfume: The Story of a Murderer (2006); The Messenger: The Story of Joan of Arc (1999); Little Fockers (2010); Kung Fu Panda: Secrets of the Masters (2011); The Cobbler (2014); As They Made Us (2022); Sam & Kate (2022); Pressure and the Press: The Making of 'All the President's Men' (1976); Hal (2019); Mike Nichols: An American Master (2016); Controversy and Acclaim: The Timelessness of a Groundbreaking Film (2006); Jonas in the Desert (1994); Confidence (2003); The Lost City (2005); A Wish for Wings That Work (1991); Chef (2014); Arthur Miller: A Man of His Century (2015); Aretha Franklin: Duets (1993); Waldo Salt: A Screenwriter's Journey (1990); Lost in the Garden of the World (1975); Earth and the American Dream (1992); Mr. Saturday Night (2021); The Program (2015); Billy Connolly: It’s Been a Pleasure... (2020); There's Only One Paul McCartney (2002); Earth to America (2005); Warren Beatty - Mister Hollywood (2015); Dick Tracy (1990); The Kid Stays in the Picture (2002); Racing Stripes (2005); Paul Williams Still Alive (2011); Alan Pakula: Going for Truth (2019); Trumbo (2007); The Newspaperman: The Life and Times of Ben Bradlee (2017); Reinventing Elvis: The 68' Comeback (2023); The First 100 Years: A Celebration of American Movies (1995); Spielberg (2017); La Classe américaine (1993); The Earth Day Special (1990); La Classe américaine (2012); Mantrap – Straw Dogs: The Final Cut (2003); Close Up (2012); Led Zeppelin Played Here (2014); Lemony Snicket's A Series of Unfortunate Events (2004); Tato's Argentina (1999); All Governments Lie: Truth, Deception, and the Spirit of I.F. Stone (2016); Cameraman: The Life and Work of Jack Cardiff (2010); The Holiday (2006); Terror in the Aisles (1984); The Devil's Arithmetic (1999); The Sensational Shocking Wonderful Wacky 70's (1980); Casting By (2012); Disclosure (2020); PRIDE: To Be Seen - A Soul of a Nation Presentation (2022); Night of 100 Stars (1982); Night of 100 Stars II (1985); And the Oscar Goes to... (2014)
See what else correlates with The number of movies Dustin Hoffman appeared in
Number of Las Vegas Hotel Room Check-Ins
Source: Las Vegas CONVENTION AND VISITORS AUTHORITY
See what else correlates with Number of Las Vegas Hotel Room Check-Ins
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.2674195 (Coefficient of determination)
This means 26.7% of the change in the one variable (i.e., Number of Las Vegas Hotel Room Check-Ins) is predictable based on the change in the other (i.e., The number of movies Dustin Hoffman appeared in) over the 39 years from 1975 through 2013.
p < 0.01, which is statistically significant(Null hypothesis significance test)
The p-value is 0.00075. 0.0007491203907591718000000000
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.52 in 0.075% of random cases. Said differently, if you correlated 1,335 random variables Which I absolutely did.
with the same 38 degrees of freedom, Degrees of freedom is a measure of how many free components we are testing. In this case it is 38 because we have two variables measured over a period of 39 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.24, 0.72 ] 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.
1975 | 1976 | 1977 | 1978 | 1979 | 1980 | 1981 | 1982 | 1983 | 1984 | 1985 | 1986 | 1987 | 1988 | 1989 | 1990 | 1991 | 1992 | 1993 | 1994 | 1995 | 1996 | 1997 | 1998 | 1999 | 2000 | 2001 | 2002 | 2003 | 2004 | 2005 | 2006 | 2007 | 2008 | 2009 | 2010 | 2011 | 2012 | 2013 | |
The number of movies Dustin Hoffman appeared in (Movie appearances) | 1 | 4 | 1 | 1 | 2 | 1 | 0 | 3 | 0 | 1 | 2 | 1 | 1 | 1 | 2 | 3 | 3 | 3 | 2 | 1 | 2 | 2 | 2 | 2 | 4 | 0 | 4 | 3 | 5 | 4 | 3 | 5 | 2 | 7 | 2 | 5 | 3 | 3 | 1 |
Number of Las Vegas Hotel Room Check-Ins (Rooms) | 35190 | 36245 | 39350 | 42620 | 45035 | 45815 | 49614 | 50270 | 52529 | 54129 | 53067 | 56494 | 58494 | 61394 | 67391 | 73730 | 76879 | 76523 | 86053 | 88560 | 90046 | 99072 | 105347 | 109365 | 120294 | 124270 | 126610 | 126787 | 130482 | 131503 | 133186 | 132605 | 132947 | 140529 | 148941 | 148935 | 150161 | 150481 | 150593 |
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. - 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([1,4,1,1,2,1,0,3,0,1,2,1,1,1,2,3,3,3,2,1,2,2,2,2,4,0,4,3,5,4,3,5,2,7,2,5,3,3,1,])
array_2 = np.array([35190,36245,39350,42620,45035,45815,49614,50270,52529,54129,53067,56494,58494,61394,67391,73730,76879,76523,86053,88560,90046,99072,105347,109365,120294,124270,126610,126787,130482,131503,133186,132605,132947,140529,148941,148935,150161,150481,150593,])
array_1_name = "The number of movies Dustin Hoffman appeared in"
array_2_name = "Number of Las Vegas Hotel Room Check-Ins"
# 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 Dustin Hoffman appeared in
- Line chart for only Number of Las Vegas Hotel Room Check-Ins
I'm grateful for your review!
Correlation ID: 26203 · Black Variable ID: 26596 · Red Variable ID: 499