Probability. Chapter 1 Probability. A Simple Example. Sample Space and Probability. Sample Space and Event. Sample Space (Two Dice) Probability

Similar documents
Bayes Theorem & Diagnostic Tests Screening Tests

Chapter 2 PROBABILITY SAMPLE SPACE

Chapter 2: Probability Part 1

STAT 201 Chapter 5. Probability

Topic -2. Probability. Larson & Farber, Elementary Statistics: Picturing the World, 3e 1

324 Stat Lecture Notes (1) Probability

Basic Statistics and Probability Chapter 3: Probability

4. Probability of an event A for equally likely outcomes:

Probability and Probability Distributions. Dr. Mohammed Alahmed

What is the probability of getting a heads when flipping a coin

Axioms of Probability

Event A: at least one tail observed A:

3.1 Events, Sample Spaces, and Probability

MAT Mathematics in Today's World

Topic 3: Introduction to Probability

A survey of Probability concepts. Chapter 5

Chapter 5 : Probability. Exercise Sheet. SHilal. 1 P a g e

1 Probability Theory. 1.1 Introduction

1 The Basic Counting Principles

Properties of Probability

Lecture notes for probability. Math 124

Probability COMP 245 STATISTICS. Dr N A Heard. 1 Sample Spaces and Events Sample Spaces Events Combinations of Events...

2011 Pearson Education, Inc

4 Lecture 4 Notes: Introduction to Probability. Probability Rules. Independence and Conditional Probability. Bayes Theorem. Risk and Odds Ratio

Probability deals with modeling of random phenomena (phenomena or experiments whose outcomes may vary)

Intermediate Math Circles November 8, 2017 Probability II

1. When applied to an affected person, the test comes up positive in 90% of cases, and negative in 10% (these are called false negatives ).

Econ 325: Introduction to Empirical Economics

Today we ll discuss ways to learn how to think about events that are influenced by chance.

Probability and Statistics Notes

Lecture 1. Chapter 1. (Part I) Material Covered in This Lecture: Chapter 1, Chapter 2 ( ). 1. What is Statistics?

Lecture 8: Conditional probability I: definition, independence, the tree method, sampling, chain rule for independent events

STA Module 4 Probability Concepts. Rev.F08 1

I - Probability. What is Probability? the chance of an event occuring. 1classical probability. 2empirical probability. 3subjective probability

Lecture 3 Probability Basics

LECTURE 1. 1 Introduction. 1.1 Sample spaces and events

PROBABILITY.

Probability (Devore Chapter Two)

ELEG 3143 Probability & Stochastic Process Ch. 1 Probability

Statistics 251: Statistical Methods

Introduction to Probability Theory

Math 1313 Experiments, Events and Sample Spaces

tossing a coin selecting a card from a deck measuring the commuting time on a particular morning

1 Preliminaries Sample Space and Events Interpretation of Probability... 13

Announcements. Topics: To Do:

Chapter 8 Sequences, Series, and Probability

2.6 Tools for Counting sample points

Probabilistic models

Week 2. Section Texas A& M University. Department of Mathematics Texas A& M University, College Station 22 January-24 January 2019

Mathematical Foundations of Computer Science Lecture Outline October 18, 2018

MAT2377. Ali Karimnezhad. Version September 9, Ali Karimnezhad

MA : Introductory Probability

Topic 2 Probability. Basic probability Conditional probability and independence Bayes rule Basic reliability


STT When trying to evaluate the likelihood of random events we are using following wording.

3 PROBABILITY TOPICS

UNIT Explain about the partition of a sampling space theorem?

STAT 516: Basic Probability and its Applications

Discrete Probability. Chemistry & Physics. Medicine

Chapter 2 Class Notes

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 14

Probability Theory and Applications

ELEG 3143 Probability & Stochastic Process Ch. 1 Experiments, Models, and Probabilities

Chance, too, which seems to rush along with slack reins, is bridled and governed by law (Boethius, ).

4/17/2012. NE ( ) # of ways an event can happen NS ( ) # of events in the sample space

If S = {O 1, O 2,, O n }, where O i is the i th elementary outcome, and p i is the probability of the i th elementary outcome, then

The enumeration of all possible outcomes of an experiment is called the sample space, denoted S. E.g.: S={head, tail}

Probability Experiments, Trials, Outcomes, Sample Spaces Example 1 Example 2

