Jump to content

Conditional probability

From Wikibase

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}$$

Bayes law

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

as a direct result of #Multiplication law.

Partition 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]

Application

Medical screening accuracy

Consider a kidney cancer screening test, which

  • correctly detects when a person has cancer 90% of the time
  • correctly indicates when a person does not have kidney cancer 99.9% of the time

Suppose it is known that 1 in every 10,000 individuals has kidney cancer.

What is the probability that a patient has kidney cancer, given a positive test result?