Lecture 7. Bayes formula and independence

Similar documents
18.600: Lecture 7 Bayes formula and independence

18.600: Lecture 7 Bayes formula and independence

Lecture 16. Lectures 1-15 Review

Lecture 9. Expectations of discrete random variables

Lecture 10. Variance and standard deviation

STAT:5100 (22S:193) Statistical Inference I

MA : Introductory Probability

Lecture 23. Random walks

LECTURE 1. 1 Introduction. 1.1 Sample spaces and events

MASSACHUSETTS INSTITUTE OF TECHNOLOGY 6.436J/15.085J Fall 2008 Lecture 3 9/10/2008 CONDITIONING AND INDEPENDENCE

18.440: Lecture 26 Conditional expectation

18.600: Lecture 3 What is probability?

Lecture 7. Sums of random variables

18.600: Lecture 4 Axioms of probability and inclusion-exclusion

Conditional Probability and Bayes

Mutually Exclusive Events

Lecture 2: Probability, conditional probability, and independence

Chapter 3 : Conditional Probability and Independence

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

Example: Suppose we toss a quarter and observe whether it falls heads or tails, recording the result as 1 for heads and 0 for tails.

Dynamic Programming Lecture #4

Axiomatic Foundations of Probability. Definition: Probability Function

CMPSCI 240: Reasoning about Uncertainty

Denker FALL Probability- Assignment 6

CS4705. Probability Review and Naïve Bayes. Slides from Dragomir Radev

Independence. CS 109 Lecture 5 April 6th, 2016

Lecture Notes 1 Basic Probability. Elements of Probability. Conditional probability. Sequential Calculation of Probability

Chapter 2. Conditional Probability and Independence. 2.1 Conditional Probability

With Question/Answer Animations. Chapter 7

Lecture 12. Poisson random variables

Outline Conditional Probability The Law of Total Probability and Bayes Theorem Independent Events. Week 4 Classical Probability, Part II

Introduction and basic definitions

Chapter 2. Conditional Probability and Independence. 2.1 Conditional Probability

Bayesian statistics, simulation and software

the time it takes until a radioactive substance undergoes a decay

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

Lecture Lecture 5

Conditional Probability & Independence. Conditional Probabilities

18.175: Lecture 2 Extension theorems, random variables, distributions

Statistical Inference

Statistical Theory 1

Probability Theory for Machine Learning. Chris Cremer September 2015

Chapter 2.5 Random Variables and Probability The Modern View (cont.)

Conditional Probability. CS231 Dianna Xu

Introduction to Probability

Independence. P(A) = P(B) = 3 6 = 1 2, and P(C) = 4 6 = 2 3.

CS626 Data Analysis and Simulation

Lecture 14. More discrete random variables

Today. Statistical Learning. Coin Flip. Coin Flip. Experiment 1: Heads. Experiment 1: Heads. Which coin will I use? Which coin will I use?

Consider an experiment that may have different outcomes. We are interested to know what is the probability of a particular set of outcomes.

P (A B) P ((B C) A) P (B A) = P (B A) + P (C A) P (A) = P (B A) + P (C A) = Q(A) + Q(B).

Chapter 3 Conditional Probability and Independence. Wen-Guey Tzeng Computer Science Department National Chiao Tung University

Lecture 18. Uniform random variables

Probability Theory and Applications

Lecture 1. ABC of Probability

AMS7: WEEK 2. CLASS 2

Dept. of Linguistics, Indiana University Fall 2015

Lecture 2. Conditional Probability

Determining Probabilities. Product Rule for Ordered Pairs/k-Tuples:

Lecture 9: Conditional Probability and Independence

SDS 321: Introduction to Probability and Statistics

Lecture 4: Probability, Proof Techniques, Method of Induction Lecturer: Lale Özkahya

Lecture 4 Bayes Theorem

Conditional Probability & Independence. Conditional Probabilities

Recitation 2: Probability