Review. More Review. Things to know about Probability: Let Ω be the sample space for a probability measure P.

Chapter 14. From Randomness to Probability. Copyright 2012, 2008, 2005 Pearson Education, Inc.

Chapter 6. Probability

Chapter 6: Probability The Study of Randomness

Probability Theory and Statistics

STAT 430/510 Probability

Example. What is the sample space for flipping a fair coin? Rolling a 6-sided die? Find the event E where E = {x x has exactly one head}

Lecture 2: Probability. Readings: Sections Statistical Inference: drawing conclusions about the population based on a sample

AP Statistics Ch 6 Probability: The Study of Randomness

Notes Week 2 Chapter 3 Probability WEEK 2 page 1

3.2 Probability Rules

(6, 1), (5, 2), (4, 3), (3, 4), (2, 5), (1, 6)

Probabilistic models

Week 2: Probability: Counting, Sets, and Bayes

LECTURE NOTES by DR. J.S.V.R. KRISHNA PRASAD

Chapter 7: Section 7-1 Probability Theory and Counting Principles

2.4 Conditional Probability

Chapter 4 Probability

UNIT 5 ~ Probability: What Are the Chances? 1

Question Bank In Mathematics Class IX (Term II)

Math 243 Section 3.1 Introduction to Probability Lab

Chapter 3: Probability 3.1: Basic Concepts of Probability

Business Statistics. Lecture 3: Random Variables and the Normal Distribution

Combinatorics and probability

Probability and Sample space

Preliminary Statistics Lecture 2: Probability Theory (Outline) prelimsoas.webs.com

CISC 1100/1400 Structures of Comp. Sci./Discrete Structures Chapter 7 Probability. Outline. Terminology and background. Arthur G.

Ch 14 Randomness and Probability

Section 13.3 Probability

Random Variable. Discrete Random Variable. Continuous Random Variable. Discrete Random Variable. Discrete Probability Distribution

4. Conditional Probability

Conditional Probability

Transcription:

Probability Chapter 1 Probability 1.1 asic Concepts researcher claims that 10% of a large population have disease H. random sample of 100 people is taken from this population and examined. If 20 people in this random sample have the disease, what does it mean? How likely would this happen if the researcher is right? 1 2 Simple Example What s the probability of getting a head on the toss of a single fair coin? Use a scale from 0 (no way) to 1 (sure thing). So toss a coin twice. Do it! Did you get one head & one tail? What s it all mean? Sample Space and Probability Random Experiment: (Probability Experiment) an experiment whose outcomes depend on chance. Sample Space (S): collection of all possible outcomes in random experiment. Event (E): a collection of outcomes 3 4 Sample Space and Event Sample Space: S {Head, Tail} S {Life span of a human} {x x 0, x R} S {ll individuals live in a community with or without having disease } Event: E {Head} E {Life span of a human is less than 3 years} E {The individuals who live in a community that has disease } 5 Sample Space (Two Dice) Compound event Sample Space: S {(1,1),(1,2),(1,3),(1,4),(1,5),(1,6), (2,1),(2,2),(2,3),(2,4),(2,5),(2,6), (3,1),(3,2),(3,3),(3,4),(3,5),(3,6), (4,1),(4,2),(4,3),(4,4),(4,5),(4,6), (5,1),(5,2),(5,3),(5,4),(5,5),(5,6), (6,1),(6,2),(6,3),(6,4),(6,5),(6,6)} Simple event How many outcomes are Sum is 7? 6 Probability - 1

Notations Chapter 1 Probability 1.2 Properties of Probability is an empty set is a subset of is a subset of Union of & Intersection of & Complement of 7 8 S {1, 2, 3, 4, 5, 6} {1, 2, 3} {3, 6} Intersection of events: <> and Example: {3} 1 2 3 4 5 6 Union of events: <> or Example: {1, 2, 3, 6} S Venn Diagram (with elements listed) 9 Mutually Exclusive and Exhaustive If 1, 2,, k are events and i j for all i j then 1, 2,, k are said to be mutually exclusive events. If 1, 2,, k are events in the sample space S, then 1, 2,, k exhaustive events if 1 2 k S. 10 Definition of Probability rough definition: (frequentist definition) Probability of a certain outcome to occur in a random experiment is the proportion of times that the this outcome would occur in a very long series of repetitions of the random experiment. Heads / Number of Tosses 1.00 0.75 0.50 0.25 0.00 0 25 50 75 Number of Tosses 100 125 11 Determining Probability How to determine probability? Empirical Probability Theoretical Probability (Subjective approach) 12 Probability - 2

