1 Counting Rules. 2 The probability of a specific event or outcome is a fraction. In the numerator we have the number of ways the specific event can occur.

Slides:



Advertisements
Similar presentations
Lecture 18 Dr. MUMTAZ AHMED MTH 161: Introduction To Statistics.
Advertisements

4/16/2015 MATH 224 – Discrete Mathematics Counting Basic counting techniques are important in many aspects of computer science. For example, consider the.
Consider the possible arrangements of the letters a, b, and c. List the outcomes in the sample space. If the order is important, then each arrangement.
Describing Probability
Copyright © Cengage Learning. All rights reserved. 8.6 Probability.
Chapter 4 Using Probability and Probability Distributions
How many possible outcomes can you make with the accessories?
Multiplication Rule. A tree structure is a useful tool for keeping systematic track of all possibilities in situations in which events happen in order.
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 4-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
Combinations and Probability
Probability Probability Principles of EngineeringTM
1 Counting Rules. 2 The probability of a specific event or outcome is a fraction. In the numerator we have the number of ways the specific event can occur.
1 Probability Parts of life are uncertain. Using notions of probability provide a way to deal with the uncertainty.
Chapter 5 Section 5 Permutations and Combinations.
Class notes for ISE 201 San Jose State University
Chapter 4 Basic Probability
Permutations and Combinations AII Objectives:  apply fundamental counting principle  compute permutations  compute combinations  distinguish.
Fundamentals of Probability
Refreshing Your Skills for Chapter 10.  If you flip a coin, the probability that it lands with heads up is 1/2.  If you roll a standard die, the probability.
Copyright ©2011 Nelson Education Limited. Probability and Probability Distributions CHAPTER 4 Part 2.
3.4 Counting Principles Statistics Mrs. Spitz Fall 2008.
1 Algorithms CSCI 235, Fall 2012 Lecture 9 Probability.
Permutations and Combinations
Chapter 3 Section 3.2 Basic Terms of Probability.
College Algebra Fifth Edition James Stewart Lothar Redlin Saleem Watson.
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
S.CP.A.1 Probability Basics. Probability - The chance of an event occurring Experiment: Outcome: Sample Space: Event: The process of measuring or observing.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics Seventh Edition By Brase and Brase Prepared by: Lynn Smith.
Two way tables and tree diagrams
Week 9 - Wednesday.  What did we talk about last time?  Exam 2  Before that: review  Before that: relations.
Lecture 1 Sec
Permutations and Combinations
Probability What are the chances?.
Counting Theory (Permutation and combination)
Permutations and Combinations. Objectives:  apply fundamental counting principle  compute permutations  compute combinations  distinguish permutations.
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 4-1 Chapter 4 Basic Probability Basic Business Statistics 11 th Edition.
Unit VI Discrete Structures Permutations and Combinations SE (Comp.Engg.)
Lesson 0.4 (Counting Techniques)
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics Seventh Edition By Brase and Brase Prepared by: Lynn Smith.
Counting Techniques Tree Diagram Multiplication Rule Permutations Combinations.
37. Permutations and Combinations. Fundamental Counting Principle Fundamental Counting Principle states that if an event has m possible outcomes and another.
Permutations and Combinations
No Warm-Up today. You have a Quiz Clear your desk of everything but a calculator and something to write with.
Permutations and Combinations AII Objectives:  apply fundamental counting principle  compute permutations  compute combinations  distinguish.
Warm Up 1. Ingrid is making dinner. She has tofu, chicken and beef for an entrée, and French fries, salad and corn for a side. If Ingrid has 6 drinks to.
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.
Virtual University of Pakistan Lecture No. 18 of the course on Statistics and Probability by Miss Saleha Naghmi Habibullah.
Permutations and Combinations. Fundamental Counting Principle Fundamental Counting Principle states that if an event has m possible outcomes and another.
13 Lesson 1 Let Me Count the Ways Fundamental Counting Principle, Permutations & Combinations CP Probability and Statistics FA 2014 S-ID.1S-CP.3S-CP.5.
Lesson 10: Using Simulation to Estimate a Probability Simulation is a procedure that will allow you to answer questions about real problems by running.
Permutations and Combinations
Elementary Probability Theory
CHAPTER 5 Probability: What Are the Chances?
Probability.
Warm Up Which of the following are combinations?
Permutations and Combinations
Combination and Permutations Quiz!
Permutations and Combinations
How many possible outcomes can you make with the accessories?
Using Permutations and Combinations
Bellwork Practice Packet 10.3 B side #3.
Pencil, red pen, highlighter, GP notebook, textbook, calculator
Probability Probability Principles of EngineeringTM
Permutations and Combinations
Standard DA-5.2 Objective: Apply permutations and combinations to find the number of possibilities of an outcome.
Permutations and Combinations
Lecture 7: Permutations and Combinations
10.3 – Using Permutations and Combinations
Presentation transcript:

