Concept Flow - Curve fitting (curve_fit)
Start with data points (x, y)
Define model function f(x, params)
Call curve_fit with f, x, y
curve_fit adjusts params to minimize error
Output best-fit parameters and covariance
Use params to predict or plot fitted curve
We start with data points and a model function. curve_fit finds parameters that make the model best match the data.