Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Basic error analysis

This part is the simplified error analysis that we will extend through the course with the more precise definitions and analysis using regressions, calibration, statistics, dynamics, etc.

Errors

  1. Systematic errors

  2. Random errors

Systematic errors:

  1. equipment/tool precision error

  2. human error

  3. external environmental effects

Random errors:

  1. tool precision (below the resolution)

  2. statistical errors

Example:

Digital voltemeter measures 10.32 kV, its precision is 0.01kV.

However the equipment has a sticker with the statement of the basic calibrated errors and it says 1% of the measured value, i.e. 0.1kV for the given case.

We use the maximum error contribution between the resolution and systematic error:

Δ=max(xi)=max(0.1,0.01)=0.1[kV]\Delta = max ( x_i ) = max(0.1, 0.01) = 0.1 [kV]

Random errors are statistical errors

We will study the basics of the statistical analysis (histograms, distributions, statistical tests) but for beginning we can use the simple terms.

If we assume that the random errors are distributed randomly from the normal distribution (Gaussian distribution), then we can believe that the expected value x0 x_0 and the deviations σ \sigma will describe well the distribution such that in 68% of cases our measured sample is within the range (x0σ,x0+σ)(x_0 -\sigma, x_0 + \sigma). So we believe that our central value is the x0x_0 .

Since we always measure only NN samples (finite number) we can at best estimate the arithmetic average x\overline{x} and standard deviation SxS_x of the sample. So what we can measure is

x0x=1Ni=1Nxix_0 \approx \overline{x} = \frac{1}{N} \sum\limits_{i=1}^{N} x_i
Sx=i=1N(xix)2N1S_x = \sqrt{\frac{\sum\limits_{i=1}^{N} \left( x_i - \overline{x} \right)^2}{N-1} }

Note that the mean standard deviation is not sample standard deviation. It’s also called standard uncertainty type A:

uA=σSx/Nu_A = \sigma \approx S_x/\sqrt{N}

Total error estimate

If we can assume that only these two error sources are present, i.e. the equipment error Δ\Delta and the statistical, random error σ/N\sigma/\sqrt{N}, then we can estimate the total error using the root-of-sum-squares method (there are also other methods too):

Δ(x)=Δ2+σ/N2\Delta(x) = \sqrt{\Delta^2 + \sigma/N^2 }

Example

Use the linear scale to measure in [cm]:

10.0, 10.0, 9.9, 10.1, 9.6, 9.9, 10.3, 10.1, 10.0 

precision of the scale is 0.1 cm

We get in units of (cm):

x=9.99,S=0.179\overline{x} = 9.99, \qquad S = 0.179\,

Then the statistical analysis error is

S/N=0.00566 cmS/\sqrt{N} = 0.00566\ \mathrm{cm}

And the total error estimate is (in cm):

Δ(x)=0.12+0.005662=0.1149\Delta(x) = \sqrt{0.1^2 + 0.00566^2} = 0.1149\,

and the output of the measurement is

x=(9.99±0.012)x = \left( 9.99 \pm 0.012 \right)\,

note the use of the significant digits (we cannot report what we cannot know)

Use of measured values in estimating parameters

Typically we use several measurements and use functions to combine them into parameters, i.e. y=f(x1,x2)y = f(x_1, x_2)

Then if we measured xx with the error Δx\Delta_x, how large would be the error of Δ(y)\Delta(y)?

The answer is simple

Δy=Δ(f)=dfdxΔx\Delta_y = \Delta(f) = \left|\frac{df}{dx}\right|\Delta_x

if it’s a function of several variables: y=f(x1,x2)y = f(x_1,x_2), then:

Δy=(fx1Δx1)2+(fx2Δx2)2\Delta_y=\sqrt{\left(\frac{\partial f}{\partial x_1} \Delta x_1 \right)^2 + \left(\frac{\partial f}{\partial x_2} \Delta x_2 \right)^2}

Example

Volume of a cylinder is measured using the radius r=5.0±0.1r = 5.0 \pm 0.1 cm and its height, h=1.30±0.1h = 1.30 \pm 0.1 cm. The volume is estimated using

V=πr2hV = \pi r^2 h

Therefore we got V=1020.98 V = 1020.98 cm3^3 and the error is estimated according to the derivatives.

Vr=2πrh \frac{\partial V}{\partial r} = 2 \pi r h

Vh=πr2 \frac{\partial V}{\partial h} = \pi r^2

Δ(V)=(2πrΔr)2+(πr2Δh)2=41.58\Delta(V) = \sqrt{(2\pi r \Delta r)^2 + (\pi r^2 \Delta h)^2} = 41.58\, cm3^3

V=1021.0±41.6 V = 1021.0 \pm 41.6 \, cm3^3

Note: if x1x_1 and x2x_2 are dependent, then

Δy=fx1Δx1+fx2Δx2\Delta_y=\left|\frac{\partial f}{\partial x_1} \Delta x_1 \right| + \left|\frac{\partial f}{\partial x_2} \Delta x_2 \right|