letx=

Probability and statistics cheat sheet

All 13 formulas on one page. Print it or save it as a PDF; it fits on 3 sides of A4 or Letter.

Mean (average)

x¯=∑i=1nxin
  • x¯ the mean of the data (μ is used for a whole population)
  • xi the data values x1,x2,…,xn
  • n the number of values
  • ∑ "add up": the sum of all the values

Standard deviation

σ=∑(xi−μ)2N
Sample standard deviations=∑(xi−x¯)2n−1
Varianceσ2=∑(xi−μ)2N
  • σ the population standard deviation: the data are the whole group you care about
  • s the sample standard deviation: the data are a sample from a bigger population
  • xi the data values xi
  • μ the mean of the data (x¯ for a sample)
  • N the number of values (n for a sample)

Z-score (standard score)

z=x−μσ
  • z the z-score: positive above the mean, negative below
  • x the value
  • μ the mean of the distribution
  • σ the standard deviation (greater than 0)

Normal distribution probability

P(a<X<b)=Φ(b−μσ)−Φ(a−μσ)
Probability densityf(x)=1σ2πe−(x−μ)22σ2
Below bP(X<b)=Φ(b−μσ)
Above aP(X>a)=1−Φ(a−μσ)
  • P the probability, between 0 and 1
  • μ the mean
  • σ the standard deviation (greater than 0)
  • a the lower bound (leave it empty for "below b")
  • b the upper bound (leave it empty for "above a")
  • Φ the standard normal cumulative distribution: Φ(z) is the probability of a value below z

Permutations

P(n,r)=n!(n−r)!
  • Pn,r the number of ordered arrangements, also written _nPr
  • n the number of items to choose from
  • r how many are chosen and placed in order (r ≤ n)
  • n! n factorial: n×(n−1)×⋯×2×1, with 0!=1

Combinations

(nr)=n!r!(n−r)!
  • C the number of selections, "n choose r", also written _nCr
  • n the number of items to choose from
  • r how many are chosen (r ≤ n)

Binomial distribution

P(X=k)=(nk)pk(1−p)n−k
At most k (cumulative)P(X≤k)=∑j=0k(nj)pj(1−p)n−j
Mean and standard deviationμ=np, σ=np(1−p)
  • P(X=k) the probability of exactly k successes
  • P(X≤k) the cumulative probability of at most k successes, P(X≤k)
  • n the number of trials
  • k the number of successes (0 to n)
  • p the probability of success on each trial

Addition rule (or)

P(A∪B)=P(A)+P(B)−P(A∩B)
Mutually exclusive eventsP(A∪B)=P(A)+P(B)
  • P(A∪B) the probability of A or B or both, P(A∪B)
  • P(A) the probability of event A
  • P(B) the probability of event B
  • P(A∩B) the probability that both happen, P(A∩B)

Multiplication rule for independent events (and)

P(A∩B)=P(A)·P(B)
General (any events)P(A∩B)=P(A)·P(B∣A)
  • P(A∩B) the probability that both A and B happen
  • P(A) the probability of A
  • P(B) the probability of B

Conditional probability

P(A∣B)=P(A∩B)P(B)
  • P(A∣B) the probability of A given B, P(A∣B)
  • P(A∩B) the probability of both A and B
  • P(B) the probability of B (must be greater than 0)

Bayes' theorem

P(A∣B)=P(B∣A)P(A)P(B)
Total probability of BP(B)=P(B∣A)P(A)+P(B∣A¯)P(A¯)
  • P(A∣B) the updated (posterior) probability of A after seeing B
  • P(A) the prior probability of A, before the evidence (for example how common a disease is)
  • P(B∣A) the probability of the evidence when A is true (a test's sensitivity)
  • P(B∣A¯) the probability of the evidence when A is false (a test's false-positive rate)
  • A¯ "not A"

Expected value

E(X)=∑xipi
VarianceVar(X)=∑pi(xi−E(X))2
  • E(X) the expected value (mean) of X
  • xi the possible values xi
  • pi the probability pi of each value; together they must add up to 1

Margin of error (proportion)

E=z∗p^(1−p^)n
Sample size neededn=(z∗)2p^(1−p^)E2
Confidence intervalp^±E
  • E the margin of error, as a proportion (0.03 means ±3 percentage points)
  • z the critical value z∗: 1.645 for 90% confidence, 1.96 for 95%, 2.576 for 99%
  • p^ the sample proportion p^ (use 0.5 when planning, which gives the largest margin)
  • n the sample size

letx.io · Probability and statistics cheat sheet · 2026-10-31