Empirical Probability ssignment Empirical study: (Don t know if it is a balanced Coin?) Outcome Head Tail Frequency 512 488 1000 Empirical Probability ssignment Empirical probability assignment: Number of times event E occurs ) Number of times experiment is repeated n N( ) Probability of Head: Head) 512 1000.512 51.2% 13 14 Empirical Probability Distribution Empirical study: Theoretical Probability ssignment Make a reasonable assumption: Outcome Frequency Probability Head 512.512 Tail 488.488 1000 1.0 Empirical Probability Distribution 15 What is the probability distribution in tossing a coin? ssumption: We have a balanced coin! 16 Theoretical Probability ssignment Theoretical probability assignment: Number of equally likely outcomes in event ) Size of the sample space N( ) N( S) Probability of Head: 1 Head) 2.5 50% 17 Theoretical Probability Distribution Empirical study: Outcome Head Tail Probability.50.50 1.0 Empirical Probability Distribution 18 Probability - 3

Probability Distribution (Probability Model) If a balanced coin is tossed, Head and Tail are equally likely to occur, Head).5 1/2 and Tail).5 1/2 1/2 Probability ar Chart probability is 1. Head Tail 19 Relative Frequency and Probability Distributions Number of times visited a doctor from a random sample of 300 individuals from a community Class Frequency Relative Frequency 0 54.18 0).18 1 117.39 1).39 2 72.24 2).24 3 42.14 3).14 4 12.04 4).04 5 3.01 5).01 300 1.00 20 Discrete Distribution Relative Frequency Distribution Relative Frequency and Probability 0.5 0.4 0.3 0.2 0.1 0 0 1 2 3 4 5 When selecting one individual at random from a population, the probability distribution and the relative frequency distribution are the same. 21 22 Probability for the Discrete Case If an individual is randomly selected from this group 300, what is the probability that this person visited doctor 3 times? 3 times) (42)/300 Class Frequency Relative Frequency 0 54.18 1 117.39 2 72.24 3 42.14 4 12.04 5 3.01 300 1.00.14 or 14% 23 Discrete Distribution If an individual is randomly selected from this group 300, what is the probability that this person visited doctor 4 or 5 times? Class Frequency 0 54.18 1 117.39 2 72.24 3 42.14 4 12.04 5 3.01 300 1.00 4 or 5 times) 4) 5) Relative.04.01 Frequency.05 It would be an empirical probability distribution, if the sample of 300 individuals is utilized for understanding a large population. 24 Probability - 4

Properties of Probability Probability is a real-valued set function P that assigns to each event in the sample space S a number ), called the probability of event, such that the following properties are satisfied: ) 0, probability is always a value between 0 and 1. S) 1, total probability (all outcomes together) equals 1. If 1, 2,, k are events and i j then 1 2... k ) 1 ) 2 ) k ) ) 0 If then ) ) For any event, ) 1 25 26 Probability Distribution (Probability Model) If a balanced coin is tossed, Head (H) and Tail (T) are equally likely to occur, H).5 and T).5 all possible outcomes) H) T).5.5 1 Probability probability is 1 ar Chart 1/2 Head Tail 27 Complementation Rule For any event, does not occur) 1 ) Complement of * Some places use c or ) ) 28 Complementation Rule Complementation Rule If an unbalanced coin has a probability of 0.7 to turn up Head each time tossing this coin. What is the probability of not getting a Head for a random toss? not getting Head) 1 0.7 0.3 29 If the chance of a randomly selected individual living in community to have disease H is.001, what is the probability that this person does not have disease H? having disease H).001 not having disease H) 1 having disease H) 1 0.001 0.999 30 Probability - 5

