Save / load workspace

Save your lab results on this server for 48 hours. Use the token to continue on another device. Anyone who knows the token can open your workspace.

Save workspace

A name is required when you first save and is then permanently bound to this workspace. Task values, entries and progress are saved together.

Load workspace

New workspace

Start with empty results and a name of your choice. Previously saved tokens remain valid until they expire. Unsaved changes in this tab will be discarded.

Saving also transfers any included measurement files and analysis videos to this server. Running simulations are saved as a set of results and displayed in a paused state when loaded.

Introduction physics laboratory

Module 1: Cover sheet

Name and matriculation number for the report

Both appear on the PDF report and in the verification view behind the QR code. Enter them before you start with the first module.

One cover sheet, one report. If the name or the matriculation number is changed later, this experiment starts over: the progress of every module is deleted.

Module 2: Record keeping

Structure and content of the documentation in physics laboratory

Script: Ch. 3.1–3.3, pp. 4–6 (Open PDF)

1
2
3

Step 1: Why an elaboration?

Meaning and purpose

The experiment documentation consists of two parts: the Development and that Laboratory report (which is attached as an attachment).

The Development The exercise has to document the entire experiment from the question to the implementation up to the analysis. It must be able to be read and understood by a stranger who is familiar with the matter and, in principle, enable them to repeat the experiment at any time.

The Laboratory report will be against it during experiments handwritten and contains the original measured values and observations.

TipGood laboratory reports ...

  • ... make this possible complete reproducibility of the experiment
  • ... also document unexpected observations and problems
  • ... contain one critical discussion of the results
  • ... contain the handwritten one Laboratory report as an attachment

Exercise: purpose of elaboration

What is it? the Requirement for an elaboration?

Module 3: Measurement errors and their classification

Systematic vs. random errors, absolute and relative error information

Script: Ch. 4.1, pp. 7–9 (Open PDF)

1
2
3

Step 1: Why do measurements have errors?

Basic principle

There is a true value for every measurable quantity. However, it is fundamentally impossible to determine this exactly with measurements. Every measurement is subject to a measurement error. The goal of a measurement is therefore to provide an estimated value together with a measurement uncertainty that defines a range of values for the true value.

Important: More precise is not always better!

Example elementary charge (literature value: \(e = 1{,}602 \cdot 10^{-19}\,\text{C}\)):

  • measurement 1: \(e = (1{.}7 \pm 0{.}1) \cdot 10^{-19}\,\text{C}\) → consistent with literature value
  • measurement 2: \(e = (1{.}62 \pm 0{.}01) \cdot 10^{-19}\,\text{C}\) → more precise, but not consistent!

A measurement result is only meaningful if the specified uncertainty is realistic. An uncertainty that is too small gives the impression of an accuracy that was not achieved at all.

Module 4: Calculation accuracy

Why intermediate results cannot be rounded

Calculate with machine precision - only round at the end

A common mistake when evaluating laboratory experiments: intermediate results — a mean value, say, or a partial result of a formula — are rounded to a few decimal places before they feed into the next calculation. Every rounding step discards information, and the rounding errors can add up — the end result then deviates significantly from the correct value.

Rule

In every intermediate step, always calculate with the full precision of your calculator or computer (machine precision). Only round the Final result to a sensible number of digits.

TipWhen intermediate rounding does the most damage

The critical case is the difference of two numbers of similar size: the leading digits cancel out, and what remains in the result are precisely the trailing digits — the ones lost in rounding. Rounding the intermediate results by a few hundredths can thus produce an error of 20 % or more in the final result.

In practice this means: keep intermediate results stored in the calculator (memory or ANS key), or write them down with at least two more digits than the final result is meant to have.

Exercise: Effects of intermediate rounding

The difference in area \(\Delta A = \bar{a}^2 - \bar{b}^2\) of two square plates with edge lengths \(a\) and \(b\) is to be determined. Both edge lengths were measured three times with a vernier calliper:

Edge lengthMeasurement 1Measurement 2Measurement 3
\(a\) / cm 4,734,744,70
\(b\) / cm 4,474,464,50

The calculation has two stages: First of all form the mean values \(\bar{a}\) and \(\bar{b}\) from the three measurements each — these are the intermediate results —, then calculate \(\Delta A\) from them. You take this route twice: in step 1 at machine precision, in step 2 with rounded intermediate results. Comparing the two results shows what the rounding does.

1
2

Step 1: Calculate with machine precision

