Math 42, Discrete Mathematics

Size: px
Start display at page:

Download "Math 42, Discrete Mathematics"

Transcription

1 c Fall 2018 last updated 10/29/2018 at 18:22:13 For use by students in this class only; all rights reserved. Note: some prose & some tables are taken directly from Kenneth R. Rosen, and Its Applications, 8th Ed., the ocial text adopted for this course.

2 Basic Principles Denition (The Product Rule) Suppose that a procedure can be broken down into a sequence of two tasks. If there are n 1 ways to do the rst task and for each of these ways of doing the rst task, there are n 2 ways to do the second task, then there are n 1 n 2 ways to do the procedure. c R. P.

3 Basic Principles Fact An extended version of the product rule is often useful. Suppose that a procedure is carried out by performing the tasks T 1, T 2,..., T m in sequence. If each task T i, i = 1, 2,..., m, can be done in n i ways, regardless of how the previous tasks were done, then there are n 1 n 2 n m ways to carry out the procedure. Proof. We use mathematical induction. Let P(m) be the assertion stated in the Fact above. Step 1 P(2) is just the Product Rule stated above. We accept that without further proof. Remark P(1) is trivial. It turns out that we need to prove P(2) in c R. P.

4 continued. Step 2 (Inductive Step): Suppose P(k) is true. Then we consider the steps T 1, T 2,..., T k to be performed as comprising a single, albeit complicated, rst task and step T k+1 as a second task. Then according to the Product Rule above, the number of ways of carrying out the procedure is the number of ways of carrying out the rst (k-step) task times the number of ways of carrying out the second task, T k+1. But by the inductive hypothesis P(k), the number of ways of carrying out the rst (k-step) task is n 1 n 2 n k, while the number of ways of carrying out the second task is n k+1. So the total number of ways of carrying out the succession of k + 1 tasks is (n 1 n 2 n k ) n k+1 = n 1 n 2 n k+1. c R. P.

5 Product Rule Examples Example If A 1,..., A n are nite sets, then A 1 A n = A 1 A n (1) Example In 2018, how many possible birthdays are therein orderfor a class of 35 students? If A 1 = A 2 = = A 35 = {days on the 2018 calendar}, then A 1 A 35 = = c R. P.

6 Product Rule Examples Example In 2018, how many possible birthdays are therein orderfor a class of 35 students if repetition is not allowed? We have 365 choices for the rst birthday in the list, 364 choices for the second choice, etc. Why? Using the extended product rule, we end up with = choices. Remark Note that this is not a Cartesian product type problem. Each choice of birthday depends on the previous choicesbut the number of choices does not depend on the particular choices made earlier. c R. P.

7 Product Rule Examples Remark As we'll see later when we study simple equal-likelihood probability models, we can combine the previous two results to get that the probability that no two students in this class have the same birthday is ( )/( ) = But further probability results will say that the probability that at least two students in the class share a birthday is = That is, the chances are above 81% that at least two people in the class share a birthday. c R. P.

8 the Number of Functions Fact If X = n and Y = mso X and Y are nite setsthen the number of possible functions f : X Y is m n. Proof. List the elements of X in some order: x 1,..., x n. To dene a function f : X Y we need to specify a value f(x i ) Y for each i = 1,..., n. But for each i, we have m possible choices for f(x i ). The Product rule then says that we have m m = m n possible ways to assign values to the f(x i ), and hence m n possible functions from X to Y. c R. P.

9 the Number of Functions Remark If X and Y are sets, more advanced texts use the notation Y X = {all functions f : X Y}. Note that this is simply notation; Y X makes no sense computationally. Thus, the result above can be restated as Y X = Y X. c R. P.

10 the Number of Functions Fact If X = n and Y = mso X and Y are nite setsthen the number of possible one-to-one functions f : X Y is m (m 1) (m 2) (m n + 1) (2) if n m, and 0 otherwise. Proof. If n > m the Pigeonhole Principle from Chapter 1 says that for any function f : X Y, at least one element of Y must have more than one element of X sent to it. This precludes one-to-one-ness for f. For n m, again list the elements of X in some order: x 1,..., x n. Then we have m choices for f(x 1 ), (m 1) choices for f(x 2 ), etc. Apply the Product Rule to get (2). c R. P.

11 Rick's Bistrot Internationale Rick s Bistrot Internationale Appetizers Crispy Egg Rolls Chicken Satay Guacamole & Chips California Roll Caprese Salad Main Courses Lamb Korma Red Curry Chicken Eggplant Parmesan Desserts Mango Pudding Chocolate Decadence Apple Pie a la Mode Assiette de Fromages: Brie, Chèvre, Roquefort Prix Fixe I: Two Courses 1 Appetizer & 1 Main Course or 1 Main Course & 1 Dessert Prix Fixe II 1 Appetizer, 1 Main Course, & 1 Dessert c R. P.

12 Product Rule Examples Example How many dierent Prix Fixe II dinners are possible at Rick's Bistrot Internationale? We choose one option from each of the three courses, Appetizer, Main Course, and Dessert. Since the number of choices available in each course does not depend on the specic choices we make, we may apply the Product Rule. So the total number of Prix Fixe II dinners available is = 60, since we have 5 appetizer choices, 3 choices for the main course, and 4 dessert choices. c R. P.

13 Basic Principles Denition (The Sum Rule) If a task can be done either in one of n 1 ways or in one of n 2 ways, where no element of the set of n 1 ways is the same as any element of the set of n 2 ways, then there are n 1 + n 2 ways to do the task. Remarks The context here is a task that, at least supercially, only involves one stepnot a sequence of steps as in the product rule. As a result, the Sum Rule can be thought of as an application of the rule for nding the cardinality of A 1 A 2, where A 1 and A 2 are disjoint nite sets. A 1 A 2 = A 1 + A 2 c R. P.