ddition Rules for Probability Mutually Exclusive Events and are mutually exclusive (disjointed) events Special ddition Rule In an experiment of casting an unbalanced die, the event and are defined as the following: an odds number 6 and given ).61, ) 0.1. What is the probability of getting an odds number or a six? and are mutually exclusive..61.1 dditive Rule: ) ) ) 31 ) ) ).61.1.71 32 Special ddition Rule In 1, 2,,, k are defined k mutually exclusive (m.e.) then 1 2 k ) 1 ) 2 ) k ) Example: When casting a balanced die, the probability of getting 1 or 2 or 3 is 1 2 3) 1) 2) 3) 1/6 1/6 1/6 1/2 33 Example: When casting a unbalanced die, such that 1).2, 2).1, 3).3, the probability of getting 1 or 2 or 3 is 1 2 3) 1) 2) 3).2.1.3.6 34 General ddition Rule Not M.E.! Venn Diagram (with counts) Given total of 100 subjects n( )?55 30 20 5 Sample Space? 45 ) ) ) ) 35 Smokers, n() 50 Lung Cancer, n() 25 n( ) 20 Joint Event 36 Probability - 6

Venn Diagram (with relative frequencies) Given a sample space.3.0.20 5 ).55?.45 Probability of Joint Events In a study, an individual is randomly selected from a population, and the event and are defined as the followings: the individual is a smoker. the individual has lung cancer. ).50, ).25 and ) ) smoker and has lung cancer).20.50.30.20.25.05 Smokers, ).50 Lung Cancer, ).25 ).20 Joint Event 37 What is the probability or ) )? 38 General ddition Rule What is the probability that this randomly selected person is a smoker or has lung cancer? or )? or ) ) ) - and ).50.25 -.20.55.50.30.20.25.05 Contingency Table Cancer, No Cancer, c Smoke, 20 30 50 Not Smoke, c 5 45 50 25 75 100 Venn Diagram 39 40 Extended General ddition Rule C) ) ) C) ) C) C) C) Chapter 1 Probability 1.3 Methods of Enumeration C 41 42 Probability - 7

Sample Space {(H,1),(H,2),(H,3),(H,4),(T,1),(T,2),(T,3),(T,4)} Tree Diagram Counting Rules Multiplication Principle of Counting 1 2 4 3 In a sequence of n events in which the first one has k 1 possibilities and the second event has k 2 and the third has k 3, and so forth, the total possibilities of the sequence will be k 1 k 2 k 3 k n H T 2 x 4 1 (H,1) 2 (H,2) 3 (H,3) 4 (H,4) 1 (T,1) 2 (T,2) 3 (T,3) 4 (T,4) 43 2 x 4 8 possible outcomes (coin & wheel) 6 X 6 36 possible outcomes (2 dice) k 1 k 2 44 Tree Diagram What is the sample space for casting two dice experiment? Die 2 1 (1,1) Die 1 1 2 3 4 5 6 2 3 4 5 6 (1,2) (1,3) (1,4) (1,5) (1,6) Example: There are three shirts of different colors, two jackets of different styles and five pairs of pants in the closet. How many ways can you dress yourself with one shirt, one jacket and one pair of pants selected from the closet? Sol: 3 x 2 x 5 30 ways 6 x 6 36 outcomes 45 K 1 x k 2 x k 3 46 Permutations S E Factorial Formula How many different four-letter code words can be formed by using the four letters in the word SE without repeating use of the same letter? For any counting number n n! 1 x 2 x x (n 1) x n 0! 1 k 1 4 k 2 3 k 3 2 k 4 1 Example: 3! 1 x 2 x 3 6 4 3 2 1 24 47 48 Probability - 8

How many different four-letter code words can be formed by using the four letters in the word SE and the same letter can be used repeatedly? k 1 4 k 2 4 k 3 4 k 4 4 4 4 4 4 256 S E Ordered Sampling How many different four-letter code words can be formed by using the four letters selected from letters through Z and the same letter can not be used repeatedly (sampling without replacement taking an ordered sample of size 4)? k 1 26 k 2 25 k 3 24 k 4 23 26 25 24 23 358,800 S E 49 50 Ordered Sampling How many different four-letter code words can be formed by using the four letters selected from letters through Z and the same letter can be used repeatedly (sampling with replacement taking an ordered sample of size 4)? k 1 26 k 2 26 k 3 26 k 4 26 26 26 26 26 456,976 S E 51 Permutation Rule Permutation Rule: The number of possible permutations of r objects from a collection of n distinct objects is P r n Order does count! n! ( n r)! 52 Permutations P r n How many ways can a four-digit code be formed by selecting 4 distinct digits from nine digits, 1 through 9, without repeating use of the same digit? 9 P 4 9! 9! 9 8 7 6 5! (9-4)! 5! 5! 9 8 7 6 3024 n! ( n r)! 53 irthday Problem In a group of randomly select 23 people, what is the probability that at least two people have the same birth date? (ssume there are 365 days in a year.) at least two people have the same birth date) Too hard!!! 1 everybody has different birth date) 1 [365x364x x(365-231)] / 365 23.5 54 Probability - 9

