Statistics and uncertainty
Uncertainty propagation - formula in LaTeX
The law of propagation of uncertainty for a quantity derived from several independent measurements. The partial derivative uses \partial, and the pair \left( and \right) sizes the brackets to the fraction. A subscript inside a subscript needs braces: u_{x_i}.
LaTeX code
$$
u_c(y) = \sqrt{\sum_{i}\left(\dfrac{\partial y}{\partial x_i}u_{x_i}\right)^2}
$$Working this out from your own measurements? The calculator gives the result with its uncertainty and ready LaTeX, no account needed. Propagation of uncertainty calculator
What the symbols mean
- combined uncertainty of y
- quantity calculated from a formula
- directly measured quantities
- uncertainty of x_i
Worked example
Resistance R = V/I from V = 12 V ± 0.3 V and I = 2 A ± 0.04 A. For a quotient it is easier to work with relative uncertainties. The Greek \Omega gives the ohm sign directly in math mode.
Result: u_c(R) ≈ 0.19 Ω
Try it with your own values
Edit the code and the preview updates as you type.
Common mistakes
- Wrong
u_c(R) = \sqrt{0.3^2 + 0.04^2}Right\dfrac{u_c(R)}{R} = \sqrt{\left(\dfrac{0.3}{12}\right)^2 + \left(\dfrac{0.04}{2}\right)^2}For the quotient R = V/I you add the relative uncertainties in quadrature. Volts and amps under one square root give a number with no meaningful unit.
- Wrong
\dfrac{u(V)}{V} = \dfrac{u(a)}{a}Right\dfrac{u(V)}{V} = 3\,\dfrac{u(a)}{a}When a quantity is raised to a power, its relative uncertainty is multiplied by the exponent. The volume of a cube, V = a³, has three times the relative uncertainty of its edge.
Other ways to write it
Sum or difference: absolute uncertainties add in quadrature.
u_c(x + z) = \sqrt{u_x^2 + u_z^2}Product or quotient: relative uncertainties add in quadrature.
\dfrac{u_c(y)}{|y|} = \sqrt{\left(\dfrac{u_x}{x}\right)^2 + \left(\dfrac{u_z}{z}\right)^2}The total differential method (maximum uncertainty), still required in some teaching labs.
\Delta y = \sum_i \left|\dfrac{\partial y}{\partial x_i}\right| \Delta x_i
LaTeX commands in this formula
x_{0}- subscript; wrap several characters in braces
\sqrt- square root
\sum- sum
\left- bracket sized to its content (paired with \right)
\dfrac- fraction (display)
\partial- partial derivative
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 in the CamteX editor and in Markdown; in a .tex file use\[…\]. - 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.