Large N & Leeuwenhoek (70700173)


Sample Space: Space of all possible outcomes
Methods to “discover” the probability in a sample space
“Count out”
W/o replacement means once being picked out, never put it back.

Five soccer balls and five basketballs (in the same size and surface).
What’s the chance (a.k.a., probability) to get 5 soccer balls in five spilling out?
Is the cross-sectional survey sampling a w. or w.o. replacement process?

“Calculate”
Applying multiplicative and additive rules.
⇒ \(m\times n\) possible outcomes for E1E2.

Six heads, 15 bodys, 25 colors, how many distinctive types of toys?
\[6 \times 15 \times 25 = 2,250.\]
Permutation: Ordered
\[P(n, r) = \frac{n!}{(n - r)!}.\]
Combination: Order
\[{n \choose r} = \frac{n!}{r!(n - r)!}.\]
“Figure out”
Bayes’ Theorem
\[ \begin{aligned} P(A|B)P(B) =& P(B|A)P(A) = P(A\cap B);\\ P(A|B)=& \frac{P(B|A)P(A)}{P(B)},\\ =& \frac{P(B|A)P(A)}{P(B|A)P(A) + P(B|\tilde A)P(\tilde A)} \end{aligned} \]

Thomas Bayes (1702–1761)

Frequentist 🔫 Bayesian
E.g., A hospital investigated whether alcoholism relates to fatal illness.
| Alcoholism | Yes | No |
|---|---|---|
| Fatal | 1,601 | 510 |
| Nonfatal | 162,527 | 412,368 |
\[Risk_{fatal} = \frac{1601/(1601 + 162527)}{510/(510 + 412368)} = 7.897\]
When people drink, they are 7.9 more times to die in a fatal accident than those w/o.
The above line distinguishes a scholar from a student.
\[\begin{align} O_{12} =& \frac{\pi_{1|1}/\pi_{1|2}}{\pi_{2|1}/\pi_{2|2}}, \\ =& \frac{n_{11}/n_{12}}{n_{21}/n_{22}}, \\ =& n_{11}n_{22}/n_{21}n_{12}. \end{align}\]
The previous e.g.,
| Alcoholism | Yes | No |
|---|---|---|
| Fatal | 1,601 | 510 |
| Nonfatal | 162,527 | 412,368 |
\(O_{fatal} = \frac{1601/510}{162527/412368}\) = 7.965
The fatal risk of alcoholism is 8 times larger than not.

(Probability) distribution: The mathematical function that gives the probabilities of occurrence of different possible outcomes for an experiment.
Marginal and joint totals
\[\begin{align} n_{i\bullet} =& \sum_j n_{ij}; n_{\bullet j} = \sum_i n_{ij}; \\ n_{\bullet\bullet} =& \sum\sum n_{ij}. \end{align}\]
Conditional distribution
\[\begin{align} \pi_{i|j} = \pi_{ij} / \pi_{\bullet j}; \\ \hat{\pi_{i|j}} = n_{ij}/n_{\bullet j}. \end{align}\]
Marginal and joint distributions
Marginal \[\begin{align} \pi_{i\bullet} =& \sum_j \pi_{ij}, \hat{\pi_{i\bullet}} = n_{i\bullet}/n_{\bullet\bullet}; \\ \pi_{\bullet j} =& \sum_i \pi_{ij}, \hat{\pi_{\bullet j}} = n_{\bullet j}/n_{\bullet\bullet}. \end{align}\]
Joint: \(\pi_{\bullet\bullet}\) = ∑∑ πij = 1.
E.g., Into Young Woman and the Sea?
| Gender | Yes | No | Total |
|---|---|---|---|
| Male | 5 | 12 | 17 |
| Female | 6 | 5 | 11 |
| Total | 11 | 17 | 28 |

\[P(X\cap Y) = P(X)P(Y); P(Y|X) = P(Y).\]
Such event’s probability is:
E.g., Young Woman and the Sea?
| Gender | Yes | No | Total |
|---|---|---|---|
| Male | 5 | 12 | 17 |
| Female | 6 | 5 | 11 |
| Total | 11 | 17 | 28 |