14 Basic Principles Example How many dierent Prix Fixe I dinners are possible at Rick's Bistrot Internationale? Unlike the Prix Fixe II dinner problem above, in this case we must count separately the number of dinners possible under the Appetizer + Main Course" option and the number of dinners possible under the Main Course + Dessert" option. Since these options are mutually exclusivewe must choose either one or the other, but not bothwe must apply the Sum Rule to get the total number of possible meals. For the Appetizer + Main Course" option, we apply the Product Rule to nd that there are 5 3 = 15 dierent such meals possible. For the Main Course + Dessert" option, we apply the Product Rule to nd that there are 3 4 = 12 dierent such meals possible. Thus = 27 PF I dinners are possible. c R. P.

15 Pigeonhole Principle The pigeonhole principle asserts that if you have n pigeonholes and m pigeons, with m > n, then at least one pigeonhole must contain more than one pigeon. More generally, if you have n pigeonholes and m pigeons, with m > n, then at least one pigeonhole must contain at least m n pigeons. c R. P.

16 Permutations Denition For any set X, a permutation of X is a one-to-one and onto function f : X X. Remarks If X is a nite set with n elements, then a function f : X X is completely determined by (y 1,..., y n ), an ordered n-tuple of elements of X such that y i = f(x i ) for i = 1,..., n. Moreover, a one-to-one and onto function from X to itself will correspond to such an ordered n-tuple (y 1,..., y n ) such that all the y i are distinct. Thus the number of permutations of a nite set X = {x 1,..., x n } will be exactly the number of ways in the elements x 1,..., x n can be reordered. c R. P.

17 Permutations More generally, for any positive integer r with 1 r n, we consider the distinct ways in which r elements from the set X = {x 1,..., x n } can be put in order. Such an ordering is called an r-permutation of the set. Fact The number of r-permutations of an n-element set is denoted by P(n, r),and we have P(n, r) = n (n 1) (n r + 1). (3) Remarks The proof is a straightforward application of the Product Rule discussed above. When r = n, we have P(n, n), the number of permutations of an n-element set, and P(n, n) = n!. c R. P.

18 Permutations Remarks Note that P(n, r) = n (n 1) (n r + 1) n (n 1) = (n r)(n r 1) n! = (n r)!. (4) Although (4) gives a satisfying and algebraically useful formula for P(n, r), that formula is computationally almost useless if n is of even moderate size. For example, 69! and 70! c R. P.

19 Permutations Examples Example Suppose the Math Club, which has 20 members, wants to elect four ocers: a president, vice president, secretary, and treasurer. It will be a simple ballot, with the student with the most votes elected president, the next-highest vote getter vice president, and so forth. How many outcomes are possible in such an election? (Assume that there are no ties.) We need to count the number of ways to choosein orderfour students from the twenty club members. Order is important because it determines which specic oces are awarded. So the answer will be P(20, 4) = = 116, 280. c R. P.

20 Example Now suppose that instead of electing four ocers as above, the Math Club wants to elect a ruling Triumvirate of three members. The students with the three highest vote totals will be elected to the Triumvirate. How many Triumvirates will be possible under such a ballot? (Again assume there are no ties.) We can't use permutations directly here, since the order in which the three students are chosen is not relevant. So let us revisit the process of choosing three students, in order, from among the twenty club members. c R. P.

21 We can consider the process of choosing 3 students, in order, from among 20 students as a 2-step process: rst choose 3 students from among the 20without regard to orderthen arrange the 3 chosen students in order. We know that there are P(20, 3) = = 6, 840 ways of choosing the 3 Triumvirate members in order. We also know that there are P(3, 3) = 6 ways of putting any 3 students in order. So now we use the Product Rule backwards.if we denote by C(20, 3) the number of ways of choosing 3 students from among 20 without regarding order, then because we have a two-step process for choosing 3 students from 20 in order, we must have that P(20, 3) = C(20, 3)P(3, 3) (5) 6, 840 = C(20, 3) 6. (6) c R. P.

22 But now we can solve (6), getting that Remark C(20, 3) = P(20, 3) P(3, 3) = 6, = 1, 140. (7) The reasoning we used in this example to compute the number of unordered ways to choose 3 students from among a group of 20 can be used in general to compute the number of unordered ways to choose r items from a total of n items. Denition An r-combination of elements of a set is an unordered selection of r elements from the set. Thus, an r-combination is simply an r-element subset of the set. c R. P.

23 Denition C(n, r) will denote the number of r-combinations of a set of n distinct elements. Remarks From the comment above, we have that C(n, r) is also the number of r-element subsets of a set of size n. Other notation for C(n, r) includes n C r, C n r, and Mimicking (7) above, we get that ( n r ). P(n, r) C(n, r) = P(r, r) = n! r!(n r)!. = n(n 1) (n r + 1) r! (8) c R. P.

24 Remark Note that if 1 r n, then C(n, r) = C(n, n r). (9) This is because the number of ways to pick r elements out of an n-element set is the same as the number of ways of leaving n r elements in the set! c R. P.

25 Fact The Binomial Theorem says that (y + n) m = m r=0 ( ) m y r n m r. (10) r If S = {1,..., m}, we can completely describe an r-element subset T S by asking, in succession, the questions Is x i in T? for i = 1,..., m. Then for T we should have r yesses. And ( ) m r counts the number of yesses. Notice that if we let y = 1 and n = 1 in (10), we'll get m ( ) m 2 m =, (11) r r=0 i.e., that the total number of subsets of S is the sum of the numbers of r-element subsets for each r. c R. P.

