Section 6.4: Counting Subsets of a Set: Combinations



Similar documents
Basics of Counting. The product rule. Product rule example. 22C:19, Chapter 6 Hantao Zhang. Sample question. Total is 18 * 325 = 5850

COUNTING SUBSETS OF A SET: COMBINATIONS

1 Combinations, Permutations, and Elementary Probability

8.3 Probability Applications of Counting Principles

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 10

Question: What is the probability that a five-card poker hand contains a flush, that is, five cards of the same suit?

Formal Languages and Automata Theory - Regular Expressions and Finite Automata -

Combinatorial Proofs

1(a). How many ways are there to rearrange the letters in the word COMPUTER?

Mathematical Induction. Mary Barnes Sue Gordon

Poker Probability from Wikipedia. Frequency of 5-card poker hands % % 72, : 1

Lecture Note 1 Set and Probability Theory. MIT Spring 2006 Herman Bennett

5544 = = = Now we have to find a divisor of 693. We can try 3, and 693 = 3 231,and we keep dividing by 3 to get: 1

Math 4310 Handout - Quotient Vector Spaces

3. Mathematical Induction

Pigeonhole Principle Solutions

Chapter 3. Distribution Problems. 3.1 The idea of a distribution The twenty-fold way

3 Some Integer Functions

5.1 Radical Notation and Rational Exponents

THE DIMENSION OF A VECTOR SPACE

How To Solve The Social Studies Test

8 Primes and Modular Arithmetic

4/1/2017. PS. Sequences and Series FROM 9.2 AND 9.3 IN THE BOOK AS WELL AS FROM OTHER SOURCES. TODAY IS NATIONAL MANATEE APPRECIATION DAY

88 CHAPTER 2. VECTOR FUNCTIONS. . First, we need to compute T (s). a By definition, r (s) T (s) = 1 a sin s a. sin s a, cos s a

Math 319 Problem Set #3 Solution 21 February 2002

Sample Induction Proofs

Student Outcomes. Lesson Notes. Classwork. Discussion (10 minutes)

Mathematical Induction

LECTURE 3. Probability Computations

WRITING PROOFS. Christopher Heil Georgia Institute of Technology

Probability definitions

MATH10040 Chapter 2: Prime and relatively prime numbers

Class Meeting # 1: Introduction to PDEs

Discrete mathematics

Vieta s Formulas and the Identity Theorem

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

Statistics 100A Homework 2 Solutions

The last three chapters introduced three major proof techniques: direct,

DERIVATIVES AS MATRICES; CHAIN RULE

Sudoku puzzles and how to solve them

Basic Proof Techniques

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2

P1. All of the students will understand validity P2. You are one of the students C. You will understand validity

Hoover High School Math League. Counting and Probability

Lecture 1 Introduction Properties of Probability Methods of Enumeration Asrat Temesgen Stockholm University

Solving Quadratic Equations

Math 55: Discrete Mathematics

Fundamentals of Probability

9.4. The Scalar Product. Introduction. Prerequisites. Learning Style. Learning Outcomes

LEARNING OBJECTIVES FOR THIS CHAPTER

23. RATIONAL EXPONENTS

Section 6-5 Sample Spaces and Probability

Session 6 Number Theory

Lemma 5.2. Let S be a set. (1) Let f and g be two permutations of S. Then the composition of f and g is a permutation of S.

LS.6 Solution Matrices

1 Sufficient statistics

Greatest Common Factor and Least Common Multiple

Solution to Exercise 2.2. Both m and n are divisible by d, som = dk and n = dk. Thus m ± n = dk ± dk = d(k ± k ),som + n and m n are divisible by d.

c 2008 Je rey A. Miron We have described the constraints that a consumer faces, i.e., discussed the budget constraint.

Conditional Probability, Independence and Bayes Theorem Class 3, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom

36 CHAPTER 1. LIMITS AND CONTINUITY. Figure 1.17: At which points is f not continuous?

INCIDENCE-BETWEENNESS GEOMETRY

SECTION 10-5 Multiplication Principle, Permutations, and Combinations

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

Assignment 5 - Due Friday March 6

5 Homogeneous systems

Introduction to Hypothesis Testing

of Nebraska - Lincoln

=

Writing Thesis Defense Papers

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

Probabilities of Poker Hands with Variations

ECON 459 Game Theory. Lecture Notes Auctions. Luca Anderlini Spring 2015

Mathematical Induction

COMP 250 Fall 2012 lecture 2 binary representations Sept. 11, 2012

So let us begin our quest to find the holy grail of real analysis.

Linear Programming. Solving LP Models Using MS Excel, 18

Basic Components of an LP:

Representation of functions as power series

This asserts two sets are equal iff they have the same elements, that is, a set is determined by its elements.

