Introduction
The possibility of two events occurring at the same time is known as joint probability. To better know the concept, we should take a closer look at marginal distribution and conditional distribution into detail.
Main Difference
- Marginal Distribution: A marginal distribution considers a subset of variables. (What distribution would I get for
if I ignored ?) - Conditional Distribution: A conditional distribution fixes a subset of variables. (What distribution would I get for
if I set ?)
To summarise what this is attempting to say, conditional distributions are concerned with determining probability for certain subsets of the population under consideration. They deal with determining the probability of one random variable given certain restrictions on the second random variable given two jointly distributed random variables. To put it in other words, a marginal distribution is the distribution of one random variable without any reference to the second random variable.
Marginal Distribution
For
For continuous values, integrate out the others:
Conditional Distribution
For both discrete and continuous, divide joint by marginal. The “given” is denoted using the pipe “|”” operator.
For continuous values, integrate out the others:
Real-life Example
In a sample space with more than two events, if only the probability of a particular event occurring individually is considered, it is called the marginal probability. For example,
: person who is from UoS : person who is from NCHU : person who is male : person who is female
Male | Female | Sum | |
---|---|---|---|
UoS | |||
NCHU | |||
Sum |
where
Product Rule and Bayes’ Rule
- Product Rule:
In probability theory, product rule also called chain rule, which allows you to calculate any member of a collection of random variables’ joint distribution using just conditional probabilities. The rule is useful in the study of Bayesian networks, which are probabilistic networks that characterise a probability distribution using conditional probabilities.
- Bayes’ Rule
In probability theory and statistics, Bayes’ rule describes the probability of an event, based on prior knowledge of conditions that might be related to the event.
Conclusions
The marginal probability is the probability of a single event occurring, independent of other events. A conditional probability, on the other hand, is the probability that an event occurs given that another specific event has already occurred. This means that the calculation for one variable is dependent on another variable.