IAE Academy

The whole Probability and Statistics formula sheet, to print

156 formulas in 7 topics, each with when to use it. Each is explained in the topic notes.

Counting, sample spaces and the axioms of probability

Read the notes

PERMUTATIONS OF R FROM N DISTINCT OBJECTS (ORDER MATTERS, NO REPETITION)

Selecting and arranging r of n distinct objects. P(n,n) = n! is the number of orderings of all n, and P(n,0) = 1 because 0! = 1.

COMBINATIONS OF R FROM N DISTINCT OBJECTS (ORDER DOES NOT MATTER)

Selecting r of n distinct objects with no arrangement. Related to permutations by P(n,r) = r! times the binomial coefficient. The binomial coefficient is taken as 0 when r > n.

PASCAL'S IDENTITY AND THE BINOMIAL SUM

The sum counts all subsets of an n-element set, so there are 2^n - 1 non-empty subsets. Useful for 'at least one' style selections.

BINOMIAL THEOREM

Putting x = y = 1 gives the sum 2^n. Putting x = -1, y = 1 shows that the alternating sum of the binomial coefficients is 0 for n >= 1.

INCLUSION-EXCLUSION FOR COUNTING

For finite sets. The count of objects with NONE of the properties is the total minus the union. The same pattern for probabilities is in section 4.

MULTINOMIAL COEFFICIENT

The number of ways to split n distinct objects into LABELLED groups of sizes n_1, ..., n_k, and equally the number of arrangements of n objects with repeated types. If the groups are unlabelled, divide by m! for each set of m groups of the same size. For example, 6 distinct people split into three unlabelled pairs: 6!/(2! 2! 2! 3!) = 15.

STARS AND BARS

Distributing n identical objects into k distinct boxes with no limit per box. For a lower bound x_i >= a, substitute y_i = x_i - a and reduce n by a. For an upper bound x_i <= b, count all solutions and subtract those with x_i >= b + 1, using inclusion-exclusion when several variables are bounded.

ONTO FUNCTIONS (NO BOX LEFT EMPTY)

Also the number of ways to place m distinct objects into n distinct boxes with every box non-empty. It comes from inclusion-exclusion over the set of boxes left empty, and is 0 when m < n. Check: m = 4, n = 2 gives 16 - 2 = 14; m = 4, n = 3 gives 81 - 48 + 3 = 36.

EQUALLY LIKELY OUTCOMES (CLASSICAL PROBABILITY)

Valid only when the sample space is finite and every outcome is equally likely. State this assumption before using it; the wording of the question (a fair die, chosen at random, uniformly) is what justifies it.

AXIOMS OF PROBABILITY

Every other rule is derived from these three. Axiom 3 applies to any finite or countably infinite sequence of events, but only if they are pairwise mutually exclusive.

COMPLEMENT RULE

Use it for 'at least one' events: compute the probability that none occurs and subtract from 1.

INCLUSION-EXCLUSION FOR TWO EVENTS

Holds for any two events. The subtraction removes the overlap, which was counted twice.

INCLUSION-EXCLUSION FOR THREE EVENTS

Holds for any three events.

INCLUSION-EXCLUSION FOR N EVENTS

Holds for any events. The signs alternate: singles plus, pairs minus, triples plus, and so on. S_k has C(n,k) terms.

DIFFERENCE, MONOTONICITY AND THE UNION BOUND

The first formula holds for any A and B; the simpler form P(B) - P(A) needs A to be a subset of B. The union bound holds with no condition.

FEASIBLE RANGE OF AN INTERSECTION

The lower bound follows from P(A union B) <= 1; the upper bound from monotonicity. It gives the possible values of the intersection when only the two marginal probabilities are known.

INDEPENDENCE OF TWO EVENTS

With the conditional probability P(A | B) = P(A and B)/P(B), defined for P(B) > 0, independence is equivalent to P(A | B) = P(A). If A and B are independent, so are A and B^c, A^c and B, and A^c and B^c.

