1 00:00:00,690 --> 00:00:01,523 Welcome back. 2 00:00:01,523 --> 00:00:03,480 So this video is meant to provide you 3 00:00:03,480 --> 00:00:05,100 with two simple examples of how 4 00:00:05,100 --> 00:00:08,073 to use the modeling recipe that we just saw. 5 00:00:09,120 --> 00:00:10,560 Of course, as I build a model, 6 00:00:10,560 --> 00:00:14,100 I need to use certain modeling tools. 7 00:00:14,100 --> 00:00:17,710 So I'll focus this video on our first type of models 8 00:00:18,750 --> 00:00:22,950 which are called compartmental models, 9 00:00:22,950 --> 00:00:26,220 so examples of compartmental models. 10 00:00:26,220 --> 00:00:30,330 And this goes back to video two on the modeling recipe. 11 00:00:30,330 --> 00:00:31,980 So the second video for this week 12 00:00:35,010 --> 00:00:40,010 where I gave the example that when we look at a system, 13 00:00:42,090 --> 00:00:44,010 and we wanna decide which are our parts 14 00:00:44,010 --> 00:00:46,380 and what distinguishes them, it's sort of like trying 15 00:00:46,380 --> 00:00:48,930 to tidy up a room where you wanna put items 16 00:00:48,930 --> 00:00:51,300 in boxes that makes them easy to find in the future. 17 00:00:51,300 --> 00:00:53,940 So you want, you know, all the toys to be with the toys, 18 00:00:53,940 --> 00:00:55,640 all the books to be with the books 19 00:00:56,910 --> 00:00:59,340 and compartmental models are really just 20 00:00:59,340 --> 00:01:00,750 a formalization of this idea. 21 00:01:00,750 --> 00:01:04,350 So compartments are different boxes. 22 00:01:04,350 --> 00:01:05,940 And then we wanna put different parts 23 00:01:05,940 --> 00:01:07,050 of our system in there. 24 00:01:07,050 --> 00:01:09,510 So the way these examples 25 00:01:09,510 --> 00:01:12,480 are gonna look is always the same. 26 00:01:12,480 --> 00:01:14,400 We're gonna literally draw boxes 27 00:01:14,400 --> 00:01:16,110 and then draw the interactions 28 00:01:16,110 --> 00:01:19,293 between the parts as arrows between the boxes. 29 00:01:21,360 --> 00:01:24,270 So let me just formalize this a little bit. 30 00:01:24,270 --> 00:01:25,990 So compartments 31 00:01:30,870 --> 00:01:33,430 will be boxes 32 00:01:35,190 --> 00:01:36,610 where the assumption 33 00:01:39,270 --> 00:01:41,523 of a homogeneous behavior hold. 34 00:01:44,850 --> 00:01:47,613 So anytime you hear about compartmental model, 35 00:01:48,600 --> 00:01:52,000 that homogeneous behavior is assumed 36 00:01:57,660 --> 00:01:59,343 within a given compartment. 37 00:02:01,140 --> 00:02:03,600 So every part, every element that we're gonna put 38 00:02:03,600 --> 00:02:05,670 in the same compartment are assumed 39 00:02:05,670 --> 00:02:07,353 to behave in the exact same way. 40 00:02:08,220 --> 00:02:10,170 And different compartments then are just meant 41 00:02:10,170 --> 00:02:12,720 to formalize this intuition 42 00:02:12,720 --> 00:02:15,723 of heterogeneous behaviors in the system. 43 00:02:17,940 --> 00:02:20,673 And then everything else, the model itself, 44 00:02:21,600 --> 00:02:22,960 or the mechanism 45 00:02:27,030 --> 00:02:29,410 will simply be arrows 46 00:02:34,050 --> 00:02:37,473 that define flows of the parts. 47 00:02:39,420 --> 00:02:42,750 So all of the interactions will be arrows 48 00:02:42,750 --> 00:02:44,460 that tell you how elements flow 49 00:02:44,460 --> 00:02:46,150 from one box to another 50 00:02:49,410 --> 00:02:50,760 as their behavior change 51 00:02:50,760 --> 00:02:53,070 or their state changes, something like that. 52 00:02:53,070 --> 00:02:54,190 So it's boxes 53 00:02:57,030 --> 00:02:57,870 and arrows. 54 00:02:57,870 --> 00:03:01,560 That's really all this first tool is gonna be. 55 00:03:01,560 --> 00:03:05,220 So first, our first example will be something really, 56 00:03:05,220 --> 00:03:09,903 really simple, people walking in and out of a building. 57 00:03:12,300 --> 00:03:15,750 This could also be to be more historically accurate, 58 00:03:15,750 --> 00:03:19,750 could also be a drug compound 59 00:03:23,790 --> 00:03:27,480 injected in an organ. 60 00:03:27,480 --> 00:03:31,260 I'm saying this because a lot of the theory 61 00:03:31,260 --> 00:03:33,990 and the process of compartmental modeling 62 00:03:33,990 --> 00:03:36,270 was invented as part of pharmacokinetics. 63 00:03:36,270 --> 00:03:40,710 So this study of how drug compounds or molecules 64 00:03:40,710 --> 00:03:44,520 can be injected into an organ, diffuse around the body. 65 00:03:44,520 --> 00:03:46,980 So then the different boxes would be different organs 66 00:03:46,980 --> 00:03:48,690 and flows between them 67 00:03:48,690 --> 00:03:52,083 would be obviously different bloodstreams. 68 00:03:53,070 --> 00:03:55,203 This is very similar actually here. 69 00:03:58,860 --> 00:03:59,910 Let's stick with the example 70 00:03:59,910 --> 00:04:02,970 of people walking in and out of a building. 71 00:04:02,970 --> 00:04:05,340 But really, everything that we're gonna do here, 72 00:04:05,340 --> 00:04:06,870 could be applied to drug compounds. 73 00:04:06,870 --> 00:04:08,940 And I'll try and keep the analogy going 74 00:04:08,940 --> 00:04:11,013 throughout this, but just for now. 75 00:04:13,020 --> 00:04:16,560 So all we care about really is this. 76 00:04:16,560 --> 00:04:21,123 So we have this human population, that's our whole. 77 00:04:25,650 --> 00:04:28,110 The only space we care about 78 00:04:28,110 --> 00:04:30,453 is sort of binary here which is rare. 79 00:04:31,320 --> 00:04:32,850 All we care about is whether people are 80 00:04:32,850 --> 00:04:37,173 in this building of interest or not really, so in or out. 81 00:04:39,960 --> 00:04:41,670 That's all we care about. 82 00:04:41,670 --> 00:04:46,670 And time seems like it's left for us to decide, 83 00:04:47,370 --> 00:04:49,173 so it could obviously be discrete. 84 00:04:50,010 --> 00:04:53,010 So maybe if we have data about how many people entered 85 00:04:53,010 --> 00:04:54,750 the building every hour, 86 00:04:54,750 --> 00:04:58,500 we could use hour increments for time. 87 00:04:58,500 --> 00:05:01,200 It could be discrete, or it could be continuous 88 00:05:01,200 --> 00:05:02,370 if we know sort of the rate 89 00:05:02,370 --> 00:05:04,860 at which people enter and leave. 90 00:05:04,860 --> 00:05:06,710 It doesn't matter too much apparently 91 00:05:08,790 --> 00:05:10,480 Parts will be people 92 00:05:14,460 --> 00:05:15,610 distinguished 93 00:05:18,120 --> 00:05:19,470 by whether they're 94 00:05:19,470 --> 00:05:21,813 in or out of that building. 95 00:05:24,960 --> 00:05:26,733 In or out. 96 00:05:29,370 --> 00:05:32,100 And then interactions between the part, 97 00:05:32,100 --> 00:05:34,473 I'll just leave that unknown for now. 98 00:05:42,750 --> 00:05:47,340 Okay, so then, the idea behind compartmental modeling 99 00:05:47,340 --> 00:05:51,120 is to represent this intuition in just a simple schematic. 100 00:05:51,120 --> 00:05:52,680 And we're gonna be doing this time 101 00:05:52,680 --> 00:05:54,663 and time again with different systems. 102 00:05:56,850 --> 00:05:59,880 So then, we're distinguishing our population 103 00:05:59,880 --> 00:06:00,960 and whether it's in or out. 104 00:06:00,960 --> 00:06:03,550 So there's actually two different conditions 105 00:06:04,560 --> 00:06:07,020 that we could implement here. 106 00:06:07,020 --> 00:06:09,750 And it depends on whether we want an open population 107 00:06:09,750 --> 00:06:13,020 or a closed population, which is a step in this definition 108 00:06:13,020 --> 00:06:15,170 of the whole that I just like skipped over. 109 00:06:16,470 --> 00:06:20,193 So with all that, assume, let me erase this here. 110 00:06:23,640 --> 00:06:26,370 And then the step that is here for how we're gonna draw this 111 00:06:26,370 --> 00:06:27,930 as a compartmental model is 112 00:06:27,930 --> 00:06:29,630 whether we're dealing with an open 113 00:06:31,080 --> 00:06:32,643 or a closed population. 114 00:06:34,530 --> 00:06:38,760 Okay. So what we said is that all that matters 115 00:06:38,760 --> 00:06:41,280 is whether people are in the building or not. 116 00:06:41,280 --> 00:06:42,600 So in the open population, 117 00:06:42,600 --> 00:06:44,670 essentially, we're only gonna model the building, 118 00:06:44,670 --> 00:06:47,460 and we're gonna say we don't know what's going on out there. 119 00:06:47,460 --> 00:06:49,050 It's a scary world. 120 00:06:49,050 --> 00:06:51,120 So we're gonna have flows of people coming in, 121 00:06:51,120 --> 00:06:52,770 but we don't know where they're coming from. 122 00:06:52,770 --> 00:06:55,380 Whereas the closed population is gonna have two boxes, 123 00:06:55,380 --> 00:06:57,690 two compartments for within the building 124 00:06:57,690 --> 00:07:00,030 and people outside of the building. 125 00:07:00,030 --> 00:07:01,710 And that's gonna be slightly different 126 00:07:01,710 --> 00:07:03,303 in terms of how we model that. 127 00:07:05,280 --> 00:07:07,950 So one single compartment, one single box here, 128 00:07:07,950 --> 00:07:10,440 usually I wouldn't label things explicitly, 129 00:07:10,440 --> 00:07:12,543 but this is people in the building. 130 00:07:14,580 --> 00:07:18,280 And then the way this behaves 131 00:07:19,890 --> 00:07:22,653 is simply that you have some people coming in, 132 00:07:23,730 --> 00:07:25,323 let's say, at rate alpha. 133 00:07:26,850 --> 00:07:29,760 Within this building, we're gonna have a population 134 00:07:29,760 --> 00:07:31,950 that we're gonna call N of T. 135 00:07:31,950 --> 00:07:36,090 So every compartment always has one variable associated 136 00:07:36,090 --> 00:07:38,250 with it that is allowed to change in time. 137 00:07:38,250 --> 00:07:39,960 So here, I'm gonna use N for number 138 00:07:39,960 --> 00:07:41,403 of people in the building. 139 00:07:42,360 --> 00:07:44,610 People are coming in at rate alpha 140 00:07:44,610 --> 00:07:46,240 and then people are gonna go out 141 00:07:47,280 --> 00:07:48,990 and assuming at rate beta. 142 00:07:48,990 --> 00:07:50,580 And I'm assuming that the more people 143 00:07:50,580 --> 00:07:51,510 there are in the building, 144 00:07:51,510 --> 00:07:53,700 the more people come out just simply 145 00:07:53,700 --> 00:07:55,110 because if no one's in the building, 146 00:07:55,110 --> 00:07:56,520 no one should be coming out. 147 00:07:56,520 --> 00:08:01,470 So having this rate, this arrow here, 148 00:08:01,470 --> 00:08:04,020 be proportional to N of T, just make sure 149 00:08:04,020 --> 00:08:06,633 that I don't get negative numbers in my building. 150 00:08:07,800 --> 00:08:09,060 Well, also, this is pretty simple. 151 00:08:09,060 --> 00:08:12,300 You can already imagine how this would behave 152 00:08:12,300 --> 00:08:15,310 as if initially there's no one in the building 153 00:08:17,280 --> 00:08:18,423 through time. 154 00:08:21,660 --> 00:08:23,250 The number of people in the building 155 00:08:23,250 --> 00:08:26,070 would go up initially at rate alpha, right? 156 00:08:26,070 --> 00:08:28,383 This which is a linear increase in time, 157 00:08:30,270 --> 00:08:33,660 so N of T increases with time at rate alpha. 158 00:08:33,660 --> 00:08:36,360 So that's the slope here, the initial slope, 159 00:08:36,360 --> 00:08:38,460 then the slope starts slowing down because 160 00:08:38,460 --> 00:08:42,000 as people come in, people start walking out 161 00:08:42,000 --> 00:08:44,490 at this rate beta and eventually, 162 00:08:44,490 --> 00:08:46,800 it's just gonna settle out. 163 00:08:46,800 --> 00:08:50,463 Because beta times N of T will be equal to alpha. 164 00:08:51,780 --> 00:08:53,370 So it's really just the flow 165 00:08:53,370 --> 00:08:55,290 of the parts through different states 166 00:08:55,290 --> 00:08:56,970 is what these compartmental models 167 00:08:56,970 --> 00:08:58,800 are supposed to represent. 168 00:08:58,800 --> 00:09:00,660 In a closed population, 169 00:09:00,660 --> 00:09:02,250 it would be slightly different 170 00:09:02,250 --> 00:09:06,000 because we could have the inside 171 00:09:06,000 --> 00:09:10,653 of the building and now, let me draw a nicer square. 172 00:09:12,000 --> 00:09:13,773 The outside of the building, 173 00:09:19,200 --> 00:09:20,463 lemme start over here. 174 00:09:22,290 --> 00:09:25,893 Nice square for compartment one, (laughing) 175 00:09:27,180 --> 00:09:30,093 like too bad for the automatic shape, okay. 176 00:09:31,740 --> 00:09:36,330 Okay, so we have one compartment for the inside, 177 00:09:36,330 --> 00:09:38,343 let's say, and one for the outside. 178 00:09:39,900 --> 00:09:42,090 And now as I said, in a closed system, 179 00:09:42,090 --> 00:09:44,730 no arrows come directly from the outside. 180 00:09:44,730 --> 00:09:49,503 We're modeling a complete universe. 181 00:09:50,610 --> 00:09:53,730 So we're gonna have people that are outside that go 182 00:09:53,730 --> 00:09:56,583 in the building and people that are in that go outside. 183 00:09:57,840 --> 00:10:00,030 And then the key part here is that 184 00:10:00,030 --> 00:10:01,290 because we have a closed system, 185 00:10:01,290 --> 00:10:03,090 we have a fixed population, 186 00:10:03,090 --> 00:10:08,040 there's a total of let's call them NT 187 00:10:08,040 --> 00:10:10,710 for the total number of people in the population. 188 00:10:10,710 --> 00:10:13,560 And that's not a dynamical variable. 189 00:10:13,560 --> 00:10:15,240 That's just like 100 people. 190 00:10:15,240 --> 00:10:19,170 That's all there is in this little imaginary universe. 191 00:10:19,170 --> 00:10:23,220 So inside, we still have N of T and then outside, 192 00:10:23,220 --> 00:10:28,127 we would have NT minus N of T people, 193 00:10:29,160 --> 00:10:31,230 so that the sum of people inside 194 00:10:31,230 --> 00:10:33,033 and outside are fixed at all time. 195 00:10:34,830 --> 00:10:38,160 And now, we could have, we could imagine that we have a rate 196 00:10:38,160 --> 00:10:40,290 at which outside people choose to go in, 197 00:10:40,290 --> 00:10:42,060 which is again, now proportional 198 00:10:42,060 --> 00:10:46,863 to this NT minus N of T, number of people outside. 199 00:10:48,330 --> 00:10:52,020 So let's say, we call that NO for outside of T. 200 00:10:52,020 --> 00:10:55,710 Here, we would have now, alpha NO of T 201 00:10:55,710 --> 00:10:58,380 and again, beta N of T here. 202 00:10:58,380 --> 00:11:01,140 And this model will be slightly different, right? 203 00:11:01,140 --> 00:11:04,200 So by choosing open or closed systems, 204 00:11:04,200 --> 00:11:06,270 we've built some approximations 205 00:11:06,270 --> 00:11:09,333 or some assumptions about this population. 206 00:11:11,790 --> 00:11:14,310 In subsequent videos, especially next week, 207 00:11:14,310 --> 00:11:15,930 we'll see like how to go 208 00:11:15,930 --> 00:11:18,360 from these little schematic cartoons 209 00:11:18,360 --> 00:11:20,670 to actual mathematical equations 210 00:11:20,670 --> 00:11:25,530 or how to model these systems using stochastic codes. 211 00:11:25,530 --> 00:11:29,880 But most of which we care about is in designing 212 00:11:29,880 --> 00:11:32,100 the cartoons of boxes and arrows. 213 00:11:32,100 --> 00:11:34,810 So let's do a more involved example 214 00:11:36,030 --> 00:11:37,710 before we end this video. 215 00:11:37,710 --> 00:11:39,450 So simple disease models, right? 216 00:11:39,450 --> 00:11:43,200 So I think I already said it here. 217 00:11:43,200 --> 00:11:45,060 We care about a human population 218 00:11:45,060 --> 00:11:46,080 and what's gonna be important 219 00:11:46,080 --> 00:11:48,243 is whether people are sick or healthy. 220 00:11:49,590 --> 00:11:51,760 So the whole is a human population 221 00:11:54,570 --> 00:11:56,463 Oops, population, 222 00:11:58,744 --> 00:12:02,180 and the classic model that are still mostly used 223 00:12:03,120 --> 00:12:04,920 to this day to forecast COVID, 224 00:12:04,920 --> 00:12:09,240 we're gonna assume what I call a fully connected population 225 00:12:09,240 --> 00:12:12,480 which really you could think of as either everyone 226 00:12:12,480 --> 00:12:14,160 is either that there's no space, 227 00:12:14,160 --> 00:12:15,603 everyone is in one point, 228 00:12:16,830 --> 00:12:18,690 or you have a fully connected network. 229 00:12:18,690 --> 00:12:21,363 I like to think of anything, everything as network. 230 00:12:24,780 --> 00:12:26,430 So that's our space, right? 231 00:12:26,430 --> 00:12:30,810 So if you have different people, 232 00:12:30,810 --> 00:12:33,390 well, everyone is connected to everyone, 233 00:12:33,390 --> 00:12:37,593 like I would just be drawing a really big mess here. 234 00:12:39,540 --> 00:12:42,330 But that's essentially what we're dealing with. 235 00:12:42,330 --> 00:12:43,923 Anyone can infect anyone. 236 00:12:45,570 --> 00:12:47,703 Okay, let me remove my mess. 237 00:12:49,590 --> 00:12:50,823 And time, 238 00:12:51,660 --> 00:12:56,040 here, again, I'll leave it free for here. 239 00:12:56,040 --> 00:12:57,420 It doesn't matter too much. 240 00:12:57,420 --> 00:13:00,630 It really matters once we start writing down equations 241 00:13:00,630 --> 00:13:03,690 or, but often we talk in terms 242 00:13:03,690 --> 00:13:06,360 of per-contact transmission rate. 243 00:13:06,360 --> 00:13:11,220 So we could assume a discrete time systems 244 00:13:11,220 --> 00:13:12,390 where at every time step, 245 00:13:12,390 --> 00:13:14,883 some contact sucker in the population. 246 00:13:18,360 --> 00:13:20,740 The parts are going to be people again 247 00:13:24,840 --> 00:13:29,840 distinguished by their epidemiological state. 248 00:13:31,140 --> 00:13:35,340 So we're gonna have, let me do, in the simplest case, 249 00:13:35,340 --> 00:13:38,703 we would have what we called susceptible people, 250 00:13:40,410 --> 00:13:42,570 meaning healthy and susceptible. 251 00:13:42,570 --> 00:13:44,820 They could potentially be infectious, 252 00:13:44,820 --> 00:13:48,573 and that's usually just called S. 253 00:13:50,670 --> 00:13:55,670 And we're gonna have infectious individuals, 254 00:13:56,250 --> 00:13:57,783 usually called I. 255 00:13:59,160 --> 00:14:01,740 So in epidemiological compartmental models, 256 00:14:01,740 --> 00:14:05,103 what I'm about to draw would be a potentially a SI model. 257 00:14:06,810 --> 00:14:08,223 So we have two boxes. 258 00:14:12,540 --> 00:14:15,390 Box for how many people are susceptible, 259 00:14:15,390 --> 00:14:19,503 and a box in red here for how many people are infectious. 260 00:14:21,510 --> 00:14:25,710 And then I'm assuming a closed population, let's say. 261 00:14:25,710 --> 00:14:27,450 So I'm gonna add here, in my whole, 262 00:14:27,450 --> 00:14:29,613 I sort of skipped a step that's important. 263 00:14:30,630 --> 00:14:34,443 So I'm gonna assume a closed population. 264 00:14:36,360 --> 00:14:41,190 If I'm modeling something like COVID on the UVM campus 265 00:14:41,190 --> 00:14:44,400 for this week, that might be a fine approximation. 266 00:14:44,400 --> 00:14:46,980 If I'm modeling COVID over the next 10 years, 267 00:14:46,980 --> 00:14:49,590 then I wanna have some birth-death process. 268 00:14:49,590 --> 00:14:53,880 Maybe some new students coming in, students coming out. 269 00:14:53,880 --> 00:14:55,200 So then there's a lot of exchange 270 00:14:55,200 --> 00:14:56,490 with the rest of the world. 271 00:14:56,490 --> 00:14:58,110 So really, this closed population here 272 00:14:58,110 --> 00:14:59,580 is a matter of timescale. 273 00:14:59,580 --> 00:15:01,890 If we're thinking about the campus over a week, 274 00:15:01,890 --> 00:15:03,453 it's fine to think it's closed. 275 00:15:05,340 --> 00:15:07,650 Okay, so how is this gonna work out? 276 00:15:07,650 --> 00:15:12,060 We're gonna have S of T variable associated 277 00:15:12,060 --> 00:15:16,650 towards susceptible and I of T variable associated 278 00:15:16,650 --> 00:15:18,603 with our infectious individuals. 279 00:15:21,540 --> 00:15:25,080 Now, we need to think at what rate do susceptible, 280 00:15:25,080 --> 00:15:28,893 so people that could be infected do become infectious? 281 00:15:33,030 --> 00:15:35,550 Well, a little bit like people leaving the building, 282 00:15:35,550 --> 00:15:38,910 we're just gonna assume a rate at which the event occur. 283 00:15:38,910 --> 00:15:40,210 So let's call it beta 284 00:15:41,160 --> 00:15:43,350 and like people in the building, again, 285 00:15:43,350 --> 00:15:45,330 if there's no susceptible individual, 286 00:15:45,330 --> 00:15:46,770 no one can leave, right? 287 00:15:46,770 --> 00:15:50,313 This isn't something flowing from the outside, 288 00:15:51,300 --> 00:15:52,810 so I'm gonna put a S of T 289 00:15:54,030 --> 00:15:56,250 because the more susceptible people I have, 290 00:15:56,250 --> 00:15:59,160 the more I imagine that they will get infected, right? 291 00:15:59,160 --> 00:16:02,910 Disease incidents is usually this per-capita kind of thing. 292 00:16:02,910 --> 00:16:05,160 So to get the actual number of new infections, 293 00:16:05,160 --> 00:16:08,553 you multiply it by the total susceptible population S of T. 294 00:16:09,540 --> 00:16:11,790 Well, similarly, you can make the argument that 295 00:16:11,790 --> 00:16:15,780 if no one's infectious, no one's gonna get infected, right? 296 00:16:15,780 --> 00:16:18,450 And similarly, if you have 10 times more infectious people 297 00:16:18,450 --> 00:16:20,820 on campus, you get 10 times more contact 298 00:16:20,820 --> 00:16:22,140 with infectious people, 299 00:16:22,140 --> 00:16:24,303 10 times more likely to get infected. 300 00:16:26,610 --> 00:16:30,633 So this rate really here is this non-linear term, 301 00:16:31,526 --> 00:16:35,280 beta times S of T times I of T, 302 00:16:35,280 --> 00:16:37,350 and I call it a non-linear term 303 00:16:37,350 --> 00:16:39,120 because we have a closed population. 304 00:16:39,120 --> 00:16:40,410 So we have a constraint here 305 00:16:40,410 --> 00:16:42,513 that I'm gonna write in the margin. 306 00:16:43,650 --> 00:16:48,650 That S of T plus I of T is equal to NT, 307 00:16:49,320 --> 00:16:50,850 same as in our previous example. 308 00:16:50,850 --> 00:16:53,580 We have a total population that is gonna 309 00:16:53,580 --> 00:16:56,160 be fixed in time, not going to change. 310 00:16:56,160 --> 00:17:00,870 So really, I could have written I of T as NT minus S of T 311 00:17:00,870 --> 00:17:03,930 or S of T as NT minus I of T. 312 00:17:03,930 --> 00:17:05,670 It doesn't matter too much. 313 00:17:05,670 --> 00:17:09,480 But if you do that, what you realize is that this rate here 314 00:17:09,480 --> 00:17:13,440 in the middle, beta times S times I is really something 315 00:17:13,440 --> 00:17:17,520 like beta times S times NT minus S. 316 00:17:17,520 --> 00:17:19,800 So you do have some S square term 317 00:17:19,800 --> 00:17:21,600 that's gonna create some interesting behavior 318 00:17:21,600 --> 00:17:23,010 when we start studying 319 00:17:23,010 --> 00:17:25,293 the dynamical behaviors of these models. 320 00:17:26,250 --> 00:17:28,590 So that would be a simple SI model. 321 00:17:28,590 --> 00:17:30,360 It's kind of ridiculous in practice 322 00:17:30,360 --> 00:17:32,760 'cause here, we're assuming there's no interaction 323 00:17:32,760 --> 00:17:35,700 out of the I of T compartment. 324 00:17:35,700 --> 00:17:37,530 So people are infectious forever. 325 00:17:37,530 --> 00:17:40,030 So the only way this model would end is 326 00:17:41,490 --> 00:17:43,800 with the population fully infectious. 327 00:17:43,800 --> 00:17:46,050 In practice, we know that people do recover 328 00:17:46,050 --> 00:17:47,490 from most disease. 329 00:17:47,490 --> 00:17:52,297 So we could imagine having an arrow back 330 00:17:53,400 --> 00:17:54,990 to the susceptible population. 331 00:17:54,990 --> 00:17:56,820 So that could be something like the common cold, 332 00:17:56,820 --> 00:17:58,650 maybe, when you do recover, 333 00:17:58,650 --> 00:18:00,183 you can get it again. 334 00:18:01,380 --> 00:18:02,430 And then this would happen, 335 00:18:02,430 --> 00:18:05,043 maybe at a rate, gamma times I of T. 336 00:18:06,810 --> 00:18:10,140 And now, we would have what we call the classic SIS model. 337 00:18:10,140 --> 00:18:12,210 It's SIS because individuals go 338 00:18:12,210 --> 00:18:15,213 from susceptible to infectious to susceptible. 339 00:18:19,230 --> 00:18:21,330 If we wanna think about COVID, 340 00:18:21,330 --> 00:18:25,500 hopefully, the situation looks actually more like this. 341 00:18:25,500 --> 00:18:26,880 We would have a third state 342 00:18:26,880 --> 00:18:29,640 that we would call recovered individuals 343 00:18:29,640 --> 00:18:32,223 and then infectious individuals would go here. 344 00:18:33,360 --> 00:18:36,030 And I think you're starting to see why, 345 00:18:36,030 --> 00:18:39,370 and I just added a state here, recovered in black 346 00:18:42,330 --> 00:18:44,100 which I'm calling R. 347 00:18:44,100 --> 00:18:46,740 I think you're starting to see why I say that. 348 00:18:46,740 --> 00:18:49,350 When you look at these cartoons, 349 00:18:49,350 --> 00:18:50,910 once you've seen enough of them 350 00:18:50,910 --> 00:18:52,350 or done enough of them, 351 00:18:52,350 --> 00:18:54,960 you really start understanding what is 352 00:18:54,960 --> 00:18:56,550 the question people are trying to answer. 353 00:18:56,550 --> 00:18:58,290 What assumptions are they making, right? 354 00:18:58,290 --> 00:19:01,320 If you see just the two boxes for a disease model, 355 00:19:01,320 --> 00:19:03,600 you know you gotta have healthy and sick. 356 00:19:03,600 --> 00:19:05,250 So you're assuming that people like, 357 00:19:05,250 --> 00:19:07,110 go back from sick to being healthy. 358 00:19:07,110 --> 00:19:10,050 If you see a third box, you know what they're assuming. 359 00:19:10,050 --> 00:19:12,180 Looking at the mechanisms, right, 360 00:19:12,180 --> 00:19:15,750 is really helping you see the different flows. 361 00:19:15,750 --> 00:19:17,763 If we add an open population, 362 00:19:19,080 --> 00:19:20,670 let me just cross this out, right? 363 00:19:20,670 --> 00:19:22,830 If we add an open population, 364 00:19:22,830 --> 00:19:25,380 then maybe we would have a migration 365 00:19:25,380 --> 00:19:28,653 of susceptible individual here at some rate alpha. 366 00:19:29,700 --> 00:19:31,200 And doing so, would tell you 367 00:19:31,200 --> 00:19:33,300 that I'm either thinking on a longer time scale. 368 00:19:33,300 --> 00:19:35,100 I'm thinking about a town and people coming 369 00:19:35,100 --> 00:19:37,650 into town over, you know, months or something. 370 00:19:37,650 --> 00:19:39,700 It does tell you about what I care about. 371 00:19:40,590 --> 00:19:43,770 So I'll leave it at that for this video, 372 00:19:43,770 --> 00:19:45,630 like constructing these models 373 00:19:45,630 --> 00:19:47,280 and drawing these boxes is something 374 00:19:47,280 --> 00:19:48,810 we're gonna do for a long time. 375 00:19:48,810 --> 00:19:49,800 And I think this week, 376 00:19:49,800 --> 00:19:52,470 we're just gonna run through a lot of examples, 377 00:19:52,470 --> 00:19:54,780 trying to see how we map our assumptions 378 00:19:54,780 --> 00:19:57,930 to actual assumptions and approximations 379 00:19:57,930 --> 00:20:01,560 to actual models as boxes and arrows 380 00:20:01,560 --> 00:20:03,993 with these compartmental models. 381 00:20:04,920 --> 00:20:07,143 So I'll see you in class for the discussion.