The Inclusion/Exclusion Rule for Two or Three Sets

Slides:



Advertisements
Similar presentations
Counting Techniques: Permutations of Selected Elements Addition Rule, Difference Rule, Inclusion/Exclusion Rule.
Advertisements

Inclusion-Exclusion Rosen 6.5 & 6.6
FACTORS.
Inclusion-Exclusion Formula
A) 80 b) 53 c) 13 d) x 2 = : 10 = 3, x 3 = 309.
Counting and Probability The outcome of a random process is sure to occur, but impossible to predict. Examples: fair coin tossing, rolling a pair of dice,
Discrete Structures Chapter 4 Counting and Probability Nurul Amelina Nasharuddin Multimedia Department.
Lecture 14: Oct 28 Inclusion-Exclusion Principle.
Chapter 5 Section 3 Venn Diagram and Counting. Exercise 13 (page 222) Given: n(U) = 20 n(S) = 12 n(T) = 14 n(S ∩ T ) = 18 Problem, none of the values.
Lecture 31 CSE 331 Nov 16, Jeff is out of town this week No regular recitation or Jeff’s normal office hours I’ll hold extra Question sessions Mon,
Zeros of Polynomial Functions Section 2.5. Objectives Use the Factor Theorem to show that x-c is a factor a polynomial. Find all real zeros of a polynomial.
Congruence Classes Z n = {[0] n, [1] n, [2] n, …, [n - 1] n } = the set of congruence classes modulo n.
Discrete Mathematics Lecture 6 Alexander Bukharovich New York University.
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
Lecture 33 CSE 331 Nov 17, Online office hours Alex will host the office hours.
4.4.2 Combinations of multisets
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
Chapter 2 The Basic Concepts of Set Theory © 2008 Pearson Addison-Wesley. All rights reserved.
How do you find the Least Common Multiple (LCM) of two or more numbers? For example, how do you find the Least Common Multiple of 12 and 15?
Cycle Notation. Cycle notation  Compute:  Alternative notation: (1 3)(2 5)( ) = (1 5)(3 4)
Principles of Statistics Chapter 2 Elements of Probability.
Discrete Mathematical Structures (Counting Principles)
Counting and Probability. Counting Elements of Sets Theorem. The Inclusion/Exclusion Rule for Two or Three Sets If A, B, and C are finite sets, then N(A.
Binomial Coefficients, Inclusion-exclusion principle
9.3 Addition Rule. The basic rule underlying the calculation of the number of elements in a union or difference or intersection is the addition rule.
Power of a Product and Power of a Quotient Let a and b represent real numbers and m represent a positive integer. Power of a Product Property Power of.
Chapter 7 Advance Counting Techniques. Content Recurrence relations Generating function The principle of inclusion-exclusion.
Multiplying and Dividing Integers When you MULTIPLY: Two positives equal a positive Two negatives equal a positive One positive & one negative equal.
The Principle of Inclusion-Exclusion
ADDING & SUBTRACTING FRACTIONS
Chapter 5: Permutation Groups  Definitions and Notations  Cycle Notation  Properties of Permutations.
SECTION 2-3 Set Operations and Cartesian Products Slide
ELEMENTARY SET THEORY.
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.
Counting Techniques. L172 Agenda Section 4.1: Counting Basics Sum Rule Product Rule Inclusion-Exclusion.
Section 3.1 Sets and their operation. Definitions A set S is collection of objects. These objects are said to be members or elements of the set, and the.
1 Section 6.5 Inclusion/Exclusion. 2 Finding the number of elements in the union of 2 sets From set theory, we know that the number of elements in the.
Warning: All the Venn Diagram construction and pictures will be done during class and are not included in this presentation. If you missed class you.
Spring 2016 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University.
VOCABULARY. For any numbers a, b, and c, if a = b then a + c = b + c Addition Property of Equality.
The Basic Concepts of Set Theory. Chapter 1 Set Operations and Cartesian Products.
MDFP Introduction to Mathematics SETS and Venn Diagrams.
Week 9 - Friday.  What did we talk about last time?  Partial orders  Total orders  Basic probability  Event  Sample space  Monty Hall  Multiplication.
Principle of Inclusion and Exclusion
Math in Our World Section 2.1 The Nature of Sets.
Chapter two Theory of sets
Sets Finite 7-1.
Counting by Complement and the Inclusion/Exclusion Principle
Interesting Integers! REVIEW
8.1 Multiplication Properties of Exponents
For each pair of polynomials, find the least common multiple. Example For each pair of polynomials, find the least common multiple.
9. Counting and Probability 1 Summary
The Basic Concepts of Set Theory
Set, Combinatorics, Probability & Number Theory
Add Subtract Positive Negative integers
The Basic Concepts of Set Theory
COUNTING AND PROBABILITY
Изразеното в настоящата презентация мнение обвързва единствено автора и не представлява официално становище на Комисията за финансов надзор Данил Джоргов.
Section 16 Inclusion/Exclusion
Section 10.1 Groups.
We will chake the answer
Counting Elements of Disjoint Sets: The Addition Rule
Times.
Counting Elements of Disjoint Sets: The Addition Rule
Counting Elements of Disjoint Sets: The Addition Rule
Multiplying integers 3(3) = (3) = (3) = (3) = 0 -3
Counting Elements of Disjoint Sets: The Addition Rule
Multiplication and Division of Integers
Add and Subtract Positive & Negative Integers
Multiplying more than two integers
Presentation transcript:

Applications of Set Theory in Counting Techniques: Inclusion-Exclusion Rule

The Inclusion/Exclusion Rule for Two or Three Sets If A, B and C are finite sets then  n(A  B) = n(A) + n(B) – n(A  B)  n(A  B  C) = n(A) + n(B) + n(C) - n(A  B) – n(A  C) – n(B  C) + n(A  B  C) A B A B C

Example on Inclusion/Exclusion Rule (2 sets) Question: How many integers from 1 through 100 are multiples of 3 or multiples of 7 ? Solution: Let A=the set of integers from 1 through 100 which are multiples of 3; B = the set of integers from 1 through 100 which are multiples of 7. Then we want to find n(A  B). First note that A  B is the set of integers from 1 through 100 which are multiples of 21 . n(A  B) = n(A) + n(B) - n(A  B) (by incl./excl. rule) = 33 + 14 – 4 = 43 (by counting the elements of the three lists)

Example on Inclusion/Exclusion Rule (3 sets) 3 headache drugs – A,B, and C – were tested on 40 subjects. The results of tests: 23 reported relief from drug A; 18 reported relief from drug B; 31 reported relief from drug C; 11 reported relief from both drugs A and B; 19 reported relief from both drugs A and C; 14 reported relief from both drugs B and C; 37 reported relief from at least one of the drugs. Questions: 1) How many people got relief from none of the drugs? 2) How many people got relief from all 3 drugs? 3) How many people got relief from A only?

Example on Inclusion/Exclusion Rule (3 sets) We are given: n(A)=23, n(B)=18, n(C)=31, n(A  B)=11, n(A  C)=19, n(B  C)=14 , n(S)=40, n(A  B  C)=37 Q1) How many people got relief from none of the drugs? By difference rule, n((A  B  C)c ) = n(S) – n(A  B  C) = 40 - 37 = 3 S A B C

Example on Inclusion/Exclusion Rule (3 sets) Q2) How many people got relief from all 3 drugs? By inclusion/exclusion rule: n(A  B  C) = n(A  B  C) - n(A) - n(B) - n(C) + n(A  B) + n(A  C) + n(B  C) = 37 – 23 – 18 – 31 + 11 + 19 + 14 = 9 Q3) How many people got relief from A only? n(A – (B  C)) (by inclusion/exclusion rule) = n(A) – n(A  B) - n(A  C) + n(A  B  C) = 23 – 11 – 19 + 9 = 2