Homework 2 Solutions



Similar documents
How To Solve The Social Studies Test

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

Basic Probability Theory II

Poker. 10,Jack,Queen,King,Ace. 10, Jack, Queen, King, Ace of the same suit Five consecutive ranks of the same suit that is not a 5,6,7,8,9

Statistics 100A Homework 2 Solutions

Fundamentals of Probability

Basic Probability. Probability: The part of Mathematics devoted to quantify uncertainty

The study of probability has increased in popularity over the years because of its wide range of practical applications.

Lesson 1. Basics of Probability. Principles of Mathematics 12: Explained! 314

Name: Date: Use the following to answer questions 2-4:

POKER LOTTO LOTTERY GAME CONDITIONS These Game Conditions apply, until amended or revised, to the POKER LOTTO lottery game.

Combinations If 5 sprinters compete in a race, how many different ways can the medals for first, second and third place, be awarded

Probabilities of Poker Hands with Variations

Math/Stat 394 Homework 2

Math 3C Homework 3 Solutions

MATHEMATICS 154, SPRING 2010 PROBABILITY THEORY Outline #3 (Combinatorics, bridge, poker)

EXAM. Exam #3. Math 1430, Spring April 21, 2001 ANSWERS

UNDERGROUND TONK LEAGUE

Probability. Sample space: all the possible outcomes of a probability experiment, i.e., the population of outcomes

Contemporary Mathematics- MAT 130. Probability. a) What is the probability of obtaining a number less than 4?

LECTURE 3. Probability Computations

STAT 319 Probability and Statistics For Engineers PROBABILITY. Engineering College, Hail University, Saudi Arabia

Math 55: Discrete Mathematics

Combinatorial Proofs

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

Some special discrete probability distributions

The Normal Approximation to Probability Histograms. Dice: Throw a single die twice. The Probability Histogram: Area = Probability. Where are we going?

Find the indicated probability. 1) If a single fair die is rolled, find the probability of a 4 given that the number rolled is odd.

Texas Hold em. From highest to lowest, the possible five card hands in poker are ranked as follows:

2urbo Blackjack Hold their face value

Homework 8 Solutions

Determine the empirical probability that a person selected at random from the 1000 surveyed uses Mastercard.

Section 5-3 Binomial Probability Distributions

OFFICIAL GAME RULES 5 Card Cash. Table of Contents Page Number

(b) You draw two balls from an urn and track the colors. When you start, it contains three blue balls and one red ball.

Combinatorics 3 poker hands and Some general probability

Probability Review Solutions

The Set Data Model CHAPTER What This Chapter Is About

1. Shuffling Machine: Cards used to play Casino War shall be dealt from an automatic card shuffling device ( shuffler ).

How To Find The Sample Space Of A Random Experiment In R (Programming)

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

Template: Family Reunion: T-Shirt numbers

3 Some Integer Functions

Exam. Name. How many distinguishable permutations of letters are possible in the word? 1) CRITICS

Section 6-5 Sample Spaces and Probability

SPANISH Player blackjack always beats a dealer blackjack and is paid 3 to 2.

Standard 12: The student will explain and evaluate the financial impact and consequences of gambling.

ECE302 Spring 2006 HW1 Solutions January 16,

Grade 6 Math Circles Mar.21st, 2012 Probability of Games

players on one side of the table and a place for the dealer on the opposite side.

SECTION 10-5 Multiplication Principle, Permutations, and Combinations

Conditionals: (Coding with Cards)

Probability definitions

Slots seven card stud...22


Curriculum Design for Mathematic Lesson Probability

Class One: Degree Sequences

Probability and Expected Value

Lecture 14. Chapter 7: Probability. Rule 1: Rule 2: Rule 3: Nancy Pfenning Stats 1000

Math 210 Lecture Notes: Ten Probability Review Problems

6.3 Conditional Probability and Independence

The cloth covering a Three Card Poker 6 Card Bonus table (the layout) shall have wagering areas for eight players.

Chapter 4 & 5 practice set. The actual exam is not multiple choice nor does it contain like questions.

Lesson 4 Annuities: The Mathematics of Regular Payments

Definition and Calculus of Probability

STAT 35A HW2 Solutions

CS 341 Software Design Homework 5 Identifying Classes, UML Diagrams Due: Oct. 22, 11:30 PM

Discrete Mathematics: Homework 7 solution. Due:

Chapter 4. Probability and Probability Distributions

8.3 Probability Applications of Counting Principles

Ecology and Simpson s Diversity Index

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

Acing Math (One Deck At A Time!): A Collection of Math Games. Table of Contents

