Notes โบ EENG 3421: Probability and Statistics for Engineers Lecture 4
Independence and Tree Diagrams
466 words 4 min Modified
Table of Contents
Comments on Bayes Theorem
- Bayes rule used for inference
- Observe an effect and infer a cause
- Events $A_1, \dots, A_n$ represent causes
- Event $B$ represents the observed effect
- $P[A_i]$ prior probability of cause $A_i$
- $P[A_i \mid B]$ posterior probability of cause $A_i$ given effect $B$
Let $\{A_1, \dots, A_n\}$ be mutually exclusive and collectively exhaustive
$$ P[A_i \mid B] = \frac{P[A_i] P[B \mid A_i]}{\sum_{j=1}^n P[A_j] P[B \mid A_j]} $$Independence
Events $A$ and $B$ are independent if and only if
$$ P[A \cap B] = P[A] P[B] $$- Equivalent statements when probabilities are nonzero
- $P[A \mid B] = P[A]$
- $P[B \mid A] = P[B]$
Independent Vs Mutually Exclusive
Independent and mutually exclusive are not synonymous
- Mutually exclusive
- $A \cap B = \emptyset$
- $P[A \cap B] = 0$
- Independent
- Intersection probability factors
- Independent events are not mutually exclusive except when
- $P[A] = 0$ or $P[B] = 0$
Example
Draw one card from a standard deck
- $A$ event card is a spade
- $B$ event card is a queen
Since $P[A \cap B] = P[A] P[B]$, the events are independent
Three Independent Events
Events $A_1, A_2, A_3$ are mutually independent if and only if
- $A_1$ and $A_2$ are independent
- $A_1$ and $A_3$ are independent
- $A_2$ and $A_3$ are independent
- $$ P[A_1 \cap A_2 \cap A_3] = P[A_1] P[A_2] P[A_3] $$
Example
Let $S = \{1,2,3,4\}$ with equiprobable outcomes
- $A_1 = \{1,3,4\}$
- $A_2 = \{2,3,4\}$
- $A_3 = \emptyset$
Although
$$ P[A_1 \cap A_2 \cap A_3] = P[A_1] P[A_2] P[A_3] $$the events are not mutually independent since $A_1$ and $A_2$ are not independent
More Than Three Events
For $n \ge 3$, events $A_1, \dots, A_n$ are mutually independent if and only if
- Every collection of $n-1$ events is mutually independent
- $$ P\!\left[\bigcap_{i=1}^n A_i\right] = \prod_{i=1}^n P[A_i] $$
Tree Diagrams
A tree diagram represents a sequential experiment
- Branch labels are probabilities or conditional probabilities
- Each path corresponds to a joint event
- Path probability is the product of branch probabilities
Example
Radar detection
- $A$ aircraft present
- $B$ alarm generated
Joint probabilities computed along tree paths
Example
False positive test
- $A$ person has disease
- $B$ test positive
Using Bayes theorem
$$ P[A \mid B] = \frac{P[B \mid A] P[A]}{P[B \mid A] P[A] + P[B \mid A^c] P[A^c]} $$References
- Course lecture slides 5
Sources
- Course lecture slides 5