SlideShare a Scribd company logo
Social and Economic
Network Analysis
UNIT – III
SOCIAL NETWORK ANALYSIS
Overview
Homophily
Community
Detection
4/20/2021 VANI KANDHASAMY, PSGTECH 2
Homophily
NETWORKS, CROWDS AND MARKETS - CHAPTER 4
4/20/2021 VANI KANDHASAMY, PSGTECH 3
Homophily
▪“Birds of feather flock together”
▪Similarity begets friendship – Plato
▪People loves those who are like
themselves - Aristotle
▪Homophily - we tend to be similar
to our friends
4/20/2021 VANI KANDHASAMY, PSGTECH 4
Homophily
▪Links in a social network tend to connect people who are similar to one another
oImmutable characteristics: racial and ethnic groups; ages; etc.
oMutable characteristics: places living, occupations, levels of affluence, and interests, beliefs,
and opinions; etc
▪Friendship through common friend – Triadic closure (network structure)
▪Friendship through common school/college/job/interest – Contextual features
4/20/2021 VANI KANDHASAMY, PSGTECH 5
Homophily Test
▪Consider a random network G = (V, E) where each node is assigned male with
probability p, and female with probability 1 - p
▪Consider any edge (i, j) Ꜫ E of this random network G
▪Both ends of edge will be male/female with probability p2 / (1-p)2
▪Let random variable Xij = 1 if it is a cross-edge, and Xij = 0 otherwise
▪Then Xij is a Bernoulli random variable such that P(Xij = 1) = 2p(1 - p)
Homophily Test: If the fraction of cross-gender edges is significantly less
than 2p(1 - p), then there is evidence for homophily
4/20/2021 VANI KANDHASAMY, PSGTECH 6
Homophily Test
▪p = 2/3 and the fraction of cross-
gender edges is 5/18
▪On the other hand the fraction
of cross-gender edges in the
random network = 2p(1 - p) =
4/9 = 8/18
▪Note that 5/18 < 8/18 showing
evidence of homophily
4/20/2021 VANI KANDHASAMY, PSGTECH 7
Homophily
SOCIAL INFLUENCE
▪Influenced by the people we are connected to
▪Socialization – existing links shapes people’s
interest
SELECTION
▪We select friends who are similar to us
▪Formation of new links
4/20/2021 VANI KANDHASAMY, PSGTECH 8
Affiliation Networks
▪Affiliation networks are examples of a class of graphs called bipartite graphs
▪Affiliation networks represents the participation of a set of people in a set of foci
4/20/2021 VANI KANDHASAMY, PSGTECH 9
Affiliation Networks
Triadic closure: The formation
of the link between B and C
with common friend A
Focal closure (selection): The
formation of the link between
B and C with common interest
A
Membership closure (social
influence): The formation of
the link between B and C
influenced by a friend A
4/20/2021 VANI KANDHASAMY, PSGTECH 10
Affiliation Networks
Triadic Closure
Focal Closure
Membership
Closure
4/20/2021 VANI KANDHASAMY, PSGTECH 11
Community Detection
SOCIAL AND ECONOMIC NETWORKS - CHAPTER 13
4/20/2021 VANI KANDHASAMY, PSGTECH 12
Stochastic Block Models
▪Posterior Block modelling: By examining how network is generated from
underlying community structure one can detect communities in network
▪Goal: Define a model that can generate networks
oThe model will have a set of “parameters” that we will later used to detect communities
Given a set of nodes, how do communities “generate” edges of the network?
4/20/2021 VANI KANDHASAMY, PSGTECH 13
Stochastic Block Models
1. Given the communities, generate the network using the model
2. Given a network, find the “best” community using the model developed
C
A
B
D E
H
F
G
C
A
B
D E
H
F
G
Generative model
C
A
B
D
H
C
A
B
D
H
Generative model
4/20/2021 VANI KANDHASAMY, PSGTECH 14
Community-Affiliation Graph
Generative model B(V, C, M, {pc}) for graphs:
◦ Nodes V, Communities C, Memberships M
◦ Each community c has a single probability pc
◦ Later we fit the model to networks to detect communities
Model
Network
Communities, C
Nodes, V
Model
pA pB
Memberships, M
4/20/2021 VANI KANDHASAMY, PSGTECH 15
AGM: Generative Process
◦ For each pair of nodes in community 𝑨, we connect them with prob. 𝒑𝑨
◦ The overall edge probability is:



