SlideShare uma empresa Scribd logo
1 de 28
Baixar para ler offline
Computational models of
infectious disease
transmission
Jon Zelner
Postdoctoral Fellow, Ecology & Evolutionary Biology @ Princeton University
Postdoctoral Fellow, NIH Fogarty International Center Research and
Policy for Infectious Disease Dynamics (RAPIDD) Program
Objectives
Dissect an important,
classic model.
Understand strengths and
limitations of the classical
model.
Look at alternative
implementations and
applications to different
problem domains.
Why model infectious
disease (ID) transmission?
A wide variety of IDs cause significant
Morbidity: norovirus, seasonal influenza
Mortality: HIV, pandemic influenza
ID transmission is often multi-level but datasets typically only
capture one level at a time.
e.g., households vs. community
Want to relate characteristics of pathogens to quantitative
descriptions of their dynamics.
Classical SIR Model
Example of a state-space model
Individuals occupy one three states at any given time:
Susceptible: Susceptible individuals are not infected and may become
infected upon exposure to an infected individual.
Infectious: Infectious individuals are currently ill and may infect susceptibles,
with rate b. Infectious individuals recover with average rate g.
Recovered/Immune: Recovered individuals are no longer infectious and are
considered to be permanently immune, that is, they cannot be re-infected.
S I RbI g
SIR Model:
Assumptions
In the classical SIR model,
all individuals are assumed
to be in contact with all
others.
Population assumed to be
infinite.
Individuals subject to
spontaneous recovery with
probability g on every step.
€
dS
dt
= −bSI
dI
dt
= bSI − gI
dR
dt
= gI
!
SIR Model: Predictions
Ro is the basic reproductive number
Expected # of new cases generated by a single
infectious individual.
In basic SIR model, Ro = b / g
If Ro >= 1: We should expect to see outbreaks
If Ro < 1: Expect to see fade-out.
Can use this quantity to make predictions about
outbreak dynamics and intervention.
SIR Model w/Vital Dynamics
Here, we add simple birth
and death.
Individuals are born and
die at rate mu, so the
population size is
constant.
Ro = b / (g+mu)
SIR Model: Vaccination
of Newborns
P is proportion of
newborns vaccinated at
birth.
Model implies that if:
Ro(1-P) < 1, vaccination
is effective
P>= P* = 1 - (1/Ro)
Deterministic models approximate
stochastic outbreak dynamics
Random variability is actually the major concept
behind deterministic outbreak models.
Epidemic curve in standard SIR model is the
expected mean epidemic trajectory, given b & g.
Deviations from this trajectory are assumed to be:
Caused by small, random shocks.
Uncorrelated in time, so that a random event at t
is independent of one at t+dt.
Stochastic SIR Model
Demo
CODE EXAMPLES AVAILABLE AT:
HTTP://GITHUB.COM/JZELNER/ICPSR-2010/
Stochastic SIR Model
Demo
HTTP://GITHUB.COM/JZELNER/
ICPSR-2010/BLOB/MASTER/SIMPLESIR.PY
SPECIFIC EXAMPLE AVAILABLE AT:
NOTE: THIS MODEL IS IMPLEMENTED
IN THE OBJECT ORIENTED
PROGRAMMING LANGUAGE PYTHON
Modeling transitions from between
emotional states: discontent,
neutral, content.
Individuals in neutral state are
analogous to susceptibles and can
become either content or
discontent.
Additional parameter: a, random
probability per unit of time that
ego will change state from neutral
to content or discontent.
Modeling the diffusion of emotions:
SISa Model (Hill et al.)
Modeling the diffusion of emotions:
SISa Model (Hill et al.)
Model was fit to Framingham Heart Study
panel data.
Transitions between states are assumed to
happen slowly (in units of years).
Fit to Framingham data using a linear
regression model:
Y = 1 if alter transitions from neutral to
content from t -> t+1.
Ego’s state is only predictor, a is model
intercept.
SIR outbreak model
in Netlogo
This model adds a spatial
component.
As the number of individuals in
the world increases, the rate of
contact between them also
increases.
SIR outbreak model
in Netlogo
Download the Model from the
course website:
http://computationallegalstudies.com/icpsr-class
File is Called “SIR Example Netlogo Model”
SIR outbreak model
in Netlogo
Model Contains Commented Out Code that
Can Be Turned on by Removing the ;;
Cannot have both Versions of ‘To Recover’
at once so you will have to choose
OFF ON
OFFON
Model Setup
This is what happens
when you click setup.
Values are loaded into
turtles and the world.
When you click ‘Go’:
Move: Turtles spin into a randomly chosen direction
and then move one step in that direction.
Infect: Turtles take a look at the other individuals on
the patch they occupy after moving, see if any are
susceptible turtles are there, and try to infect them if
they are.
Recover: Infectious turtles check if they’ll be
recovering on this tick, and if so, they switch their
state from infectious to recovered/immune and can
no longer infect anyone.
Update Turtles: This is our first bookkeeping
operation: we’ll take a look and see if any of each
turtle’s variables - e.g., how long the turtle has been
sick for - needs updating, and if so, do it.
When you click ‘Go’:
Update Global Variables: Updating the state of
variables that impact the whole turtle world.
I.e., # of individuals who are currently
susceptible, infectious and immune (these
show up in the plot on the bottom-left
corner of the display).
Tick! We advance the time forward one step -
it’s very important to remember to call this or
else nothing will ever happen in the model.
Update plot: Finally, we update the plot on the
bottom-left corner, which tracks the number of
individuals currently in each state, to reflect the
changes over the last step.
Infect and recovery
procedures
What happens in this
model?
Predictions from standard SIR model don’t hold,
because contact structure is different.
But that’s kind of the point.
Analysis of this model is potentially more difficult
because we’ve relaxed assumptions about
contact.
What’s wrong with this
picture?
Writing more efficient code
Give turtles a memory slot
for how long they’ll be
infectious if infected.
When infected, store the
duration.
Turtles count how long
they’ve been sick for and
change state when they
reach the limit.
Writing more efficient code
Walk Through the Netlogo Timing Tutorial
http://computationallegalstudies.com/icpsr-class/
Alternate models
What if individuals don’t recover spontaneously,
but go through a series of recovery sub-stages?
S bSI RI1 I2 I3 I4
g*4
This yields gamma-distributed recovery times.
More stages = lower variance in recovery
periods
Gamma-distributed
recovery times
Alternate models of
recovery
Assume that recovery
is a function of small,
multiplicative effects,
yielding a lognormal
distribution of recovery
periods.
More extensions
More states
Incubation
Asymptomatic infection
Contact networks
Dynamic networks (!!)

