What is a latent (hidden) variable in a probabilistic model, and why might we add one? Heights of students are recorded, but not whether each student is in the junior batch or the senior batch. If half are juniors averaging 160 cm and half are seniors averaging 170 cm, what is the overall average height?
Probabilistic models, Latent variable models
Level L1 Beginner. Length Short. Nature Th+Mat Both.
What's being asked
Whether you can explain a latent variable as something real or useful that we never observe, and see how it helps describe the data we do see.
Key idea
A latent variable is a quantity that affects the data but is never recorded. Here the batch (junior or senior) is latent: it shapes the heights, yet it is missing from the table. Adding it lets us describe messy data as a mix of simple groups. The overall average is the weighted average of the group averages.
Steps
- Define it: a latent variable is a hidden cause behind the data. We observe heights; the batch is hidden.
- Explain why add one: heights from a mixed class look odd as one group, but each batch on its own is simple. A hidden batch label explains the odd shape.
- Weight each group by its share: .
- Add: the overall average is cm. This sits between the two batch averages, as it should.
- Say what it leads to: methods such as Gaussian mixtures and EM guess the hidden group of each point from the data alone.
Common mistakes
- Thinking a latent variable is just noise or an error. It is a meaningful hidden cause, such as a group, topic or state.
- Averaging 160 and 170 without weights. This works here only because the groups are the same size; with unequal sizes you must weight by group share.
- Assuming the hidden variable is known. We only see the heights, so its value for each student must be estimated.
How long your answer should be
About 1–2 minutes; a definition, one reason and one weighted average.
Read this
Previous in Probabilistic models: What does the Markov property mean for a sequence such as daily weather? If it is sunny today, the chance that tomorrow is sunny is and the chance it is rainy is . Assume the same rule applies every day, so a sunny day is followed by a sunny one with chance . Given that today is sunny, what is the probability that tomorrow and the day after are both sunny?
Next in Probabilistic models: What is a conjugate prior, and why is the Beta prior for a coin's heads probability easy to interpret as 'imaginary extra tosses'? What is the posterior for a Beta(1, 1) prior after 3 heads and 1 tail?