26 Playing Cards In the examples that follow, we will be considering sets of cards taken from a standard deck. (See Figure 1.) The deck consists of four suits"clubs ( ), Spades ( ), Hearts ( ), and Diamonds ( )of 13 ranks or denominations each. Figure 1: Standard Deck of Playing Cards c R. P.

27 Playing Cards A dealer distributesdeals"ve cards to each player. A player's ve cards is called a hand." The winning hand is the hand that is the rarest, i.e., occurring the least often, among the hands held by the players. So in each of the following examples we will calculate in how many ways the given hand will occur among all of the C(52, 5) = 2, 598, 960 ways of picking 5 cards from a standard deck of 52 cards. c R. P.

28 Examples Example Find the number of ways a full house can occur. A full house consists of three cards of the same rank and two cards of a dierent rank. (See Figure 2.) Figure 2: Full House c R. P.

29 Examples To count the number of ways a full house can occur, we consider the construction of that hand in terms of a sequence of steps. Step 1 First pick the rank that is to be tripled. Step 2 Then pick the specic cards in that triple. Step 3 Now pick the rank that is to be paired. Step 4 Finally pick the specic cards in that pair. The requirements of the Extended Product Rule are satised, so we may use that rule to compute the number we seek: ( )( )( )( ) = = 3, c R. P.

30 Examples Example Find the number of ways a player can be dealt a hand containing two pairs. (See Figure 3.) Figure 3: Two Pairs c R. P.

31 Examples To count the number of ways a player can be dealt a hand containing two pairs, we consider the construction of that hand in terms of a sequence of steps. Step 1 First pick the two ranks that are to be paired. Step 2 Then pick the specic cards in one of the pairs. Step 3 Now pick the specic cards in the other pair. Step 4 Finally pick the fth card, whose rank must be dierent from the two paired ranks. The requirements of the Extended Product Rule are satised, so we may use that rule to compute the number we seek: ( )( )( )( ) = = 123, c R. P.

32 Examples Example Find the number of ways a ush can occur. A ush consists of having all ve cards of the same suit. (See Figure 4.) Figure 4: Flush c R. P.

33 Examples To count the number of ways a ush can occur, we consider the construction of that hand in terms of a sequence of steps. Step 1 First pick the suit that is to occur. Step 2 Then pick the specic cards in that suit. The requirements of the Extended Product Rule are satised, so we may use that rule to compute the number we seek: ( )( ) 4 13 = 4 1, 287 = 5, Remark Traditionally, the frequency of ushes does not include straight flushes, i.e., ushes whose cards have consecutive rankse.g., 2, 3, 4, 5, 6. So we must subtract 40 from 5,148 to get 5,108 non-straight ushes. c R. P.

34 Odds As mentioned above, in poker the rarest handi.e., the hand with the lowest frequency of occurrenceheld by the players wins. So a full house (3,744) beats a ush (5,108) beats two pairs (123,552). Sometimes, however, we want to know the relative rarity of a hand, not just its absolute frequency. We use odds to accomplish this. Denition The odds against an outcome occurring is the number of ways in which the outcome fails to occur divided by the number of ways in which it can occur. c R. P.

35 Odds Since there are ( 52 5 ) = 2, 598, 960 possible hands of cards, the odds for the specic hands discussed above are: 1. Full house: (2, 598, 960 3, 744)/3, We quote this as 693 to 1" or 693:1." 2. Two pairs: (2, 598, , 552)/123, , i.e., 20 to 1" or 20:1." 3. Flush: (2, 598, 960 5, 108)/5, , i.e., 508 to 1" or 508:1." c R. P.

Math236 Discrete Maths with Applications

