CamteX
All guides

Mean and standard deviation in LaTeX

In a lab report you usually give the mean of a series of measurements and its uncertainty. The bar over the mean symbol is \bar{x}, and the root of a sum of squares combines \sqrt and \sum.

Arithmetic mean

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

Standard deviation

s = \sqrt{\frac{1}{n-1} \sum_{i=1}^{n} (x_i - \bar{x})^2}
s=1n1i=1n(xixˉ)2s = \sqrt{\frac{1}{n-1} \sum_{i=1}^{n} (x_i - \bar{x})^2}

Uncertainty of the mean (type A)

u(\bar{x}) = \frac{s}{\sqrt{n}}
u(xˉ)=snu(\bar{x}) = \frac{s}{\sqrt{n}}

Common mistakes

See also

Don't want to memorize commands?

Draw a formula or paste a screenshot, and CamteX turns it into ready LaTeX.

Try it free