Let us think of the situation as having a 50 sided fair die; any one number is equally likely to appear.

Chapter 3 Conditional Probability and Independence. Wen-Guey Tzeng Computer Science Department National Chiao Tung University

2. AXIOMATIC PROBABILITY

Mean, Median and Mode. Lecture 3 - Axioms of Probability. Where do they come from? Graphically. We start with a set of 21 numbers, Sta102 / BME102

Probability Review Lecturer: Ji Liu Thank Jerry Zhu for sharing his slides

Lecture 10: Bayes' Theorem, Expected Value and Variance Lecturer: Lale Özkahya

18.440: Lecture 25 Covariance and some conditional expectation exercises

CS 361: Probability & Statistics

Chapter 2 Probability

Lecture 1: Probability Fundamentals

Econ 325: Introduction to Empirical Economics

18.175: Lecture 8 Weak laws and moment-generating/characteristic functions

P (E) = P (A 1 )P (A 2 )... P (A n ).

EE 178 Lecture Notes 0 Course Introduction. About EE178. About Probability. Course Goals. Course Topics. Lecture Notes EE 178

Bayesian Updating: Odds Class 12, Jeremy Orloff and Jonathan Bloom

Origins of Probability Theory

Lecture 4 : Conditional Probability and Bayes Theorem 0/ 26

Massachusetts Institute of Technology

4. Conditional Probability P( ) CSE 312 Autumn 2012 W.L. Ruzzo

18.175: Lecture 14 Infinite divisibility and so forth

Announcements. Topics: To Do:

STAT 285 Fall Assignment 1 Solutions

Hypothesis Testing. Testing Hypotheses MIT Dr. Kempthorne. Spring MIT Testing Hypotheses

Lecture 3 - Axioms of Probability

CSCI 5832 Natural Language Processing. Today 1/31. Probability Basics. Lecture 6. Probability. Language Modeling (N-grams)

Bayes Formula. MATH 107: Finite Mathematics University of Louisville. March 26, 2014

Introduction to Probability 2017/18 Supplementary Problems

18.05 Problem Set 5, Spring 2014 Solutions

Lecture Slides - Part 1

LEARNING WITH BAYESIAN NETWORKS

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

Lecture 4 Bayes Theorem

Introduction to Machine Learning

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

Week 2: Probability: Counting, Sets, and Bayes

Transcription:

18.440: Lecture 7 Bayes formula and independence Scott Sheffield MIT 1

Outline Bayes formula Independence 2

Outline Bayes formula Independence 3

Recall definition: conditional probability Definition: P(E F ) = P(EF )/P(F ). Equivalent statement: P(EF ) = P(F )P(E F ). Call P(E F ) the conditional probability of E given F or probability of E conditioned on F. 4

Dividing probability into two cases P(E ) = P(EF ) + P(EF c ) = P(E F )P(F ) + P(E F c )P(F c ) In words: want to know the probability of E. There are two scenarios F and F c. If I know the probabilities of the two scenarios and the probability of E conditioned on each scenario, I can work out the probability of E. Example: D = have disease, T = positive test. If P(D) = p, P(T D) =.9, and P(T D c ) =.1, then P(T ) =.9p +.1(1 p). What is P(D T )? 5

Bayes theorem Bayes theorem/law/rule states the following: P(B A)P(A) P(A B) = P(B). Follows from definition of conditional probability: P(AB) = P(B)P(A B) = P(A)P(B A). Tells how to update estimate of probability of A when new evidence restricts your sample space to B. So P(A B) is P(B A) P(B A) P(B) times P(A). Ratio P(B) What does it mean if ratio is zero? What if ratio is 1/P(A)? determines how compelling new evidence is. 6

