Advanced Mathematics Counting Techniques. Addition Rule Events (tasks) A and B are mutually exclusive (no common elements/outcomes) and n(A) = a, n(B)

Slides:



Advertisements
Similar presentations
4-1 Chapter 4 Counting Techniques.
Advertisements

Mathematics Probability: Combinations Science and Mathematics Education Research Group Supported by UBC Teaching and Learning Enhancement Fund
Statistics Review. Box-and-Whisker Plots The Parts of a Box and Whisker Plot Name the parts of a Box-and-Whisker Plot MedianUpper Quartile Lower.
How many possible outcomes can you make with the accessories?
Chapter 3b Counting Rules. Permutations  How many ways can 5 students in a class of 30 be assigned to the front row in the seating chart?  There are.
Counting and Probability The outcome of a random process is sure to occur, but impossible to predict. Examples: fair coin tossing, rolling a pair of dice,
Multiplication Rule. A tree structure is a useful tool for keeping systematic track of all possibilities in situations in which events happen in order.
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.
Discrete Mathematics Lecture 7 More Probability and Counting Harper Langston New York University.
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.
Chapter 7 - Part Two Counting Techniques Wednesday, March 18, 2009.
Discrete Mathematics Lecture 6 Alexander Bukharovich New York University.
Permutations and Combinations AII Objectives:  apply fundamental counting principle  compute permutations  compute combinations  distinguish.
Expected value a weighted average of all possible values where the weights are the probabilities of each outcome :
Elementary Counting Techniques & Combinatorics Martina Litschmannová K210.
Counting. Techniques for counting Rule 1 Suppose we carry out have a sets A 1, A 2, A 3, … and that any pair are mutually exclusive (i.e. A 1  A 2 =
Basic Counting Lecture 12: Oct 28. This Lecture We will study some basic rules for counting. Sum rule, product rule, generalized product rule Permutations,
3.8 Counting Techniques: Combinations. If you are dealt a hand in poker (5 cards), does it matter in which order the cards are dealt to you? A  K  J.
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 6 Counting and Probability Instructor: Hayk Melikyan Today we will review sections 6.4,
Finding Probability Using Tree Diagrams and Outcome Tables
Basic Counting. This Lecture We will study some basic rules for counting. Sum rule, product rule, generalized product rule Permutations, combinations.
Counting Techniques 0.4.
13-1 Permutations and Combinations
Warm Up Evaluate  4  3  2   6  5  4  3  2 
© The McGraw-Hill Companies, Inc., Chapter 4 Counting Techniques.
Part 2 – Factorial and other Counting Rules
Permutations and Combinations
Permutations and Combinations. Objectives:  apply fundamental counting principle  compute permutations  compute combinations  distinguish permutations.
Counting Principles Multiplication rule Permutations Combinations.
Some other set notation We will use the notation to mean that e is an element of A. We will use the notation to mean that e is not an element of A.
Copyright © Ed2Net Learning Inc.1. 2 Warm Up Tell whether each event is dependent or independent 1. Selecting a name from a Chicago telephone book and.
Lesson 0.4 (Counting Techniques)
37. Permutations and Combinations. Fundamental Counting Principle Fundamental Counting Principle states that if an event has m possible outcomes and another.
Permutations and Combinations. 2 In this section, techniques will be introduced for counting the unordered selections of distinct objects and the ordered.
Warm up How many possible pizzas could you make with 3 types of meats, 2 types of cheeses, and 2 types of sauces? 5 * 4 * 3 * 2 * 1 =
Chapter 7 – Counting Techniques CSNB 143 Discrete Mathematical Structures.
Permutations and Combinations
Warm Up Evaluate  4  3  2   6  5  4  3  2 
Week 9 - Friday.  What did we talk about last time?  Partial orders  Total orders  Basic probability  Event  Sample space  Monty Hall  Multiplication.
Permutations and Combinations. Fundamental Counting Principle Fundamental Counting Principle states that if an event has m possible outcomes and another.
Warm up How many ways can 8 children be placed on a 8- horse Merry-Go-Round? 7! = What if Simone insisted on riding the red horse? Here we are only.
The Multiplication Rule
Permutations and Combinations
Discrete Mathematics Lecture 8 Probability and Counting
4-1 Chapter 4 Counting Techniques.
CSNB 143 Discrete Mathematical Structures
4-1 Chapter 4 Counting Techniques.
4-1 Chapter 4 Counting Techniques.
COUNTING AND PROBABILITY
How to Count Things “There are three kinds of people in the world: those who can count and those who cannot.” 11/21/2018.
In this lesson, you will learn to use the Fundamental Counting Principle.
Permutations and Combinations
Basic Counting.
COUNTING AND PROBABILITY
Lesson 11-1 Permutations and Combinations
Permutations and Combinations
Permutations and Combinations
Permutations and Combinations
Basic Counting Lecture 9: Nov 5, 6.
Discrete Structures Counting.
4-1 Chapter 4 Counting Techniques.
Bellwork Practice Packet 10.3 B side #3.
Applied Combinatorics, 4th Ed. Alan Tucker
Probability Warm Up page 12- write the question you have 10 mins to complete it. See coaching on page 85.
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
Permutations and Combinations
Presentation transcript:

Advanced Mathematics Counting Techniques

Addition Rule Events (tasks) A and B are mutually exclusive (no common elements/outcomes) and n(A) = a, n(B) = b  n(A or B) = a + b In other words there are a + b ways to do A or B.

Example 1 If you are going to have ice cream or pie for dessert, there are two choices (vanilla or butter pecan) if you have ice cream, and three choices (apple, cherry, or blueberry) if you have pie. Therefore there are = 5 choices for dessert. If you are going to choose from one category or anther category, then you add the number of choices in each category.

Multiplication Rule If there are 'a' ways to do event A and then 'b' ways to do event B, then there are a×b ways to do A and B. n(A) = a, n(B) = b  n(A and B) = a  b

Example 2 Let’s entail pie with ice cream on top, i.e., one must choose a flavour of pie and a flavour of ice cream. Note that one must first choose a flavour of pie and then choose a flavour of ice-cream. Therefore there are 3 × 2 = 6. When one must make a choice from one category and a choice from another category, one multiplies the numbers of choices in the two categories.

Example 3 Customers now have a choice of cheesecake (chocolate, lemon, raspberry, and strawberry) or pie (with ice-cream). How many possible desserts are available to customers (they cannot have both)? 4 + (3 × 2) = 10 possible desserts.

Factorial Notation (n!) For n as a positive integer, n factorial is defined by n! = n  (n – 1)  (n – 2)  …  2  1 0! = 1 Note that n! can also be written as n! = n  (n – 1)! = n  (n – 1)  (n – 2)! and so on

Example 4 Find the value of each of the following: (a)6! (b)1! (c)12!/(10!)(2!)

(a)6! = 6  5  4  3  2  1 = 720 (b)1! = 1 (c)12!/(10!)(2!) = 12  11  10!/(10!)(2!) = 66 Exercise 1: 2, 13, 20, 22, 35, 44 Example 4 (cont'd)

Permutations Permutations refer to the number of ways to select and arrange r objects from n objects. Notation: n P r or n P r There are n choices to select the first object, (n – 1) choices to select the second object, and so n  (n – 1) to select and arrange the first two objects, and so on. n P r = n  (n – 1)  (n – 2)  …  (n – r + 1)

Permutation (cont'd)

Note that the order in which the objects appear is important in permutations. That means ABC ACB BAC BCA CAB CBA are all different arrangements for the three objects Permutation (cont'd)

Example 5 Find each of the following: (a) 5 P 0 = 1 (There is only 1 way to select and arrange 0 object --- do nothing) (b) 5 P 5 = 5! = 120 (c) 5 P 2 = 5  4 = 20

Example 6 In how many ways can 3 students out of a group of 5 students be seated in a straight line? The first seat can be filled in 5 ways (any one of 5 students). The second and third seats can be filled in 4 and 3 ways respectively. Using multiplication rule, the 3 seats can be filled in 5  4  3 = 60 ways. Or using formula: 5 P 3 = 5  4  3 = 60

Example 7 In how many ways can 4 students out of a group of 15 students be seated in a straight line? The first seat can be filled in 15 ways (any one of 15 students).The second, third and fourth seats can be filled in 14, 13 and 12 ways respectively. So the 4 seats can be filled in 15x14x13x12 = Or using the formula 15 P 4 = 32760

Example 8 (Example 7) Amy and Bob are two students in the group. What is the probability that they sit next to each other? P(Amy and Bob together) = 2  13  12  3 / (why?) = 1/35 Exercise 2A: 1, 4, 8, 10 Exercise 2B: 3, 7, 10, 15, 18, 20

Combinations Combinations refer to the number of ways to select (no arrangements) r objects from n objects. Notation: n C r, n C r, or There are n choices to select the first object, (n – 1) choices to select the second object, and so n  (n – 1)/2! to choose the first two objects, and so on. n C r = n  (n – 1)  (n – 2)  …  (n – r + 1)/r!

Combination (cont'd)

Note that the order in which the objects appear is not important in combinations. That means ABC ACB BAC BCA CAB CBA are all considered to be the same. Combination (cont'd)

Example 9 Find each of the following: (a) 5 C 0 = 1 (There is only 1 way to choose 0 object - -- do nothing) (b) 5 C 5 = 1 (There is only 1 way to choose all objects) (c) 5 C 2 = 5  4 / 2! = 10 (d) 5 C 3 = 5  4  3 / 3! = 10

Example 10 Prove that n C r = n C n-r n C n-r = n! / [(n-r)!(n-(n-r))!] = n! / [(n-r)! r!] = n C r Choose r objects leaves (n – r) objects behind. So the number of ways to choose r objects from n unlike objects is the same as the number of ways to choose (n – r) objects from n.

Example 11 Consider 5 different objects: A, B, C, D and E. How many ways are there of choosing 2 objects from these 5 objects.

Listing ABBCCDDE ACBDCE ADBE AE number of ways = 10 (Note that AB and BA refer to the same combination.) By formula 5 C 2 = 5!/(2!3!) = 10 Exercise 3A: 2, 9, 18, 20, 34 Example 11 (cont'd)

Example 12 In the game of Lotto, players are required to selected 6 numbers out of 45 numbers. How many different groups of 6 numbers can be chosen from 45 numbers? What is the probability of winning the first division if the player just plays one game? Repeat the above calculations for Power Ball Lotto. (Players select 5 numbers out of 45 and then one power ball (number) from another set of 45 numbers.)

Example 12 (cont'd)

Example 13 In a common form of the card game poker, a hand of 5 cards is dealt to each player from a deck of 52 cards. (a) What is the total number of possible hands? (b) How many different flush hands (5 cards, all from 1 suit)? (c) How many full house hands (3 cards of one kind, 2 of another)? Try some other hands.

Note that the above flush hands include royal flush and straight flush. Example 13 (cont'd)

Example 14 A committee of 4 is to be formed from a nominated list of 5 men and 6 women. How many committees can be formed where there are more women than men?

more women than men  (3 women and 1 man) or (4 women) n(3 W and 1 M) = 6 C 3  5 C 1 = 20  5 = 100 n(4 W) = 6 C 4 = 15 n(more women than men) = = 115 Example 14 (cont'd)

Example 15 How many 4 digit even numbers greater than 4000 can be formed using the digits 0 to 8 if repetition of digits is not permitted?

The two requirements that must be looked at first are: --- numbers greater than 4000 (first digit: 4 to 8) and --- even numbers (last digit: 0, 2, 4, 6, 8) So the tasks of choosing the first digit and the last digit are not mutually exclusive. Split up the possible numbers into disjoint cases: --- first digit = 5 or 7 and last digit = 0, 2, 4, 6, first digit = 4, 6 or 8 and last digit = remaining 4 even Example 15 (cont'd)

first digit = 5 or 7 and last digit = 0, 2, 4, 6 or 8 There are 2 ways to choose the first digit and 5 ways to choose the last digit. So in this case the possible numbers formed = 2  7  6  5 = 420. first digit = 4, 6 or 8 and last digit = remaining 4 even There are 3 ways to choose the first digit and 4 ways to choose the last digit. So in this case the possible numbers formed = 3  7  6  4 = 504. Using addition rule, the required numbers can be formed in = 924 ways. Example 15 (cont'd)

Example 16 In how many ways can the letters of the word HISTORY be arranged (a) without restrictions (b) With the letters I and S together in the order IS (c) with the letters I and S together (d) with the letters I and S apart (e) with the letters T, O and R together?

(a)n(without restrictions) = 7 P 7 = 7! = 5040 (b)Consider I and S as a single object “IS”. Hence there are 6 objects to be arranged. n(“IS” together in this order) = 6! = 720 (c)Now “IS” can be “SI” and there are 2! ways to arrange the two objects within the group. n(“IS” together) = 2  720 = 1440 (d)n(I and S apart) = 5040 – 1440 = 3600 (e)3! ways to arrange T, O and R within the group. n(“TOR” together) = 3!  5! = 720 Example 16 (cont'd)

Example 17 Three letters are chosen from the word COUNT and two digits are chosen from the digits 1 to 6. The chosen letters and digits are then arranged to form 5 character passwords. No letter or digit is used more than once. Find the total number of passwords that can be formed.

n(3 letters) = 5 C 3 = 10 n(2 digits) = 6 C 2 = 15 There are 10  15 combinations of 3 letters and 2 digits. These 5 characters can be arranged in 5! ways. Hence n(possible passwords) = 5!  10  15 = Example 17 (cont'd)

Example 18 Suppose a group of 5 people is in a room. Find the probability that at least 2 of the people have the same birthday. Same birthday refers to the month and the day, not necessarily the same year. Also, ignore leap year and assume that each day in the year is equally likely as a birthday.

First consider the probability that no 2 people among 5 people have the same birthday. P(none of the 5 people have the same birthday) = 365 P 5 / (365) 5 (why?)  P(at least 2 of the 5 people do have the same birthday) = 1 – 0.973(why?) = Extend the above method for more than 5 people. How many people is required to make the above probability at least 0.5? Example 18 (cont'd)

Exercise 2D: 2, 12, 14 Exercise 2C: 4, 13, 21, 25, 31 Exercise 3B: 2, 10, 15, 21, 37, 39