Fundamentals / Numerical mathematics / Inverse problems and least squares / Notebooks

Calibrating two instruments when both axes fluctuate

The horizontal axis of a calibration plot is often described as an input. In this experiment it is itself a reading from a second noisy instrument. Infer a straight calibration relation from paired data, derive the metric in which the fit should be performed, and use a change of units to reveal an easily overlooked modelling error.

Change parameters · Explore the workshop parameters

Change one input at a time and compare the recalculated curves with the argument above. The browser evaluates this small model locally; the accompanying numerical values state its assumptions and reference checks. Reset restores the reference inputs, and the data can be downloaded as CSV.

Save notebook (.ipynb)

Python runs on this device. The first run loads the scientific libraries.

The optional OneSimulation calculation uses the local OneSimulation installation. Save this notebook to run that comparison in Jupyter.

Two instruments observe the same latent calibration settings. Estimate their linear relation when either reading may be in error. Watch the fitted line rotate as you change the stated measurement uncertainties. Noise draws are fixed for repeatable comparisons.

Eliminate a different nuisance coordinate for every reading

For a trial slope through the centroid, minimising the squared correction over the unknown true horizontal coordinate leaves a single scalar loss. Plot this independent function and compare its minimum with the singular-vector fit.

Change units and cross-check the eigensystem

Convert the first instrument to volts and scale its uncertainty too. Transforming the fitted slope back must recover the original. In an installed OneSimulation environment its symmetric eigensystem supplies an independently constructed normal vector.