Conditional probability
From Free net encyclopedia
←Older revision | Newer revision→
This article defines some terms which characterize probability distributions of two or more variables.
Conditional probability is the probability of some event A, given the occurrence of some other event B. Conditional probability is written P(A|B), and is read "the probability of A, given B".
Joint probability is the probability of two events in conjunction. That is, it is the probability of both events together. The joint probability of A and B is written <math>P(A \cap B)</math> or <math>P(A, B).</math>
Marginal probability is the probability of one event, regardless of the other event. Marginal probability is obtained by summing (or integrating, more generally) the joint probability over the unrequired event. This is called marginalization. The marginal probability of A is written P(A), and the marginal probability of B is written P(B).
In these definitions, note that there need not be a causal or temporal relation between A and B. A may precede B, or vice versa, or they may happen at the same time. A may cause B, or vice versa, or they may have no causal relation at all.
Conditioning of probabilities, i.e. updating them to take account of (possibly new) information, may be achieved through Bayes' theorem.
Contents |
Definition
If A and B are events, and P(B) > 0, then the conditional probability of A, given B is
- <math>P(A \mid B)= \frac{P(A \cap B)}{P(B)}.</math>
Equivalently, we have
- <math>P(A \cap B)=P(A\mid B) P(B).</math>
Statistical independence
Two random events A and B are statistically independent if and only if
- <math>P(A \cap B) \ = \ P(A) P(B).</math>
Thus, if A and B are independent, then their joint probability can be expressed as a simple product of their individual probabilities.
Equivalently, for two independent events A and B,
- <math>P(A|B) \ = \ P(A)</math>
and
- <math>P(B|A) \ = \ P(B).</math>
In other words, if A and B are independent, then the conditional probability of A, given B is simply the individual probability of A alone; likewise, the probability of B given A is simply the probability of B alone.
Mutual exclusivity
Two events A and B are mutually exclusive if and only if
- <math>P(A \cap B) = 0</math>
as long as
- <math>P(A) \ne 0</math>
and
- <math>P(B) \ne 0.</math>
Then
- <math>P(A\mid B) = 0</math>
and
- <math>P(B\mid A) = 0.</math>
In other words, the probability of A happening, given that B happens, is nil since A and B cannot both happen in the same situation; likewise, the probability of B happening, given that A happens, is also nil.
Other considerations
- If <math>B</math> is an event and <math>P(B) > 0</math>, then the function <math>Q</math> defined by <math>Q(A) = P(A|B)</math> for all events <math>A</math> is a probability measure.
- If <math>P(B)=0</math>, then <math>P(A|B)</math> is left undefined.
- Conditional probability can be calculated with a decision tree.
See also
- Bayes' theorem
- Likelihood function
- Posterior probability
- Probability theory
- Monty Hall problemde:Bedingte Wahrscheinlichkeit
es:Probabilidad condicionada fr:Probabilité conditionnelle it:Probabilità condizionata nl:Voorwaardelijke kans pl:Prawdopodobieństwo warunkowe su:Conditional probability sv:Betingad sannolikhet eo:Vikipedio:Projekto matematiko/Kondiĉa probablo