Data fitting programmingMath 371
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 useode45 to obtain the same solution
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. 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 orother ODE solvers; usehelp files to check theirdifferences
Almost perfect data fitting!
abcr