Combination Rule Combination Rule: The number of possible combinations of r objects from a collection of n distinct objects is C r n Order does not count! n! r!( n r)! inomial Coefficient 55 Combinations C r n n! r!( n r)! How many ways can a committee be formed by selecting 3 people from a group 10 candidates? n 10, r 3 10! 10! 10 9 8 7! 10C 3 3! (10-3)! 3! 7! 3! 7! 10 9 8 120 3! C, C, C, C, C, C are the same combination. 56 Combinations How many ways can a combination of 4 distinct digits be selected from nine digits, 1 through 9? 9C 4 9! 4! (9-4)! 9 8 7 6 4 3 2 1 126 9! 4! 5! C r n n! r!( n r)! 9 8 7 6 5! 4! 5! 57 Combinations How many ways can 6 distinct numbers be selected from a set of 47 distinct numbers? n 47, r 6 47! 47 46 45 44 43 42 41! 47C 6 6! 41! 6! 41! 47 46 45 44 43 42 6! 10,737,573 C r n n! r!( n r)! 58 Probability Using Counting (Theoretical pproach) In a lottery game, one selects 6 distinct numbers from a set of 47 distinct numbers, what is the probability of winning the jackpot? n 47, r 6 47C 6 47!/(6! 41!) 10,737,573 Jackpot) 1 10,737,573 (Theoretical Prob.) 59 Distinguishable Permutations Let a set of n objects of two types, r of one type, and n r of other type. The number of distinguishable permutations of these n objects is n C r. Example: How many possible outcomes could it be if a coin is tossed 8 times and getting 2 heads and 6 tails? n 8 8! nc r 8 C 2 28 r 2 2! 6! How many ways can a World Series in baseball end? 60 Probability - 10

Distinguishable Permutations Let a set of n objects of s types, n 1 of one type, and n 2 of the 2 nd type, and, n s the s-th type. The number of distinguishable permutations of these n objects is n n! n1, n2,..., n s n1! n2!... ns! Multinomial Coefficient 61 Distinguishable Permutations Example: For Christmas decoration, three different colors of light bulbs are used to line up is a row with 3 yellow, 5 green, and 6 red light bulbs. How many different ways can these light bulbs be arranged? 14 3,5,6 14! 3! 5! 6! 168168 62 Chapter 1 Probability 1.4 Conditional Probability Conditional Probability The conditional probability of event to occur given event has occurred (or given the condition ) is denoted as ) and is, if ) is not zero, n(e) # of equally likely outcomes in E, ) n( ) ) or ) ) n( ) 63 64 Conditional Probability n( ) ) n( ) Conditional Probability ) ) ) Smoke S Not Smoke S Cancer C 20 5 25 No Cancer C 30 45 75 50 50 100 Smoke S Not Smoke S Cancer C 20 (.2) 5 (.05) 25 C) (.25) No Cancer C 30 (.3) 45 (.45) 75 C)(.75) 50 S) (.5) 50 S ) (.5) 100 (1.0) C S) 20/50.4 C S ' ) 5/50.1 65 C S).2/.5.4 C S ' ).05/.5.1 C S) What is C S )? 4 (Relative Risk ) 66 Probability - 11

General Multiplication Rule For any two events and, ) ) ) ) ) General Multiplication Rule If in the population, 50% of the people smoked, and 40% of the smokers have lung cancer, what percentage of the population that are smoker and have lung cancer? ) ) ) ) ) ) 67 S) 50% of the subjects smoked C S) 40% of the smokers have cancer C S) C S) S).4 x.5.2 68 General Multiplication Rule ox 1 contains 2 red balls and 1 blue ball ox 2 contains 1 red ball and 3 blue balls coin is tossed. If Head turns up a ball is drawn from ox 1, and if Tail turns up then a ball is drawn from ox 2. Find the probability of selecting a red ball. H Red) T Red) H)Red H) T)Red T) (1/2) x (2/3) (1/2) x (1/4) 1/3 1/8 11/24 69 Chapter 1 Probability 1.5 Independent Events 70 Independent Events Events and are independent if ) ) or ) ) or ) ) ) Special Multiplication Rule If event and are independent, ) ) ) 71 72 Probability - 12

