Conditional Probability

Similar documents
Random Variables Example:

Random Variables. Definition: A random variable (r.v.) X on the probability space (Ω, F, P) is a mapping

Rules of Probability

What is Probability? Probability. Sample Spaces and Events. Simple Event

Mathematics. ( : Focus on free Education) (Chapter 16) (Probability) (Class XI) Exercise 16.2

Expected Value 7/7/2006

CS206 Review Sheet 3 October 24, 2018

CSC Discrete Math I, Spring Discrete Probability

Probabilistic models

Events A and B are said to be independent if the occurrence of A does not affect the probability of B.

Discrete Random Variable

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

SDS 321: Introduction to Probability and Statistics

2. Conditional Probability


Lecture 3 - Axioms of Probability

MODULE 2 RANDOM VARIABLE AND ITS DISTRIBUTION LECTURES DISTRIBUTION FUNCTION AND ITS PROPERTIES

STAT 430/510 Probability

(i) Given that a student is female, what is the probability of having a GPA of at least 3.0?

Relationship between probability set function and random variable - 2 -

Homework 4 Solution, due July 23

Part (A): Review of Probability [Statistics I revision]

What is a random variable

Conditional Probability

Random Variables. Statistics 110. Summer Copyright c 2006 by Mark E. Irwin

Sec$on Summary. Assigning Probabilities Probabilities of Complements and Unions of Events Conditional Probability

9/6/2016. Section 5.1 Probability. Equally Likely Model. The Division Rule: P(A)=#(A)/#(S) Some Popular Randomizers.

LECTURE 1. 1 Introduction. 1.1 Sample spaces and events

Discrete random variables and probability distributions

Lecture Notes 1 Basic Probability. Elements of Probability. Conditional probability. Sequential Calculation of 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

2. AXIOMATIC PROBABILITY

Probability: Terminology and Examples Class 2, Jeremy Orloff and Jonathan Bloom

p. 4-1 Random Variables

Probability (10A) Young Won Lim 6/12/17

Dept. of Linguistics, Indiana University Fall 2015

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

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

Probability, Random Processes and Inference

Probability Theory. Introduction to Probability Theory. Principles of Counting Examples. Principles of Counting. Probability spaces.

More on Distribution Function

27 Binary Arithmetic: An Application to Programming

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

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

Applied Statistics I

ω X(ω) Y (ω) hhh 3 1 hht 2 1 hth 2 1 htt 1 1 thh 2 2 tht 1 2 tth 1 3 ttt 0 none

ELEG 3143 Probability & Stochastic Process Ch. 1 Probability

Chapter 2: The Random Variable

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

Probability. VCE Maths Methods - Unit 2 - Probability

ECE 450 Lecture 2. Recall: Pr(A B) = Pr(A) + Pr(B) Pr(A B) in general = Pr(A) + Pr(B) if A and B are m.e. Lecture Overview

Deep Learning for Computer Vision

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

324 Stat Lecture Notes (1) Probability

Solution to HW 12. Since B and B 2 form a partition, we have P (A) = P (A B 1 )P (B 1 ) + P (A B 2 )P (B 2 ). Using P (A) = 21.

Senior Math Circles November 19, 2008 Probability II

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

Intermediate Math Circles November 8, 2017 Probability II

Lecture Lecture 5

2.6 Tools for Counting sample points

Why should you care?? Intellectual curiosity. Gambling. Mathematically the same as the ESP decision problem we discussed in Week 4.

MATH1231 Algebra, 2017 Chapter 9: Probability and Statistics

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

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

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

V. RANDOM VARIABLES, PROBABILITY DISTRIBUTIONS, EXPECTED VALUE

Chapter 2 PROBABILITY SAMPLE SPACE

PROBABILITY CHAPTER LEARNING OBJECTIVES UNIT OVERVIEW

Discrete Probability

Lecture 6 Random Variable. Compose of procedure & observation. From observation, we get outcomes

Discrete Random Variables

Probabilistic models

P (A) = P (B) = P (C) = P (D) =

Quantitative Methods for Decision Making

Discrete Probability Distribution

6.2 Introduction to Probability. The Deal. Possible outcomes: STAT1010 Intro to probability. Definitions. Terms: What are the chances of?

Conditional Probability and Bayes Theorem (2.4) Independence (2.5)

Binomial and Poisson Probability Distributions

Chapter 4: Probability and Probability Distributions

Sample Spaces, Random Variables

Chapter 2. Conditional Probability and Independence. 2.1 Conditional Probability

4th IIA-Penn State Astrostatistics School July, 2013 Vainu Bappu Observatory, Kavalur

