## 03ps-02 Waning Immunity Solution

• 0:00 - 0:04
Now, let's look at the solution for a problem concerning waning immunity.
• 0:04 - 0:10
First things first, the constant waning time should be defined as 2 times the infectious time.
• 0:10 - 0:13
We can show this mathematically using the equations we have for the
• 0:13 - 0:16
derivatives of S, I, and R with their respective time.
• 0:16 - 0:20
We know that after a long period of time you want to attain a steady state situation
• 0:20 - 0:23
and there's a number of people in each portion to the population--
• 0:23 - 0:27
susceptible, infected, and recover stays constant.
• 0:27 - 0:30
Since they want to find out how long people should spend in the recovered stage,
• 0:30 - 0:34
we start with the time derivative of R and set that equal to zero.
• 0:34 - 0:40
Since you know that Rdot now has an extra term added to it or actually subtracted from it
• 0:40 - 0:43
showing the number of people that are leaving the recovered population
• 0:43 - 0:45
and going back to the infected population.
• 0:45 - 0:49
We can set these to terms right here equal to zero as well.
• 0:49 - 0:53
Just to note, I've used CINF to stand for the infectious time
• 0:53 - 0:56
and CWAN to stand for the waning time.
• 0:56 - 1:01
Now with just a little bit of Algebra, we come up with the answer that R=2I.
• 1:01 - 1:04
Since we know that we want the number of recovered people to be twice the number
• 1:04 - 1:09
of infected people, we can plug in this extra information to the equation above
• 1:09 - 1:13
and end up with the answer that the waning time is equal to twice the infectious time.
• 1:13 - 1:16
This put us directly into the next part of the problem.
• 1:16 - 1:22
We defined R to S in the same way that I to R is defined except that we replace infectious time
• 1:22 - 1:27
as the waning time and I step with R step as you can see right here.
• 1:27 - 1:32
Then moving on to our recursive relations, for each element in a step plus one position,
• 1:32 - 1:36
we need to take into account the value of the previous element in the number of people
• 1:36 - 1:39
added and subtracted from the population during each time step.
• 1:39 - 1:43
We know that the one thing that has changed in this model from the standard SIR model
• 1:43 - 1:48
is that people are now moving from the recovered population back to the susceptible population.
• 1:48 - 1:55
This is why we've needed to add in this extra term R to S, which we subtract from R and add to S.
• 1:55 - 1:57
Now, let's run the program and see what we get.
• 1:57 - 2:00
Here we see we end up with this fancy graph,
• 2:00 - 2:04
which has three different series for the three different parts of the population we're looking at.
• 2:04 - 2:08
Remembering how we set the initial values for S, I, and R.
• 2:08 - 2:12
Remember that the blue line here stands for the susceptible population.
• 2:12 - 2:15
The green line stands for the infected population,
• 2:15 - 2:18
and the red line stands for the recovered population.
• 2:18 - 2:20
And the maximum time that we're looking at 60 days,
• 2:20 - 2:25
you can see that the red line is graphing twice as many people over here
• 2:25 - 2:30
as the green line is marking, which is exactly the answer that we wanted to end up with.
• 2:30 -
Congratulations on successfully completing the first problem of Unit 3.
Title:
03ps-02 Waning Immunity Solution
Team:
Udacity
Project:
CS222 - Differential Equations
Duration:
02:34
 Amara Bot edited English subtitles for 03ps-02 Waning Immunity Solution Gundega added a translation

• Amara Bot
• Gundega