* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Download Probability - Schoolwires
Survey
Document related concepts
Transcript
Probability Probability The calculated likelihood that a given event will occur Methods of Determining Probability Empirical Experimental observation Example – Process control Theoretical Uses known elements Example – Coin toss, die rolling Subjective Assumptions Example – I think that . . . Probability Components Experiment An activity with observable results Sample Space A set of all possible outcomes Event A subset of a sample space Outcome / Sample Point The result of an experiment Probability What is the probability of a tossed coin landing heads up? Experiment Sample Space Event Outcome Probability Tree Probability The number of times an event will occur divided by the number of opportunities Fx Px Fa Px = Probability of outcome x Fx = Frequency of outcome x Fa = Absolute frequency of all events Expressed as a number between 0 and 1 fraction, percent, decimal, odds Total probability of all possible events totals 1 Probability What is the probability of a tossed coin landing heads up? How many desirable outcomes? 1 How many possible outcomes? 2 Fx Px Fa Probability Tree 1 P .5 50% 2 What is the probability of the coin landing tails up? Probability What is the probability of tossing a coin twice and it landing heads up both times? HH How many desirable outcomes? 1 HT How many possible outcomes? 4 Fx 1 Px P .25 25% Fa 4 TH TT Probability 3rd What is the probability of tossing a coin three times and it landing 1 heads up exactly two times? How many desirable outcomes? 3 st How many possible outcomes? 8 2nd HHH HHT HTH HTT THH THT Fx 3 Px P .375 37.5% Fa 8 TTH TTT Binomial Process Each trial has only two possible outcomes yes-no, on-off, right-wrong Trial outcomes are independent Tossing a coin does not affect future tosses Px q n! p x n x x! n x ! Bernoulli Process Px P = Probability q n! p x n x x! n x ! x = Number of times an outcome occurs within n trials n = Number of trials p = Probability of success on a single trial q = Probability of failure on a single trial Probability Distribution What is the probability of tossing a coin three times and it landing heads up two times? n! p x Px = q n-x x! n - x ! 3× 2 ×1× 0.52 0.51 P= 2 ×11×1 P = .375 = 37.50% Law of Large Numbers The more trials that are conducted, the closer the results become to the theoretical probability Trial 1: Toss a single coin 5 times H,T,H,H,T P = .600 = 60% Trial 2: Toss a single coin 500 times H,H,H,T,T,H,T,T,……T P = .502 = 50.2% Theoretical Probability = .5 = 50% Probability AND (Multiplication) Independent events occurring simultaneously Product of individual probabilities If events A and B are independent, then the probability of A and B occurring is: P = P(A) x P(B) Probability AND (Multiplication) What is the probability of rolling a 4 on a single die? How many desirable outcomes? 1 1 P4 6 How many possible outcomes? 6 What is the probability of rolling a 1 on a single die? How many desirable outcomes? 1 1 P1 6 How many possible outcomes? 6 What is the probability of rolling a 4 and then a 1 using two dice? 1 1 P = (P4 ) (P1 ) = • 6 6 1 .0278 2.78% 36 Probability OR (Addition) Independent events occurring individually Sum of individual probabilities If events A and B are mutually exclusive, then the probability of A or B occurring is: P = P(A) + P(B) Probability OR (Addition) What is the probability of rolling a 4 on a single die? How many desirable outcomes? 1 1 P4 6 How many possible outcomes? 6 What is the probability of rolling a 1 on a single die? How many desirable outcomes? 1 1 P1 6 How many possible outcomes? 6 What is the probability of rolling a 4 or a 1 on a single die? P (P )(P ) 4 1 2 1 1 .3333 33.33% 6 6 6 Probability NOT Independent event not occurring 1 minus the probability of occurrence P = 1 - P(A) What is the probability of not rolling a 1 on a die? 5 1 .8333 83.33% P 1 P1 1 6 6 Probability Two cards are dealt from a shuffled deck. What is the probability that the first card is an ace and the second card is a face card or a ten? How many cards are in a deck? 52 How many aces are in a deck? 4 How many face cards are in deck? 12 How many tens are in a deck? 4 Probability What is the probability that the first card is an ace? 4 1 .0769 7.69% 52 13 Since the first card was NOT a face, what is the probability that the second card is a face card? 12 4 .2353 23.53% 51 17 Since the first card was NOT a ten, what is the probability that the second card is a ten? 4 .0784 7.84% 51 Probability Two cards are dealt from a shuffled deck. What is the probability that the first card is an ace and the second card is a face card or a ten? P = PA (PF + P10 ) 1 4 4 = • + 13 17 51 1 12 4 = • + 13 51 51 1 16 = • 13 51 .0241 2.41% If the first card is an ace, what is the probability that the second card is a face card or a ten? 31.37% How about something more complex? LCD screen components for a large cell phone manufacturing company are outsourced to three different vendors. Vendor A, B, and C supply 60%, 30%, and 10% of the required LCD screen components. Quality control experts have determined that .7% of vendor A, 1.4% of vendor B, and 1.9% of vendor C components are defective. If a cell phone was chosen at random and the LCD screen was determined to be defective, what is the probability that the LCD screen was produced by vendor A? Bayes’ Theorem The probability of an event occurring based upon other event probabilities P AI E = P AI • P E AI P A1 • P E A1 + P A 2 • P E A 2 + +P A n • P E A n LCD Screen Example P = Probability D = Defective A, B, and C denote vendors So how do you find: P A+D = ? PA x PDA (PA x PDA) + (PB x PDB) + (PC x PDC) LCD Screen Example .60 .007 P A D .60 .007 + .30 .014 + .10 .019 .0042 .0042 .0042 .0019 .0042 .0103 .4078 40.78% LCD Screen Example If a cell phone was chosen at random and the LCD screen was determined to be defective, what is the probability that the LCD screen was produced by vendor B? If a cell phone was chosen at random and the LCD screen was determined to be defective, what is the probability that the LCD screen was produced by vendor C?