STAT 516: Basic Probability and its Applications

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

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

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

Chapter 3 : Conditional Probability and Independence

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

2011 Pearson Education, Inc

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}

Probability and Statistics Notes

Introduction and basic definitions

Elementary Discrete Probability

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

Probability Year 9. Terminology

Chapter 2 PROBABILITY SAMPLE SPACE

Probability the chance that an uncertain event will occur (always between 0 and 1)

Probability Year 10. Terminology

Lecture Lecture 5

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

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

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

Probability 5-4 The Multiplication Rules and Conditional Probability

STA 2023 EXAM-2 Practice Problems. Ven Mudunuru. From Chapters 4, 5, & Partly 6. With SOLUTIONS

Lecture 3 Probability Basics

Fundamentals of Probability CE 311S

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

Lecture 4. Selected material from: Ch. 6 Probability

2. AXIOMATIC PROBABILITY

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

PROBABILITY.

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

ELEG 3143 Probability & Stochastic Process Ch. 1 Probability

Conditional Probability

Mathematical Foundations of Computer Science Lecture Outline October 18, 2018

Econ 325: Introduction to Empirical Economics

STA 2023 EXAM-2 Practice Problems From Chapters 4, 5, & Partly 6. With SOLUTIONS

(a) Fill in the missing probabilities in the table. (b) Calculate P(F G). (c) Calculate P(E c ). (d) Is this a uniform sample space?

Discrete Random Variables (1) Solutions

Announcements. Topics: To Do:

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 2 MATH00040 SEMESTER / Probability

BASICS OF PROBABILITY CHAPTER-1 CS6015-LINEAR ALGEBRA AND RANDOM PROCESSES

STAT Chapter 3: Probability

A Event has occurred

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

Statistical Inference

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

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

Intermediate Math Circles November 8, 2017 Probability II

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

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


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

2.4. Conditional Probability

Chapter 2 Class Notes

Conditional probability

3.2 Probability Rules

Conditional Probability. CS231 Dianna Xu

Chapter 01: Probability Theory (Cont d)

Monty Hall Puzzle. Draw a tree diagram of possible choices (a possibility tree ) One for each strategy switch or no-switch

Law of Total Probability and Bayes Rule

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).

Introduction to probability

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

Chapter 2: Probability Part 1

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

LECTURE 1. 1 Introduction. 1.1 Sample spaces and events

Conditional Probability

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

Random Signals and Systems. Chapter 1. Jitendra K Tugnait. Department of Electrical & Computer Engineering. James B Davis Professor.

Exam III Review Math-132 (Sections 7.1, 7.2, 7.3, 7.4, 7.5, 7.6, 8.1, 8.2, 8.3)

UNIT 5 ~ Probability: What Are the Chances? 1

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

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

HW2 Solutions, for MATH441, STAT461, STAT561, due September 9th

Discrete Random Variables

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

Chapter 8 Sequences, Series, and Probability

4.2 Probability Models

Slide 1 Math 1520, Lecture 21

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

Formalizing Probability. Choosing the Sample Space. Probability Measures

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.

Probabilistic models

Lecture 3. Probability and elements of combinatorics

With Question/Answer Animations. Chapter 7

Lectures Conditional Probability and Independence

Computations - Show all your work. (30 pts)

Notes for Math 324, Part 17

MAT2377. Ali Karimnezhad. Version September 9, Ali Karimnezhad

Probabilistic models

Quantitative Methods for Decision Making

MA-250 Probability and Statistics. Nazar Khan PUCIT Lecture 21

Business Statistics MBA Pokhara University

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

Conditional Probability & Independence. Conditional Probabilities

Lecture 2: Probability

Announcements. Lecture 5: Probability. Dangling threads from last week: Mean vs. median. Dangling threads from last week: Sampling bias

Math Exam 1 Review. NOTE: For reviews of the other sections on Exam 1, refer to the first page of WIR #1 and #2.

Conditional Probability and Independence

Set/deck of playing cards. Spades Hearts Diamonds Clubs

Chapter 7 Wednesday, May 26th

2.6 Tools for Counting sample points

Transcription:

Lecture 3: Conditional Probability and Independence Prof. Michael September 29, 2015

Motivating Example Experiment ξ consists of rolling a fair die twice; A = { the first roll is 6 } amd B = { the sum of the two rolls is 12}. Under the assumption of the equally likely sample points, P(B) = 1 36 If we know that A already happened, intuitively we feel that the probability of the event B, given A, should be 1 6 We say that P(B A) = 1 6 and call it the conditional probability of A The conditional probability tells us among the times that A already happened how often B also happens

Formal definition of the conditional probability Conditional probability results from restricting the outcomes to only those that are inside C 1 where P(C 1 > 0) Therefore, instead of we have Thus, the definition: P(C 2 ) = N(C 2) N(S) N(C 2 C 1 ) N(S C 1 ) = P(C 2 C 1 ) P(S C 1 ) = P(C 2 C 1 ) P(C 1 ) P(C 2 C 1 ) = P(C 2 C 1 ) P(C 1 )

