Counting Subsets of a Set: Combinations Lecture 28 Section 6.4 Thu, Mar 30, 2006.

Slides:



Advertisements
Similar presentations
Probability Topic 5: Probabilities Using Counting Methods.
Advertisements

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 4.5.
Counting Chapter 6 With Question/Answer Animations.
Lecture 23. Subset Sum is NPC
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,
CSE115/ENGR160 Discrete Mathematics 04/17/12
Permutations r-permutation (AKA “ordered r-selection”) An ordered arrangement of r elements of a set of n distinct elements. permutation of a set of n.
Introduction to Combinatorics Section 2.3. The Fundamental Principle of Counting The total number of possible outcomes of a series of decisions (i.e.
1 Section 5.1 Discrete Probability. 2 LaPlace’s definition of probability Number of successful outcomes divided by the number of possible outcomes This.
Combinations We should use permutation where order matters
1 More Counting Techniques Possibility trees Multiplication rule Permutations Combinations.
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
Permutations & Combinations
Copyright © 2007 Pearson Education, Inc. Slide 8-1.
Lecture II.  Using the example from Birenens Chapter 1: Assume we are interested in the game Texas lotto (similar to Florida lotto).  In this game,
College Algebra Fifth Edition
Section 4.3: Permutations and Combinations Def: A permutation of a set of distinct objects is an ordered arrangement of these objects. Ex: {a, b, c, d}
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.
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
Permutations Counting Techniques, Part 1. Permutations Recall the notion of calculating the number of ways in which to arrange a given number of items.
1 Permutations and Combinations. 2 In this section, techniques will be introduced for counting the unordered selections of distinct objects and the ordered.
7 Further Topics in Algebra © 2008 Pearson Addison-Wesley. All rights reserved Sections 7.4–7.7.
Chapter The Basics of Counting 5.2 The Pigeonhole Principle
Generalized Permutations and Combinations
Section 7.1. Section Summary Finite Probability Probabilities of Complements and Unions of Events Probabilistic Reasoning.
Probability Notes Math 309. Sample spaces, events, axioms Math 309 Chapter 1.
Binomial Coefficients, Inclusion-exclusion principle
Chapter 6 With Question/Answer Animations 1. Chapter Summary The Basics of Counting The Pigeonhole Principle Permutations and Combinations Binomial Coefficients.
Permutations and Combinations
Fall 2002CMSC Discrete Structures1 One, two, three, we’re… Counting.
Counting Subsets of a Set: Combinations Lecture 31 Section 6.4 Wed, Mar 21, 2007.
March 10, 2015Applied Discrete Mathematics Week 6: Counting 1 Permutations and Combinations How many different sets of 3 people can we pick from a group.
3.5 Probabilities Using Combinations. Scratch Tickets What is your probability of winning grand prize? Numbers are are picked Order of picking.
Mathematical Induction II Lecture 21 Section 4.3 Mon, Feb 27, 2006.
Counting Subsets of a Set: Combinations Lecture 28 Section 6.4 Wed, Mar 2, 2005.
The Binomial Theorem Lecture 29 Section 6.7 Mon, Apr 3, 2006.
1 Binomial Coefficients CS 202 Epp, section ??? Aaron Bloomfield.
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
Copyright © 1998, Triola, Elementary Statistics Addison Wesley Longman 1 M ARIO F. T RIOLA E IGHTH E DITION E LEMENTARY S TATISTICS Section 3-6 Counting.
Permutations – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Permutations Reading: Kolman, Section 3.1.
Counting Subsets of a Set: Combinations Lecture 33 Section 6.4 Tue, Mar 27, 2007.
Counting nCr = n!/r!(n-r)!=nC(n-r) This equation reflects the fact that selecting r items is same as selecting n-r items in forming a combination from.
The Pigeonhole Principle. The pigeonhole principle Suppose a flock of pigeons fly into a set of pigeonholes to roost If there are more pigeons than pigeonholes,
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 6 Counting and Probability Instructor: Hayk Melikyan Today we will review sections 6.6,
ICS 253: Discrete Structures I Discrete Probability King Fahd University of Petroleum & Minerals Information & Computer Science Department.
MAT 1000 Mathematics in Today's World. Last Time.
Systematic Sampling Lecture 9 – Part 1 Sections 2.8 Wed, Jan 30, 2008.
HAWKES LEARNING Students Count. Success Matters. Copyright © 2015 by Hawkes Learning/Quant Systems, Inc. All rights reserved. Section 7.2 Counting Our.
Discrete Math Section 15.3 Solve problems using permutations and combinations Read page Combinations and permutations.
Classwork: wks Homework (day 7): Wks (1-17)/Quiz next block Bring in items to work on Project in class!
2/24/20161 One, two, three, we’re… Counting. 2/24/20162 Basic Counting Principles Counting problems are of the following kind: “How many different 8-letter.
Special Topics. Calculating Outcomes for Equally Likely Events If a random phenomenon has equally likely outcomes, then the probability of event A is:
Section The Pigeonhole Principle If a flock of 20 pigeons roosts in a set of 19 pigeonholes, one of the pigeonholes must have more than 1 pigeon.
ICS 253: Discrete Structures I Counting and Applications King Fahd University of Petroleum & Minerals Information & Computer Science Department.
SECTION 5.4 COUNTING. Objectives 1. Count the number of ways a sequence of operations can be performed 2. Count the number of permutations 3. Count the.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 4.5.
Fall 2002CMSC Discrete Structures1 Combinations An r-combination of elements of a set is an unordered selection of r elements from the set. Thus,
COUNTING Discrete Math Team KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) 1.
Section 6.3. Section Summary Permutations Combinations.
The Multiplication Rule
The Pigeonhole Principle
Generalized Permutations and Combinations
Section 3-4 Permutations
BASIC PROBABILITY Probability – the chance of something (an event) happening # of successful outcomes # of possible outcomes All probability answers must.
Discrete Math Section 15.3 Solve problems using permutations and combinations Read page Combinations and permutations.
CS100: Discrete structures
4 Probability Lesson 4.8 Combinations and Probability.
COUNTING AND PROBABILITY
Counting Discrete Mathematics.
Probability Notes Math 309.
Presentation transcript:

