5. Epidemics
âȘEpidemics spread is determined by properties of the
pathogen carrying it & also by contact network
âȘModeling the contact network is crucial to understand the
spread of an epidemics
âȘProbabilistic models for epidemics â random
âȘDiffusion of Ideas and Behaviors (Influence) in social
network
VANI KANDHASAMY, PSGTECH
5
6. Contagion model based on random trees
âȘA patient meets d new people
âȘWith probability q > 0 patient infects each of them
âȘHow to determine whether the disease will spread
or dies out?
âȘAns: R0 - Basic reproductive number
Expected # of people that get infected = d . q
âȘOnly R0 matters:
R0 â„ 1: epidemic never dies and the number of infected people increases exponentially
R0 <1 : Epidemic dies out exponentially quickly
VANI KANDHASAMY, PSGTECH
6
7. Contagion model based on random trees
âȘWhen R0 is close 1, slightly changing d or q can result in epidemics
dying out or happening
âȘQuarantining people/nodes [reducing d]
âȘEncouraging better sanitary practices reduces germs spreading
[reducing q]
oMeasles has an R0 between 12 and 18
oEbola has an R0 between 1.5 and 2
oCovid-19 has an R0 between 1.4 and 3.9
âȘVery simplified model of disease spread
VANI KANDHASAMY, PSGTECH
7
8. Social contagion - Flickr
âȘUsers can be exposed to a photo via social influence or external links
âȘ Did a particular like spread through social links?
âȘNo, if a user likes a photo and if none of his friends have previously liked the
photo
âȘYes, if a user likes a photo after at least one of her friends liked the photo -
Social cascade
R0 of popular photo is
between 1 and 190
VANI KANDHASAMY, PSGTECH
8
9. SIR Epidemic model
âȘVirus Propagation: 2 Parameters:
âȘ(Virus) Birth rate ÎČ:
probability that an infected neighbor attacks
probability of contagion
âȘ(Virus) Death rate ÎŽ:
Probability that an infected node heals
Length of infection
VANI KANDHASAMY, PSGTECH
9
10. Assume nodes y and z are initially
infected & length of infection (t) = 1
VANI KANDHASAMY, PSGTECH
10
15. Game Theory
âȘGraph Theory â study of network structure
âȘGame Theory â study of behaviors
âȘOutcome of a persons decision depends not just on how they choose options
but also on choices made by their friends
VANI KANDHASAMY, PSGTECH
Product pricing Choosing Route Auction bidding
15
16. What is a Game?
âȘA game is a formal representation of the strategic interaction
between the multiple agents that are called players
âȘPrisonerâs Dilemma:
oPrisoners 1 and 2 are caught for a crime and are interrogated in separate
chambers
oInterrogating officer explains the rules
âą if both confesses the crime - both get 4 years of jail
âą if both denies, some part of the charges still apply - each get 1 years of jail
âą if one confesses but the other denies, the crime will be proved - confessor goes free, denier gets 10
years of jail
oAvailable choices for the suspecs: Confess (betray) or Not confess (stays silent)
VANI KANDHASAMY, PSGTECH
16
17. Basic Ingredients of a Game
VANI KANDHASAMY, PSGTECH
Not
Confess
Confess
Not
Confess
Each serves
1 year
S2 is free
S1 got 10
years
Confess S2 got 10
S1 years
is free
Each serves 4
years
Suspect 2
Suspect
1
17
18. Basic Ingredients of a Game
âȘPlayers â set of participants
oBoth the suspects
âȘStrategy â set of options
available to the players
oTo confess or not to confess
âȘPayoff â the benefits that
each player receives
oReduced sentence/jail term
VANI KANDHASAMY, PSGTECH
Not
Confess
Confess
Not
Confess
Each serves
1 year
S2 is free
S1 got 10
years
Confess S2 got 10
S1 years
is free
Each serves 4
years
Suspect 2
Suspect
1
17
19. Reasoning about Behavior in a Game
âȘHow the Suspect 1 choose his option?
âȘIf Suspect 2 were going to confess
oSuspect 1 can also confess and gets payoff (sentence term) of 4 years
oSuspect 1 donât confess and gets payoff (sentence term) of 10 years
âȘIf Suspect 2 were not going to confess
âȘSuspect 1 can also donât confess and gets payoff (sentence term) of 1
year
âȘSuspect 1 confess and gets free
VANI KANDHASAMY, PSGTECH
18
20. Reasoning about Behavior in a Game
âȘHow the Suspect 1 choose his option?
âȘIf Suspect 2 were going to confess
oSuspect 1 can also confess and gets payoff (sentence term) of 4 years
oSuspect 1 donât confess and gets payoff (sentence term) of 10 years
âȘIf Suspect 2 were not going to confess
âȘSuspect 1 can also donât confess and gets payoff (sentence term) of 1
year
âȘSuspect 1 confess and gets free
VANI KANDHASAMY, PSGTECH
Confessing is best strategy in both the cases
18
21. Reasoning about Behavior in a Game
VANI KANDHASAMY, PSGTECH
Arms Races â competitors use
dangerous option to remain
evenly matched
19
22. Best responses
âȘBest response - best choice of one player in response to each possible
choice of his or her opponent
âȘStrategy S for Player 1 is a best response to a strategy T for Player 2, if S
produces at least as good a payoff as any other strategies Sâ of Player 1
paired with T
âȘStrategy S of Player 1 is a strict best response to a strategy T for Player 2,
if S produces a strictly higher payoff than all other strategies Sâ of Player 1
paired with T
VANI KANDHASAMY, PSGTECH
20
23. Dominant strategy
âȘA dominant strategy for Player 1 is a strategy that is a best response
to every strategy of Player 2
âȘA strictly dominant strategy for Player 1 is a strategy that is a strict
best response to every strategy of Player 2
VANI KANDHASAMY, PSGTECH
21
24. Only one player has Strictly Dominant
Strategy
VANI KANDHASAMY, PSGTECH
âȘ60% of people prefer low priced product & 40% prefer upscaled
product
âȘFirm 1 is popular and gets 80% of the sales & Firm 2 gets only 20%
22
25. Only one player has Strictly Dominant
Strategy
VANI KANDHASAMY, PSGTECH
âȘ60% of people prefer low priced product & 40% prefer upscaled
product
âȘFirm 1 is popular and gets 80% of the sales & Firm 2 gets only 20%
Firm 1 has strictly
dominant strategy:
Low priced is a strict
best response to both
strategies of Firm 2
22
26. Only one player has Strictly Dominant
Strategy
VANI KANDHASAMY, PSGTECH
âȘ60% of people prefer low priced product & 40% prefer upscaled
product
âȘFirm 1 is popular and gets 80% of the sales & Firm 2 gets only 20%
Firm 1 has strictly
dominant strategy:
Low priced is a strict
best response to both
strategies of Firm 2
Firm 2 doesnât have
dominant strategy:
Low priced is a best
response when Firm 1
plays upscale & vice
versa
22
27. No player has Strictly Dominant Strategy
Three client game
âȘTwo firms each hope to do business with one of three large clients A, B, and C
âȘA is a larger client, doing business with A is worth 8 and worth of B or C is 2
âȘA will only do business with the firms if both approach A
âȘFirm 1 is too small to attract business on its own
VANI KANDHASAMY, PSGTECH
23
28. No player has Strictly Dominant Strategy
Three client game
âȘTwo firms each hope to do business with one of three large clients A, B, and C
âȘA is a larger client, doing business with A is worth 8 and worth of B or C is 2
âȘA will only do business with the firms if both approach A
âȘFirm 1 is too small to attract business on its own
VANI KANDHASAMY, PSGTECH
For Firm 1
A is strict best response to A by Firm 2
B is strict best response to B by Firm 2
C is strict best response to C by Firm 2
23
29. No player has Strictly Dominant Strategy
Three client game
âȘTwo firms each hope to do business with one of three large clients A, B, and C
âȘA is a larger client, doing business with A is worth 8 and worth of B or C is 2
âȘA will only do business with the firms if both approach A
âȘFirm 1 is too small to attract business on its own
VANI KANDHASAMY, PSGTECH
For Firm 1
A is strict best response to A by Firm 2
B is strict best response to B by Firm 2
C is strict best response to C by Firm 2
For Firm 2
A is strict best response to A by Firm 1
C is strict best response to B by Firm 1
B is strict best response to C by Firm 1
23
30. No player has Strictly Dominant Strategy
Three client game
âȘTwo firms each hope to do business with one of three large clients A, B, and C
âȘA is a larger client, doing business with A is worth 8 and worth of B or C is 2
âȘA will only do business with the firms if both approach A
âȘFirm 1 is too small to attract business on its own
VANI KANDHASAMY, PSGTECH
For Firm 1
A is strict best response to A by Firm 2
B is strict best response to B by Firm 2
C is strict best response to C by Firm 2
For Firm 2
A is strict best response to A by Firm 1
C is strict best response to B by Firm 1
B is strict best response to C by Firm 1
Neither firm has a dominant strategy:
Each strategy by each firm is a strict
best response to some strategy by
other firm
23
31. Nash Equilibrium
âȘThe pair of strategies (S, T ) is a Nash equilibrium if S is a best response to T, and
T is a best response to S
âȘIf the players choose strategies that are best responses to each other, then no
player has an incentive to deviate to an alternative strategy
VANI KANDHASAMY, PSGTECH
24
32. Multiple Equilibria
Coordination game â the two playersâ have shared goal to coordinate
on the same strategy
Stag hunt game
VANI KANDHASAMY, PSGTECH
25
33. Multiple Equilibria
Coordination game â the two playersâ have shared goal to coordinate
on the same strategy
Stag hunt game
VANI KANDHASAMY, PSGTECH
25
34. Multiple Equilibria
Coordination game â the two playersâ have shared goal to coordinate
on the same strategy
Stag hunt game
VANI KANDHASAMY, PSGTECH
If players mis coordinate
then the one who is trying
for the higher-payoff
outcome gets penalized
more
25
36. Multiple Equilibria
Unbalanced Coordination game â Battle of the sexes
VANI KANDHASAMY, PSGTECH
Romantic
Action
Action
Romantic
Follow conventions to
resolve disagreements
when players prefer
different ways to
coordinate
26
37. Game Theoretic model of Cascades
âȘBased on 2 player coordination game
o2 players â each chooses technology A or B (Signal/Telegram)
oEach person can only adopt one âbehaviorâ, A or B
oYou gain more payoff if your friend has adopted the same behavior as you
VANI KANDHASAMY, PSGTECH
27
38. Game Theoretic model of Cascades
âȘBased on 2 player coordination game
o2 players â each chooses technology A or B (Signal/Telegram)
oEach person can only adopt one âbehaviorâ, A or B
oYou gain more payoff if your friend has adopted the same behavior as you
VANI KANDHASAMY, PSGTECH
Direct benefit
effects
27
39. A Networked Coordination Game
VANI KANDHASAMY, PSGTECH
âȘEach node v is playing a copy of the game with each of its neighbors
âȘPayoff: sum of node payoffs per game
28
40. A Networked Coordination Game
VANI KANDHASAMY, PSGTECH
âȘEach node v is playing a copy of the game with each of its neighbors
âȘPayoff: sum of node payoffs per game
Two equilibria
28
41. A Networked Coordination Game
âȘLet v have d neighbors
âȘAssume fraction p of vâs neighbors
adopt A
âȘPayoffv = aâpâd if v chooses A
= bâ(1-p)âd if v chooses B
âȘA is a better choice if
VANI KANDHASAMY, PSGTECH
p -> fraction of vâs friends with A
q -> payoff threshold
29
42. A Networked Coordination Game
âȘLet v have d neighbors
âȘAssume fraction p of vâs neighbors
adopt A
âȘPayoffv = aâpâd if v chooses A
= bâ(1-p)âd if v chooses B
âȘA is a better choice if
VANI KANDHASAMY, PSGTECH
p -> fraction of vâs friends with A
q -> payoff threshold
v chooses A if: p > q
29
44. Cascading behavior
âȘGraph where everyone starts with all B
âȘSmall set S of early adopters of A (they keep using A no matter what payoffs tell
them to do)
âȘAssume payoffs are set in such a way that nodes say:
âȘIf more than q of my friends take A Iâll also take A
âȘWhen does all nodes will switch to A?
âȘWhat causes the spread of A to stop?
VANI KANDHASAMY, PSGTECH
Network structure, Initial adopters, Threshold - q
30
45. Cascading behavior â Complete cascade
âȘv and w as the initial adopters
âȘPayoffs a = 3 and b = 2
âȘNodes will switch from B to A, if q =
2/5 fraction of their neighbors are
using A
âȘStep 1:
or and t switch to A since 2/3 (>2/5) of their
friends are using A
os and u do not switch as only 1/3 (<2/5) of
their friends are using A
âȘStep 2:
os and u switch to A since 2/3 (>2/5) of their
friends are using A
VANI KANDHASAMY, PSGTECH
31
49. How to go viral?
THRESHOLD
âȘIncreasing quality/payoff of A
from a = 3 to 4
âȘLowers the threshold q from 2/5
to 1/3
âȘA would break into other parts
of the network
INITIAL ADOPTERS
âȘChoosing initial adopters
carefully
âȘ12 or 13 can be convinced to
switch to A to get cascade going
âȘChoose key nodes based on their
network position
VANI KANDHASAMY, PSGTECH
33
56. Diffusion models
DECISION BASED MODEL
âȘModels of product adoption, decision making
âȘUtility based
âȘâNodeâ centric: A node observes decisions of
its neighbors and makes its own decision
âȘExample:
Protest recruitment in Twitter, Product adoption
PROBABILISTIC MODEL
âȘModels of influence or disease spreading
âȘLack of decision making and involves
randomness
âȘAn infected node tries to âpushâ the contagion
to an uninfected node
âȘExample:
Rumor detection in Twitter, Power grid failure
VANI KANDHASAMY, PSGTECH
40