Week 9 - Wednesday.  What did we talk about last time?  Exam 2  Before that: review  Before that: relations.

Slides:



Advertisements
Similar presentations
Chapter 2 Probability. 2.1 Sample Spaces and Events.
Advertisements

Describing Probability
MAT 103 Probability In this chapter, we will study the topic of probability which is used in many different areas including insurance, science, marketing,
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,
Multiplication Rule. A tree structure is a useful tool for keeping systematic track of all possibilities in situations in which events happen in order.
4.2 Probability Models. We call a phenomenon random if individual outcomes are uncertain but there is nonetheless a regular distribution of outcomes in.
1 Counting Rules. 2 The probability of a specific event or outcome is a fraction. In the numerator we have the number of ways the specific event can occur.
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 4-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
Discrete Mathematics Lecture 7 More Probability and Counting Harper Langston New York University.
1 Counting Rules. 2 The probability of a specific event or outcome is a fraction. In the numerator we have the number of ways the specific event can occur.
1 Probability Parts of life are uncertain. Using notions of probability provide a way to deal with the uncertainty.
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
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
Week 10 - Monday.  What did we talk about last time?  More permutations  Addition rule  Inclusion and exclusion.
Week 8 - Wednesday.  What did we talk about last time?  Cardinality  Countability  Relations.
Refreshing Your Skills for Chapter 10.  If you flip a coin, the probability that it lands with heads up is 1/2.  If you roll a standard die, the probability.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 2 Probability.
Copyright © 2015, 2011, 2008 Pearson Education, Inc. Chapter 7, Unit A, Slide 1 Probability: Living With The Odds 7.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
Counting Principles (Permutations and Combinations )
Mathematics of Cryptography Part I: Modular Arithmetic
1 9/8/2015 MATH 224 – Discrete Mathematics Basic finite probability is given by the formula, where |E| is the number of events and |S| is the total number.
1 9/23/2015 MATH 224 – Discrete Mathematics Basic finite probability is given by the formula, where |E| is the number of events and |S| is the total number.
Topics to be covered: Produce all combinations and permutations of sets. Calculate the number of combinations and permutations of sets of m items taken.
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
Chapter 7 With Question/Answer Animations. Section 7.1.
Two Way Tables Venn Diagrams Probability. Learning Targets 1. I can use a Venn diagram to model a chance process involving two events. 2. I can use the.
Chapter 6, Counting and Probability
March 10,  Counting  Fundamental Counting principle  Factorials  Permutations and combinations  Probability  Complementary events  Compound.
Week 11 - Wednesday.  What did we talk about last time?  Exam 2 post-mortem  Combinations.
Homework Homework due now. Reading: relations
Lesson 6 – 2b Probability Models Part II. Knowledge Objectives Explain what is meant by random phenomenon. Explain what it means to say that the idea.
Section 11.4 Tree Diagrams, Tables, and Sample Spaces Math in Our World.
PROBABILITY The language of probability 01½ Impossible Very unlikely Unlikely Even chance Likely Almost certain Certain The probability of an event is.
Review Homework pages Example: Counting the number of heads in 10 coin tosses. 2.2/
Counting Principles. Counting examples Ex 1: A small sandwich café has 4 different types of bread, 5 different types of meat and 3 different types of.
Discrete Mathematics, 1st Edition Kevin Ferland Chapter 6 Basic Counting 1.
Introduction Lecture 25 Section 6.1 Wed, Mar 22, 2006.
Probability. What is probability? Probability discusses the likelihood or chance of something happening. For instance, -- the probability of it raining.
1 CS 140 Discrete Mathematics Combinatorics And Review Notes.
Counting Techniques Tree Diagram Multiplication Rule Permutations Combinations.
Introduction Remember that probability is a number from 0 to 1 inclusive or a percent from 0% to 100% inclusive that indicates how likely an event is to.
 Counting  Fundamental Counting principle  Factorials  Permutations and combinations  Probability  Complementary events  Compound events  Independent.