MAS108 Probability I

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

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

Casino Control (3 Card Poker) Approval 2006 (No 1)

Hoover High School Math League. Counting and Probability

STATISTICS 230 COURSE NOTES. Chris Springer, revised by Jerry Lawless and Don McLeish

Introductory Probability. MATH 107: Finite Mathematics University of Louisville. March 5, 2014

Homework 20: Compound Probability

LESSON 7. Managing the Trump Suit. General Concepts. General Introduction. Group Activities. Sample Deals

36 Odds, Expected Value, and Conditional Probability

Probability and Counting Rules

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 13. Random Variables: Distribution and Expectation

CHAPTER 1 COUNTING. shirt slot

High School Statistics and Probability Common Core Sample Test Version 2

How to Play. Player vs. Dealer

Statistics 100A Homework 8 Solutions

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

CS 111 Classes I 1. Software Organization View to this point:

Discrete mathematics

The game also features three optional bonus bets.

Contemporary Mathematics Online Math 1030 Sample Exam I Chapters No Time Limit No Scratch Paper Calculator Allowed: Scientific

LESSON 1. Opening Leads Against Notrump Contracts. General Concepts. General Introduction. Group Activities. Sample Deals

If A is divided by B the result is 2/3. If B is divided by C the result is 4/7. What is the result if A is divided by C?

Practical Probability:

Remarks on the Concept of Probability

Transcription:

CSE 21 - Winter 2012 Homework #2 Homework 2 Solutions 2.1 In this homework, we will consider ordinary decks of playing cards which have 52 cards, with 13 of each of the four suits (Hearts, Spades, Diamonds and Clubs), with each suit having the 13 ranks (Ace, 2, 3,..., 9, 10, Jack, Queen, King). (a) How many 5-card hands are there where all the cards have the same suit? (b) How many 5-card hands are there where all the cards belong to at most two suits? (c) How many 5-card hands are there where all the cards have at most 2 different ranks? (a) You can choose 1 of the 4 suits, and then you choose 5 of the 13 cards in that suit. ( 4 1 )(13 5 ). (b) There are two cases for this question: all the cards could belong to one suit, or all the cards could belong to two suits. The number of ways that all the cards could belong to one suit is given in part (a). Otherwise, we could have a hand with 2 cards in one suit, and 3 cards in the other suit. Or, 1 card in one suit, and 4 cards in the other suit. With each of the suits, there are 4 ways to choose the first suit, and 3 ways to choose the second suit. 4 3[( 13 2 )(13 3 ) + (13 4 )(13 1 )] + (4 1 )(13 5 ). (c) Since you cannot have a hand made of 1 rank, we only need to consider the case where there are exactly 2 different ranks. There two templates: XXXXY and XXXYY. There are 13 ways to choose X, and then 12 ways to choose Y. Once these are chosen, we have to choose the suits. 13 12[( 4 3 )(4 2 ) + (4 1 )(4 4 )] 1

2.2 How many 8 digit numbers formed from the digits {0, 1,..., 9} have some digit occurring at least 3 times. Count the complement. So there are a total of 10 8 ways to form a string of length 8. Therefore, we have to subtract the ways to form a string where all the digits are distinct, and the ways to form a digit where each digit appears at most twice. The number of ways to form a digit where all the digits are distinct is: 10*9*8*7*6*5*4*3. Let D denote a distinct digit, and let S 1, S 2,... be a digit that is the same. Then the cases are: S 1 S 1 DDDDDD = 1 S 1 S 1 S 2 S 2 DDDD = 2 S 1 S 1 S 2 S 2 S 3 S 3 DD = 3 S 1 S 1 S 2 S 2 S 3 S 3 S 4 S 4 = 4 2! 6! 9 8 7 6 5 4 2! 2! 4! 8 7 6 5 2! 2! 2! 2! 7 6 2! 2! 2! 2! For example, for the S 1 S 1 S 2 S 2 DDDD case, we first choose the two ranks which will be duplicated (( 10 2 ) ways), then choose the number of ways of placing them ( 2! 2! 4! ), and finally choose the (distinct) ranks of the digits that go into the remaining 4 places (8 7 6 5 choices). The other values are computed in a similar way. Thus, the number we want is 10 8 minus the sum of all the numbers above (which may be 36, 269, 200 if I calculated correctly!) Thus, the probability that a random bill has some digit occurring at least 3 times is about 0.363 which is greater than 1 3 of the time. 2