MUTUAL INDEPENDENCE OF THREE EVENTS

All four equations are required; pairwise independence is only the first three. For n events, the product rule must hold for every sub-collection of two or more events, which is 2^n - n - 1 equations.

AT LEAST ONE OF N INDEPENDENT EVENTS

Valid when A_1, ..., A_n are mutually independent: their complements are then mutually independent too, and the probability that none occurs is the product.

DRAWING WITHOUT REPLACEMENT (HYPERGEOMETRIC COUNTING)

An urn has R red and B blue balls, and n <= R + B balls are drawn at random without replacement. Order is ignored in both the numerator and the denominator.

BIRTHDAY PROBLEM

Assumes N equally likely days and independent birthdays (N = 365, ignoring 29 February). For k > N the probability is 0. The probability that at least two people share a birthday is 1 minus this.

DERANGEMENTS AND THE MATCHING PROBLEM

n letters are placed at random in n addressed envelopes, one per envelope. D_n counts the permutations with no fixed point: D_1 = 0, D_2 = 1, D_3 = 2, D_4 = 9, D_5 = 44. Recurrence: D_n = (n-1)(D_{n-1} + D_{n-2}) for n >= 3. As n grows, P(no match) tends to 1/e, about 0.3679.

Conditional, marginal and joint probability, and Bayes' theorem

Read the notes

CONDITIONAL PROBABILITY

Defined when . For fixed , is itself a probability measure, so .

MULTIPLICATION RULE (TWO EVENTS)

The first form needs , the second needs . No independence is needed.

CHAIN RULE (MULTIPLICATION RULE FOR N EVENTS)

Used for sequential experiments such as draws without replacement. Needs , which makes every conditioning event positive.

COMPLEMENT AND SPLITTING

Always valid. The second identity splits by whether occurs; it is the two-part case of the law of total probability below.

UNION OF TWO EVENTS

Always valid. Given any three of , , and , it gives the fourth.

UNION OF THREE EVENTS (INCLUSION-EXCLUSION)

Always valid. Add the singles, subtract the pairs, add back the triple.

MARGINAL FROM THE JOINT

Sum over all values of the other variable. All cells of the table sum to 1.

CONDITIONAL FROM THE JOINT

Defined when . Fix the column of the conditioning value, then divide each cell in it by that column's total. For each fixed these conditionals sum to 1 over .

INDEPENDENCE OF TWO DISCRETE RANDOM VARIABLES

Each cell must equal the product of its row total and column total. One cell that fails is enough to show and are dependent.

MARGINAL AND CONDITIONAL DENSITIES (CONTINUOUS CASE)

For jointly continuous with joint density . Sums become integrals. The conditional density is defined where . Densities are not probabilities: probabilities come from integrating them, and for a continuous .

LAW OF TOTAL PROBABILITY

The must be mutually exclusive and exhaustive with . The simplest partition is : .

BAYES' THEOREM (TWO EVENTS)

Follows from the multiplication rule written both ways. Needs and .

BAYES' THEOREM OVER A PARTITION

is a partition with positive probabilities, and . The denominator is the law of total probability, so the posteriors sum to 1 over .

BAYES' THEOREM IN ODDS FORM

Posterior odds = likelihood ratio × prior odds. It needs , and . Convert back with probability = odds / (1 + odds).

BAYES WITH TWO CONDITIONALLY INDEPENDENT PIECES OF EVIDENCE

Valid when and are conditionally independent given and also given . In the example above, two positive tests give . Equivalently, apply Bayes once and use the first posterior as the prior for the second test.

INDEPENDENCE OF TWO EVENTS

The product form is the definition and needs no positivity condition. If and are independent, so are and , and , and and .

MUTUAL INDEPENDENCE OF THREE EVENTS

, , are mutually independent when this holds AND every pair is independent: , , . For events, the product rule must hold for every subcollection of two or more.