Spring 2016 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University.
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 5: Probability: What are the Chances? Section 5.2 Probability Rules.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 5 Probability: What Are the Chances? 5.2.
Microsoft produces a New operating system on a disk. There is 0
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
Week 9 - Wednesday.  What did we talk about last time?  Exam 2  Before that: review  Before that: relations.
Week 10 - Wednesday.  What did we talk about last time?  Counting practice  Pigeonhole principle.
Week 9 - Friday.  What did we talk about last time?  Partial orders  Total orders  Basic probability  Event  Sample space  Monty Hall  Multiplication.
Week 8 - Monday.  What did we talk about last time?  Properties of functions  One-to-one  Onto  Inverses  Cardinality.
Week 8 - Wednesday.  What did we talk about last time?  Relations  Properties of relations  Reflexive  Symmetric  Transitive.
Quiz: Draw the unit circle: Include: (1)All “nice” angles in degrees (2) All “nice” angles in radians (3) The (x, y) pairs for each point on the unit circle.
Ch 11.7 Probability. Definitions Experiment – any happening for which the result is uncertain Experiment – any happening for which the result is uncertain.
13 Lesson 1 Let Me Count the Ways Fundamental Counting Principle, Permutations & Combinations CP Probability and Statistics FA 2014 S-ID.1S-CP.3S-CP.5.
The Relation Induced by a Partition
The Multiplication Rule
Chapter 4 Probability Concepts
Probability.
COUNTING AND PROBABILITY
Introduction Remember that probability is a number from 0 to 1 inclusive or a percent from 0% to 100% inclusive that indicates how likely an event is to.
COUNTING AND PROBABILITY
Combination and Permutations Quiz!
CHAPTER 5 Probability: What Are the Chances?
Adapted from Walch Education
Presentation transcript:

