Back to course overview
Scientific Python
Fitting and Solving
Fit models to data and read parameter uncertainties, step ODEs forward in time, and find roots and integrals numerically, with the SciPy functions that do it for you.
3 lessons · 3h 59m
- 1h 35mCurve fittingReading
Fit a model to data with scipy.optimize.curve_fit, read parameter uncertainties from the covariance matrix, and judge the fit with residuals.
- 1h 19mSolving ODEsReading
Step ordinary differential equations forward with Euler and Runge-Kutta in NumPy, then solve them properly with scipy.integrate.solve_ivp.
- 1h 5mNumerical integration and rootsReading
Find roots with bisection and Newton's method, integrate sampled and analytic functions with the trapezoid and Simpson rules, and know the SciPy equivalents.