−
−
=
v
u M
M
c
c
p
v
u
P )
1
(
1
)
,
( If 𝒖, 𝒗 share no communities:
𝑷 𝒖, 𝒗 = 𝜺
𝑴𝒖 … set of communities
node 𝒖 belongs to
4/20/2021 VANI KANDHASAMY, PSGTECH 16
Detecting Communities
C
A
B
D E
H
F
G
Given a Graph 𝑮(𝑽, 𝑬), find the Model
1. Affiliation graph M
2. Number of communities C
3. Parameters pc
4/20/2021 VANI KANDHASAMY, PSGTECH 17
Maximum Likelihood Estimation
Given: Data 𝑿
Assumption: Data is generated by some model 𝒇(𝚯)
𝒇 … model
𝚯 … model parameters
Want to estimate: 𝑷𝒇 𝑿 𝚯)
The probability that our model 𝒇 (with parameters 𝜣) generated the data 𝑿
We need to find the most likely model that could have generated the data:
arg max
Θ
𝑷𝒇 𝑿 𝚯)
4/20/2021 VANI KANDHASAMY, PSGTECH 18
Example: MLE
Imagine we are given a set of coin flips
Task: Figure out the bias of a coin!
◦ Data: Sequence of coin flips: 𝑿 = [𝟏, 𝟎, 𝟎, 𝟎, 𝟏, 𝟎, 𝟎, 𝟏]
◦ Model: 𝒇 𝚯 = return 1 with prob. Θ, else return 0
◦ What is 𝑷𝒇 𝑿 𝚯 ? Assuming coin flips are independent
◦ So, 𝑷𝒇 𝑿 𝚯 = 𝑷𝒇 𝟏 𝚯 ∗ 𝑷𝒇 𝟎 𝚯 ∗ 𝑷𝒇 𝟎 𝚯 … ∗ 𝑷𝒇 𝟏 𝚯
◦ Then, 𝑷𝒇 𝑿 𝚯 = 𝚯𝟑
𝟏 − 𝚯 𝟓
◦ For example:
◦ 𝑷𝒇 𝑿 𝚯 = 𝟎. 𝟓 = 𝟎. 𝟎𝟎𝟑𝟗𝟎𝟔
◦ 𝑷𝒇 𝑿 𝚯 =
𝟑
𝟖
= 𝟎. 𝟎𝟎𝟓𝟎𝟐𝟗
◦ Data 𝑿 was most likely generated by coin with bias 𝚯 = 𝟑/𝟖
𝑷
𝒇
𝑿
𝚯
𝚯
𝚯∗
= 𝟑/𝟖
4/20/2021 VANI KANDHASAMY, PSGTECH 19
Maximum Likelihood Estimation
Goal: Find 𝚯 = 𝑩(𝑽, 𝑪, 𝑴, 𝒑𝑪 ) such that:
How do we find 𝑩(𝑽, 𝑪, 𝑴, 𝒑𝑪 ) that maximizes the
likelihood?
Finding B means finding the bipartite affiliation network

P( | )
AGM
arg max

𝑮
4/20/2021 VANI KANDHASAMY, PSGTECH 20
Maximum Likelihood Estimation
Given graph G(V,E) and Θ, we calculate likelihood that Θ generated G: P(G|Θ)
0 0.9 0.9 0
0.9 0 0.9 0
0.9 0.9 0 0.9
0 0 0.9 0
Θ=B(V, C, M, {pc})
0 1 1 0
1 0 1 0
1 1 0 1
0 0 1 0
G
P(G|Θ)
G
A B
arg max
𝐵(𝑽,𝑪,𝑴, 𝒑𝑪 )
ෑ
𝒖,𝒗∈𝑬
𝑷 𝒖, 𝒗 ෑ
𝒖𝒗∉𝑬
(𝟏 − 𝑷 𝒖, 𝒗 )
4/20/2021 VANI KANDHASAMY, PSGTECH 21

More Related Content

Similar to Community detection-Part2

What Is the Added Value of Negative Links in Online Social Networks?
What Is the Added Value of Negative Links in Online Social Networks?What Is the Added Value of Negative Links in Online Social Networks?
What Is the Added Value of Negative Links in Online Social Networks?
Jérôme KUNEGIS
 
