argimiro arratia & r. ferrer-i-cancho version 0.4 …csn/slides/11epidemic.pdfclassic epidemic...

41
Classic epidemic models (full mixing) Epidemic models over networks Epidemic models over networks Argimiro Arratia & R. Ferrer-i-Cancho Universitat Polit` ecnica de Catalunya Version 0.4 Complex and Social Networks (2017-2018) Master in Innovation and Research in Informatics (MIRI) Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Upload: lyphuc

Post on 17-Apr-2018

224 views

Category:

Documents


2 download

TRANSCRIPT

Classic epidemic models (full mixing)Epidemic models over networks

Epidemic models over networks

Argimiro Arratia & R. Ferrer-i-Cancho

Universitat Politecnica de Catalunya

Version 0.4Complex and Social Networks (2017-2018)

Master in Innovation and Research in Informatics (MIRI)

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

Official website: www.cs.upc.edu/~csn/

Contact:

I Ramon Ferrer-i-Cancho, [email protected],http://www.cs.upc.edu/~rferrericancho/

I Argimiro Arratia, [email protected],http://www.cs.upc.edu/~argimiro/

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

Epidemic models

Epidemic models attempt to capture the dynamics in the spreadingof a disease (or idea, computer virus, product adoption).

Central questions they try to answer are:

I How do contagions spread in populations?

I Will a disease become an epidemic?

I Who are the best people to vaccinate?

I Will a given YouTube video go viral?

I What individuals should we market to for maximizing productpenetration?

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

The SI modelThe SIR modelThe SIS model

In today’s lecture

Classic epidemic models (full mixing)The SI modelThe SIR modelThe SIS model

Epidemic models over networksHomogeneous modelsA general network model for SIS

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

The SI modelThe SIR modelThe SIS model

Full mixing in classic epidemiological models

Full mixing assumption

In classic epidemiology, it is assumed that every individual has anequal chance of coming into contact with every other individual inthe population

Dropping this assumption by making use of an underlying contactnetwork leads to the more realistic models over networks (secondhalf of the lecture)!

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

The SI modelThe SIR modelThe SIS model

Full mixing in classic epidemiological models

Full mixing assumption

In classic epidemiology, it is assumed that every individual has anequal chance of coming into contact with every other individual inthe population

Dropping this assumption by making use of an underlying contactnetwork leads to the more realistic models over networks (secondhalf of the lecture)!

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

The SI modelThe SIR modelThe SIS model

The SI model (fully mixing susceptible – infected)Notation (following [Newman, 2010])

I Let S(t) be the number of individuals who are susceptible tosickness at time t

I Let X (t) be the number of individuals who are infected attime t1

I Total population size is n

I Contact with infected individuals causes a susceptible personto become infected

I An infected never recovers and stays infected and infectious toothers

1Well, really S and X are random variables and we want to capture numberof infected and susceptible in expectation.

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

The SI modelThe SIR modelThe SIS model

The SI model

In the SI model, individuals can be in one of two states:

I infective (I), or

I susceptible (S) S I-

The parameters of the SI model are

I β infection rate: probability of contagion after contact perunit time

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

The SI modelThe SIR modelThe SIS model

The SI modelDynamics

dX

dt= β

SX

nand

dS

dt= −β

SX

n

where

I S/n is the probability of meeting a susceptible person atrandom per unit time

I XS/n is the average number of susceptible people thatinfected nodes meet per unit time

I βXS/n is the average number of susceptible people thatbecome infected from all infecteds per unit time

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

The SI modelThe SIR modelThe SIS model

The SI modelLogistic growth equation and curve

Define s = S/n and x = X/n, since S + X = n or equivalentlys + x = 1, we get:

dx

dt= β(1 − x)x

The solution to the differential equation (known as the “logisticgrowth equation”) leads to the logistic growth curve

x(t) =x0e

βt

1 − x0 + x0eβt

where x(0) = x0

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

The SI modelThe SIR modelThe SIS model

The SI modelLogistic growth equation and curve

x(t) =x0e

βt

1 − x0 + x0eβt

2 4 6 8 10

0.0

0.2

0.4

0.6

0.8

1.0

t

Fra

ctio

n of

infe

cted

x

Logistic growth curve

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

The SI modelThe SIR modelThe SIS model

Solving the logistic growth equation I

dx

dt= β(1 − x)x

⇐⇒∫ xx0

1

(1 − x)xdx =

∫ t0βdt

⇐⇒∫ xx0

1

(1 − x)dx +

∫ xx0

1

xdx = βt − β0

⇐⇒∫ xx0

1

(1 − x)dx +

∫ xx0

1

xdx = βt

⇐⇒ ln1 − x0

1 − x+ ln

x

x0= βt

⇐⇒ ln(1 − x0)x

(1 − x)x0= βt

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

The SI modelThe SIR modelThe SIS model

Solving the logistic growth equation II

ln(1 − x0)x

(1 − x)x0= βt

⇐⇒ (1 − x0)x

(1 − x)x0= eβt

⇐⇒ x

1 − x=

x0eβt

1 − x0

⇐⇒ 1 − x

x=

1 − x0

x0eβt

⇐⇒ 1

x=

1 − x0

x0eβt+ 1 =

1 − x0 + x0eβt

x0eβt

⇐⇒ x =x0e

βt

1 − x0 + x0eβt

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

The SI modelThe SIR modelThe SIS model

The SIR modelAllowing recovery and immunity

In the SIR model, individuals can be in one of two states:

I infective (I), or

I susceptible (S), or

I recovered (R) S I R- -

The parameters of the SIR model are

I β infection rate: probability of contagion after contact perunit time

I γ recovery rate: probability of recovery from infection per unittime

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

The SI modelThe SIR modelThe SIS model

The SIR modelDynamics

ds

dt= −βsx

dx

dt= βsx − γx

dr

dt= γx

The solution to this system (with s + x + r = 1) is not analyticallytractable, but solutions look like the following:

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

The SI modelThe SIR modelThe SIS model

The SIR model IA threshold phenomenon

Now we are interested in considering the fraction of the populationthat will get sick (i.e. size of the epidemic), basically captured byr(t) as t →∞Substituting dt = dr

γx from the third equation into ds = −βsxdtand solving for s (assuming r0 = 0), we obtain that

s(t) = s0e−β

γ r

and sodr

dt= γ(1 − r − s0e

−βγ r )

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

The SI modelThe SIR modelThe SIS model

The SIR model IIA threshold phenomenon

As t →∞, we get that r(t) stabilizes and so drdt = 0, thus:

r = 1 − s0e−β

γ r

Assume that s0 ≈ 1, since typically we start with a small nr. ofinfected individuals and we are considering large populations, and

so r = 1 − e−βγ r

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

The SI modelThe SIR modelThe SIS model

The SIR model IIIA threshold phenomenon

0.0 0.2 0.4 0.6 0.8 1.0

0.0

0.2

0.4

0.6

0.8

1.0

r

y = 1 − e(−0.5r)

y = 1 − e(−1r)

y = 1 − e(−1.5r)

y = r

0 1 2 3 4

0.0

0.2

0.4

0.6

0.8

1.0

β γ

epid

emic

siz

e in

the

limit

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

The SI modelThe SIR modelThe SIS model

The SIR model IVA threshold phenomenon

I if βγ 6 1 then no epidemic occurs

I if βγ > 1 then epidemic occurs

I β = γ is the epidemic transition

0 1 2 3 4

0.0

0.2

0.4

0.6

0.8

1.0

β γ

epid

emic

siz

e in

the

limit

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

The SI modelThe SIR modelThe SIS model

The SIR modelThe basic reproduction number R0

Basic reproduction number R0

R0 is the average number of additional people that a newlyinfected person passes the disease onto before they recover2.

I R0 > 1 means each infected person infects more than 1person and hence the epidemic grows exponentially (at leastat the early stages)

I R0 < 1 makes the epidemic shrink

I R0 = 1 marks the epidemic threshold between the growingand shrinking regime

In the SIR model, R0 = βγ

2It is defined for the early stages of the epidemic and so one can assumethat most people are in the susceptible state.

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

The SI modelThe SIR modelThe SIS model

The SIS modelPeople can cure but do not become immune

In the SIS model, individuals can be in one of two states:

I infective (I), or

I susceptible (S) S I-

The parameters of the SI model are

I β infection rate: probability of contagion after contact perunit time

I γ recovery rate: probability of recovery from infection per unittime

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

The SI modelThe SIR modelThe SIS model

The SIS modelDynamics

ds

dt= γx − βsx

dx

dt= βsx − γx

Using s + x = 1, we can solve the system analytically obtaining

x(t) = x0(β− γ)e(β−γ)t

β− γ+ βx0e(β−γ)t

Intuition: The SIS models the fluwhile the SIR models the mumps

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

The SI modelThe SIR modelThe SIS model

The SIS modelExamples

β = 0.8,γ = 0.4

0 5 10 15 20

0.0

0.1

0.2

0.3

0.4

0.5

Time t

Pro

port

ion

of in

fect

ed x

(t)

I logistic growth curve

I steady state at x = β−γβ

β = 0.4,γ = 0.8

0 5 10 15 20

0.00

00.

002

0.00

40.

006

0.00

80.

010

Time tP

ropo

rtio

n of

infe

cted

x(t

)

I exponential decay

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

The SI modelThe SIR modelThe SIS model

The SIS modelThe basic reproduction number R0

I The point β = γ marks the epidemic transition

I In the SIS model, R0 = βγ

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

Homogeneous modelsA general network model for SIS

In today’s lecture

Classic epidemic models (full mixing)The SI modelThe SIR modelThe SIS model

Epidemic models over networksHomogeneous modelsA general network model for SIS

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

Homogeneous modelsA general network model for SIS

Homogeneous network modelsAll nodes have degree very close to 〈k〉 (e.g. Erdos-Renyi networks or regular lattices)

We can re-write the equation of the epidemic models taking intoaccount that individuals have approximately 〈k〉 possibilities ofcontagion from neighbors

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

Homogeneous modelsA general network model for SIS

Homogeneous SI model

Equations of dynamics

dx

dt= β〈k〉x(1 − x)

ds

dt= −β〈k〉s(1 − s)

Solution

x(t) =x0e

β〈k〉t

1 − x0 + x0eβ〈k〉t

Observations

I Same behavior as in the non-networked model

I Growth of infecteds depends on 〈k〉 as well as β

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

Homogeneous modelsA general network model for SIS

Homogeneous SIR model

Equations of dynamics

ds

dt= −β〈k〉sx dx

dt= β〈k〉sx − γx

dr

dt= γx

Epidemic threshold

I if βγ 6 1

〈k〉 then no epidemic occurs

I if βγ >

1〈k〉 then epidemic occurs

Observations

I Same behavior as in the non-networked model

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

Homogeneous modelsA general network model for SIS

Homogeneous SIS model

Equations of dynamics

ds

dt= γx − β〈k〉sx dx

dt= β〈k〉sx − γx

Solution

x(t) = x0(β〈k〉− γ)e(β〈k〉−γ)t

β〈k〉− γ+ β〈k〉x0e(β〈k〉−γ)t

Observations

I Same behavior as in the non-networked modelI Epidemic threshold at β〈k〉− γ = 1

I Equivalent to βγ6 1

〈k〉 , same as SIR

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

Homogeneous modelsA general network model for SIS

A general network model for SIS [Chakrabarti et al., 2008]

Now we need to consider that infection can be through existingconnections

I A is the adjacency matrix of the underlying contact network,and Aij is the entry corresponding to the potential edgebetween nodes i and j

I Assume A is symmetric (contagion goes in both ways) andhas dimension n × n (n is the population size)

I si (t) is the probability of node i being susceptible to diseaseat time t

I xi (t) is the probability of node i being infected at time t

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

Homogeneous modelsA general network model for SIS

Model dynamics I

From [Chakrabarti et al., 2008]

“During each time interval ∆t, an infected node i tries to infect itsneighbors with probability β. At the same time, i may be curedwith probability γ.”

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

Homogeneous modelsA general network model for SIS

Model dynamics II

Notation

I Let xi (t) be the probability that node i is infected at time t

I Let ζi (t) be the probability that a node i will not receiveinfections from its neighbors in the next time step

ζi (t) =∏j :i−j

j fails to pass infection︷ ︸︸ ︷xj(t − 1)(1 − β) +

j is not infected︷ ︸︸ ︷(1 − xj(t − 1))

=∏j :i−j

1 − xj(t − 1)β

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

Homogeneous modelsA general network model for SIS

Model dynamics III

Then, the probability that a node i is uninfected is:

1−xi (t) =

neighbors fail to infect︷︸︸︷ζi (t) (

node is healthy︷ ︸︸ ︷(1 − xi (t − 1))+

node is infected and cures︷ ︸︸ ︷γxi (t − 1) )

Finally, the fraction of infecteds is computed as:

x(t) =∑i

xi (t)

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

Homogeneous modelsA general network model for SIS

Threshold phenomenon I

TheoremThe epidemic threshold of the SIS model over arbitrary networks is1λ1

, where λ1 is the largest eigenvalue of the underlying contactnetwork, that is:

I If βγ >

1λ1

then epidemic occurs

I If βγ <

1λ1

then no epidemic occurs

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

Homogeneous modelsA general network model for SIS

Threshold phenomenon II

ζi (t) =∏j :i−j

1 − xj(t − 1)β

> 1 − β∑j :i−j

xj(t − 1)

= 1 − β∑j

Aijxj(t − 1)

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

Homogeneous modelsA general network model for SIS

Threshold phenomenon III

xi (t) = 1 − (1 − (1 − γ)xi (t − 1))ζi (t)

6 1 − (1 − (1 − γ)xi (t − 1))(1 − β∑j

Aijxj(t − 1))

= 1 − (1 − (1 − γ)xi )(1 − β∑j

Aijxj(t − 1))

= 1 −

1 − (1 − γ)xi − β∑j

Aijxj + (1 − γ)xiβ∑j

Aijxj

= (1 − γ)xi + β

∑j

Aijxj − (1 − γ)xiβ∑j

Aijxj

6 (1 − γ)xi + β∑j

Aijxj(t − 1)

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

Homogeneous modelsA general network model for SIS

Threshold phenomenon IV

In matrix notation:

x(t) 6 ((1 − γ)I+ βA)x(t − 1)

Define S = βA+ (1 − γ)I, then

x(t) 6 Sx(t − 1) 6 S2x(t − 2) 6 ... 6 Stx(0)

Assuming that x(0) =∑

r arvr , where vr are the eigenvectors of S

x(t) 6 St∑r

arvr =∑r

(λr )tarvr

From linear algebra we know that λ1 > 0 (matrix S is symmetricand real) and also λ1 > λ2 > .. > λr . For t →∞, the sum isdominated by the first eigenvalue and so

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

Homogeneous modelsA general network model for SIS

Threshold phenomenon V

x(t) 6 (λ1)ta1v1

If λ1 < 1, then the epidemic must vanish (the other direction alsoholds, check [Chakrabarti et al., 2008]).Finally, the relation between the eigenvalues of S = (1 − γ)I+ βAmatrix and the ones of A matrix is, for all r :

λSr = 1 − γ+ βλAr

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

Homogeneous modelsA general network model for SIS

Threshold phenomenon VI

So the final threshold (w.r.t. leading eigenvalue of A)

λS1 < 1

⇐⇒ 1 − γ+ βλA1 < 1

⇐⇒ 1 + βλA1 < 1 + γ

⇐⇒ βλA1 < γ

⇐⇒ β

γ<

1

λA1

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

Homogeneous modelsA general network model for SIS

References I

Barabasi, A.-L. and Albert, R. (1999).Emergence of scaling in random networks.Science, 286(5439):509–512.

Chakrabarti, D., Wang, Y., Wang, C., Leskovec, J., andFaloutsos, C. (2008).Epidemic thresholds in real networks.ACM Transactions on Information and System Security(TISSEC), 10(4):1.

Newman, M. (2010).Networks: An Introduction.Oxford University Press, USA, 2010 edition.

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks

Classic epidemic models (full mixing)Epidemic models over networks

Homogeneous modelsA general network model for SIS

References II

Pastor-Satorras, R. and Vespignani, A. (2001).Epidemic spreading in scale-free networks.Phys. Rev. Lett., 86(14):3200–3203.

Argimiro Arratia & R. Ferrer-i-Cancho Epidemic models over networks