Counting Subsets of a Set: Combinations Lecture 28 Section 6.4 Thu, Mar 30, 2006

r-Combinations An r-combination of a set of n elements is a subset of r of the n elements. The order of the elements does not matter. The 3-combinations of the set {a, b, c, d, e} are {a, b, c}, {a, b, d}, {a, b, e}, {a, c, d}, {a, c, e}, {a, d, e}, {b, c, d}, {b, c, e}, {b, d, e}, {c, d, e}.

Counting r-Combinations Theorem: The number of r-combinations of a set of n elements is Examples: C(4, 2) = (4  3)/(2  1) = 6. C(10, 3) = (10  9  8)/(3  2  1) = 120. C(1000, 2) = (1000  999)/(2  1) =

Some Useful Facts C(n, 0) = 1 for all n  0. C(n, 1) = n for all n  1. Notice that C(n, r) = C(n, n – r). For example, C(100, 99) = C(100, 1) = 100/1 = 100. Therefore, C(n, n) = 1 for all n  0. C(n, n – 1) = n for all n  1.

Another Useful Fact The TI-83 will calculate C(n, r). Enter n. Select MATH > PRB > nCr. Enter r. Press ENTER. The value of C(n, r) appears.

Counting r-Combinations Proof (by induction on n). Base case: Let n = 0. Then r = 0 and there is only one 0-combination, the null set. Also, 0!/(0!0!) = 1. So the statement is true when n = 0.

Counting r-Combinations General case: Suppose that the statement is true when n = k, for some integer k  0. Consider a set of k + 1 elements. If r = 0, then there is only one 0-combination, the null set, and (k + 1)!/(0!(k + 1)!) = 1. If r = k + 1, then there is only one k- combination, the entire set, and (k + 1)!/((k + 1)!0!) = 1.

Counting r-Combinations So let r be any number between 0 and k + 1 (0 < r < k + 1). Select an arbitrary element a from the set. For each r-combination of the k + 1 elements, a is either a member or not a member. We will count the r-combinations for which a is a member and then count the r- combinations for which a is not a member.

Counting r-Combinations r-combinations for which a is not a member: The r elements come from the remaining k elements. Therefore, by the inductive hypothesis, there are k!/(r!(k – r)!) such sets. r-combinations for which a is a member: The other r – 1 elements in the subset come from the k remaining elements in the set. By the inductive hypothesis, there are k!/((r – 1)!(k – (r – 1))!) such sets.

Counting r-Combinations Therefore, the number of r-combinations of k + 1 elements is A little algebra shows that this equals Thus, the statement is true when n = k + 1, etc.

Example: Counting r- Combinations In Math 121, I used to collect 48 daily homework assignments. Some assignments count more than others. I drop the “lowest” 4 homework grades. Which should be dropped: 0 out of 30 or 15 out of 40? I drop the 4 grades that hurt the student’s average the most.

