Combinatorial Analysis

Similar documents
4/17/2012. NE ( ) # of ways an event can happen NS ( ) # of events in the sample space

MAT2377. Ali Karimnezhad. Version September 9, Ali Karimnezhad

Chapter 2 PROBABILITY SAMPLE SPACE

Probabilistic models

Solution: There are 30 choices for the first person to leave, 29 for the second, etc. Thus this exodus can occur in. = P (30, 8) ways.

3/15/2010 ENGR 200. Counting

324 Stat Lecture Notes (1) Probability

Probabilistic models

2.6 Tools for Counting sample points

UNIT Explain about the partition of a sampling space theorem?

STAT 201 Chapter 5. Probability

Probability, For the Enthusiastic Beginner (Exercises, Version 1, September 2016) David Morin,

Permutation. Permutation. Permutation. Permutation. Permutation

Example. If 4 tickets are drawn with replacement from ,

Monty Hall Puzzle. Draw a tree diagram of possible choices (a possibility tree ) One for each strategy switch or no-switch

STA 2023 EXAM-2 Practice Problems. Ven Mudunuru. From Chapters 4, 5, & Partly 6. With SOLUTIONS

CIS 2033 Lecture 5, Fall

Discrete Probability

Chapter 8 Sequences, Series, and Probability

Probability. Part 1 - Basic Counting Principles. 1. References. (1) R. Durrett, The Essentials of Probability, Duxbury.

CMPT 882 Machine Learning

STA 2023 EXAM-2 Practice Problems From Chapters 4, 5, & Partly 6. With SOLUTIONS

Lecture 4: Counting, Pigeonhole Principle, Permutations, Combinations Lecturer: Lale Özkahya

Lecture 3. Probability and elements of combinatorics

Introduction to Probability. Experiments. Sample Space. Event. Basic Requirements for Assigning Probabilities. Experiments

Combinatorics and probability

Combinations and Probabilities

Topic -2. Probability. Larson & Farber, Elementary Statistics: Picturing the World, 3e 1

Math P (A 1 ) =.5, P (A 2 ) =.6, P (A 1 A 2 ) =.9r

Senior Math Circles November 19, 2008 Probability II

Notes. Combinatorics. Combinatorics II. Notes. Notes. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Spring 2006

Lecture Notes 1 Basic Probability. Elements of Probability. Conditional probability. Sequential Calculation of Probability

STT When trying to evaluate the likelihood of random events we are using following wording.

Number Theory and Counting Method. Divisors -Least common divisor -Greatest common multiple

Set/deck of playing cards. Spades Hearts Diamonds Clubs

1 Combinatorial Analysis

CMPSCI 240: Reasoning about Uncertainty

Essential Learning Outcomes for Algebra 2

I - Probability. What is Probability? the chance of an event occuring. 1classical probability. 2empirical probability. 3subjective probability

Example. What is the sample space for flipping a fair coin? Rolling a 6-sided die? Find the event E where E = {x x has exactly one head}

Probability and Statistics Notes

1 The Basic Counting Principles

Statistical Inference

STAT200 Elementary Statistics for applications

Discrete Mathematics & Mathematical Reasoning Chapter 6: Counting

n N CHAPTER 1 Atoms Thermodynamics Molecules Statistical Thermodynamics (S.T.)

Lecture 3: Probability

STAT 430/510 Probability

STAT509: Probability


Chapter Learning Objectives. Random Experiments Dfiii Definition: Dfiii Definition:

CHAPTER 8: Polar 1. Convert to polar.

Counting. Math 301. November 24, Dr. Nahid Sultana

The probability of an event is viewed as a numerical measure of the chance that the event will occur.

STA 256: Statistics and Probability I

Independence. P(A) = P(B) = 3 6 = 1 2, and P(C) = 4 6 = 2 3.

New Coding System of Grid Squares in the Republic of Indonesia

Mutually Exclusive Events

Week 2: Probability: Counting, Sets, and Bayes

Lecture 3 : Probability II. Jonathan Marchini

COMPSCI 240: Reasoning Under Uncertainty

1 Probability Theory. 1.1 Introduction

Lecture 2 31 Jan Logistics: see piazza site for bootcamps, ps0, bashprob

Probability. Chapter 1 Probability. A Simple Example. Sample Space and Probability. Sample Space and Event. Sample Space (Two Dice) Probability

HW MATH425/525 Lecture Notes 1

Intermediate Math Circles November 8, 2017 Probability II

Discussion 01. b) What is the probability that the letter selected is a vowel?

Exam 2 Review (Sections Covered: 3.1, 3.3, , 7.1) Solutro. 1. Write a system of linear inequalities that describes the shaded region.

