Formula Cards

38 formulas for Topics 1 & 2

Pro tip: Say each one out loud as you read it. Your brain remembers better when your mouth moves.

Definitions

Definitions
Random variable
X : S → ℝ
A function that gives every outcome of an experiment a real number.
Use: you need to turn outcomes (like RB, BR) into numbers (like 1 red).
Definitions
Discrete random variable
X takes countably many values
Like 0, 1, 2, … or a finite list.
Use: you can list the possible values, even if the list never ends.
Definitions
Continuous random variable
X takes any value in an interval
Like any real number between 0 and 1.
Use: values are measured, not counted. Not in Topic 1, but know the contrast.
Definitions
Sample space
S = { all possible outcomes }
The full list before you attach numbers.
Use: you start any problem: write S first, then define X.

PMF

PMF
Probability mass function
p(y) = P(Y = y)
The probability at each value of a discrete Y.
Use: the question asks for “the distribution of X”.
PMF
Axiom 1
0 ≤ p(y) ≤ 1
Every probability lives between 0 and 1.
Use: checking whether a table is a valid PMF.
PMF
Axiom 2
Σ p(y) = 1
Over every possible y, the probabilities add to one.
Use: solving for an unknown constant c in p(y).

CDF

CDF
Cumulative distribution
F(x) = P(X ≤ x) = Σ_{t ≤ x} p(t)
A staircase that climbs to 1.
Use: the question says “at most” or “no more than”.
CDF
PMF from the CDF
p(x) = F(x) − F(x − 1)
For integer X: the height of each step.
Use: you're given F and asked for one probability.

Special

Special
Hypergeometric
p(y) = C(r, y) C(N − r, n − y) / C(N, n)
Sampling without replacement from a finite population.
Use: you draw without putting back, like the marbles and workers.

Expectation

Expectation
Expected value
E(X) = Σ x p(x)
The balance point of the distribution.
Use: the question asks for a mean or a long-run average.
Expectation
Function of X
E[g(X)] = Σ g(x) p(x)
Apply g first, then weight by p(x).
Use: you need E(X²), expected profit, or similar.
Expectation
Linearity
E(aX + b) = aE(X) + b
Expectation passes straight through linear changes.
Use: units change (RM to sen) or there's a fixed fee.

Variance

Variance
Variance
V(X) = E[(X − μ)²]
Average squared distance from the mean.
Use: you want the definition, or a proof.
Variance
Variance shortcut
V(X) = E(X²) − μ²
Usually the quickest way.
Use: you're actually computing a number.
Variance
Linear rule
V(aX + b) = a² V(X)
Shifting doesn't change spread; scaling squares it.
Use: X is rescaled or shifted.

MGF

MGF
Moment generating function
M(t) = E(eᵗˣ) = Σ eᵗˣ p(x)
One function that carries every moment.
Use: the question says “find the MGF” or wants many moments.
MGF
First moment
E(X) = M′(0)
Differentiate once, then set t = 0.
Use: you have M(t) and need the mean.
MGF
Second moment
E(X²) = M″(0)
Differentiate twice, then set t = 0.
Use: you need the variance from M(t): V = M″(0) − [M′(0)]².
MGF
Uniform MGF
M(t) = eᵗ(1 − eᵏᵗ) / [k(1 − eᵗ)]
A geometric series with a = r = eᵗ.
Use: X ~ U(k).
MGF
Bernoulli MGF
M(t) = q + peᵗ
Two terms: x = 0 and x = 1.
Use: X ~ Ber(p).
MGF
Binomial MGF
M(t) = (peᵗ + q)ⁿ
The binomial theorem with a = peᵗ, b = q.
Use: X ~ Bin(n, p), or you need to recognise one.
MGF
Poisson MGF
M(t) = e^{λ(eᵗ − 1)}
The series Σ aˣ/x! = eᵃ with a = λeᵗ.
Use: X ~ Poi(λ), or you need to recognise one.
MGF
Uniqueness
M_X(t) = M_Y(t) ⇒ same distribution
An MGF fingerprints its distribution.
Use: you are given an MGF and asked about X.

Uniform

Uniform
Discrete uniform pmf
f(x) = 1/n, x = 1, 2, …, n
Every one of the n values is equally likely.
Use: outcomes are equally likely with fixed min and max (a die, numbered balls).
Uniform
Uniform mean & variance
E(X) = (n+1)/2, V(X) = (n²−1)/12
Middle of 1..n; spread grows with n².
Use: the question gives X ~ U(n).

Bernoulli

Bernoulli
Bernoulli pmf
f(x) = pˣ(1−p)¹⁻ˣ, x = 0, 1
One trial: success with p, failure with q = 1 − p.
Use: a single yes/no trial.
Bernoulli
Bernoulli mean & variance
E(X) = p, V(X) = pq
Variance is biggest at p = 0.5.
Use: X is a 0/1 indicator.

Binomial

Binomial
Binomial pmf
b(x; n, p) = C(n, x) pˣ qⁿ⁻ˣ, x = 0..n
Number of successes in n independent trials.
Use: fixed n, two outcomes, constant p, independent trials.
Binomial
Binomial mean & variance
E(X) = np, V(X) = npq
Mean scales with n; spread shrinks as p nears 0 or 1.
Use: X ~ Bin(n, p).
Binomial
Table 1 reading
P(X ≥ r) = Σₓ₌ᵣ C(n,x)pˣqⁿ⁻ˣ
The table is 'r or more'.
Use: P(X = a) = P(X ≥ a) − P(X ≥ a+1).
Binomial
Flip to failures
Y = n − X ~ Bin(n, q)
Successes ≥ k ⇔ failures ≤ n − k.
Use: p > 0.5 and the table only covers p ≤ 0.5.

Poisson

Poisson
Poisson pmf
p(x; λ) = e^(−λ) λˣ / x!, x = 0, 1, 2, …
Counts of random events in a fixed time or space.
Use: a mean rate per interval is given.
Poisson
Poisson mean & variance
E(X) = V(X) = λ
Mean and variance are equal.
Use: X ~ Poi(λ).
Poisson
Rescale λ
λ_new = λ × (new length / old length)
The rate scales with the size of the interval.
Use: the window differs from the one the rate is given for.
Poisson
Table 2 reading
P(X ≥ r) = Σₓ₌ᵣ e^(−m) mˣ / x!
Same 'r or more' layout as Table 1, with m = λ.
Use: P(X = 0) = 1 − P(X ≥ 1).
Poisson
Poisson approx. to binomial
Bin(n, p) ≈ Poi(np)
Rare events over many trials.
Use: n large and p small (slides: n > 50, p < 0.1).

Proofs

Proofs
E[X(X−1)] trick
E(X²) = E[X(X−1)] + E(X)
The x(x−1) cancels two factorial terms cleanly.
Use: proving a binomial or Poisson variance.