SNA Interview Exercise
SNA Interview Exercise
Objective:
You are tasked with analyzing a social network dataset to identify key influencers, detect
communities, and recommend strategic insights based on the network's structure.
Dataset:
Exercise Steps:
1. Data Exploration and Preprocessing:
• Load the dataset and inspect it for completeness. Handle any missing data
appropriately.
• Visualize the degree distribution of the network to understand its connectivity pattern.
Key Question: What is the average number of connections per user? Are there any
outliers in terms of user activity or connections?
2. Graph Construction:
• Construct a graph using a suitable graph library (e.g., NetworkX or iGraph).
• Analyze basic properties such as:
- Network density
- Diameter of the network
- Average path length
Key Question: What insights can you draw from these metrics regarding the structure of
the social network?
5. Recommendation System:
• Using network features, design a simple recommendation system that suggests new
connections for users to improve user engagement.
Key Question: How would you design an algorithm to recommend new connections
based on graph properties? What factors would you consider in your recommendation
strategy?
Deliverables:
Code Notebook: Jupyter notebook or Python script containing the code for loading,
preprocessing, and analyzing the dataset, along with visualizations.
Executive Summary: A 1-2 page report summarizing key findings, business insights,
and recommendations based on the social network analysis.