Jump to content

Conditional probability: Difference between revisions

From Wikibase
Line 23: Line 23:
$$
$$
</blockquote>
</blockquote>
== Addition law ==
If
* $S = B_1 \cup B_2 \cup \cdots \cup B_n$,
* $\forall i \neq j: B_i\cap B_j = \varnothing$,
* $\forall i \in 1,\cdots ,n P(B_i)>0$,
Then
$$
P(A|S) = P(A\ |\ B_1) P(B_1) + \cdots + P(A\ |\ B_n) P(B_n).\notag
$$
and $B_1, B_2, \ldots, B_n$ are said to '''partition''' sample space $S$.
<ref>{{#cite:Q2940}}</ref>

Revision as of 12:32, 8 November 2026

Languages: English · français · Esperanto

Conditional probability is the probability of one event given another event.

Definition

For events $A,B$ where $P(B)>0$, the conditional probability of A given B

$$P(A\ |\ B) = \frac{P(A \cap B)}{P(B)}.$$

for events $A,B$ where $P(B)>0$

[1]

Multiplication law

By rearrangement of terms of definition,

$$ P(A \cap B) = P(A\ |\ B) P(B) = P(B\ |\ A) P(A) $$

Note $$\begin{gathered} P(A\cap B)\equiv P(B\cap A)\\ P(A\ |\ B)\neq P(B\ |\ A). \end{gathered}$$

Addition law

If

  • $S = B_1 \cup B_2 \cup \cdots \cup B_n$,
  • $\forall i \neq j: B_i\cap B_j = \varnothing$,
  • $\forall i \in 1,\cdots ,n P(B_i)>0$,

Then

$$ P(A|S) = P(A\ |\ B_1) P(B_1) + \cdots + P(A\ |\ B_n) P(B_n).\notag $$

and $B_1, B_2, \ldots, B_n$ are said to partition sample space $S$.

[1]