MATLAB course

MATLAB Level 8: Statistics & Optimisation

Statistics & Optimisation is level 8 of 12 of the LoWisa MATLAB course. It has 3 lessons and 9 ideas. Below is every lesson and what it teaches, in one line each.

Updated 2026-11-30

Statistical Analysis

  • Descriptive statistics. mean, std, median and quantile summarise: with the NaN-aware variants chosen knowingly.
  • Distribution fitting. fitdist fits named distributions: parameters with confidence intervals, not point guesses.
  • Hypothesis tests. Tests like ttest weigh evidence: assumptions checked, effect sizes reported beside p-values.

Optimisation

  • fminsearch and friends. fminunc and fminsearch minimise objectives: gradients supplied where known.
  • Constrained optimisation. fmincon handles constraints: bounds and nonlinear conditions declared, multipliers read.
  • Local minima honesty. Optimisers find local minima: multistart and problem insight guarding against false victory.

Model Fitting

  • Least squares. Curve fitting is least squares: polyfit and lsqcurvefit with residuals examined.
  • Overfitting. A polynomial through every point is overfitting: validation data judging real fit.
  • Uncertainty on parameters. Fits report parameter uncertainty: intervals carried into every downstream claim.

Before and after this level

In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See Checkpoints and flashcards.

Frequently asked questions

What does MATLAB Level 8: Statistics & Optimisation cover?

Statistical Analysis, Optimisation, Model Fitting: 3 lessons and 9 ideas.

What should I know before this level?

The level before it, Level 7: Numerical Methods, which covers Root Finding, Integration and Differential Problems, Numerical Accuracy.

Learn MATLAB on your phone

The first level is free. LoWisa is on Google Play and the App Store.