All formulas

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.

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

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

xˉ\bar{x}
arithmetic mean
nn
number of measurements
xix_i
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.

tˉ=12+15+14+114 s=524 s=13 s\bar{t} = \dfrac{12 + 15 + 14 + 11}{4}\,\mathrm{s} = \dfrac{52}{4}\,\mathrm{s} = 13\,\mathrm{s}

Other ways to write it

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?

  1. Copy the code with the button above - $$…$$ is centered display math.
  2. Paste it into the CamteX editor, Overleaf or any LaTeX document.
  3. Inside a sentence, use single $…$ instead of double.
  4. The formula needs the amsmath package - 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.

Try it free