NA387 Lecture 5: Combinatorics, Conditional Probability

Slides:



Advertisements
Similar presentations
Chapter 2.3 Counting Sample Points Combination In many problems we are interested in the number of ways of selecting r objects from n without regard to.
Advertisements

Larson/Farber Ch. 3 Chapter 3: Probability StatisticsSpring2003/CourseHome/index.htm.
Probability.
Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
© 2003 Prentice-Hall, Inc.Chap 4-1 Basic Probability IE 440 PROCESS IMPROVEMENT THROUGH PLANNED EXPERIMENTATION Dr. Xueping Li University of Tennessee.
Chapter 2 Probability. 2.1 Sample Spaces and Events.
Probability Chapter 11 1.
Chapter 7 Probability 7.1 Experiments, Sample Spaces, and Events
Introduction to Probability
Chapter 4 Using Probability and Probability Distributions
Section 3 Conditional Probability, Intersection, and Independence
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 4-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
Elementary Probability Theory
Chapter 4 Probability.
Topic 3: Counting Techniques CEE 11 Spring 2002 Dr. Amelia Regan These notes draw liberally from the class text, Probability and Statistics for Engineering.
Chapter Two Probability. Probability Definitions Experiment: Process that generates observations. Sample Space: Set of all possible outcomes of an experiment.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Section 4-2 Basic Concepts of Probability.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 2 Probability.
5.5 Counting Techniques. More Challenging Stuff  The classical method, when all outcomes are equally likely, involves counting the number of ways something.
4. Counting 4.1 The Basic of Counting Basic Counting Principles Example 1 suppose that either a member of the faculty or a student in the department is.
Elementary Probability Theory
Chapter 1 Basics of Probability.
5.1 Basic Probability Ideas
Stochastic Methods A Review (Mostly). Relationship between Heuristic and Stochastic Methods  Heuristic and stochastic methods useful where –Problem does.
Conditional Probability and Independence If A and B are events in sample space S and P(B) > 0, then the conditional probability of A given B is denoted.
“PROBABILITY” Some important terms Event: An event is one or more of the possible outcomes of an activity. When we toss a coin there are two possibilities,
Lecture Slides Elementary Statistics Twelfth Edition
Probability. An experiment is any process that allows researchers to obtain observations and which leads to a single outcome which cannot be predicted.
Principles of Statistics Chapter 2 Elements of Probability.
Probability A Brief Look.
PROBABILITY. Counting methods can be used to find the number of possible ways to choose objects with and without regard to order. The Fundamental Counting.
CPSC 531: Probability Review1 CPSC 531:Probability & Statistics: Review Instructor: Anirban Mahanti Office: ICT Class.
EXERCISE 10 Februari 2010.
3. Counting Permutations Combinations Pigeonhole principle Elements of Probability Recurrence Relations.
Lesson Counting Techniques. Objectives Solve counting problems using the Multiplication Rule Solve counting problems using permutations Solve counting.
Larson/Farber Ch. 3 Weather forecast Psychology Games Sports 3 Elementary Statistics Larson Farber Business Medicine Probability.
1 Weather forecast Psychology Games Sports Chapter 3 Elementary Statistics Larson Farber Probability Business Medicine.
Introduction to Probability  Probability is a numerical measure of the likelihood that an event will occur.  Probability values are always assigned on.
Probability & Statistics I IE 254 Exam I - Reminder  Reminder: Test 1 - June 21 (see syllabus) Chapters 1, 2, Appendix BI  HW Chapter 1 due Monday at.
Ch Counting Techniques Product Rule If the first element or object of an ordered pair can be used in n 1 ways, and for each of these n1 ways.
Introduction to Probability. 5.1 Experiments, Outcomes, Events, and Sample Spaces Sample space - The set of all possible outcomes for an experiment Roll.
Chapter 4 Probability ©. Sample Space sample space.S The possible outcomes of a random experiment are called the basic outcomes, and the set of all basic.
EQT 272 PROBABILITY AND STATISTICS
Recap from last lesson Compliment Addition rule for probabilities
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc. Sets and Counting6 Sets and Set Operations The Number of Elements in a Finite Set The.
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc. Sets and Counting6 Sets and Set Operations The Number of Elements in a Finite Set The.
Section 7.4 Use of Counting Techniques in Probability.
Probability Theory Rahul Jain. Probabilistic Experiment A Probabilistic Experiment is a situation in which – More than one thing can happen – The outcome.
Chapter 4 Probability, Randomness, and Uncertainty.
+ Chapter 5 Overview 5.1 Introducing Probability 5.2 Combining Events 5.3 Conditional Probability 5.4 Counting Methods 1.
Probability. 3.1 Events, Sample Spaces, and Probability Sample space - The set of all possible outcomes for an experiment Roll a die Flip a coin Measure.
Section 1.3 Each arrangement (ordering) of n distinguishable objects is called a permutation, and the number of permutations of n distinguishable objects.
Section 7.1. Probability of an Event We first define these key terms: An experiment is a procedure that yields one of a given set of possible outcomes.
1 Lecture 4 Probability Concepts. 2 Section 4.1 Probability Basics.
Chapter 8 Probability Section 3 Conditional Probability, Intersection, and Independence.
Probability Probability Day 4. Independent Practice Topic 3 packet pg
1 What Is Probability?. 2 To discuss probability, let’s begin by defining some terms. An experiment is a process, such as tossing a coin, that gives definite.
Chapter Two Probability
Elementary Probability Theory
What Is Probability?.
Statistics for 8th Edition Chapter 3 Probability
Applicable Mathematics “Probability”
Elementary Statistics
PROBABILITY AND STATISTICS
Probability Probability underlies statistical inference - the drawing of conclusions from a sample of data. If samples are drawn at random, their characteristics.
Section 6.2 Probability Models
Chapter 2.3 Counting Sample Points Combination In many problems we are interested in the number of ways of selecting r objects from n without regard to.
Addition Rule Objectives
Presentation transcript:

