February 2020
Beginner
621 pages
19h 34m
English
Suppose there are 23 people in a room. What is the probability that at least two have the same birthday?
SOLUTION
The probability that no two have the same birthday is (note that the product stops at not ). Subtracting from 1 gives the probability that at least two have the same birthday:
> 1-mul(1.-i/365, i=1..22).5072972344
Note that we used in the product instead of 1 without the decimal point. If we had omitted the decimal point, the product would have been evaluated as a rational number (try it, you’ll see).
Suppose a lazy phone company employee assigns telephone numbers by choosing random seven-digit numbers. In a town with 10,000 phones, what is the ...
Read now
Unlock full access