CONDITIONAL INDEPENDENCE

Events and are conditionally independent given when this holds, with . In general it neither implies nor is implied by ordinary independence.

Mean, median, mode, standard deviation, covariance and correlation

Read the notes

ARITHMETIC MEAN

Raw data. For grouped data with frequencies and class midpoints , use . This treats every value as sitting at its class midpoint, so it is an approximation unless the values really are the midpoints.

MEDIAN OF RAW DATA

Here is the -th smallest value; sort first.

MEDIAN OF GROUPED DATA

The median class is the first class whose cumulative frequency is at least . = its lower class boundary, , = cumulative frequency of the classes before it, = its frequency, = its width. Classes must be continuous: if the class limits leave gaps (10-19, 20-29), use the boundaries (9.5-19.5, 19.5-29.5).

MODE OF GROUPED DATA

= lower boundary of the modal class (highest frequency ), and = frequencies of the classes just before and after it, = class width. The modal class and its two neighbours must have the same width. If the modal class is the first or last class, take the missing neighbour's frequency as .

MEAN, MEDIAN AND MODE OF A RANDOM VARIABLE

is the pmf, the pdf and the CDF. The median condition is for a continuous (in general a median satisfies and ). The mean exists only when the sum or integral of converges. Example: for the exponential distribution with rate , gives median , while the mean is and the mode is .

DEVIATIONS FROM THE MEAN

For any constant , the sum of squared deviations is therefore smallest when . The sum of absolute deviations is smallest when is the median (for even , any between the two middle values).

POPULATION VARIANCE AND SD (DIVIDE BY N)

is the population mean. The second form is the shortcut .

SAMPLE VARIANCE AND SD (DIVIDE BY N - 1)

is an unbiased estimator of the population variance. For the same data it relates to the divide-by- value by .

VARIANCE OF A RANDOM VARIABLE

. If picks one of the data values uniformly at random, this equals the population (divide-by-) variance of the data.

COEFFICIENT OF VARIATION

Defined for data with a positive mean. It has no units, so it compares the spread of data sets measured on different scales: the one with the larger CV is relatively more variable.

EFFECT OF $Y=AX+B$ ON CENTRE AND SPREAD

This holds for the population and the sample versions alike. The median and the mode also transform as .

COMBINED MEAN

Weighted by group size. It equals the plain average only when .

COMBINED VARIANCE (POPULATION FORM, DIVIDE BY N)

Both group variances must be the divide-by- kind. If sample variances are given, first convert them with .

COVARIANCE (RANDOM VARIABLES)

, and for a constant .

SAMPLE COVARIANCE OF PAIRED DATA

For the population version, divide by instead. State the convention you use.

PEARSON CORRELATION COEFFICIENT

Both variances must be positive and finite. The or factors cancel in , so the sample value does not depend on the convention.

LINEAR TRANSFORMATION RULES

For and . A positive-slope linear change of either variable leaves the correlation unchanged; a negative multiplier on exactly one variable flips its sign.

COVARIANCE IS BILINEAR

Covariance is linear in each argument separately. Note the in : variances never subtract.

VARIANCE OF A SUM

The cross term vanishes when the covariance is zero (for example, when and are independent).

VARIANCE OF A SUM OF N VARIABLES

If the are pairwise uncorrelated, the variance of the sum is the sum of the variances.

VARIANCE OF THE MEAN OF N INDEPENDENT VALUES

For independent (pairwise uncorrelated is enough) with common variance ; here .

CORRELATION AND THE REGRESSION SLOPES

is the least-squares slope of the line of on , and that of on . Both lines pass through . The two slopes and share one sign, so is the square root of taken with that sign. Use the same divisor in the covariance and the variances.

SPEARMAN RANK CORRELATION

is the difference between the ranks of and . This shortcut is exact only when there are no tied ranks. With ties, compute Pearson's on the ranks instead.

Random variables, expectation and variance, including conditional expectation

Read the notes

