# 5: Probability

Source: https://cca.twango.dev/AP-Statistics/chapter-5

# 5: Probability

Probability describes long-run chance, with $0\le P(A)\le1$.

$$
P(A^c)=1-P(A).
$$

The **law of large numbers** says that, for repeated independent trials under the same conditions, the relative frequency approaches the event probability. It does not mean a short-run imbalance must immediately be corrected.

## “Or”: union

$$
P(A\cup B)=P(A)+P(B)-P(A\cap B).
$$

If events are **mutually exclusive**, $P(A\cap B)=0$, so probabilities add directly.

## “And”: intersection

$$
P(A\cap B)=P(A)P(B\mid A).
$$

If events are **independent**:

$$
P(A\cap B)=P(A)P(B).
$$

## “Given”: conditional probability

For $P(B)>0$:

$$
P(A\mid B)=\frac{P(A\cap B)}{P(B)}.
$$

## Testing independence

Check whether $P(A\cap B)=P(A)P(B)$; equivalently, when defined, check whether $P(A\mid B)=P(A)$.

> [!warning] Review correction
> The original opening formula $P(A\mid B)=P(A)+P(B)$ was incorrect. Direct addition for “or” requires **mutually exclusive** events, not independent events. See [OpenStax on independence and mutual exclusivity](https://openstax.org/books/introductory-statistics-2e/pages/3-2-independent-and-mutually-exclusive-events).

Related: [[chapter-6|Random variables]] · [[chapter-8|Sampling distributions]]
