Analyzing Data

Last Updated: August 14, 2026

Reference pages for turning measurements into results — consult one as the task comes up, adapt the example, and move on.

  • Arrays and Plotting — holding measurements in NumPy arrays, reading and writing data files, and making plots you can put in a report. Start here; the rest of this section builds on it.
  • Curve Fitting — fitting a model with scipy.optimize.curve_fit; parameters, uncertainties, residuals, χ², weighted fits.
  • Error Propagation — propagating uncertainties by hand and with the uncertainties package.
  • Fourier Analysis — DFT/power spectra with rfft, frequency resolution, windowing, and aliasing.

Back to Python for Lab Work