Conditional probability: Difference between revisions
| (2 intermediate revisions by the same user not shown) | |||
| Line 24: | Line 24: | ||
</blockquote> | </blockquote> | ||
== | == Bayes law == | ||
$$ | |||
P(B\ |\ A) = \frac{P(A\ |\ B) P(B)}{P(A)}.\notag | |||
$$ | |||
as a direct result of [[#Multiplication law]]. | |||
== Partition law == | |||
If | If | ||
| Line 41: | Line 49: | ||
<ref>{{#cite:Q2940}}</ref> | <ref>{{#cite:Q2940}}</ref> | ||
== 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? | |||
Latest revision as of 12:46, 8 November 2026
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$
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$.
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?