Initial commit

This commit is contained in:
2025-12-25 21:13:43 -08:00
commit 9ce7679e9c
40 changed files with 2430 additions and 0 deletions

33
Choosing Stuff.md Normal file
View File

@@ -0,0 +1,33 @@
#Math #Probability
# Problem
Given $m$ items of one type and $n$ items of another type, what is the probability of choosing $l$ items of type one and $o$ items of type two if you pick $l + o$ items?
# Solution
Total ways to choose the items not considering types:
$$
{m + n} \choose {l + o}
$$
Total ways to choose $l$ items of type one:
$$
m \choose l
$$
Total ways to choose $o$ items of type two:
$$
n \choose o
$$
Multiply the ways to choose both items to get the number of ways to choose $l$ items of type one and $o$ items of type two, divide by total number of combinations:
$$
\frac {{m \choose l} {n \choose o}} {{m + n} \choose {l + o}}
$$