Properties of Conditional Probabilities P(C 2 C 1 ) 0 P(C 1 C 1 ) = 1 P( j=2 C j C 1 ) = j=2 P(C j C 1 )

Example I Consider the situation where of all individuals buying a digital camera 60% include an optional memory card, 40% - an extra battery and 30% - both. What is the probability that a person who buys an extra battery also buys a memory card? Let A = {memory card purchased } and B = {battery purchased } P(A B) = P(B A) = P(A B) P(B) P(A B) P(A) = 0.3 0.4 = 0.75 = 0.3 0.6 = 0.50

Multiplication Rule I A simple multiplication rule follows from the definition of conditional probability For any two events C 1 and C 2 such that P(C 1 ) > 0 P(C 1 C 2 ) = P(C 1 )P(C 2 C 1 ) For example, take a bowl with eight chips. 3 of the chips are red and the remaining 5 are blue. 2 chips are drawn without replacement. What is the probability that the 1st draw results in a red chip (C 1 ) and the second draw results in a blue chip (C 2 )

Multiplication rule II It is reasonable to assume that P(C 1 ) = 3 8 and P(C 2 C 1 ) = 5 7 Then, P(C 1 C 2 ) = 3 5 8 7 = 15 56 = 0.2679

Multiplication rule III The multiplication rule can be extended to three or more events Using the basic multiplication rule iteratively, and assuming P(C 1 C 2 ) > 0, we have P(C 1 C 2 C 3 ) = P(C 1 )P(C 2 C 1 )P(C 3 C 1 C 2 )

Multiplication rule IV Four cards are dealt successively from an ordinary deck of playing cards Dealing is at random and without replacement The probability of receiving a spade, a heart, a diamond, and a club, in that order, is 13 13 13 13 52 51 50 49 = 0.0044

The Law of Total Probability Let C 1,..., C k form a partition of the sample space S This means that C i C j = for all i j and k i=1 A i = S Moreover, let 0 < P(C i ) < 1, i = 1, 2,..., k Then, the Law of Total Probability is P(C) = k P(C i )P(C C i ) i=1

Example One of the cards from a deck of 52 cards is missing from the deck but we don t know which one One card is chosen at random from the remaining 51 cards. What is the probability that it is a spade? Let A = the missing card is a spade and B= the card chosen from the remaining ones is a spade Then, P(B) = P(B A)P(A) + P(B A )P(A ) = 12 1 51 4 + 13 3 51 4 = 1 4 Note that it is impossible to have 12.5 spade cards in the remaining deck of 51 cards...but P(B) = 1 4 nevertheless

Example A certain item is produced in a factory on one of the three machines A, B, or C. The percentages of items produced on A, B, and C, are 50%, 30%, and 20%, respectively 4%, 2%, and 4% of their products, respectively, are defective. What is the percentage of all copies of this item that are defective? Let the event that an item is produced by A, B, or C, respectively, be A 1, A 2, and A 3 ; let D be the event that it is a defective item P(D) = 3 P(D A i )P(A i ) =.04.5+.02.3+.04.2 =.034 i=1

A more complicated example A lottery with n tickets, out of which m prespecified tickets will win a prize There are n players who choose one ticket at random successively from available tickets What is a probability that the ith player wins a prize?

A more complicated example For the first player, the probability is p 1 = m n By total probability formula, p 2 = m 1 n 1 m n + m (1 n 1 m ) = m n n Again, by total probability formula p 3 = m n m 1 n 1 m 2 + m ( n 1 m 1 n 1 ( + 1 m ) n = m n (1 n 2 + m ) n m 1 n 2 ( 1 m n 1 ) m n 2 ) m n 1 m 1 n 2 It can be shown by induction that for any i 1 we have p i = m n - no early entry advantage for this lottery!

Bayes Theorem Also, the Bayes theorem follows directly: P(C j C) = P(C C j) P(C) = P(C j )P(C C j ) k i=1 P(C i)p(c C i )

Example III: setting up The following problem was published in a syndicated column Ask Marilyn that was run by Marilyn vos Savant Consider three fair coins that are HH, HT and TT A randomly selected coin is tossed; the face-up side is H What is the probability that the face-down side is H too? Face-up H HH or HT If HH was selected, the face - down is H; otherwise, it is T Thus, the probability of H facing down is 50%... Is that correct?

Example III: the truth will set you free! P(down = H up = H) = Need to compute P(down = H up = H) P(up = H) P(up = H) = P(HT up = H down = T ) + P(HH up = H down = H) P(HT up = H down = T ) = P(HT up = H) P(down = T HT up = H) = P(HT ) P(up = H HT ) 1 = 1 1 3 2 = 1 6

A simple example I A store stocks light bulbs from three suppliers. Suppliers A, B, and C supply 10%, 20%, and 70% of the bulbs respectively. It has been determined that company A s bulbs are 1% defective while company B s are 3% defective and company C s are 4% defective. If a bulb is selected at random and found to be defective, what is the probability that it came from supplier B?

