Hands-on Modelling SIR Behaviours
In this step you will use the interactive computer program to model the behaviour of the SIR curves for different sizes of population, different infection rates and recovery rates and the value of R0.
In the first presentation of the course the program has worked for most people. The program can be used with most touch screen devices including phones and iPads, but let us know if you have a problem. Even if you can’t use the program read on to the end because some interesting findings emerge.
The blue curve is the number of people in the population who are Susceptible to catching the virus, i.e. those who have not had it and have no immunity.
The red curve is the number of people who are currently Infected by the virus.
The green curve is the number of people who have Recovered from the virus.
Let these number be represented by the symbols \(S\), \(I\) and \(R\). Let \(N\) be the number of people in the population,. Then as you saw last week\[\; \; \; \; \; \; \; \; \; \; \; \; \; \; \; N \; = \; S \; + \; I \; + \; R\]
The SIR program should open in a new window similar to that above. The program is very easy to use. You can change the values using the control bar which is shown below.
All but one of these boxes have arrow heads < and > to the left and right. You click on the < arrowhead or the left part of the box to make the number decrease. You click on the > arrowhead or the right part of the box to make the number increase.
It’s interesting to change the numbers by trial and error, but for the moment consider the questions in the following exercises.
Don’t spend too long on these exercises unless you have a lot of time. Five or ten minutes should be enough to get a feel for what the model does
Modelling Exercise 1: Population size
- what happens when the population is increased from 1,000 to 1,000,000 people?
Go to the program now and click on the right of the population box to observe what happens as the population increases from 1,000 to 10,000 to 100,000 to a million. Make a note of what you observe for the discussion below.
Modelling Exercise 2: Numbers of infected people at the beginning
A virus can enter a country in different ways. A single traveller can begin an epidemic in a country, or many individual travellers may seed the epidemic in different places. It is possible that an aeroplane to Italy with travellers from Wuhan started the severe epidemic experienced in Lombardy. The next question is:
- does the number of people starting an epidemic affect the speed of spreading?
Try different combinations of population and initially infected people to see what happens.
Modelling Exercise 3: Vaccination
The SIR model gives a very good way of understanding the impact of vaccination. Vaccination reduces the number of people in the population who are susceptible, making the blue curve start lower down. This can have a big impact on the spread of epidemics.
- approximately what percentage of the population has to be vaccinated to create herd immunity?
Experiment with different population sizes and vaccination rates.
Discussion of the first modelling exercises
If you were able to run the program you will have seen
as the population size increases it takes longer for an epidemic to peak.
as the number of people initiating an epidemic increases, the peak is reached sooner.
in my experiments it required about 65% of the population to be vaccinated to prevent an epidemic - but lower rates of vaccination had a significant effect.
Close the simulation window when you have finished. Any changes you have made will not be saved.
If you were not able to run the program on a laptop or PC, or had any other problems, let us know saying which browser, version, operating system etc. you used and any other information that might help us understand why.
In the next step we’ll dig a bit deeper into the computer model and find out what those mysterious beta and gamma boxes are used for and their relationship with _R0.
What do you think
Was this the first time you have used a computer model like this? Or are you an old hand? Do you think the results are valid - at least qualitatively? Did you spend longer on this than you expected? Let us know what you think so we make such exercises as engaging and interesting as possible for future members of the course.
© The UNESCO UniTwin CS-DC and The Open University