Mais conteúdo relacionado

Semelhante a ICPSR - Complex Systems Models in the Social Sciences - Bonus Content - Professor Daniel Martin Katz (Guest: Jon Zelner)

Session ii g3 overview epidemiology modeling mmc
Session ii g3 overview epidemiology modeling mmcSession ii g3 overview epidemiology modeling mmc
Session ii g3 overview epidemiology modeling mmcUSD Bioinformatics
 
A COMPUTER VIRUS PROPAGATION MODEL USING DELAY DIFFERENTIAL EQUATIONS WITH PR...
A COMPUTER VIRUS PROPAGATION MODEL USING DELAY DIFFERENTIAL EQUATIONS WITH PR...A COMPUTER VIRUS PROPAGATION MODEL USING DELAY DIFFERENTIAL EQUATIONS WITH PR...
A COMPUTER VIRUS PROPAGATION MODEL USING DELAY DIFFERENTIAL EQUATIONS WITH PR...IJCNCJournal
 
Simulation rules are almost the same to what I coded using Python bu.pdf
Simulation rules are almost the same to what I coded using Python bu.pdfSimulation rules are almost the same to what I coded using Python bu.pdf
Simulation rules are almost the same to what I coded using Python bu.pdfsnewfashion
 
Generalized SEIR Model on Large Networks
Generalized SEIR Model on Large NetworksGeneralized SEIR Model on Large Networks
Generalized SEIR Model on Large NetworksDatabricks
 
Modeling the Effect of Variation of Recruitment Rate on the Transmission Dyna...
Modeling the Effect of Variation of Recruitment Rate on the Transmission Dyna...Modeling the Effect of Variation of Recruitment Rate on the Transmission Dyna...
Modeling the Effect of Variation of Recruitment Rate on the Transmission Dyna...IOSR Journals
 
Modelisation of Ebola Hemoragic Fever propagation in a modern city
Modelisation of Ebola Hemoragic Fever propagation in a modern cityModelisation of Ebola Hemoragic Fever propagation in a modern city
Modelisation of Ebola Hemoragic Fever propagation in a modern cityJean-Luc Caut
 
MathematicallyModelingEpidemicsThroughtheUseoftheReed-FrostEquation
MathematicallyModelingEpidemicsThroughtheUseoftheReed-FrostEquationMathematicallyModelingEpidemicsThroughtheUseoftheReed-FrostEquation
MathematicallyModelingEpidemicsThroughtheUseoftheReed-FrostEquationAlexander Kaunzinger
 