Math236 Discrete Maths with Applications Math236 Discrete Maths with Applications P. Ittmann UKZN, Pietermaritzburg Semester 1, 2012 Ittmann (UKZN PMB) Math236 2012 1 / 43 The Multiplication Principle Theorem Let S be a set of k-tuples (s 1,

More information

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

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 Chapter 5 Chapter Summary 5.1 The Basics of Counting 5.2 The Pigeonhole Principle 5.3 Permutations and Combinations 5.5 Generalized Permutations and Combinations Section 5.1 The Product Rule The Product

More information

Math 166: Topics in Contemporary Mathematics II

Math 166: Topics in Contemporary Mathematics II Math 166: Topics in Contemporary Mathematics II Xin Ma Texas A&M University September 30, 2017 Xin Ma (TAMU) Math 166 September 30, 2017 1 / 11 Last Time Factorials For any natural number n, we define

More information

Block 1 - Sets and Basic Combinatorics. Main Topics in Block 1:

Block 1 - Sets and Basic Combinatorics. Main Topics in Block 1: Block 1 - Sets and Basic Combinatorics Main Topics in Block 1: A short revision of some set theory Sets and subsets. Venn diagrams to represent sets. Describing sets using rules of inclusion. Set operations.

More information

Combinations. April 14, 2006

Combinations. April 14, 2006 Combinations April 14, 2006 Combinations (cont'd), April 14, 2006 Inclusion-Exclusion Principle Theorem. Let P be a probability distribution on a sample space Ω, and let {A 1, A 2,..., A n } be a nite

More information

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

November 6, Chapter 8: Probability: The Mathematics of Chance Chapter 8: Probability: The Mathematics of Chance November 6, 2013 Last Time Crystallographic notation Groups Crystallographic notation The first symbol is always a p, which indicates that the pattern

More information

Chapter 2. Permutations and Combinations

Chapter 2. Permutations and Combinations 2. Permutations and Combinations Chapter 2. Permutations and Combinations In this chapter, we define sets and count the objects in them. Example Let S be the set of students in this classroom today. Find

More information

Discrete Structures Lecture Permutations and Combinations

Discrete Structures Lecture Permutations and Combinations Introduction Good morning. Many counting problems can be solved by finding the number of ways to arrange a specified number of distinct elements of a set of a particular size, where the order of these

More information

Sec 5.1 The Basics of Counting

Sec 5.1 The Basics of Counting 1 Sec 5.1 The Basics of Counting Combinatorics, the study of arrangements of objects, is an important part of discrete mathematics. In this chapter, we will learn basic techniques of counting which has

More information

Section Summary. Permutations Combinations Combinatorial Proofs

Section Summary. Permutations Combinations Combinatorial Proofs Section 6.3 Section Summary Permutations Combinations Combinatorial Proofs Permutations Definition: A permutation of a set of distinct objects is an ordered arrangement of these objects. An ordered arrangement

More information

Finite Math - Fall 2016

Finite Math - Fall 2016 Finite Math - Fall 206 Lecture Notes - /28/206 Section 7.4 - Permutations and Combinations There are often situations in which we have to multiply many consecutive numbers together, for example, in examples

More information

With Question/Answer Animations. Chapter 6

With Question/Answer Animations. Chapter 6 With Question/Answer Animations Chapter 6 Chapter Summary The Basics of Counting The Pigeonhole Principle Permutations and Combinations Binomial Coefficients and Identities Generalized Permutations and

More information

Introductory Probability

Introductory Probability Introductory Probability Combinations Nicholas Nguyen nicholas.nguyen@uky.edu Department of Mathematics UK Agenda Assigning Objects to Identical Positions Denitions Committee Card Hands Coin Toss Counts

More information

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

CSE 312: Foundations of Computing II Quiz Section #2: Inclusion-Exclusion, Pigeonhole, Introduction to Probability (solutions) CSE 31: Foundations of Computing II Quiz Section #: Inclusion-Exclusion, Pigeonhole, Introduction to Probability (solutions) Review: Main Theorems and Concepts Binomial Theorem: x, y R, n N: (x + y) n

More information

{ a, b }, { a, c }, { b, c }

{ a, b }, { a, c }, { b, c } 12 d.) 0(5.5) c.) 0(5,0) h.) 0(7,1) a.) 0(6,3) 3.) Simplify the following combinations. PROBLEMS: C(n,k)= the number of combinations of n distinct objects taken k at a time is COMBINATION RULE It can easily

More information

Counting. Chapter 6. With Question/Answer Animations

Counting. Chapter 6. With Question/Answer Animations . All rights reserved. Authorized only for instructor use in the classroom. No reproduction or further distribution permitted without the prior written consent of McGraw-Hill Education. Counting Chapter

More information

Jong C. Park Computer Science Division, KAIST

Jong C. Park Computer Science Division, KAIST Jong C. Park Computer Science Division, KAIST Today s Topics Basic Principles Permutations and Combinations Algorithms for Generating Permutations Generalized Permutations and Combinations Binomial Coefficients

More information

Reading 14 : Counting

Reading 14 : Counting CS/Math 240: Introduction to Discrete Mathematics Fall 2015 Instructors: Beck Hasti, Gautam Prakriya Reading 14 : Counting In this reading we discuss counting. Often, we are interested in the cardinality

More information

Compound Probability. Set Theory. Basic Definitions

Compound Probability. Set Theory. Basic Definitions Compound Probability Set Theory A probability measure P is a function that maps subsets of the state space Ω to numbers in the interval [0, 1]. In order to study these functions, we need to know some basic

More information

Elementary Combinatorics

Elementary Combinatorics 184 DISCRETE MATHEMATICAL STRUCTURES 7 Elementary Combinatorics 7.1 INTRODUCTION Combinatorics deals with counting and enumeration of specified objects, patterns or designs. Techniques of counting are

More information

Discrete Mathematics with Applications MATH236

Discrete Mathematics with Applications MATH236 Discrete Mathematics with Applications MATH236 Dr. Hung P. Tong-Viet School of Mathematics, Statistics and Computer Science University of KwaZulu-Natal Pietermaritzburg Campus Semester 1, 2013 Tong-Viet

More information

Counting Methods and Probability

Counting Methods and Probability CHAPTER Counting Methods and Probability Many good basketball players can make 90% of their free throws. However, the likelihood of a player making several free throws in a row will be less than 90%. You

More information

Topics to be covered

Topics to be covered Basic Counting 1 Topics to be covered Sum rule, product rule, generalized product rule Permutations, combinations Binomial coefficients, combinatorial proof Inclusion-exclusion principle Pigeon Hole Principle

More information

Probability. The MEnTe Program Math Enrichment through Technology. Title V East Los Angeles College

Probability. The MEnTe Program Math Enrichment through Technology. Title V East Los Angeles College Probability The MEnTe Program Math Enrichment through Technology Title V East Los Angeles College 2003 East Los Angeles College. All rights reserved. Topics Introduction Empirical Probability Theoretical

More information

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

CSE 312: Foundations of Computing II Quiz Section #2: Inclusion-Exclusion, Pigeonhole, Introduction to Probability CSE 312: Foundations of Computing II Quiz Section #2: Inclusion-Exclusion, Pigeonhole, Introduction to Probability Review: Main Theorems and Concepts Binomial Theorem: Principle of Inclusion-Exclusion

More information

Sec$on Summary. Permutations Combinations Combinatorial Proofs

Sec$on Summary. Permutations Combinations Combinatorial Proofs Section 6.3 Sec$on Summary Permutations Combinations Combinatorial Proofs 2 Coun$ng ordered arrangements Ex: How many ways can we select 3 students from a group of 5 students to stand in line for a picture?