Bayes Rule for probability

The Bernoulli distribution has only two outcomes, Y, success or failure, with values one or zero. The probability of success is p.

Probability Pearson Education, Inc. Slide

Example. If 4 tickets are drawn with replacement from ,

Chapter 2. Conditional Probability and Independence. 2.1 Conditional Probability

Joint Distribution of Two or More Random Variables

Conditional Probability (cont...) 10/06/2005

The probability of an event is viewed as a numerical measure of the chance that the event will occur.

Mathematical Foundations of Computer Science Lecture Outline October 18, 2018

4. Suppose that we roll two die and let X be equal to the maximum of the two rolls. Find P (X {1, 3, 5}) and draw the PMF for X.

Formal Modeling in Cognitive Science

Formal Modeling in Cognitive Science Lecture 19: Application of Bayes Theorem; Discrete Random Variables; Distributions. Background.

Lecture 2. Constructing Probability Spaces

the time it takes until a radioactive substance undergoes a decay

Outline. 1. Define likelihood 2. Interpretations of likelihoods 3. Likelihood plots 4. Maximum likelihood 5. Likelihood ratio benchmarks

Introduction Probability. Math 141. Introduction to Probability and Statistics. Albyn Jones

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

ACM 116: Lecture 2. Agenda. Independence. Bayes rule. Discrete random variables Bernoulli distribution Binomial distribution

Transcription:

Conditional Probability Idea have performed a chance experiment but don t know the outcome (ω), but have some partial information (event A) about ω. Question: given this partial information what s the probability that the outcome is in some event B? Example: Toss a coin 3 times. We are interested in event B that there are 2 or more heads. The sample space has 8 equally likely outcomes. Ω = { HHH, HHT, HTH, THH, HTT, THT, TTH, TTT} The probability of the event B is Suppose we know that the first coin came up H. Let A be the event the first outcome is H. Then A { HHH, HHT, HTH, HTT} and A B = HHH, HHT, The conditional probability of B given A is 3 3 8 P( A B) = = 4 4 8 P A = { HTH} ( ) week 2 1

Given a probability space (Ω, F, P) and events A, B F with P(A) > 0 The conditional probability of B given the information that A has occurred is P ( ) ( A B) P B A = P A Example: ( ) We toss a die. What is the probability of observing the number 6 given that the outcome is even? Does this give rise to a valid probability measure? Theorem If A F and P(A) > 0 then (Ω, F, Q) is a probability space where Q : is defined by Q(B) = P(B A). Proof: F R week 2 2

The fact that conditional probability is a valid probability measure allows the following: ( ) ( ) P B A = 1 P B A, A, B F, P(A) >0 P ( B B A) = P( B A) + P( B A) P( B B A) 1 2 1 2 1 2 for any A, B 1, B 2 F, P(A) >0. week 2 3

Multiplication rule For any two events A and B, For any 3 events A, B and C, P ( A B) = P P ( B A) P( A) ( A B C) = P( A) P( B A) P( C A B) In general, P n I i= 1 A i = P n 1 ( A ) P( A A ) P( A A A ) P A A 1 2 1 3 1 2 n I i= 1 i Example: An urn initially contains 10 balls, 3 blue and 7 white. We draw a ball and note its colure; then we replace it and add one more of the same colure. We repeat this process 3 times. What is the probability that the first 2 balls drawn are blue and the third one is white? Solution: week 2 4

Law of total probability Definition: For a probability space (Ω, F, P), a partition of Ω is a countable collection { B i } of events such that B i F, B B = Φ and B = Ω. Theorem: If { B, B,... 1 2 } is a partition of Ω such that P B i > 0 then Proof: ( A) P( A B ) P( ) i j U i for any A. P = i B i F i i ( ) i week 2 5

Examples 1. Calculation of for the Urn example. P ( ) B 2 2. In a certain population 5% of the females and 8% of the males are lefthanded; 48% of the population are males. What proportion of the population is left-handed? Suppose 1 person from the population is chosen at random; what is the probability that this person is left-handed? week 2 6

{ } Bayes Rule Let B, 2,... be a partition of Ω such that P( ) > 0 for all i then 1 B for any A F. P ( B A) j = P( A B j ) P( B j ) P A Bi P Bi i ( ) ( ) Example: A test for a disease correctly diagnoses a diseased person as having the disease with probability 0.85. The test incorrectly diagnoses someone without the disease as having the disease with probability 0.1 If 1% of the people in a population have the disease, what is the probability that a person from this population who tests positive for the disease actually has it? (a) 0.0085 (b) 0.0791 (c) 0.1075 (d) 0.1500 (e) 0.9000 B i week 2 7

