Well, there are 6 possible pairs: AB, AC, AD, BC, BD, and CD. This is the binomial coefficient s job. The answer we want is abbreviated ( 4

Similar documents
MTH 245: Mathematics for Management, Life, and Social Sciences

LESSON 4 COMBINATIONS

Permutations and Combinations

CHAPTER 8 Additional Probability Topics

CS1800: Permutations & Combinations. Professor Kevin Gold

Welcome to Introduction to Probability and Statistics Spring

Counting Things. Tom Davis March 17, 2006

Permutations, Combinations and The Binomial Theorem. Unit 9 Chapter 11 in Text Approximately 7 classes

6/24/14. The Poker Manipulation. The Counting Principle. MAFS.912.S-IC.1: Understand and evaluate random processes underlying statistical experiments

Elementary Combinatorics

Coding Theory on the Generalized Towers of Hanoi

Discrete Structures Lecture Permutations and Combinations

Week 1: Probability models and counting

n! = n(n 1)(n 2) 3 2 1

UNIT 2. Counting Methods

The Product Rule The Product Rule: A procedure can be broken down into a sequence of two tasks. There are n ways to do the first task and n

Generalized Permutations and The Multinomial Theorem

Chapter 11, Sets and Counting from Applied Finite Mathematics by Rupinder Sekhon was developed by OpenStax College, licensed by Rice University, and

CSE 312: Foundations of Computing II Quiz Section #2: Inclusion-Exclusion, Pigeonhole, Introduction to Probability (solutions)

More Probability: Poker Hands and some issues in Counting

November 11, Chapter 8: Probability: The Mathematics of Chance

CSE 312: Foundations of Computing II Quiz Section #2: Inclusion-Exclusion, Pigeonhole, Introduction to Probability

Problems from 9th edition of Probability and Statistical Inference by Hogg, Tanis and Zimmerman:

Section Summary. Permutations Combinations Combinatorial Proofs

Chapter 2. Permutations and Combinations

Probability. Engr. Jeffrey T. Dellosa.

Here are two situations involving chance:

November 6, Chapter 8: Probability: The Mathematics of Chance

Week 3-4: Permutations and Combinations

chapter 2 COMBINATORICS 2.1 Basic Counting Techniques The Rule of Products GOALS WHAT IS COMBINATORICS?

Intermediate Math Circles November 1, 2017 Probability I

Combinatorial Proofs

12th Bay Area Mathematical Olympiad

Business Statistics. Chapter 4 Using Probability and Probability Distributions QMIS 120. Dr. Mohammad Zainal

MAT104: Fundamentals of Mathematics II Summary of Counting Techniques and Probability. Preliminary Concepts, Formulas, and Terminology

Poker: Further Issues in Probability. Poker I 1/29

Sec$on Summary. Permutations Combinations Combinatorial Proofs

Fundamental Counting Principle

CSC/MTH 231 Discrete Structures II Spring, Homework 5

Combinatorics: The Fine Art of Counting

PROBABILITY Case of cards

This exam is closed book and closed notes. (You will have access to a copy of the Table of Common Distributions given in the back of the text.

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

Permutations: The number of arrangements of n objects taken r at a time is. P (n, r) = n (n 1) (n r + 1) =

CISC-102 Fall 2017 Week 8

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 11

A Probability Work Sheet

November 8, Chapter 8: Probability: The Mathematics of Chance

Permutations and Combinations

Exercises Exercises. 1. List all the permutations of {a, b, c}. 2. How many different permutations are there of the set {a, b, c, d, e, f, g}?

Section Summary. Finite Probability Probabilities of Complements and Unions of Events Probabilistic Reasoning

Counting (Enumerative Combinatorics) X. Zhang, Fordham Univ.

CS 237: Probability in Computing

Poker: Probabilities of the Various Hands

Mixed Counting Problems

LAMC Junior Circle February 3, Oleg Gleizer. Warm-up

Lecture 18 - Counting

CS 237 Fall 2018, Homework SOLUTION

Problem Set 2. Counting

Mat 344F challenge set #2 Solutions

Trigonometric ratios 9B 1 a d b 2 a c b

4.1 Sample Spaces and Events

Theory of Probability - Brett Bernstein

The next several lectures will be concerned with probability theory. We will aim to make sense of statements such as the following:

Section The Multiplication Principle and Permutations

2. Combinatorics: the systematic study of counting. The Basic Principle of Counting (BPC)

Chapter-wise questions. Probability. 1. Two coins are tossed simultaneously. Find the probability of getting exactly one tail.

The study of probability is concerned with the likelihood of events occurring. Many situations can be analyzed using a simplified model of probability

Triangle Similarity Bundle

Unit 10 Arcs and Angles of Circles

Poker: Probabilities of the Various Hands

Permutations and Combinations

There are three types of mathematicians. Those who can count and those who can t.

RANDOM EXPERIMENTS AND EVENTS

Chapter 1. Probability

Probability & Expectation. Professor Kevin Gold

Unit 9: Probability Assignments

Mathematics Probability: Combinations

Introductory Probability

Counting Things Solutions

Intermediate Math Circles November 1, 2017 Probability I. Problem Set Solutions

I. WHAT IS PROBABILITY?

NINJA CHALLENGE INSTRUCTIONS CONTENTS

The Teachers Circle Mar. 20, 2012 HOW TO GAMBLE IF YOU MUST (I ll bet you $5 that if you give me $10, I ll give you $20.)

3 The multiplication rule/miscellaneous counting problems

CISC 1400 Discrete Structures

Functional Skills Mathematics

Chapter 1. Probability

The game of poker. Gambling and probability. Poker probability: royal flush. Poker probability: four of a kind

Chapter 11: Probability and Counting Techniques

Discrete Structures for Computer Science

Simulations. 1 The Concept

12.1 The Fundamental Counting Principle and Permutations

Mathematics SAMPLE Confey College. Kildare

Honors Precalculus Chapter 9 Summary Basic Combinatorics

COUNTING AND PROBABILITY

Advanced Intermediate Algebra Chapter 12 Summary INTRO TO PROBABILITY

COUNTING AND PROBABILITY

CS1800: Intro to Probability. Professor Kevin Gold

Team Round University of South Carolina Math Contest, 2018

Transcription:

2 More Counting 21 Unordered Sets In counting sequences, the ordering of the digits or letters mattered Another common situation is where the order does not matter, for example, if we want to choose a subset of a given size Example 21 Suppose we have 4 players, say A, B, C, D, but only two can proceed How many possible pairs are there? Well, there are 6 possible pairs: AB, AC, AD, BC, BD, and CD This is the binomial coefficient s job The answer we want is abbreviated ( 4 2 Lemma 21 Given a universe of n elements, the number of ways to choose an unordered subset of k elements without replacement (assuming 0 k n is the binomial coefficient ( n n! = k k! (n k! pronounced n choose k Proof One way to prove the formula, is to argue as follows Say the universe is X Let A be the number of ordered sequences of k elements (without replacement and let B be the number of unordered subsets of k elements (without replacement We already calculated A in Lemma 13 as being n!/(n k! But we can also generate all ordered sequences on length k in the following way Generate all unordered subsets of size k There are B of these Then order each of these subsets in all possible ways We know that a subset of size k can be ordered in k! ways So this means that: A = B k! It follows that B = n!/(k!(n k!, as the theorem claims This can also be argued in reverse If we write out all ordered sequences, and group them according to the subset to which they correspond, then each subset will appear k! times For example, suppose n = 4 and k = 3 Then there are 4!/(4 3! = 24 sequences, but only 4 subsets:

2 MORE COUNTING 6 abc acb bac bca cab cba {a, b, c} abd adb bad bda dab dba {a, b, d} acd adc cad adc dac dca {a, c, d} bcd bdc cbd cdb dbc dcb {b, c, d} One obvious property from the symmetry of the formula is that: ( ( n n = k n k This can also be observed by noting that choosing the k elements in the set is equivalent to choosing the n k elements not in the set Example 22 Suppose there is a league of 10 teams and every team must play every other team exactly once How many matches are there? The answer is ( 10 2 = 4 Example 23 How many -letter words are there with exactly two vowels? Start by choosing the places where the vowels will go This is 2 places out of, so there are ( 2 = 10 ways to do this Then choose the vowels 2 and the consonants 21 3 So the answer is 10 2 21 3 Example 24 How many anagrams of TATTERED including nonsense words are there? Well, there are 8 letters But this does not mean there are 8! anagrams, since the order of the T s for example does not matter (Consider the situation where all the letters are the same! Note that there are 3 T s and 2 E s, and the remaining letters each appear once The claim is that the answer is 8! 3! 2! One way to see this, is to temporarily add subscripts to the T s and E s Then list all anagrams: there are indeed 8! if we consider the three T s and two E s as distinct But if we now erase the subscripts, then a word like TAREDETT will appear 3! 2! = 12 times on our list there are 3! ways of arranging the subscripts on the T s and 2! ways of arranging the subscripts on the E s So our 8! anagrams can be arranged into groups of 12 identical words That is, there are 8!/12 = 3360 anagrams The following example talks about the odds of an event The odds or chance of an event is the likelihood of it occurring, or the proportion of time that it occurs This is calculated by dividing the number of outcomes corresponding to the event in question by the total number of outcomes (This assumes all outcomes are equally likely; for example, that the pack of cards is perfectly shuffled

2 MORE COUNTING 7 Example 2 In poker, what are the odds of being dealt a flush (all cards are the same suit? Let s assume we have a standard 2-card deck, nothing wild, and are dealt cards Well there are ( 2 possible hands A calculator shows this is 298960 There are 4 possibilities for the suit For a fixed suit, there are ( 13 ways to deal a flush with that suit Thus the total number of flushes is 4 ( 13 = 148 The proportion/chance is 0198%, or about 1 time in 0 22 Multisets Binomial coefficients turn up in maybe unexpected places Example 26 Suppose we have 7 numbered boxes in a row We have 10 indistinguishable balls In how many ways can we place the balls into the boxes? Well, this turns out to be the binomial coefficient ( 16 6 One way to see this is to consider placing 16 crosses in a line Then circle 6 of these crosses The circles correspond to the change from one box to the next For example, the following represents the placement of 3 balls, 1 ball, 0 balls, 3 balls, 0 balls, 1 ball, and 2 balls X X X X X X X X X X X X X X X X The previous example explains the answer to the question of unordered subsets with repetition allowed A multiset is like a set except elements can be repeated Example 27 Determine the number of 3-element multisets of an n-element set All three elements the same: n choices Two of one and one of another: n (n 1 All three different: ( n 3 By arithmetic this sums to ( n+2 3 The fact that the above example gives a binomial coefficient is no coincidence Lemma 22 Given a universe of n elements, the number of ways to choose an unordered multiset of k elements (assuming 0 k is ( n + k 1 k

2 MORE COUNTING 8 Proof It is the same problem as having k indistinguishable balls to place in n numbered boxes For, each box is an element; we choose an element by adding a ball to its box Counting dice throws with indistinguishable dice is equivalent to counting unordered multisets In Example 13 we considered two dice That example corresponds to n = 6 and k = 2 in the above lemma The lemma says that the number of outcomes is ( 7 = 21, which is what we determined originally Exercises 21 An SSN is a 9-digit number with zeroes allowed in every position (a How many SSNs have exactly two distinct digits? (b How many SSNs have digits that sum to 2? (c How many SSNs have digits that sum to 3? 22 How many -letter words are there with exactly 4 different letters? 23 Determine the number of anagrams of SASSAFRAS 24 Consider three balls and three buckets In how many different ways can the balls be arranged in the buckets if: (a the balls and the buckets are all numbered? (b the balls are numbered but the buckets are indistinguishable? (c the buckets are numbered but the balls are indistinguishable? (d the balls are indistinguishable and the buckets are indistinguishable? 2 Consider a -card poker hand (a Calculate the odds of being dealt a full house (3 of one denomination/rank and 2 of another (b Calculate the odds of being dealt a royal flush (ace, king, queen, jack, and ten of the same suit (c Calculate the odds of being dealt two pairs (2 of one denomination, 2 of another denomination, and the remaining card a third denomination 26 In the local lottery, you buy a ticket with 6 (unordered numbers in the range 1 to 49, and you have to match the 6 numbers drawn to win the jackpot (a Calculate ( 49 6

2 MORE COUNTING 9 (b A runner-up prize is obtained if you match exactly of the drawn numbers Calculate the odds of a runner-up prize (c All tickets that match no numbers are placed in a barrel for a chance at a lucky loser prize Calculate the odds of a particular ticket matching no numbers 27 Consider 3-digit numbers, no zeroes allowed How many such numbers are there with the digits strictly increasing? 28 Mabe lives in Manhattan and his office is blocks east and 3 blocks north He always takes the shortest route to work (that is, he walks exactly 8 blocks, but he likes to vary the route Office Green Home (a How many different shortest routes can Mabe take between his home and his office? (b How many different shortest routes can Mabe take if he wants to walk along two sides of the central green? (c How many different shortest routes can Mabe take if he wants to avoid walking alongside the central green? 29 How many different necklaces can be made with 7 beads: 3 red, 2 blue and 2 white? Note that a necklace has no starting point, and that flipping it over gives the same necklace 210 Suppose we have 12 people and need to split them into three subcommittees of size 3, 4 and, with nobody serving on more than one subcommittee In how many ways can this be done? 211 On Planet X all the people are of the same gender Nevertheless, they still pair off to get married in one simultaneous ceremony There are 10 people on planet X How many possible marriage ceremonies are there?