Form the mean values \(\bar{a}\) and \(\bar{b}\) and insert them into \(\Delta A = \bar{a}^2 - \bar{b}^2\) — with every digit your calculator shows. Round only the final result to 2 decimal places.

\(\Delta A\) = cm²

Module 5: Statistical key figures from measurement series

Calculate mean, standard deviation and mean error interactively

Script: Ch. 4.2, p. 10 (Open PDF)

Why statistical analysis?

If you repeat a measurement several times, you will get slightly different values due to random errors. A single measured value is therefore not very meaningful. The statistical analysis provides two crucial pieces of information: the best estimate for the quantity being determined and a Information about uncertainty this estimate.

The four key figures

i) Average — the best estimate of the true value. The more measurements, the more reliable:

$$ \bar{x} = \frac{1}{n} \sum_{i=1}^{n} x_i $$

ii) Deviations — show how far each measured value is from the mean. The sum of all deviations must be exactly zero (important calculation check!):

$$ \delta_i = x_i - \bar{x} \qquad \text{(Control: } \sum \delta_i = 0\text{)} $$

iii) Standard deviation — a measure of the spread of the individual measurements. It describes how much the measured values typically deviate from the mean. The factor \(\frac{1}{n-1}\) (instead of \(\frac{1}{n}\)) corrects a systematic underestimation in small specimens:

$$ s_x = \sqrt{\frac{1}{n-1} \sum_{i=1}^{n} (x_i - \bar{x})^2} $$

iv) Mean error of mean — the actual measurement uncertainty. It indicates how accurately the mean estimates the true value. The more measurements (\(n\)) are performed, the smaller the mean error becomes — the uncertainty decreases in proportion to \(\frac{1}{\sqrt{n}}\):

$$ \Delta x = \frac{s_x}{\sqrt{n}} $$

Result: The measurement result is always given as an average with uncertainty:

$$ x = \bar{x} \pm \Delta x $$

Exercise: Evaluate measurement series

The height h of a wooden block was measured 12 times (values in cm). Enter the measured values and calculate the statistical key figures step by step.

1
2
3
4
5

Step 1: Calculate average

The mean is the best estimate of the true value of the measured quantity. Add all 12 measured values and divide by the number.

Calculate the average (round to 3 decimal places):

\(\bar{x}\) = cm

Module 6: Error propagation

Apply the Gaussian error propagation law

Script: Ch. 4.3, pp. 10–15 (Open PDF)

Why error propagation?

In Module 5 you learned how to determine the uncertainty of a directly measured quantity. But often one is interested calculated quantity, which depends on several measured quantities — for example an area from length and height, or a speed from distance and time. Each of these quantities carries its own uncertainty. Uncertainty propagation answers the central question: How great is the uncertainty of the final result if the input variables are error-prone?

Procedure in three steps

For a composite quantity \(X = f(X_1, X_2, \ldots, X_k)\) the uncertainty is determined in three steps. Requirement: Each input variable has been measured and statistically evaluated several times (Module 5) - so you already know the mean value \(\bar{x}_j\) and the uncertainty \(\Delta x_j\) of each individual measured quantity.

  1. Best estimate: Insert the average values of the individual variables into the formula - this gives the best estimate of the result
  2. Partial derivatives: Derive the formula for each variable in error (treating all others as constants). These derivations show which measured quantity has the greatest influence on the overall error.
  3. Calculate uncertainty: Insert the partial derivatives (evaluated at the mean values) and the individual uncertainties into the error propagation law

Gaussian error propagation law

Consistent example: The speed \(v = \frac{s}{t}\) should be determined from distance \(s\) and time \(t\). Both were measured several times:
\(\bar{s} = 2{,}00\,\text{m}\), \(\Delta s = 0{,}02\,\text{m}\), \(\bar{t} = 0{,}50\,\text{s}\), \(\Delta t = 0{,}01\,\text{s}\).

Step 1 — Best estimate: Each input variable was measured several times. From the measurement series you know the mean values \(\bar{x}_1, \bar{x}_2, \ldots\) and the uncertainties \(\Delta x_1, \Delta x_2, \ldots\) (from module 3). You can get the best estimate of the result by substituting the average values into the formula:

$$ \bar{X} = f(\bar{x}_1, \bar{x}_2, \ldots, \bar{x}_k) $$

\(\bar{v} = \frac{\bar{s}}{\bar{t}} = \frac{2{,}00\,\text{m}}{0{,}50\,\text{s}} = 4{,}00\,\frac{\text{m}}{\text{s}}\)