PMF CONDITIONS (DISCRETE)

Use the second condition to find an unknown constant in a given PMF.

PDF CONDITIONS (CONTINUOUS)

A density can exceed 1 at a point; only its integral is a probability.

CDF

The CDF is non-decreasing, right-continuous, with limits 0 at and 1 at . For any random variable, .

RECOVERING PMF AND PDF FROM THE CDF

For a continuous variable differentiate the CDF where it is differentiable; for a discrete variable the PMF is the size of the jump at .

EXPECTATION

Defined when the sum or integral converges absolutely.

EXPECTATION OF A FUNCTION (LOTUS)

No need to find the distribution of . In general ; they are equal when is linear, .

LINEARITY OF EXPECTATION

True whenever the expectations exist, with or without independence.

VARIANCE

Standard deviation . Since , , and only when is constant with probability 1. Convention: here is the population (distribution) variance. For a list of data values, the population variance divides by and the sample variance divides by .

VARIANCE UNDER A LINEAR CHANGE

A shift does not change the variance; a scale multiplies it by (the sign of is lost).

INDICATOR VARIABLES

To find the expected number of events that occur, write the count as ; by linearity its mean is , with no independence needed.

MARGINALS

Sum (or integrate) out the other variable over its whole range. Mind the limits when the support is not a rectangle.

INDEPENDENCE

For a PMF the product rule must hold at every pair , so one failing pair shows dependence. For a PDF it must hold everywhere apart from sets of zero probability. If the set where the joint PMF or PDF is positive is not a product set (for example the triangle ), then and are dependent.

COVARIANCE

; .

CORRELATION COEFFICIENT

Defined when both variances are positive. exactly when with probability 1 for some constants and ; then if and if .

VARIANCE OF A SUM

For uncorrelated (in particular independent) variables the covariance term vanishes, so . Note the plus sign, even for the difference.

VARIANCE OF A SUM OF N VARIABLES

For independent identically distributed with variance , the sample mean has .

PRODUCT OF INDEPENDENT VARIABLES

The converse is false: zero covariance (uncorrelated) does not imply independence.

CONDITIONAL PMF AND PDF

Requires (or ). If are independent the conditional equals the marginal.

CONDITIONAL EXPECTATION

For each fixed this is a number; is the random variable obtained by replacing with .

CONDITIONAL VARIANCE

Also a random variable, a function of .

LAW OF TOTAL EXPECTATION

Replace the sum by an integral against when is continuous. For events that partition the sample space, .

LAW OF TOTAL VARIANCE

Average within-group variance plus variance of the group means.

USEFUL PROPERTIES

Once is given, any function of behaves like a constant. The last property does not work in reverse: does not imply independence.

RANDOM SUM

Here are independent and identically distributed with mean and variance , and is a non-negative integer random variable independent of the . It follows from the two total laws with and .

MARKOV'S INEQUALITY

For and . Needs only the mean.

CHEBYSHEV'S INEQUALITY

Holds for any distribution with mean and finite variance ; . Complementary form: .

Discrete distributions: uniform, Bernoulli and binomial

Read the notes

DISCRETE UNIFORM PMF

Applies when each of the n consecutive integers is equally likely; zero elsewhere.

MEAN AND VARIANCE (UNIFORM ON A TO B)

Here n = b - a + 1 and the values are consecutive integers. The variance depends only on n, not on where the block starts.

UNIFORM ON 1 TO N

Special case a = 1, b = n. For a fair die (n = 6): mean 3.5, variance 35/12.

BERNOULLI PMF

One trial, success probability p, 0 <= p <= 1.

BERNOULLI MEAN AND VARIANCE

Because X^2 = X for a 0/1 variable, E[X^2] = p, so Var(X) = p - p^2. The variance is largest at p = 1/2, where it equals 1/4.

BINOMIAL PMF

Requires fixed n, independent trials and the same p on every trial. The probabilities sum to 1 by the binomial theorem.

