Bayes - ECON*2740ClassNotes,Winter2012...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
1 ECON*2740 Class Notes, Winter 2012 Course Instructor: David Prescott Bayes’ Theorem Bayes’ theorem provides a way to update probabilities in the light of new information. In the following example, new information is provided by a drug seeking dog. Suppose that at Toronto airport, 1 in a thousand packages originating from a certain country contains drugs. Suppose a drug hunting dog correctly identifies 99% of packages that contain drugs and correctly identifies 98% of packages that do not contain drugs. What is the probability that a package identified as containing drugs actually does contain drugs? What is the probability that a package identified as not containing drugs actually contains drugs? D: a package contains drugs ܦ : a package does not contain drugs Y: the dog indicates a package contains drugs N: the dog indicates a package does not contain drugs Prior to information provided by the dog, P(D) = 0.001 The dog’s accuracy is described by the following conditional probabilities ܲሺܻ|ܦሻ ൌ 0.99 ܽ݊݀ ܲሺܰ|ܦ ሻ ൌ 0.98 Bayes’ theorem can be used to calculate the required probabilities. Recall the definition of conditional probability:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 ܲሺܣ|ܤሻൌ ܲሺܣ ת ܤሻ ܲሺܤሻ This can be rewritten as: ܲሺܣתܤሻ ൌ ܲሺܣ|ܤሻܲሺܤሻ Similarly, ܲሺܣתܤሻൌ ܲሺܤ|ܣሻܲሺܣሻ Hence, it follows that ܲሺܣ|ܤሻܲሺܤሻ ൌ ܲሺܤ|ܣሻܲሺܣሻ From which we get Bayes’ theorem: ሾ1ሿ ܲሺܣ|ܤሻ ൌ ܲሺܤ|ܣሻܲሺܣሻ ܲሺܤሻ In many interesting problems, Bayes’ theorem can be used in the form shown in [1]. In other cases, such as the drug detection problem described above it is useful to express ܲሺܤሻൌ ܲሺܤתܣሻ൅ܲሺܤתܣ ҧ ܲሺܤሻൌ ܲሺܤ|ܣሻܲሺܣሻ ൅ ܲሺܤ|ܣ ҧ ሻܲሺܣ ҧ This and [1] give a second form of Bayes’ theorem: ሾ2ሿ ܲሺܣ|ܤሻ ൌ ܲሺܤ|ܣሻܲሺܣሻ ܲሺܤ|ܣሻܲሺܣሻ ൅ ܲሺܤ|ܣ ҧ ሻܲሺܣ ҧ Let’s apply [2] to the first question: What is the probability that a package identified as containing drugs actually does contain drugs?
Background image of page 2
3 ሾ3ሿ ܲሺܦ|ܻሻൌ ܲሺܻ|ܦሻܲሺܦሻ ܲሺܻ|ܦሻܲሺܦሻ ൅ ܲሺܻ|ܦ ሻܲሺܦ From the information provided: P(D) = 0.001, P(Y|D) = 0.99, and since ܲሺܰ|ܦ ሻൌ0 .98 it follows that ܲሺܻ|ܦ ሻൌ0 .02 . ܲሺܦ|ܻሻൌ 0.99ݔ0.001 0.99ݔ0.001 ൅ 0.02ݔ0.999 0.00099 0.02097 ൌ 0.0472 Despite the dog’s low error rates (1% false negatives and 2% false positives) it turns out that less than 5% of packages the dog identifies as containing drugs actually do contain drugs. The dog’s “evidence” turns out to be quite weak evidence of a crime. More than
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/13/2012 for the course ECON 2890 taught by Professor Jonathon during the Spring '12 term at University of Guelph.

Page1 / 12

Bayes - ECON*2740ClassNotes,Winter2012...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online