Step 2 — Partial Derivatives: Derive the formula for each input quantity. The partial derivatives \(\frac{\partial f}{\partial x_j}\) act as Weighting factors — they indicate how sensitive the result reacts to a change in the respective input variable:

$$ \frac{\partial f}{\partial x_1}, \quad \frac{\partial f}{\partial x_2}, \quad \ldots, \quad \frac{\partial f}{\partial x_k} $$

\(\dfrac{\partial v}{\partial s} = \dfrac{1}{t} = \dfrac{1}{0{,}50\,\text{s}} = 2{,}00\,\text{s}^{-1}\)

\(\dfrac{\partial v}{\partial t} = -\dfrac{s}{t^2} = -\dfrac{2{.}00\,\mathrm{m}}{(0{.}50\,\mathrm{s})^2} = -8{.}00\,\dfrac{\mathrm{m}}{\mathrm{s}^2}\)

Step 3 — Calculate Uncertainty: Depending on whether the individual errors are random or systematic, there are two variants:

Statistical error — the errors are random and independent, so the contributions add up squarely. The overall error is smaller than the sum of the individual contributions because random deviations partially compensate for each other:

$$ \Delta x = \sqrt{\sum_{j=1}^{k} \left(\frac{\partial f}{\partial x_j} \cdot \Delta x_j\right)^2} $$
\(\Delta v = \sqrt{\left(\frac{\partial v}{\partial s} \cdot \Delta s\right)^2 + \left(\frac{\partial v}{\partial t} \cdot \Delta t\right)^2} = \sqrt{(2{,}00\,\text{s}^{-1} \cdot 0{.}02\,\mathrm{m})^2 + (-8{.}00\,\frac{\mathrm{m}}{\mathrm{s}^2} \cdot 0{.}01\,\mathrm{s})^2}\)

\(\phantom{\Delta v} = \sqrt{0{,}0016\,\frac{\text{m}^2}{\text{s}^2} + 0{,}0064\,\frac{\text{m}^2}{\text{s}^2}} = 0{,}09\,\frac{\text{m}}{\text{s}}\)

Systematic error — the errors work in the same direction (worst case), the amounts add up directly. This gives the maximum possible deviation:

$$ \Delta x = \sum_{j=1}^{k} \left|\frac{\partial f}{\partial x_j}\right| \cdot \Delta x_j $$
\(\Delta v = \left|\frac{\partial v}{\partial s}\right| \cdot \Delta s + \left|\frac{\partial v}{\partial t}\right| \cdot \Delta t = |2{,}00\,\text{s}^{-1}| \cdot 0{,}02\,\text{m} + |-8{,}00\,\frac{\text{m}}{\text{s}^2}| \cdot 0{,}01\,\text{s}\)

\(\phantom{\Delta v} = 0{,}04\,\frac{\text{m}}{\text{s}} + 0{,}08\,\frac{\text{m}}{\text{s}} = 0{,}12\,\frac{\text{m}}{\text{s}}\)
Result: \(v = (4{.}00 \pm 0{.}09)\,\frac{\text{m}}{\text{s}}\) (statistical)   and.   \(v = (4{.}00 \pm 0{.}12)\,\frac{\text{m}}{\text{s}}\) (systematic)

Exercise: Side surface of a wooden cuboid

The side area A of a cuboid is calculated from the length l and height h: \(A = l \cdot h\). Both variables were measured several times and statistically evaluated (as in Module 5). Now determine the best estimate for the area and its uncertainty using error propagation.

Given (Results of the statistical analysis from the measurement series of \(l\) and \(h\)):

\(\bar{l} = 9.73\,\text{cm}\),   \(\Delta l = 0.03\,\text{cm}\)   (Mean value and uncertainty of length measurements)

\(\bar{h} = 3.9\,\text{cm}\),   \(\Delta h = 0.05\,\text{cm}\)   (Mean value and uncertainty of height measurements)

1
2
3
4
5

Step 1: Best estimate of the side area (to 2 decimal places)

You can get the best estimate of the area by substituting the averages of \(l\) and \(h\) into the formula. Since \(A = l \cdot h\), calculate \(\bar{A} = \bar{l} \cdot \bar{h}\).

\(\bar{A} = \bar{l} \cdot \bar{h}\) = cm²

Module 7: Linear Regression

Experience the least squares method interactively

