Copyright © Cengage Learning. All rights reserved. 6 Sets and Counting.

Slides:



Advertisements
Similar presentations
Copyright © Cengage Learning. All rights reserved.
Advertisements

Copyright © Cengage Learning. All rights reserved. 6 Sets and Counting.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved. 7 Probability.
Copyright © Cengage Learning. All rights reserved. 4 Probability.
Definitions There are three types of probability 1. Experimental Probability Experimental probability is based upon observations obtained from probability.
Chapter 4 Probability and Probability Distributions
COUNTING AND PROBABILITY
Mathematics in Today's World
Copyright © Cengage Learning. All rights reserved.
1 Section 1.7 Set Operations. 2 Union The union of 2 sets A and B is the set containing elements found either in A, or in B, or in both The denotation.
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
Copyright © Cengage Learning. All rights reserved. 3 Differentiation Rules.
Describing Events Adapted from Walch Education Key Concepts A set is a list or collection of items. Set A is a subset of set B, denoted by A ⊂ B, if.
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
Survey of Mathematical Ideas Math 100 Chapter 2
Section 5.2 The Addition Rule and Complements
Copyright © Cengage Learning. All rights reserved. Polynomial And Rational Functions.
Chapter 2 The Basic Concepts of Set Theory © 2008 Pearson Addison-Wesley. All rights reserved.
5.5 Counting Techniques. More Challenging Stuff  The classical method, when all outcomes are equally likely, involves counting the number of ways something.
Counting Principles (Permutations and Combinations )
5.1 Basic Probability Ideas
Copyright © Cengage Learning. All rights reserved. CHAPTER 7 Uncertainty: Data and Chance.
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
1 Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. Basic Principle of Statistics: Rare Event Rule If, under a given assumption,
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
11/20/ Probability Rules.
College Algebra Fifth Edition James Stewart Lothar Redlin Saleem Watson.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 5 Probability: What Are the Chances? 5.2.
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
Special Topics. General Addition Rule Last time, we learned the Addition Rule for Mutually Exclusive events (Disjoint Events). This was: P(A or B) = P(A)
Copyright © Cengage Learning. All rights reserved. 4 Applications of Differentiation.
Copyright © Cengage Learning. All rights reserved. 2 Derivatives.
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
Copyright © Cengage Learning. All rights reserved. CHAPTER 7 FUNCTIONS.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
Copyright © Cengage Learning. All rights reserved. 5 Probability Distributions (Discrete Variables)
THE NATURE OF SETS Copyright © Cengage Learning. All rights reserved. 2.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 2 Set Theory.
SECTION 2-3 Set Operations and Cartesian Products Slide
Section 2.3 Using Venn Diagrams to Study Set Operations Math in Our World.
2.2 Set Operations. The Union DEFINITION 1 Let A and B be sets. The union of the sets A and B, denoted by A U B, is the set that contains those elements.
Probability. What is probability? Probability discusses the likelihood or chance of something happening. For instance, -- the probability of it raining.
Probability theory is the branch of mathematics concerned with analysis of random phenomena. (Encyclopedia Britannica) An experiment: is any action, process.
Introduction to Counting. Why a lesson on counting? I’ve been doing that since I was a young child!
Sets. What is a set? Have you heard the word ‘set’ before? Can you think of sets you might have at home? A set is a well-defined collection or group of.
Section 1.2 – 1.3 Outline Intersection  Disjoint Sets (A  B=  ) AND Union  OR Universe The set of items that are possible for membership Venn Diagrams.
THE NATURE OF SETS Copyright © Cengage Learning. All rights reserved. 2.
Copyright © 2015, 2011, 2007 Pearson Education, Inc. Section 2.3, Slide 1 CHAPTER 2 Set Theory.
The Basic Concepts of Set Theory. Chapter 1 Set Operations and Cartesian Products.
Chapter 2: The Basic Concepts of Set Theory
Copyright © Cengage Learning. All rights reserved.
CHAPTER 2 Set Theory.
Probability Imagine tossing two coins and observing whether 0, 1, or 2 heads are obtained. It would be natural to guess that each of these events occurs.
Counting and Probability Section 12.1: Sets and Counting IBTWW…
Set, Combinatorics, Probability & Number Theory
Copyright © Cengage Learning. All rights reserved.
The Basic Concepts of Set Theory
CHAPTER 2 Set Theory.
Big-O, Ω, ϴ Trevor Brown CSC263 Tutorial 1 Big-O, Ω, ϴ Trevor Brown
COUNTING AND PROBABILITY
COUNTING AND PROBABILITY
Copyright © Cengage Learning. All rights reserved.
Chapter 2 The Basic Concepts of Set Theory
Thinking Mathematically
CHAPTER 2 Set Theory.
Thinking Mathematically
CHAPTER 2 Set Theory.
Presentation transcript:

Copyright © Cengage Learning. All rights reserved. 6 Sets and Counting

Copyright © Cengage Learning. All rights reserved. 6.2 Cardinality

3 In this section, we begin to look at a deceptively simple idea: the size of a set, which we call its cardinality. Cardinality If A is a finite set, then its cardinality is n(A) = number of elements in A. Visualizing Cardinality

4 Cardinality Quick Example Let S = {a, b, c}. Then n(S) = 3. Counting the elements in a small, simple set is straightforward. To count the elements in a large, complicated set, we try to describe the set as built of simpler sets using the set operations. We then need to know how to calculate the number of elements in, for example, a union, based on the number of elements in the simpler sets whose union we are taking.

