University of Sydney · FACULTY OF STATISTICS

DATA4207 · Data Analysis in the Social Sciences

- one subject, every graph, every model, every mark
Statistics14 Chapters9-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 12 of 13 · DATA4207

Communication Analyses: Content, Networks and Text as Data

Week 12 introduces methods for analysing communication and unstructured data: content analysis of media, social network analysis to map relationships and information flow, feature selection to keep the most relevant variables, and text-as-data with tidytext. The emphasis is how these blend qualitative and quantitative insight from large digital datasets — turning text and ties into something you can model, and choosing which variables actually matter.

In this chapter

What this chapter covers

  • 01Content analysis: systematic examination of communication patterns to track opinion and values over time (tidytext)
  • 02Text-as-data: tokenise → bag-of-words / document-term matrix → count or tf-idf → analyse
  • 03Social network analysis (SNA): nodes and edges; degree, centrality, density, communities
  • 04How SNA reveals group dynamics and information flow between actors
  • 05Feature selection: identifying the most relevant variables to reduce complexity while keeping information
  • 06Feature-selection method families: correlation, mutual information (mRMR), LASSO/ridge/elastic net, random-forest importance, stepwise
  • 07Aggregating and ranking variable importance (mean/median/Borda rank aggregation)
  • 08Combining qualitative and quantitative insight from communication data
Worked example · free

From text to a document-term matrix

Q [4 marks]. Two short documents share the vocabulary {policy, jobs, tax}. Document A is 'policy jobs jobs' and Document B is 'tax tax policy'. Build the bag-of-words vectors, explain what you can now do with them, and name one way to keep only the most informative features. (4 marks; invented example.)
  • +1Tokenise each document and fix a shared vocabulary in order: {policy, jobs, tax}. Every document becomes a vector indexed by this vocabulary.
  • +1Count term frequencies: Document A = (policy 1, jobs 2, tax 0) → (1, 2, 0); Document B = (policy 1, jobs 0, tax 2) → (1, 0, 2). Stacking these rows gives the document-term matrix.
  • +1Now each document is a numeric vector, so you can compute similarity (e.g. cosine similarity), weight terms by tf-idf to down-weight ubiquitous words, or feed the matrix into a model — this is what 'text as data' means.
  • +1Feature selection: with many terms/variables, keep only the most informative ones — via LASSO, random-forest (permutation) importance, or a mutual-information method such as mRMR — to cut redundancy while retaining signal.
Document A = (1, 2, 0) and Document B = (1, 0, 2) over {policy, jobs, tax}; the matrix turns text into vectors you can compare (cosine similarity), weight (tf-idf) or model, and feature selection (LASSO, random-forest importance, mRMR) trims the vocabulary to the informative terms. Marks reward the correct counts, the 'text becomes a modellable vector' point, and a named feature-selection method.
Sia tip — A bag-of-words vector ignores word order — it is just counts over a shared vocabulary. Ask Sia to walk you through building a document-term matrix and choosing a feature-selection method, step by step; it explains the method and does not do your graded assessment.
Glossary

Key terms

Content analysis
The systematic examination of communication patterns in media or text to track changes in public opinion and values over time, done in R via tidy text mining (tidytext).
Bag-of-words / document-term matrix
A representation of text as vectors of term counts over a shared vocabulary (word order discarded). Rows are documents, columns are terms; the values can be raw counts or tf-idf weights.
Social network analysis (SNA)
A framework for mapping social structures as nodes (actors) and edges (ties), using measures like degree, centrality, density and communities to reveal group dynamics and information flow.
Centrality
A family of SNA measures (degree, betweenness, closeness, eigenvector) capturing how important or well-connected a node is within the network.
Feature selection
Choosing the most relevant variables to reduce complexity while keeping essential information, using correlation, mutual information (mRMR), LASSO/ridge/elastic net, random-forest importance or stepwise methods.
tf-idf
Term frequency-inverse document frequency, a weighting that boosts terms distinctive to a document and down-weights terms common across all documents, sharpening a document-term matrix for analysis.
FAQ

Communication Analyses: Content, Networks and Text as Data FAQ

How does text become something I can analyse statistically?

You tokenise the text, fix a shared vocabulary, and count how often each term appears in each document, producing a document-term matrix — each document is now a numeric vector. From there you can measure similarity, apply tf-idf weighting, cluster documents, or model the matrix. The unit keeps this at a conceptual level with tidytext, but the core idea is that text is data once it is vectorised.

What does social network analysis actually measure?

It represents actors as nodes and their relationships as edges, then quantifies structure: how connected each node is (degree), how central or influential it is (betweenness, closeness, eigenvector centrality), how dense the network is, and which clusters or communities form. This reveals group dynamics and how information flows between people or organisations.

Why do I need feature selection?

Because real datasets have many variables, most of which add noise or redundancy. Feature selection keeps the most informative ones — via LASSO, random-forest importance, mutual information and similar methods — which reduces overfitting, improves interpretability, and makes large social datasets manageable. Importance rankings can be aggregated across methods for a more robust choice.

Can AI help me with text and network analysis in DATA4207?

Yes, as a study aid. Sia can explain content analysis, the bag-of-words and tf-idf ideas, SNA measures, and feature-selection methods, and walk you through a small example step by step. It teaches the method and checks your reasoning; it does not do graded work, and University of Sydney academic-integrity rules apply — confirm on Canvas whether AI is permitted for a task.

Study strategy

Assessment move

Keep this week conceptual but concrete. For text-as-data, build a tiny document-term matrix by hand so the 'text becomes a vector' idea is solid, then note how tf-idf and cosine similarity extend it. For SNA, learn the vocabulary — nodes, edges, degree, centrality, density, communities — and what each reveals about information flow. For feature selection, be able to name a few method families (LASSO, random-forest importance, mutual information/mRMR) and say why trimming variables helps. These methods rarely form a whole assessment on their own, but they widen the toolkit you can justify in the individual report, so link each to a question it could answer. Confirm what is assessable on Canvas.

Working through Communication Analyses: Content, Networks and Text as Data in DATA4207? Sia is AskSia’s AI Statistics tutor — ask any DATA4207 Communication Analyses: Content, Networks and Text as Data question and get a clear, step-by-step explanation grounded in how DATA4207 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 14 of your University of Sydney subjects - and 1,000+ Bibles across every Australian university.
Sia - your DATA4207 tutor, unlimited, worked the way the exam marks it
The full 9-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$25/ month
30-day money-back · cancel in one tap · how it works
Unlock the full DATA4207 Bible + 14 University of Sydney subjects解锁完整 DATA4207 Bible + University of Sydney 14 门科目
$25/mo