Epidemiological modelling
Epidemiological modellingEpidemiological modelling
Epidemiological modellingSumit Das
 
010_Development of an IT geoEpidemic.pdf
010_Development of an IT geoEpidemic.pdf010_Development of an IT geoEpidemic.pdf
010_Development of an IT geoEpidemic.pdfadil bhatti
 
GraphDiseaseSpreadModels-Threshold&FirefighterCapeTown6-10-07
GraphDiseaseSpreadModels-Threshold&FirefighterCapeTown6-10-07GraphDiseaseSpreadModels-Threshold&FirefighterCapeTown6-10-07
GraphDiseaseSpreadModels-Threshold&FirefighterCapeTown6-10-07webuploader
 
A SEIR MODEL FOR CONTROL OF INFECTIOUS DISEASES
A SEIR MODEL FOR CONTROL OF INFECTIOUS DISEASESA SEIR MODEL FOR CONTROL OF INFECTIOUS DISEASES
A SEIR MODEL FOR CONTROL OF INFECTIOUS DISEASESSOUMYADAS835019
 
An Introduction to Infectious Disease Modeling
An Introduction to Infectious Disease ModelingAn Introduction to Infectious Disease Modeling
An Introduction to Infectious Disease ModelingInsideScientific
 
Infectious disease modelling - the math behind Corona
Infectious disease modelling - the math behind CoronaInfectious disease modelling - the math behind Corona
Infectious disease modelling - the math behind CoronaWouter de Heij
 
MATHEMATICAL MODELLING OF EPIDEMIOLOGY IN PRESENCE OF VACCINATION AND DELAY
MATHEMATICAL MODELLING OF EPIDEMIOLOGY IN PRESENCE OF VACCINATION AND DELAYMATHEMATICAL MODELLING OF EPIDEMIOLOGY IN PRESENCE OF VACCINATION AND DELAY
MATHEMATICAL MODELLING OF EPIDEMIOLOGY IN PRESENCE OF VACCINATION AND DELAYcscpconf
 

Semelhante a ICPSR - Complex Systems Models in the Social Sciences - Bonus Content - Professor Daniel Martin Katz (Guest: Jon Zelner) (20)

Session ii g3 overview epidemiology modeling mmc
Session ii g3 overview epidemiology modeling mmcSession ii g3 overview epidemiology modeling mmc
Session ii g3 overview epidemiology modeling mmc
 
A COMPUTER VIRUS PROPAGATION MODEL USING DELAY DIFFERENTIAL EQUATIONS WITH PR...
A COMPUTER VIRUS PROPAGATION MODEL USING DELAY DIFFERENTIAL EQUATIONS WITH PR...A COMPUTER VIRUS PROPAGATION MODEL USING DELAY DIFFERENTIAL EQUATIONS WITH PR...
A COMPUTER VIRUS PROPAGATION MODEL USING DELAY DIFFERENTIAL EQUATIONS WITH PR...
 
Simulation rules are almost the same to what I coded using Python bu.pdf
Simulation rules are almost the same to what I coded using Python bu.pdfSimulation rules are almost the same to what I coded using Python bu.pdf
Simulation rules are almost the same to what I coded using Python bu.pdf
 
Generalized SEIR Model on Large Networks
Generalized SEIR Model on Large NetworksGeneralized SEIR Model on Large Networks
Generalized SEIR Model on Large Networks
 
Modeling the Effect of Variation of Recruitment Rate on the Transmission Dyna...
Modeling the Effect of Variation of Recruitment Rate on the Transmission Dyna...Modeling the Effect of Variation of Recruitment Rate on the Transmission Dyna...
Modeling the Effect of Variation of Recruitment Rate on the Transmission Dyna...
 
Modelisation of Ebola Hemoragic Fever propagation in a modern city
Modelisation of Ebola Hemoragic Fever propagation in a modern cityModelisation of Ebola Hemoragic Fever propagation in a modern city
Modelisation of Ebola Hemoragic Fever propagation in a modern city
 
Sir presentation
Sir presentationSir presentation
Sir presentation
 
MathematicallyModelingEpidemicsThroughtheUseoftheReed-FrostEquation
MathematicallyModelingEpidemicsThroughtheUseoftheReed-FrostEquationMathematicallyModelingEpidemicsThroughtheUseoftheReed-FrostEquation
MathematicallyModelingEpidemicsThroughtheUseoftheReed-FrostEquation
 