Example: Counting r- Combinations How can that be determined? Can a computer program make the determination by brute force (exhaustive checking) within a reasonable amount of time? There are C(48, 4) = 194,580 possible choices. A computer can do the math really fast, in say one second.

Example: Counting r- Combinations What if I dropped 6 grades? There would be C(48, 6) = 12,271,512 possible choices. Over 60 times as many. This would require about 60 secs = 1 min.

Example: Counting r- Combinations What if I dropped 12 grades? There would be C(48, 12) = over 69 billion choices! More than 350,000 as many! This would require almost 350,000 sec = over 4 days.

Example: Counting r- Combinations What if I dropped 44 grades!!!??? This must involve unimaginably many possibilities! How many would it be?

Lotto South In Lotto South, a player chooses 6 numbers from 1 to 49. Then the state chooses at random 6 numbers from 1 to 49. The player wins according to how many of his numbers match the ones the state chooses. See the Lotto South web page.Lotto South web page

Lotto South There are C(49, 6) = 13,983,816 possible choices. Match all 6 numbers There is only 1 winning combination. Probability of winning is 1/ =

Lotto South Match 5 of 6 numbers There are 6 winning numbers and 43 losing numbers. Player chooses 5 winning numbers and 1 losing numbers. Number of ways is C(6, 5)  C(43, 1) = 258. Probability is

Lotto South Match 4 of 6 numbers Player chooses 4 winning numbers and 2 losing numbers. Number of ways is C(6, 4)  C(43, 2) = Probability is

Lotto South Match 3 of 6 numbers Player chooses 3 winning numbers and 3 losing numbers. Number of ways is C(6, 3)  C(43, 3) = Probability is

Lotto South Match 2 of 6 numbers Player chooses 2 winning numbers and 4 losing numbers. Number of ways is C(6, 2)  C(43, 4) = Probability is

Lotto South Match 1 of 6 numbers Player chooses 1 winning numbers and 5 losing numbers. Number of ways is C(6, 1)  C(43, 5) = Probability is

Lotto South Match 0 of 6 numbers Player chooses 6 losing numbers. Number of ways is C(43, 6) = Probability is

Lotto South Note also that the sum of these integers is Note also that the lottery pays out a prize only if the player matches 3 or more numbers. Match 3 – win $5. Match 4 – win $75. Match 5 – win $1000. Match 6 – win millions.

Lotto South Given that a lottery player wins a prize, what is the probability that he won the $5 prize? P(he won $5, given that he won) = P(match 3)/P(match 3, 4, 5, or 6) = / =

Example Theorem (The Vandermonde convolution): For all integers n  0 and for all integers r with 0  r  n, Proof: See p. 362, Sec. 6.6, Ex. 18.

Another Lottery In the previous lottery, the probability of winning a cash prize is Suppose that the prize for matching 2 numbers is… another lottery ticket! Then what is the probability of winning a cash prize?

Lotto South What is the average prize value of a ticket? Multiply each prize value by its probability and then add up the products: $10,000,000  = $1000  = $75  = $5  = $0  =

Lotto South The total is $0.8945, or cents (assuming that the big prize is ten million dollars). A ticket costs $1.00. How large must the grand prize be to make the average value of a ticket more than $1.00?

Another Lottery What is the average prize value if matching 2 numbers wins another lottery ticket?

Permutations of Sets with Repeated Elements Theorem: Suppose a set contains n 1 indistinguishable elements of one type, n 2 indistinguishable elements of another type, and so on, through k types, where n 1 + n 2 + … + n k = n. Then the number of (distinguishable) permutations of the n elements is n!/(n 1 !n 2 !…n k !).

Proof of Theorem Proof: Rather than consider permutations per se, consider the choices of where to put the different types of element. There are C(n, n 1 ) choices of where to place the elements of the first type.

Proof of Theorem Proof: Then there are C(n – n 1, n 2 ) choices of where to place the elements of the second type. Then there are C(n – n 1 – n 2, n 3 ) choices of where to place the elements of the third type. And so on.

Proof, continued Therefore, the total number of choices, and hence permutations, is C(n, n 1 )  C(n – n 1, n 2 )  C(n – n 1 – n 2, n 3 ) … C(n – n 1 – n 2 – … – n k – 1, n k ) = …(some algebra)… = n!/(n 1 !n 2 !…n k !).

Example How many different numbers can be formed by permuting the digits of the number ? 6!/(3!2!1!) = 720/(6  2  1) = 60.

Example How many permutations are there of the letters in the word MISSISSIPPI? 11!/(4!4!2!1!) = How many for VIRGINIA? How many for INDIVISIBILITY?