EECS 203 Spring 2016 Lecture 15 Page 1 of 6

Similar documents
STAT 430/510 Probability Lecture 3: Space and Event; Sample Spaces with Equally Likely Outcomes

Probability and Statistics. Copyright Cengage Learning. All rights reserved.

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

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?

Chapter 8: Probability: The Mathematics of Chance

Discrete Structures for Computer Science

Math 146 Statistics for the Health Sciences Additional Exercises on Chapter 3

Grade 6 Math Circles Fall Oct 14/15 Probability

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

STOR 155 Introductory Statistics. Lecture 10: Randomness and Probability Model

STAT 155 Introductory Statistics. Lecture 11: Randomness and Probability Model

Combinatorics: The Fine Art of Counting

Probability: Terminology and Examples Spring January 1, / 22

Lesson 10: Using Simulation to Estimate a Probability

Counting and Probability Math 2320

In how many ways can the letters of SEA be arranged? In how many ways can the letters of SEE be arranged?

Probability. Dr. Zhang Fordham Univ.

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:

CHAPTER 2 PROBABILITY. 2.1 Sample Space. 2.2 Events

Name: Class: Date: Probability/Counting Multiple Choice Pre-Test

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

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

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

MATH 215 DISCRETE MATHEMATICS INSTRUCTOR: P. WENG

= = 0.1%. On the other hand, if there are three winning tickets, then the probability of winning one of these winning tickets must be 3 (1)

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

Discrete Structures Lecture Permutations and Combinations

CSC/MTH 231 Discrete Structures II Spring, Homework 5

Probability --QUESTIONS-- Principles of Math 12 - Probability Practice Exam 1

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

Class XII Chapter 13 Probability Maths. Exercise 13.1

CS 361: Probability & Statistics

If a regular six-sided die is rolled, the possible outcomes can be listed as {1, 2, 3, 4, 5, 6} there are 6 outcomes.

heads 1/2 1/6 roll a die sum on 2 dice 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 1, 2, 3, 4, 5, 6 heads tails 3/36 = 1/12 toss a coin trial: an occurrence

FALL 2012 MATH 1324 REVIEW EXAM 4

A Probability Work Sheet

Compound Probability. Set Theory. Basic Definitions

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

Section : Combinations and Permutations

RANDOM EXPERIMENTS AND EVENTS

Homework #1-19: Use the Counting Principle to answer the following questions.

4.1 Sample Spaces and Events

Chapter 1. Probability

UNIT 4 APPLICATIONS OF PROBABILITY Lesson 1: Events. Instruction. Guided Practice Example 1

Probability of Independent and Dependent Events

Chapter 2. Permutations and Combinations

NumberSense Companion Workbook Grade 4

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 13

Page 1 of 22. Website: Mobile:

3. a. P(white) =, or. b. ; the probability of choosing a white block. d. P(white) =, or. 4. a. = 1 b. 0 c. = 0

3 The multiplication rule/miscellaneous counting problems

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

Probability Exercise 2

Probability Assignment

Chapter 1. Probability

Chapter 4: Introduction to Probability

Answer each of the following problems. Make sure to show your work.

PROBABILITY. 1. Introduction. Candidates should able to:

Theory of Probability - Brett Bernstein

b. 2 ; the probability of choosing a white d. P(white) 25, or a a. Since the probability of choosing a

Diamond ( ) (Black coloured) (Black coloured) (Red coloured) ILLUSTRATIVE EXAMPLES

8.2 Union, Intersection, and Complement of Events; Odds

Exercise Class XI Chapter 16 Probability Maths

Answer each of the following problems. Make sure to show your work.

Probability (Devore Chapter Two)

4.3 Rules of Probability

Name: 1. Match the word with the definition (1 point each - no partial credit!)

CSE 312 Midterm Exam May 7, 2014

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}?

Math 1313 Section 6.2 Definition of Probability

STAT 430/510 Probability Lecture 1: Counting-1

Probability and Counting Techniques

CS 237: Probability in Computing

Probability: Part 1 1/28/16

Rosen, Discrete Mathematics and Its Applications, 6th edition Extra Examples

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

Discrete probability and the laws of chance