Epidemiological modelling
Epidemiological modellingEpidemiological modelling
Epidemiological modelling
 
Sir model cat 1 (1)
Sir model cat 1 (1)Sir model cat 1 (1)
Sir model cat 1 (1)
 
010_Development of an IT geoEpidemic.pdf
010_Development of an IT geoEpidemic.pdf010_Development of an IT geoEpidemic.pdf
010_Development of an IT geoEpidemic.pdf
 
GraphDiseaseSpreadModels-Threshold&FirefighterCapeTown6-10-07
GraphDiseaseSpreadModels-Threshold&FirefighterCapeTown6-10-07GraphDiseaseSpreadModels-Threshold&FirefighterCapeTown6-10-07
GraphDiseaseSpreadModels-Threshold&FirefighterCapeTown6-10-07
 
Schwab_Thesis
Schwab_ThesisSchwab_Thesis
Schwab_Thesis
 
Al04606233238
Al04606233238Al04606233238
Al04606233238
 
A SEIR MODEL FOR CONTROL OF INFECTIOUS DISEASES
A SEIR MODEL FOR CONTROL OF INFECTIOUS DISEASESA SEIR MODEL FOR CONTROL OF INFECTIOUS DISEASES
A SEIR MODEL FOR CONTROL OF INFECTIOUS DISEASES
 
Modeling the Ebola Outbreak in West Africa, September 23rd 2014 update
Modeling the Ebola Outbreak in West Africa, September 23rd 2014 updateModeling the Ebola Outbreak in West Africa, September 23rd 2014 update
Modeling the Ebola Outbreak in West Africa, September 23rd 2014 update
 
An Introduction to Infectious Disease Modeling
An Introduction to Infectious Disease ModelingAn Introduction to Infectious Disease Modeling
An Introduction to Infectious Disease Modeling
 
A covid 19-epidemiological_model_for_community_and
A covid 19-epidemiological_model_for_community_andA covid 19-epidemiological_model_for_community_and
A covid 19-epidemiological_model_for_community_and
 
Infectious disease modelling - the math behind Corona
Infectious disease modelling - the math behind CoronaInfectious disease modelling - the math behind Corona
Infectious disease modelling - the math behind Corona
 
MATHEMATICAL MODELLING OF EPIDEMIOLOGY IN PRESENCE OF VACCINATION AND DELAY
MATHEMATICAL MODELLING OF EPIDEMIOLOGY IN PRESENCE OF VACCINATION AND DELAYMATHEMATICAL MODELLING OF EPIDEMIOLOGY IN PRESENCE OF VACCINATION AND DELAY
MATHEMATICAL MODELLING OF EPIDEMIOLOGY IN PRESENCE OF VACCINATION AND DELAY
 

Mais de Daniel Katz

Legal Analytics versus Empirical Legal Studies - or - Causal Inference vs Pre...
Legal Analytics versus Empirical Legal Studies - or - Causal Inference vs Pre...Legal Analytics versus Empirical Legal Studies - or - Causal Inference vs Pre...
Legal Analytics versus Empirical Legal Studies - or - Causal Inference vs Pre...Daniel Katz
 
Can Law Librarians Help Law Become More Data Driven ? An Open Question in Ne...
Can Law Librarians Help Law Become More Data Driven ?  An Open Question in Ne...Can Law Librarians Help Law Become More Data Driven ?  An Open Question in Ne...
Can Law Librarians Help Law Become More Data Driven ? An Open Question in Ne...Daniel Katz
 
Why We Are Open Sourcing ContraxSuite and Some Thoughts About Legal Tech and ...
Why We Are Open Sourcing ContraxSuite and Some Thoughts About Legal Tech and ...Why We Are Open Sourcing ContraxSuite and Some Thoughts About Legal Tech and ...
Why We Are Open Sourcing ContraxSuite and Some Thoughts About Legal Tech and ...Daniel Katz
 