Example If a balanced die is rolled twice, what is the probability of having two 6 s? 6 1 the event of getting a 6 on the 1st trial 6 2 the event of getting a 6 on the 2nd trial 6 1 ) 1/6, 6 2 ) 6 2 6 1 ) 1/6, 6 1 and 6 2 are independent events 6 1 6 2 ) 6 1 ) 6 2 ) (1/6)(1/6) 1/36 Independent Events 10% of the people in a large population has disease H. If a random sample of two subjects was selected from this population, what is the probability that both subjects have disease H? H i : Event that the i-th randomly selected subject has disease H. H 2 H 1 ) H 2 ) [Events are almost independent] H 1 H 2 )?H 1 ) H 2 ).1 x.1.01 73 74 Independent Events If events 1, 2,, k are independent, then 1 2 k ) 1 ) 2 ) k ) What is the probability of getting all heads in tossing a balanced coin four times experiment? H 1 ) H 2 ) H 3 ) H 4 ) (.5) 4.0625 75 Independent Events 10% of the people in a large population has disease H. If a random sample of 3 subjects was selected from this population, what is the probability that all subjects have disease H? H i : Event that the i-th randomly selected subject has disease H. [Events are almost independent] H 1 H 2 H 3 )?H 1 ) H 2 ) H 3 ).1 x.1 x.1.001 76 inomial Probability What is the probability of getting two 6 s in casting a balanced die 5 times experiment? S S S S S ) (1/6) 2 x (5/6) 3 0.016 S S S S S ) (1/6) 2 x (5/6) 3 S S S S S ) (1/6) 2 x (5/6) 3 5 5! How many of them? 10 2 2!3! Chances of malfunctioning.01.02.03 1 2 3 medical devise consists of 3 components. The devise will not be functioning if any of these 3 components failed. The performance of these 3 components are independent to each other. When the devise is turned on, the chance of component 1 would be malfunctioned is.01, and the chance of the component 2 would be malfunctioned is.02, and the chance of the component 3 would be malfunctioned is.03. What is the probability that this medical devise will be functioning next time the system is turned on? Probability (two 6 s) 0.016 x 10 0.16 (1.01)(1.02)(1.03).99 x.98 x.97.941 77 78 Probability - 13

ayes s Theorem Chapter 1 Probability 1.6 ayes s Theorem (Diagnostic Tests) (Screening Tests) ox 1 contains 2 red balls and 1 blue ball ox 2 contains 1 red ball and 3 blue balls coin is tossed. If Head turns up a ball is drawn from ox 1, and if Tail turns up then a ball is drawn from ox 2. If a red ball is drawn, what is probability that it is from ox 1? H Red)? 79 80 ayes s Theorem ox 1 contains 2 red balls and 1 blue ball ox 2 contains 1 red ball and 3 blue balls 1/2 H ) 1/2 T ) 2/3 1/3 1/4 3/4 Red H ) 1/3 H Red) H Red) H)xRed H) 1/6 lue H) H lue) Red T ) lue T ) 1/8 T Red) 3/8 T lue) 81 ayes s Theorem 1/2 H ) 1/2 T ) 2/3 1/3 1/4 3/4 Red H ) 1/3 H Red) H Red) H)xRed H) lue H) 1/6 H lue) Red T ) lue T ) 1/8 T Red) 3/8 T lue) H R) H R) H R) R) H R) T R) [1/3] / ([1/3] [1/8]) 8/11 82 Prior and Posterior Probabilities H Red) is called the Posterior Probability of H. H) is called the Prior probability of H. 83 ayes s Theorem D) D) D) Plant (80%) - has 2% of Defective products. Plant (20%) - has 1% of Defective products. If a defective product is found what is the probability that it was from Plant?.016 2% D ) D ) 80% ) 20% ).784 98% ND ) ND ) 1%.002 D ) D ) 99% ND ).198 ND ) 84 Probability - 14