Probability Rules. MATH 130, Elements of Statistics I. J. Robert Buchanan. Fall Department of Mathematics

{ 0! = 1 n! = n(n 1)!, n 1. n! =

Outline Conditional Probability The Law of Total Probability and Bayes Theorem Independent Events. Week 4 Classical Probability, Part II

Chapter 5 : Probability. Exercise Sheet. SHilal. 1 P a g e

Chapter 2: Probability Part 1

1. Discrete Distributions

Lecture Lecture 5

Elementary Discrete Probability

Lecture 8: Conditional probability I: definition, independence, the tree method, sampling, chain rule for independent events

Introduction to Decision Sciences Lecture 11

11. Probability Sample Spaces and Probability

LECTURE 1. 1 Introduction. 1.1 Sample spaces and events

Section 4.2 Basic Concepts of Probability

Chapter Goals. To introduce you to data collection

ENGG 2440B Discrete Mathematics for Engineers Tutorial 8

Solution to HW 12. Since B and B 2 form a partition, we have P (A) = P (A B 1 )P (B 1 ) + P (A B 2 )P (B 2 ). Using P (A) = 21.

1 What is the area model for multiplication?

Discrete Mathematics, Spring 2004 Homework 4 Sample Solutions

Chapter. Probability

Introduction to Probability, Fall 2009

Chapter 2 Class Notes

MTH302 Long Solved Questions By

2011 Pearson Education, Inc

Permutations and Combinations

Chap 4 Probability p227 The probability of any outcome in a random phenomenon is the proportion of times the outcome would occur in a long series of

Chapter 13, Probability from Applied Finite Mathematics by Rupinder Sekhon was developed by OpenStax College, licensed by Rice University, and is

KARNATAKA SECONDARY EDUCATION EXAMINATION BOARD, MALLESWARAM, BANGALORE G È.G È.G È.. Æ fioê, d È 2018 S. S. L. C. EXAMINATION, JUNE, 2018

4.2 Probability Models

Binomial Probability. Permutations and Combinations. Review. History Note. Discuss Quizzes/Answer Questions. 9.0 Lesson Plan

Lecture 6: The Pigeonhole Principle and Probability Spaces

tossing a coin selecting a card from a deck measuring the commuting time on a particular morning

3.2 Intoduction to probability 3.3 Probability rules. Sections 3.2 and 3.3. Elementary Statistics for the Biological and Life Sciences (Stat 205)

Transcription:

Chapter 1 Combinatorial Analysis STAT 302, Department of Statistics, UBC 1

A starting example: coin tossing Consider the following random experiment: tossing a fair coin twice There are four possible outcomes, namely {HH, HT, TH, TT} What is the probability of the event that we observe the tail (T) on both tosses? Answer:... at least one head (H)? Answer:... To compute probability of events, need an effective method for counting the number of possible outcomes of a random experiment Combinatorial Analysis STAT 302, Department of Statistics, UBC 2

Basic Principle of Counting Consider two random experiments. If experiment 1 can result in only one of n 1 possible outcomes and if, for each outcome of experiment 1, there are n 2 possible outcomes of experiment 2, then there are n 1 n 2 possible outcomes for the two experiments. 13 17 23. 3 n3 2 27 3. n7 1 3 13 23. n3 2 13 23. 3 n 2 Probability Tree Diagram STAT 302, Department of Statistics, UBC 3

Generalized Principle of Counting There are a total of r experiments Experiment i has n i outcomes (i = 1,..., r) Total number of outcomes = n 1 n 2 n r Exercise 1 An experimenter wishes to investigate the effects of three variables - pressure, temperature and type of catalyst - on yield in a refining process. If the experimenter intends to use three settings for temperature, three settings for pressure, and two types of catalysts, how many experimental runs must be conducted to run all possible combinations of pressure, temperature and type of catalyst? STAT 302, Department of Statistics, UBC 4

Generalized Principle of Counting (cont d) Exercise 2 How many different seven-digit telephone numbers can be formed if the first digit cannot be zero? Exercise 3 How many 6-place license plates can be formed if the first 3 places are to be occupied by letters, the final 3 places by numbers and if (i) no repetition of letters is allowed; (ii) no repetition of numbers is allowed; (iii) no repetition of both numbers and letters is allowed. STAT 302, Department of Statistics, UBC 5

Permulations Consider a set of 3 objects: {,, } There are 6 different ordered arrangements of this set: Each arrangement is referred to as a permutation Note: the order of the objects or outcomes is important STAT 302, Department of Statistics, UBC 6

Permulations (cont d) The total number of permutations of n objects selected from n distinct objects is given by n! n! = n (n 1) 2 1 (1! = 1, 0! = 1) The total number of permutations of r objects selected from n distinct objects is given by n P r (r n) np r = n (n 1) (n r + 1) = n! (n r)! STAT 302, Department of Statistics, UBC 7

Permulations - Exercises Exercise 4 In how many ways can three executive members of a committee be assigned to three different positions: chair, treasurer, secretary? Exercise 5 In how many ways can a committee of three be selected from among ten people if each committee member takes on a different position (chair, treasurer, secretary)? STAT 302, Department of Statistics, UBC 8

Combinations Suppose we want to select different groups of r objects from a set of n distinct objects The order of objects in a group is not important here How many distinct subsets of size r can be formed from n distinct objects? Example: There are five gift cards, each having a different design. You randomly pick two from these five cards. How many possible distinct subsets of two cards are there? STAT 302, Department of Statistics, UBC 9

Solution: Denote the five designs as A, B, C, D, E The possible outcomes are {AB, AC, AD, AE, BC, BD, BE, CD, CE, DE, BA, CA, DA, EA, CB, DB, EB, DC, EC, ED} and the total number of ordered arrangements is... Here, AB and BA are two different ordered arrangements, but they form the same subset. We are interested in finding out the total number of possible distinct subsets. The order (first draw versus second draw) does not matter. Total number of distinct subsets of two cards = = total # ordered arrangements of two cards from five cards # of ordered arrangements of two cards from two cards STAT 302, Department of Statistics, UBC 10

Combinations - General result The number of subsets or combinations of size r that can be formed from n distinct objects (r n) is given by nc r = ( ) n := r n! r!(n r)! (Binomial coefficient) Reasoning: Note: # ordered arrangements of r objects from n objects = (# subsets of r objects (unordered)) (# ways of ordering the r objects) That is, np r = n C r r! which gives ( ) n nc r = r = n P r r! = n (n 1) (n r + 1) r! = n! (n r)!r! STAT 302, Department of Statistics, UBC 11

The number of subsets or combinations of size r that can be formed from n distinct objects (r n) is given by nc r = ( ) n := r n! r!(n r)! (Binomial coefficient) Gift card example (revisited): The number of distinct subsets of two cards out of five =... Exercise 6 In how many ways can a committee of three be selected from among ten people? STAT 302, Department of Statistics, UBC 12

Exercise 7 An assembly operation for a computer circuit board consists of four distinct operations, which can be performed in any order. (a) In how many ways can the assembly operation be performed? (b) One of the operations involves soldering wire to a microchip. In how many ways can this particular operation come first or second? STAT 302, Department of Statistics, UBC 13

Multinomial coefficients The number of ways of partitioning n distinct objects into k distinct groups containing n 1, n 2,..., n k objects, respectively, is n! n 1!n 2! n k!, k where n i = n Proof: From the generalized principle of counting, the number of ways of partitioning is the product: ( ) ( ) ( ) n n n1 n n1 n k 1 n 1 n 2 n k }{{}}{{}}{{} # ways # ways # ways to form k-th to form first to form second partition, given partition partition, given the first k 1 partitions the first partition i=1 STAT 302, Department of Statistics, UBC 14

Multinomial coefficients The number of ways of partitioning n distinct objects into k distinct groups containing n 1, n 2,..., n k objects, respectively, is n! n 1!n 2! n k!, k where n i = n Proof: From the generalized principle of counting, the number of ways of partitioning is the product: ( ) ( ) ( ) n n n1 n n1 n k 1 n 1 n 2 n k }{{}}{{}}{{} # ways # ways # ways to form k-th to form first to form second partition, given partition partition, given the first k 1 partitions the first partition n! = n 1!(n n 1 )! (n n 1 )! n 2!(n n 1 n 2 )! (n n 1 n k 1 )! n k! 0! n! = n 1!n 2! n k! STAT 302, Department of Statistics, UBC 15 i=1

Exercise 8 A fleet of eight taxis is to be divided among three airports, A, B and C, with two going to A, five to B, and one to C. (a) In how many ways can this be done? (b) Jones drives one of the taxis. In how many ways will Jones end up at airport C? STAT 302, Department of Statistics, UBC 16

Exercise 9 In how many ways can 8 people be seated in a row if (a) persons A and B must sit next to each other (b) there are 4 men and 4 women and no 2 men or 2 women can sit next to each other (c) there are 4 married couples and each couple must sit together STAT 302, Department of Statistics, UBC 17

Chapter 1 - Learning outcomes Aim: Demonstrate the ability to solve combinatorial problems Use the basic principle of counting to obtain the total number of possible outcomes in a random experiment Differentiate between permutations and combinations Explain if the order of outcomes matters in the context of the counting problem Apply rules on permutations and combinations in solving counting problems STAT 302, Department of Statistics, UBC 18