Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SOLVE THIS IN MATLAB!!!! Consider the following simplified scenario of the Covid - 1 9 pandemic. We divide the entire population into three classes: Susceptible

SOLVE THIS IN MATLAB!!!!
Consider the following simplified scenario of the Covid-19 pandemic. We divide the entire population into
three classes:
Susceptible (S)
Infected (I)
Recovered/Immune (R)
The susceptible class has either not been exposed to the virus or has not been given the vaccine. The
infected class will recover eventually but can infect others in the mean time. The recovered class has either
had either been exposed to the virus and has recovered or has been successfully vaccinated. Lets suppose
in this scenario that we do not consider the otherwise grim reality of this pandemic. We observe that it is
difficult to change human behavior/interaction but suppose we can produce vaccinations. So, we study the
effect of vaccination behavior of the outbreak.
Suppose today is day zero and we capture the proportion of the population in each of the classes S,I,R in
a column vector
x0=[0.90.090.01]
It is observed that each day 1/1,000 of the infected individuals recover. Each day, 1 out of every 200 susceptible
individuals becomes infected. Because of mutations in the virus, 1/10,000 of the recovered individuals become
susceptible again. Through vaccination, we are able to move some fraction of the individuals in S directly to
R; call this fraction p where 0p1. Find a matrix M such that
x1=Mx0
describes the change in the population make up from day 0 to day 1. This is the same matrix that describes
the transition of the population from day k to day k+1. Note that if some number of individuals move from
one class to another, you have to remove them from the class they were in originally (the columns of your
matrixM should all sum to 1
THIS IS MY CURRENT CODE ONLY A5 IS CORRECT
% Given parameters
recovery_rate =1/1000;
infection_rate =1/200;
reinfection_rate =1/10000;
% Scenario 1: p =0
p =0;
% Transition matrix
M =[
1- infection_rate, 0, reinfection_rate + p;
infection_rate, 1- recovery_rate, 0;
0, recovery_rate, 1- reinfection_rate - p
];
% Save the matrix as A5
A5= M;
% Initialize the state vector
x0=[0.9; 0.09; 0.01];
% Simulation for steady state
for day =1:100000
x0= M * x0;
if day ==1
D0= day;
F0= x0(2); % Fraction of population infected
elseif abs(x0(2)- F0)1e-8
break;
end
end
F0=max(0,min(1,F0));
% Save the row vector A6=[D0, F0]
A6=[D0, F0];
% Scenario 2: p =2/1000
p1=2/1000;
% Update the transition matrix
M =[
1- infection_rate - p1,0, reinfection_rate + p1;
infection_rate, 1- recovery_rate, 0;
p1, recovery_rate, 1- reinfection_rate - p1
];
% Save the matrix as A7
A7= M;
% Initialize the state vector
x0=[0.9; 0.09; 0.01];
% Simulation for steady state
for day =1:100000
x0= M * x0;
if day ==1
D1= day;
F1= x0(2); % Fraction of population infected
elseif abs(x0(2)- F1)1e-8
break;
end
end
% Save the row vector A8=[D1, F1]
A8=[D1, F1];
image text in transcribed

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

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions