MATH 2421: Lecture 6
Date: 2024-09-23 11:41:56
Reviewed:
Topic / Chapter: Bayes theorem & independence
summary
❓Questions
Notes
Bayes' Theorem
- 
Bayes' theorem
- given  partitions 
- and for all
 - and any event, then:
 
 - proof
- then: law of total probability
 
 - terminology
- prior probability
 - : evidence
 - posterior probability
 
 
 - given  partitions 
 - 
Examples
- I saw a mule!
- but it is surely mistaken, as there are only horse and donkey in the village.
 - there are 30% horses and 70% donkeys
- prior belief: there is 30% chance to encounter a donkey
 
 - if: horse is mistaken as a mule w/ 0.4
- and donkey is mistaken w/ 0.8
 
 - then
 - then
 
 - Covid tests
- PCR test vs. RAT
 - different cases:
- : sick people correctly identified as sick
 - : healthy people incorrectly identified as sick
 - : healthy people correctly identified as healthy
 - : sick people incorrectly identified as healthy
 
 - terminology
- sensitivity: 
- i.e. probability of a positive result given patient: is sick
 
 - specificity: 
- i.e. probability of a negative result given patient: is healthy
 
 - : prob. of
 - prevalence:
 
 - sensitivity: 
 - prevalence of covid: 1%
- test: w/ sensitivity 95%
- specificity: 99%
 
 - test result: positive
 - probability that you have covid?
 
 - test: w/ sensitivity 95%
 
 - class exercise
- if 5% or 8%, how does change?
 - how about ?
 
 - class exercise 2
- 
- 👨🏫 sensitivity & specificity matter much, esp. it's multiplied twice
 
 
 - 
 - blood type
- 95% effective in detecting a disease when it is present
 - false positive: 1% for healthy person
 - prevalence: 0.5%
 
 - plane: missing
- equally likely: in 3 possible regions
- : plane is in region =
 
 - : probability that plane: found upon search in -th region
- when plane is indeed there
 
 - : search in region 1: unsuccessful
- = plane not found in region 1 upon search
 
 -  for 
- 
- for each
 
 - 
 - 
 - 
 - 
- 👨🏫 less chance of unsuccessful search, if the plane is actually there!
 
 - 
 - 
 
 - 
 
 - equally likely: in 3 possible regions
 - assembly plant w/ 3 machine types
- each is of proportion: 30% / 45% / 25%
 - and defective rate: 2% / 3% / 2%
 - given a chosen machine is defective, what is the probability of it being type 1?
 
 
 - I saw a mule!
 
Independence
- 
Independence
- two events : independent if
- ⭐
 - and dependent if
 
 - motivation: if , then
- i.e. : independent of  if
- knowledge that has occurred: does NOT change the probability that occurs
 
 
 - if  are independent, then so are:
- 👨🏫 and similarly for others
 
 
 - two events : independent if
 - 
Examples
- card: selected at random from ordinary deck of  cards
- if : event that selected card = Ace
 - : is is spade
 - then : independent
 - 
- thus they are independent
 
 - 👨🏫 they are not disjoint (i.e. ), but they are independent
 
 - two coins: flipped
- all 4 outcomes: equally likely
 - : first coin lands head
 - : first coin lands tail
 
 - another two fair coins
- : first coin lands head
 - : only one coin lands head
 
 - 2 fair dice
- : sum of dice = 6
 - : first die = 4
 - are independent?
 
 - 2 fair dice
- : sum of dice = 7
 - : first die = 4
 - are independent?
 
 
 - card: selected at random from ordinary deck of  cards