BINOMIAL MEAN AND VARIANCE

Follows by adding n independent Bernoulli(p) variables: means add, and variances add because of independence. When 0 < p < 1 the variance is always less than the mean.

SECOND MOMENTS OF THE BINOMIAL

E[X^2] = Var(X) + (E[X])^2. Useful when a question asks for E[X^2] or the expectation of a quadratic in X.

RATIO OF CONSECUTIVE TERMS

Use it to compute successive probabilities quickly and to locate the mode.

MODE OF THE BINOMIAL

Valid for 0 < p < 1. At the end points the distribution is degenerate: the mode is 0 when p = 0 and n when p = 1.

SUM OF INDEPENDENT BINOMIALS, SAME P

Both independence and the common p are essential. With different success probabilities the sum is in general not binomial, although means still add, and variances still add because of independence.

GEOMETRIC PMF (TRIALS TO FIRST SUCCESS)

Independent trials, constant p with 0 < p <= 1. X counts the trial on which the first success occurs, so X >= 1. Mean 1/p and variance (1-p)/p^2. If instead the count is the number of failures before the first success, the PMF is (1-p)^k p for k = 0, 1, 2, ..., the mean is (1-p)/p and the variance is still (1-p)/p^2.

Continuous random variables and the named distributions: exponential, Poisson, normal, t and chi-squared

Read the notes

CONDITIONS ON A PDF

Use the total area equal to 1 to find an unknown constant in a given density.

CUMULATIVE DISTRIBUTION FUNCTION (CDF)

F is non-decreasing and, for a continuous X, continuous. Its limits are 0 as x goes to -infinity and 1 as x goes to +infinity. The PDF is the derivative of the CDF wherever the derivative exists.

INTERVAL PROBABILITY

Valid for any continuous X. Also P(X > a) = 1 - F(a).

PERCENTILE AND MEDIAN

Solve F(x) = p for x. The p-th percentile (p as a fraction) is x_p; the median is the 50th percentile.

MEAN AND VARIANCE

E[X] exists only when the integral of |x| f(x) converges. Some distributions have no mean, for example t with 1 degree of freedom. Convention used throughout: E[X^2] = integral of x^2 f(x) dx, and SD = sqrt(Var(X)).

LINEAR TRANSFORMATION

Holds for any constants a and b. Adding a constant shifts the mean and leaves the variance unchanged. SD(aX + b) = |a| SD(X).

CONDITIONAL PDF GIVEN X > A

Requires P(X > a) > 0, and the conditional PDF is zero for x <= a. In general, conditioning on an event A with P(X in A) > 0 gives f(x)/P(X in A) for x in A. The result integrates to 1 over the conditioning region.

CONDITIONAL PDF FROM A JOINT DENSITY

Defined only where f_Y(y) > 0. For a fixed y it is a density in x and integrates to 1. If X and Y are independent, f_{X|Y}(x | y) = f_X(x).

UNIFORM(A, B): PDF AND CDF

Zero density outside [a, b]; F is 0 below a and 1 above b. For a sub-interval inside [a, b], probability = length / (b - a).

UNIFORM(A, B): MEAN AND VARIANCE

The median equals the mean for the uniform distribution.

EXPONENTIAL(RATE LAMBDA): PDF AND CDF

Support is x >= 0; lambda is the rate. P(X > x) is the survival function.

EXPONENTIAL: MEAN, VARIANCE, MEDIAN, PERCENTILE

Mean and SD are equal. The median (about 0.693/lambda) is smaller than the mean 1/lambda, and the distribution is right-skewed. ln is the natural logarithm.

MEMORYLESS PROPERTY

Holds for all s, t >= 0. The exponential is the only continuous distribution with this property. Time already waited does not change the distribution of the remaining wait.

MINIMUM OF TWO INDEPENDENT EXPONENTIALS (RATES LAMBDA1, LAMBDA2)

