Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4 0 points ) Write a Matlab program which simulates the SZR model for initial condi - tions S 0 = 1 9 0 ,

40 points) Write a Matlab program which simulates the SZR model for initial condi-
tions
S0=190, Z0=10,
and parameters
\beta =0.01,\kappa =0.008,
given in units of (days)1. The total simulation time should be 28 days. Curves for
S(t), Z(t), and R(t) should all be shown on the same plot, and should be clearly labeled,
for example by using the legend command.
As part of a .zip file for this final project, please submit a file called szr.m for the main
program, and a file called szrf.m for the function which encodes the righthand side of
the SZR model, and which is called by the Matlab function ode23 in the main program.
b)(20 points) It is shown in [2] that if \beta >\kappa , the zombies always win (S ->0 as t ->\infty ),
for all initial conditions S0 and Z0. On the other hand, if \beta <\kappa it is possible that either
the humans or the zombies could win, depending on the initial conditions.
Lets consider \beta =0.008 and \kappa =0.01, and suppose that S0+ Z0=200, where S0
could be as high as 199 or as low as 1. Write a Matlab program which determines the
smallest integer value that S0 can take for which S(t =28)>1. As a hint, start with
S0=1 and Z0=199, and run the simulation. Is S(t =28)>1? If not, try S0=2 and
Z0=198. Is S(t =28)>1? If not, try S0=3 and Z0=197, etc. Eventually youll find
the smallest integer value of S0 for which S(t =28)>1; your program should determine
and output this value.
As part of a .zip file for this final project, please submit your file szr_ic.m which
solves this problem. This should call your function szrf from (a).
c)(40 points) While the results of the simulations of the SZR model might seem depressing,
particularly when \beta >\kappa , there is another model called the Stochastic SZR (Stoch-SZR)
model which, as well see, is more hopeful. Quoting [2], this model suggests that even a
ferociously virulent zombie infestation might be killed early on by happy accident. Note
that you cant use a built-in Matlab solver for this, so youll have to write your own code
from scratch.
For the Stoch-SZR model, the variables S, Z, and R again denote the number of
individuals in the Susceptible, Zombie, and Removed groups, respectively, but they only
take non-negative integer values. There are two possible transitions:
Susceptible + Zombie \beta SZ
-> Zombie + Zombie, (1)
Susceptible + Zombie \kappa SZ
-> Susceptible + Removed. (2)
2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions

Question

How can sensitivity to pain be altered?

Answered: 1 week ago

Question

2.5 Describe a social audit.

Answered: 1 week ago