In teaching labs the analysis often counts for more than the measurement: fitted lines without uncertainties, wrongly propagated errors and plots without error bars are classic problems in lab reports. Coding agents write analysis scripts quickly, but they do not automatically choose the right model or the right weighting. This training keeps teaching lab data analysis with coding agents transparent: you have weighted fits, error propagation and residual analyses produced, check every result with a quick estimate and build templates that students can use and understand themselves.
Who the lab data analysis training is for
Lab supervisors, lecturers and teaching staff in physics, chemistry and engineering, as well as advanced students, who analyse measurement data in Python and have basic skills in it.
What you'll walk away with
- Read in, clean and attach units to measurement series with a coding agent
- Run weighted fits with uncertainties and report parameter errors correctly
- Implement error propagation with the uncertainties package and compare it with a hand calculation
- Judge residuals and goodness of fit and recognise unsuitable models
- Produce plots with error bars and axis labels to lab report standard
Typical scenarios
- In a spring constant experiment, the residual analysis shows that a linear fit does not hold across the whole range because the spring was overstretched at the end.
- A lab team provides an analysis template for the radioactive decay experiment that handles count rates with Poisson uncertainty and background subtraction correctly.
- In the pendulum experiment, a quick estimate reveals that the agent's script confused full and half periods of oscillation.
Does this fit your team?
Pick a few dates that suit you. The request is non-binding, and the agenda is tailored in a short call beforehand.
What the lab data analysis training covers
- Reading and checking dataInstrument files and spreadsheets, units with pint, plausibility checks and handling outliers.
- Fits with uncertaintiesSciPy's curve_fit, weighting by measurement uncertainty, starting values and reporting parameter errors correctly.
- Error propagationGaussian error propagation with the uncertainties package, correlations and comparison with a hand calculation.
- Judging the modelResidual plots, reduced chi-squared and deciding when a different model or a narrower range is needed.
- Plots for lab reportsMatplotlib templates with error bars, units in axis labels and export for LaTeX reports.
- Templates for studentsNotebooks students can adapt without adopting the analysis blindly, and rules on declaring AI use in reports.
Before the lab data analysis training: prerequisites
- Basic Python skills and experience analysing measurement data
- Data from a lab experiment, ideally together with your existing analysis
- Python with SciPy and Matplotlib on your own laptop, and a coding agent allowed to run there
Materials you keep
- Analysis templates for fits, error propagation and plots
- A checklist for sanity-checking agent-written analyses
- A reworked analysis for one experiment from your lab course