Independence Example: Roll a 6-sided die twice. Define the following events A : 3 or less on first roll B : Sum is odd. If occurrence of one event does not affect the probability that the other occurs than A, B are independent. week 2 8

Definition Events A and B are independent if Note: Independence disjoint. Two disjoint events are independent if and only if the probability of one of them is zero. Generalized to more than 2 events: A collection of events 1, 2 is (mutually) independent if for any subcollection P ( A B) P( A) P( B) P = { A A,... A } i, 1 i2 { A A,... } i m A n ( A A A ) = P( A ) P( A ) P( A ) i 1 i2 im i1 i 2 im Note: pairwize independence does not guarantee mutual independence. week 2 9

Example Roll a die twice. Define the following events; A: 1st die odd B: 2nd die odd C: sum is odd. week 2 10

Example Let R, S and T be independent, equally likely events with common ( ) probability 1/3. What is P R S T? Solution: week 2 11

Claim If A, B are independent so are A, B and A, B and A, B. Proof: week 2 12

Random Variables Example: We roll a fair die 6 times. Suppose we are interested in the number of 5 s in the 6 rolls. Let X = number of 5 s. Then X could be 0, 1, 2, 3, 4, 5, 6. X = 0 corresponds to the 56 elements of our 66 elements of Ω. X = 1 corresponds to the elements etc. X is an example of a random variable. Probability models often stated terms of random variables. E.g. - model for the # of H s in 10 flips of a coin. - model for the height of a randomly chosen person. - model for size of a queue. week 2 13

Discrete Probability Spaces (Ω, F, P) week 2 14

Discrete Random Variable Definition: A random variable X is said to be discrete if it can take only a finite or countably infinite number of distinct values. A discrete random variable X maps the sample space Ω onto a countable set. Define a probability mass function (pmf) or frequency function on X such that Where the sum is taken over all possible values of X. Note that there is a theorem that states that there exists a probability triple and random variable whenever we have a function p such that Definition: The probability distribution of a discrete random variable X is represented by a formula, a table or a graph which provides the list of all possible values that X can take and the pmf for each value week 2 15

Examples of Discrete Random Variables Discrete Uniform Distribution We roll a fair die. Let X = the # that comes up. We have that This is an example of equiprobable outcomes, that is X ( ω ) = ω To state the probability distribution of X we need to give its possible values and its pmf X is a discrete Uniform random variable. X has a uniform distribution. week 2 16

Bernoulli Distribution week 2 17

Binomial Distribution Roll a die n time and count the number of times 6 came up. Let X be the number of 6 s in n rolls. X has image {1, 2,, n} The probability distribution of X is given by the following formula In general, if identical Bernoulli trail is repeated n times independently and X is a random variable that count the number of success in the n trails then the probability distribution of X is given by Where p is the probability of success on any one experiment. X is a Binomial random variable. X has a Binomial Distribution. Question: is this a valid pmf? Prove! week 2 18

Geometric Distribution We roll a fair die until the first 6 comes up. Let X = the number of rolls until we get the first 6. Possible values of X: {1, 2, 3,..} The probability distribution of X is given by the following formula In general, if identical Bernoulli trail is repeated independently until the first success is obtained and X is a random variable that count the number of trials until the first success then the probability distribution of X is given by X is a Geometric random variable. X has a Geometric Distribution. Question: is this a valid pmf? Prove! week 2 19

In general for a Geometric distribution: Memory-less property of geometric random variable: for i > j week 2 20

Negative Binomial Distribution We roll a fair die until the second 6 comes up. This is the waiting time for the second 6. Let X = the number of rolls until we get two 6 s. Possible values of X: {2, 3, 4,..} The probability distribution of X is given by the following formula Is this a valid pmf? Prove! In general, X is the total number of experiments when waiting for rth success in a sequence of independent Bernoulli trails. The probability distribution of X is given by X has a Negative Binomial random Distribution. week 2 21

Hypergeometric Distribution A hat contains 12 tickets, 7 black and 5 white. Three tickets are drawn at random. Let X = the # of black tickets drawn. X could be 0, 1, 2, 3. The probability mass for each value can be calculated using combinatorics. For example, week 2 22

Poisson Distribution Model for the number of events occurring in a time (or space) interval where λ (a parameter of the distribution) is the rate of the occurrence of the events per one unit of time (or space). A Poisson random variable X = number of events per one unit of time (space). Possible values for X: {0, 1, 2, } The probability distribution of X is given by Is this a valid pmf? Prove! week 2 23