27
Random Graphs Social and Technological Networks Rik Sarkar University of Edinburgh, 2016.

Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

RandomGraphs

SocialandTechnologicalNetworks

RikSarkar

UniversityofEdinburgh,2016.

Page 2: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

Graph

•  V:setofnodes•  n=|V|:Numberofnodes

•  E:setofedges•  m=|E|:Numberofedges

•  Ifedgea-bexists,thenaandbarecalledneighbors

Page 3: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

Graph

•  Howmanyedgescanagraphhave?

Page 4: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

Graph

•  Howmanyedgescanagraphhave?

•  InbigO?

✓n

2

◆OR

n(n� 1)

2

Page 5: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

Graph

•  Howmanyedgescanagraphhave?

✓n

2

◆OR

n(n� 1)

2

O(n2)

Page 6: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

Randomgraphs

•  Mostbasic,mostunstructuredgraphs•  Formsabaseline– Whathappensinabsenceofanyinfluences

•  Socialandtechnologicalforces

•  Manyrealnetworkshavearandomcomponent– Manythingshappenwithoutclearreason

Page 7: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

Erdos–RenyiRandomgraphs

Page 8: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

Erdos–RenyiRandomgraphs

•  n:numberofverTces•  p:probabilitythatanyparTcularedgeexists

•  TakeVwithnverTces•  Considereachpossibleedge.AddittoEwithprobabilityp

G(n, p)

Page 9: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

Expectednumberofedges

•  Expectedtotalnumberofedges

•  Expectednumberofedgesatanyvertex

Page 10: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

Expectednumberofedges

•  Expectedtotalnumberofedges

•  Expectednumberofedgesatanyvertex

�n2

�p

(n� 1)p

Page 11: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

Expectednumberofedges

•  For

•  Theexpecteddegreeofanodeis:?

p =c

n� 1

Page 12: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

IsolatedverTces

•  HowlikelyisitthatthegraphhasisolatedverTces?

Page 13: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

IsolatedverTces

•  HowlikelyisitthatthegraphhasisolatedverTces?

•  WhathappenstothenumberofisolatedverTcesaspincreases

Page 14: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

Terminologyofhighprobability

•  Somethinghappenswithhighprobabilityif

•  Wherepoly(n)meansapolynomialinn•  Apolynomialinnisconsideredreasonably‘large’

p �✓1� 1

poly(n)

Page 15: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

ProbabilityofIsolatedverTces

•  IsolatedverTcesare

•  Likelywhen:

•  Unlikelywhen:

•  Let’sdeduce

p < lnnn

p > lnnn

Page 16: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

UsefulinequaliTes

✓1 +

1

x

◆x

e

✓1� 1

x

◆x

1

e

Page 17: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

Unionbound

•  ForeventsA,B,C…

•  Pr[AorBorC...]≤Pr[A]+Pr[B]+Pr[C]+...

Page 18: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

•  Theorem1:•  If

•  Thentheprobabilitythatthereexistsanisolatedvertex

•  Thusforlargen,w.h.pthereisnoisolatedvertex•  ExpectednumberofisolatedverTcesisminiscule

p = (1 + ✏)lnn

n� 1

1

n✏

Page 19: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

•  Theorem2•  For

•  Probabilitythatvertexvisisolated

p = (1� ✏)lnn

n� 1

� 1

(2n)1�✏

Page 20: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

•  Theorem2•  For

•  Probabilitythatvertexvisisolated

•  ExpectednumberofisolatedverTces:

p = (1� ✏)lnn

n� 1

� 1

(2n)1�✏

� n

(2n)1�✏=

n✏

2Polynomialinn

Page 21: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

Thresholdphenomenon:ProbabilityornumberofisolatedverTces

•  TheTppingpoint

Page 22: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

Clusteringinsocialnetworks•  Peoplewithmutualfriendsareodenfriends

•  IfAandChaveacommonfriendB–  EdgesABandBCexist

•  ThenABCissaidtoformaTriad–  Closedtriad:EdgeACalsoexists– Opentriad:EdgeACdoesnotexist

•  Exercise:Provethatanyconnectedgraphhasatleastntriads(consideringbothopenandclosed).

Page 23: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

Clusteringcoefficient(cc)

•  MeasureshowTghtthefriendneighborhoodsare:frequencyofclosedtriads

•  cc(A)fracTonsofpairsofA’sneighborsthatarefriends

•  Averagecc:averageofccofallnodes•  Globalcc:raTo #closedtriads

#alltriads

Page 24: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

GlobalCCinERgraphs

•  Whathappenswhenpisverysmall(almost0)?

•  Whathappenswhenpisverylarge(almost1)?

Page 25: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

GlobalCCinERgraphs

•  WhathappensattheTppingpoint?

Page 26: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

Theorem

•  For

•  GlobalccinERgraphsisvanishinglysmall

p = clnn

n

lim

n!1cc(G) = lim

n!1

# closed triads

# all triads

= 0

Page 27: Random Graphs - The University of Edinburgh · Random graphs • Most basic, most unstructured graphs • Forms a baseline – What happens in absence of any influences • Social

AvgCCInrealnetworks

•  Facebook(olddata)~0.6•  hhps://snap.stanford.edu/data/egonets-Facebook.html

•  Googlewebgraph~0.5•  hhps://snap.stanford.edu/data/web-Google.html

•  Ingeneral,ccof~0.2or0.3isconsidered‘high’–  thatthenetworkhassignificantclustering/communitystructure