Statistics and uncertainty
Mean value - formula in LaTeX
The best estimate of a quantity measured repeatedly under the same conditions. The bar comes from \bar{x}, or \overline over a longer expression. The limits go in _{i=1} and ^{n}; in a displayed equation they sit above and below the sign.
LaTeX code
$$
\bar{x} = \dfrac{1}{n}\sum_{i=1}^{n} x_i
$$Got this formula in your notes or on a whiteboard? Snap a photo and CamteX turns it into LaTeX. Try it free
What the symbols mean
- arithmetic mean
- number of measurements
- result of the i-th measurement
A statistics and uncertainty formula - a required part of the data analysis in every lab report.
Worked example
The mean of four stopwatch readings. The unit can be written once, after the whole fraction, instead of after every reading.
Other ways to write it
Inside a sentence ($...$) the limits sit beside the sum sign; \limits forces them above and below.
\bar{x} = \frac{1}{n}\sum\limits_{i=1}^{n} x_iThe mean of a whole population, written with the Greek μ instead of x-bar.
\mu = \dfrac{1}{N}\sum_{i=1}^{N} x_iThe angle-bracket notation used in physics; \langle and \rangle are brackets, not less-than signs.
\langle x \rangle = \dfrac{1}{n}\sum_{i=1}^{n} x_iThe weighted mean, when measurements carry different weights, for example different uncertainties.
\bar{x}_w = \dfrac{\sum_{i} w_i x_i}{\sum_{i} w_i}
LaTeX commands in this formula
\bar- bar over a symbol (e.g. a mean)
\dfrac- fraction (display)
\sum- sum
x_{0}- subscript; wrap several characters in braces
x^{2}- superscript (power); wrap several characters in braces
How to use this formula in LaTeX?
- Copy the code with the button above -
$$…$$is centered display math. - Paste it into the CamteX editor, Overleaf or any LaTeX document.
- Inside a sentence, use single
$…$instead of double. - The formula needs the
amsmathpackage - CamteX templates include it in the preamble.
Related formulas - Statistics and uncertainty
Drawing formulas is faster than typing them.
Draw a formula, table or chart - CamteX AI turns it into ready LaTeX and inserts it into your document.