Guidance setting up an example.

3 views (last 30 days)
Kristian Torres
Kristian Torres on 9 Jul 2020
Commented: Kristian Torres on 9 Jul 2020
School Flu Epidemic Darrell W. Pepper Department of Mechanical Engineering University of Nevada Las Vegas Las Vegas NV USA STATEMENT
Epidemics continue to have significant impacts on humans. The history of epidemics is well known, stemming back to the Black Death in the fourteenth century through measles, influenza, smallpox, AIDS, and the Ebola virus in more recent times. One of the most devastating epidemics was the influenza outbreak at the end of World War I. As a result of this disease, millions died around the world.
Influenza is one of the most contagious diseases spread among humans over the past several years free flu shots have now been authorized for people throughout the US. When considering this disease, we can model the population as those susceptible (S(t)) and those with contagious infectives (I(t)) over time (t). The susceptibles are those likely to catch the disease, while the contagious infectives are those infected with the disease who can communicate it to a susceptible. We can model this behavior as simple rate equations, assuming that the populations of the susceptibles and infectives are large (to neglect random differences in people). We likewise assume that those who recover are then immune.
We refer to an outbreak of influenza in an English boarding school [1]. The three differential equations that can simulate the simple behavior of an influenza epidemic (not accounting for population dynamics, i.e. natural births and deaths) can be described by the following relations: 2 School Flu Epidemic
dS dt = −β S I ,
dI dt = β S I − γ I ,
dR dt = γ I ,
with S(0) = s0, I(0) = i0, and R(0) = 0.
Here β is the infection rate, γ is the recovery rate (or removal rate), and R(t) denotes those recovered at time t. For influenza, the infectious period is typically 1-3 days. Let us use actual data obtained from an influenza epidemic that occurred in an English school [1]. The epidemic was started by one infective, i0 = 1, and the total number of susceptibles was s0 = 762 individuals. The infection rate and removal rate were estimated as β = 2.18 × 10−3 susceptibles−1 day−1 and γ = 0.44 day−1 , respectively.
Questions 1. How many days did it take to reach peak infection? 2. How long did it take to fully recover? 3. Notice that the number of infectives starts small and increases quickly, but then decreases gradually. Why is that? Demonstrate this fact with a plot in this situation.
The text above is the assignment I am suppose to set up. I need advice and guidence if I am on the right track. Here is what I have so far...
%flu ananlysis
%dS/dt=-B*S*I
%dI/dt=B*S*I-r*I
%dR/dt=r*I
%initial conditions
%S(0)=s0 those susceptible (S(t))
%I(0)=i0 contagious infectives(I(t))
%R(0)=0 those recovered at time t
%i0=1 started by one infective
%s0=762 total number of susceptibles
%B=2.18 * 10^-3 susceptibles^-1day^-1
%r=0.44 day ^-1
function dxdt= flu(t,x)
dxdt[-(2.18*10^-3)*x(1)*x(2);
(2.18*10^-3)*x(1)*x(1)-0.44*x(1);
0.44*x(2)];
end

Answers (1)

Image Analyst
Image Analyst on 9 Jul 2020
Several problems. For one, nearly all your code is a comment because the lines start with %. Secondly, you might want to set up a for loop where the iterator is the number of days, and plot what you see.
  1 Comment
Kristian Torres
Kristian Torres on 9 Jul 2020
Okay,I will begin with a for loop.Appreciate the help.

Sign in to comment.

Categories

Find more on Biological and Health Sciences in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!