Conditional probabilities From Data to Insight Dr. etinkaya-Rundel - - PowerPoint PPT Presentation

conditional probabilities
SMART_READER_LITE
LIVE PREVIEW

Conditional probabilities From Data to Insight Dr. etinkaya-Rundel - - PowerPoint PPT Presentation

Conditional probabilities From Data to Insight Dr. etinkaya-Rundel July 18, 2016 DTap vaccine 2 DTaP vaccine Jackson et al. (2013) wanted to know whether it is better to give the diphtheria, tetanus and pertussis (DTaP) vaccine in


slide-1
SLIDE 1

Conditional probabilities

From Data to Insight

  • Dr. Çetinkaya-Rundel

July 18, 2016

slide-2
SLIDE 2

DTap vaccine

2

slide-3
SLIDE 3

DTaP vaccine

  • Jackson et al. (2013) wanted to know whether it is better to

give the diphtheria, tetanus and pertussis (DTaP) vaccine in either the thigh or the arm, so they collected data on severe reactions to this vaccine in children aged 3 to 6 years old.

  • Is the probability of a severe reaction higher for vaccines in

the thigh or the arm?

3

No severe reaction Severe reaction Total Thigh 4758 30 4788 Arm 8840 76 8916 Total 13598 106 13704

slide-4
SLIDE 4

4

No severe reaction Severe reaction Total Thigh 4758 30 4788 Arm 8840 76 8916 Total 13598 106 13704

P(severe reaction | thigh) = 30 / 4788 ≈ 0.0063 P(severe reaction arm) = 76 / 8916 ≈ 0.0085

slide-5
SLIDE 5

Bayes’ rule

5

slide-6
SLIDE 6

HIV testing with ELISA

6

slide-7
SLIDE 7

HIV testing with ELISA

  • ELISA
  • Sensitivity (true positive): 93%
  • Specificity (true negative): 99%
  • Western blot
  • Sensitivity: 99.9%
  • Specificity: 99.1%
  • Prevalance: 1.48 / 1000
  • P(has HIV | ELISA +) = ?

7

P(HIV) = 0.00148 P(+ | HIV) = 0.93 P(- | no HIV) = 0.99

slide-8
SLIDE 8

Prior to any testing, what probability should be assigned to a recruit having HIV?

8

P(HIV) = 0.00148

slide-9
SLIDE 9

When a recruit goes through HIV screening there are two competing claims: recruit has HIV and recruit doesn't have

  • HIV. If the ELISA yields a positive result, what is the

probability this recruit has HIV?

9

HIV no HIV 0.00148 P(HIV) 0.99852 P(no HIV) 0.93 P(+ | HIV)

+

  • P(- | HIV)

0.07

+

  • P(+ | no HIV)

0.01 P(- | no HIV) 0.99

0.00148 x 0.93 = 0.0013764 P(HIV and +) 0.99852 x 0.01 = 0.0099852 P(no HIV and +)

slide-10
SLIDE 10

When a recruit goes through HIV screening there are two competing claims: recruit has HIV and recruit doesn't have

  • HIV. If the ELISA yields a positive result, what is the

probability this recruit has HIV?

10

P(HIV | +) = P(HIV and +) P(+) 0.0013764 + 0.0099852 ≈ 0.12 0.0013764

=

slide-11
SLIDE 11

Drug testing [time permitting]

11

slide-12
SLIDE 12

Drug testing [time permitting]

  • Most companies drug test their employees before they start

employment, and sometimes regularly during their employment as well.

  • Suppose that a drug test for an illegal drugs is 97% accurate in the

case of a user of that drug, and 92% accurate in the case of a non- user for that drug.

  • Suppose also that 5% of the entire population uses that drug.
  • You are the hiring manager at a company that drug tests their
  • employees. You have recently decided to hire a new employee. The

prospective employee gets drug tested, and the test comes out to be positive. What is the probability that they are actually a user for the drug?

12