In a topic model, why do we describe each document as a mixture of topics, and each topic as a list of favourite words, and what is a tiny example?

Probabilistic models, Topic models (LDA)
Level L1 Beginner. Length Short. Nature Th Theoretical.

What's being asked

Whether you grasp the basic picture behind topic models: hidden topics, word preferences and per-document mixtures.

Key idea

A topic is a set of words that tend to appear together, described by how likely each word is under that topic. A document is a blend of a few topics, with a percentage for each. The words we see are produced by picking a topic and then a word from it; the topics and percentages are hidden and must be learned.

Steps

  1. Think of a newspaper article about the cricket board's budget. Part of it is about sport and part about politics, so one article is not about only one thing.
  2. A topic is a list of words with how much it likes each. A "sport" topic likes words such as match, team and score. A "politics" topic likes vote, minister and budget.
  3. A document is a mixture of topics, with percentages that add up to 100%. Say this article is 70% sport and 30% politics.
  4. Tiny calculation: to write each word, first pick a topic using these percentages, then pick a word that topic likes. In a 100-word article, about 0.7×100=70 words come from the sport topic and 30 from the politics topic.
  5. We only see the words. A topic model such as LDA (latent Dirichlet allocation) works backwards: it learns the topics and each document's percentages that best explain the words we observed.

Common mistakes

How long your answer should be

Under 2 minutes, 3–5 sentences.

Read this

Previous in Probabilistic models: If we believe a quantity changes smoothly, so that inputs close together have similar outputs, how can we turn the distance between two inputs into a similarity score between 0 and 1, and what does the length-scale control?
Next in Probabilistic models: Two neighbouring pixels in a photo are usually the same colour, but neither one causes the other. How can a plain undirected link with agreement scores describe this, and how are the scores turned into probabilities?