Docsity

Bayes' Rule, Slides of Probability and Statistics

Partial preview of the text

Download Bayes' Rule and more Slides Probability and Statistics in PDF only on Docsity!

Bayes’ Rule Review

Lecture 8

Bayes’ Rule

Text: A Course in Probability by Weiss 4. 4

STAT 225 Introduction to Probability Models February 2, 2014

Whitney Huang Purdue University

Bayes’ Rule

Bayes’ Rule Review

Agenda

(^1) Bayes’ Rule

(^2) Review

Notes

Notes

Bayes’ Rule Review

Motivating example

Example (The Monty Hall Problem) There was an old television show called Let’s Make a Deal, whose original host was named Monty Hall. The set–up is as follows. You are on a game show and you are given the choice of three doors. Behind one door is a car, behind the others are goats. You pick a door, and the host, who knows what is behind the doors, opens another door (not your pick) which has a goat behind it. Then he asks you if you want to change your original pick. The question we ask you is, “Is it to your advantage to switch your choice?"

Bayes’ Rule

Bayes’ Rule Review

The Monty Hall Problem Notes

Notes

Bayes’ Rule Review

Example 24

Let us assume that a specific disease is only present in 5 out of every 1,000 people. Suppose that the test for the disease is accurate 99% of the time a person has the disease and 95% of the time that a person lacks the disease. What is the probability that the person has the disease given that they tested positive?

Solution.

Bayes’ Rule

Bayes’ Rule Review

Basic Concepts

Random experiment: sample space, element, event Set operations: union, intersection Set relations: mutually exclusive, exhaust, partition

Notes

Notes

Bayes’ Rule Review

Probability Rules

0 ≤ P (E) ≤ 1 for any event E, P (∅) = 0, P (Ω) = 1 Complement rule: P (A) = 1 − P (Ac^ ) General addition rule: P (A ∪ B) = P (A) + P (B) − P (A ∩ B) General multiplication rule: P (A ∩ B) = P (A|B) × P (B) = P (B|A) × P (A) Conditional probability: P (A|B) = P ( P A(∩BB)) Law of total probability: P (B) =

∑k i= 1 P (B^ ∩^ Ai^ ) =^

∑k i= 1 P (B|Ai^ )^ ×^ P (Ai^ ) Independence: if A and B are independent, then P (A|B) = P (A), P (B|A) = P (B), and P (A ∩ B) = P (A) P (B)

Bayes’ Rule

Bayes’ Rule Review

Counting Problem

Basic counting rule Permutation Combination Ordered partition

Notes

Notes