Document-Topic Distribution
A news article about a stadium financing dispute is not purely about sport and not purely about municipal budgets — it is some of both. A document-topic distribution is the number that says how much of each: a list of proportions over the topics a model discovered, one list per document, summing to one.
Where the numbers come from
In LDA this is the per-document mixture, drawn from a Dirichlet prior and then fitted to the words actually observed; its partner is the topic-word distribution. Reading one takes a little practice:
- A vector like 0.62 on topic 4 and 0.31 on topic 9 says two themes dominate. The human-readable labels come from each topic's top words, which you assign yourself.
- The prior's concentration controls how peaked the mixture is — low values push documents towards one or two topics, high values spread them thin.
- A document is never assigned to a topic; it is weighted across all of them, which is what separates topic modelling from clustering.
What it is used for
gensim's LDA implementation returns exactly this vector, and it doubles as a compact feature representation — a few hundred dimensions in place of a fifty-thousand-column document-term matrix. It drives recommendation by theme, exploration of a decade of filings, and document similarity measured as distance between mixtures.
Why it matters
This is what topic modelling actually tells you about one specific document. The mixture is only as meaningful as the topics behind it: if the topic count is wrong or the topics are incoherent, you have a precise number over nothing, so check topic coherence before trusting the proportions.
A document-topic distribution is the vector of proportions a topic model assigns to a single document — how much of it belongs to each discovered topic, summing to one. In LDA it is the per-document mixture shaped by a Dirichlet prior. It serves both as the model's interpretable output for one document and as a low-dimensional feature vector replacing a sparse count representation for similarity and clustering.
Pick up a magazine article and ask what it is about. You rarely get one clean answer. A piece on a new stadium deal might be half sport, a third local politics and a little bit money.
A document-topic distribution is software writing that mixture down as percentages. The program has already worked out, by itself, the handful of themes running through a whole collection of documents. For each document it then reports how much of each theme is present. That is what lets a site group articles that feel related, or show you a decade of reports sorted by what they are mostly about — without anyone reading them first.