Requires X1 and X2 independent. Reason: P(min > x) = P(X1 > x) P(X2 > x) = e^{-(lambda1 + lambda2) x}. The same holds for more than two: the rates add.

POISSON PMF

lambda > 0 is the average number of events in the interval considered. P(X >= 1) = 1 - e^{-lambda}.

POISSON MEAN AND VARIANCE

Mean equals variance. If X1 ~ Poisson(l1) and X2 ~ Poisson(l2) are independent, then X1 + X2 ~ Poisson(l1 + l2).

POISSON PROCESS WITH RATE LAMBDA PER UNIT TIME

Events occur independently at a constant average rate. The count in a window of length t has mean lambda*t, and the gaps between successive events are exponential with mean 1/lambda.

POISSON APPROXIMATION TO THE BINOMIAL

Use when n is large and p is small, so that np is moderate. The binomial's variance np(1-p) is close to np only when p is small.

NORMAL PDF

Mean = median = mode = mu; variance sigma^2; symmetric about mu.

STANDARDISATION

Divide by the standard deviation sigma, not the variance. P(X > a) = 1 - Phi((a - mu)/sigma).

SYMMETRY OF THE STANDARD NORMAL

Phi(0) = 0.5. Use this to turn negative z into positive z when reading a table.

THE 68-95-99.7 RULE

Applies to every normal distribution, whatever mu and sigma are.

LINEAR COMBINATION OF INDEPENDENT NORMALS

Requires X and Y independent and each normal, with a and b not both zero. Variances add with squared coefficients, even for a difference: Var(X - Y) = sigma_X^2 + sigma_Y^2.

SAMPLE MEAN OF A NORMAL SAMPLE

Exact for a normal population. The standard deviation of X-bar (its standard error) is sigma/sqrt(n).

CENTRAL LIMIT THEOREM

For X_1, ..., X_n i.i.d. from any population with mean mu and finite variance sigma^2. One consequence: Binomial(n, p) is approximately N(np, np(1-p)) when np and n(1-p) are both large. For integer counts, a continuity correction of 0.5 improves the approximation.

CHI-SQUARED DISTRIBUTION: DEFINITION

Takes only values >= 0. It is right-skewed and becomes more symmetric as k grows. The sum of independent chi-squared variables with k1 and k2 df is chi-squared with k1 + k2 df.

CHI-SQUARED: MEAN AND VARIANCE

Follows from E[Z^2] = 1 and Var(Z^2) = 2 for one standard normal, together with the independence of the Z_i.

CHI-SQUARED FOR THE SAMPLE VARIANCE

For a random sample of size n from N(mu, sigma^2). Here S^2 is the sample variance, which divides by n - 1. One df is lost because the sample mean is estimated from the data.

T DISTRIBUTION: DEFINITION

Symmetric about 0 and bell-shaped, with heavier tails than N(0,1). As k grows, t_k approaches N(0,1).

T: MEAN AND VARIANCE

For k = 1 the mean does not exist; for k = 2 the variance is infinite. For k > 2 the variance exceeds 1, reflecting the heavier tails, and it tends to 1 as k grows.

T STATISTIC FOR THE SAMPLE MEAN

For a random sample of size n from a normal population with unknown sigma, where S is the sample standard deviation (divisor n - 1). If sigma is known, use (X-bar - mu)/(sigma/sqrt(n)) ~ N(0,1) instead.

Central limit theorem, confidence intervals and hypothesis tests

Read the notes

MEAN AND STANDARD ERROR OF THE SAMPLE MEAN

Needs independent observations with a common mean and finite variance ; no normality is needed. SE (standard error) is the standard deviation of . When is unknown it is estimated by , where is the sample standard deviation (divisor , below).

SAMPLE VARIANCE (DIVIDES BY N − 1)

Dividing by makes an unbiased estimator of . Dividing by instead gives an estimator whose expectation is . Throughout these notes is the version.

CENTRAL LIMIT THEOREM

