Social Network Analysis
Social Network Analysis
Social Network Analysis
Lorraine D Almeida
Social Network
A set of nodes
(actors)
- Persons
- Groups
-Organizations
- Objects
A set of relationships
- is a friend of
-is a neighbor of
Snowball Sampling
When working with a large network
choose a starting node (seed node).
Get that node, their connections and
so on until the network is the right
size for analysis.
Cons : Biased towards the part of the
network sampled, may miss other
features.
Benefits: Easy to do, common.
Random sampling
Randomly selects certain percentage of
nodes and keep all edges between them or
Randomly select a certain percentage of
edges and keep all nodes that are
mentioned
Cons
- Edge sampling biased toward high degree
nodes.
- Node sampling loses some structural
characteristics.
Relationships
- Directed or undirected
- Valued or unvalued (0/1)
One mode
All nodes are of the same
type
Students
Two mode
Nodes belong to two sets
Administrators
Societies
Undirected
Edges are not
oriented
Unvalued
Edges have no
value
Network Measures
Metrics for Networks
Density
Average Degree
Average Distance
Diameter
Density
A networks density is the ratio of the
number of edges in the network over
the total number of possible edges
between all pairs of nodes (which is
n(n-1)/2, where n is the number of
vertices ,for an undirected graph)
Average Degree
Average number of links per Person
Average Distance
Average geodesic distance between
all pairs of nodes
Network Measures
Centrality Measures
Centrality Measures
Distance
Degree Centrality
Closeness Centrality
Betweenness Centrality
Eigenvector Centrality & Pagerank
Distance
A geodesic is the shortest path
between two vertices.
The distance from vertex u to vertex
v is the length of the geodesic from u
to v.
Degree Centrality
The simplest indicator of centrality is
the number of its neighbors (degree
in a simple undirected network)
It measures how important is a node
with respect to its nearest neighbors
The degree centrality of a node is its
degree
Path
Sequence of edges connecting two
nodes
From A -> E two possible paths,
ABCE or ABDE
Betweenness Centrality
Betweenness Centrality
For a graph with n vertices, the betweenness for vertex is computed as
follows:
1.For each pair of vertices (s,t), compute all shortest paths between
them.
2. For each pair of vertices (s,t), determine the fraction of shortest paths
that pass through the vertex in question (here, vertex v).
3. Sum this fraction over all pairs of vertices (s,t).
Closeness centrality
Closeness is based on the length of
the average shortest path between a
node and all other nodes in the
network
Normalized Closeness Centrality:
Closeness Centrality
Cc(n3)= 11/23
Eigenvector Centrality
Measure of nodes importance.
Iterative matrix computation that gives more weight to
nodes if they are connected to influential nodes.
Backbone to techniques like Googles Pagerank which
ranks webpages.
Node has high score if connected to many nodes are
themselves well connected
Computed as:
Eigenvector Centrality
Eigenvector centrality Is like a recursive version of
degree centrality. The basic algorithm is as follows:
1. Start by assigning centrality score of 1 to all nodes
(v_i = 1 for all i in the network)
2. Recompute scores of each node as weighted sum of
centralities of all nodes in a node's neighborhood.
3. Normalize v by dividing each value by the largest
value
4. Repeat steps 2 and 3 until values of v stop
changing.
Centralization
Degree centralization of a network is
the variation in the degrees of
vertices divided by the maximum
degree variation which is possible in
a networks of the same size.
Freemans general formula for
centralization
Network Measures
Reciprocity
With symmetric data two actors
are either connected or not.
With directed data there are four
possible dyadic relationships:
-A and B are not connected
-A sends to B
-B sends to A
-A and B send to each other.
The ratio of the number of
relations which are reciprocated
(i.e. there is an edge in both
directions) over the total number
of relations in the network
Here it is .
Transitivity
Measures a tendency for a tie from A
to C to exist if a tie from A to B and a
tie from B to C exist.
If A B & B C & A C then the
three are transitive.
Networks with high level of
transitivity are often more stable,
balanced, harmonious
Clustering
Measures a tendency towards dense
local neighborhoods
Neighborhood: other nodes to which ego is
connected.
Size of the neighborhood: the number of
potential connection among the nodes in the
neighborhood.