Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can you suggest some good movies which involve math, probabilities etc? One example is 21. I would also be interested in movies that involve algorithms (e.g. text decryption). In general "geeky" movies with famous scientific theories but no science fiction or documentaries. Thanks in advance!

share|improve this question
nice idea for a collection ! @mods: Beside cw maybe renaming to "movies every statistician should have seen" or something like that ? – steffen May 7 '11 at 12:28
@steffen Thx. Better to flag the question for mods attention in the future (we aren't notified with @mods). – chl May 7 '11 at 12:37
By the way, I found this page, which might add some movies to the collection: – Thea May 7 '11 at 14:41
Nothing that will inspire anybody to take up mathematics. Stick to books. – Emre May 7 '11 at 15:21
@Emre Maybe. But nevertheless it is entertaining for those who already deal with math (even more if the movie is presenting things wrong or with exaggeration). – steffen May 7 '11 at 18:38

18 Answers 18

up vote 14 down vote accepted


share|improve this answer
An absorbing story and one I'd recommend, but it referred to math rather than truly involding math. I'd say the same thing about the tv show Numb3rs. – rolando2 May 7 '11 at 22:43
@rolando2 I eagerly await the day when a movie can be made about some foundational mathematician or field of mathematics which is both interesting to the public and adequately involves math. I don't think a 2 hour epic soliloquy of Galois on the night before his fatal duel would stand up to Iron Man IV, but who knows? This is why the only movies about mathematicians are about insane mathematicians. – AdamO Nov 12 '13 at 18:55
Maybe "life of Alexander Grothendieck" could be made into a blockbuster movie? – kjetil b halvorsen May 25 '14 at 11:13

'A Beautiful Mind' naturally has a bit of game theory in it.

share|improve this answer
one can also use this to generate discussion on spurious correlation – KennyPeanuts May 7 '11 at 16:56

Not a movie, but a TV series: Numb3rs

share|improve this answer

Proof was pretty good.

share|improve this answer
I think this has been the most "authentic" depiction of mathematicians I've seen in a movie that's very good and entertaining. – Chan-Ho Suh Nov 8 '13 at 4:00

The Cube

share|improve this answer
good one. It has a not so good sequel called Hypercube. – mpiktas May 16 '11 at 11:07
@mpiktas, I never did see Hypercube, and it does not sound like I should :-) I saw The Cube some ten years ago and found it pretty entertaining. – NRH May 16 '11 at 16:47

MONEYBALL! It's a movie where the statisticians win!

This is probably the most inspiring major motion picture about the power of quantitative methods. (if only because the plot is a little formulaic). And it shows quantitative methods (sabrmetrics) eventually coming to dominate over the backward and untested techniques of the dinosaurs of baseball.

share|improve this answer
Captain Holt's reaction to that movie pretty much sums it all: – Waldir Leoncio Jun 6 '14 at 13:54

21 - based on the book Bringing Down the House (MIT Blackjack team)

Near the beginning they discuss the Monty Hall Problem. However after that there isn't much actual math/probability.

share|improve this answer
The story is somewhat based on the real lives of some very notable mathematicians, I believe Stone and Kalman, who developed these gaming strategies. – AdamO Nov 8 '13 at 4:06
too bad the movie is terrible... there was a tv documentary based on the same thing that was much better. – Michael Bishop Nov 8 '13 at 16:07

The mathematical movie database has some great suggestions with over 800 movies (though most tenuously linked to maths) already listed. In the navy, from 1941, is probably my favourite.

share|improve this answer
Cooooooooooooooooooool! – Waldir Leoncio Jun 6 '14 at 13:52

I have not seen this yet, but it seems somewhat geeky: Fermat's Room

share|improve this answer
It's not particularly geeky - it is a Spanish thriller (and like all thrillers has some implausible plot lines to move the story along and resolve it at the end) with a few logic puzzles using numbers. If you want to solve the puzzles yourself, a pause button might be useful. – Henry May 7 '11 at 22:30

There are several movie versions of Flatland. And there's The Great $\pi$/e Debate.

share|improve this answer

Early in The Social Network begins with a one night hackathon where Mark Zuckerberg uses the Elo rating system algorithm to

... create a website that rates the attractiveness of female students when compared to each other. ... in a few hours, using an algorithm for ranking chess players supplied by his best friend, Eduardo Saverin, he creates a website called "FaceMash," where students can choose which of two girls presented at a time is more attractive.

However, much of the rest of the movie is devoted to episodes of hacking, corporate politics, lawsuits, escapades, Zuckerberg's interpersonal problems, etc. But, I found it quite fascinating, overall. A great geek movie.

share|improve this answer

BBC Horizon - The Bible Code. It shows, that whatever codes people found in Bible, so far they didn't prove to be statistically significant.

share|improve this answer

Rounders. A very watchable drama about poker players.

share|improve this answer

There is a published a documentary about Srinivasa Ramanujan whose life, as we know, is tremendously interesting. However, the film is Indian and I haven't actually seen it. I recall an Indian math historian speaking about this film at our university colloquium several years ago. He boasted, "Ben Kingsley was interested in depicting Ramanujan but was turned down for the role because he was only half Indian". As a mixed race individual, I felt a mixture of anger and pity. The latter because they basically turned down the opportunity to make a movie that would attract anyone's attention.

share|improve this answer

Good Will Hunting is also a classic. Discrete mathematics at MIT.

share|improve this answer
Their depiction of maths is horrid. – abaumann May 25 '14 at 10:01

The documentary about Andrew Wiles proof of Fermat's Last Theorem is fantastic:

Available on youtube:

share|improve this answer

12 angry men (1957, with Henry Fonda): a great film about a decision procedure and the strength of evidences

share|improve this answer
A great movie, but not particularly centered on maths. – abaumann Nov 10 '13 at 10:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.