More information

Fundamentals of Probability

Fundamentals of Probability Fundamentals of Probability Introduction Probability is the likelihood that an event will occur under a set of given conditions. The probability of an event occurring has a value between 0 and 1. An impossible

More information

Counting Poker Hands

Counting Poker Hands Counting Poker Hands George Ballinger In a standard deck of cards there are kinds of cards: ce (),,,,,,,,,, ack (), ueen () and ing (). Each of these kinds comes in four suits: Spade (), Heart (), Diamond

More information

6.1 Basics of counting

6.1 Basics of counting 6.1 Basics of counting CSE2023 Discrete Computational Structures Lecture 17 1 Combinatorics: they study of arrangements of objects Enumeration: the counting of objects with certain properties (an important

More information

Probability MAT230. Fall Discrete Mathematics. MAT230 (Discrete Math) Probability Fall / 37

Probability MAT230. Fall Discrete Mathematics. MAT230 (Discrete Math) Probability Fall / 37 Probability MAT230 Discrete Mathematics Fall 2018 MAT230 (Discrete Math) Probability Fall 2018 1 / 37 Outline 1 Discrete Probability 2 Sum and Product Rules for Probability 3 Expected Value MAT230 (Discrete

More information

Today s Topics. Sometimes when counting a set, we count the same item more than once

Today s Topics. Sometimes when counting a set, we count the same item more than once Today s Topics Inclusion/exclusion principle The pigeonhole principle Sometimes when counting a set, we count the same item more than once For instance, if something can be done n 1 ways or n 2 ways, but

More information

What is counting? (how many ways of doing things) how many possible ways to choose 4 people from 10?

What is counting? (how many ways of doing things) how many possible ways to choose 4 people from 10? Chapter 5. Counting 5.1 The Basic of Counting What is counting? (how many ways of doing things) combinations: how many possible ways to choose 4 people from 10? how many license plates that start with

More information

Week 1: Probability models and counting

Week 1: Probability models and counting Week 1: Probability models and counting Part 1: Probability model Probability theory is the mathematical toolbox to describe phenomena or experiments where randomness occur. To have a probability model

More information

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

The next several lectures will be concerned with probability theory. We will aim to make sense of statements such as the following: CS 70 Discrete Mathematics for CS Fall 2004 Rao Lecture 14 Introduction to Probability The next several lectures will be concerned with probability theory. We will aim to make sense of statements such

More information

Discrete Mathematics: Logic. Discrete Mathematics: Lecture 15: Counting

Discrete Mathematics: Logic. Discrete Mathematics: Lecture 15: Counting Discrete Mathematics: Logic Discrete Mathematics: Lecture 15: Counting counting combinatorics: the study of the number of ways to put things together into various combinations basic counting principles

More information

Permutations and Combinations

Permutations and Combinations Motivating question Permutations and Combinations A) Rosen, Chapter 5.3 B) C) D) Permutations A permutation of a set of distinct objects is an ordered arrangement of these objects. : (1, 3, 2, 4) is a

More information

Combinatorial Proofs

Combinatorial Proofs Combinatorial Proofs Two Counting Principles Some proofs concerning finite sets involve counting the number of elements of the sets, so we will look at the basics of counting. Addition Principle: If A

More information

9.5 Counting Subsets of a Set: Combinations. Answers for Test Yourself

