The cheat sheet
Read a symbol as an instruction about an experiment. Worked notation problems show how several instructions combine in a full question.
Events and conditioning
Section titled “Events and conditioning”| notation | read it as |
|---|---|
| , | sample space; one outcome in it |
| event A is a set of possible outcomes | |
| , | both events; at least one event |
| number of outcomes in a finite event | |
| probability of A | |
| probability of A after conditioning on B |
For finite equally likely outcomes, . More generally, add the probability mass assigned to the outcomes in the event.
Probabilities are nonnegative, the whole space has probability 1, and probabilities add for a countable collection of pairwise disjoint events. In particular:
Events A and B are independent when .
One variable, three representations
Section titled “One variable, three representations”| name | definition | how to get a probability |
|---|---|---|
| PMF | sum masses at relevant values | |
| : probability per unit of x | integrate over a region | |
| CDF | subtract accumulated probabilities |
A density can exceed 1; its total area must be 1. A CDF is nondecreasing, with limits 0 and 1 at the ends of the real line. For any distribution:
The lower endpoint is excluded. For a distribution with a density, endpoints carry no probability and the distinction disappears. In our smooth examples, and .
Expectations and variance
Section titled “Expectations and variance”
Evaluate g at each possible x first, then weight and add. For a density, use instead.
With finite moments:
This does not require independence. Nonlinear operations generally cannot move outside the expectation: is usually different from .
Independent variables have zero covariance. Zero covariance alone is sufficient for adding these two variances; it does not imply independence. Standard deviation is , in the original units.
Two variables
Section titled “Two variables”| operation | discrete formula | physical operation |
|---|---|---|
| joint | probability of a pair | |
| marginal | add a row | |
| conditional | keep a row, divide by its total |
The conditional PMF formula requires . For joint densities, when . This is a ratio of densities, not probabilities of exact continuous values.
Bayes’ rule reverses which quantity is conditioned on:
Condition first, then average back over the groups:
For continuous X, replace the sum with an integral using its density. The analogous averaging of conditional probabilities is the law of total probability.
Common distributions
Section titled “Common distributions”| notation | experiment | mean | variance |
|---|---|---|---|
| 1 with probability p; otherwise 0 | p | p(1−p) | |
| successes in n independent identical Bernoulli trials | np | np(1−p) | |
| uniform point in an interval, a<b | (a+b)/2 | (b−a)²/12 | |
| normal with mean μ, standard deviation σ | μ | σ² |
The standard normal CDF is . It has no elementary closed form; numerical software computes it accurately. For , standardize with before using Φ.
Notation you will see in ML
Section titled “Notation you will see in ML”- : independent draws from the same distribution p.
- : 1 when A occurs, otherwise 0. Its expectation is .
- : draw x from p, compute its log score under , average.
- : return the parameter choice with the largest score. returns the score itself.