CMT224 - Social Computing Problem Assignment

Download Solution Order New Solution

Assignment Task

You are tasked with analysing various datasets representing different types of social and communication behaviour. These datasets are provided as files and can be found alongside this coursework pro-forma on Learning Central. You should ONLY use the files provided as they are intentionally modified subsets of public datasets2.

Alongside the dataset files, there are 3 (THREE) IPython notebooks, named part-1.ipynb, part-2.ipynb, and part-3.ipynb, which you should solely use to complete the assignment and submit these in line with the Submission Instructions section above. The cells in each completed notebook will be ran in the order that they appear. You do not need to resubmit the dataset files.

You are required to address 16 total questions across the 3 parts. Each part is made up of 1 or 2 tasks containing multiple questions. These questions are also listed below for convenience.

For EACH question in EACH notebook:

  • Complete the cell below each question marked with “#CODE:” with the Python code needed to generate any new information you need for your answer. This information should be outputted when the cell is ran and any floating-point values should be presented to 2 decimal places unless they are less than 0.01.
  • Complete the cell below this marked with “ANSWER:” with your answer to the question, referring to the information outputted above (as well as any previous cell if needed). In doing so, briefly explain your approach and methods/measures used to answer the question and justify any choices made. Each answer cell should (ideally) be no more than 125 words.

Each question is worth 6 marks (making a total of 96/100 possible marks) and a further 4 marks (4/100) will awarded for the overall usability and readability of the notebooks submitted. Marks will be awarded using the criteria described in the Criteria for assessment section below.

You may use any Python packages locally installed or installable via pip on your University provided laptop.

“%pip install ” commands should be placed in the cell below “Install Python packages (pip only)” provided at the top of each notebook.

“import ” lines for all packages required for the notebook to be ran successfully should be placed in the cell under “Import Python packages” provided at the top of each notebook.

You may add additional cells throughout the notebooks, but this should be minimised.

Part 1: Social media behaviour data

Task 1 of 1

Examine the Graph Modelling Language (gml) files "socialmedia_cmt224_reply_network.gml" (reply network) and "socialmedia_cmt224_social_network.gml" (social network) which represent Twitter data between a sample of users over several days at the time of the Higgs boson particle discovery. Both networks are directed and share the same ids for nodes (anonymised Twitter users). However, the shared user ids are contained within the "label" attribute in the .gml files, not the node "id" attribute of each individual .gml file.

In the reply network, an edge from a node, u, to some other node,v, indicates that ???? replied to a Tweet made by v during the time period. Replies are also Tweets. Edges are weighted with the weight representing the number of times this happened over the time period.

In the social network, an edge from node u to v indicates that u follows v on the social media platform.

Using these networks, answer the following questions:

1. How does the topological structure of the reply network differ from the social network in terms of overall sparsity of edges between users and the number of connected groups of users?

2. Do the 25 users with highest number of followers also have the highest number of repliers to their Tweets?

3. To what extent does the number of followers a user has correlate with the number of users that they have replied to?

4. Do users typically ONLY reply to Tweets, are ONLY replied to, or BOTH?

5. How many users have ONLY mutual following connections AND ONLY mutual reply connections with these SAME users?

Part 2: Email behaviour data Task 1 of 2

Examine the file "emails_cmt224.edgelist" which represents email behaviour at an organisation. Each line contains two numbers, ???? and ????, separated by a blank space. Consider each number as an identifier for an individual in an organisation, with the space on each line representing that the individual, ????, sent at least one email to the other individual, ????, at some point. Model the data using an appropriate, directed network representation and answer the following questions:

1. Are the majority of connections in the entire network 'mutual' connections where emails have been exchanged at least once, or asymmetric? In comparison, how many individuals have a higher or lower ratio of mutual connections than the entire network?

2. Are occurrences of induced, connected subgraphs of 3 individuals (triads) with only mutual connections more abundant in the network than those with a mixture of asymmetric and mutual edges? What does this suggest about how mutual connections are distributed in the network?

3. Using the largest, strongly connected component (where at least one path exists between each individual and all others), could the connectivity be suggested to be reflective of a small world phenomenon in comparison to the typical connectivity of 10 comparative random networks?

Task 2 of 2

Examine the JSON file "emails_cmt224_departments.json" (departments file). Keys in the departments file represent individuals using the same ids as in the "emails_cmt224.edgelist" file in Part 2, Task 1 and the values represent a department id that the individual can be attributed to. Using the contents of the departments file in combination with the network in Part 2, Task 1, answer the following questions:

1. Using the connections that individuals have in the network, are they more likely to mix with others in their department or those with a similar number of connections?

2. Are all departments with 10 or more members more tightly connected amongst themselves in comparison to all individuals across the overall network irrespective of their department? Where in this context, 'more tightly connected' is defined as having less sparsity in the connections among members AND more clustered connections. In addition to answering the overall question as yes or no, provide a list of departments this is true for (if any) and not true for (if any).

Part 3: Peer-to-peer message behaviour data Task 1 of 2

Examine the file "p2p_msg_cmt224.csv" which represents messaging behaviour between users on a messaging platform. Each row has four columns, representing a single event where a person (person_a) messaged another person (person_b) on some date (date) at some time of day (time). From this, answer the following questions:

1. Build a suitable network to represent social connections based on the messaging behaviour that took place up to and including the first day of May. In doing so, assume that one or more messages from one person to another represents a MUTUAL underlying social connection (i.e., regardless of whether person_a messaged person_b, person_b messaged person_a, or both at some point).

2. Build another suitable network to represent social connections based on ALL message behaviour in the dataset. In doing so, assume that one or messages from

one person to another represents a MUTUAL underlying social connection (i.e., regardless of whether person_a messaged person_b, person_b messaged person_a, or both at some point). Can the social phenomenon, ‘Triadic Closure’, be supported for the common nodes that exist in both the network created from data up to and including the first day of May (i.e., from Task 1, 1) and the network built from all message behaviour?

3. Using the largest connected component of the network constructed from all data in Task 1, 2, what is the mean, median and standard deviation of the MAXIMUM degree of separation between an individual and all others?

4. What hypothetical, non-existent edges would need to be added to the network such that a message could pass along a path from any node to any other? In doing so, aim to minimise the number of edges that would be needed as well as the longest shortest path in the network as a result.

Task 2 of 2

Using the largest connected component of the social network constructed from all data in Task 1, Q2, assume the role of an outsider with complete visibility of the network that now wishes to spread a hypothetical message such that everyone in the component would know the information it contained as quickly as possible. Assume that messages will now spread in sequential timesteps using the following mechanism. If an individual is told the message at timestep ????, the individual will forward the message to all of their direct connections at timestep ????+1. Individuals can therefore be told the message more than once. From this, answer the following questions:

1. If you could only select 1 individual to tell at timestep 0, what set of nodes could you select from which would result in the message being received by everyone in the fewest timesteps as possible and what would the number of timesteps be?

2. If you had to select any 5 individuals to tell at timestep 0, what is one example set of individuals that would result in the message being received by everyone in fewer timesteps than the single individual selection in Q1? In determining your answer, use one or more appropriate network connectivity measures for each node, rather than an exhaustive search through every combination of nodes in the network.

This CMT224 - IT Computer Science has been solved by our PhD Experts at My Uni Paper.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.