9.5 Counting Subsets of a Set: Combinations. Answers for Test Yourself 9.5 Counting Subsets of a Set: Combinations 565 H 35. H 36. whose elements when added up give the same sum. (Thanks to Jonathan Goldstine for this problem. 34. Let S be a set of ten integers chosen from

More information

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

n! = n(n 1)(n 2) 3 2 1 A Counting A.1 First principles If the sample space Ω is finite and the outomes are equally likely, then the probability measure is given by P(E) = E / Ω where E denotes the number of outcomes in the event

More information

Combinatorics. Chapter Permutations. Counting Problems

Combinatorics. Chapter Permutations. Counting Problems Chapter 3 Combinatorics 3.1 Permutations Many problems in probability theory require that we count the number of ways that a particular event can occur. For this, we study the topics of permutations and

More information

Lecture 18 - Counting

Lecture 18 - Counting Lecture 18 - Counting 6.0 - April, 003 One of the most common mathematical problems in computer science is counting the number of elements in a set. This is often the core difficulty in determining a program

More information

FOURTH LECTURE : SEPTEMBER 18, 2014

FOURTH LECTURE : SEPTEMBER 18, 2014 FOURTH LECTURE : SEPTEMBER 18, 01 MIKE ZABROCKI I started off by listing the building block numbers that we have already seen and their combinatorial interpretations. S(n, k = the number of set partitions

More information

MATHEMATICS 152, FALL 2004 METHODS OF DISCRETE MATHEMATICS Outline #10 (Sets and Probability)

MATHEMATICS 152, FALL 2004 METHODS OF DISCRETE MATHEMATICS Outline #10 (Sets and Probability) MATHEMATICS 152, FALL 2004 METHODS OF DISCRETE MATHEMATICS Outline #10 (Sets and Probability) Last modified: November 10, 2004 This follows very closely Apostol, Chapter 13, the course pack. Attachments

More information

NOTES ON SEPT 13-18, 2012

NOTES ON SEPT 13-18, 2012 NOTES ON SEPT 13-18, 01 MIKE ZABROCKI Last time I gave a name to S(n, k := number of set partitions of [n] into k parts. This only makes sense for n 1 and 1 k n. For other values we need to choose a convention

More information

Mat 344F challenge set #2 Solutions

Mat 344F challenge set #2 Solutions Mat 344F challenge set #2 Solutions. Put two balls into box, one ball into box 2 and three balls into box 3. The remaining 4 balls can now be distributed in any way among the three remaining boxes. This

More information

Slide 1 Math 1520, Lecture 13

Slide 1 Math 1520, Lecture 13 Slide 1 Math 1520, Lecture 13 In chapter 7, we discuss background leading up to probability. Probability is one of the most commonly used pieces of mathematics in the world. Understanding the basic concepts

More information

Mixed Counting Problems

Mixed Counting Problems We have studied a number of counting principles and techniques since the beginning of the course and when we tackle a counting problem, we may have to use one or a combination of these principles. The

More information

Principles of Counting. Notation for counting elements of sets

Principles of Counting. Notation for counting elements of sets Principles of Counting MATH 107: Finite Mathematics University of Louisville February 26, 2014 Underlying Principles Set Counting 2 / 12 Notation for counting elements of sets We let n(a) denote the number

More information

CIS 2033 Lecture 6, Spring 2017

CIS 2033 Lecture 6, Spring 2017 CIS 2033 Lecture 6, Spring 2017 Instructor: David Dobor February 2, 2017 In this lecture, we introduce the basic principle of counting, use it to count subsets, permutations, combinations, and partitions,

More information

MA 524 Midterm Solutions October 16, 2018

MA 524 Midterm Solutions October 16, 2018 MA 524 Midterm Solutions October 16, 2018 1. (a) Let a n be the number of ordered tuples (a, b, c, d) of integers satisfying 0 a < b c < d n. Find a closed formula for a n, as well as its ordinary generating

More information

Non-overlapping permutation patterns

Non-overlapping permutation patterns PU. M. A. Vol. 22 (2011), No.2, pp. 99 105 Non-overlapping permutation patterns Miklós Bóna Department of Mathematics University of Florida 358 Little Hall, PO Box 118105 Gainesville, FL 326118105 (USA)

More information

Problem Set 2. Counting

Problem Set 2. Counting Problem Set 2. Counting 1. (Blitzstein: 1, Q3 Fred is planning to go out to dinner each night of a certain week, Monday through Friday, with each dinner being at one of his favorite ten restaurants. i

More information

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Study Guide for Test III (MATH 1630) Name MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Find the number of subsets of the set. 1) {x x is an even

More information

Chapter 1. Probability

Chapter 1. Probability Chapter 1. Probability 1.1 Basic Concepts Scientific method a. For a given problem, we define measures that explains the problem well. b. Data is collected with observation and the measures are calculated.

More information

2.5 Sample Spaces Having Equally Likely Outcomes

2.5 Sample Spaces Having Equally Likely Outcomes Sample Spaces Having Equally Likely Outcomes 3 Sample Spaces Having Equally Likely Outcomes Recall that we had a simple example (fair dice) before on equally-likely sample spaces Since they will appear

More information

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

November 8, Chapter 8: Probability: The Mathematics of Chance Chapter 8: Probability: The Mathematics of Chance November 8, 2013 Last Time Probability Models and Rules Discrete Probability Models Equally Likely Outcomes Crystallographic notation The first symbol

More information

CSE 21 Mathematics for Algorithm and System Analysis

CSE 21 Mathematics for Algorithm and System Analysis CSE 21 Mathematics for Algorithm and System Analysis Unit 1: Basic Count and List Section 3: Set CSE21: Lecture 3 1 Reminder Piazza forum address: http://piazza.com/ucsd/summer2013/cse21/hom e Notes on

More information

CS100: DISCRETE STRUCTURES. Lecture 8 Counting - CH6

CS100: DISCRETE STRUCTURES. Lecture 8 Counting - CH6 CS100: DISCRETE STRUCTURES Lecture 8 Counting - CH6 Lecture Overview 2 6.1 The Basics of Counting: THE PRODUCT RULE THE SUM RULE THE SUBTRACTION RULE THE DIVISION RULE 6.2 The Pigeonhole Principle. 6.3

More information

Chapter 2 Basic Counting

Chapter 2 Basic Counting Chapter 2 Basic Counting 2. The Multiplication Principle Suppose that we are ordering dinner at a small restaurant. We must first order our drink, the choices being Soda, Tea, Water, Coffee, and Wine (respectively

More information

Math 1111 Math Exam Study Guide

Math 1111 Math Exam Study Guide Math 1111 Math Exam Study Guide The math exam will cover the mathematical concepts and techniques we ve explored this semester. The exam will not involve any codebreaking, although some questions on the

More information

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

MAT104: Fundamentals of Mathematics II Summary of Counting Techniques and Probability. Preliminary Concepts, Formulas, and Terminology MAT104: Fundamentals of Mathematics II Summary of Counting Techniques and Probability Preliminary Concepts, Formulas, and Terminology Meanings of Basic Arithmetic Operations in Mathematics Addition: Generally

More information

With Question/Answer Animations. Chapter 6

With Question/Answer Animations. Chapter 6 With Question/Answer Animations Chapter 6 Chapter Summary The Basics of Counting The Pigeonhole Principle Permutations and Combinations Binomial Coefficients and Identities Generalized Permutations and

More information

DISCRETE STRUCTURES COUNTING

DISCRETE STRUCTURES COUNTING DISCRETE STRUCTURES COUNTING LECTURE2 The Pigeonhole Principle The generalized pigeonhole principle: If N objects are placed into k boxes, then there is at least one box containing at least N/k of the

More information

The Product Rule can be viewed as counting the number of elements in the Cartesian product of the finite sets

The Product Rule can be viewed as counting the number of elements in the Cartesian product of the finite sets Chapter 6 - Counting 6.1 - The Basics of Counting Theorem 1 (The Product Rule). If every task in a set of k tasks must be done, where the first task can be done in n 1 ways, the second in n 2 ways, and

More information

Section : Combinations and Permutations

Section : Combinations and Permutations Section 11.1-11.2: Combinations and Permutations Diana Pell A construction crew has three members. A team of two must be chosen for a particular job. In how many ways can the team be chosen? How many words

More information

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

Permutations: The number of arrangements of n objects taken r at a time is. P (n, r) = n (n 1) (n r + 1) = Section 6.6: Mixed Counting Problems We have studied a number of counting principles and techniques since the beginning of the course and when we tackle a counting problem, we may have to use one or a

More information

Introductory Probability

Introductory Probability Introductory Probability Conditional Probability: Independent Events and Intersections Dr. Nguyen nicholas.nguyen@uky.edu Department of Mathematics UK February 15, 2019 Agenda Independent Events and Intersections

More information

Permutations and Combinations

Permutations and Combinations Permutations and Combinations Introduction Permutations and combinations refer to number of ways of selecting a number of distinct objects from a set of distinct objects. Permutations are ordered selections;

More information

Discrete mathematics

Discrete mathematics Discrete mathematics Petr Kovář petr.kovar@vsb.cz VŠB Technical University of Ostrava DiM 470-2301/02, Winter term 2018/2019 About this file This file is meant to be a guideline for the lecturer. Many

More information

Permutations. Used when "ORDER MATTERS"

Permutations. Used when ORDER MATTERS Date: Permutations Used when "ORDER MATTERS" Objective: Evaluate expressions involving factorials. (AN6) Determine the number of possible arrangements (permutations) of a list of items. (AN8) 1) Mrs. Hendrix,

More information

Probability and Counting Techniques

Probability and Counting Techniques Probability and Counting Techniques Diana Pell (Multiplication Principle) Suppose that a task consists of t choices performed consecutively. Suppose that choice 1 can be performed in m 1 ways; for each

More information

Honors Precalculus Chapter 9 Summary Basic Combinatorics

Honors Precalculus Chapter 9 Summary Basic Combinatorics Honors Precalculus Chapter 9 Summary Basic Combinatorics A. Factorial: n! means 0! = Why? B. Counting principle: 1. How many different ways can a license plate be formed a) if 7 letters are used and each

More information

Elementary Combinatorics CE 311S

Elementary Combinatorics CE 311S CE 311S INTRODUCTION How can we actually calculate probabilities? Let s assume that there all of the outcomes in the sample space S are equally likely. If A is the number of outcomes included in the event

More information

Combinatorics and Intuitive Probability

Combinatorics and Intuitive Probability Chapter Combinatorics and Intuitive Probability The simplest probabilistic scenario is perhaps one where the set of possible outcomes is finite and these outcomes are all equally likely. A subset of the

More information

The topic for the third and final major portion of the course is Probability. We will aim to make sense of statements such as the following:

The topic for the third and final major portion of the course is Probability. We will aim to make sense of statements such as the following: CS 70 Discrete Mathematics for CS Spring 2006 Vazirani Lecture 17 Introduction to Probability The topic for the third and final major portion of the course is Probability. We will aim to make sense of

More information

More Probability: Poker Hands and some issues in Counting

More Probability: Poker Hands and some issues in Counting More Probability: Poker Hands and some issues in Counting Data From Thursday Everybody flipped a pair of coins and recorded how many times they got two heads, two tails, or one of each. We saw that the

More information

Theory of Probability - Brett Bernstein

Theory of Probability - Brett Bernstein Theory of Probability - Brett Bernstein Lecture 3 Finishing Basic Probability Review Exercises 1. Model flipping two fair coins using a sample space and a probability measure. Compute the probability of

More information

Course Learning Outcomes for Unit V

Course Learning Outcomes for Unit V UNIT V STUDY GUIDE Counting Reading Assignment See information below. Key Terms 1. Combination 2. Fundamental counting principle 3. Listing 4. Permutation 5. Tree diagrams Course Learning Outcomes for

More information

CSE 312: Foundations of Computing II Quiz Section #1: Counting (solutions)

CSE 312: Foundations of Computing II Quiz Section #1: Counting (solutions) CSE 31: Foundations of Computing II Quiz Section #1: Counting (solutions Review: Main Theorems and Concepts 1. Product Rule: Suppose there are m 1 possible outcomes for event A 1, then m possible outcomes

More information

Counting and Probability Math 2320

Counting and Probability Math 2320 Counting and Probability Math 2320 For a finite set A, the number of elements of A is denoted by A. We have two important rules for counting. 1. Union rule: Let A and B be two finite sets. Then A B = A

More information

MATH 215 DISCRETE MATHEMATICS INSTRUCTOR: P. WENG

MATH 215 DISCRETE MATHEMATICS INSTRUCTOR: P. WENG MATH DISCRETE MATHEMATICS INSTRUCTOR: P. WENG Counting and Probability Suggested Problems Basic Counting Skills, Inclusion-Exclusion, and Complement. (a An office building contains 7 floors and has 7 offices

More information

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

6/24/14. The Poker Manipulation. The Counting Principle. MAFS.912.S-IC.1: Understand and evaluate random processes underlying statistical experiments The Poker Manipulation Unit 5 Probability 6/24/14 Algebra 1 Ins1tute 1 6/24/14 Algebra 1 Ins1tute 2 MAFS. 7.SP.3: Investigate chance processes and develop, use, and evaluate probability models MAFS. 7.SP.3:

More information

POKER (AN INTRODUCTION TO COUNTING)

POKER (AN INTRODUCTION TO COUNTING) POKER (AN INTRODUCTION TO COUNTING) LAMC INTERMEDIATE GROUP - 10/27/13 If you want to be a succesful poker player the first thing you need to do is learn combinatorics! Today we are going to count poker

More information

CISC-102 Fall 2017 Week 8

CISC-102 Fall 2017 Week 8 Week 8 Page! of! 34 Playing cards. CISC-02 Fall 207 Week 8 Some of the following examples make use of the standard 52 deck of playing cards as shown below. There are 4 suits (clubs, spades, hearts, diamonds)

More information

W = {Carrie (U)nderwood, Kelly (C)larkson, Chris (D)aughtry, Fantasia (B)arrino, and Clay (A)iken}

W = {Carrie (U)nderwood, Kelly (C)larkson, Chris (D)aughtry, Fantasia (B)arrino, and Clay (A)iken} UNIT V STUDY GUIDE Counting Course Learning Outcomes for Unit V Upon completion of this unit, students should be able to: 1. Apply mathematical principles used in real-world situations. 1.1 Draw tree diagrams

More information

COUNTING AND PROBABILITY

COUNTING AND PROBABILITY CHAPTER 9 COUNTING AND PROBABILITY Copyright Cengage Learning. All rights reserved. SECTION 9.2 Possibility Trees and the Multiplication Rule Copyright Cengage Learning. All rights reserved. Possibility

More information

8.2 Union, Intersection, and Complement of Events; Odds

8.2 Union, Intersection, and Complement of Events; Odds 8.2 Union, Intersection, and Complement of Events; Odds Since we defined an event as a subset of a sample space it is natural to consider set operations like union, intersection or complement in the context

More information

1. An office building contains 27 floors and has 37 offices on each floor. How many offices are in the building?

1. An office building contains 27 floors and has 37 offices on each floor. How many offices are in the building? 1. An office building contains 27 floors and has 37 offices on each floor. How many offices are in the building? 2. A particular brand of shirt comes in 12 colors, has a male version and a female version,

More information

Counting integral solutions

Counting integral solutions Thought exercise 2.2 20 Counting integral solutions Question: How many non-negative integer solutions are there of x 1 +x 2 +x 3 +x 4 = 10? Thought exercise 2.2 20 Counting integral solutions Question:

More information

Unit Nine Precalculus Practice Test Probability & Statistics. Name: Period: Date: NON-CALCULATOR SECTION

Unit Nine Precalculus Practice Test Probability & Statistics. Name: Period: Date: NON-CALCULATOR SECTION Name: Period: Date: NON-CALCULATOR SECTION Vocabulary: Define each word and give an example. 1. discrete mathematics 2. dependent outcomes 3. series Short Answer: 4. Describe when to use a combination.

More information

Math 4610, Problems to be Worked in Class

Math 4610, Problems to be Worked in Class Math 4610, Problems to be Worked in Class Bring this handout to class always! You will need it. If you wish to use an expanded version of this handout with space to write solutions, you can download one

More information

Math 1111 Math Exam Study Guide

Math 1111 Math Exam Study Guide Math 1111 Math Exam Study Guide The math exam will cover the mathematical concepts and techniques we ve explored this semester. The exam will not involve any codebreaking, although some questions on the

More information

CSE 312: Foundations of Computing II Quiz Section #2: Combinations, Counting Tricks (solutions)

CSE 312: Foundations of Computing II Quiz Section #2: Combinations, Counting Tricks (solutions) CSE 312: Foundations of Computing II Quiz Section #2: Combinations, Counting Tricks (solutions Review: Main Theorems and Concepts Combinations (number of ways to choose k objects out of n distinct objects,

More information

Lecture 1. Permutations and combinations, Pascal s triangle, learning to count

Lecture 1. Permutations and combinations, Pascal s triangle, learning to count 18.440: Lecture 1 Permutations and combinations, Pascal s triangle, learning to count Scott Sheffield MIT 1 Outline Remark, just for fun Permutations Counting tricks Binomial coefficients Problems 2 Outline

More information

19.2 Permutations and Probability Combinations and Probability.

19.2 Permutations and Probability Combinations and Probability. 19.2 Permutations and Probability. 19.3 Combinations and Probability. Use permutations and combinations to compute probabilities of compound events and solve problems. When are permutations useful in calculating

More information

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 11

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 11 EECS 70 Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 11 Counting As we saw in our discussion for uniform discrete probability, being able to count the number of elements of

More information

The Pigeonhole Principle

The Pigeonhole Principle The Pigeonhole Principle Some Questions Does there have to be two trees on Earth with the same number of leaves? How large of a set of distinct integers between 1 and 200 is needed to assure that two numbers

More information

1. The chance of getting a flush in a 5-card poker hand is about 2 in 1000.

1. The chance of getting a flush in a 5-card poker hand is about 2 in 1000. CS 70 Discrete Mathematics for CS Spring 2008 David Wagner Note 15 Introduction to Discrete Probability Probability theory has its origins in gambling analyzing card games, dice, roulette wheels. Today

More information

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

The study of probability is concerned with the likelihood of events occurring. Many situations can be analyzed using a simplified model of probability The study of probability is concerned with the likelihood of events occurring Like combinatorics, the origins of probability theory can be traced back to the study of gambling games Still a popular branch

More information

Math 1116 Probability Lecture Monday Wednesday 10:10 11:30

Math 1116 Probability Lecture Monday Wednesday 10:10 11:30 Math 1116 Probability Lecture Monday Wednesday 10:10 11:30 Course Web Page http://www.math.ohio state.edu/~maharry/ Chapter 15 Chances, Probabilities and Odds Objectives To describe an appropriate sample

More information