Week 9 - Wednesday

 What did we talk about last time?  Exam 2  Before that: review  Before that: relations

 This is an old one, and not especially mathematical  Still, it illustrates a useful point  A man and his son are driving in a car one day, when they get into a terrible accident  The man is killed instantly  The boy is knocked unconscious, but he is still alive  He is rushed to a hospital, and will need immediate surgery  The doctor enters the emergency room, looks at the boy, and says, "I can't operate on this boy, he is my son."  How can this be?  Please be quiet if you have heard this one before.

 A partition of a set A (as we discussed earlier) is a collection of nonempty, mutually disjoint sets, whose union is A  A relation can be induced by a partition  For example, let A = {0, 1, 2, 3, 4}  Let A be partitioned into {0, 3, 4}, {1}, {2}  The binary relation induced by the partition is: x R y  x and y are in the same subset of the partition  List the ordered pairs in R

 Given set A with a partition  Let R be the relation induced by the partition  Then, R is reflexive, symmetric, and transitive  As it turns out, any relation R is that is reflexive, symmetric, and transitive induces a partition  We call a relation with these three properties an equivalence relation

 We say that m is congruent to n modulo d if and only if d | (m – n)  We write this:  m  n (mod d)  Congruence mod d defines an equivalence relation  Reflexive, because m  m (mod d)  Symmetric because m  n (mod d) means that n  m (mod d)  Transitive because m  n (mod d) and n  k (mod d) mean that m  k (mod d)  Which of the following are true?  12  7 (mod 5)  6  -8 (mod 4)  3  3 (mod 7)

 Let A be a set and R be an equivalence relation on A  For each element a in A, the equivalence class of a, written [a], is the set of all elements x in A such that a R x  Example  Let A be { 0, 1, 2, 3, 4, 5, 6, 7, 8}  Let R be congruence mod 3  What's the equivalence class of 1?  For A with R as an equivalence relation on A  If b  [a], then [a] = [b]  If b  [a], then [a]  [b] = 

 Modular arithmetic has many applications  For those of you in Security, you know how many of them apply to cryptography  To help us, the following statements for integers a, b, and n, with n > 1, are all equivalent 1. n | (a – b) 2. a  b (mod n) 3. a = b + kn for some integer k 4. a and b have the same remainder when divided by n 5. a mod n = b mod n

 Let a, b, c, d and n be integers with n > 1  Let a  c (mod n) and b  d (mod n), then: 1. (a + b)  (c + d) (mod n) 2. (a – b)  (c – d) (mod n) 3. ab  cd (mod n) 4. a m  c m (mod n), for all positive integers m  If a and n are relatively prime (share no common factors), then there is a multiplicative inverse a -1 such that a -1 a  1 (mod n)  I'd love to have us learn how to find this, but there isn't time

 Let R be a relation on a set A  R is antisymmetric iff for all a and b in A, if a R b and b R a, then a = b  That is, if two different elements are related to each other, then the relation is not antisymmetric  Let R be the "divides" relation on the set of all positive integers  Is R antisymmetric?  Let S be the "divides" relation on the set of all integers  Is S antisymmetric?

 A relation that is reflexive, antisymmetric, and transitive is called a partial order  The subset relation is a partial order  Show it's reflexive  Show it's antisymmetric  Show it's transitive  The less than or equal to relation is a partial order  Show it's reflexive  Show it's antisymmetric  Show it's transitive

 Let set A = {1, 2, 3, 9, 18}  Let R be the "divides" relation on A  Draw A as a set of points and connect each pair of points with arrows if they are related with R  Now, delete all loops and transitive arrows  This is a Hasse Diagram

 Let R be a partial order on set A  Elements a,b  R are comparable if either a R b or b R a (or both)  If all the elements in a partial order are comparable, then the partial order is a total order  Let R be the "less than or equal to" relation on R  Is it a total order?  Let S be the "divides" relation on positive integers  Is it a total order?

 A sample space is the set of all possible outcomes  An event is a subset of the sample space  Formula for equally likely probabilities:  Let S be a finite sample space in which all outcomes are equally likely and E is an event in S  Let N(X) be the number of elements in set X ▪ Many people use the notation |X| instead  The probability of E is P(E) = N(E)/N(S)

 There are 52 cards in a normal Anglo-American deck of cards  Four suits: Spades, Hearts, Clubs, and Diamonds  13 denominations: Ace, 2, 3, 4, 5, 6, 7, 8, 9, 10, Jack, Queen, King  Imagine you draw a single card from a thoroughly shuffled deck  What is the sample space?  What is the event of drawing a black face card?  What is the probability of drawing a black face card?

 Six-sided dice have, uh, six sides, numbered 1 through 6  If you roll two dice  What is the sample space of outcomes?  What is the event that the two dice add up to 7?  What is the probability that the two dice add up to 7?  What about all the other possible values?

 Imagine you are playing a game show with 3 doors  There is a prize behind one and nothing behind the other two  As the contestant, you pick a door, but it isn't opened yet  The host Monty Hall opens one of the other two doors, revealing nothing  Then, you get a chance to switch  Should you stay or switch or does it matter?

 As a computer scientist, you have almost certainly figured this out  But, just to formalize it, if you have a list numbered m through n, with no elements missing, the total number of elements are n – m + 1  For example, there are 50 elements in an array indexed from 0 to 49

 We can use a tree to represent all the possibilities in a situation  Example:  Teams A and B are playing a best of 3 tournament  The first team to win 2 games wins  How likely is it that 3 games are needed to decide the tournament, assuming that all ways of playing the tournament are equally likely? A A A A A B B B B B

 If an operation has k steps such that  Step 1 can be performed in n 1 ways  Step 2 can be performed in n 2 ways …  Step k can be performed in n k ways  Then, the entire operation can be performed in n 1 n 2 … n k ways  This rule only applies when each step always takes the same number of ways (unlike the previous possibility tree example)

 If you flip a coin k times, how many total possibilities are there for the outcomes?

 If a PIN is a 4 digit sequence, where each digit is 0-9 or A-Z, how many PINs are possible?  How many PINs are possible if no digits are repeated?  Assuming that all PINs are equally likely, what's the probability that a PIN chosen at random has no repetitions?

 A permutation of a set of objects is an ordering of the objects in a row  Consider set { a, b, c }  Its permutations are:  abc  acb  cba  bac  bca  cab  If a set has n  1 elements, it has n! permutations

 How many different ways can the letters in the word "WOMBAT" be permuted?  How many different ways can "WOMBAT" be permuted such that "BA" remains together?  What is the probability that, given a random permutation of "WOMBAT", the "BA" is together?  How many different ways can the letters in "MISSISSIPPI" be permuted?  How many would it be if we don't distinguish between copies of letters?

 What if you want to seat 6 people around a circular table?  If you only care about who sits next to whom (rather than who is actually in Seat 1, Seat 2, etc.) how many circular permutations are there?  What about for n people?

 An r-permutation of a set of n element is an ordered selection of r elements from the set  Example: A 2-permutation of {a, b, c} includes:  ab  ac  ba  bc  ca  cb  The number of r-permutations of a set of n elements is P(n,r) = n!/(n – r)!

 What is P(5,2)?  How many 4-permutations are there in a set of 7 objects?  How many different ways can three of the letters in "BYTES" be written in a row?

 Read Chapter 9

 Work on Homework 7  Due on Friday  Summer internship opportunity at Masonic Villages  Contact me if interested