Probability. March 06, J. Boulton MDM 4U1. P(A) = n(a) n(s) Introductory Probability

Lecture Start

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

3 The multiplication rule/miscellaneous counting problems

Math 147 Elementary Probability/Statistics I Additional Exercises on Chapter 4: Probability

MATH CALCULUS & STATISTICS/BUSN - PRACTICE EXAM #1 - SPRING DR. DAVID BRIDGE

Section Introduction to Sets

Section The Multiplication Principle and Permutations

7.1 Chance Surprises, 7.2 Predicting the Future in an Uncertain World, 7.4 Down for the Count

Algebra I Notes Unit One: Real Number System

Probability and Randomness. Day 1

Probability Rules. 2) The probability, P, of any event ranges from which of the following?

Grade 7/8 Math Circles February 25/26, Probability

STAT 430/510 Probability

Use a tree diagram to find the number of possible outcomes. 2. How many outcomes are there altogether? 2.

TJP TOP TIPS FOR IGCSE STATS & PROBABILITY

Contents 2.1 Basic Concepts of Probability Methods of Assigning Probabilities Principle of Counting - Permutation and Combination 39

Chapter 11: Probability and Counting Techniques

CS 361: Probability & Statistics

Find the probability of an event by using the definition of probability

7.1 Experiments, Sample Spaces, and Events

CS1802 Week 9: Probability, Expectation, Entropy

Fdaytalk.com. Outcomes is probable results related to an experiment

Transcription:

EECS 203 Spring 2016 Lecture 15 Page 1 of 6 Counting We ve been working on counting for the last two lectures. We re going to continue on counting and probability for about 1.5 more lectures (including this one ) But first let s do some review questions (we probably won t do all of these in class) 1. How many ways are there to select a 1 st, 2 nd and 3 rd prize winner from 50 people? 2. How many ways are there to select 3 runners up from 60 people? 3. How many 5 card poker hands are there (recall a standard deck has 52 cards)? 4. How many ways are there to select a poker hand that has a pair of aces and no other ace or other pair? 5. What is the probability of rolling a 5 or less (total) on 2 fair six-sided dice? Generalized Permutations and Combinations (6.5) A bagel shop has 8 kinds of bagels. How many ways are there to buy a dozen bagels? This is identical to asking how many solutions are there to the equation x 1+x 2+x 3+x 4+x 5+x 6+x 7+x 8 = 12. We can think of this as: What we ve really got is 7 bars and 12 bagels. We can think of this as a bit string with 19 bits where 7 of them need to be 1s while the rest are 0s.

EECS 203 Spring 2016 Lecture 15 Page 2 of 6 The Stars n Bars Theorem The number of ways to choose k objects each of n different types (with repetition) is k n 1 k You put a star for each object and one less bar than there are types. So how many ways can you select 2 fruits from 3 different types? Now let s see what happens when we start putting restrictions on the number we can pick. Let s go back to selecting a dozen bagels out of 8 types. Say we are required to select at least one of each type. How many ways are there to do that? What is k? What is n? What if we need to select no more than 4 onion bagels and 2 poppy seed bagels? (so x 1 4 and x 2 2). Probably the easiest way is to figure out how many combinations involve x 1 > 4 and how many involve x 2 > 2 and subtract those off. Of course we d end up subtracting off some cases twice. So what s the answer? All Solutions? stars, bars. Solutions with x 1>4? stars, bars. Solutions with x 2>2? stars, bars. Solutions with x 1>4 and x 2>2? stars, bars. Final answer?

EECS 203 Spring 2016 Lecture 15 Page 3 of 6 Permutations with repetition Say a license plate can have 7 symbols, each either an (upper case) letter or a digit (0 to 9). How many license plates can there be? Now say someone named MILLER wants to have a license plate with either their name or an anagram of their name (the letters kept the same but in any order). How many of those are there? How many ways are there to rearrange the letters SUCCESS? We ve got 3 S s, 2 C s, 1 U and 1 E. The S s can be placed in C(7,3) different ways. Leaving C(4,2) ways for the Cs and C(2,1) for the U. That leaves only one choice C(1,1) for the E. You could do that in a different order, but you d end up with the same number. So how many anagrams are there of MISSISSIPPI? Bonus question How many strings of six lowercase letters from the English alphabet contain the letters a and b in consecutive positions with a preceding b, with all letters distinct?

