Applications of social network analysis
Applications of social network analysis (SNA) show how network measures and models are used in security, science, marketing, health and fraud detection; this note explains main application classes, exact definitions, a key theorem (submodularity of influence), formulas, worked exam-style examples, c
Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
Social network analysis (SNA) helps an engineer turn relationships and interactions into actionable decisions: for example, finding key people in a covert network, choosing seed users for viral marketing, detecting fraud or outages in infrastructure, or modelling disease spread. Engineers use SNA to prioritise resources, design algorithms and evaluate interventions where connections matter.
Key ideas
Definitions (first principles) — bold terms are defined here.
- Social network: a set of nodes (actors, users, devices) and edges (ties, links) that represent relationships or interactions among nodes. Assumption: edges can be directed or undirected and may have weights.
- Application of SNA: using network representations, measures and algorithms to solve real problems (e.g., detection, ranking, recommendation, prediction) where relations change outcomes.
- Influence maximization: given a network and a diffusion model, choose a set S of k seed nodes to maximise the expected number of nodes eventually influenced. Assumptions: a specified diffusion model (e.g. Independent Cascade) and a budget k.
- Covert network: a network representing hidden or illegal organisations (e.g., terrorist cells); edges may be inferred and noisy. Assumption: data is incomplete and links may be intentionally concealed.
- Anomaly detection in networks: identifying nodes, edges or subgraphs that deviate from normal structural patterns (sudden degree change, unusual community membership). Assumption: there is a baseline normal model or historical data.
Important theorem used in applications (stated as normally presented in exam answers):
- Theorem (Monotonicity and Submodularity of expected spread under the Independent Cascade model): Let sigma(S) be the expected number of activated nodes when seeds are S under the Independent Cascade (IC) model with independent edge activation probabilities. Then sigma(S) is a monotone non-decreasing and submodular set function. Assumptions: IC model with independent activation trials; expectation over all stochastic outcomes.
- Exact definitions used in statement: monotone means if A ⊆ B then sigma(A) ≤ sigma(B). submodular means for any A ⊆ B and any node v not in B, sigma(A ∪ {v}) - sigma(A) ≥ sigma(B ∪ {v}) - sigma(B) (diminishing returns).
- Proof sketch (exam-style, stepwise):
- Represent the IC process as first sampling for each directed edge whether it will ever succeed (a live-edge graph). This is a standard coupling: for each edge independently keep it with its activation probability p and remove otherwise.
- For a fixed sampled live-edge graph, the set of nodes reachable from seed set S is deterministic, so reachability is monotone and the marginal gain from adding v to S is the number of extra nodes reachable through v that were not reachable before. For reachability in a fixed graph, marginal gains are clearly diminishing as the seed set grows.
- Expected value over the random live-edge graphs preserves monotonicity and submodularity because expectation is a linear operator over the (finite) sample space. Therefore sigma(S) is monotone and submodular.
- Consequence used in applications: a simple greedy algorithm that iteratively adds the node with maximum marginal gain achieves a (1 - 1/e) approximation to the optimal sigma(S) for cardinality constraint k (proof uses standard submodular maximisation bounds). Assumptions: non-negative monotone submodular function and unit-cost additions. Finding the optimal seed set under IC/LT is NP-hard, so such approximation guarantees are important in practice.
How applications map to measures and algorithms (briefly):
- To find “important” actors in a covert or collaboration network engineers use centrality measures (degree, betweenness, eigenvector/PageRank) and compare results; for covert networks, robustness to missing data and use of metadata matters.
- For information spread and viral marketing, use diffusion models (Independent Cascade, Linear Threshold) and influence maximization algorithms; rely on the submodularity theorem for greedy approximation.
- For epidemiology and public health, use compartmental models (SIR, SIS) on contact networks rather than mean-field; simulate or perform threshold analyses to plan vaccination or quarantine. On networks, a common SIS epidemic threshold approximation is beta/gamma > 1 / lambda_max(A) (largest eigenvalue of the adjacency matrix), which guides immunization strategies.
- For recommendation and link prediction, use similarity measures, common neighbours, Adamic/Adar, and supervised learning on edge features extracted from networks.
- For anomaly/fraud detection, monitor structural changes (sudden degree bursts, new bridges between communities) and use community detection + deviation scoring.
Diagram to draw for exam answers (describe exactly):
- Draw an undirected graph with five nodes labeled 1,2,3,4,5. Draw edges: 1–2, 1–3, 2–3, 3–4, 4–5. Label degrees beside each node and draw arrows for counting shortest paths through node 3 when explaining betweenness.
Formulas
SIR: dS/dt = -beta * S * I / N — beta: infection rate (1/time, e.g., 1/day), S: susceptible count (persons), I: infected (persons), N: total persons (persons). Applies in compartmental SIR model with homogeneous mixing.
SIR: dI/dt = beta * S * I / N - gamma * I — gamma: recovery rate (1/time). Applies when recovered individuals gain immunity.
SIR: dR/dt = gamma * I — R: recovered count (persons). Applies in SIR. At disease-free start (S≈N), the basic reproduction number R0 = beta/gamma; outbreaks grow if R0 > 1.
PageRank: PR(v) = (1 - d)/N + d * sum_{u in In(v)} PR(u) / outdeg(u) — PR(v): PageRank score of node v (dimensionless), d: damping factor (dimensionless, typical 0.85), N: number of nodes (count), In(v): in-neighbours of v, outdeg(u): out-degree of u (count). Applies to link analysis and ranking. Handle dangling nodes (outdeg(u)=0) by treating them as linking uniformly to all nodes (redistribute their score uniformly each iteration).
Greedy guarantee: sigma(S_greedy) >= (1 - 1/e) * sigma(S_opt) — sigma(): expected spread, S_greedy: set from greedy algorithm, S_opt: optimal set. Dimensionless counts. Applies when sigma is non-negative, monotone and submodular and costs are unit.
Expected spread for small IC graph: compute by enumerating probabilities. (No single formula — follow enumeration in example.)
Normalization for undirected betweenness centrality: CB_norm(v) = CB(v) / ((n-1)(n-2)/2) — CB(v): raw betweenness = sum over unordered pairs s,t (excluding v) of sigma_st(v)/sigma_st (fraction of shortest paths via v), n: number of nodes. Dimensionless. Applies for undirected simple graphs.
Worked examples
Example 1 — Covert network: identify important node (theory-style model answer) Question: Given undirected network with nodes 1..5 and edges 1–2, 1–3, 2–3, 3–4, 4–5, identify a key node to disrupt communication and justify. Answer (model): Step 1: compute degrees: deg(1)=2, deg(2)=2, deg(3)=3, deg(4)=2, deg(5)=1. Step 2: compute betweenness for node 3. Consider all unordered pairs not containing 3: (1,2),(1,4),(1,5),(2,4),(2,5),(4,5) total 6 pairs. Shortest paths passing through 3 are: (1,4),(1,5),(2,4),(2,5) = 4 pairs. So raw betweenness CB(3)=4. Normalised CB_norm(3)=4/((5-1)(5-2)/2)=4/6=0.6667. Interpretation: Node 3 has highest degree and highest betweenness; removing node 3 disconnects node 5 from 1 and 2. Therefore choose node 3 to disrupt communication. Note assumption: data is complete; in covert settings verify robustness to missing edges.
Example 2 — Influence spread under IC (numerical) Question: Directed graph: A->B (p=0.5), A->C (0.5), B->D (0.5), C->D (0.5). Compute expected spread sigma({A}). Answer: Step 1: A is active (count 1). Step 2: B activated with probability 0.5; C activated with probability 0.5. Step 3: compute probability D activated. Cases: none activated (prob 0.25) => D not activated. B only (prob 0.25) => D activated with prob 0.5. C only (0.25) => D activated with prob 0.5. Both activated (0.25) => D activated with prob 1 - (1-0.5)(1-0.5) = 0.75. So P(D activated) = 0.250.5 + 0.250.5 + 0.250.75 = 0.4375. Expected active count = 1 (A) + 0.5 (B) + 0.5 (C) + 0.4375 (D) = 2.4375. Final answer: Expected spread = 2.4375 nodes.
Example 3 — Short note answer demanded in exam (model answer) Question: Describe two real-world applications of SNA and one caveat for each. Model answer: (1) Viral marketing: choose seed users to maximise adoption using influence maximization under IC/LT models (caveat: real influence probabilities are hard to estimate and diffusion assumptions may fail). (2) Fraud detection: detect communities that suddenly exchange high-value transactions (caveat: legitimate bursts and seasonal changes cause false positives unless contextual features included).
Common mistakes
- In influence calculations, double-counting probabilities (not using mutually exclusive cases or failing to condition on earlier activations).
- Applying greedy approximation without noting submodularity assumptions (must show sigma is monotone and submodular under the chosen diffusion model).
- Treating static metrics as sufficient in dynamic problems: time ordering of edges matters in temporal networks.
For your exam
Question types you will see: definition questions (define covert network, influence maximization), short notes (applications in health or marketing), derivations (prove monotonicity/submodularity under IC), numericals (compute expected spread on small graph, compute centrality values), and diagram questions (draw a small graph and mark nodes to remove for disruption). What full-marks answers include:
- Clear definitions using bolded term names, model assumptions stated explicitly.
- When proving theorems, give precise steps: construction of live-edge graphs, argument for diminishing returns, and conclusion on greedy guarantee.
- For numericals: list given probabilities/numbers, show each step of probability enumeration or shortest-path counts, carry units (counts) and give a final bold numeric answer.
- For applied essays: describe data quality caveats, computational complexity, and practical constraints (privacy, missing data).
Quick check
- Define influence maximization in one sentence.
- Under the Independent Cascade model, is expected spread monotone, submodular, both or neither?
- In the five-node exam graph (1–2,1–3,2–3,3–4,4–5), what is the degree of node 3 and its normalized betweenness centrality (to 4 decimal places)? Answers: Influence maximization = choose k seed nodes to maximise expected number of nodes influenced under a specified diffusion model; both monotone and submodular; degree(3)=3, normalized betweenness≈0.6667.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?