All Categories

Statistics & Probability

Averages, spread, distributions and probability

Statistics & Probability formulas help you make sense of data, uncertainty, and chance, from simple averages and spread to distributions, counting methods, and conditional probability. Whether you’re a student preparing for exams or using data in real work, these formulas are essential for interpreting results, predicting outcomes, and making smarter decisions with confidence.

Arithmetic Mean

Basic
xˉ=1n∑i=1nxi\bar{x} = \frac{1}{n}\sum_{i=1}^{n} x_i

The average of a data set.

View details

Median

Basic
M=middle value of ordered dataM = \text{middle value of ordered data}

The middle value separating the higher and lower halves.

View details

Variance

Intermediate
σ2=1n∑i=1n(xi−xˉ)2\sigma^2 = \frac{1}{n}\sum_{i=1}^{n}(x_i - \bar{x})^2

Average squared deviation from the mean.

View details

Standard Deviation

Intermediate
σ=1n∑i=1n(xi−xˉ)2\sigma = \sqrt{\frac{1}{n}\sum_{i=1}^{n}(x_i-\bar{x})^2}

Square root of the variance; typical spread.

View details

Z-Score

Intermediate
z=x−μσz = \frac{x - \mu}{\sigma}

Number of standard deviations a value is from the mean.

View details

Bayes' Theorem

Intermediate
P(A∣B)=P(B∣A)P(A)P(B)P(A|B) = \frac{P(B|A)P(A)}{P(B)}

Updates a probability given new evidence.

View details

Combinations

Intermediate
(nr)=n!r!(n−r)!\binom{n}{r} = \frac{n!}{r!(n-r)!}

Number of ways to choose r items from n (order irrelevant).

View details

Permutations

Intermediate
P(n,r)=n!(n−r)!P(n,r) = \frac{n!}{(n-r)!}

Number of ordered arrangements of r items from n.

View details

Normal Distribution

Advanced
f(x)=1σ2πe−(x−μ)22σ2f(x) = \frac{1}{\sigma\sqrt{2\pi}}e^{-\frac{(x-\mu)^2}{2\sigma^2}}

Probability density of the bell curve.

View details

Binomial Distribution

Advanced
P(X=k)=(nk)pk(1−p)n−kP(X=k) = \binom{n}{k}p^k(1-p)^{n-k}

Probability of k successes in n trials.

View details

Poisson Distribution

Advanced
P(X=k)=λke−λk!P(X=k) = \frac{\lambda^k e^{-\lambda}}{k!}

Probability of k events in a fixed interval.

View details

Expected Value

Intermediate
E[X]=∑ixi piE[X] = \sum_i x_i\,p_i

The long-run average value of a random variable.

View details

Conditional Probability

Intermediate
P(A∣B)=P(A∩B)P(B)P(A|B) = \frac{P(A \cap B)}{P(B)}

Probability of A given B has occurred.

View details

Pearson Correlation

Advanced
r=∑(xi−xˉ)(yi−yˉ)∑(xi−xˉ)2∑(yi−yˉ)2r = \frac{\sum (x_i-\bar{x})(y_i-\bar{y})}{\sqrt{\sum(x_i-\bar{x})^2\sum(y_i-\bar{y})^2}}

Measures linear correlation between two variables.

View details

Standard Error of the Mean

Advanced
SE=σnSE = \frac{\sigma}{\sqrt{n}}

Standard deviation of the sample mean.

View details

Mode

Basic
Mode=most frequent value\text{Mode} = \text{most frequent value}

The value that appears most often in a data set.

View details

Range

Basic
R=xmax−xminR = x_{max} - x_{min}

The difference between the largest and smallest values.

View details

Factorial

Basic
n!=n×(n−1)×⋯×2×1n! = n\times(n-1)\times\cdots\times 2\times 1

Product of all positive integers up to n.

View details

Geometric Mean

Intermediate
GM=x1x2⋯xnnGM = \sqrt[n]{x_1 x_2 \cdots x_n}

The nth root of the product of n values.

View details

Interquartile Range

Intermediate
IQR=Q3−Q1IQR = Q_3 - Q_1

The spread of the middle 50% of the data.

View details

Coefficient of Variation

Intermediate
CV=σxˉ×100%CV = \frac{\sigma}{\bar{x}}\times 100\%

Relative variability as a percentage of the mean.

View details

Range

Basic
R=xmax−xminR = x_{max} - x_{min}

Difference between the largest and smallest values.

View details

Interquartile Range

Intermediate
IQR=Q3−Q1IQR = Q_3 - Q_1

Spread of the middle 50% of the data.

View details

Covariance

Advanced
cov(X,Y)=1n∑(xi−xˉ)(yi−yˉ)\text{cov}(X,Y) = \frac{1}{n}\sum (x_i-\bar{x})(y_i-\bar{y})

Measures how two variables vary together.

View details

Coefficient of Variation

Intermediate
CV=σμ×100CV = \frac{\sigma}{\mu}\times 100

Relative variability as a percentage of the mean.

View details

Percentile Rank

Basic
PR=belown×100PR = \frac{\text{below}}{n}\times 100

Percentage of values below a given score.

View details

Margin of Error

Advanced
E=zσnE = z\frac{\sigma}{\sqrt{n}}

Half-width of a confidence interval for the mean.

View details

Confidence Interval (Mean)

Advanced
xˉ±zσn\bar{x} \pm z\frac{\sigma}{\sqrt{n}}

Range likely to contain the population mean.

View details

Z-Test Statistic

Advanced
z=xˉ−μ0σ/nz = \frac{\bar{x} - \mu_0}{\sigma/\sqrt{n}}

Tests whether a sample mean differs from a hypothesized value.

View details

Chi-Square Statistic

Advanced
χ2=∑(O−E)2E\chi^2 = \sum \frac{(O-E)^2}{E}

Tests goodness of fit between observed and expected counts.

View details

Mode

Basic
most frequent value\text{most frequent value}

The value that appears most often in a data set.

View details

Weighted Mean

Intermediate
xˉw=∑wixi∑wi\bar{x}_w = \frac{\sum w_i x_i}{\sum w_i}

Average where values carry different weights.

View details

Odds Form of Bayes

Advanced
O(A∣B)=O(A)×P(B∣A)P(B∣¬A)O(A|B) = O(A)\times \frac{P(B|A)}{P(B|\neg A)}

Updates odds using a likelihood ratio.

View details

Sample Variance

Intermediate
s2=1n−1∑(xi−xˉ)2s^2 = \frac{1}{n-1}\sum(x_i-\bar{x})^2

Unbiased estimate of population variance.

View details