Talk 2017 Respawn / Devcom - Social Network Analysis in Games and Communities
Talk 2017 Respawn / Devcom - Social Network Analysis in Games and Communities Talk 2017 Respawn / Devcom - Social Network Analysis in Games and Communities
Talk 2017 Respawn / Devcom - Social Network Analysis in Games and Communities
Johanna Pirker
 
Greedy Incremental approach for unfolding of communities in massive networks
Greedy Incremental approach for unfolding of communities in massive networksGreedy Incremental approach for unfolding of communities in massive networks
Greedy Incremental approach for unfolding of communities in massive networks
IJCSIS Research Publications
 
SocialCom09-tutorial.pdf
SocialCom09-tutorial.pdfSocialCom09-tutorial.pdf
SocialCom09-tutorial.pdf
BalasundaramSr
 
Research as Hypermedia Narrative
Research as Hypermedia NarrativeResearch as Hypermedia Narrative
Research as Hypermedia Narrative
Simon Buckingham Shum
 
Relationships In Wbs Ns (Tin180 Com)
Relationships In Wbs Ns (Tin180 Com)Relationships In Wbs Ns (Tin180 Com)
Relationships In Wbs Ns (Tin180 Com)
Tin180 VietNam
 
Lecture5:Social Network Analysis-By Dr. Y. Narahari
Lecture5:Social Network Analysis-By Dr. Y. NarahariLecture5:Social Network Analysis-By Dr. Y. Narahari
Lecture5:Social Network Analysis-By Dr. Y. Naraharimunicsaa
 
Lecture5:Social Network Analysis-By Dr. Y. Narahari
Lecture5:Social Network Analysis-By Dr. Y. NarahariLecture5:Social Network Analysis-By Dr. Y. Narahari
Lecture5:Social Network Analysis-By Dr. Y. Naraharimunicsaa
 
LCF: A Temporal Approach to Link Prediction in Dynamic Social Networks
 LCF: A Temporal Approach to Link Prediction in Dynamic Social Networks LCF: A Temporal Approach to Link Prediction in Dynamic Social Networks
LCF: A Temporal Approach to Link Prediction in Dynamic Social Networks
IJCSIS Research Publications
 
Identifying Most Relevant Node Path To Increase Connection Probability In Gra...
Identifying Most Relevant Node Path To Increase Connection Probability In Gra...Identifying Most Relevant Node Path To Increase Connection Probability In Gra...
Identifying Most Relevant Node Path To Increase Connection Probability In Gra...
CSCJournals
 
Defining Business Network
Defining Business NetworkDefining Business Network
Defining Business Network
Waqas Tariq
 
Community detection in complex social networks
Community detection in complex social networksCommunity detection in complex social networks
Community detection in complex social networks
Aboul Ella Hassanien
 

Similar to Community detection-Part2 (14)

What Is the Added Value of Negative Links in Online Social Networks?
What Is the Added Value of Negative Links in Online Social Networks?What Is the Added Value of Negative Links in Online Social Networks?
What Is the Added Value of Negative Links in Online Social Networks?
 
Esa2020
Esa2020Esa2020
Esa2020
 
Talk 2017 Respawn / Devcom - Social Network Analysis in Games and Communities
Talk 2017 Respawn / Devcom - Social Network Analysis in Games and Communities Talk 2017 Respawn / Devcom - Social Network Analysis in Games and Communities
Talk 2017 Respawn / Devcom - Social Network Analysis in Games and Communities
 
Greedy Incremental approach for unfolding of communities in massive networks
Greedy Incremental approach for unfolding of communities in massive networksGreedy Incremental approach for unfolding of communities in massive networks
Greedy Incremental approach for unfolding of communities in massive networks
 
SocialCom09-tutorial.pdf
SocialCom09-tutorial.pdfSocialCom09-tutorial.pdf
SocialCom09-tutorial.pdf
 
Research as Hypermedia Narrative
Research as Hypermedia NarrativeResearch as Hypermedia Narrative
Research as Hypermedia Narrative
 
Relationships In Wbs Ns (Tin180 Com)
Relationships In Wbs Ns (Tin180 Com)Relationships In Wbs Ns (Tin180 Com)
Relationships In Wbs Ns (Tin180 Com)
 
