# MATLAB Level 8: Statistics & Optimisation

> Level 8: Statistics & Optimisation of the LoWisa MATLAB course: Statistical Analysis, Optimisation, Model Fitting. 3 lessons and 9 ideas, each explained in one line.

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

## 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

- **Before:** [Level 7: Numerical Methods](/courses/matlab/level-7-numerical-methods/): Root Finding, Integration and Differential Problems, Numerical Accuracy.
- **Next:** [Level 9: Object-Oriented MATLAB](/courses/matlab/level-9-object-oriented-matlab/): Classes, Properties and Methods, Reusable Engineering Components.

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](/help/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.

---

Source: https://lowisa.dev/courses/matlab/level-8-statistics-and-optimisation/ · Updated 2026-11-30
