MATLAB Assignment 4 Solution

NJIT Math 222

Fourth MATLAB Assignment

Computational project part 1

I ran the code with N=10000, Ξ³=1 and Ξ² varying. The assignment says to expect different behavior depending on whether or not R0>1, where R0=Ξ²NΞ³.

For these values of N and Ξ³, this an epidemic when Ξ²>10βˆ’4. Therefore I tried three values of Ξ²: 2Γ—10βˆ’4, 1.25Γ—10βˆ’4, and 9Γ—10βˆ’5. For the first two values, I saw growth, with a larger epidemic in the first case Ξ²=2Γ—10βˆ’4.

My results are in a

MATLAB-generated webpage . This was generated from

this MATLAB code .

Computational project part 2

Here you were asked to use phase-plane drawing software to examine solutions graphically. It was pointed out that dIdt=0 when Sβˆ—=Ξ³Ξ². From the following three images, we see that S0>Sβˆ— when Ξ²>10βˆ’4, which is when we see epidemics.

Phase plane with $\beta=2\times10^{-4}$, $S^*=5000$
Phase plane with Ξ²=2Γ—10βˆ’4, Sβˆ—=5000
Phase plane with $\beta=1.25\times10^{-4}$, $S^*=8000$
Phase plane with Ξ²=1.25Γ—10βˆ’4, Sβˆ—=8000

In the third case, Ξ²=9Γ—10βˆ’5 S0=11111>N=10000, so the infection number is decreasing at t=0.

Phase plane with $\beta=9\times10^{-5}$
Phase plane with Ξ²=9Γ—10βˆ’5

There is also a question asked β€œCan this model support a sustained epidemic.” The answer is that it cannot. In a sustained epidemic, the infection rate I(t) would have to reach a nonzero steady state but the phase plane shows that limtβ†’βˆžI(t)=0 for all solutions, so it can’t sustain an epidemic. To support a sustained epidemic, a model must refresh its supply of susceptible individuals. Fortunately for the germs, we do that anyway by having babies! A more complete models will include births.

Previous