5 The Cardinality of a Union

6 How can we calculate n(A  B) if we know n(A) and n(B)? Our first guess might be that n(A  B) is n(A) + n(B). But consider a simple example. Let A = {a, b, c} and B = {b, c, d}. Then A  B = {a, b, c, d} so n(A  B) = 4, but n(A) + n(B) = = 6.

7 The Cardinality of a Union The calculation n(A) + n(B) gives the wrong answer because the elements b and c are counted twice, once for being in A and again for being in B. To correct for this overcounting, we need to subtract the number of elements that get counted twice, which is the number of elements that A and B have in common, or n(A  B) = 2 in this case. So, we get the right number for n(A  B) from the following calculation: n(A) + n(B) – n(A  B) = – 2 = 4.

8 The Cardinality of a Union This argument leads to the following general formula. Cardinality of a Union If A and B are finite sets, then n(A  B) = n(A) + n(B) – n(A  B). In particular, if A and B are disjoint (meaning that A  B = ∅ ), then n(A  B) = n(A) + n(B). (When A and B are disjoint we say that A  B is a disjoint union.)

9 The Cardinality of a Union Visualizing Cardinality of a Union Disjoint Sets Not Disjoint

10 The Cardinality of a Union Quick Example If A = {a, b, c, d} and B = {b, c, d, e, f }, then n(A  B) = n(A) + n(B) – n(A  B) = – 3 = 6. In fact, A  B = {a, b, c, d, e, f }.

11 Example 1 – Web Searches In October 2011, a search on Bing™ for “Lt. William Burrows” yielded 29 Web sites containing that phrase, and a search for “Romulan probe” yielded 17 sites. A search for sites containing both phrases yielded 4 Web sites. How many Web sites contained either “Lt. William Burrows,” “Romulan probe,” or both? Solution: Let A be the set of sites containing “Lt. William Burrows” and let B be the set of sites containing “Romulan probe.” We are told that n(A) = 29

12 Example 1 – Solution n(B) = 17 n(A  B) = 4. The formula for the cardinality of the union tells us that n(A  B) = n(A) + n(B) – n(A  B) = – 4 = 42. So, 42 sites in the Bing database contained one or both of the phrases “Lt. William Burrows” or “Romulan probe.” “Lt. William Burrows” AND “Romulan probe” cont’d

13 The Cardinality of a Union Cardinality of a Complement If S is a finite universal set and A is a subset of S, then n(A) = n(S) – n(A) and n(A) = n(S) – n(A).

14 The Cardinality of a Union Visualizing Cardinality of a Complement Quick Example If S = {a, b, c, d, e, f } and A = {a, b, c, d}, then n(A) = n(S) – n(A) = 6 – 4 = 2. In fact, A = {e, f }.

15 The Cardinality of a Union To determine the cardinality of a union of three or more sets, like n(A  B  C), we can think of A  B  C as a union of two sets, (A  B) and C, and then analyze each piece using the techniques we already have. Alternatively, there are formulas for the cardinalities of unions of any number of sets, but these formulas get more and more complicated as the number of sets grows. In many applications, we can use Venn diagrams instead.

16 The Cardinality of a Cartesian Product

17 The Cardinality of a Cartesian Product We’ve covered all the operations except Cartesian product. To find a formula for n(A  B), consider the following simple example: A = {H, T} B = {1, 2, 3, 4, 5, 6} so that A  B = {H1, H2, H3, H4, H5, H6, T1, T2, T3, T4, T5, T6}.

18 The Cardinality of a Cartesian Product The elements of A  B can be arranged in a table or spreadsheet with n(A) = 2 rows and n(B) = 6 elements in each row. In a region with 2 rows and 6 columns, there are 2  6 = 12 cells. So, n(A  B) = n(A)n(B) in this case.

19 The Cardinality of a Cartesian Product Cardinality of a Cartesian Product If A and B are finite sets, then n(A  B) = n(A)n(B). Quick Example If A = {a, b, c} and B = {x, y, z, w}, then n(A  B) = n(A)n(B) = 3  4 = 12.

20 Example 5 – Coin Tosses a. If we toss a coin twice and observe the sequence of heads and tails, how many possible outcomes are there? b. If we toss a coin three times, how many possible outcomes are there? c. If we toss a coin ten times, how many possible outcomes are there?

21 Example 5(a) – Solution Let A = {H, T} be the set of possible outcomes when a coin is tossed once. The set of outcomes when a coin is tossed twice is A  A, which has n(A  A) = n(A)n(A) = 2  2 = 4 possible outcomes.

22 Example 5(b) – Solution When a coin is tossed three times, we can think of the set of outcomes as the product of the set of outcomes for the first two tosses, which is A  A, and the set of outcomes for the third toss, which is just A. The set of outcomes for the three tosses is then (A  A)  A, which we usually write as A  A  A or A 3. The number of outcomes is n((A  A)  A) = n(A  A)n(A) = (2  2)  2 = 8. cont’d

23 Example 5(c) – Solution Considering the result of part (b), we can easily see that the set of outcomes here is A 10 = A  A ...  A (10 copies of A), or the set of ordered sequences of ten Hs and Ts. It’s also easy to see that n(A 10 ) = [n(A)] 10 = 2 10 = 1,024. cont’d