What I wantedtoshowyouwas a wayofusingoneofthestandardmodelsofdiseasespreadonfreepieceofsoftwarethatpeoplecouldjusttrythemselvesandseethatthemodelingthatpeoplearedoingtopredictthisisiskindofaccessible.
I seeyou'vegotthehonoreebrownpaperneedsmustwe'vegottodosomethingproperly.
Numberfiveactuallydon't haveanyphysicalbrownpaper I couldfind.
So I hadto, youknow, get a screengrabofbrownpaperandputitinjojibrah, which I'm gonnausetoshowyou a modeloff a diseasespread.
Justtomake a predictiononDATsthejudge, wewilldoourbuttliftingtheheavyliftingforus.
Sohappyformetostartchattingmass.
Okay, I'm gonnasetup a populationofsizeone.
Thissounds a littlebitconfusing, and I'm typingintothetopofthethinghereandequalsone, whichismean I'm using, like, myentirepopulationtome, like 100% 0 to 1 measuressomefractionofthepopulationonthewholepopulation.
Sizeone.
Youcandothesemodelswith a largenumber, butiteverythingtoscale.
Sothisis a relativelysimpleThere's a number, thetransmissionratemultipliedbythecentralpeoplemultipliedbytheinfectedpeopleonitsnegativebecausethesusceptiblepeoplegoingdown, they'regonnaturnintoinfectedpeople.
Inthiscase, it's a systemofthreedifferentialequationsondhe.
Thiscommandisjustgonnaspitoutthesolution.
Sothisistheexciting.
Butyoujustgettotypeitinon a well, shoulddueltheworkforus.
Firstofall, I need a listofderivatives, andthat's thethreethings I justtypedintheseairrateequationsorderivativesinjured.
Weneedcurlybracketsfor a list.
Soit s dash.
I calleditandthenbydustandthenourdustclosethatlist.
Theyaskedtheinitial X coordinateandonourscale, X axisistime.
Sowe'regonnastarttimezero.
Wewere a listofinitial Y coordinatesorinthiscase, theinitialvaluesofourthreefunctionsonthosearethings I setupintheverybeginning.
Solet's gointhesameorder s startthenumberofpeoplestartingsusceptible.
Andthen I startedthinkingintheolderpartstuff.
Finally, I need a final X coordinate.
Andthisiswhy I setup a maxtimethingbecauseit's gonnatellmehowlongtogoonthesimulation.
Fornow, he's alreadydonesomething.
That's mycommand.
That's thesortofmagicofusing a pieceofsoftwaretosolveanequationforyou.
If I return, ithasdonethreethingswhichlookkindofdownhere.
Theydon't lookverycompleteyet.
Butcanyouseethatoneisgoingdown?
What?
I wasgoinguponweaponsgoingup a littlebitmoreslowlyisthatthey'reallblack.
Whatsortofthecolors?
Becausejudgewhodoesn't dothecolorsforus.
I wishitdid, frankly, frommyowncolorvisiondeficiency.
But I couldalsoincreasethetimingtapcarrieson.
So, yousee, thisistheimportantbitwhen I crankupthetimeyouseehowthesethingsdevelopovertimeandactuallybemuchlikelytoseethiswithcolors.
Let's rewindthatandputsomecolorsonthe 1st 1 Itsoldhis s Solet's renamethattwo B s onMakeitexcitinglyblueTurnoverwhiteblueisexciting.
Thenextoneisbrown.
HereadRenamethattobeinfectedFinallywe'vegotrecoveredonThatwas a greenclickFinallylet's justmakethemniceandthickAndnowwecanseeif I couldevenjustanimatethisrightlikeananimated.
Andyouseewhathappenstothenumbersofcentral, effective, recoveredovertime a CZmaybewe'reguessingwhatyouthinkwillhappen, butlet's justgo.
Andsowhat I hopeyou'reseeingisthisRedGraffhasbeeninthenews a lotthisbumpoffinfectedpeople, whichdoestailoffagain.
Butit's nicethatjudgewasjustdoingthisforus.
You'regoingbackintimenow?
Yeah.
I gottachangethepropertiesofthenumberheretostopitoscillating, butain't goingtinkerwiththisyourself.
Butinpracticeweknowthatittakesatleast a weekorsotogetoverthisthing, andsometimes a lotlongertherearetreatmentsorcuresthatcanreallyhelpusmovethatslideover.
Exactly.
Yeah, we'lldoourlevelbest, obviously, inthe N h s, butwecan't controlitverywellonwhatyoumighthaveheardsomepeopletalkingaboutontheonthesortofchatshowsaboutmodeling.
ThisstuffissomethingcalledAreZero, whichisthesortofrateofinfectionisactually a comparisonofthesetwonumbers.
Soit's onedividedbytheother.
If I If I dotransmissiondividedbyrecoverthatnumber, let's justcrankitontothescreen.
There.
WeshouldcalltheArezeroforthesakeoftheyeah, let's callit a zero.
Thatsoundssensible.
Youknow, it's confusingcallingourzerosometimesbecauseitmightalsorefertothe R start, whichwasveryWeII.
Yeah, finds a lot, evenifwedon't knowhowmuchit's flattening, itdoesflattenitabsolutely, andthemorewecanplanit, thebettertheactualdetailsofexactlywhatnumbersweneedtokeepoursocietysafeisguessworkfromeverybody.
Whichiswhy I mean, thegovernmenthasgot a difficultjobandeverybodyisgonnabesecondguessingthem, includingexperts, includingtheexpertsthatthey'rerelyingonfortheirinformation.
Sothereis a file I madeearlierwhichthisfilehere, which I justput a littleanimationonsoyoucanseethesenumberstrackingovertimeonthisone I haveleftinhis A and B, Butpeoplecanmaketheirownandcomeupwiththeirownlabelsonthisandactuallythinkrealizingthatthemodeliswithintheirowngraspiscertainlyit's kindofusefulforme.
I'm a mathematician, but I havetogoanddigupmyknowledgeonthesethings.
And I hadalreadyprogrammedthisanditturnsouttobenotthathard, particularlyifthecomputerwilldothegruntworkofsolvingthethingsforyouthenas a mathguy, asyou'vebeenfollowingthis, likethispandemicisthatunfoldsandthewayit's beencoveredinthemediaandsocialmediaandthingslikethat.