SlideShare une entreprise Scribd logo
1  sur  21
Télécharger pour lire hors ligne
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

Contenu connexe

Similaire à 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 networksIJCSIS Research Publications
 
SocialCom09-tutorial.pdf
SocialCom09-tutorial.pdfSocialCom09-tutorial.pdf
SocialCom09-tutorial.pdfBalasundaramSr
 
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 NetworksIJCSIS 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 NetworkWaqas Tariq
 
Community detection in complex social networks
Community detection in complex social networksCommunity detection in complex social networks
Community detection in complex social networksAboul Ella Hassanien
 

Similaire à Community detection-Part2 (15)

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
 
Duke talk
Duke talkDuke talk
Duke talk
 
Relationships In Wbs Ns (Tin180 Com)
Relationships In Wbs Ns (Tin180 Com)Relationships In Wbs Ns (Tin180 Com)
Relationships In Wbs Ns (Tin180 Com)
 
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
 
Network Models
Network ModelsNetwork Models
Network Models
 
Community detection in complex social networks
Community detection in complex social networksCommunity detection in complex social networks
Community detection in complex social networks
 

Plus de Vani Kandhasamy

Economic network analysis - Part 2
Economic network analysis - Part 2Economic network analysis - Part 2
Economic network analysis - Part 2Vani Kandhasamy
 
Economic network analysis - Part 1
Economic network analysis - Part 1Economic network analysis - Part 1
Economic network analysis - Part 1Vani Kandhasamy
 
Cascading behavior in the networks
Cascading behavior in the networksCascading behavior in the networks
Cascading behavior in the networksVani Kandhasamy
 
Representing & Measuring networks
Representing & Measuring networksRepresenting & Measuring networks
Representing & Measuring networksVani Kandhasamy
 

Plus de Vani Kandhasamy (9)

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
 
Representing & Measuring networks
Representing & Measuring networksRepresenting & Measuring networks
Representing & Measuring networks
 
Cache optimization
Cache optimizationCache optimization
Cache optimization
 

Dernier

Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% SecurePooja Nehwal
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxfirstjob4
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxolyaivanovalion
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxolyaivanovalion
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionfulawalesam
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Delhi Call girls
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystSamantha Rae Coolbeth
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfMarinCaroMartnezBerg
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 

Dernier (20)

Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptx
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data Analyst
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 

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