NA387 Lecture 5: Combinatorics, Conditional Probability (Devore, Chapter 2, Sections: 2.3 – 2.4)

Topics Counting Techniques, Combinatorics Conditional Probability Equally Likely Counting N(A)/N Permutations Combinations Conditional Probability

Probability Counting Techniques Equally Likely Counting (# outcomes is small) Product Rule for Ordered Pairs Tree Diagrams Permutations Combinations

Simple Counting Techniques When various outcomes are “equally likely”, then computing probabilities reduces to counting. P(A) = N(A) / N Let’s define event A as: The Probability of rolling a Seven (sum of outcomes in rolling 2 fair dice); N= 36 outcomes in sample space Outcomes that yield a sum of 7: (1,6) , (6,1), (2,5) , (5,2) , (3,4) , (4,3) N(A) = 6 N = 36 So, P(A) = 6/36 = 1/6 Note: Here N is relatively small However, N may be quite large or outcomes may not be “equally likely”, so we need additional counting rules.

Product Rule for Ordered Pairs Ordered Pairs: Select Two Objects Object 1 – select n1 ways Object 2 – select n2 ways Total Number of pairs: n1*n2 Examples: Roll Two Dice (6 outcomes per die)  total pairs: 36 Suppose every vehicle sold in a dealership has 1 engine and 1 transmission from the following options (outcomes): Engine (Object A): 4-cyl, 6-cyl, 8-cyl Transmission (Object B): Automatic, Manual How may total pairs do you have?

Tree Diagrams- Example: A production process consists of machining (M) and finishing (F). Suppose you have three machining operations (M1, M2, M3). After completion, products coming out of M1 and M2 feed finishing operations F1, F2, F3. Whereas products coming out of M3 go to F4, F5, F6. How many ordered pairs can we get? M1 M2 M3 F1 F2 F3 F4 F5 F6

General Product Rule We may use the general product rule if we keep adding objects to form ordered collections of k-tuples (n1* n2*..nk ordered collections) Ordered pair ~ 2-tuple Three objects in collection ~ 3-tuple Four objects in collection ~ 4-tuple, … Suppose each of our engine/transmission collections have either a 5-year or 7-year warranty. How many ordered collections are possible (ways in which one object of each may be selected)? (hint: draw tree diagram, then compare with product rule)

With or Without Replacement? An important question when identifying collections of objects is whether you select objects with or without replacement. Prior examples assumed “with replacement” or “with repetition”, in other words, we assumed that we could pick as many objects as we wish without depleting the supply, say of the 4cyl transmissions…

Permutations An ordered sequence of k objects are selected from a set of n distinct objects. (without replacement) Total number of different permutations (arrangements) of n different objects = n! Total number of permutations of n objects taken k at a time is: (Note: m! ~ means m factorial) for instance: 4! = 4 x 3 x 2 x 1; 0! = 1

This is a permutation, since the beads will be in a row (order). Example-Devore. A boy has 4 beads – red, white, blue, and yellow. How different ways can three of the beads be strung together in a row? This is a permutation, since the beads will be in a row (order). 24 different ways number selected total

Ordered vs. Non-ordered Another distinction to be made is whether we consider order in classifying outcomes. Example: Suppose you have 3 circuit board locations and each board will require two components. How does the number of possibilities change if the order of the location matters vs. if it does not matter? Outcomes 1 2 3 A B 4 5 6 Board Locations

Combinations A combination is an unordered subset of size k that can be selected from a set of n distinct objects. Number of combinations of size k is much smaller than the number of permutations, because when order is disregarded, a number of permutations correspond to the same combination Consider the prior example of 3 circuit board locations and two components per board. What is the number of Combinations?

Ex. A boy has 4 beads – red, white, blue, and yellow Ex. A boy has 4 beads – red, white, blue, and yellow. How different ways can three of the beads be chosen to trade away? This is a combination since they are chosen without regard to order. total number selected 4 different ways

Ex. Three balls are selected at random without replacement from the jar below. Find the probability that one ball is red and two are black.

Combinations: Example Suppose a manufacturing bin of 50 parts contains 3 defective parts. Samples of 6 parts are selected w/o replacement. How many different ways are there to obtain samples that contain exactly 2 defects? Is order important? Note: This is (slightly) more challenging. Easier to break it into 5 steps as follows:

Defect Example Continued Five Step Solution: Find combinations of subsets that will yield exactly 2 defects (Event A) Find combinations of subsets for the remaining 4 parts selected. Find total possible subsets for exactly two defects is the product rule (n1 * n2) where n1 is number of collections of 2 defects and n2 is the number of collections of 4 non-defects. Find total number of subsets of sample size (e.g., samples of 6) P (Exactly 2 defects) = N(A) / N Where N(A) = # subset combinations containing 2 defects N = # subset combinations

A Further Complication Suppose you want to determine the probability of finding at least 2 defects. Hint: At least 2  find 2 or 3 defects Event A = exactly 2 defects, Event B = exactly 3 defects P (A U B) = P (A) + P (B) – P (A B) Note: P (A B) = 0 because mutually exclusive events P (exactly 2) + P (Exactly 3) Repeat the 5-step process again for exactly 3 defects. U U

Conditional Probability Conditional probability is used when the outcome of an event may (or may not) change, given the outcome of a related event. P(A|B) = Prob of A given B

Conditional Probability -- Interpretation How should we interpret P(B | A)? If all outcomes of an experiment are equally likely and there are n total outcomes, then: P(A) = (number of A outcomes) / n P(A B) = (number of outcomes in A and B)/n So, P(B|A) = outcomes of A and B / outcomes of A So, P(B | A) represents the relative frequency of event B among the trials that produce an outcome in event A. U

Conditional Probability Example P(A|B) = P(A B) / P(B) Example: Event A: 90% of Car Model X Have Air Conditioning Event B: 10% of Car Model X Have Sunroof Event (A and B) : 8% of Car Model X Have Both Given the Car has a Sunroof, what is the probability that it has air conditioning? U

Conditional Probability Conditional probability is often derived from tree diagrams or contingency tables. Suppose you manufacture 100 piston shafts. Event A: feature A is not defective Event B: feature B is not defective P(A Not Def | B Def)? P(A Not Def | B Not Def)? P(A U B)? P(B)? Draw Tree Diagram. P(A Not Def | B Def)? = 6/86 = 0.07 P(A Not Def | B Not Def)? 5/14 = 0.36

Solution to Defect Example (Slide 15) Step 1: 3! / (2! * 1!) = 3 Step 2: 47! / (4! * 43!) = 178,365 ways Step 3: 3 x 178,365 = 535,095  N(A) Step 4: 50! / (6! * 44!) = 15,890,700  N Step 5: P (exactly 2) = N(A) / N P (exactly 2) = 535,095 / 15,890,700 = 0.034

Solutions Shaft Defects example : P(A Not Def | B Def)? = 6/86 = 0.07 P(A Not Def | B Not Def)? 5/14 = 0.36