Explain the fundamental difference between joint probability and conditional probability with a suitable example. Mention two applications of each type of probabilistic model.
What's actually being asked
Define joint vs. conditional probability precisely, show the difference with an example, and give two applications of models built on each.
Answer
Joint probability
P(x, y) is the probability that both events x and y happen together, with no event treated as "given." It describes the full picture of how two (or more) variables co-occur.
Example: let x = "patient has fever" and y = "patient has flu". P(x, y) is the probability that a randomly picked patient has both fever and flu simultaneously.
Conditional probability
P(y|x) is the probability of y given that x is already known/observed. It's a probability over a restricted world — only the subset of cases where x is true.
Same example: P(y|x) is the probability that a patient has flu, restricted to the patients who already have fever. This is usually a larger number than P(x,y) alone, because conditioning narrows the sample space rather than asking about two things jointly.
The fundamental difference
Joint probability asks "how likely are both together, out of everyone," while conditional probability asks "given I already know one happened, how likely is the other." They're related by the basic identity:
P(x, y) = P(y|x) · P(x) = P(x|y) · P(y)
— this identity is exactly what lets you convert one into the other, and it's the seed of Bayes' theorem (see Q7).
Two applications of joint-probability-based (generative) models
- Naïve Bayes classification — models
P(x,y) = P(y)·P(x|y)(feature likelihoods times class prior) to classify documents/emails, then uses Bayes' theorem to getP(y|x). - Bayesian networks — model a joint distribution over many correlated variables (e.g., symptoms and diseases in a medical diagnosis network) to reason about any variable given any subset of others.
Two applications of conditional-probability-based (discriminative) models
- Logistic regression / SVM classification — directly models
P(y|x)(or a decision function) without ever modeling howxitself is distributed; used for spam detection, credit risk scoring. - Autoregressive language modeling — a transformer-based LLM predicts
P(next word | previous words)directly at each generation step, never explicitly modeling the joint distribution of entire sentences.
Why the distinction matters beyond definitions
This is the exact same split that separates generative and discriminative learning paradigms (see Q5–Q7): a model built on the joint P(x,y) can answer any probabilistic question about the data — including generating new x — because the joint contains everything. A model built only on P(y|x) answers one narrow question very well (what's the label?) but has no notion of how likely a given x even is on its own, so it can't generate anything or detect "this input looks nothing like anything I've seen."
Exam tip
If the question gives (or implies) numbers but the source text dropped them, don't invent realistic-looking statistics — state the method with clearly-labelled illustrative numbers instead. Here, the identity P(x,y) = P(y|x)P(x) is the one line examiners most want to see written explicitly.