Script: Ch. 4.4, pp. 16–18 (Open PDF)

Principle

There is often a linear relationship between two measurements: \(y = m \cdot x + b\). Due to measurement errors, the data points are not exactly on a straight line. Linear regression determines the straight line that minimizes the sum of the squared deviations of all data points.

Goodness of fit

The regression coefficient \(R\) is in the range \(-1 \le R \le 1\). The closer \(R\) is to 1 or \(-1\), the better a straight line describes the measurement data. \(R^2\) close to 1 means a very good linear fit.

Regression parameters

Increase — indicates how much \(y\) changes per unit of \(x\):

$$ m = \frac{n \sum x_i y_i \;-\; \sum x_i \cdot \sum y_i}{n \sum x_i^2 \;-\; \left(\sum x_i\right)^2} $$

Axle section — the \(y\) value at \(x = 0\):

$$ b = \frac{\sum x_i^2 \cdot \sum y_i \;-\; \sum x_i \cdot \sum x_i y_i}{n \sum x_i^2 \;-\; \left(\sum x_i\right)^2} $$

Specific measure — describes how well the straight line represents the measurement data. \(R^2 = 1\) means perfect linear agreement:

$$ R^2 = \frac{\left(n \sum x_i y_i - \sum x_i \cdot \sum y_i\right)^2}{\left(n \sum x_i^2 - \left(\sum x_i\right)^2\right) \cdot \left(n \sum y_i^2 - \left(\sum y_i\right)^2\right)} $$

Uncertainties of the regression parameters

The following applies to the associated errors of the regression parameters:

Uncertainty of the slope \(\Delta m\):

$$ (\Delta m)^2 = \frac{n}{n-2} \cdot \frac{\sum y_i^2 - m \cdot \sum x_i y_i - b \cdot \sum y_i}{n \sum x_i^2 - \left(\sum x_i\right)^2} $$

Uncertainty of the intercept \(\Delta b\):

$$ (\Delta b)^2 = \frac{\sum x_i^2}{n} \cdot (\Delta m)^2 $$

Exercise: Calculate linear regression by hand

For the following data set (\(n = 5\)), calculate the slope \(m\), the intercept \(b\), their uncertainties \(\Delta m\) and \(\Delta b\) and the coefficient of determination \(R^2\) by hand.

No.\(x_i\)\(y_i\)
111,9
223,8
335,6
447,8
559,9
1
2
3
4

Step 1: Calculate subtotals

Add the values column by column. These sums are required for all further calculations.

\(\sum x_i\) =
\(\sum y_i\) =
\(\sum x_i y_i\) =
\(\sum x_i^2\) =
\(\sum y_i^2\) =

Module 8: Linearize non-linear relationships

Variable substitution for linear regression

Script: Ch. 4.4.1, p. 19 (Open PDF)

1
2
3

Step 1: Why linearize?

The problem

The linear regression from Module 7 only works for relationships of the form \(y = m \cdot x + b\). But many physical laws are nonlinear — they contain squares, roots, exponential functions or powers. If you were to plot the measurement data directly, you would not be able to calculate a regression line.

The solution: Through clever Variable substitution brings the connection into a linear form. Regression can then be used and the desired physical quantities can be calculated from the slope and intercept.

The three most important types

TypeReferenceSubstanceLinear shape
Square\(y = a \cdot x^2 + b\)\(u = x^2\)\(y = a \cdot u + b\)
Exponential\(y = a \cdot e^{b x}\)\(\ln\) both sides\(\ln(y) = bx + \ln(a)\)
Potency law\(y = a \cdot x^b\)\(\ln\) both sides\(\ln(y) = b\cdot\ln(x) + \ln(a)\)

TipProcedure for linearization

Once you are asked to use a nonlinear formula for regression, do this:

  1. What is the theoretical connection?
  2. What type does it correspond to (quadratic, exponential, power)?
  3. Which quantity belongs on the x-axis, and which on the y-axis?
  4. What do slope and intercept mean physically?

Module 9: Creating a report

Check your progress and export your PDF log

Script: Ch. 5, pp. 20–24 (Open PDF)

Module overview

Here you can see the current status of all modules. Complete all modules to get the full log.

Module Status
2. Record keeping —
3. Measurement error —
4. Calculation accuracy —
5. Statistical key figures —
6. Error propagation —
7. Linear regression —
8. Linearization —

Export PDF report

The log contains your name, modules completed and your calculated results.