CS 432/532 Web Science
Spring 2017
http://phonedude.github.io/cs532-s17/
Assignment #4
Due: 11:59pm March 2
The "friendship paradox" (http://en.wikipedia.org/wiki/Friendship_paradox)
says that your friends have more friends than you do.
1. Determine if the friendship paradox holds for my Facebook
account.* Compute the mean, standard deviation, and median of the
number of friends that my friends have. Create a graph of the
number of friends (y-axis) and the friends themselves, sorted by
number of friends (x-axis). (The friends don't need to be labeled
on the x-axis: just f1, f2, f3, ... fn.) Do include me in the graph
and label me accordingly.
* = This used to be more interesting when you could more easily download
your friend's friends data from Facebook. Facebook now requires each
friend to approve this operation, effectively making it impossible.
I will email to the list the XML file that contains my Facebook
friendship graph ca. Oct, 2013. The interesting part of the file looks
like this (for 1 friend):
Johan Bollen
It is in GraphML format: http://graphml.graphdrawing.org/
2. Determine if the friendship paradox holds for your Twitter account.
Since Twitter is a directed graph, use "followers" as value you measure
(i.e., "do your followers have more followers than you?").
Generate the same graph as in question #1, and calcuate the same
mean, standard deviation, and median values.
For the Twitter 1.1 API to help gather this data, see:
https://dev.twitter.com/docs/api/1.1/get/followers/list
If you do not have followers on Twitter (or don't have more than 50),
then use my twitter account "phonedude_mln".
Extra credit, 3 points:
3. Repeat question #1, but with your LinkedIn profile.
Extra credit, 3 points:
4. Repeat question #1, but with your own facebook profile. Explain
in detail (code, screen shots, etc.) how you got the information.
Extra credit, 1 point:
5. Repeat question #2, but change "followers" to "following"? In
other words, are the people I am following following more people?