ayes s Theorem 80% ) 20% ) D) D) D) 2% D ).016 D ) ND ).784 ND ) 98% 1%.002 D ) D ) 99% ND ).198 ND ) D) D) D) ayes s Theorem Let 1, 2,, m be mutually exclusive and exhaustive events that constitute a partition of sample space S. The prior probabilities of events i are positive. If is the union of m mutually exclusive events that, U m ( i i ) 1 and that m m ) i i ) i i ) 1 1 i ) then ) ) k ), k 1,2,... m 1 2 m k k m.016 / (.016.002).889 P i i ) ( i ) 1 85 86 Some Questions Example: Coronary artery disease If you test positive for HIV, what is the probability that you have HIV? If you used an inspection system and detected a defective computer chip what is the probability that this chip is really defective? Positive T Negative T Present D 815 208 bsent D 115 327 930 535 1023 442 1465 87 [From the book, Medical Statistics page 30, and the 2x2 table from data of Weiner et al (1979)] 88 Present D bsent D Present D bsent D Positive T 815 115 930 Positive T 815 115 930 Negative T 208 327 535 Negative T 208 327 535 1023 442 1465 1023 442 1465 The disease Prevalence in these patients D ) 1023/1465.70 Predictive Value of a Positive Test: The probability of having the disease given that a person has a positive test is given by: D T ) 815/1465 815 D T ).88 T ) 930 /1465 930 89 Predictive Value of a Negative Test: D T ) D T T ) ) 90 Probability - 15

Present D bsent D Present D bsent D Positive T 815 115 930 Positive T 815 115 930 Negative T 208 327 535 Negative T 208 327 535 1023 442 1465 1023 442 1465 Things to notice: (Prevalence) D T ) D T ) D T ) 815/1465 208/1465 1023/1465.7 Likewise, (Overall percentage that tested positive) ) T D ) T D ) 815 /1465 115 /1465 930 /1465.63 Calculate the following: D ) T ) D T ) D ) T ) 91 92 Present D bsent D Positive T 815 115 930 Sensitivity and Specificity Negative T 208 1023 327 442 535 1465 Sensitivity: The probability of a person testing positive, given that (s)he has the disease. T D ) 815/1465 T D ) 815 /1023.80 D ) 1023 /1465 93 94 Present D bsent D Present D bsent D Positive T 815 115 930 Positive T 815 115 930 Negative T 208 327 535 Negative T 208 327 535 1023 442 1465 1023 442 1465 Specificity: The probability of a person testing negative given that (s)he does not have the disease. T D ) 327 /1465 T D ) 327 / 442.74 D ) 442/1465 False Negative rate 1 sensitivity T D ) 208/1465 T D ) 208/1023.2 D ) 1023/1465 False Positive rate 1 specificity T D ) 115 /1465 T D ) 115 / 442.26 D ) 442 /1465 95 96 Probability - 16

Sensitivity & False Negatives For our problem, since the sensitivity is.8, the false negative rate is 1.8.2. Interpretation: 20% of the time a person will actually have the disease when the test says that he/she does not. Likewise, since specificity is.74, the false positive rate is 0.26. Sensitivity vs Specificity In a perfect world, we want both to be high. The two components have a see-saw relationship. Comparisons of tests accuracy are done with Receiver Operator Characteristic (ROC) curves. 97 98 ROC Sensitivity 1.0 Test Positive Criteria 1 2 3 4 5 0 1.0 Sensitivity 1.0.93.81.64 0 second test 1 Specificity Specificity 0.55.59.80 1.0 99 bout ROC Curve rea under the ROC represents the probability of correctly distinguishing a normal from an abnormal subject on the relative ordering of the test ratings. Two screening tests for the same disease, the test with the higher area under its ROC curve is considered the better test, unless there is particular level of sensitivity or specificity is especially important in comparing the two tests. 100 ) ) ayes s Theorem P ( ) ) pplying ayes s formula, we can find the predictive value of a positive test using sensitivity of a test sensitivity prevalence T D ) D ) (.8)(.7) D T ). 89 T ).63 Tested positive In words, the predictive value of a positive test is equal to the sensitivity (.8) times prevalence (.7) divided by percentage who test positive (.63). 101 Example Suppose that 84% of hypertensives and 23% of normotensives are classified as hypertensive by an automated blood-pressure machine. If it is estimated that the prevalence of hypertensives is 20%, what is the predictive value of a positive test? What is the predictive value of a negative test? Sensitivity.84 Specificity 1.23.77 Pretty Good Test!?? (.84)(.2) (.84)(.2) (.84)(.2) PV.48 T ) T D ) T D ) (.2)(.84) (.8)(.23) PV.95 What if only 2% prevalence? 102 Probability - 17