Duke talk
Duke talkDuke talk
Duke talk
 
Lecture5:Social Network Analysis-By Dr. Y. Narahari
Lecture5:Social Network Analysis-By Dr. Y. NarahariLecture5:Social Network Analysis-By Dr. Y. Narahari
Lecture5:Social Network Analysis-By Dr. Y. Narahari
 
Lecture5:Social Network Analysis-By Dr. Y. Narahari
Lecture5:Social Network Analysis-By Dr. Y. NarahariLecture5:Social Network Analysis-By Dr. Y. Narahari
Lecture5:Social Network Analysis-By Dr. Y. Narahari
 
LCF: A Temporal Approach to Link Prediction in Dynamic Social Networks
 LCF: A Temporal Approach to Link Prediction in Dynamic Social Networks LCF: A Temporal Approach to Link Prediction in Dynamic Social Networks
LCF: A Temporal Approach to Link Prediction in Dynamic Social Networks
 
Identifying Most Relevant Node Path To Increase Connection Probability In Gra...
Identifying Most Relevant Node Path To Increase Connection Probability In Gra...Identifying Most Relevant Node Path To Increase Connection Probability In Gra...
Identifying Most Relevant Node Path To Increase Connection Probability In Gra...
 
Defining Business Network
Defining Business NetworkDefining Business Network
Defining Business Network
 
Community detection in complex social networks
Community detection in complex social networksCommunity detection in complex social networks
Community detection in complex social networks
 

More from Vani Kandhasamy

Java Basics - Part2
Java Basics - Part2Java Basics - Part2
Java Basics - Part2
Vani Kandhasamy
 
Java Basics - Part1
Java Basics - Part1Java Basics - Part1
Java Basics - Part1
Vani Kandhasamy
 
Introduction to OOP
Introduction to OOPIntroduction to OOP
Introduction to OOP
Vani Kandhasamy
 
Economic network analysis - Part 2
Economic network analysis - Part 2Economic network analysis - Part 2
Economic network analysis - Part 2
Vani Kandhasamy
 
Economic network analysis - Part 1
Economic network analysis - Part 1Economic network analysis - Part 1
Economic network analysis - Part 1
Vani Kandhasamy
 
Cascading behavior in the networks
Cascading behavior in the networksCascading behavior in the networks
Cascading behavior in the networks
Vani Kandhasamy
 
Link Analysis
Link AnalysisLink Analysis
Link Analysis
Vani Kandhasamy
 
Network Models
Network ModelsNetwork Models
Network Models
Vani Kandhasamy
 
Representing & Measuring networks
Representing & Measuring networksRepresenting & Measuring networks
Representing & Measuring networks
Vani Kandhasamy
 
Cache optimization
Cache optimizationCache optimization
Cache optimization
Vani Kandhasamy
 

More from Vani Kandhasamy (10)

Java Basics - Part2
Java Basics - Part2Java Basics - Part2
Java Basics - Part2
 
Java Basics - Part1
Java Basics - Part1Java Basics - Part1
Java Basics - Part1
 
Introduction to OOP
Introduction to OOPIntroduction to OOP
Introduction to OOP
 
Economic network analysis - Part 2
Economic network analysis - Part 2Economic network analysis - Part 2
Economic network analysis - Part 2
 
Economic network analysis - Part 1
Economic network analysis - Part 1Economic network analysis - Part 1
Economic network analysis - Part 1
 
Cascading behavior in the networks
Cascading behavior in the networksCascading behavior in the networks
Cascading behavior in the networks
 
Link Analysis
Link AnalysisLink Analysis
Link Analysis
 
Network Models
Network ModelsNetwork Models
Network Models
 
Representing & Measuring networks
Representing & Measuring networksRepresenting & Measuring networks
Representing & Measuring networks
 
Cache optimization
Cache optimizationCache optimization
Cache optimization
 

Recently uploaded

一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
mzpolocfi
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
haila53
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
74nqk8xf
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
rwarrenll
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
slg6lamcq
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
NABLAS株式会社
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
u86oixdj
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
mbawufebxi
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
roli9797
 
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdfEnhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
GetInData
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
u86oixdj
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
oz8q3jxlp
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
Roger Valdez
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
AbhimanyuSinha9
 
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdfUnleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Enterprise Wired
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
javier ramirez
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
v3tuleee
 
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTESAdjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Subhajit Sahu
 