Bayes theorem Bayes formula P(A B) = to guide intuition. P(B A)P(A) P(B) is often invoked as tool Example: A is event that suspect stole the 10, 000 under my mattress, B is event that suspect deposited several thousand dollars in cash in bank last week. Begin with subjective estimates of P(A), P(B A), and P(B A c ). Compute P(B). Check whether B occurred. Update estimate. Repeat procedure as new evidence emerges. Caution required. My idea to check whether B occurred, or is a lawyer selecting the provable events B 1, B 2, B 3,... that maximize P(A B 1 B 2 B 3...)? Where did my probability estimates come from? What is my state space? What assumptions am I making? 7

Bayesian sometimes used to describe philosophical view Philosophical idea: we assign subjective probabilities to questions we can t answer. Will Obama win election? Will Red Sox win world series? Will stock prices go up this year? Bayes essentially described probability of event as value of right to get some thing if event occurs. value of thing Philosophical questions: do we have subjective probabilities/hunches for questions we can t base enforceable contracts on? Do there exist other universes? Are there other intelligent beings? Are there beings smart enough to simulate universes like ours? Are we part of such a simulation?... Do we use Bayes subconsciously to update hunches? Should we think of Bayesian priors and updates as part of the epistemological foundation of science and statistics? 8

Updated odds Define odds of A to be P(A)/P(A c ). Define conditional odds of A given B to be P(A B)/P(A c B). Is there nice way to describe ratio between odds and conditional odds? P(A B)/P(A c B) =? P(A)/P(A c ) By Bayes P(A B)/P(A) = P(B A)/P(B). P(A B)/P(A c B) After some algebra, = P(B A)/P(B A c ) P(A)/P(A c ) Say I think A is 5 times as likely as A c, and P(B A) = 3P(B A c ). Given B, I think A is 15 times as likely as A c. 9

P( F ) is a probability measure We can check the probability axioms: 0 P(E F ) 1, P(S F ) = 1, and P( E i F ) = P(E i F ), if i ranges over a countable set and the E i are disjoint. The probability measure P( F ) is related to P( ). To get former from latter, we set probabilities of elements outside of F to zero and multiply probabilities of events inside of F by 1/P(F ). It P( ) is the prior probability measure and P( F ) is the posterior measure (revised after discovering that F occurs). 10

Outline Bayes formula Independence 11

Outline Bayes formula Independence 12

Independence Say E and F are independent if P(EF ) = P(E )P(F ). Equivalent statement: P(E F ) = P(E ). Also equivalent: P(F E ) = P(F ). Example: toss two coins. Sample space contains four equally likely elements (H, H), (H, T ), (T, H), (T, T ). Is event that first coin is heads independent of event that second coin heads. Yes: probability of each event is 1/2 and probability of both is 1/4. Is event that first coin is heads independent of event that number of heads is odd? Yes: probability of each event is 1/2 and probability of both is 1/4... despite intuitive sense that oddness of the number of heads depends on the first coin. 13

Independence of multiple events Say E 1... E n are independent if for each {i 1, i 2,..., i k } {1, 2,... n} we have P(E i1 E i2... E ik ) = P(E i1 )P(E i2 )... P(E ik ). In other words, the product rule works. Independence implies P(E 1 E 2 E 3 E 4 E 5 E 6 ) = P(E 1 )P(E 2 )P(E 3 )P(E 4 )P(E 5 )P(E 6 ) = P(E 1 E 2 E 3 ), and other similar P(E 4 )P(E 5 )P(E 6 ) statements. Does pairwise independence imply independence? No. Consider these three events: first coin heads, second coin heads, odd number heads. Pairwise independent, not independent. 14

Independence: another example Shuffle 4 cards with labels 1 through 4. Let E j,k be event that card j comes before card k. Is E 1,2 independent of E 3,4? Is E 1,2 independent of E 1,3? No. In fact, what is P(E 1,2 E 1,3 )? Generalize to n > 7 cards. What is P(E 1,7 E 1,2 E 1,3 E 1,4 E 1,5 E 1,6 )? 15

MIT OpenCourseWare http://ocw.mit.edu 18.440 Probability and Random Variables Spring 2014 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.