1.3.13 · D5Probability & Statistics

Question bank — Joint, marginal, and conditional distributions

1,435 words7 min readBack to topic

True or false — justify

The joint contains strictly more information than the pair of marginals and .
True — the marginals throw away how the variables move together; many different joints share the same two marginals but differ in their dependence structure.
If you know both marginals and , you can always reconstruct the joint.
False — only if you also assume independence, giving ; without that assumption the coupling between and is unrecoverable.
A conditional distribution is a genuine probability distribution over .
True — after dividing the slice by it sums (or integrates) to exactly 1, so it satisfies all the axioms in the variable .
must be for continuous variables.
False — that is a density, not a probability, so like any pdf it can exceed 1 as long as it integrates to 1 over .
If and are independent then for every with .
True — independence means conditioning on changes nothing, so the conditional collapses to the marginal.
Uncorrelated random variables are always independent.
False — independence implies zero correlation, but the converse fails; e.g. with symmetric is uncorrelated yet fully dependent (see Covariance and correlation).
and are just the same thing written two ways.
False — they have different denominators ( vs ) and answer opposite questions; equating them is the prosecutor's fallacy, fixed only by Bayes' theorem.
The chain rule requires and to be dependent.
False — it holds for any joint; if they happen to be independent it simply reduces to .
Summing a conditional over all gives 1.
False — a conditional normalizes over its free variable , not the conditioning variable ; summing over has no reason to give 1.
Marginalizing out from and marginalizing out from the same joint gives the two marginals of a single consistent model.
True — both are collapses of the one joint, so they are automatically compatible; no separate consistency check is needed.

Spot the error

"To get the marginal of spam, I just read the entry from the joint table."
Wrong — a marginal is the sum over the whole row, ; picking one cell forgets the other value of the summed-out variable.
"The conditional is literally the slice of the joint."
Incomplete — that slice sums to , not 1, so it is not yet a distribution; you must divide by the marginal to renormalize (slice then rescale).
" can't be a density because reaches 4, which exceeds 1."
Wrong — densities may exceed 1; validity is about integrating to 1 over the region, and .
"Since , we know too."
Wrong — reversing the bar changes the denominator; you must convert via Bayes' theorem, and the two values genuinely differ.
" and are independent because their covariance is 0."
Wrong — zero covariance only rules out linear association; independence requires the full factorization (see Independence and conditional independence).
"To check independence I confirmed , so they're independent."
Wrong — factorization must hold for every cell ; a single matching entry can occur by coincidence while other cells disagree.
"The joint density is a probability, so is the chance of that point."
Wrong — for continuous variables any single point has probability 0; the density must be integrated over a region to yield a probability.
" depends on , therefore and are dependent."
Wrong — dependence is about whether the conditional depends on the conditioning variable ; here it doesn't, so they are independent.

Why questions

Why do we divide by the marginal rather than by some other constant when conditioning?
Because is exactly the total mass sitting in the slice, so dividing by it is the unique rescaling that makes the slice sum to 1.
Why is the marginal called "marginal"?
In a joint table the row and column sums are written in the margins, and those edge totals are precisely the single-variable distributions.
Why does the joint let you answer any question about and , but the marginals don't?
The joint records every combination's probability, so you can sum any subset you like; marginals have already discarded the co-occurrence information.
Why does the product rule give two different factorizations of the same joint?
You can peel off either variable first — or — and both must equal the joint, which is exactly what forces Bayes' theorem.
Why does the law of total probability sum over ?
Each term is the joint (chain rule), and summing the joint over marginalizes away to leave — see Marginalization and the law of total probability.
Why can two people with the same marginals still disagree about ?
The conditional depends on the joint's dependence structure, which the marginals do not pin down; identical margins allow different couplings.
Why does the Naive Bayes classifier only need conditionals given the label, not the full joint over features?
It assumes features are conditionally independent given the label, so the joint over features factorizes into a product of one-dimensional conditionals — the modelling shortcut behind Naive Bayes classifier.

Edge cases

What happens to when ?
It is undefined — you cannot condition on an event of probability zero via division, since dividing by 0 has no meaning (continuous cases need limiting definitions).
If and are independent, what does the joint table "look like"?
Every cell equals the product of its row and column margins, so the table is a rank-1 outer product with no extra structure.
What is the conditional when is a deterministic function of , say ?
It is a spike: probability 1 on and 0 elsewhere, since knowing removes all uncertainty about .
Can a marginal be uniform while the joint is highly dependent?
Yes — e.g. each uniform but perfectly correlated (); flat margins say nothing about the coupling inside the joint.
If every conditional is identical across all , what does that imply?
carries no information about , which is exactly independence: and hence .
What is the smallest joint that can still exhibit dependence?
A table already can — dependence appears the moment even one cell deviates from the product of its margins.
For a valid joint pdf on a region, must the density be positive everywhere in that region?
No — it may be zero on parts of the region (assigning them no mass); only the integral over the whole region must equal 1 and the density must stay nonnegative.
If but for a particular , is that a contradiction?
No — it just means the value never co-occurs with that , so the conditional there, perfectly consistent.

Connections

  • Bayes' theorem — the fix for every "swapped the bar" trap above.
  • Independence and conditional independence — factorization is the real test, not correlation.
  • Covariance and correlation — why uncorrelated ≠ independent.
  • Naive Bayes classifier — leans on conditional independence given the label.
  • Marginalization and the law of total probability — the "why sum over " questions.
  • Probabilistic graphical models — which conditionals factor the joint.
  • Expectation and variance — quantities computed against these distributions.