EECS 203 Spring 2016 Lecture 15 Page 4 of 6 Discrete Probability (Chap 6) Some quick thoughts on probability: 1. Games of chance have been around for a long time. We have evidence of gambling dice, in the form of bones of animals, used by humans thousands of years ago. 2. We didn t have a real mathematics of probability until recently! It wasn t until the late 1600s that probability calculations and theory were developed in any serious way. 3. Probability is a philosophically difficult concept How can we talk about the probability of an event that happens only once? (see comic) What s the probability that this lecture will be good? 4. Humans are really bad at probability I rolled a dice 4 times in a row, I got a 6 each time, so the next roll must definitely not turn up a 6 There are studies showing that when asked to generate as random a string of 0s and 1s (without flipping coins or dice) it is generally fairly trivial to figure out which were actually generated randomly and which by a person trying to be random. Discrete Probability: Terminology Experiment: Procedure that yields an outcome o E.g., Tossing a coin three times Outcome: HHH in one trial, HTH in another trial, etc. Sample space: Set of all possible outcomes in the experiment o E.g., S = {HHH, HHT, HTH, HTT, THH, THT, TTH, TTT} Event: subset of the sample space (i.e., event is a set consisting of individual outcomes) o E.g., Event that # of heads is an even number so E = {HHT, HTH, THH, TTT} If S is a sample space of equally likely outcomes, the probability of an event E, p(e) = E / S o Counting comes into play here! o E.g., probability of an event E of having even # of heads when tossing a coin three times = 4/8 = 0.5 Terminology example and some sample questions 1. Consider the question: What is the probability that a single (fair) 6-sided will roll a prime number? What is the experiment? What is the sample space? What is the event? What is the answer to the question?

EECS 203 Spring 2016 Lecture 15 Page 5 of 6 2. Consider the question: What is the probability of 4 of a kind in a five-card poker hand? i What is the experiment? What is the sample space? What is the event? What is the answer to the question? 3. Consider the question: What is the probability of winning the lotto if there are 6 numbers drawn out of 42 numbers and you need to match them all? What is the experiment? What is the sample space? What is the event? What is the answer to the question? 4. What is the probability that a poker hand contains exactly one ace? Combinations of events and complements. Sometimes we care about more than one event or an event not happening. Probability of an event not happening? Let E be an event in a sample space S. The probability of the event E, the complementary event of E (i.e., a set of outcomes that E does not happen), is given by E S E E p( E) 1 1 p( E) S S S A sequence of 10 bits is randomly generated. What are the odds that at least one of those bits is a zero? What is the probability of having a hand that doesn t have a single ace (has either more or less than 1 ace)? Union of two events. Let and E2 be events in the sample space S. Then p E E2) p( ) p( E2) p( because E2 E2 E2. We d need to divide each term by S to get probabilities. ( 1 E2 ) Use this fact to find the probability of a a positive integer not exceeding 100 selected at random is divisible by 5 or 7.

EECS 203 Spring 2016 Lecture 15 Page 6 of 6 When life (or at least dice) isn t (aren t) fair. So far we ve assumed all events are equally likely. But what if they aren t? Traditionally this is discussed as having a coin (or die) that is unfair and the probability of each side coming up isn t the same. Let s consider a coin that has a head that is three times more likely to come up than a tail. That is, P(H)=3P(T). What is the probably of getting a head from a single coin toss? What is the probability of getting two heads when tossing two of these coins? A head and a tail? Two tails? What is the odds of getting an even number of heads with three flips of our biased coin? Even with unfair/biased coins our combination rules still hold: p( E) =1 p( E) p( E2) p( ) p( E2) p( E2) Conditional probability Sometimes we want to know what the probability is of something given some other fact. So, say for example say I want to know if my stiff neck is because I have meningitis. i Sample space: All combinations of choosing 5 cards out of 52 cards. S = C(52,5) = 2,598,960 Event E = C(13, 1) C(48, 1) = 13*48 = 624 P(E) = E / S = 13*48/ C(52,5) = 0.00024