The SIR Disease Model Trajectories and MatLab

Similar documents
Solving Linear Systems of ODEs with Matlab

Predator - Prey Model Trajectories and the nonlinear conservation law

Linear Systems of ODE: Nullclines, Eigenvector lines and trajectories

Linear Systems of ODE: Nullclines, Eigenvector lines and trajectories

Getting Started With The Predator - Prey Model: Nullclines

Predator - Prey Model Trajectories are periodic

Predator - Prey Model Trajectories are periodic

Matrices and Vectors

Uniform Convergence Examples

Uniform Convergence Examples

Lesson 5 Practice Problems

FLEX Mathematics Introduction to Trigonometry. MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Project Two. James K. Peterson. March 26, Department of Biological Sciences and Department of Mathematical Sciences Clemson University

Project Two. Outline. James K. Peterson. March 27, Cooling Models. Estimating the Cooling Rate k. Typical Cooling Project Matlab Session

More On Exponential Functions, Inverse Functions and Derivative Consequences

Applied Calculus. Review Problems for the Final Exam

Riemann Integration. Outline. James K. Peterson. February 2, Riemann Sums. Riemann Sums In MatLab. Graphing Riemann Sums

Taylor Polynomials. James K. Peterson. Department of Biological Sciences and Department of Mathematical Sciences Clemson University

Math 148. Polynomial Graphs

Riemann Sums. Outline. James K. Peterson. September 15, Riemann Sums. Riemann Sums In MatLab

Project One: C Bump functions

The First Derivative and Second Derivative Test

Upper and Lower Bounds

Practice Problems. 1. The age and weights of six cats are given in the following table:

Functions Modeling Change A Preparation for Calculus Third Edition

Riemann Integration. James K. Peterson. February 2, Department of Biological Sciences and Department of Mathematical Sciences Clemson University

Geometric Series and the Ratio and Root Test

Lesson 1 Practice Problems

Defining Exponential Functions and Exponential Derivatives and Integrals

Newton s Cooling Model in Matlab and the Cooling Project!

Complex Numbers. Outline. James K. Peterson. September 19, Complex Numbers. Complex Number Calculations. Complex Functions

Complex Numbers. James K. Peterson. September 19, Department of Biological Sciences and Department of Mathematical Sciences Clemson University

g( x) = 3x 4 Lesson 10 - Practice Problems Lesson 10 Rational Functions and Equations Practice Problems

Lesson 4 Linear Functions and Applications

Functions Modeling Change A Preparation for Calculus Third Edition

AP Calculus AB Summer Assignment. Due Date: First day of school.

Lesson 6 Practice Problems

Dirchlet s Function and Limit and Continuity Arguments

More Protein Synthesis and a Model for Protein Transcription Error Rates

NUMB3RS Activity: Fresh Air and Parabolas. Episode: Pandora s Box

Systems of Differential Equations

PART 1 - CALCULATOR ACTIVE QUESTIONS

Solving systems of ODEs with Matlab

