Choose the right notation
Population mean
\[\displaystyle \mu=\frac{1}{N}\sum\limits_{i=1}^{N}x_i\]
μ is the population mean; N is the number of population values.
Sample mean
\[\displaystyle \bar{x}=\frac{1}{n}\sum\limits_{i=1}^{n}x_i\]
x̄ is the sample mean; n is the sample size.
Population variance and standard deviation
\[\displaystyle \sigma^{2}=\frac{1}{N}\sum\limits_{i=1}^{N}(x_i-\mu)^2,\qquad \sigma=\sqrt{\sigma^{2}}\]
Divide by N when the data describe the complete population.
Sample variance and standard deviation
\[\displaystyle s^{2}=\frac{1}{n-1}\sum\limits_{i=1}^{n}(x_i-\bar{x})^{2},\qquad s=\sqrt{s^{2}}\]
Divide by n − 1 for the usual sample variance; n must be greater than 1.
Calculation form: sample variance
\[\displaystyle s^2=\frac{\displaystyle\sum\limits_{i=1}^{n}x_i^2-\frac{\left(\displaystyle\sum\limits_{i=1}^{n}x_i\right)^2}{n}}{n-1}\]
This gives the same sample variance as the deviation formula.
Frequency tables and grouped data
Mean from a frequency table
\[\displaystyle \bar{x}=\frac{\displaystyle\sum\limits_{j=1}^{k}f_jx_j}{\displaystyle\sum\limits_{j=1}^{k}f_j}\]
fⱼ is the frequency of value xⱼ. For grouped intervals use each class midpoint; the result is approximate.
Standard deviation with frequencies
\[\displaystyle s=\sqrt{\frac{\displaystyle\sum\limits_{j=1}^{k}f_j(x_j-\bar{x})^2}{n-1}},\qquad n=\sum\limits_{j=1}^{k}f_j\]
For a sample frequency table. For a full population, replace n − 1 by N and x̄ by μ.
Coefficient of variation
\[\displaystyle \mathrm{CV}=\frac{s}{\bar{x}}\times100\%\]
Use for meaningful positive means; for population data use σ and μ. A smaller CV indicates less relative spread.
Weighted mean
\[\displaystyle \bar{x}_{w}=\frac{\displaystyle\sum\limits_{i=1}^{k}w_i x_i}{\displaystyle\sum\limits_{i=1}^{k}w_i}\]
Weights must have a nonzero total.
Combined mean
\[\displaystyle \bar{x}=\frac{n_1\bar{x}_1+n_2\bar{x}_2}{n_1+n_2}\]
Combine two groups using their sizes and means.