Content deleted Content added
MishchenkoA (talk | contribs) m Minor formatting and punctuation fixes. |
Link suggestions feature: 3 links added. Tags: Visual edit Mobile edit Mobile web edit Newcomer task Suggested: add links |
||
(24 intermediate revisions by 19 users not shown) | |||
Line 1:
{{Short description|Probability theory and statistics concept}}
{{
In [[probability theory]] and [[statistics]], the conditional probability distribution is a probability distribution that describes the probability of an outcome given the occurrence of a particular event. Given two [[joint probability distribution|jointly distributed]] [[random variable]]s <math>X</math> and <math>Y</math>, the '''conditional probability distribution''' of <math>Y</math> given <math>X</math> is the [[probability distribution]] of <math>Y</math> when <math>X</math> is known to be a particular value; in some cases the conditional probabilities may be expressed as functions containing the unspecified value <math>x</math> of <math>X</math> as a parameter. When both <math>X</math> and <math>Y</math> are [[categorical variable]]s, a [[conditional probability table]] is typically used to represent the conditional probability. The conditional distribution contrasts with the [[marginal distribution]] of a random variable, which is its distribution without reference to the value of the other variable.
If the conditional distribution of <math>Y</math> given <math>X</math> is a [[continuous distribution]], then its [[probability density function]] is known as the '''conditional density function'''.
More generally, one can refer to the conditional distribution of a subset of a set of more than two variables; this conditional distribution is contingent on the values of all the remaining variables, and if more than one variable is included in the subset then this conditional distribution is the conditional [[joint distribution]] of the included variables.
==Conditional discrete distributions==
For [[discrete random variable]]s, the conditional [[probability mass function]] of <math>Y</math> given <math>X=x</math> can be written according to its definition as:
{{Equation box 1
|indent =
|title=
|equation = :<math>p_{Y|X}(y \mid x) \triangleq P(Y = y \mid X = x) = \frac{P(\{X=x\} \cap \{Y=y\})}{P(X=x)}\qquad</math>
|cellpadding= 6
|border
Line 25 ⟶ 26:
===Example===
Consider the roll of a fair
{| class="wikitable"
|-
Line 35 ⟶ 36:
|}
Then the unconditional probability that <math>X=1</math> is 3/6 = 1/2 (since there are six possible rolls of the
==Conditional continuous distributions==
Similarly for [[continuous random variable]]s, the conditional [[probability density function]] of <math>Y</math> given the occurrence of the value <math>x</math> of <math>X</math> can be written as
{{Equation box 1
|indent =
|title=
|equation = :<math>f_{Y\mid X}(y \mid x) = \frac{f_{X, Y}(x, y)}{f_X(x)}\qquad</math>
|cellpadding= 6
|border
Line 61 ⟶ 62:
The graph shows a [[bivariate normal distribution|bivariate normal joint density]] for random variables <math>X</math> and <math>Y</math>. To see the distribution of <math>Y</math> conditional on <math>X=70</math>, one can first visualize the line <math>X=70</math> in the <math>X,Y</math> [[plane (geometry)|plane]], and then visualize the plane containing that line and perpendicular to the <math>X,Y</math> plane. The intersection of that plane with the joint normal density, once rescaled to give unit area under the intersection, is the relevant conditional density of <math>Y</math>.
<math>Y\mid X=70 \ \sim\ \mathcal{N}\left(\
==Relation to independence==
Random variables <math>X</math>, <math>Y</math> are [[Statistical independence|independent]] [[if and only if]] the conditional distribution of <math>Y</math> given <math>X</math> is, for all possible realizations of <math>X</math>, equal to the unconditional distribution of <math>Y</math>. For discrete random variables this means <math>P(Y=y|X=x) = P(Y=y)</math> for all possible <math>y</math> and <math>x</math> with <math>P(X=x)>0</math>. For continuous random variables <math>X</math> and <math>Y</math>, having a [[joint density function]], it means <math>f_Y(y|X=x) = f_Y(y)</math> for all possible <math>y</math> and <math>x</math> with <math>f_X(x)>0</math>.
==Properties==
Seen as a function of <math>y</math> for given <math>x</math>, <math>P(Y=y|X=x)</math> is a probability mass function and so the sum over all <math>y</math> (or integral if it is a conditional probability density) is 1. Seen as a function of <math>x</math> for given <math>y</math>, it is a [[likelihood function]], so that the sum (or integral) over all <math>x</math> need not be 1.
Additionally, a marginal of a joint distribution can be expressed as the expectation of the corresponding conditional distribution. For instance, <math> p_X(x) = E_{Y}[p_{X|Y}(
==Measure-theoretic formulation==
Let <math>(\Omega, \mathcal{F}, P)</math> be a [[probability space]], <math>\mathcal{G} \subseteq \mathcal{F}</math> a <math>\sigma</math>-field in <math>\mathcal{F}</math>. Given <math>A\in \mathcal{F}</math>, the [[
Special cases:
* For the trivial sigma algebra <math>\mathcal G= \{\emptyset,\Omega\}</math>, the conditional probability is the constant function <math>\operatorname{P}\!\left( A\mid \{\emptyset,\Omega\} \right) = \operatorname{P}(A).</math>
* If <math>A\in \mathcal{G}</math>, then <math>\operatorname{P}(A\mid\mathcal{G})=1_A</math>, the indicator function (defined [[#Relation to conditional expectation|below]]).
Let <math>X : \Omega \to E</math> be a <math>(E, \mathcal{E})</math>-valued random variable. For each <math>B \in \mathcal{E}</math>, define <math display="block">\mu_{X \, | \, \mathcal{G}} (B \, |\, \mathcal{G}) = \mathrm{P} (X^{-1}(B) \, | \, \mathcal{G}).</math>For any <math>\omega \in \Omega</math>, the function <math>\mu_{X \, | \mathcal{G}}(\cdot \, | \mathcal{G}) (\omega) : \mathcal{E} \to \mathbb{R}</math> is called the '''
For a real-valued random variable (with respect to the Borel <math>\sigma</math>-field <math>\mathcal{R}^1</math> on <math>\mathbb{R}</math>), every conditional probability distribution is regular.
=== Relation to conditional expectation ===
Line 93 ⟶ 94:
Given a <math>\sigma</math>-field <math>\mathcal{G} \subseteq \mathcal{F}</math>, the conditional probability <math> \operatorname{P}(A\mid\mathcal{G})</math> is a version of the [[conditional expectation]] of the indicator function for <math>A</math>:
:<math>\operatorname{P}(A\mid\mathcal{
An expectation of a random variable with respect to a regular conditional probability is equal to its conditional expectation.
===Interpretation of conditioning on a Sigma Field===
== See also ==▼
Consider the probability space <math>(\Omega, \mathcal{F}, \mathbb{P})</math>
*[[Conditioning (probability)]]▼
and a sub-sigma field <math>\mathcal{A} \subset \mathcal{F}</math>.
*[[Conditional probability]]▼
The sub-sigma field <math>\mathcal{A}</math> can be loosely interpreted as containing a subset of the information in <math>\mathcal{F}</math>. For example, we might think of <math>\mathbb{P}(B|\mathcal{A})</math> as the probability of the event <math>B</math> given the information in <math>\mathcal{A}</math>.
*[[Regular conditional probability]]▼
*[[Bayes' theorem]]▼
Also recall that an event <math>B</math> is independent of a sub-sigma field <math>\mathcal{A}</math> if <math>\mathbb{P}(B | A) = \mathbb{P}(B)</math> for all <math>A \in \mathcal{A}</math>. It is incorrect to conclude in general that the information in <math>\mathcal{A}</math> does not tell us anything about the probability of event <math>B</math> occurring. This can be shown with a counter-example:
== References ==▼
=== Citations ===▼
Consider a probability space on the [[unit interval]], <math>\Omega = [0, 1]</math>. Let <math>\mathcal{G}</math> be the sigma-field of all countable sets and sets whose complement is countable. So each set in <math>\mathcal{G}</math> has measure <math>0</math> or <math>1</math> and so is independent of each event in <math>\mathcal{F}</math>. However, notice that <math>\mathcal{G}</math> also contains all the singleton events in <math>\mathcal{F}</math> (those sets which contain only a single <math>\omega \in \Omega</math>). So knowing which of the events in <math>\mathcal{G}</math> occurred is equivalent to knowing exactly which <math>\omega \in \Omega</math> occurred! So in one sense, <math>\mathcal{G}</math> contains no information about <math>\mathcal{F}</math> (it is independent of it), and in another sense it contains all the information in <math>\mathcal{F}</math>.{{sfnp|Billingsley|2012}}{{Page needed|date=May 2025}}
▲* [[Conditioning (probability)]]
▲* [[Conditional probability]]
▲* [[Regular conditional probability]]
▲* [[Bayes' theorem]]
{{Reflist}}
===
{{refbegin}}
* {{cite book |last= Billingsley |first= Patrick |date= 1995 |title= Probability and Measure |edition= 3rd |publisher= John Wiley and Sons |___location= New York |isbn= 0-471-00710-2 |author-link= Patrick Billingsley |url= https://books.google.com/books?id=a3gavZbxyJcC }}
* {{cite book |last= Billingsley |first= Patrick |date= 2012 |title= Probability and Measure |edition= Anniversary |publisher= Wiley |___location= Hoboken, New Jersey |isbn= 978-1-118-12237-2 }}
* {{cite book |last= Park |first= Kun Il |date= 2018 |title= Fundamentals of Probability and Stochastic Processes with Applications to Communications |publisher= Springer |isbn= 978-3-319-68074-3}}
* {{cite book |last= Ross |first= Sheldon M. |date= 1993 |title=Introduction to Probability Models |edition= 5th |___location= San Diego |publisher= Academic Press |isbn=0-12-598455-3 |author-link= Sheldon M. Ross }}
{{refend}}
{{Authority control}}
[[Category:Theory of probability distributions]]
[[Category:Conditional probability
|