We have two possible solutions (intersections of null-clines. dt = bv + muv = g(u, v). du = au nuv = f (u, v),

The First Derivative and Second Derivative Test

Dirchlet s Function and Limit and Continuity Arguments

Solutions to MAT 117 Test #3

Outline. Additional Nonlinear Systems. Abstract. Finding Equilibrium Points Numerically. Newton s Method

Epsilon-Delta Window Challenge Name Student Activity

MINI LESSON. Lesson 2a Linear Functions and Applications

( ) ( ) SECTION 1.1, Page ( x 3) 5 = 4( x 5) = 7. x = = = x x+ 0.12(4000 x) = 432

Applications in Biology

Motivation: Sparse matrices and numerical PDE's

Why This Class? James K. Peterson. August 22, Department of Biological Sciences and Department of Mathematical Sciences Clemson University

Geometric Series and the Ratio and Root Test

At right: Closeups of the graphs of. with WINDOW settings Xmin=-1, Xmax=1, Xscl=0.1, Ymin=-1, Ymax=1, Yscl=0.1

Calculus for the Life Sciences II Assignment 6 solutions. f(x, y) = 3π 3 cos 2x + 2 sin 3y

Hölder s and Minkowski s Inequality

MEI Casio Tasks for Mechanics

A Simple Protein Synthesis Model

Exam 2 Study Guide: MATH 2080: Summer I 2016

MA 180 Lecture. Chapter 0. College Algebra and Calculus by Larson/Hodgkins. Fundamental Concepts of Algebra

Logarithm and Exponential Derivatives and Integrals

Study Ch. 9.4, # 73, (65, 67 75)

Name Typical Applications in Algebra 1

MATH 099 Name (please print) FINAL EXAM - FORM A Winter 2015 Instructor Score

MA 137 Calculus 1 for the Life Sciences Operations on Functions Inverse of a Function and its Graph (Sections 1.2 & 1.3)

Sequence. A list of numbers written in a definite order.

Supplement to TB in Canadian First Nations at the turn-of-the twentieth century

AP Calculus AB SUMMER ASSIGNMENT. Dear future Calculus AB student

IM3 Unit 1 TEST - Working with Linear Relations SEP 2015

f x and the x axis on an interval from x a and

Section 4.4 Z-Scores and the Empirical Rule

Differentiating Series of Functions

A repeated root is a root that occurs more than once in a polynomial function.

Non-Linear Models Cont d: Infectious Diseases. Non-Linear Models Cont d: Infectious Diseases

Integration by Parts Logarithms and More Riemann Sums!

Practice Test Questions Multiple Choice Identify the choice that best completes the statement or answers the question.

MATH 152 COLLEGE ALGEBRA AND TRIGONOMETRY UNIT 1 HOMEWORK ASSIGNMENTS

Differential Equations Handout A

Convergence of Fourier Series

The SIRS Model Approach to Host/Parasite Relationships

Mathematical Induction Again

Consequences of Continuity

A Note on the Spread of Infectious Diseases. in a Large Susceptible Population

Mathematical Induction Again

Advanced Protein Models again: adding regulation

Uniform Convergence and Series of Functions

Integration and Differentiation Limit Interchange Theorems

3.2 Quadratic Equations by Graphing

MA 138 Calculus 2 for the Life Sciences Spring 2016 Final Exam May 4, Exam Scores. Question Score Total

Project 1 Modeling of Epidemics

M etodos Matem aticos e de Computa c ao I

Sin, Cos and All That

Analysis of Numerical and Exact solutions of certain SIR and SIS Epidemic models

Fixed Point Analysis of Kermack Mckendrick SIR Model

MCMC 2: Lecture 2 Coding and output. Phil O Neill Theo Kypraios School of Mathematical Sciences University of Nottingham

Moving Straight Ahead Practice Answers

18.03SC Practice Problems 2

U(s) = 0 + 0s 3 + 0s 2 + 0s + 125

Transcription:

The SIR Disease Model Trajectories and MatLab James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University November 17, 2013 Outline Reviewing the SIR disease model The I vs. S curve Matlab!

Abstract This lecture discusses the SIR disease model trajectories and using MatLab to plot them. We will now build a simple model of an infectious disease. Assume the total population we are studying is fixed at N individuals. This population is then divided into three separate pieces: we have individuals that are susceptible to becoming infected are called Susceptible and are labeled by the variable S. Hence, S(t) is the number that are capable of becoming infected at time t. that can infect others. They are called Infectious and the number that are infectious at time t is given by I (t). that have been removed from the general population. These are called Removed and their number at time t is labeled by R(t).

Our complete Infectious Disease model is then I = r S I γ I S = r S I I (0) = I 0 S(0) =. where we can compute R(t) as N I (t) S(t). The Phase Plane in Quadrant I: S = 0 I axis S axis I = 0 S = 0 (, ) (, +) (S 1, I 1) S 1 S 0 (, I 0) S = γ/r I = 0 A plausible trajectory starting at the point > γ/r and I 0 > 0. Another trajectory starting at S 1 < γ/r and I 0 > 0 is also shown. In addition, the intersections with the S axis are labeled S0 and S1, respectively. Figure: The Disease Model in Quadrant One

We know that biologically reasonable solutions occur with initial conditions starting in Quadrant I and we know that our solutions satisfy S < 0 always with both S and I positive until we hit the S axis. Let the time where we hit the S axis be given by t. For any t < t, we can divide to obtain Thus, I (t) S (t) r S(t) I (t) γ I (t) = r S(t) I (t) = 1 + γ 1 r S(t). I (t) S (t) = 1 + γ r 1 S I (t) = S (t) + γ r S (t) S(t) Integrating, we find ) I (t) I 0 = (S(t) + γ ( ) S(t) r ln. simplify I (t) = I 0 + S(t) + γ ( ) S(t) r ln. Dropping the dependence on time t, we see the functional dependence of I on S. I = I 0 + S + γ r ln ( S ). It is clear that this curve has a maximum at γ/r. This value is very important in infectious disease modeling and we call it the infectious to susceptible rate ρ.

Now let s answer the question of whether or not the trajectory can hit the origin. If that happened, the terminal value would be S = 0 and I = 0. The I vs S equation would then say I = I 0 + S + γ ( ) S r ln or 0 = I 0 + 0 + γ r ln ( 0 ). Since ln(0) is undefined, this equation is impossible and so the trajectory can not hit the origin. Definition For the disease model I = r S I γ I, S = r S I I (0) = I 0, S(0) = the dependence of I on S is given by ( ) S I = I 0 + S + ρ ln. We say the infection becomes an epidemic if the initial value of susceptibles, exceeds the critical infectious to susceptible ratio ρ = γ r because the number of infections increases to its maximum before it begins to drop. This behavior is interpreted as an infection going out of control; i.e. it has entered an epidemic phase.

Homework 78 For the following disease models 1. Do the nullcline analysis for the first quadrant. 2. Explain why the trajectories must stay in Quadrant 1 if they start there. This means you find the trajectories on the positive I and positive S axis as part of answering the question. Draw a nice picture of this. 3. Derive the di ds equation and solve it. Explain why a trajectory can not hit the origin. 4. Answer the questions about whether or not the specific values given cause an epidemic. Draw the corresponding trajectory for each case. Homework 78 78.1 78.2 S (t) = 150 S(t) I (t) I (t) = 150 S(t) I (t) 50 I (t) S(0) =, I (0) = 12.7 Is there an epidemic if is 1.8? (yes as γ/r = 1/3) Is there an epidemic if is 0.2? (no) S (t) = 5 S(t) I (t) I (t) = 5 S(t) I (t) 25 I (t) S(0) =, I (0) = 120 Is there an epidemic if is 4.9? ( no as γ/r = 5) Is there an epidemic if is 10.3? (yes )

Homework 78 78.3 78.4 S (t) = 15 S(t) I (t) I (t) = 15 S(t) I (t) 40 I (t) S(0) =, I (0) = 12.7 Is there an epidemic if is 6? Is there an epidemic if is 2? S (t) = 18 S(t) I (t) I (t) = 18 S(t) I (t) 200 I (t) S(0) =, I (0) = 120 Is there an epidemic if is 20? Is there an epidemic if is 4? Here is a typical session to plot an SIR disease model trajectory for S = 5SI, I = 5SI 25I, S(0) = 10, I (0) = 5. T = 2. 0 ; h =. 0 0 5 ; N = c e i l (T/h ) ; x0 = [ 1 0 ; 5 ] ; [ ht, r k ] = FixedRK ( f, 0, x0, h, 4,N) ; X = r k ( 1, : ) ; Y = r k ( 2, : ) ; xmin = min (X) ; xmax = max (X) ; xtop = max ( abs ( xmin ), abs ( xmax ) ) ; ymin = min (Y) ; ymax = max (Y) ; ytop = max ( abs ( ymin ), abs ( ymax ) ) ; D = max ( xtop, y t o p ) x = l i n s p a c e (0,D,1 0 1 ) ; GoverR = 2 5 / 5 ; c l f h o l d on p l o t ( [ GoverR GoverR ], [ 0 D] ) ; p l o t (X, Y, k ) ; x l a b e l ( S a x i s ) ; y l a b e l ( I a x i s ) ; t i t l e ( Phase Plane for Disease Model S = 5 S I, I = 5 S I + 25 I, S (0) = 10, I ( 0 ) = 5 : E p i d e m i c! ) ; l e g e n d ( S = 2 5 / 5, S v s I, L o c a t i o n, Best ) ;

The resulting graph is shown here. Homework 79 For the following disease models, do the single plot corresponding to the an initial condition that gives an epidemic and also draw a phase plane plot using AutoPhasePlanePlot. 79.1 For the specific model 79.2 For the specific model S (t) = 150 S(t) I (t) I (t) = 150 S(t) I (t) 50 I (t) S(0) = S0, I (0) = I0 S (t) = 5 S(t) I (t) I (t) = 5 S(t) I (t) 25 I (t) S(0) = S0, I (0) = I0