contestada

Programming Preamble: Matlab: You need to be able to enter column vectors and matrices. Matlab: You need to be able to multiply a matrix by a vector. Matlab: You need to be able to draw lines on the same figure. Matlab: help plot gives you all the information you need to make your plots look good - labelling the axes, putting on a title etc. Matlab: You could use a for loop (see Matlab documentation) to repeatedly multiply your day 1 vector by your transition matrix for a specified number of times and adjust the number of times you do the multiplication until you get good results. Matlab: You could use a while loop (see Matlab documentation) to continue to multiply your day 1 vector by your transition matrix until your output vector contains numbers that indicate that the epidemic has concluded. Epidemic Dynamics This assignment is designed to show you a basic and common model (discrete SEIR) used to model an epidemic - a very timely topic! Please read pages 168 and 169 of the secondary textbook (Boyd and Vandenberghe, available as a .pdf from Canvas). 1. Assume the following day 1 distribution in the population: 85% of the population is suscep- tible to infection, 10% of the population is infected, 4% of the population is immune, and 1% of the population is dead. 2. Then assume the following disease progression. Each day the following will happen: • 4% of the susceptible population will acquire the disease. • 2% of the infected population will die of the disease. • 15% of the infected population will recover AND acquire immunity. • 3% of the infected population will recover AND NOT acquire immunity. • 80% of the infected population will remain infected.

Q&A Education