1 00:00:00,821 --> 00:00:01,680 In this video 2 00:00:01,680 --> 00:00:03,480 what I really want to do is 3 00:00:03,480 --> 00:00:05,460 to start giving you an intuition 4 00:00:05,460 --> 00:00:09,060 for how we go from a compartmental model, 5 00:00:09,060 --> 00:00:11,370 represented as boxes and arrows, 6 00:00:11,370 --> 00:00:13,560 to a mathematical description. 7 00:00:13,560 --> 00:00:15,210 And as a start we're gonna be thinking 8 00:00:15,210 --> 00:00:17,220 about discreet dynamical systems, 9 00:00:17,220 --> 00:00:18,660 meaning they're discreet both 10 00:00:18,660 --> 00:00:20,700 in terms of types 11 00:00:20,700 --> 00:00:22,560 of parts in the system. 12 00:00:22,560 --> 00:00:24,990 So in terms of a discrete number of boxes, 13 00:00:24,990 --> 00:00:26,793 but also discrete in time. 14 00:00:27,630 --> 00:00:31,050 So this week we're gonna look at mathematical description 15 00:00:31,050 --> 00:00:33,843 and also how to simulate these processes. 16 00:00:36,360 --> 00:00:38,520 To keep with the theme of the previous video, 17 00:00:38,520 --> 00:00:39,660 for now let's stay 18 00:00:39,660 --> 00:00:41,340 within the realm of disease model. 19 00:00:41,340 --> 00:00:43,173 We're gonna look at a simpler model. 20 00:00:45,090 --> 00:00:48,213 Which is called the SIS model. 21 00:00:51,360 --> 00:00:53,013 Meaning that unlike the SIR, 22 00:00:55,350 --> 00:00:56,770 here we're only gonna have 23 00:00:58,680 --> 00:00:59,883 two different boxes. 24 00:01:05,130 --> 00:01:08,160 And with flow of density of population 25 00:01:08,160 --> 00:01:09,090 that go both ways. 26 00:01:09,090 --> 00:01:11,790 So we're still gonna have our susceptible box 27 00:01:11,790 --> 00:01:14,100 for people not currently infectious, 28 00:01:14,100 --> 00:01:16,680 and our infectious box 29 00:01:16,680 --> 00:01:18,510 for people currently infectious. 30 00:01:18,510 --> 00:01:20,580 The key difference with the SIR is 31 00:01:20,580 --> 00:01:22,110 that the second arrow 32 00:01:22,110 --> 00:01:23,490 on the one at the bottom here, 33 00:01:23,490 --> 00:01:25,290 which corresponds to recovery, 34 00:01:25,290 --> 00:01:27,360 people leaving the infectious state, 35 00:01:27,360 --> 00:01:29,700 doesn't go to a new immune box 36 00:01:29,700 --> 00:01:32,190 but goes back to the susceptible population. 37 00:01:32,190 --> 00:01:35,490 So this could be something more like the common cold 38 00:01:35,490 --> 00:01:36,540 where when you recover 39 00:01:36,540 --> 00:01:38,850 you might not have long-lasting immunity 40 00:01:38,850 --> 00:01:41,310 and you could get infected again, 41 00:01:41,310 --> 00:01:42,930 sometimes just a week later. 42 00:01:42,930 --> 00:01:44,490 Right? 43 00:01:44,490 --> 00:01:45,750 So there are different ways 44 00:01:45,750 --> 00:01:47,910 that people would put weight 45 00:01:47,910 --> 00:01:49,863 or describe these arrows. 46 00:01:53,549 --> 00:01:55,080 We could look at each arrow 47 00:01:55,080 --> 00:01:56,400 in terms of the mechanism 48 00:01:56,400 --> 00:01:57,570 that's really taking place. 49 00:01:57,570 --> 00:02:00,120 So in terms of infection really is that we go 50 00:02:00,120 --> 00:02:03,030 from a pair SI of individual, 51 00:02:03,030 --> 00:02:04,200 so one susceptible, 52 00:02:04,200 --> 00:02:05,033 one infectious, 53 00:02:05,033 --> 00:02:07,143 to two infectious individual. 54 00:02:09,180 --> 00:02:13,113 And that might occur at some rate, beta for example. 55 00:02:14,940 --> 00:02:17,010 And in the case of recovery, 56 00:02:17,010 --> 00:02:20,250 then we simply go from one infectious individual 57 00:02:20,250 --> 00:02:21,570 to one susceptible. 58 00:02:21,570 --> 00:02:24,003 And that might occur at some rate, gamma. 59 00:02:25,590 --> 00:02:26,490 This is different 60 00:02:26,490 --> 00:02:28,200 from what I used last week. 61 00:02:28,200 --> 00:02:31,320 And in a minute I'll explain the difference. 62 00:02:31,320 --> 00:02:34,050 Really the key part here is that 63 00:02:34,050 --> 00:02:35,790 when we're gonna start reading papers 64 00:02:35,790 --> 00:02:37,740 that use compartmental models, 65 00:02:37,740 --> 00:02:39,780 there's no clear standard 66 00:02:39,780 --> 00:02:42,030 on how to represent these boxes and arrows. 67 00:02:42,030 --> 00:02:44,354 So you have to try and understand 68 00:02:44,354 --> 00:02:47,430 what the authors really mean 69 00:02:47,430 --> 00:02:49,023 by their representation. 70 00:02:51,780 --> 00:02:52,830 So let's imagine 71 00:02:52,830 --> 00:02:54,600 that we know some initial state 72 00:02:54,600 --> 00:02:55,433 of the system. 73 00:02:55,433 --> 00:02:56,266 Right? 74 00:02:56,266 --> 00:02:57,099 Like these models, 75 00:02:57,099 --> 00:02:58,383 they all have the same recipe. 76 00:02:59,580 --> 00:03:02,790 You define your compartments 77 00:03:02,790 --> 00:03:03,623 and arrows. 78 00:03:03,623 --> 00:03:05,940 Then you initialize them to some value. 79 00:03:05,940 --> 00:03:08,050 So let's say that we know 80 00:03:13,020 --> 00:03:15,810 the fraction of the population S of t, 81 00:03:15,810 --> 00:03:17,613 that is susceptible at time t. 82 00:03:18,450 --> 00:03:21,363 And I of t, meaning infectious at time t. 83 00:03:24,480 --> 00:03:25,410 And these could be, 84 00:03:25,410 --> 00:03:26,243 as I said, 85 00:03:26,243 --> 00:03:27,270 fraction of the population. 86 00:03:27,270 --> 00:03:29,250 So between 0 and 1 87 00:03:29,250 --> 00:03:31,750 or they could both be 88 00:03:35,520 --> 00:03:37,410 between 0 and N 89 00:03:37,410 --> 00:03:39,810 for a total population of N. 90 00:03:39,810 --> 00:03:42,000 So let's say that they are numbers 91 00:03:42,000 --> 00:03:44,553 of susceptible and infectious individuals. 92 00:03:46,350 --> 00:03:48,270 Then to get a dynamical system 93 00:03:48,270 --> 00:03:49,800 in discrete time. 94 00:03:49,800 --> 00:03:52,057 What we want to ask is, 95 00:03:52,057 --> 00:03:53,393 "If I go from time t 96 00:03:53,393 --> 00:03:54,960 to time t plus 1, 97 00:03:54,960 --> 00:03:57,507 how many susceptible individuals do I have?" 98 00:04:01,140 --> 00:04:02,850 Well I know who is susceptible 99 00:04:02,850 --> 00:04:03,753 at time t. 100 00:04:05,580 --> 00:04:08,070 And the ones that are still susceptible 101 00:04:08,070 --> 00:04:10,950 are those that have not been infected 102 00:04:10,950 --> 00:04:13,140 by any of their infectious contact. 103 00:04:13,140 --> 00:04:13,973 Right? 104 00:04:13,973 --> 00:04:16,500 So every single susceptible individual here, 105 00:04:16,500 --> 00:04:18,540 remember that there's no space 106 00:04:18,540 --> 00:04:20,130 in these compartmental models. 107 00:04:20,130 --> 00:04:22,200 So every susceptible individual is 108 00:04:22,200 --> 00:04:25,620 in contact with all I infectious individual. 109 00:04:25,620 --> 00:04:27,630 So if I have 100 infectious individual 110 00:04:27,630 --> 00:04:29,820 that's 100 infectious contact. 111 00:04:29,820 --> 00:04:32,940 And the only way for me to remain susceptible, 112 00:04:32,940 --> 00:04:36,420 is for all of those infectious contact 113 00:04:36,420 --> 00:04:38,850 to not transmit the disease. 114 00:04:38,850 --> 00:04:40,140 So if we call beta, 115 00:04:40,140 --> 00:04:44,760 the probability that an infectious individual transmit 116 00:04:44,760 --> 00:04:46,170 to a susceptible individual. 117 00:04:46,170 --> 00:04:47,910 The probability that they don't, 118 00:04:47,910 --> 00:04:49,530 is simply 1 minus beta. 119 00:04:49,530 --> 00:04:50,820 If there's a 10% chance 120 00:04:50,820 --> 00:04:51,653 that it transmit, 121 00:04:51,653 --> 00:04:53,763 there's a 90% chance that it doesn't. 122 00:04:54,840 --> 00:04:56,160 And to stay susceptible, 123 00:04:56,160 --> 00:04:57,690 I need all of them 124 00:04:57,690 --> 00:04:59,370 to not transmit the disease. 125 00:04:59,370 --> 00:05:00,870 So if I have two contacts, 126 00:05:00,870 --> 00:05:03,510 then that's 90% chance of not transmitting 127 00:05:03,510 --> 00:05:04,343 from the first one, 128 00:05:04,343 --> 00:05:06,120 90% chance from the second one. 129 00:05:06,120 --> 00:05:08,760 That's 90% times 90% 130 00:05:08,760 --> 00:05:10,500 of transmission from neither. 131 00:05:10,500 --> 00:05:12,600 And if I have a number 100, 132 00:05:12,600 --> 00:05:14,910 then that's 90% to the 100. 133 00:05:14,910 --> 00:05:16,260 So that's what I have here. 134 00:05:18,720 --> 00:05:20,853 And I also have a positive term. 135 00:05:22,050 --> 00:05:24,570 So one way to look at this is that 136 00:05:24,570 --> 00:05:26,080 when you have these arrows 137 00:05:27,960 --> 00:05:31,050 that flow from one box to the next, 138 00:05:31,050 --> 00:05:33,600 you should always have a negative term 139 00:05:33,600 --> 00:05:36,390 for the flow that leaves the box. 140 00:05:36,390 --> 00:05:37,980 So here there's a negative term 141 00:05:37,980 --> 00:05:40,443 for the people that don't remain susceptible. 142 00:05:41,490 --> 00:05:42,780 You should have a positive term 143 00:05:42,780 --> 00:05:44,280 when it enters the box. 144 00:05:44,280 --> 00:05:45,700 So I'm losing some 145 00:05:47,430 --> 00:05:48,900 through transmission here, 146 00:05:48,900 --> 00:05:51,450 corresponding to flow of water, 147 00:05:51,450 --> 00:05:52,283 or density, 148 00:05:52,283 --> 00:05:53,220 or number of people 149 00:05:53,220 --> 00:05:55,383 out of my susceptible box. 150 00:05:57,150 --> 00:06:01,920 And I'm gonna gain some here based on recovery. 151 00:06:01,920 --> 00:06:04,623 So if this is my infection term, 152 00:06:06,540 --> 00:06:08,680 I'm gonna have some recovery term 153 00:06:12,030 --> 00:06:13,990 which is gonna correspond to 154 00:06:17,340 --> 00:06:19,860 every infectious individual. 155 00:06:19,860 --> 00:06:23,160 And with what probability did they recover 156 00:06:23,160 --> 00:06:24,000 in one time step? 157 00:06:24,000 --> 00:06:25,440 It's simply gamma, right? 158 00:06:25,440 --> 00:06:26,790 So if they do recover, 159 00:06:26,790 --> 00:06:28,380 then they flow out of the I box 160 00:06:28,380 --> 00:06:29,733 and into the S box. 161 00:06:32,040 --> 00:06:33,870 And then we could write the same thing 162 00:06:33,870 --> 00:06:35,973 for I of t plus 1. 163 00:06:37,050 --> 00:06:38,034 But see here, 164 00:06:38,034 --> 00:06:39,630 I don't have any arrows 165 00:06:39,630 --> 00:06:41,520 out of my boxes leading 166 00:06:41,520 --> 00:06:43,170 to the outside world, right? 167 00:06:43,170 --> 00:06:45,000 I have a closed population. 168 00:06:45,000 --> 00:06:46,050 So I know 169 00:06:46,050 --> 00:06:47,610 that for all time, 170 00:06:47,610 --> 00:06:49,560 S plus I must always equal N. 171 00:06:49,560 --> 00:06:50,760 There's nowhere to hide. 172 00:06:50,760 --> 00:06:51,690 There's nowhere to go 173 00:06:51,690 --> 00:06:53,880 for these people except S and I. 174 00:06:53,880 --> 00:06:56,610 So I don't even have to write this other equation. 175 00:06:56,610 --> 00:06:57,443 I simply know 176 00:06:57,443 --> 00:07:00,120 that I at time t plus 1 177 00:07:00,120 --> 00:07:00,953 is gonna be equal 178 00:07:00,953 --> 00:07:02,400 to N minus S 179 00:07:02,400 --> 00:07:04,110 at time t plus 1. 180 00:07:04,110 --> 00:07:07,680 'Cause S and I always have to sum to 1. 181 00:07:07,680 --> 00:07:09,180 And that's another key insight here, 182 00:07:09,180 --> 00:07:12,090 is that even though we have two boxes 183 00:07:12,090 --> 00:07:13,080 that doesn't mean 184 00:07:13,080 --> 00:07:15,030 that we have two degrees of freedom 185 00:07:15,030 --> 00:07:16,590 or two important variables 186 00:07:16,590 --> 00:07:17,550 in our system. 187 00:07:17,550 --> 00:07:19,260 Because it's a closed population, 188 00:07:19,260 --> 00:07:20,880 we know there's a conservation 189 00:07:20,880 --> 00:07:21,903 of population, 190 00:07:23,760 --> 00:07:26,070 I plus S equals N. 191 00:07:26,070 --> 00:07:27,450 And that's a constraint 192 00:07:27,450 --> 00:07:29,790 that we can use to reduce the complexity 193 00:07:29,790 --> 00:07:30,753 of the model, 194 00:07:33,300 --> 00:07:34,770 and fix one variable 195 00:07:34,770 --> 00:07:36,810 as a function of the other. 196 00:07:36,810 --> 00:07:37,710 So in this case, 197 00:07:37,710 --> 00:07:38,700 we have one constraint, 198 00:07:38,700 --> 00:07:40,440 conservation of population. 199 00:07:40,440 --> 00:07:42,030 Two compartments. 200 00:07:42,030 --> 00:07:44,130 So we have two compartments minus one constraint, 201 00:07:44,130 --> 00:07:45,390 one degree of freedom. 202 00:07:45,390 --> 00:07:47,910 That's one way to think about this. 203 00:07:47,910 --> 00:07:51,633 So it's really a one dimensional system. 204 00:07:53,010 --> 00:07:54,600 The other thing I wanna talk about 205 00:07:54,600 --> 00:07:55,920 in this video 206 00:07:55,920 --> 00:07:58,470 before we discuss how to write this equation 207 00:07:58,470 --> 00:08:01,050 in greater detail during the discussion group, 208 00:08:01,050 --> 00:08:04,410 is the fact that we've made some approximations here. 209 00:08:04,410 --> 00:08:05,243 Right? 210 00:08:05,243 --> 00:08:06,420 I'm not... 211 00:08:06,420 --> 00:08:08,400 For example, 212 00:08:08,400 --> 00:08:09,933 in my recoveries, 213 00:08:13,290 --> 00:08:16,597 really you might have wanted to write, 214 00:08:16,597 --> 00:08:19,140 "Well what is the probability to get one recovery? 215 00:08:19,140 --> 00:08:19,973 Two recovery? 216 00:08:19,973 --> 00:08:20,806 Three recovery?" 217 00:08:20,806 --> 00:08:22,653 And list all possible cases. 218 00:08:23,760 --> 00:08:24,600 Here really, 219 00:08:24,600 --> 00:08:26,890 this is just gonna be the average number 220 00:08:28,837 --> 00:08:29,670 of recoveries 221 00:08:29,670 --> 00:08:30,930 that you might expect. 222 00:08:30,930 --> 00:08:33,010 Let me make that a little clearer 223 00:08:34,740 --> 00:08:35,760 for you all. 224 00:08:35,760 --> 00:08:37,293 I'm gonna create a new page. 225 00:08:41,850 --> 00:08:43,830 So I have this SIS model. 226 00:08:43,830 --> 00:08:47,130 And let's say that we have a very simple population 227 00:08:47,130 --> 00:08:48,210 N equal 2, 228 00:08:48,210 --> 00:08:49,140 right. 229 00:08:49,140 --> 00:08:50,340 Only two people. 230 00:08:50,340 --> 00:08:52,490 It's not gonna be a very interesting model. 231 00:08:53,790 --> 00:08:54,810 Well, 232 00:08:54,810 --> 00:08:55,680 I of t 233 00:08:55,680 --> 00:08:57,670 in any discrete simulation 234 00:08:59,010 --> 00:09:00,160 could only take 235 00:09:01,500 --> 00:09:02,850 one of three values. 236 00:09:02,850 --> 00:09:04,980 There's either no one infectious, 237 00:09:04,980 --> 00:09:06,240 one person infectious, 238 00:09:06,240 --> 00:09:07,893 or two people infectious. 239 00:09:10,590 --> 00:09:11,850 Really, 240 00:09:11,850 --> 00:09:13,980 in the mathematical description, 241 00:09:13,980 --> 00:09:16,020 it's gonna be able to go freely 242 00:09:16,020 --> 00:09:17,680 between 0 and 2 243 00:09:18,990 --> 00:09:20,250 because we're not limiting, 244 00:09:20,250 --> 00:09:21,420 in those previous equations, 245 00:09:21,420 --> 00:09:22,920 we're not limiting the transition 246 00:09:22,920 --> 00:09:24,240 to discrete values. 247 00:09:24,240 --> 00:09:27,000 So you can have 1.5 infectious individual. 248 00:09:27,000 --> 00:09:28,680 And what would that mean, right? 249 00:09:28,680 --> 00:09:31,653 What does it mean if here I have S of t, 250 00:09:33,180 --> 00:09:34,440 a number of susceptible 251 00:09:34,440 --> 00:09:35,370 that might be discrete, 252 00:09:35,370 --> 00:09:37,770 let's say by chance is equal to 50, 253 00:09:37,770 --> 00:09:38,820 but I increase it 254 00:09:38,820 --> 00:09:40,260 with these recovery events 255 00:09:40,260 --> 00:09:42,840 by 1.5, right? 256 00:09:42,840 --> 00:09:46,260 So now I'm saying that there's a fractional number 257 00:09:46,260 --> 00:09:47,460 of infectious individual. 258 00:09:47,460 --> 00:09:48,460 What does that mean? 259 00:09:49,530 --> 00:09:50,830 Well consider it this way, 260 00:09:51,900 --> 00:09:53,643 let's just focus on recoveries. 261 00:09:57,720 --> 00:10:01,140 And if I of t is equal to 0, 262 00:10:01,140 --> 00:10:01,973 well the only thing 263 00:10:01,973 --> 00:10:04,290 that can happen is nothing. 264 00:10:04,290 --> 00:10:05,640 I can't have any recovery 265 00:10:05,640 --> 00:10:07,593 if I don't have infectious individual. 266 00:10:09,300 --> 00:10:12,810 If I of t is equal to 1, 267 00:10:12,810 --> 00:10:14,550 well now I can get 0 recovery 268 00:10:14,550 --> 00:10:15,990 or 1 recovery. 269 00:10:15,990 --> 00:10:16,823 Right? 270 00:10:18,330 --> 00:10:19,170 This is gonna occur 271 00:10:19,170 --> 00:10:20,710 with probability 272 00:10:23,070 --> 00:10:24,450 1 minus gamma. 273 00:10:24,450 --> 00:10:26,640 'Cause gamma is my recovery probability 274 00:10:26,640 --> 00:10:27,663 per time step. 275 00:10:29,010 --> 00:10:29,880 And this is gonna be 276 00:10:29,880 --> 00:10:31,620 with probability gamma. 277 00:10:31,620 --> 00:10:33,020 I'm gonna have one recovery. 278 00:10:37,170 --> 00:10:39,270 If I of t is equal to 2, 279 00:10:39,270 --> 00:10:41,500 well now have three possible cases 280 00:10:43,440 --> 00:10:45,303 with probability, 281 00:10:47,160 --> 00:10:48,930 1 minus gamma squared, 282 00:10:48,930 --> 00:10:51,060 I'll have no recovery at all. 283 00:10:51,060 --> 00:10:53,640 So if both infectious individuals are unlucky 284 00:10:53,640 --> 00:10:55,650 and they both choose to not recover 285 00:10:55,650 --> 00:10:58,893 or the system chooses to not have them recover, 286 00:11:01,260 --> 00:11:02,403 I'll have no recovery. 287 00:11:10,950 --> 00:11:12,490 And with probability 288 00:11:13,590 --> 00:11:14,910 2 gamma, 289 00:11:14,910 --> 00:11:16,680 1 minus gamma. 290 00:11:16,680 --> 00:11:18,710 So this 2 is... 291 00:11:19,650 --> 00:11:21,090 No N choose K 292 00:11:21,090 --> 00:11:23,611 where it's 2 choose 1. 293 00:11:23,611 --> 00:11:24,600 (instructor laughs) 294 00:11:24,600 --> 00:11:25,800 So there are two ways 295 00:11:25,800 --> 00:11:27,870 to get only one recovery. 296 00:11:27,870 --> 00:11:28,950 And in both cases, 297 00:11:28,950 --> 00:11:31,110 I need one of the sick individual 298 00:11:31,110 --> 00:11:32,130 to not recover 299 00:11:32,130 --> 00:11:34,110 which is with probably 1 minus gamma, 300 00:11:34,110 --> 00:11:35,130 and the other to recover 301 00:11:35,130 --> 00:11:36,030 with probability gamma. 302 00:11:36,030 --> 00:11:37,470 So I have two ways 303 00:11:37,470 --> 00:11:38,340 with probability gamma, 304 00:11:38,340 --> 00:11:39,173 1 minus gamma, 305 00:11:39,173 --> 00:11:40,863 each to have one recovery. 306 00:11:43,050 --> 00:11:44,550 And I'll get two recoveries 307 00:11:44,550 --> 00:11:46,650 with probability gamma squared. 308 00:11:46,650 --> 00:11:47,820 Well, that's pretty simple. 309 00:11:47,820 --> 00:11:48,653 The reason I'm going 310 00:11:48,653 --> 00:11:50,400 through this right now is 311 00:11:50,400 --> 00:11:53,640 that I wanna highlight one thing, 312 00:11:53,640 --> 00:11:56,223 which is the average of all these cases. 313 00:11:59,040 --> 00:12:00,840 And throughout this course 314 00:12:00,840 --> 00:12:02,670 when we think about averages, 315 00:12:02,670 --> 00:12:04,770 I know we all see it differently depending 316 00:12:04,770 --> 00:12:05,603 on our background. 317 00:12:05,603 --> 00:12:06,510 So I just wanna highlight 318 00:12:06,510 --> 00:12:09,300 that an average is always the sum. 319 00:12:09,300 --> 00:12:10,173 And by the way, 320 00:12:12,060 --> 00:12:14,250 this capital sigma simply means sum. 321 00:12:14,250 --> 00:12:16,710 So you're going over all possible outcomes 322 00:12:16,710 --> 00:12:17,850 in this case. 323 00:12:17,850 --> 00:12:19,780 And you're summing a quantity 324 00:12:21,330 --> 00:12:23,103 times a probability. 325 00:12:24,960 --> 00:12:27,270 And that's how you calculate the average of that quantity 326 00:12:27,270 --> 00:12:30,123 over a probability distribution for it. 327 00:12:31,980 --> 00:12:34,350 So here's how these averages work out, right? 328 00:12:34,350 --> 00:12:36,360 So in the first case, 329 00:12:36,360 --> 00:12:38,520 the average is simply gonna be 0. 330 00:12:38,520 --> 00:12:40,170 Here. 331 00:12:40,170 --> 00:12:41,790 Because my quantity is 0 332 00:12:41,790 --> 00:12:43,200 with probability 1. 333 00:12:43,200 --> 00:12:45,000 So that's not super interesting. 334 00:12:45,000 --> 00:12:45,903 Let's look at this other case. 335 00:12:45,903 --> 00:12:47,790 I of t equals 1. 336 00:12:47,790 --> 00:12:50,643 Well with probability 1 minus gamma, 337 00:12:52,500 --> 00:12:53,720 I have a quantity 0 338 00:12:53,720 --> 00:12:55,110 of recovery. 339 00:12:55,110 --> 00:12:57,273 And with probability gamma, 340 00:12:58,680 --> 00:13:02,040 I have quantity 1 of recovery. 341 00:13:02,040 --> 00:13:04,503 So that's an average of gamma. 342 00:13:06,480 --> 00:13:07,313 Okay? 343 00:13:08,400 --> 00:13:09,750 But that's gonna be fractional. 344 00:13:09,750 --> 00:13:10,583 Right. 345 00:13:10,583 --> 00:13:11,416 In the second case 346 00:13:11,416 --> 00:13:13,620 with I of t equal to 2, 347 00:13:13,620 --> 00:13:15,090 I'm gonna get again, 348 00:13:15,090 --> 00:13:16,830 1 minus gamma squared 349 00:13:16,830 --> 00:13:17,850 this terms disappear 350 00:13:17,850 --> 00:13:19,533 'cause it's a quantity 0, 351 00:13:20,730 --> 00:13:22,410 plus 2 gamma, 352 00:13:22,410 --> 00:13:25,320 1 minus gamma times 1. 353 00:13:25,320 --> 00:13:26,340 So that's the probability 354 00:13:26,340 --> 00:13:27,960 of having one recovery 355 00:13:27,960 --> 00:13:30,000 plus 2 gamma squared. 356 00:13:30,000 --> 00:13:32,280 Then you can work out the math. 357 00:13:32,280 --> 00:13:33,113 Right. 358 00:13:35,457 --> 00:13:36,600 And this term here 359 00:13:36,600 --> 00:13:38,370 that I'm highlighting 360 00:13:38,370 --> 00:13:41,040 you're gonna get 2 gamma minus 2 gamma squared. 361 00:13:41,040 --> 00:13:43,840 So the gamma squared term are actually gonna cancel out. 362 00:13:46,590 --> 00:13:47,760 And what you're gonna be left 363 00:13:47,760 --> 00:13:51,003 is simply this 2 gamma quantity. 364 00:13:52,800 --> 00:13:54,390 So this is simply this average 365 00:13:54,390 --> 00:13:55,590 that we had before. 366 00:13:55,590 --> 00:13:56,423 Right? 367 00:13:56,423 --> 00:13:58,470 No matter how many infectious individuals, 368 00:13:58,470 --> 00:14:00,660 no matter matter how many cases I go through, 369 00:14:00,660 --> 00:14:02,400 this term is always simply going 370 00:14:02,400 --> 00:14:04,773 to be gamma times I of t. 371 00:14:05,893 --> 00:14:07,320 So what we're doing here 372 00:14:07,320 --> 00:14:09,780 with this approximation is following the average 373 00:14:09,780 --> 00:14:11,340 of all possible future 374 00:14:11,340 --> 00:14:13,080 for this system. 375 00:14:13,080 --> 00:14:15,780 And often the reason why I'm describing this is 376 00:14:15,780 --> 00:14:17,220 that I just wanna highlight 377 00:14:17,220 --> 00:14:18,610 that this approximation 378 00:14:20,520 --> 00:14:23,560 along with others that we're gonna see 379 00:14:27,795 --> 00:14:29,040 are often called, 380 00:14:29,040 --> 00:14:30,760 mean-field 381 00:14:34,110 --> 00:14:35,613 approximations. 382 00:14:40,170 --> 00:14:41,545 And what this means is that 383 00:14:41,545 --> 00:14:42,378 I of t 384 00:14:42,378 --> 00:14:43,211 and S of t, 385 00:14:43,211 --> 00:14:45,330 now describe the average state 386 00:14:45,330 --> 00:14:47,100 of all possible future. 387 00:14:47,100 --> 00:14:49,140 So the average future of a system. 388 00:14:49,140 --> 00:14:50,040 So one way to look 389 00:14:50,040 --> 00:14:50,940 at this is that now, 390 00:14:50,940 --> 00:14:52,620 whenever you're writing these equations 391 00:14:52,620 --> 00:14:54,060 and you're considering, you know, 392 00:14:54,060 --> 00:14:56,670 one susceptible individual in the system, 393 00:14:56,670 --> 00:14:59,610 that individual is not actually connected 394 00:14:59,610 --> 00:15:02,493 to I of t individuals here. 395 00:15:03,390 --> 00:15:06,090 But connected to the average 396 00:15:06,090 --> 00:15:07,510 or mean-field 397 00:15:08,460 --> 00:15:11,640 of all possible states for that future. 398 00:15:11,640 --> 00:15:13,590 And that's kind of a fuzzy thing 399 00:15:13,590 --> 00:15:15,300 but really instead of thinking of it 400 00:15:15,300 --> 00:15:18,750 as one susceptible individual connected 401 00:15:18,750 --> 00:15:21,120 to some number of infectious individuals, 402 00:15:21,120 --> 00:15:22,713 which is gonna be discreet. 403 00:15:24,810 --> 00:15:28,260 What we have with a mean-field approximation 404 00:15:28,260 --> 00:15:31,740 is one susceptible individual connected 405 00:15:31,740 --> 00:15:33,060 to some weird, 406 00:15:33,060 --> 00:15:34,560 I'm trying to draw a field here, 407 00:15:34,560 --> 00:15:36,120 some cloud, right? 408 00:15:36,120 --> 00:15:38,943 So some diffused description of the system. 409 00:15:39,834 --> 00:15:41,943 That's one way to think about this. 410 00:15:42,900 --> 00:15:44,160 But really what it means is 411 00:15:44,160 --> 00:15:46,770 that we're only following the average state 412 00:15:46,770 --> 00:15:47,910 of the system. 413 00:15:47,910 --> 00:15:49,170 So that's what we often mean 414 00:15:49,170 --> 00:15:51,300 by these mean-field approximations. 415 00:15:51,300 --> 00:15:53,070 But that's as simple as this. 416 00:15:53,070 --> 00:15:54,660 So these equations would be enough 417 00:15:54,660 --> 00:15:56,340 to write a little code 418 00:15:56,340 --> 00:15:58,293 that would iterate these equations. 419 00:15:59,580 --> 00:16:00,810 The readings for the textbook 420 00:16:00,810 --> 00:16:02,250 for this week go through 421 00:16:02,250 --> 00:16:05,250 how to analyze discrete dynamical systems like this, 422 00:16:05,250 --> 00:16:06,083 instead. 423 00:16:06,083 --> 00:16:07,620 And the next few videos, 424 00:16:07,620 --> 00:16:10,080 what I wanna focus on is how 425 00:16:10,080 --> 00:16:13,490 to simulate discrete computational version 426 00:16:13,490 --> 00:16:14,850 of this model. 427 00:16:14,850 --> 00:16:17,250 And eventually how to go from there 428 00:16:17,250 --> 00:16:20,040 to continuous dynamical system. 429 00:16:20,040 --> 00:16:21,640 So I'll see you in the next one.