Fin (Legal) Tech – Law’s Future from Finance’s Past (Some Thoughts About the ...
Fin (Legal) Tech – Law’s Future from Finance’s Past (Some Thoughts About the ...Fin (Legal) Tech – Law’s Future from Finance’s Past (Some Thoughts About the ...
Fin (Legal) Tech – Law’s Future from Finance’s Past (Some Thoughts About the ...Daniel Katz
 
Exploring the Physical Properties of Regulatory Ecosystems - Professors Danie...
Exploring the Physical Properties of Regulatory Ecosystems - Professors Danie...Exploring the Physical Properties of Regulatory Ecosystems - Professors Danie...
Exploring the Physical Properties of Regulatory Ecosystems - Professors Danie...Daniel Katz
 
Law + Complexity & Prediction: Toward a Characterization of Legal Systems as ...
Law + Complexity & Prediction: Toward a Characterization of Legal Systems as ...Law + Complexity & Prediction: Toward a Characterization of Legal Systems as ...
Law + Complexity & Prediction: Toward a Characterization of Legal Systems as ...Daniel Katz
 
Building Your Personal (Legal) Brand - Some Thoughts for Law Students and Oth...
Building Your Personal (Legal) Brand - Some Thoughts for Law Students and Oth...Building Your Personal (Legal) Brand - Some Thoughts for Law Students and Oth...
Building Your Personal (Legal) Brand - Some Thoughts for Law Students and Oth...Daniel Katz
 
Measure Twice, Cut Once - Solving the Legal Profession Biggest Challenges Tog...
Measure Twice, Cut Once - Solving the Legal Profession Biggest Challenges Tog...Measure Twice, Cut Once - Solving the Legal Profession Biggest Challenges Tog...
Measure Twice, Cut Once - Solving the Legal Profession Biggest Challenges Tog...Daniel Katz
 
Artificial Intelligence and Law - 
A Primer
Artificial Intelligence and Law - 
A Primer Artificial Intelligence and Law - 
A Primer
Artificial Intelligence and Law - 
A Primer Daniel Katz
 
Machine Learning as a Service: #MLaaS, Open Source and the Future of (Legal) ...
Machine Learning as a Service: #MLaaS, Open Source and the Future of (Legal) ...Machine Learning as a Service: #MLaaS, Open Source and the Future of (Legal) ...
Machine Learning as a Service: #MLaaS, Open Source and the Future of (Legal) ...Daniel Katz
 
Technology, Data and Computation Session @ The World Bank - Law, Justice, and...
Technology, Data and Computation Session @ The World Bank - Law, Justice, and...Technology, Data and Computation Session @ The World Bank - Law, Justice, and...
Technology, Data and Computation Session @ The World Bank - Law, Justice, and...Daniel Katz
 
LexPredict - Empowering the Future of Legal Decision Making
LexPredict - Empowering the Future of Legal Decision MakingLexPredict - Empowering the Future of Legal Decision Making
LexPredict - Empowering the Future of Legal Decision MakingDaniel Katz
 
{Law, Tech, Design, Delivery} Observations Regarding Innovation in the Legal ...
{Law, Tech, Design, Delivery} Observations Regarding Innovation in the Legal ...{Law, Tech, Design, Delivery} Observations Regarding Innovation in the Legal ...
{Law, Tech, Design, Delivery} Observations Regarding Innovation in the Legal ...Daniel Katz
 
Legal Analytics Course - Class 11 - Network Analysis and Law - Professors Dan...
Legal Analytics Course - Class 11 - Network Analysis and Law - Professors Dan...Legal Analytics Course - Class 11 - Network Analysis and Law - Professors Dan...
Legal Analytics Course - Class 11 - Network Analysis and Law - Professors Dan...Daniel Katz
 
Legal Analytics Course - Class 12 - Data Preprocessing using dPlyR - Professo...
Legal Analytics Course - Class 12 - Data Preprocessing using dPlyR - Professo...Legal Analytics Course - Class 12 - Data Preprocessing using dPlyR - Professo...
Legal Analytics Course - Class 12 - Data Preprocessing using dPlyR - Professo...Daniel Katz
 
Legal Analytics Course - Class 10 - Information Visualization + DataViz in R ...
Legal Analytics Course - Class 10 - Information Visualization + DataViz in R ...Legal Analytics Course - Class 10 - Information Visualization + DataViz in R ...
Legal Analytics Course - Class 10 - Information Visualization + DataViz in R ...Daniel Katz
 
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...Daniel Katz
 
Legal Analytics Course - Class 9 - Clustering Algorithms (K-Means & Hierarch...
Legal Analytics Course - Class 9 -  Clustering Algorithms (K-Means & Hierarch...Legal Analytics Course - Class 9 -  Clustering Algorithms (K-Means & Hierarch...
Legal Analytics Course - Class 9 - Clustering Algorithms (K-Means & Hierarch...Daniel Katz
 
Legal Analytics Course - Class 8 - Introduction to Random Forests and Ensembl...
Legal Analytics Course - Class 8 - Introduction to Random Forests and Ensembl...Legal Analytics Course - Class 8 - Introduction to Random Forests and Ensembl...
Legal Analytics Course - Class 8 - Introduction to Random Forests and Ensembl...Daniel Katz
 
Legal Analytics Course - Class 7 - Binary Classification with Decision Tree L...
Legal Analytics Course - Class 7 - Binary Classification with Decision Tree L...Legal Analytics Course - Class 7 - Binary Classification with Decision Tree L...
Legal Analytics Course - Class 7 - Binary Classification with Decision Tree L...Daniel Katz
 

Mais de Daniel Katz (20)

Legal Analytics versus Empirical Legal Studies - or - Causal Inference vs Pre...
Legal Analytics versus Empirical Legal Studies - or - Causal Inference vs Pre...Legal Analytics versus Empirical Legal Studies - or - Causal Inference vs Pre...
Legal Analytics versus Empirical Legal Studies - or - Causal Inference vs Pre...
 
Can Law Librarians Help Law Become More Data Driven ? An Open Question in Ne...
Can Law Librarians Help Law Become More Data Driven ?  An Open Question in Ne...Can Law Librarians Help Law Become More Data Driven ?  An Open Question in Ne...
Can Law Librarians Help Law Become More Data Driven ? An Open Question in Ne...
 
Why We Are Open Sourcing ContraxSuite and Some Thoughts About Legal Tech and ...
Why We Are Open Sourcing ContraxSuite and Some Thoughts About Legal Tech and ...Why We Are Open Sourcing ContraxSuite and Some Thoughts About Legal Tech and ...
Why We Are Open Sourcing ContraxSuite and Some Thoughts About Legal Tech and ...
 
Fin (Legal) Tech – Law’s Future from Finance’s Past (Some Thoughts About the ...
Fin (Legal) Tech – Law’s Future from Finance’s Past (Some Thoughts About the ...Fin (Legal) Tech – Law’s Future from Finance’s Past (Some Thoughts About the ...
Fin (Legal) Tech – Law’s Future from Finance’s Past (Some Thoughts About the ...
 
Exploring the Physical Properties of Regulatory Ecosystems - Professors Danie...
Exploring the Physical Properties of Regulatory Ecosystems - Professors Danie...Exploring the Physical Properties of Regulatory Ecosystems - Professors Danie...
Exploring the Physical Properties of Regulatory Ecosystems - Professors Danie...
 
Law + Complexity & Prediction: Toward a Characterization of Legal Systems as ...
Law + Complexity & Prediction: Toward a Characterization of Legal Systems as ...Law + Complexity & Prediction: Toward a Characterization of Legal Systems as ...
Law + Complexity & Prediction: Toward a Characterization of Legal Systems as ...
 
Building Your Personal (Legal) Brand - Some Thoughts for Law Students and Oth...
Building Your Personal (Legal) Brand - Some Thoughts for Law Students and Oth...Building Your Personal (Legal) Brand - Some Thoughts for Law Students and Oth...
Building Your Personal (Legal) Brand - Some Thoughts for Law Students and Oth...
 
Measure Twice, Cut Once - Solving the Legal Profession Biggest Challenges Tog...
Measure Twice, Cut Once - Solving the Legal Profession Biggest Challenges Tog...Measure Twice, Cut Once - Solving the Legal Profession Biggest Challenges Tog...
Measure Twice, Cut Once - Solving the Legal Profession Biggest Challenges Tog...
 
Artificial Intelligence and Law - 
A Primer
Artificial Intelligence and Law - 
A Primer Artificial Intelligence and Law - 
A Primer
Artificial Intelligence and Law - 
A Primer
 
Machine Learning as a Service: #MLaaS, Open Source and the Future of (Legal) ...
Machine Learning as a Service: #MLaaS, Open Source and the Future of (Legal) ...Machine Learning as a Service: #MLaaS, Open Source and the Future of (Legal) ...
Machine Learning as a Service: #MLaaS, Open Source and the Future of (Legal) ...
 
Technology, Data and Computation Session @ The World Bank - Law, Justice, and...
Technology, Data and Computation Session @ The World Bank - Law, Justice, and...Technology, Data and Computation Session @ The World Bank - Law, Justice, and...
Technology, Data and Computation Session @ The World Bank - Law, Justice, and...
 
LexPredict - Empowering the Future of Legal Decision Making
LexPredict - Empowering the Future of Legal Decision MakingLexPredict - Empowering the Future of Legal Decision Making
LexPredict - Empowering the Future of Legal Decision Making
 
{Law, Tech, Design, Delivery} Observations Regarding Innovation in the Legal ...
{Law, Tech, Design, Delivery} Observations Regarding Innovation in the Legal ...{Law, Tech, Design, Delivery} Observations Regarding Innovation in the Legal ...
{Law, Tech, Design, Delivery} Observations Regarding Innovation in the Legal ...
 
Legal Analytics Course - Class 11 - Network Analysis and Law - Professors Dan...
Legal Analytics Course - Class 11 - Network Analysis and Law - Professors Dan...Legal Analytics Course - Class 11 - Network Analysis and Law - Professors Dan...
Legal Analytics Course - Class 11 - Network Analysis and Law - Professors Dan...
 
Legal Analytics Course - Class 12 - Data Preprocessing using dPlyR - Professo...
Legal Analytics Course - Class 12 - Data Preprocessing using dPlyR - Professo...Legal Analytics Course - Class 12 - Data Preprocessing using dPlyR - Professo...
Legal Analytics Course - Class 12 - Data Preprocessing using dPlyR - Professo...
 
Legal Analytics Course - Class 10 - Information Visualization + DataViz in R ...
Legal Analytics Course - Class 10 - Information Visualization + DataViz in R ...Legal Analytics Course - Class 10 - Information Visualization + DataViz in R ...
Legal Analytics Course - Class 10 - Information Visualization + DataViz in R ...
 
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...
Legal Analytics Course - Class #4 - Github and RMarkdown Tutorial - Professor...
 
Legal Analytics Course - Class 9 - Clustering Algorithms (K-Means & Hierarch...
Legal Analytics Course - Class 9 -  Clustering Algorithms (K-Means & Hierarch...Legal Analytics Course - Class 9 -  Clustering Algorithms (K-Means & Hierarch...
Legal Analytics Course - Class 9 - Clustering Algorithms (K-Means & Hierarch...
 
Legal Analytics Course - Class 8 - Introduction to Random Forests and Ensembl...
Legal Analytics Course - Class 8 - Introduction to Random Forests and Ensembl...Legal Analytics Course - Class 8 - Introduction to Random Forests and Ensembl...
Legal Analytics Course - Class 8 - Introduction to Random Forests and Ensembl...
 
Legal Analytics Course - Class 7 - Binary Classification with Decision Tree L...
Legal Analytics Course - Class 7 - Binary Classification with Decision Tree L...Legal Analytics Course - Class 7 - Binary Classification with Decision Tree L...
Legal Analytics Course - Class 7 - Binary Classification with Decision Tree L...
 

Último

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKJago de Vreede
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMKumar Satyam
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 

Último (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 

ICPSR - Complex Systems Models in the Social Sciences - Bonus Content - Professor Daniel Martin Katz (Guest: Jon Zelner)

  • 1. Computational models of infectious disease transmission Jon Zelner Postdoctoral Fellow, Ecology & Evolutionary Biology @ Princeton University Postdoctoral Fellow, NIH Fogarty International Center Research and Policy for Infectious Disease Dynamics (RAPIDD) Program
  • 2. Objectives Dissect an important, classic model. Understand strengths and limitations of the classical model. Look at alternative implementations and applications to different problem domains.
  • 3. Why model infectious disease (ID) transmission? A wide variety of IDs cause significant Morbidity: norovirus, seasonal influenza Mortality: HIV, pandemic influenza ID transmission is often multi-level but datasets typically only capture one level at a time. e.g., households vs. community Want to relate characteristics of pathogens to quantitative descriptions of their dynamics.
  • 4. Classical SIR Model Example of a state-space model Individuals occupy one three states at any given time: Susceptible: Susceptible individuals are not infected and may become infected upon exposure to an infected individual. Infectious: Infectious individuals are currently ill and may infect susceptibles, with rate b. Infectious individuals recover with average rate g. Recovered/Immune: Recovered individuals are no longer infectious and are considered to be permanently immune, that is, they cannot be re-infected. S I RbI g
  • 5. SIR Model: Assumptions In the classical SIR model, all individuals are assumed to be in contact with all others. Population assumed to be infinite. Individuals subject to spontaneous recovery with probability g on every step. € dS dt = −bSI dI dt = bSI − gI dR dt = gI !
  • 6. SIR Model: Predictions Ro is the basic reproductive number Expected # of new cases generated by a single infectious individual. In basic SIR model, Ro = b / g If Ro >= 1: We should expect to see outbreaks If Ro < 1: Expect to see fade-out. Can use this quantity to make predictions about outbreak dynamics and intervention.
  • 7. SIR Model w/Vital Dynamics Here, we add simple birth and death. Individuals are born and die at rate mu, so the population size is constant. Ro = b / (g+mu)
  • 8. SIR Model: Vaccination of Newborns P is proportion of newborns vaccinated at birth. Model implies that if: Ro(1-P) < 1, vaccination is effective P>= P* = 1 - (1/Ro)
  • 9. Deterministic models approximate stochastic outbreak dynamics Random variability is actually the major concept behind deterministic outbreak models. Epidemic curve in standard SIR model is the expected mean epidemic trajectory, given b & g. Deviations from this trajectory are assumed to be: Caused by small, random shocks. Uncorrelated in time, so that a random event at t is independent of one at t+dt.
  • 10. Stochastic SIR Model Demo CODE EXAMPLES AVAILABLE AT: HTTP://GITHUB.COM/JZELNER/ICPSR-2010/
  • 11. Stochastic SIR Model Demo HTTP://GITHUB.COM/JZELNER/ ICPSR-2010/BLOB/MASTER/SIMPLESIR.PY SPECIFIC EXAMPLE AVAILABLE AT: NOTE: THIS MODEL IS IMPLEMENTED IN THE OBJECT ORIENTED PROGRAMMING LANGUAGE PYTHON
  • 12. Modeling transitions from between emotional states: discontent, neutral, content. Individuals in neutral state are analogous to susceptibles and can become either content or discontent. Additional parameter: a, random probability per unit of time that ego will change state from neutral to content or discontent. Modeling the diffusion of emotions: SISa Model (Hill et al.)
  • 13. Modeling the diffusion of emotions: SISa Model (Hill et al.) Model was fit to Framingham Heart Study panel data. Transitions between states are assumed to happen slowly (in units of years). Fit to Framingham data using a linear regression model: Y = 1 if alter transitions from neutral to content from t -> t+1. Ego’s state is only predictor, a is model intercept.
  • 14. SIR outbreak model in Netlogo This model adds a spatial component. As the number of individuals in the world increases, the rate of contact between them also increases.
  • 15. SIR outbreak model in Netlogo Download the Model from the course website: http://computationallegalstudies.com/icpsr-class File is Called “SIR Example Netlogo Model”
  • 16. SIR outbreak model in Netlogo Model Contains Commented Out Code that Can Be Turned on by Removing the ;; Cannot have both Versions of ‘To Recover’ at once so you will have to choose OFF ON OFFON
  • 17. Model Setup This is what happens when you click setup. Values are loaded into turtles and the world.
  • 18. When you click ‘Go’: Move: Turtles spin into a randomly chosen direction and then move one step in that direction. Infect: Turtles take a look at the other individuals on the patch they occupy after moving, see if any are susceptible turtles are there, and try to infect them if they are. Recover: Infectious turtles check if they’ll be recovering on this tick, and if so, they switch their state from infectious to recovered/immune and can no longer infect anyone. Update Turtles: This is our first bookkeeping operation: we’ll take a look and see if any of each turtle’s variables - e.g., how long the turtle has been sick for - needs updating, and if so, do it.
  • 19. When you click ‘Go’: Update Global Variables: Updating the state of variables that impact the whole turtle world. I.e., # of individuals who are currently susceptible, infectious and immune (these show up in the plot on the bottom-left corner of the display). Tick! We advance the time forward one step - it’s very important to remember to call this or else nothing will ever happen in the model. Update plot: Finally, we update the plot on the bottom-left corner, which tracks the number of individuals currently in each state, to reflect the changes over the last step.
  • 21. What happens in this model? Predictions from standard SIR model don’t hold, because contact structure is different. But that’s kind of the point. Analysis of this model is potentially more difficult because we’ve relaxed assumptions about contact.
  • 22. What’s wrong with this picture?
  • 23. Writing more efficient code Give turtles a memory slot for how long they’ll be infectious if infected. When infected, store the duration. Turtles count how long they’ve been sick for and change state when they reach the limit.
  • 24. Writing more efficient code Walk Through the Netlogo Timing Tutorial http://computationallegalstudies.com/icpsr-class/
  • 25. Alternate models What if individuals don’t recover spontaneously, but go through a series of recovery sub-stages? S bSI RI1 I2 I3 I4 g*4 This yields gamma-distributed recovery times. More stages = lower variance in recovery periods
  • 27. Alternate models of recovery Assume that recovery is a function of small, multiplicative effects, yielding a lognormal distribution of recovery periods.
  • 28. More extensions More states Incubation Asymptomatic infection Contact networks Dynamic networks (!!)