Recently uploaded (20)

一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
 
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdfEnhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
 
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdfUnleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
 
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTESAdjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
 

Community detection-Part2

  • 1. Social and Economic Network Analysis UNIT – III SOCIAL NETWORK ANALYSIS
  • 3. Homophily NETWORKS, CROWDS AND MARKETS - CHAPTER 4 4/20/2021 VANI KANDHASAMY, PSGTECH 3
  • 4. Homophily ▪“Birds of feather flock together” ▪Similarity begets friendship – Plato ▪People loves those who are like themselves - Aristotle ▪Homophily - we tend to be similar to our friends 4/20/2021 VANI KANDHASAMY, PSGTECH 4
  • 5. Homophily ▪Links in a social network tend to connect people who are similar to one another oImmutable characteristics: racial and ethnic groups; ages; etc. oMutable characteristics: places living, occupations, levels of affluence, and interests, beliefs, and opinions; etc ▪Friendship through common friend – Triadic closure (network structure) ▪Friendship through common school/college/job/interest – Contextual features 4/20/2021 VANI KANDHASAMY, PSGTECH 5
  • 6. Homophily Test ▪Consider a random network G = (V, E) where each node is assigned male with probability p, and female with probability 1 - p ▪Consider any edge (i, j) Ꜫ E of this random network G ▪Both ends of edge will be male/female with probability p2 / (1-p)2 ▪Let random variable Xij = 1 if it is a cross-edge, and Xij = 0 otherwise ▪Then Xij is a Bernoulli random variable such that P(Xij = 1) = 2p(1 - p) Homophily Test: If the fraction of cross-gender edges is significantly less than 2p(1 - p), then there is evidence for homophily 4/20/2021 VANI KANDHASAMY, PSGTECH 6
  • 7. Homophily Test ▪p = 2/3 and the fraction of cross- gender edges is 5/18 ▪On the other hand the fraction of cross-gender edges in the random network = 2p(1 - p) = 4/9 = 8/18 ▪Note that 5/18 < 8/18 showing evidence of homophily 4/20/2021 VANI KANDHASAMY, PSGTECH 7
  • 8. Homophily SOCIAL INFLUENCE ▪Influenced by the people we are connected to ▪Socialization – existing links shapes people’s interest SELECTION ▪We select friends who are similar to us ▪Formation of new links 4/20/2021 VANI KANDHASAMY, PSGTECH 8
  • 9. Affiliation Networks ▪Affiliation networks are examples of a class of graphs called bipartite graphs ▪Affiliation networks represents the participation of a set of people in a set of foci 4/20/2021 VANI KANDHASAMY, PSGTECH 9
  • 10. Affiliation Networks Triadic closure: The formation of the link between B and C with common friend A Focal closure (selection): The formation of the link between B and C with common interest A Membership closure (social influence): The formation of the link between B and C influenced by a friend A 4/20/2021 VANI KANDHASAMY, PSGTECH 10
  • 11. Affiliation Networks Triadic Closure Focal Closure Membership Closure 4/20/2021 VANI KANDHASAMY, PSGTECH 11
  • 12. Community Detection SOCIAL AND ECONOMIC NETWORKS - CHAPTER 13 4/20/2021 VANI KANDHASAMY, PSGTECH 12
  • 13. Stochastic Block Models ▪Posterior Block modelling: By examining how network is generated from underlying community structure one can detect communities in network ▪Goal: Define a model that can generate networks oThe model will have a set of “parameters” that we will later used to detect communities Given a set of nodes, how do communities “generate” edges of the network? 4/20/2021 VANI KANDHASAMY, PSGTECH 13
  • 14. Stochastic Block Models 1. Given the communities, generate the network using the model 2. Given a network, find the “best” community using the model developed C A B D E H F G C A B D E H F G Generative model C A B D H C A B D H Generative model 4/20/2021 VANI KANDHASAMY, PSGTECH 14
  • 15. Community-Affiliation Graph Generative model B(V, C, M, {pc}) for graphs: ◦ Nodes V, Communities C, Memberships M ◦ Each community c has a single probability pc ◦ Later we fit the model to networks to detect communities Model Network Communities, C Nodes, V Model pA pB Memberships, M 4/20/2021 VANI KANDHASAMY, PSGTECH 15
  • 16. AGM: Generative Process ◦ For each pair of nodes in community 𝑨, we connect them with prob. 𝒑𝑨 ◦ The overall edge probability is:    − − = v u M M c c p v u P ) 1 ( 1 ) , ( If 𝒖, 𝒗 share no communities: 𝑷 𝒖, 𝒗 = 𝜺 𝑴𝒖 … set of communities node 𝒖 belongs to 4/20/2021 VANI KANDHASAMY, PSGTECH 16
  • 17. Detecting Communities C A B D E H F G Given a Graph 𝑮(𝑽, 𝑬), find the Model 1. Affiliation graph M 2. Number of communities C 3. Parameters pc 4/20/2021 VANI KANDHASAMY, PSGTECH 17
  • 18. Maximum Likelihood Estimation Given: Data 𝑿 Assumption: Data is generated by some model 𝒇(𝚯) 𝒇 … model 𝚯 … model parameters Want to estimate: 𝑷𝒇 𝑿 𝚯) The probability that our model 𝒇 (with parameters 𝜣) generated the data 𝑿 We need to find the most likely model that could have generated the data: arg max Θ 𝑷𝒇 𝑿 𝚯) 4/20/2021 VANI KANDHASAMY, PSGTECH 18
  • 19. Example: MLE Imagine we are given a set of coin flips Task: Figure out the bias of a coin! ◦ Data: Sequence of coin flips: 𝑿 = [𝟏, 𝟎, 𝟎, 𝟎, 𝟏, 𝟎, 𝟎, 𝟏] ◦ Model: 𝒇 𝚯 = return 1 with prob. Θ, else return 0 ◦ What is 𝑷𝒇 𝑿 𝚯 ? Assuming coin flips are independent ◦ So, 𝑷𝒇 𝑿 𝚯 = 𝑷𝒇 𝟏 𝚯 ∗ 𝑷𝒇 𝟎 𝚯 ∗ 𝑷𝒇 𝟎 𝚯 … ∗ 𝑷𝒇 𝟏 𝚯 ◦ Then, 𝑷𝒇 𝑿 𝚯 = 𝚯𝟑 𝟏 − 𝚯 𝟓 ◦ For example: ◦ 𝑷𝒇 𝑿 𝚯 = 𝟎. 𝟓 = 𝟎. 𝟎𝟎𝟑𝟗𝟎𝟔 ◦ 𝑷𝒇 𝑿 𝚯 = 𝟑 𝟖 = 𝟎. 𝟎𝟎𝟓𝟎𝟐𝟗 ◦ Data 𝑿 was most likely generated by coin with bias 𝚯 = 𝟑/𝟖 𝑷 𝒇 𝑿 𝚯 𝚯 𝚯∗ = 𝟑/𝟖 4/20/2021 VANI KANDHASAMY, PSGTECH 19
  • 20. Maximum Likelihood Estimation Goal: Find 𝚯 = 𝑩(𝑽, 𝑪, 𝑴, 𝒑𝑪 ) such that: How do we find 𝑩(𝑽, 𝑪, 𝑴, 𝒑𝑪 ) that maximizes the likelihood? Finding B means finding the bipartite affiliation network  P( | ) AGM arg max  𝑮 4/20/2021 VANI KANDHASAMY, PSGTECH 20
  • 21. Maximum Likelihood Estimation Given graph G(V,E) and Θ, we calculate likelihood that Θ generated G: P(G|Θ) 0 0.9 0.9 0 0.9 0 0.9 0 0.9 0.9 0 0.9 0 0 0.9 0 Θ=B(V, C, M, {pc}) 0 1 1 0 1 0 1 0 1 1 0 1 0 0 1 0 G P(G|Θ) G A B arg max 𝐵(𝑽,𝑪,𝑴, 𝒑𝑪 ) ෑ 𝒖,𝒗∈𝑬 𝑷 𝒖, 𝒗 ෑ 𝒖𝒗∉𝑬 (𝟏 − 𝑷 𝒖, 𝒗 ) 4/20/2021 VANI KANDHASAMY, PSGTECH 21