For i.i.d. observations with finite mean and variance, is approximately for large , whatever the shape of the population. Equivalently, the sum is approximately . If the population is itself normal, is exactly normal for every .

NORMAL APPROXIMATION TO THE BINOMIAL WITH CONTINUITY CORRECTION

For , which has mean and variance . A common rule of thumb is and (some use 10). is the standard normal CDF. The moves each integer boundary to the middle of the gap between integers.

CONFIDENCE INTERVAL FOR A MEAN, SIGMA KNOWN (Z)

Independent observations; population normal, or large (CLT). Commonly used values: (90%), (95%), (99%).

CONFIDENCE INTERVAL FOR A MEAN, SIGMA UNKNOWN (T)

Population normal (for large the interval is approximately valid without normality, and ). Here is the sample variance with divisor . The t distribution has degrees of freedom and heavier tails than the normal, so ; it approaches as grows.

CONFIDENCE INTERVAL FOR A PROPORTION

Large-sample (normal) interval, valid when and are both large. is the sample proportion.

WIDTH AND SAMPLE SIZE FOR A MEAN (SIGMA KNOWN)

is the required margin of error (half-width). Round up to the next integer.

ERROR PROBABILITIES AND POWER

depends on which alternative value is true. For a composite (such as ), is the largest Type I error probability over . For a fixed sample size and a fixed alternative, reducing increases . Increasing can reduce both.

P-VALUE FOR A TWO-SIDED Z-TEST

For a one-sided test use when (upper tail) and when (lower tail).

ONE-SAMPLE Z-TEST STATISTIC

Use when is known and the population is normal or is large. Under , (exactly for normal data, approximately otherwise).

ONE-SAMPLE T-TEST STATISTIC

Use when is unknown and the population is normal; uses divisor . Under , follows a t distribution with degrees of freedom.

THE T DISTRIBUTION WITH NU DEGREES OF FREEDOM

Symmetric about 0 with heavier tails than ; it tends to as . For normal data, has this distribution with .

TWO-SAMPLE POOLED T-TEST (EQUAL VARIANCES)

Independent samples from normal populations assumed to share the same variance; tests . is the pooled sample variance.

PAIRED T-TEST

For matched pairs (for example before/after on the same subjects), take differences . and are their mean and sample SD (divisor ). The differences are assumed normal; tests . Do not use the two-sample formula on paired data.

TWO-SAMPLE Z-TEST STATISTIC

Independent samples, variances known, populations normal or both samples large; tests .

ONE-SAMPLE TEST FOR A PROPORTION

Large . Note that the standard error uses (the value under ), whereas the confidence interval uses .

TWO-SAMPLE TEST FOR PROPORTIONS

Independent large samples; tests . Under the common proportion is estimated by the pooled .

THE CHI-SQUARED DISTRIBUTION WITH K DEGREES OF FREEDOM

Takes only non-negative values and is right-skewed. The sum of independent chi-squared variables is chi-squared, with the degrees of freedom added.

CHI-SQUARED STATISTIC (GOODNESS OF FIT AND INDEPENDENCE)

= observed count, = expected count under , = total count. Large values mean poor agreement, so these two tests are upper-tailed: reject when exceeds . The chi-squared approximation needs expected counts that are not tiny (a common rule is ).

DEGREES OF FREEDOM, GOODNESS OF FIT

categories, parameters estimated from the data. If fully specifies the probabilities, and .

TEST OF INDEPENDENCE IN AN R BY C TABLE

= row total, = column total, = grand total. : the two classifications are independent.

CHI-SQUARED TEST FOR A SINGLE VARIANCE

Tests for a normal population ( with divisor ); the result is sensitive to non-normality. Unlike the count tests above, this test can be two-sided: for reject if or . For reject if .

CONFIDENCE INTERVAL FOR A VARIANCE (NORMAL POPULATION)

With the upper-tail convention, is the larger critical value, so it gives the lower limit. The interval is not symmetric about .