1 Counting Rules

2 The probability of a specific event or outcome is a fraction. In the numerator we have the number of ways the specific event can occur and in the denominator we have the total number of possible outcomes. Often we can see the numbers fairly easily in a problem. Sometimes we can’t. Counting rules are useful when we can not easily see the number of ways things can occur. We will consider 5 counting rules.

3 If any one of k different mutually exclusive and collectively exhaustive events can occur on each of n trials, the number of possible outcomes is equal to k n (k raised to the nth power). Sometimes this will be written as k^n, where ^ means the next number should be treated as a power. Example: flip a coin (k = 2) and heads or tails are mutually exclusive (only one can occur on a flip) and collectively exhaustive (either heads or tails must occur). If you flip the coin three times one outcome might be HHT. Another outcome might be THT. The total possible number of outcomes would be 2^3 = 2 times 2 times 2 = 8. Rule 1

4 Coin example All eight outcomes when you flip a coin 3 times (or just flip three coins once) are: HHH, HHT, HTH, HTT, TTT, TTH, THT, THH. So, what is the probability you would get 2 heads when you flip a coin 3 times? 2 heads occurs 3 out of the 8 times for a probability of 3/8 =.375.

5 Multiple-Step Experiments If an experiment can be described as a sequence of n steps or trials with k 1 possible outcomes or events on the first step, k 2 possible outcomes on the second step, and so on until we get to k n, then the total number of experimental outcomes is the product (k 1 )(k 2 )...(k n ). Say a construction project has two stages - design and construction. If the design could be completed in 2, 3, or 4 months and the construction could be done in 6, 7, or 8 months, then there are (3)(3) = 9 different experimental outcomes. I will list the outcomes as ordered pairs of numbers, with the first number the time to complete the design and the second the time to complete the construction: (2, 6), (2, 7), (2, 8), (3, 6), (3, 7), (3, 8), (4, 6), (4, 7), and (4, 8). Rule 2

6 Example continued What is the probability the project will be completed in 9 months? 2 of the 9 outcomes would result in completion in 9 months for a probability of 2/9 =.22

7 Rule 3 The number of ways that n items can be arranged in order is n! = n times (n – 1) times (n – 2) times … (1). n! is called n factorial and 0! = 1 by definition. Example: say you have 3 letters, A, B, and C. How many ways can you arrange the letters? 3! = 3 times 2 times 1 = 6. The six ways are ABC, ACB, BCA, BAC, CAB, and CBA. What is the probability your arrangement will end in A? 2/6 =.33

Examples 8 In baseball at the start of the game the manager presents the starting line-up. Part of this is the batting order (the other part is the position in the field of each player). If you have nine players in the starting line-up, how many different batting orders are possible? You could have (9)(8)(7)(6)(5)(4)(3)(2)(1) = 362,880 batting orders. If you have 6 books, how many ways could you order them on a shelf? You could have (6)(5)(4)(3)(2)(1) = 720 arrangements.

