Question: * * Please use RStudio & R Coding! Please show code! Problem 6 . 3 More on parameter fitting, In the class, we illustrated how
Please use RStudio & R Coding! Please show code!
Problem More on parameter fitting, In the class, we illustrated how to perform parameter fitting of the
LotkaVoiterra model against a timeseries data set. In that example, we detined an error function by Sum of
square differences SSD between model and datz. Here, you are asked to define a different error criterion, the
sum of the absolute values not ther squares Try a few initial parameters a b c d values, eg the
initial conditions we have tried in the class and perform nonlinear minimization.
For each case,
Plot the time trajectories together with the data;
Show the parameters you obtained from the optimization;
Show the final error values.
And compare your results qualitatively with those using the original algorithm with SSD as the error function.
Notes: If you use RODRmd from Oanvas is a good starting point. If you use Matlab, you can start from the
code from the lecture notes search "fitjlotkavolterta.m If you use Python or other languages, you then
have to wilte your own script to perform ertor minimization.
The timeseries data can be found in the csv file LVdata.csv
Ivdata read.osvIVdata.osv", header :
kntr::kablelvdata ool,nemes oYear "Hare x "Iyns
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
