Descriptive Statistics
Mean
xbar = sum(x_i) / nThe arithmetic average of a data set.
Reference equations
Descriptive Statistics
xbar = sum(x_i) / nThe arithmetic average of a data set.
Descriptive Statistics
s^2 = sum((x_i - xbar)^2) / (n - 1)Average squared distance from the sample mean with Bessel correction.
Probability Foundations
P(A | B) = P(A and B) / P(B)Probability of A after restricting attention to cases where B occurred.
Probability Foundations
P(A | B) = P(B | A)P(A) / P(B)Updates a prior probability after observing evidence.
Distributions
P(X = k) = C(n,k)p^k(1-p)^(n-k)Exact probability of k successes in n independent Bernoulli trials.
Distributions
z = (x - mu) / sigmaStandardizes a value by measuring standard deviations from the mean.
Sampling & CLT
SE_xbar = sigma / sqrt(n)Standard deviation of the sampling distribution of the sample mean.
Inference
xbar +/- critical value * standard errorEstimate plus or minus a margin of error.
Inference
z = (xbar - mu_0) / (sigma / sqrt(n))Tests a sample mean against a null mean when population sigma is known.
Inference
Power = 1 - betaProbability of correctly rejecting a false null hypothesis.
Regression & Correlation
yhat = a + bxLine that minimizes the sum of squared residuals.
Regression & Correlation
r = sum((x_i-xbar)(y_i-ybar)) / sqrt(sum((x_i-xbar)^2)sum((y_i-ybar)^2))Measures direction and strength of a linear association.