Data fitting programming Math 371 Hao Wang University of Alberta
Can we do better? x .
c*x-r
Use these estimated parameters to run the solution of the model (the initial point is the first data point in the data table) and compare with data points
I use ode23 here, you can use ode45 to obtain the same solution
The solution fits data reasonably well but not very well The solution fits data reasonably well but not very well. Do we have a better method for parameter estimation and data fitting?
The solution fits data reasonably well but not very well The solution fits data reasonably well but not very well. Do we have a better method for parameter estimation and data fitting? YES!
Direct Method Least-square data fitting
Revisit L-V predator-prey model Use the least-square method to fit data and estimate parameter values directly
You can use ode45 or other ODE solvers; use help files to check their differences
Almost perfect data fitting!
a b c r