Counting Techniques, Sets & Venn Diagrams - Section 2.1 & 2cathy/Math2311/Lectures/Spring 18... ·...
Transcript of Counting Techniques, Sets & Venn Diagrams - Section 2.1 & 2cathy/Math2311/Lectures/Spring 18... ·...
Counting Techniques, Sets & Venn DiagramsSection 2.1 & 2.2
Cathy Poliak, [email protected]
Department of MathematicsUniversity of Houston
Lecture 4 - 2311
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 1 / 29
Outline
1 Counting Techniques
2 Permutations
3 Combinations
4 Sets
5 Venn Diagrams
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 2 / 29
Example of Poppers
The following numbers are exams scores from a random sample of 5students:
65 75 80 85 95
1. Determine the meana) 80 b) 65 c) 95 d) 30
2. Determine the standard deviationa) 0 b) 11 c) 80 d) 30
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 3 / 29
3. This is a standard deviation contest, which list of numbers havethe largest standard deviation? No calculations are required.a) 10, 10, 10, 10
b) 20, 20, 20, 20
c) 10, 10 ,20, 20
d) 10, 15, 15, 20
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 4 / 29
Beginning Example
In the city of Milford, applications for zoning changes go through atwo-step process:
1. A review by the panning commission.2. A final decision by the city council.
At step 1 the planning commission reviews the zoning changerequest and makes a positive or negative recommendationconcerning the change.At step 2 the city council reviews the planning commission’srecommendation and then votes to approve or to disapprove thezoning change.
How many possible decisions can be made for a zoning change inMilford?
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 5 / 29
Counting Rules
If an experiment can be described as a sequence of k steps withn1 possible outcomes on the first step, n2 possible outcomes onthe second step, and so on, then the total number of experimentaloutcomes is given by (n1)(n2) . . . (nk ).A tree diagram can be used as a graphical representation invisualizing a multiple-step experiment.
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 6 / 29
Tree diagram
disapprove
disapprove
approve
positive
Step 1
Planning Commission
negative
Step 2
City Council
approve
Sample Points
(positive, approve)
(positive, disapprove)
(negative, approve)
(negative, disapprove)
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 7 / 29
Examples
How many ways can you create a pizza choosing a meat and twoveggies if you have 3 choices of meats and 4 choices for veggies?
In how many ways can 6 people be seated in a row?
How many possible outcomes can we have when rolling a pair of6-sided die?
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 8 / 29
Permutations
It allows one to compute the number of outcomes when r objects areto be selected from a set of n objects where the order of selection isimportant. The number of permutations is given by
Pnr =
n!(n − r)!
Where n! = n(n − 1)(n − 2) · · · (2)(1)Rocode for n!: factorial(n)
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 9 / 29
Allowing Repeated Values
When we allow repeated values, The number of orderings of n objectstaken r at a time, with repetition is nr .
Example: In how many ways can you write 4 letters on a tag usingeach of the letters C O U G A R with repetition?
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 10 / 29
Several Objects At Once
The number of permutations, P, of n objects taken n at a time with robjects alike, s of another kind alike, and t of another kind alike isP = n!
r !s!t!Example: How many different words (they do not have to be realwords) can be formed from the letters in the word MISSISSIPPI?
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 11 / 29
Objects Taken of Circular
The number of circular permutations of n objects is (n − 1)!.Example: In how many ways can 12 people be seated around acircular table?
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 12 / 29
Combinations
Counts the number of experimental outcomes when the experimentinvolves selecting r objects from a (usually larger) set of n objects. Thenumber of combinations of n objects taken r unordered at a time is
Cnr =
(nr
)=
n!r !(n − r)!
Rcode: choose(n,r)
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 13 / 29
Difference Between Combinations and Permutations
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 14 / 29
Examples
In how many ways can a committee of 5 be chosen from a groupof 12 people?
In a manufacturing company they have to choose 5 out of 50boxes to be sent to a store. How many ways can they choose the5 boxes?
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 15 / 29
Examples
1. A researcher selects 3 fish from a tank of 12 and puts each of the3 fish into different containers. How many ways can this be done?
2. Among 10 electrical components 2 are known not to function. If 5components are randomly selected, how many ways can we haveonly one of components not functioning?
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 16 / 29
Definitions
A set is a collection of objects.
The items that are in a set called elements.
We typically denote a set by capital letters of the English alphabet.
Examples: A = {knife, spoon, fork}, B = {2,4,6,8}.
The set B could also be written asB = {x |x are even whole numbers between 0 and 10}.
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 17 / 29
Notations of Sets
Notation Descriptiona ∈ A The object a is an element of the set A.A ⊆ B Set A is a subset of set B.
That is every element in A is also in B.A ⊂ B Set A is a proper subset of set B.
That is every element that is is in A is also in set B andthere is at least one element in set B that is no in set A.
A ∪ B A set of all elements that are in A or B.A ∩ B A set of all elements that are in A and B.U Called the universal set, all elements we are interested in.AC The set of all elements that are in the universal set
but are not in set A.
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 18 / 29
Examples
The following are sets: U = {1,2,3,4,5,6,7,8,9,10},A = {1,2,3,4,5,6,9,10}, B = {3,4,7,8}, and C = {2,3,9,10}
C ⊂ A
A ∪ B =
9 ∈ A but 9 /∈ B
AC =
A ∩ B =
AC ∩ C =
(B ∪ C)C =
A ∩ B ∩ C =
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 19 / 29
Definitions
A Venn diagram is a very useful tool for showing the relationshipsbetween sets.
Venn diagrams consist of a rectangle with one or more shapes(usually circles) inside the rectangle.
The rectangle represents all of the elements that we areinterested in for a given situation. This set is the universal set.
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 20 / 29
Graph of Venn Diagrams
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 21 / 29
Venn Diagram From Example
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 22 / 29
Graph of Disjoint Events
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 23 / 29
A ∩ B
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 24 / 29
A ∪ B
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 25 / 29
AC ∩ B
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 26 / 29
A ∩ B ∩ C
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 27 / 29
Soft Drink Preference
A group of 100 people are asked about their preference for soft drinks.The results are as follows: 55 like Coke, 25 like Diet Coke, 45 likePepsi, 15 like Coke and Diet Coke, 5 like all 3 soft drinks, 25 like Cokeand Pepsi, 5 only like Diet Coke (nothing else). Fill in the the Venndiagram with these numbers.
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 28 / 29
Things to Do Before Next Thursday
Complete quiz 1; closes Wednesday (tomorrow) have 20 attempts.If you are stuck on a problem ask me [email protected].
Get the access code for CASA; will not be able to access for freeafter Saturday.
Get the poppers; first popper is Thursday.
Work on homework 1; due on Wendesday (tomorrow).
Cathy Poliak, Ph.D. [email protected] (Department of Mathematics University of Houston )Section 2.1 & 2.2 Lecture 4 - 2311 29 / 29