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


 Sheena Gilmore
 1 years ago
 Views:
Transcription
1 CSE 31: Foundations of Computing II Quiz Section #: InclusionExclusion, Pigeonhole, Introduction to Probability (solutions) Review: Main Theorems and Concepts Binomial Theorem: x, y R, n N: (x + y) n = n k=0 ( n x k y n k Principle of InclusionExclusion (PIE): events: A B = A + B A B 3 events: A B C = A + B + C A B A C B C + A B C In general: +singles  doubles + triples  quads +... Pigeonhole Principle: If there are n pigeons with k holes and n > k, then at least one hole contains at least (or to be precise, n ) pigeons. k Complementary Counting (Complementing): If asked to find the number of ways to do X, you can: find the total number of ways and then subtract the number of ways to not do X. Sample Space: The set of all possible outcomes of an experiment, denoted Ω or S Event: Some subset of the sample space, usually a capital letter such as E Ω Union: The union of two events E and F is denoted E F Intersection: The intersection of two events E and F is denoted E F or EF Mutually Exclusive: Events E and F are mutually exclusive iff E F = Complement: The complement of an event E is denoted E C or E or E, and is equal to Ω \ E DeMorgan s Laws: (E F) C = E C F C and (E F) C = E C F C Probability of an event E: denoted P(E) or Pr(E) or P(E) Partition: Nonempty events E 1,..., E n partition the sample space Ω iff E 1,..., E n are exhaustive: E 1 E E n = n i=1 E i = Ω, and E 1,..., E n are pairwise mutually exclusive: i j, E i E j = Note that for any event A (with A, A Ω): A and A C partition Ω Axioms of Probability and their Consequences 1. (Nonnegativity) For any event E, P(E) 0. (Normalization) P(Ω) = 1 3. (Additivity) If E and F are mutually exclusive, then P(E F) = P(E) + P(F) Corollaries of these axioms: 1
2 P(E) + P(E C ) = 1 If E F, P(E) P(F) P(E F) = P(E) + P(F) P(E F) Equally Likely Outcomes: If every outcome in a finite sample space Ω is equally likely, and E is an event, then P(E) = E Ω. Make sure to be consistent when counting E and Ω. Either order matters in both, or order doesn t matter in both. Conditional Probability: P(A B) = P(A B) P(B) Exercises 1. Give a combinatorial proof that n k=0 ( n = n. Do not use the binomial theorem. (Hint: you can count the number of subsets of [n] = {1,,..., n}). Note: A combinatorial proof is one in which you explain how to count something in two different ways then those formulae must be equivalent if they both indeed count the same thing. Fix a subset of [n] of size k. There are ( n such subsets because we choose any k elements out of the n, with order not mattering since these are sets. Subsets can be of size k = 0, 1,..., n. So the total number of subsets of [n] is n k=0 ( n. On the other hand, each element of [n] is either in a subset or not. So there are possibilities for the first element (in or out), for the second, etc. By the product rule, then, there are n subsets of [n]. Therefore, n k=0 ( n = n. Note that this agrees with the binomial theorem using x = y = 1.. How many ways are there to choose three initials (upper case letters) such that two are the same or all three are the same? Complementary counting: Count the total 6 3 and subtract the number with all distinct initials 6 5 to get Suppose there are N items in a bag, with K of them marked as successes in total (and the rest are marked as failures). We draw n of them, without replacement. Each item is equally likely to be drawn. Let X be the number of successes we draw (out of n). What is P(X =, that is, the probability we draw exactly k successes? P(X = = K N K k n k N n
3 We choose k out of the K successes, and n k out of the N K failures. The denominator is the total number of ways to choose n objects out of N.. Suppose we have 1 chairs (in a row) with 9 TA s, and Professors Ruzzo, Karlin, and Tompa to be seated. Suppose all seatings are equally likely. What is the probability that every professor has a TA to his/her immediate left and right? Imagine we permute all 9 TA s first there are 9! ways to do this. Then, there are 8 spots between them, in which we pick 3 for the Professors to sit order matters since each Professor is distinct. So the total ways is P(8, 3) 9!. The total number of ways to seat all 1 of us is simply 1!. The probability is then P(8, 3) 9! 1! 5. Suppose Joe is a klegged robot, who wears a sock and a shoe on each leg. Suppose he puts on k socks and k shoes in some order, each equally likely. Each action is specified by saying whether he puts on a sock or a shoe, and saying which leg he puts it on. In how many ways can he put on his socks and shoes in a valid order? We say an ordering is valid if, for every leg, the sock gets put on before the shoe. Assume all socks are indistinguishable from each other, and all shoes are indistinguishable from each other. First, note there are k objects k shoes and k socks. Suppose we describe a sequence of actions, S ock 1, S hoe 1, S ock, S hoe,..., S ock k, S hoe k. This particular example means we first put a sock on leg 1, then a shoe on leg 1, then a sock on leg, etc. There are (! ways to order these actions. However, for each leg, there is only one valid ordering: the sock must come before the shoe. So we divide by k and the total number of ways is (! k. valid orderings Alternatively, P(valid ordering) =, so valid orderings = P(valid ordering) orderings orderings. We can compute P(valid ordering) = (1/) k. Notice for any sequence of actions with each equally likely, the probability that the sock came before the shoe on a particular leg is 1, so the probability this happened for each leg is (1/) k. Then orderings = (! because there are k actions that we can permute, all distinct. Multiplication gives the same answer as above. 6. Find the number of ways to rearrange the word INGREDIENT, such that no two identical letters are adjacent to each other. For example, INGREEDINT is invalid because the two E s are adjacent. Repeat the question for the letters AAAAABBB. We use inclusionexclusion. Let Ω be the set of all anagrams (permutations) of INGREDIENT, and A I be the set of all anagrams with two consecutive I s. Define A E and A N similarly. A I A E A N clearly are the set of anagrams we don t want. So we use complementing to count the size of Ω\(A I 3
4 A E A N ). By inclusion exclusion, A I A E A N =singlesdoubles+triples, and by complementing, Ω \ (A I A E A N ) = Ω A I A E A N. First, Ω = 10! because there are of each of I,E,N s (multinomial coefficient). Clearly, the size!!! of A I is the same as A E and A N. So A I = 9! because we treat the two adjacent I s as one entity. We!! also need A I A E = 8! because we treat the two adjacent I s as one entity and the two adjacent E s! as one entity (same for all doubles). Finally, A I A E A N = 7! since we treat each pair of adjacent I s, E s, and N s as one entity. Putting this together gives 10!!!! ( 3 1 9!!! 3 8!! + ) 3 7! 3 For the second question, note that no A s and no B s can be adjacent. So let us put the B s down first: B B B By the pigeonhole principle, two A s must go in the same slot, but then they would be adjacent, so there are no ways. 7. Given 3 different spades and 3 different hearts, shuffle them. Compute P(E), where E is the event that the suits of the shuffled cards are in alternating order. What is your sample space? The sample space is the set of all possible orderings of the 6 cards. P(E) = ! = Suppose you pick two cards from a wellshuffled Schnapsen deck. What is the probability that they are both queens? = Alternatively, 0 Notice that, in the first solution, we are consistent in numerator and denominator that order matters. In the second solution, we are consistent in numerator and denominator that order does not matter. 9. At a card party, someone brings out a deck of bridge cards ( suits with 13 cards in each). N people each pick cards from the deck and hold onto them. What is the minimum value of N that guarantees at least people have the same combination of suits?
5 ( N = 11 : There are ) combinations of different suits, plus possibilities of having cards of the same suit. With N = 11 you can apply the pigeonhole principle. 10. Suppose you deal 13 cards from a wellshuffled bridge deck ( suits with 13 cards in each). What is the probability that the distribution of suits is,, 3,? (That is, you have cards of one suit, cards of another suit, 3 cards of another suit, and cards of the last suit.) ( 13 ) ( ! ) 13! The factor of! in the numerator takes care of the number of ways to assign suits to the number of cards, and the factor of! in the denominator takes care of the fact that two suits have the same number () of cards and so are overcounted. 11. Novice poker players are often confused about which player wins if one holds a flush and one holds a straight. For draw poker (see quiz section #1 worksheet, exercise #5): (a) Compute the probability of being dealt a flush (b) Compute the probability of being dealt a straight (c) Which of these hands should win, given your answers to (a) and (b)? A flush should beat a straight, since it is rarer. 1. This is another poker exercise. Find the minimum number of cards to be dealt to you from a standard 5card deck to guarantee that you have some 5 cards among them that form... (a) one pair? (This occurs when the cards have ranks a, a, b, c, d, where a, b, c, and d are all distinct. The suits do not matter.) 1 5
6 (b) two pairs? (This occurs when the cards have ranks a, a, b, b, c, where a, b, and c are all distinct. The suits do not matter.) 17 (c) a full house? (This occurs when the cards have ranks a, a, a, b, b, where a and b are distinct. The suits do not matter.) 7 (d) a straight? (A hand is said to form a straight if the ranks of all 5 cards form an incrementing sequence. The suits do not matter. The lowest straight is A,, 3,, 5 and the highest straight is 10, J, Q, K, A.) 5 (e) a flush? (A hand is said to form a flush if all 5 cards are from the same suit.) 17 (f) a straight flush (5 cards of the same suit that form a straight)? In Schnapsen, suppose that J is the faceup trump and you are dealt 5 nontrump cards. Let E be the event that the top cards in the stock are all trumps. Let the sample space be all possible orderings of all the cards in the stock. Compute P(E). (Notice that your solution suggests a different and simpler sample space.) P(E) = !/5! 1!/5! = The final answer suggests the simpler sample space of all possible orderings of just the top cards in the stock. 1. Suppose you are taking a multiplechoice test that has c answer choices for each question. In answering a question on this test, the probability that you know the correct answer is p. If you don t know the answer, you choose one at random, with each choice equally probable. What is the probability that you knew the correct answer to a question, given that you answered it correctly? p p + (1 p) 1 c 15. An urn contains 3 black balls and white balls. 6
7 (a) Suppose 3 balls are drawn from the urn without replacement. What is the probability that all 3 are white? Try computing this in the sample space where the order of the 3 draws does not matter, and then in the sample space where the order does matter. When order does not matter: ( 3) = 3! = When order does matter:!/( 3)! 7!/(7 3)! = = (b) Suppose 3 balls are drawn from the urn with replacement. What is the probability that all 3 are white? Describe the sample space precisely. The sample space consists of all ways of drawing 3 balls with replacement, where the order of the 3 draws matters. The probability is = At a dinner party, the n people present are to be seated uniformly spaced around a circular table. Suppose there is a nametag at each place at the table and suppose that nobody sits down at the correct place. Show that it is possible to rotate the table so that at least two people are sitting in the correct place. For each of the n people, consider the offset (in a clockwise direction) of that person from their nametag. Since no one is sitting at the correct place in the table s current position, the offsets are each in the set {1,,..., n 1}. By the pigeonhole principle, two people must have the same offset. Rotate the table by that offset. 17. (a) Two parents only have 3 bedrooms for their 13 children. If each child is assigned to a bedroom, one of the bedrooms must have at least c children. What is the maximum value of c that makes this statement true? Prove it. c = 5. Prove that c > by contradiction. (b) (Strong Pigeonhole Principle) More generally, what can you say about n children in k bedrooms? Find a general formula for the maximum value of c that guarantees one of the bedrooms must have at least c children. c = n/k. Note that the ordinary Pigeonhole Principle is the special case when k = n 1. 7
8 18. Twenty politicians are having a tea party, 6 Democrats and 1 Republicans. (a) If they only give tea to 10 of the 0 people, what is the probability that they only give tea to Republicans? (b) If they only give tea to 10 of the 0 people, what is the probability that they give tea to 9 Republicans and 1 Democrat? ( ) A couple has children. What is the probability that both are girls, given that the older one is a girl? 1/, because the genders of the two children are independent. 0. What is the probability that at least one of a pair of fair dice comes up 5, given that the sum of the dice is 8? Let D 1 be the outcome of the first die roll and D be the outcome of the second die roll. P(D 1 = 5 D = 5 D 1 + D = 8) = P(D 1 + D = 8 (D 1 = 5 D = 5)) P(D 1 + D = 8) = P((D 1 = 5 D = 3) (D 1 = 3 D = 5) P(D 1 + D = 8) = 1/36 + 1/36 5/36 = 5 Alternatively, you can restrict the sample space to the 5 equally likely outcomes in which D 1 + D = 8 (that is, (D 1, D ) {(, 6), (3, 5), (, ), (5, 3), (6, )}) and observe that of them include a A plane has 100 seats and 100 passengers. The first person to get on the plane lost his ticket and doesn t know his assigned seat, so he picks a random seat to sit in, with each seat equally probable. Every remaining person knows their seat, so if it is available they sit in it, and if it is unavailable they 8
9 pick a random remaining seat, with each unoccupied seat equally probable. What is the probability the last person to get on gets to sit in his own seat? We will prove that only the first and last person s seat could possibly be available by the time the last person boards. Suppose for contradiction that the ith person s seat, where i 99, was available at the end. Then that ith person s seat was available the whole time, and the ith person would have sat there after boarding, which is a contradiction. So only the first or last person s seat could possibly be left when the last person boards. One of those two seats must be occupied when the last person boards. Consider the person who took that seat, say passenger j, where 1 j 99. When j boards, both the first and last person s seats are still available. Passenger j is equally likely to take either of those two seats. Therefore, the probability that the last person s seat is available when the last person boards is 1.. (The Monty Hall puzzle) Suppose you re on a game show, and you re given the choice of three doors. Behind one door is a car, behind the others, goats. You pick a door, say number 1, and the host, who knows what s behind the doors, opens another door, say number 3, which has a goat. He says to you, Do you want to pick door number? Is it to your advantage to switch your choice of doors? It s always better to switch doors. Think of this problem with 100 doors instead of 3 doors. When you pick one of them, the game show host opens 98 other doors all revealing goats, so you re left with the door you picked and the remaining door. What would you pick in this scenario? You had probability 1/100 of being right on your first pick, and probability 99/100 that the car was behind some other door. Now that the 98 doors have been revealed, the probability is 99/100 that the car is behind the remaining closed door that you didn t pick. 3. (Challenge problem) n people at a reception give their hats to a hatcheck person. When they leave, the hatcheck person gives each of them a hat chosen at random. What is the probability that no one gets their own hat back? See slides 37 in the third set of lecture slides on the Spring 015 CSE 31 web, cs.washington.edu/courses/cse31/15sp/slides/03dprob.pdf. 9
CSE 312: Foundations of Computing II Quiz Section #2: InclusionExclusion, Pigeonhole, Introduction to Probability
CSE 312: Foundations of Computing II Quiz Section #2: InclusionExclusion, Pigeonhole, Introduction to Probability Review: Main Theorems and Concepts Binomial Theorem: Principle of InclusionExclusion
More informationCSE 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 informationCSE 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 informationSection Summary. Finite Probability Probabilities of Complements and Unions of Events Probabilistic Reasoning
Section 7.1 Section Summary Finite Probability Probabilities of Complements and Unions of Events Probabilistic Reasoning Probability of an Event PierreSimon Laplace (17491827) We first study PierreSimon
More informationCSE 312: Foundations of Computing II Quiz Section #1: Counting
CSE 312: Foundations of Computing II Quiz Section #1: Counting Review: Main Theorems and Concepts 1. Product Rule: Suppose there are m 1 possible outcomes for event A 1, then m 2 possible outcomes for
More information3 The multiplication rule/miscellaneous counting problems
Practice for Exam 1 1 Axioms of probability, disjoint and independent events 1 Suppose P (A 0, P (B 05 (a If A and B are independent, what is P (A B? What is P (A B? (b If A and B are disjoint, what is
More informationContents 2.1 Basic Concepts of Probability Methods of Assigning Probabilities Principle of Counting  Permutation and Combination 39
CHAPTER 2 PROBABILITY Contents 2.1 Basic Concepts of Probability 38 2.2 Probability of an Event 39 2.3 Methods of Assigning Probabilities 39 2.4 Principle of Counting  Permutation and Combination 39 2.5
More informationChapter 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 informationChapter 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 informationThe probability setup
CHAPTER 2 The probability setup 2.1. Introduction and basic theory We will have a sample space, denoted S (sometimes Ω) that consists of all possible outcomes. For example, if we roll two dice, the sample
More informationThe probability setup
CHAPTER The probability setup.1. Introduction and basic theory We will have a sample space, denoted S sometimes Ω that consists of all possible outcomes. For example, if we roll two dice, the sample space
More informationn! = 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 informationCompound 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 informationTopics to be covered
Basic Counting 1 Topics to be covered Sum rule, product rule, generalized product rule Permutations, combinations Binomial coefficients, combinatorial proof Inclusionexclusion principle Pigeon Hole Principle
More informationChapter 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 information2. Combinatorics: the systematic study of counting. The Basic Principle of Counting (BPC)
2. Combinatorics: the systematic study of counting The Basic Principle of Counting (BPC) Suppose r experiments will be performed. The 1st has n 1 possible outcomes, for each of these outcomes there are
More informationElementary 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 informationToday s Topics. Next week: Conditional Probability
Today s Topics 2 Last time: Combinations Permutations Group Assignment TODAY: Probability! Sample Spaces and Event Spaces Axioms of Probability Lots of Examples Next week: Conditional Probability Sets
More informationCS 237 Fall 2018, Homework SOLUTION
0//08 hw03.solution.lenka CS 37 Fall 08, Homework 03  SOLUTION Due date: PDF file due Thursday September 7th @ :59PM (0% off if up to 4 hours late) in GradeScope General Instructions Please complete
More information3 The multiplication rule/miscellaneous counting problems
Practice for Exam 1 1 Axioms of probability, disjoint and independent events 1. Suppose P (A) = 0.4, P (B) = 0.5. (a) If A and B are independent, what is P (A B)? What is P (A B)? (b) If A and B are disjoint,
More informationMultiple Choice Questions for Review
Review Questions Multiple Choice Questions for Review 1. Suppose there are 12 students, among whom are three students, M, B, C (a Math Major, a Biology Major, a Computer Science Major. We want to send
More informationCounting 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 information8.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 informationProblem 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 informationA Probability Work Sheet
A Probability Work Sheet October 19, 2006 Introduction: Rolling a Die Suppose Geoff is given a fair sixsided die, which he rolls. What are the chances he rolls a six? In order to solve this problem, we
More informationCombinatorics: The Fine Art of Counting
Combinatorics: The Fine Art of Counting Week 6 Lecture Notes Discrete Probability Note Binomial coefficients are written horizontally. The symbol ~ is used to mean approximately equal. Introduction and
More information4.1 Sample Spaces and Events
4.1 Sample Spaces and Events An experiment is an activity that has observable results. Examples: Tossing a coin, rolling dice, picking marbles out of a jar, etc. The result of an experiment is called an
More informationCS 361: Probability & Statistics
February 7, 2018 CS 361: Probability & Statistics Independence & conditional probability Recall the definition for independence So we can suppose events are independent and compute probabilities Or we
More information3. Discrete Probability. CSE 312 Spring 2015 W.L. Ruzzo
3. Discrete Probability CSE 312 Spring 2015 W.L. Ruzzo 2 Probability theory: an aberration of the intellect and ignorance coined into science John Stuart Mill 3 sample spaces Sample space: S is a set of
More informationJunior Circle Meeting 5 Probability. May 2, ii. In an actual experiment, can one get a different number of heads when flipping a coin 100 times?
Junior Circle Meeting 5 Probability May 2, 2010 1. We have a standard coin with one side that we call heads (H) and one side that we call tails (T). a. Let s say that we flip this coin 100 times. i. How
More informationWeek 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 information2.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 equallylikely sample spaces Since they will appear
More informationTheory 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 informationThe 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 informationMC215: MATHEMATICAL REASONING AND DISCRETE STRUCTURES
MC215: MATHEMATICAL REASONING AND DISCRETE STRUCTURES Thursday, 4/17/14 The Addition Principle The InclusionExclusion Principle The Pigeonhole Principle Reading: [J] 6.1, 6.8 [H] 3.5, 12.3 Exercises:
More informationCIS 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 informationThe 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.)
The Teachers Circle Mar. 2, 22 HOW TO GAMBLE IF YOU MUST (I ll bet you $ that if you give me $, I ll give you $2.) Instructor: Paul Zeitz (zeitzp@usfca.edu) Basic Laws and Definitions of Probability If
More informationIntermediate Math Circles November 1, 2017 Probability I
Intermediate Math Circles November 1, 2017 Probability I Probability is the study of uncertain events or outcomes. Games of chance that involve rolling dice or dealing cards are one obvious area of application.
More informationSuch a description is the basis for a probability model. Here is the basic vocabulary we use.
5.2.1 Probability Models When we toss a coin, we can t know the outcome in advance. What do we know? We are willing to say that the outcome will be either heads or tails. We believe that each of these
More informationSection Introduction to Sets
Section 1.1  Introduction to Sets Definition: A set is a welldefined collection of objects usually denoted by uppercase letters. Definition: The elements, or members, of a set are denoted by lowercase
More informationSample Spaces, Events, Probability
Sample Spaces, Events, Probability CS 3130/ECE 3530: Probability and Statistics for Engineers August 28, 2014 Sets A set is a collection of unique objects. Sets A set is a collection of unique objects.
More informationProbability. Dr. Zhang Fordham Univ.
Probability! Dr. Zhang Fordham Univ. 1 Probability: outline Introduction! Experiment, event, sample space! Probability of events! Calculate Probability! Through counting! Sum rule and general sum rule!
More informationCOUNTING AND PROBABILITY
CHAPTER 9 COUNTING AND PROBABILITY It s as easy as 1 2 3. That s the saying. And in certain ways, counting is easy. But other aspects of counting aren t so simple. Have you ever agreed to meet a friend
More informationBlock 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 informationMAT104: 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 informationNovember 11, Chapter 8: Probability: The Mathematics of Chance
Chapter 8: Probability: The Mathematics of Chance November 11, 2013 Last Time Probability Models and Rules Discrete Probability Models Equally Likely Outcomes Probability Rules Probability Rules Rule 1.
More informationTHE PIGEONHOLE PRINCIPLE. MARK FLANAGAN School of Electrical and Electronic Engineering University College Dublin
THE PIGEONHOLE PRINCIPLE MARK FLANAGAN School of Electrical and Electronic Engineering University College Dublin The Pigeonhole Principle: If n + 1 objects are placed into n boxes, then some box contains
More informationPROBABILITY. 1. Introduction. Candidates should able to:
PROBABILITY Candidates should able to: evaluate probabilities in simple cases by means of enumeration of equiprobable elementary events (e.g for the total score when two fair dice are thrown), or by calculation
More informationStatistics Intermediate Probability
Session 6 oscardavid.barrerarodriguez@sciencespo.fr April 3, 2018 and Sampling from a Population Outline 1 The Monty Hall Paradox Some Concepts: Event Algebra Axioms and Things About that are True Counting
More informationLecture 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 informationProbability 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 informationDiscrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 13
CS 70 Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 13 Introduction to Discrete Probability In the last note we considered the probabilistic experiment where we flipped a
More informationCombinatorics. PIE and Binomial Coefficients. Misha Lavrov. ARML Practice 10/20/2013
Combinatorics PIE and Binomial Coefficients Misha Lavrov ARML Practice 10/20/2013 Warmup PoShen Loh, 2013. If the letters of the word DOCUMENT are randomly rearranged, what is the probability that all
More informationDiscrete Mathematics. Spring 2017
Discrete Mathematics Spring 2017 Previous Lecture Binomial Coefficients Pascal s Triangle The Pigeonhole Principle If a flock of 20 pigeons roosts in a set of 19 pigeonholes, one of the pigeonholes must
More informationCSC/MTH 231 Discrete Structures II Spring, Homework 5
CSC/MTH 231 Discrete Structures II Spring, 2010 Homework 5 Name 1. A six sided die D (with sides numbered 1, 2, 3, 4, 5, 6) is thrown once. a. What is the probability that a 3 is thrown? b. What is the
More informationToday 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 informationThe 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 informationProbability is often written as a simplified fraction, but it can also be written as a decimal or percent.
CHAPTER 1: PROBABILITY 1. Introduction to Probability L EARNING TARGET: I CAN DETERMINE THE PROBABILITY OF AN EVENT. What s the probability of flipping heads on a coin? Theoretically, it is 1/2 1 way to
More informationWeek 3 Classical Probability, Part I
Week 3 Classical Probability, Part I Week 3 Objectives Proper understanding of common statistical practices such as confidence intervals and hypothesis testing requires some familiarity with probability
More information7.1 Experiments, Sample Spaces, and Events
7.1 Experiments, Sample Spaces, and Events An experiment is an activity that has observable results. Examples: Tossing a coin, rolling dice, picking marbles out of a jar, etc. The result of an experiment
More informationMATHEMATICS 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 informationUCSD CSE 21, Spring 2014 [Section B00] Mathematics for Algorithm and System Analysis
UCSD CSE 21, Spring 2014 [Section B00] Mathematics for Algorithm and System Analysis Lecture 7 Class URL: http://vlsicad.ucsd.edu/courses/cse21s14/ Lecture 7 Notes Goals for this week: Unit FN Functions
More informationMathematical Foundations HW 5 By 11:59pm, 12 Dec, 2015
1 Probability Axioms Let A,B,C be three arbitrary events. Find the probability of exactly one of these events occuring. Sample space S: {ABC, AB, AC, BC, A, B, C, }, and S = 8. P(A or B or C) = 3 8. note:
More informationWith 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 informationChapter 5  Elementary Probability Theory
Chapter 5  Elementary Probability Theory Historical Background Much of the early work in probability concerned games and gambling. One of the first to apply probability to matters other than gambling
More informationCounting. 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 McGrawHill Education. Counting Chapter
More informationDependence. Math Circle. October 15, 2016
Dependence Math Circle October 15, 2016 1 Warm up games 1. Flip a coin and take it if the side of coin facing the table is a head. Otherwise, you will need to pay one. Will you play the game? Why? 2. If
More informationThe 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 informationCS100: 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 informationReading 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 informationCHAPTER 7 Probability
CHAPTER 7 Probability 7.1. Sets A set is a welldefined collection of distinct objects. Welldefined means that we can determine whether an object is an element of a set or not. Distinct means that we can
More informationLISTING THE WAYS. getting a total of 7 spots? possible ways for 2 dice to fall: then you win. But if you roll. 1 q 1 w 1 e 1 r 1 t 1 y
LISTING THE WAYS A pair of dice are to be thrown getting a total of 7 spots? There are What is the chance of possible ways for 2 dice to fall: 1 q 1 w 1 e 1 r 1 t 1 y 2 q 2 w 2 e 2 r 2 t 2 y 3 q 3 w 3
More informationINDIAN STATISTICAL INSTITUTE
INDIAN STATISTICAL INSTITUTE B1/BVR Probability Home Assignment 1 200707 1. A poker hand means a set of five cards selected at random from usual deck of playing cards. (a) Find the probability that it
More informationGrade 7/8 Math Circles February 25/26, Probability
Faculty of Mathematics Waterloo, Ontario N2L 3G1 Probability Grade 7/8 Math Circles February 25/26, 2014 Probability Centre for Education in Mathematics and Computing Probability is the study of how likely
More informationCS 237: Probability in Computing
CS 237: Probability in Computing Wayne Snyder Computer Science Department Boston University Lecture 5: o Independence reviewed; Bayes' Rule o Counting principles and combinatorics; o Counting considered
More informationProbability and Statistics. Copyright Cengage Learning. All rights reserved.
Probability and Statistics Copyright Cengage Learning. All rights reserved. 14.2 Probability Copyright Cengage Learning. All rights reserved. Objectives What Is Probability? Calculating Probability by
More informationSTAT 155 Introductory Statistics. Lecture 11: Randomness and Probability Model
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL STAT 155 Introductory Statistics Lecture 11: Randomness and Probability Model 10/5/06 Lecture 11 1 The Monty Hall Problem Let s Make A Deal: a game show
More informationProblem Set 8 Solutions R Y G R R G
6.04/18.06J Mathematics for Computer Science April 5, 005 Srini Devadas and Eric Lehman Problem Set 8 Solutions Due: Monday, April 11 at 9 PM in Room 3044 Problem 1. An electronic toy displays a 4 4 grid
More informationWell, 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 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
More informationIntroduction to Counting and Probability
Randolph High School Math League 20132014 Page 1 If chance will have me king, why, chance may crown me. Shakespeare, Macbeth, Act I, Scene 3 1 Introduction Introduction to Counting and Probability Counting
More informationMULTIPLE 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 informationCounting and Probability
Counting and Probability Lecture 42 Section 9.1 Robb T. Koether HampdenSydney College Wed, Apr 9, 2014 Robb T. Koether (HampdenSydney College) Counting and Probability Wed, Apr 9, 2014 1 / 17 1 Probability
More informationPrinciple of InclusionExclusion Notes
Principle of InclusionExclusion Notes The Principle of InclusionExclusion (often abbreviated PIE is the following general formula used for finding the cardinality of a union of finite sets. Theorem 0.1.
More informationDiscrete 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 informationImportant Distributions 7/17/2006
Important Distributions 7/17/2006 Discrete Uniform Distribution All outcomes of an experiment are equally likely. If X is a random variable which represents the outcome of an experiment of this type, then
More informationSTOR 155 Introductory Statistics. Lecture 10: Randomness and Probability Model
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL STOR 155 Introductory Statistics Lecture 10: Randomness and Probability Model 10/6/09 Lecture 10 1 The Monty Hall Problem Let s Make A Deal: a game show
More informationCHAPTER 2 PROBABILITY. 2.1 Sample Space. 2.2 Events
CHAPTER 2 PROBABILITY 2.1 Sample Space A probability model consists of the sample space and the way to assign probabilities. Sample space & sample point The sample space S, is the set of all possible outcomes
More informationCounting (Enumerative Combinatorics) X. Zhang, Fordham Univ.
Counting (Enumerative Combinatorics) X. Zhang, Fordham Univ. 1 Chance of winning?! What s the chances of winning New York Megamillion Jackpot!! just pick 5 numbers from 1 to 56, plus a mega ball number
More informationProbability (Devore Chapter Two)
Probability (Devore Chapter Two) 101635101 Probability Winter 20112012 Contents 1 Axiomatic Probability 2 1.1 Outcomes and Events............................... 2 1.2 Rules of Probability................................
More informationNovember 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 informationProbability Rules. 2) The probability, P, of any event ranges from which of the following?
Name: WORKSHEET : Date: Answer the following questions. 1) Probability of event E occurring is... P(E) = Number of ways to get E/Total number of outcomes possible in S, the sample space....if. 2) The probability,
More informationCISC102 Fall 2017 Week 8
Week 8 Page! of! 34 Playing cards. CISC02 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 informationRANDOM EXPERIMENTS AND EVENTS
Random Experiments and Events 18 RANDOM EXPERIMENTS AND EVENTS In daytoday life we see that before commencement of a cricket match two captains go for a toss. Tossing of a coin is an activity and getting
More information1. The chance of getting a flush in a 5card 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 informationMath 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 informationProbability. Ms. Weinstein Probability & Statistics
Probability Ms. Weinstein Probability & Statistics Definitions Sample Space The sample space, S, of a random phenomenon is the set of all possible outcomes. Event An event is a set of outcomes of a random
More informationFundamentals 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 information4.3 Rules of Probability
4.3 Rules of Probability If a probability distribution is not uniform, to find the probability of a given event, add up the probabilities of all the individual outcomes that make up the event. Example:
More informationCombinatorics 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 informationSection 6.5 Conditional Probability
Section 6.5 Conditional Probability Example 1: An urn contains 5 green marbles and 7 black marbles. Two marbles are drawn in succession and without replacement from the urn. a) What is the probability
More information