How many ways to choose 2 students from 5 to volunteer this weekend?
How many ways to choose 3 students from 40 to form a committee.
How many ways to choose 3 students from 40 to form a committee.
The number of ways of choosing \(k\) objects out of \(n\) is
\[\begin{aligned} {n \choose k}&=\frac{k\text{-permutations of }n}{\text{permutations of }k} \\ \\ &=\frac{n!}{k!(n-k)!} \\ \end{aligned}\]
2-permutations of 4 letters A, B, C, and D
\[\frac{4!}{(4-2)!}=12\]
AB BA AC CA AD DA BC CB BD DB CD DC
AB AC AD BC BD CD
Combinations of choosing 2 letters from 4
\[{4 \choose 2}=\frac{4!}{2!(4-2)!}=6\]
\[{n \choose k}={n \choose n-k}\]
\[{5 \choose 3}={5 \choose 5-3}\]
\[{n \choose k}={n \choose n-k}\]
Proof:
Toss a fair coin \(n\) times.
What is the chance there are \(k\; (= 0, 1, \cdots, n)\) heads?
Draw 7 cards from a well-shuffled 52-card deck.
Find the probability that
How many people would it take to have a 50-50 chance that at least two of them share the same birthday?
Another way to describe it:
There are \(n\) people at a party.
How likely at least two of them share their birthday?
Assumptions
\[ \text{P(sharing birthday)}=1-\frac{365!}{(365-n)!\cdot 365^n} \]
Go to Google Colab, sign in, and open a new notebook.
You walked into a party with \(n\) people.
How likely someone shares the birthday with you?