Counting Elements of Disjoint Sets: The Addition Rule

Slides:



Advertisements
Similar presentations
Section 7.5: Equivalence Relations Def: A relation R on a set A is called an equivalence relation if it is reflexive, symmetric, and transitive. Ex: Let.
Advertisements

7.5 Inclusion/Exclusion. Definition and Example- 2 sets |A  B| =|A| + |B| - |A ∩ B| Ex1: |A|=9, |B|=11, |A∩B|=5, |A  B| = ?
Section 11 Direct Products and Finitely Generated Abelian Groups One purpose of this section is to show a way to use known groups as building blocks to.
5.1 Number Theory. The study of numbers and their properties. The numbers we use to count are called the Natural Numbers or Counting Numbers.
Chapter 2 Probability. 2.1 Sample Spaces and Events.
Week 21 Basic Set Theory A set is a collection of elements. Use capital letters, A, B, C to denotes sets and small letters a 1, a 2, … to denote the elements.
Lecture 14: Oct 28 Inclusion-Exclusion Principle.
1 Section 5.1 Discrete Probability. 2 LaPlace’s definition of probability Number of successful outcomes divided by the number of possible outcomes This.
Discrete Mathematics Lecture 5
Basic probability Sample Space (S): set of all outcomes of an experiment Event (E): any collection of outcomes Probability of an event E, written as P(E)
Counting Elements in a List How many integers in the list from 1 to 10? How many integers in the list from m to n? (assuming m
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
Section 5.2 The Addition Rule and Complements
Lecture II.  Using the example from Birenens Chapter 1: Assume we are interested in the game Texas lotto (similar to Florida lotto).  In this game,
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 2 Probability.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
Probability. An experiment is any process that allows researchers to obtain observations and which leads to a single outcome which cannot be predicted.
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.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 4 Counting methods and the pigeonhole principle.
Math 409/409G History of Mathematics Books VII – IX of the Elements Part 3: Prime Numbers.
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.
Probability Rules. We start with four basic rules of probability. They are simple, but you must know them. Rule 1: All probabilities are numbers between.
Probability: Terminology  Sample Space  Set of all possible outcomes of a random experiment.  Random Experiment  Any activity resulting in uncertain.
Sixth lecture Concepts of Probabilities. Random Experiment Can be repeated (theoretically) an infinite number of times Has a well-defined set of possible.
Probability Rules In the following sections, we will transition from looking at the probability of one event to the probability of multiple events (compound.
Basic Definitions of Set Theory Lecture 23 Section 5.1 Wed, Mar 8, 2006.
Direct Proof and Counterexample III
Notes and Questions on Chapters 13,14,15. The Sample Space, denoted S, of an experiment is a listing of all possible outcomes.  The sample space of rolling.
Spring 2016 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University.
Week 21 Rules of Probability for all Corollary: The probability of the union of any two events A and B is Proof: … If then, Proof:
1 Section 1.2 Sets A set is a collection of things. If S is a set and x is a member or element of S we write x  S. Othewise we write x  S. The set with.
SECTION 10 Cosets and the Theorem of Lagrange Theorem Let H be a subgroup of G. Let the relation  L be defined on G by a  L b if and only if a -1 b 
Basic Definitions of Set Theory Lecture 23 Section 5.1 Mon, Feb 21, 2005.
General Addition Rule AP Statistics.
6.3: General Probability Rules. The Rules So Far 1.Probabilities are between 0 and 1 for any event A 2. The sum of all probs for a given sample space.
Equivalence Relations
Principle of Inclusion and Exclusion
Discrete Mathematics Lecture 8 Probability and Counting
Direct Proof and Counterexample II
What is Probability? Quantification of uncertainty.
Section 12.2 Probability.
Great Theoretical Ideas In Computer Science
9. Counting and Probability 1 Summary
Applied Discrete Mathematics Week 4: Number Theory
Set, Combinatorics, Probability & Number Theory
Direct Proof and Counterexample III
Direct Proof and Counterexample IV
Direct Proof and Counterexample III
Chapter 2 Notes Math 309 Probability.
Lecture 43 Section 10.1 Wed, Apr 6, 2005
SECTION 4.3 ADDITION RULE 1.
Counting Elements of Disjoint Sets: The Addition Rule
Properties of Probability
Inclusion-Exclusion Principle
Copyright © Zeph Grunschlag,
Applied Discrete Mathematics Week 10: Introduction to Counting
Counting Elements of Disjoint Sets: The Addition Rule
Counting Elements of Disjoint Sets: The Addition Rule
Basic Definitions of Set Theory
Equivalence Relations
More About Probability
Number Theory.
Business and Economics 7th Edition
An Introduction to….
Section 3.2 More set operations.
Probability Notes Math 309.
Presentation transcript:

Counting Elements of Disjoint Sets: The Addition Rule Lecture 26 Section 6.3 Fri, Feb 25, 2005

Counting Elements in Disjoint Sets Theorem: Let {A1, …, An} be a partition of a set A. Then |A| = |A1| + … + |An|. Corollary: Let {A1, …, An} be a collection of pairwise disjoint finite sets. Then |A1  …  An| = |A1| + … + |An|.

Counting Elements in Subsets Theorem: Let A and B be finite sets with B  A. Then |A – B| = |A| – |B|. Proof: {B, A – B} is a partition of A. Therefore, |B| + |A – B| = |A|. So, |A – B| = |A| – |B|.

Counting Elements in Subsets Corollary: Let A and B be finite sets with B  A. Then |B| = |A| – |A – B|. Corollary: Let S be the sample space of an experiment and let E be an event. Then P(Ec) = 1 – P(E).

Counting Elements in Unions of Sets Theorem: Let A and B be any finite sets. Then |A  B| = |A| + |B| – |A  B|. Proof: (A  B) – B = A – (A  B). Furthermore, B  A  B and A  B  A. Therefore, |A  B| – |B| = |A| – |A  B|. So, |A  B| = |A| + |B| – |A  B|.

P(A  B) = P(A) + P(B) – P(A  B). Probability Corollary: Given an experiment, let A and B be two events. Then P(A  B) = P(A) + P(B) – P(A  B). Example: Draw two cards from a deck. What is the probability that at least one of them is black?

Putnam Problem A-1 (1983) How many positive integers n are there such that n is an exact divisor of at least one of the numbers 1040, 2030? Let A = {n | n divides 1040}. Let B = {n | n divides 2030}. Then |A  B| = |A| + |B| – |A  B|.

Putnam Problem A-1 (1983) Prime factorization: 1040 = 240  540. Therefore, n | 1040 if and only if n = 2a5b where 0  a  40 and 0  b  40. There are 41  41 = 1681 such numbers. Similarly, 2030 = 260530, so there are 61  31 = 1891 divisors of 2030.

Putnam Problem A-1 (1983) Finally, an integer is in A  B if it divides both 1040 and 2030. That means that it divides the gcd of 1040 and 2030. The gcd of 240  540 and 260  530 is 240  530. Therefore, there are 41  31 = 1271 such numbers. Thus, 1681 + 1891 – 1271 = 2301 numbers divide either 1040 or 2030.

Number of Elements in the Union of Three Sets Theorem: Let A, B, and C be any three finite sets. Then |A  B  C| = |A| + |B| + |C| – |A  B| – |A  C| – |B  C| + |A  B  C|. The pattern is to add “one at a time”, subtract “two at a time”, and add “three at a time.”

Proof, continued Proof: |A  B  C| = |A  B| + |C| – |(A  B)  C|.

Proof, continued Proof: |A  B  C| = |A  B| + |C| – |(A  B)  C| = |A| + |B| – |A  B| + |C| – |(A  B)  C|.

Proof, continued Proof: |A  B  C| = |A  B| + |C| – |(A  B)  C| = |A| + |B| – |A  B| + |C| – |(A  B)  C| = |A| + |B| – |A  B| + |C| – |(A  C)  (B  C)|.

Proof, continued Proof: |A  B  C| = |A  B| + |C| – |(A  B)  C| = |A| + |B| – |A  B| + |C| – |(A  B)  C| = |A| + |B| – |A  B| + |C| – |(A  C)  (B  C)| = |A| + |B| – |A  B| + |C| – |A  C| – |B  C| + |(A  C)  (B  C)|.

Proof, continued Proof: |A  B  C| = |A  B| + |C| – |(A  B)  C| = |A| + |B| – |A  B| + |C| – |(A  B)  C| = |A| + |B| – |A  B| + |C| – |(A  C)  (B  C)| = |A| + |B| – |A  B| + |C| – |A  C| – |B  C| + |(A  C)  (B  C)| + |A  B  C|.

Proof, continued Proof: |A  B  C| = |A  B| + |C| – |(A  B)  C| = |A| + |B| – |A  B| + |C| – |(A  B)  C| = |A| + |B| – |A  B| + |C| – |(A  C)  (B  C)| = |A| + |B| – |A  B| + |C| – |A  C| – |B  C| + |(A  C)  (B  C)| + |A  B  C|. = |A| + |B| + |C| – |A  B| – |A  C| – |B  C|

Proof, continued Proof: |A  B  C| = |A  B| + |C| – |(A  B)  C| = |A| + |B| – |A  B| + |C| – |(A  B)  C| = |A| + |B| – |A  B| + |C| – |(A  C)  (B  C)| = |A| + |B| – |A  B| + |C| – |A  C| – |B  C| + |(A  C)  (B  C)| + |A  B  C|. = |A| + |B| + |C| – |A  B| – |A  C| – |B  C|

Number of Elements in the Union of Three Sets Corollary: Let A, B, and C be any three events. Then P(A  B  C) = P(A) + P(B) + P(C) – P(A  B) – P(A  C) – P(B  C) + P(A  B  C).

The Inclusion/Exclusion Rule Theorem: Let A1, …, An be finite sets. Then |A1  …  An| = i |Ai| – i j > i |Ai  Aj| + i j > i k > j |Ai  Aj  Ak| :  |A1  …  An|.