CHAPTER 2. Logic. 1. Logic Definitions. Notation: Variables are used to represent propositions. The most common variables used are p, q, and r.

Question of the Day. Key Concepts. Vocabulary. Mathematical Ideas. QuestionofDay

Homework 3 (due Tuesday, October 13)

CHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs

Special Situations in the Simplex Algorithm

Math 55: Discrete Mathematics

Part 1 Expressions, Equations, and Inequalities: Simplifying and Solving

CONTENTS 1. Peter Kahn. Spring 2007

Handout #1: Mathematical Reasoning

Chapter 10. Key Ideas Correlation, Correlation Coefficient (r),

Combinatorics 3 poker hands and Some general probability

Determine If An Equation Represents a Function

Session 7 Bivariate Data and Analysis

Math 115 Spring 2011 Written Homework 5 Solutions

Probabilistic Strategies: Solutions

WHERE DOES THE 10% CONDITION COME FROM?

SOLVING EQUATIONS WITH RADICALS AND EXPONENTS 9.5. section ( )( ). The Odd-Root Property

The Taxman Game. Robert K. Moniot September 5, 2003

Triangle deletion. Ernie Croot. February 3, 2010

1 if 1 x 0 1 if 0 x 1

Transcription:

Section 6.4: Counting Subsets of a Set: Combinations In section 6.2, we learnt how to count the number of r-permutations from an n-element set (recall that an r-permutation is an ordered selection of r elements from a set containing n elements. Note that a permutation depends upon ordering - that is, if x, y S, a set, then the permutation x, y is different to that of y, x. In this section, we introduce a similar notion to a permutation called a combination, where order does not matter i.e. so x, y and y, x would be considered the same. The idea of a combination is helpful when calculating probabilities of events where the order of choices does not matters (so hands in poker for example. We start with a definition.. Combinations Definition.. Let n and r be non-negative integers with r n. An r-combination of a set of n elements is a subset r of the n elements. The symbol ( n r which is read n choose r denotes the number of subsets of size r that can be chosen from a set of n elements. Our first task is to determine a formula to calculate the number of r combinations of an n element set. We first consider an example to gain some insight into the problem. Example.2. Determine the total number of card hands in poker. There are a total of 2 cards in a deck. The total number of card permutations will be P(2, 2 0 49 48 3, 87, 200. It seems like this should be the total number of hands, but notice that a permutation gives an ordered set, and in a five card hand, we do not care about the order the cards are given in. To see this, consider one of these five card hands, say a royal flush in hearts, 0, J, Q, K, A. Notice that there P(,! different permutations of this five card hand, none of which do not change the hand itself (since it is a simple reordering e.g 0, J, Q, K, A and J, 0, Q, K, A are both the same hand, they are just reordered. This is in fact true for any five card hand we choose. In particular, the total number of card hands in poker will be the total number of permutations of cards from 2 (so the number of ordered hands divided by the number of different permutations of that hand - so ( 2 P(2, P(, 3, 87, 200 20 2, 98, 960.

2 From the previous example, to calculate the number of subsets of size r from a set of size n, which are unordered permutations, we calculate the number of ordered sets of size r, P(n, r, and then divide it by the total number of ways we could permute any one of these ordered sets, so r!. Thus, Theorem.3. The number of subsets of size r 0 (or r-combinations that can be chosen from a set of n r elements, ( n r is given by the formula ( n P(n, r n! r r! (n r!r! We illustrate with some examples. Example.4. How many different ways can a committee of 6 be selected from people? What if there are two people who will only serve on the committee if both of them are on it? For the first question, it is a straight forward application of the theorem. There are (! 4 3 2 0 00 6 6! 9! 6 4 3 2 For the second problem, it is a little more difficult because of the additional constraints on the choice of committee. To approach this problem, we shall break it up into two calculations - whether these two people are on the committee, or are not on the committee. We shall calculate the total number of committees on which these two people will be on, and then the total number of committees they will not be on, and the total number of committees will be the sum of these. First, if the two people are on the committee, the remaining 4 committee members will be chosen from the remianing 3 people. Thus there are ( 3 3! 4 9! 4! 7 committees on which these two people could serve. If these people are not on a committee, than all members are chosen from the remaining 3 people, giving ( 3 3! 6 7! 6! 76 Therefore, there are a total of ( 3 + 6 committees satisfying these criteria. ( 3 243 4

Example.. Determine the probability of a five card poker hand being a flush (all possible flushes including straight flushes. The total number of five card hands will be the number of subsets of size five from the 2 card deck, so will equal ( 2 2, 98, 960 The number of flushes will be equal to four times the number of flushes in any given suit. Since a flush is five cards of the same suit and there are thirteen cards of any one suit, it follows that there are ( 3 287 flushes in one suit, and thus 48 total flushes. Thus the probability of a five card hand being a flush is P(F N(F N(U 48 2, 98, 960 0.0098. Example.6. Determine the probability of a five card poker hand being a straight (all possible straights including straight flushes. This problem is a little bit more difficult since it is not immediately obvious how to count the number of straights (since they can be of any suit. Since a straight is five consecutive cards, we can think of it as follows: we can count the number of straights with a given starting value (so the straights which start at 2, the straights which start at 3 and so on, and then multiple by the total number of starting values (of which there are 0, either, A, 2, 3, 4,, 6, 7, 8, 9 or 0. If a straight starts off at 2, that 2 could come from any of the four suits, so there are ( 4 4 different choices. Likewise, for the 3, 4, and 6. Since each choice is independent of the previous choice, the multiplication rule says that the total number of straights starting at 2 will be 4 024. Since there are 0 different places to start a straight, and an equal number of straights regardless of where it starts, we have a total of 0240 straights. Thus the probability of a straight in a five card hand is 0240 2, 98, 960 0.0039 2. Counting Permutations of Sets with Repeated Terms The result we have developed for combinations can also be used to help solving problems regarding permutations of a given list where terms may be repeated. We illustrate with an example. Example 2.. How many distinguishable orderings of the word WOOT- TON are there? 3

4 Observe that any permutation of the same letters will not give a different word, so we cannot simply calculate the permutations - we need to be careful about repeated letters. Therefore, we shall consider how to place each letter in order. First, we know there are a total of 7 letters, so 7 positions to write the letters. If we take the letter W, it can be placed in any one of the 7 positions. Next, consider the O s. There are 6 places left to write letters. The number of positions we can write the O s will be equal to the number of subsets of the 6 remaining positions of size 3, so will be equal to ( 6 3 20. The number of positions we can write the T s will be equal to the number of subsets of the 3 remaining positions of size 2, so will be equal to ( 3 2 3. Finally, the N will be placed in the last position. Since each of these steps did not depend upon the previous, we can use the multiplication rule, and thus we get the total number distinguishable orderings of the word WOOTTON is equal to ( 7 ( 6 3 ( 3 2 ( 7 20 3 420. This example is actually a special case of a more general idea of when we are trying to determine permutations of n elements where some of them are repeated. Theorem 2.2. Suppose that a collection consists of n objects of which: n of them are the same, but different from the others n 2 of them are the same, but different from the others. n k are the same, but different from the others and suppose that n + + n k n. Then the total number of distinct permutations of the n objects is ( ( n n n n n 2 ( n n n 2 n k n k 3. Warnings and Further Examples n! n! n 2! n k! The tools we have developed to count sets are very useful, but they should always be used with caution. We have seen examples where we have calculated certain combinations and then added the results, and in other cases we have used the multiplication rule. This of course entirely depends upon the situation you are considering, and there is no one way to tell which rule should be used when. Another problem people sometimes encounter is counting certain objects too many times accidently. The best way to avoid these issues is to be very careful and always keep asking yourself the following two questions: Am I counting everything I should be? Is everything being counted only once?

We finish with a couple more examples. Example 3.. A five a side coed soccer team has 8 men and women. At any given time, there must be at least two men and two women on the pitch. How may possible teams can be made up? There must either be 2 men on the pitch, or 3 men, so we shall calculate the number of teams with 2 men, and then add the number of teams with 3 men. First, for a team containing 2 men, there are ( 8 2 28 different possibilities of choices for men and ( 3 0 different possibilities of choices of women. Since these choices do not affect each other, the multiplication rule says that there will be a total of ( ( 8 28 0 280 2 3 teams with 3 women and 2 men. By a similar argument, there will be a total of ( ( 8 6 0 60 3 2 teams with 2 women and 3 men. Thus there are a total of 60+280 860 teams. Example 3.2. At Macaroni Grill, you can create your own pasta by choosing one of six different pastas, one of seven sauces and up to four of eleven seasonal ingredients. How many total pasta dishes are there? Clearly each choice (of sauce, of pasta and ingredients is independent, so we can use the multiplication rule. There are ( 6 6 choices of pasta, and ( 7 7 choices of sauce. If someone chooses 0 ingredients to add, then there will be 76 42 total choices. If someone chooses one ingredient, they will have a total of 7 6 ( 462 choices. Likewise, if someone chooses two, three of four ingredients, they will have a total of 7 6 ( ( 2 230, 7 6 ( 3 6930, or 7 6 4 3860 choices. Therefore, there will be a total of different pasta dishes. 42 + 462 + 230 + 6930 + 3860 23, 604 Homework (i From the book, pages 347-349: Questions: 2, 4,, 7, 9,, 6, 9, 24, 26, 28