A simple example II Let D = defective lightbulb P(B D) = = P(B)P(D B) P(A)P(D A) + P(B)P(D B) + P(C)P(D C) 0.2(0.03) 0.1(0.01) + 0.2(0.03) + 0.7(0.04) 0.1714

An Example of Bayes Theorem in action I HIV testing: four outcomes are D +, D, D + and D The prevalence of the disease P(D) is commonly known; say, P(D) = 0.001 + D is a false positive and D is a false negative. Diagnostic procedures undergo extensive evaluation and, therefore, probabilities of false positives and false negatives are commonly known We assume that P(+ D ) = 0.015 and P( D) = 0.003; for more details, see E.M. Sloan et al. (1991) HIV testing: state of the art, JAMA, 266:2861-2866

An Example of Bayes Theorem in action II The quantity of most interest is usually the predictive value of the test P(D +) By definition of conditional probability and multiplication rule, we have P(D +) P(D +) P(D +) = = P(+) P(D +) + P(D +) P(D) P(+ D) = P(D) P(+ D) + P(D ) P(+ D ) P(D) [1 P( D)] = P(D) [1 P( D)] + (1 P(D)) P(+ D ) The resulting probability will be small because false positives are much more common then false negatives in the general population

Independence The first definition P(C 2 C 1 ) = P(C 1 )P(C 2 ) An alternative definition follows from multiplication formula: P(C 1 C 2 ) = P(C 1 ) Note that the first definition also allows us to consider the case where P(C 1 ) = P(C 2 ) = 0

Some immediate consequences of the definition of independence The independence of A and B implies that 1. A and B are independent 2. A and B are independent 3. A and B are independent

Example I Consider the fair six-sided die. Define A = {2, 4, 6}, B = {1, 2, 3} and C = {1, 2, 3, 4}. Clearly, P(A) = 1 2, P(A B) = 1 3 and P(A C) = 1 2. Therefore, A and C are independent but A and B are NOT!

Example II A red and a white die are cast independently Let C 1 = {4 red die} and C 2 = {3 white die} P(C 1 ) = 1 6 and P(C 2) = 1 6 By independence, P(C 1 C 2 ) = 1 36 The probability that the sum of the up spots is equal to 7 is P[(1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1)] = 6 ( ) 1 2 = 1 6 6

Some additional consequences of the definition of independence If A and B are mutually exclusive events, they cannot be independent. If either P(A) = 0 or P(B) = 0, A and B are always independent: 0 P(A B) min(p(a), P(B)) = 0, therefore P(A B) = 0

Independence: practical considerations In practice, we do not verify independence of events. Instead, we ask ourselves whether independence is a property that we wish to incorporate into a mathematical model of an experiment, based on the common sense Thus, independence is commonly assumed Example: let C 2 =(A student is a female) and C 1 =(A student is concentrating in elementary education ); clearly, P(C 2 C 1 ) P(C 2 )

Mutual independence C 1, C 2,..., C n are mutually independent if for every 2 k n, and every possible subset of indices i 1, i 2,..., i k P(C i1 C i2... C ik ) = P(C i1 ) P(C i2 )... P(C ik ) In particular, this means that P(C 1 C 2 C n ) = P(C 1 )P(C 2 )... P(C n )

The relationship between mutual independence and pairwise independence Pairwise independence DOES NOT imply mutual independence Let a single outcome be ω 1 and the entire sample space is Ω = {ω 1, ω 2, ω 3, ω 4 } Then let C 1 = {ω 1, ω 2 }, C 2 = {ω 1, ω 3 } and C 3 = {ω 1, ω 4 } If each outcome is equally likely with p = 1 4, it is easy to check that pairwise independence is valid However, P(C 1 C 2 C 3 ) = 1 4 ( ) 1 3 = P(C 1 )P(C 2 )P(C 3 ) 2

Example Consider sample space S of 36 ordered pairs (i, j) with i, j = 1,..., 6 We assume that for each pair the probability of occurring p = 1 36 Let C 1 = {(i, j) : j = 1, 2 or 5}, C 2 = {(i, j) : j = 4, 5 or 6} and C 3 = {(i, j) : i + j = 9} Then, P(C 1 C 2 ) = 1 6 1 4 = P(C 1)P(C 2 ) P(C 1 C 3 ) = 1 36 1 18 = P(C 1)P(C 3 ) and However, P(C 2 C 3 ) = 1 12 1 18 = P(C 2)P(C 3 ) P(C 1 C 2 C 3 ) = 1 36 = P(C 1)P(C 2 )P(C 3 )

Independent experiments Events as outcome of independent experiments A computer system is built with K 1, K 2 and K 3 Each successive component is a backup for the previous one If probabilities of failure are P(K 1 ) = 0.01, P(K 2 ) = 0.03, and P(K 3 ) = 0.08, the system fails with probability (0.01)(0.03)(0.08) = 24 10 6 The system functions successfully with the probability 1 24 10 6 = 0.999976