Agentic Coding · Training · Universities & research

Teaching Lab Data Analysis with Coding Agents: Training for Lab Supervisors

Analyse measurement series transparently and support students with more confidence, using scripts for fits, uncertainties and plots that a coding agent writes and you cross-check.

  • Workshops & trainings since 2014
  • jocapps GmbH · Freiburg, Germany
  • The team behind Mathe-VollLogo
Format
Training
Duration
1 day (7.5 hours)
Delivery
Live online · On-site (in-house) · Hybrid
Group size
4–12 participants
Level
Intermediate
Language
German or English

Tools: Claude Code · Python · SciPy · uncertainties · pint · Matplotlib

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

  1. 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.
  2. A lab team provides an analysis template for the radioactive decay experiment that handles count rates with Poisson uncertainty and background subtraction correctly.
  3. 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.

Request dates

What the lab data analysis training covers

  1. Reading and checking dataInstrument files and spreadsheets, units with pint, plausibility checks and handling outliers.
  2. Fits with uncertaintiesSciPy's curve_fit, weighting by measurement uncertainty, starting values and reporting parameter errors correctly.
  3. Error propagationGaussian error propagation with the uncertainties package, correlations and comparison with a hand calculation.
  4. Judging the modelResidual plots, reduced chi-squared and deciding when a different model or a narrower range is needed.
  5. Plots for lab reportsMatplotlib templates with error bars, units in axis labels and export for LaTeX reports.
  6. 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

How it works

  1. Request with preferred datesTick the date proposals that suit you or name a period of your own.
  2. Short callWe talk about your goals, prior knowledge and the tools your team already uses.
  3. Agenda for your teamYou receive a plan tailored to your group, with exercises that match your subject and material.
  4. Course and materialsThe course runs online, on-site or hybrid, and you keep the materials afterwards.

Why train with us

  • jocapps GmbH has offered workshops and trainings since 2014. The topics have moved with the technology; today the focus is on agentic coding and prompt engineering.
  • Hands-on rather than slides: you practise on realistic examples from maths and STEM, or on your own tasks, code or prompts if you wish.
  • Online, on-site or hybrid, held in German or English.
  • jocapps GmbH is certified to ISO 27001 (information security) and ISO 9001 (quality management).

Questions about the lab data analysis training

Should students then let an agent write their analysis?

That is for your lab course to decide. Many learning goals depend on students understanding error analysis themselves. The training shows templates that take over the arithmetic but deliberately leave model choice, uncertainties and interpretation to students, along with rules for declaring AI use.

Does this work with data from Origin or Excel?

Yes, as long as the data can be exported, for example as a CSV file. The agent can write import scripts for typical instrument files and spreadsheets. The analysis itself runs in Python so that it can be versioned, shared and recomputed automatically.

How do we check whether the agent calculated correctly?

With independent checks: a quick estimate, comparison with a known reference value, synthetic data with known parameters and a units check. In the training you build these checks into every template as fixed steps, so they are not skipped in day-to-day lab teaching.

Is the training held online or on-site, and in which language?

Both are possible: live online, at your premises (in-house) or hybrid. The course is held in German or English; you choose when you send the request.

Can the content be tailored to our team?

Yes. The agenda, examples and emphasis are agreed in the call beforehand, based on your team's prior knowledge, subjects and tools. On request we work with your own exercises, data or code.