2.3 (a) How many different 5-letter strings can be formed from distinct letters from the word ABRACADABRA. (b) How many different 5-letter strings can be formed using the letters from the word ABRACADABRA if duplicated letters are allowed but no letter can be used more times than it occurs in the word? (a) 5! The set of distinct letters: (A, B, R, C, D) (b) 1271 We consider the possible letter patterns that are possible. For example, YYVWX denotes the possibility that one letter (denoted by Y) occurs twice, and the other 3 letters each occur once. Here are the possible patterns, and their counts. We have the letter counts in ABRACADABRA as: A = 5, B = 2, R = 2, C = 1, D = 1 Pattern Count VWXYZ = 5! = 120 YYVWX = 3 4 (5!/2!) = 720 YYXXV = 3 3 (5!/(2! 2!) = 270 YYYVX = 1 6 (5!/3!) = 120 YYYXX = 1 2 (5!/(3! 2!) = 20 YYYYV = 1 4 (5!/4!) = 20 YYYYY = 1 (5!/5!) = 1 One way to think about this problem is one of putting balls in bins, where the balls are the positions and the bins are the letters. Let s take the first pattern VWXYZ, for example. We then have 5 bins (since we use all 5 of the different letters) and so the number of ways of distributing the 5 positions {1, 2, 3, 4, 5} is 5!. Now take the second pattern YYVWX. Here, we have only 4 bins, labeled Y, V, W and X. We are going to put 2 balls (i.e., positions) into 3

the Y bin, and one each into the other 3 bins. Now we have to count how many ways we can label the bins with letters. Since only 3 of the letters (A, B, R) occur twice, then there are only 3 choices for Y. Once that choice is made, then there are ( 4 3 ) = 4 choices for the other labels. (Keep in mind that the order of the labels doesn t matter). Thus, the 5! total for this pattern is 3 4 2! 1! 1! 1! = 720. The next pattern YYXXV is computed the same way. Now there are 3 bins labeled Y, X and V (and as usual, the order of the bins doesn t matter, just the labels on them). So, there are ( 3 1 ) = 3 ways to choose the labels for Y and X, and then 3 ways to choose the remaining label 5! for V. Since there are then 2! 2! 1! ways to put the balls in these 3 bins, then the total in this case is 3 3 30 = 270. Finally, let s do one more pattern, say YYYXX. Since only the letter A occurs more than 2 times, then the label for bin Y must be A. There are then 2 choices for X, namely B or R. The balls (positions) can be placed into the bins in ( 5 3 ) ways, so the total in this case is 2 2 10 = 40. Carrying similar calculations for the otter patterns and adding up the numbers, you get a grand total of 1271. 2.4 (a) How many 5-card hands (from an ordinary deck) have at least one card of each suit? (b) How many 6-card hands have at least one card of each suit? (a) ( 4 1 )(13 2 )(13 1 )(13 1 )(13 1 ); (First choose the suit that will have 2 cards (( 4 1 ) = 4 ways), then choose the 2 cards from that suit (( 13 2 ) ways), and then choose one card from each of the the remaining 3 suits.) (b) There are 2 possibilities for the suits: 3 of one suit and 1 of each of the other three, or 2 suits that each have 2, and the remaining 2 suits that just have one. For the first case, the number of choices is ( 4 1 )(13 3 )(13 1 )(13 1 )(13 1 ). 4

For the second case, the number of choices is ( 4 2 )(13 2 )(13 2 )(13 1 )(13 1 ). The answer is the total of these the numbers. 2.5 (a) In how many different ways can the letters in MISSISSIPPIPOKER be arranged (using all the letters)? (b) In how many different ways can all the letters in the word supercalifragilisticexpialidocious be arranged? (a) 16! / (4! * 4! * 3!). Count of letters. M = 1, I = 4, S= 4, P = 3, O = 1, K = 1, E = 1, R = 1 (b) 34! / (3! * 2! * 2! * 2! * 2! * 3! * 3! * 3! * 7! * 2!). Counts of all the letters. s = 3, u = 2, p = 2, e = 2, r = 2, c = 3, a = 3, l = 3, i = 7, f = 1, g = 1, t = 1, x = 1, d = 1, o = 2 2.6 Show that the number of subsets of an n-set S having an odd number of elements is exactly the same as the number of subsets of S having an even number of elements (where we assume n > 0). The easiest way to do this is to apply the binomial theorem: (x + y) n = n k=0 (n k )xk y n k. Plugging in x = 1, y = 1, this becomes: ( 1 + 1) n = 0 = n k=0 ( 1)k ( n k ), i.e., j ( n 2j ) = j ( n 2j+1 ) and we are done since the left hand sum counts the number of even-sized subsets of S while the right hand sum counts the number of odd-sized subsets of S. 5