9 Permutations - Remember having a lock at school? The dial on the lock might have had 40 numbers. To open the lock you spun the dial to the right several times and settled on the first number in the combination, then you went around to the left once past that number and then settled on the second number, then you went right to the third number. Say you had the combination This is 3 numbers from 40. Is the combination the same as ? The answer is no. Parker, what is the point? The idea of a combination lock means and would be different combinations. This is really the idea of permutation! Perhaps a better name for our locks would be permutation locks – order matters. Rule 4

10 The formula for the number of permutations when arranging X objects selected from n objects is n!/(n- X)!. For example 2 from 5 is 5! = (5)(4)(3)(2)(1) = (5)(4) = 20 (5 - 2)! (3)(2)(1) Let’s do another example. Say we have the letters A, B, and C. Say we want to choose 2 of these. We have the number of permutations 3!/(3-2)! = 3(2)/1 = 6. The permutations would be AB, BA, AC, CA, BC, CB.

11 If you have 6 books you can arrange them 720 ways on the shelf. In general, with n items you can order them n! ways. (that reminds me of a bad joke – what’s a henway? Oh, about 5 pounds) If you only have room for 4 of the 6 books you can arrange them 6!/(6 – 4)! = 6!/2! = (6) (5)(4)(3)(2)(1)/(2)(1) = (6)(5)(4)(3) = 360 ways. What is going on here? 6 books can be arranged 720 ways but if you only have room for 4 you have 360 arrangements possible. Note in the denominator of the permutation we have the 2 books not on the shelf in factorial form. What this really means (say I have books 1 through 6) is that you could have books 1, 2, 3, 4 on the shelf, 2, 3, 4, 5 on the shelf and so on. All six would be rotated in, but 4 at a time.

12 Combinations – The formula for the number of combinations when taking X objects from n objects, irrespective of order is n!/[X!(n - X)!]. For example 2 from 5 has combinations 5! = (5)(4)(3)(2)(1) = (5)(4) = 10 2!(5 - 2)!2!(3)(2)(1) 2 Let’s do another example. Say we have the letters A, B, and C. Say we want to choose 2 of these. We have the number of combinations 3!/2!(3-2)! = 3(2)(1)/2(1)(1) = 3. The permutations were AB, BA, AC, CA, BC, CB, but in a combination since order does not matter AB and BA are the same and only counted once (and similarly for AC and BC). Rule 5

13 Say you have an ordinary deck of playing cards - you know, ace through king in spades, hearts, diamonds, and clubs. So there are 52 cards in the deck. In many games of poker you get 5 cards. How many different combinations of 5 cards are there? 52! = (52)(51)(50)(49)(48) = !(47!)(5)(4)(3)(2)(1) This means there are 2 million, 598 thousand, 960 different combinations of hands you could be dealt. Most hands you get are not memorable - you know, you get a 7 of hearts, queen of spades, 3 of clubs, 9 of clubs and a 4 of spades. But a royal flush hearts - 10, jack, queen, king, and ace all hearts - is memorable. Each hand mentioned has a 1 divided by chance of happening. But the royal flush is a winner!

14 Note on the previous screen I had 52! = (52)(51)(50)(49)(48) = !(47!)(5)(4)(3)(2)(1) Often with a combination or permutation calculation we can cancel out a lot of terms in the numerator and the denominator. I really should have put 52! = (52)(51)(50)(49)(48)(47)(46)(45)…(1) = !(47!)(5)(4)(3)(2)(1)(47)(46)(45)…(1), But then we cancel 52! = (52)(51)(50)(49)(48)(47)(46)(45)…(1) = !(47!)(5)(4)(3)(2)(1)(47)(46)(45)…(1), To get 52! = (52)(51)(50)(49)(48) = !(47!)(5)(4)(3)(2)(1)

15 Let’s go back to the example with 6 books. There are n! = 6! = 720 ways of arranging all 6 books in order, n!/(n – X) = 6!/2!= 360 or arranging them in order 4 at a time, and n!/[X!(n - X)!] = 6!/(4!2!) = 15 ways of having 4 of the 6 on the shelf at any one time without the order mattering.