this video is going to be an introduction to si are models for the spread of disease which probably a lot of people are making videos about right now but here's mine so we've all probably been seeing graphs that look like this and when we hear about flatten the curve this is the curve we're talking about here this guy what we're looking at is the susceptible people in a population over time which is falling we have the number of people who recover which fortunately goes up over time and the thing we want to flatten is the
number of people who are infected at any given time which is represented by this green curve and we have a peak here which we'd like to be smaller so how does this model work where these graphs coming from what is the history behind this well what we're looking at here is the simplest si R model the first one which was developed by karmak and Mackendrick in scotland in 1927 they have a paper called a contribution to the mathematical theory of epidemics I'll put a link in the description if you want to look at the original
paper so how does this model work it assumes that we can divide our population into three parts the susceptible the infected and the recovered so s this bucket represents people who are at risk of getting the illness I is the fraction of people that are infected and R is the fraction of the population that's recovered so what are the assumptions beyond this in this model it's always important to list what your assumptions are in a model we're going to assume that there are no births for what we're doing here so the population size stays fixed
we're not adding to the s bin there there's also no emigration we don't have population growth by any means recovery gives total immunity so once you recover from whatever this illness is you no longer are susceptible to this this depends on how much of virus mutates some other factors but we're going to assume for simplicity that once you recover you can't get it again there's a fixed infection rate per day so how many people does an infected person come into contact with per day and there's a fixed recovery time maybe it takes two weeks to
recover from this illness that we're modeling and people are well mixed so this is maybe a more esoteric assumption but assume people behave similarly throughout the region that's affected so we can actually characterize number of contacts per day and the amount of time to recover these things are uniform throughout the region and that's affected so one way that you can imagine these bins being related is imagine that the s bin is full of some liquid maybe some paint and it is mounted above the AI bin but not only mounted above also tied to the AI
bin so that when the AI bin gets some paint spilled into it the AI bin becomes heavier and that pulls on this string which tips the s bin further so the heavier the AI bin is the faster the s bin will empty but also the S bins emptying depends on how much is already in the s bin so it depends on both how much paint has built already and how much paint is left to spill so how could we model that with an equation the rate of change of s versus time that's what this derivative
notation means the change in s over the change in time is going to be a decrease we're getting fewer susceptible people as they become infected that depends both on how many people are available to become infected and how many people are already infected so this paint bucket model is a nice metaphor I like the physical demonstration there are the units of this beta constant well that is the number of contacts per infected person per day let's take a look at how that works so suppose I'm an infected person I go about my day and I
come into contact with people and the number of contacts per day for me is 3 so these three random people also become infected why does it matter how many people are in the red population the susceptible population well let's see let's suppose that these individuals over here are already immune maybe because of a vaccine or maybe because of genetics or maybe because they've already had the illness and recovered so why would that mean that I infect fewer people i infected those three random people we can compared with before that one of those people who used
to get infected doesn't get infected anymore because they're in the protected population here so these two would still get sick but this person is protected so that is why the rate of infection the rate at which we deplete the susceptible population is proportional to the number of people who are already in the susceptible population it's probably more obvious why the rate at which we deplete healthy individuals susceptible individuals is proportional to the infected people let's see what happens if we have more infected people they each have a contact of 3 it might luck out that
some of them contacted the same people only but if they each contacted 3 different people now we've got 9 of our original 10 infected so this is a pretty good story for how we deplete the susceptible population it depends both on s and I but how do we know how quickly we're filling up the infected bucket well this buckets lost the red buckets loss is the green buckets gain so I know however quickly I'm pouring out of the top bucket that's how quickly I'm filling up the Middl bucket so the middle buckets rate of change
is not negative but positive because it's filling up and it is just the same amount now things would be unfortunate if this was the end of the story but a fortunate thing about most illnesses is that you recover from them so we drill a hole in the middle bucket and it can drain out now the rate of change has both additions and subtractions in this bucket so we add another term to our equation beta si minus gamma I remember beta was the number of contacts per infected person per day and gamma is going to be
1 over the amount of time it takes to recover so this is the rate of recovery if the illness takes 20 days to recover then gamma would be 120th so we're filling up the bottom bucket how quickly are we filling it up well I know that any gain in this bucket is the middle buckets loss so my rate of change of the recovered population has to be just the opposite of the rate at which I drain the infected bucket so the Arditi the rate of change of R with respect to time rate of change of
recovered people with respect to time is just the rate at which we fill this bucket which could depend on how big this hole is or maybe how good your medical treatment is or maybe how healthy you were before you were infected so this is our model we have the three equations and let's see how they relate to these two constants remember beta was the contacts per infected person per day gamma was the recoveries per person per day you could figure that way if it's a if it took 20 days to recover you could imagine that
you were recovering a twentieth of the way each day of that time period so if that's recoveries per person per day then one over this number will be the days to recover now if we assume that you're moving about still when you're infectious when you're contagious then the number of contacts per day times the days to recover would be the number of contacts you have while you're infectious so we can take that ratio beta over gamma or beta times 1 over gamma and that's the contacts per infection this is the most important number a lot
of people would argue in epidemiology that we call R naught or R 0 if this number the ratio of beta and gamma in our model is greater than 1 then the infection is going to spread through a population and if it's less than 1 then it won't it'll it'll spread some but it won't have exponential growth it'll it'll decrease and die out over time so the really important thing for us behavior wise is to get this number as close to 1 as we can and ideally less than 1 but there's a difference between the numerator
and the denominator here people can't do a whole lot to change the amount of time it takes to recover from an infection we can do a whole lot to change the number of contacts we have per day and that's why social distancing is so important because there's not a lot you can do about the denominator but there's a lot you can do painful as it might be you can change your behavior and reduce the contacts per day which it's best to just assume that you're already infected and that will lead to the behaviors that make
the most sense in a future video we're going to see how do you actually solve these equations but let's look at how they relate to the graph just for a quick introduction we see that the rate of change of s is always negative these numbers are never negative numbers themselves and beta is a positive constant so with this negative sign here I see that susceptable is always decreasing similarly R is always increasing but the green population because it has two terms one that's positive and one that's negative we get this kind of growth followed by
a peak and a decay so the story told by these equations matches what happens when we solve the equations but solving them involves a few tricks as differential equations always do and that is a story for a future video