1 / 57

CHAPTER 4

CHAPTER 4. PROBABILITY And COUNTING RULES. 4.1 SAMPLE SPACE AND PROBABILITY. Definition Experiment is a process or activity such that when performed, results in one and only one of many observations. The observations are also called outcomes of the experiment.

denitaj
Download Presentation

CHAPTER 4

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CHAPTER 4 PROBABILITY And COUNTING RULES

  2. 4.1 SAMPLE SPACE AND PROBABILITY Definition • Experiment is a process or activity such that when performed, results in one and only one of many observations. • The observations are also called outcomes of the experiment. • A sample space, S, is the collection of all the outcomes. It can be written as S = {List of all outcomes}The elements of a sample space are called sample points. Example #1: John tosses a coin once. Describe the experiment, outcome, and sample space.

  3. Experiments, Outcomes, and Sample Spaces Venn Diagram and Tree Diagram • Venn diagram depicts all the possible outcomes of an experiment. • The diagram is a close geometric shape such as rectangle, square, or circle. For example, S = {1, 2, 3, 4, 5, 6} • A tree diagram depicts each outcome as a branch of the tree. For example, S = {1, 2, 3, 4, 5, 6}. 1 3 5 2 4 6

  4. Experiments, Outcomes, and Sample Spaces Example #2: A box contains a certain number of computer parts, a few of which are defective. Two parts are selected at random from this box and inspected to determine if they are good or defective. How many total outcomes are possible? Draw a tree diagram for this experiment. Solution: Let “G” represent good part and “D” represent defective part. Therefore, for each experiment, the outcome is either the part is “D” or “G”. Hence, there are four possible outcomes, {DD, DG, GG, GD} 2nd Selection Final Outcomes 1st Selection DD D DG G D GD D G GG G

  5. Experiments, Outcomes, and Sample Spaces Example #3: Draw a tree diagram for three tosses of a coin. List all outcomes for this experiment in a sample space S. Solution: Let “H” represent head and “T” represent tail. Therefore, for each experiment, the outcome is either a “H” or “T”. 3rd Selection 2nd Selection 1st Selection HHH H HHT T H HTH H HTT S = {HHH, HHT, HTH, HTT, THH, THT, TTH, TTT} T THH T H H THT T H TTH H T TTT T T

  6. 4.1.1 Simple and Compound Events • Event is a collection of one or more of the outcomes of an experiment. An event could be the entire or portion of a sample space. Therefore, an event can be classified as: • Simple event • Compound event • A simple event, Ei, consists of one and only one of the final outcomes of an experiment. In Example #3, • A compound event consists of more than one outcome of an experiment. It is represented by A, B, C, D,..., or A1, A2, A3,..., B1, B2, B3,,... Reconsider Example #3, let A be the event that two of the three tosses will result in heads. Then, event A is given by E1=(HHH), E2=(HHT), E3=(HTH), E4=(HTT), E5=(THH), E6=(THT), E7=(TTH), and E8=(TTT) A = { HHT, HTH, THH}

  7. Simple and Compound Events Example #4: A box contains a certain number of computer parts, a few of which are defective. Two parts are selected at random from this box and inspected to determine if they are good or defective. List all the outcomes included in each of the following events. Indicate which are simple and which are compound events. • At least one part is good. • Exactly one part is defective. • The first part is good and the second is defective. • At most one part is good. Solution: Let, D = a defective part G = a good part The experiment has the following outcomes: DD = both parts are defective DG = the 1st part is defective and the 2nd is good GG = both parts are good GD = the 1st part is good and the 2nd is defective • At least one part is good = {DG, GG, GD}compound event • Exactly one part is defective = {DG, GD} compound event • The 1st is good and 2nd defective = {GD} simple event • At most one part is good = {DD, DG, GD} compound event.

  8. CALCULATING PROBABLITY Probability is a numerical measure that tells us the likelihood that a specific event will occur. It is donated by P(Ei) for a probability that a simple event will occur. P(A) for a probability that a compound event will occur. • Properties of Probability • Probability can take a numerical value from 0 to 1 for a simple or compound event. • The sum of probabilities of all simple events (or final outcome) for an experiment is always 1.

  9. 4.2.1 Three Conceptual Approaches to Probability The study of probability can be approached through • Classical probability • Relative frequency concept of probability • Subjective probability • Classical Probability • Equally likely outcomes is defined as two or more events or outcomes of an experiment that have the same probability of occurrence. • By classical rule, the probability of equally likely outcome is:

  10. Example – Classical Probability Example #5: Suppose a randomly selected passenger is about to go through the metal detector at JFK Airport in New York City. Consider the following two outcomes. The passenger sets off the metal detector, or the passenger does not set off the metal detector. Are the two outcomes equally likely? Explain why or why not. If you are to find the probability of these two outcomes, would you use the classical approach or another approach? Explain why. Solution: • The two outcomes, “passenger sets off the metal detector” and “passenger does not set of the metal detector”, are not equally likely because if they were, 50% of the passengers would set off the detector. This would be a daunting task for the Transportation Authority Administration (TSA). • Classical approach will not be appropriate for determining the probability of these two outcomes. Therefore, another approach is needed. This other approach will require obtaining a random sample of passengers going through NY JFK airport and collecting information whether they set off the detector or not.

  11. Example – Classical Probability Example #6: A box contains 40 marbles. Of them, 18 are red and 22 are green. If one marble is randomly selected out of this box, what is the probability that this marble is: • red? b. green? Example #7 A multiple-choice question on a test has five answers. If Dianne chooses one answer based on “pure guess” , what is the probability that her answer is: • correct? b. wrong? Do these two probabilities add up to 1? If yes why? Solution: Solution: Yes. The experiment has two and only two outcomes and according to the 2nd property of probability, the sum of the probability must be 1.

  12. 4.2.1 Three Conceptual Approaches to Probability • Relative Frequency Concept of Probability • To determine the probability, we will have to perform each of the experiments for a large number of times. • If the experiment is repeated n times and an event “A” occurred f times, then according to the relative frequency concept of probability, the probability of event “A” is given by,

  13. 4.2.1 Three Conceptual Approaches to Probability • From the formula, it is clear that the relative frequency of each event is used as an approximation for the probability of the event. • The probability may change because relative frequencies are determined every time the experiment is performed. • Relative frequencies are not exact probabilities but are approximate probabilities unless if they are based on census. However, if the experiment is carried out for a large number of times, the relative frequency approaches the actual probability of the outcome. This is called the law of large number.

  14. 4.2.1 Three Conceptual Approaches to Probability • Example #8: • Thirty-two persons have applied for a security guard position with a company. Of them, 7 have previous experience and 25 do not. Suppose one applicant is selected at random. If you are to find the probability of these two outcomes, would you use the classical approach or the relative frequency approach? Explain why. • Solution: • We can use the classical approach because each applicant is equally likely to be selected

  15. Example – Relative Frequency Concept of Probability • Example #9: • A sample of 820 adults showed that 80 of them had no credit cards, 116 had one card each, 94 had two cards each, 77 had three cards each, 43 had four cards each, and 410 had five or more cards each. Write the frequency distribution table for the number of credit cards an adult possesses. Calculate the relative frequencies for all categories. Suppose one adult is randomly selected from these 820 adults. Find the probability that this adult has • (a) three credit cards (b) five or more cards Solution: a. P(3 cards) = 0.0939 b. P(>=5) = 0.5000

  16. 4.2.1 Three Conceptual Approaches to Probability • Subjective Probability • Neither the classical rule nor relative frequency approach can be used to calculate the probability of an event or outcome that is neither equally likely nor can be performed various times to generate • So, the probability of such event is called subjective probability because it is based on ones experience, information, and belief. • For example, what is the probability that New York Giant will win the Super Bowl next season?The two outcomes, “NY Giant will win” and “NY Giant will not win” are not equally likely to occur. It cannot be repeated like rolling a dice. Therefore, one has to use past Super Bowl outcome to determine the probability that NY Giant will or not win.

  17. MARGINAL AND CONDITIONAL PROBABILITIES The following table gives the responses of 2,000 randomly selected adults who were asked whether or not they have shopped on internet. Discussion • The table is a two-way classification of 2,000 adults. • The table is called contingency table and each box with a numeric entry is called a cell. • Each cell gives the frequency of two characteristics: • Gender (male or female) and • Opinion (have shopped or have never shopped).

  18. Marginal and Conditional Probabilities Discussion • By adding the row totals and column totals, we obtain a new table. • If only one characteristic, “have shopped”, “have never shopped”, “male”, or “female”, is being considered at a time, the probability of each event is called marginal probability or simple probability.

  19. Marginal and Conditional Probabilities The marginal probability or simple probability is a probability of a single event without consideration of any other event. From the table, the marginal probabilities of the characteristics are as follows: 19

  20. Marginal and Conditional Probabilities Now suppose we want to find the probability that the randomly selected adult has shopped on the internet, assuming that the adult is female. In other words, the event that the adult is female has already occurred. This probability is called conditional probability, and it is written, P(has shopped | female) and is read as The probability that the selected adult has shopped on the internet given that the event “female” has already occurred. 20

  21. Marginal and Conditional Probabilities General Statement Suppose A and B are two events, then the conditional probability of A given B is written as , P(A|B). Again from the contingent table,

  22. Marginal and Conditional Probabilities Tree Diagram HS | M M | HS HS M 500/1200 500/800 HNS HNS | M F M | HS 700/1200 300/800 M HS 1200/2000 HS | F HS 800/2000 M | HNS 300/800 M F HNS 700/1200 800/2000 HNS | F HNS 500/800 F 1200/2000 F | HNS 500/1200

  23. MUTUALLY EXCLUSIVE EVENTS Definition • Mutually exclusive events are events that do not have any outcome in common. • Ex. Events for rolling a die: A = an even number is observed • B = an odd number is observe • C = a number less than five is observed • Mutually Exclusive Mutually nonexclusive event • Most importantly, the occurrence of one event prevents the occurrence of the other mutually exclusive events.

  24. Mutually Exclusive Events • For example, the outcomes of tossing a coin are mutually exclusive because both Head and Tail outcomes could not occur at the same time. The occurrence of Head prevents occurrence of Tail to occur. HH H T HT H TH H T T TT

  25. Mutually Exclusive Events Solution Example #12 (4.59) There are 160 practicing physicians in a city. Of them, 75 are female and 25 are pediatricians. Of the 75 female, 20 are pediatricians. Are the events “female” and “pediatrician” mutually exclusive? Explain why or why not. The events “female” and “pediatrician” are not mutually exclusive because a physician could be a female and a pediatrician as shown above. Example #13 Define the following two events for two tosses of a coin: A = at least one head B = both tails are obtained Are A and B mutually exclusive? Explain why or why not. Solution:The experiment involves tossing a coin twice. The sample space S = {HH, HT, TT, TH} where H = Head and T = Tail. The events are: A = {HH, HT, TH} & B = {TT} A and B are mutually exclusive. They do not have any outcome in common. 25

  26. INDEPENDENT VERSUS DEPENDENT EVENTS Definition • Two events are said to be independent if the occurrence of one does not affect the probability of the occurrence of the other. In other words, A and B are independentevents if either P(A | B) = P(A) or P(B | A) = P(B). • If P(A | B) = P(A) is true, then P(B | A) = P(B) is also true. • If P(A | B) = P(A) is false, then P(B | A) = P(B) is also false. • If the occurrence of one event affects the probability of the other, then we say that the events are dependent. In other words, two events are dependent if either P(A | B) ≠ P(A) or P(B | A) ≠ P(B).

  27. Independent Versus Dependent Events General Statement • Two events are either mutually exclusive or independent. • Mutually exclusive events are dependent • Independent events are never mutually exclusive • Dependent events may or may not be mutually exclusive. Solution Example #14 There are 160 practicing physicians in a city. Of them, 75 are female and 25 are pediatricians. Of the 75 female, 20 are pediatricians. Are the events “female” and “pediatrician” independent? Explain why or why not. Since P(female | Pediatrician) ≠ P(female), then the events are not independent. 27

  28. Independent Versus Dependent Events Solution Example #15: Two donut bakers baked 1000 donut holes. Baker A baked 600 donuts, of which 450 were sold and the remaining were discarded. Baker B baked the remaining donuts, of which 100 were discarded. The events are “Baker A”, “Baker B”, “sold donuts”, and “discarded donuts”. Prepare a contingent table for this experiment. Are the events “Baker A” and “sold donuts” independent? Explain why or why not. S | A A 450/750 B S | B 300/750 S 750/1000 D | A A 150/250 Since P(Baker A | sold donut) = P(Baker A), then the events are independent because the occurrence of event “sold donuts” does affect the probability of event “Baker A”. D B 250/1000 D | B 100/250 28

  29. Independent Versus Dependent Events Example #15.1: A statistical experiment has 10 equally likely outcomes that are denoted by 10, 11, 12, 13, 14, 15, 16, 17, 18, 19. Let event A = { 10, 12, 14, 16} and event B = {11, 13, 15} a. Are events A and B mutually exclusive? yes b. Are event A and B independent events? Because the two probabilities are not the same, the two events are not independent. Also, we know that mutually exclusive events are always dependent.

  30. COMPLEMENTARY EVENTS Definition • The complement of event A, denoted by Ā and is read as “A bar” or “A complement,” is the event that includes all the outcomes for an experiment that are not in A. • Therefore, complementary events are always mutually exclusive. • Two complementary events, combined together, includes all the outcomes of the experiment.

  31. Complementary Events Example #15 – Problem 4.63: Let A be the event that a number less than 3 is obtained if we roll a die once. What is the probability of A? What is the complementary event of A, and what is its probability? Solution 31

  32. Complementary Events Example #15.1: A statistical experiment has 10 equally likely outcomes that are denoted by 10, 11, 12, 13, 14, 15, 16, 17, 18, 19. Let event A = { 10, 12, 14, 16} and event B = {11, 13, 15} What are the complements of event A and B, respectively, and their probabilities? Solution

  33. 4.3 INTERSECTION OF EVENTS AND THE MULTIPLICATION RULE Suppose an experiment resulted in a sample space described as, S = {1, 2, 3, 4, 5, 6, 7, 8} Also, three events from the experiment are define as consisting of the following outcomes: A = {1, 2, 3, 4} B = {3, 4, 5, 6} C = {5, 6, 7, 8} A and B A  B, or simply AB • You can see that the Events A and B are not mutually exclusive because they have two common outcomes, 3 and 4. • Likewise, Events B and C are not mutually exclusive because they have two outcomes, 5 and 6, in common. • Given two Events, A and B, we can say that the intersection of Events A and B is the collection of all outcomes that are common to both A and B. It can be written as,

  34. 4.8.2 Multiplication Rule The probability of the intersection of Events A and B is called the joint probability and is define as the product of the marginal and conditional probabilities. Joint probability is written as, P(A  B) = P(A)  P(B|A) or P(A  B) = P(B)  P(A|B) From the two formulas, we can calculate the conditional probabilities as,

  35. Multiplication Rule for Independent Events Recall, P(A  B) = P(A)  P(B|A) or P(A  B) = P(B)  P(A|B) This is true for dependent events if the probability of one is affected by the occurrence of the other event. In other words, P(A|B) ≠ P(A) and P(B|A)≠ P(B). For independent events, the occurrence of one event does not affect the probability of the other. Therefore, P(A|B) = P(A) and P(B|A) = P(B). Hence, we can rewrite the formula for calculating probability of intersection of two independent events as, P(A  B) = P(A)  P(B) Note: You can extend the multiplication rule to calculate the joint probability of as many events as you want. 35

  36. Joint Probability of Mutually Exclusive Events We know from discussion of mutually exclusive events that mutually exclusive events have no common outcomes. Therefore, they do not have an intersection. In this case, we write the intersection of two or more mutually exclusive events as P(AB) = 0 Solution Example #17 a. P(AB)= P(B) P(A|B) = (0.59)(0.77) = 0.4543 b. P(AB)= P(A) P(B|A) = (0.28)(0.35) = 0.098 Find the joint probability of A and B for the following: a. P(B) = 0.59 and P(A|B) = 0.77 b. P(A) = 0.28 and P(B|A) = 0.35 Solution Example #18 a. P(ABC)= P(A)P(B)P(C) = (.49)(.67)(.75) = 0.2462 b. P(ABC)= P(A)P(B)P(C) = (.71)(.34)(.45) = 0.1086 Find the joint probability for the following three independent events: a. P(A) = 0.49, P(B) = 0.67, P(C) = .75 b. P(A) = 0.71, P(B) = 0.34, P(C) = 0.45 36

  37. Intersection of Events and Multiplication Rule Solution Example #19 The following table gives two way classification of all basketball players at a state university who began their college careers between 2001 and 2005, based on gender and whether or not they graduate. P(graduate and did not graduate) = 0, because these events are mutually exclusive and you could not have someone that is both “a graduate” and “a non graduate”. • If one of these players is selected at random, find the following probabilities: • P(female and graduate) • P(male and did not graduate) • Find P(graduate and did not graduate). Is this probability zero? If yes, why? 37

  38. Intersection of Events and Multiplication Rule Example #20 The following table gives two way classification of the responses based on the education levels of the persons included in the survey and whether they are financially better off, the same as, or worse off than their parents. • Suppose one adult is selected at random from these 2000 adults. Find the following probabilities: • P(better off and high school) • P(more than high school and worse off) • Find the joint probability of the events “worse off” and “better off.” Is this probability zero? Explain why or why not. 38

  39. Intersection of Events and Multiplication Rule Solution 39

  40. Intersection of Events and Multiplication Rule Example #21 In a statistics class of 42 students, 28 have volunteered for community service in the past. If two students are selected at random from this class, what is the probability that both of them have volunteered for community service in the past? Draw a tree diagram for this problem. Solution Let A = Student #1 has volunteered for community service. B = Student #1 has never volunteered for community service. C = Student #2 has volunteered for community service. D = Student #2 has never volunteered for community service. 40

  41. Intersection of Events and Multiplication Rule Example #22 The probability that a student graduating from Suburban State University has a student loan to pay off after graduation is 0.60. If two students are randomly selected from this university, what is the probability that neither of them has loans to pay off after graduation? Solution Let A = Student #1 with loans to pay off after graduation. B = Student #1 without loans to pay off after graduation. C = Student #2 with loans to pay off after graduation. D = Student #2 without loans to pay off after graduation. 41

  42. Intersection of Events and Multiplication Rule Example #23 Five percent of all items sold by a mail order company are returned by customers for a refund. Find the probability that, of two items sold during a given hour by the company, a. both will be returned for a refund. b. neither will be returned for a refund Example #22 - Solution Let A = First item will be returned for a refund. B = First item will not be returned for a refund. A = Second item will be returned for a refund. B = Second item will not be returned for a refund. 42

  43. 4.2 UNION OF EVENTS AND THE ADDITION RULE S Definition Let a sample space, S, consist of all outcomes in Events A and B. Then the union of the two events is the collection of all outcomes that belong to either A or B or to both A and B. This is denoted by • A  B or just A or B B A S Addition Rule Addition rule is the method for calculating the probability of the union of events. It is defined as, • P(A  B) = P(A)+P(B)-P(A  B) B A Essentially, we calculate the probability of union of events by: 1. Adding the probability of each event and 2. Subtract the probability of the intersection of the events from result in (1).

  44. Addition Rule for Mutually Exclusive Events Let re-examine the formula for calculating the probability of union of events. P(A  B) = P(A)+P(B)-P(A  B) However, we have said that for mutually exclusive events, P(A  B) = 0 Then, for mutually exclusive events, the union of two events is, P(A  B) = P(A)+P(B)

  45. Union of Events and the Addition Rule Example #24 - Solution Example #24 The following table gives two way classification of all basketball players at a state university who began their college careers between 2001 and 2005, based on gender and whether or not they graduate. If one of these players is selected at random, find the following probabilities: a. P(female or did not graduate) b. P(graduate or male) 45

  46. Union of Events and the Addition Rule Example #25 The following table gives two way classification of the responses based on the education levels of the persons included in the survey and whether they are financially better off, the same as, or worse off than their parents. Suppose one adult is selected at random from these 2000 adults. Find the following probabilities: • P(better off or high school) • P(more than high school or worse off) • P(better off or worse off) 46

  47. Union of Events and the Addition Rule Solution 47

  48. Union of Events and the Addition Rule Example #26 The probability of a student getting an A grade in an economics class is 0.24 and that of getting a B grade is 0.28. What is the probability that a randomly selected student from this class will get an A or a B in this class? Explain why the probability is not equal to 1.0. Solution P(A) = 0.24 P(B) = 0.28 Then, the probability of getting an A or B is, P(A or B) = P(A) + P(B) = 0.24 + 0.28 = 0.52 The probability is not equal to 1.0 because the student can get a grade of C, D, or F. 48

  49. 4.4 COUNTING RULE The task of determining final outcomes in an experiment could be daunting, especially if the experiment is repeated a large number of times. For this reason, we must find a better way. Example #10 Now, suppose a dice is rolled 4 times, what is the number of possible outcomes? Solution:The 1st die has 6 outcomes The 2nd die has 6 outcomes for each outcome in 1st die The 3rd die has 6 outcomes for each outcome in 2nd die The 4th die has 6 outcomes for each outcome in 3rd die Therefore, Total outcomes = 6.6.6.6 = 1296

  50. Counting Rule General Statement Let an experiment be performed four times. The 1st experiment results in n outcomes, the 2nd results in m outcomes, the 3rd results in k outcomes, and the 4th results in l outcomes. Then, Total number of outcomes = n ×m ×k ×l Solution This experiment has two steps: • Selection of an ice cream flavor • Selection of a sundae topping Example #11 A small ice cream shop has 10 flavors of ice cream and 5 kinds of toppings for its sundaes. How many different selections of one flavor of ice cream and one kind of topping are possible? For ice cream flavor, the Number of outcomes = 10 For topping, the Number of outcome = 5 Therefore, the total number of possible outcomes = 10 ×5 = 50 50

More Related