Main Menu Main Menu (Click on the topics below) Combinatorics Introduction Equally likely Probability Formula Counting elements of a list Counting elements.

Slides:



Advertisements
Similar presentations
Probability Probability Principles of EngineeringTM
Advertisements

MAT 103 Probability In this chapter, we will study the topic of probability which is used in many different areas including insurance, science, marketing,
Main Menu Main Menu (Click on the topics below) Algebra of Combinations Pascal’s formula More Formulas Click on the picture Sanjay Jain, Lecturer, School.
Walks, Paths and Circuits Walks, Paths and Circuits Sanjay Jain, Lecturer, School of Computing.
Main Menu Main Menu (Click on the topics below) Combinations Example Theorem Click on the picture.
1 Chapter 3 Probability 3.1 Terminology 3.2 Assign Probability 3.3 Compound Events 3.4 Conditional Probability 3.5 Rules of Computing Probabilities 3.6.
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.
Chapter 4 Probability and Probability Distributions
1 Counting. 2 Situations where counting techniques are used  You toss a pair of dice in a casino game. You win if the numbers showing face up have a.
Introduction 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 occur. In the.
MAT 103 Probability In this chapter, we will study the topic of probability which is used in many different areas including insurance, science, marketing,
Copyright © Cengage Learning. All rights reserved. 8.6 Probability.
Chapter 4 Nutan S. Mishra Department of Mathematics and Statistics University of South Alabama.
Excursions in Modern Mathematics Sixth Edition
Learning Objectives for Section 8.1 Probability
Section 1 Sample Spaces, Events, and Probability
Introduction to Probability
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,
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 4-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
Probability Probability Principles of EngineeringTM
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 15 Chances, Probabilities, and Odds 15.1Random Experiments and Sample.
Math 310 Section 7.1 Probability. What is a probability? Def. In common usage, the word "probability" is used to mean the chance that a particular event.
Probability Distributions
1 Section 5.1 Discrete Probability. 2 LaPlace’s definition of probability Number of successful outcomes divided by the number of possible outcomes This.
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
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,
Special Topics. Definitions Random (not haphazard): A phenomenon or trial is said to be random if individual outcomes are uncertain but the long-term.
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.
Counting Principles (Permutations and Combinations )
Copyright © 2000 by the McGraw-Hill Companies, Inc. Barnett/Ziegler/Byleen College Algebra: A Graphing Approach Chapter Six Sequences, Series, and Probability.
Chapter 1 Probability and Distributions Math 6203 Fall 2009 Instructor: Ayona Chatterjee.
EXIT NEXT Click one of the buttons below or press the enter key BACKTOPICSProbability Mayeen Uddin Khandaker Mayeen Uddin Khandaker Ph.D. Student Ph.D.
Topics to be covered: Produce all combinations and permutations of sets. Calculate the number of combinations and permutations of sets of m items taken.
Probability. An experiment is any process that allows researchers to obtain observations and which leads to a single outcome which cannot be predicted.
Copyright © Cengage Learning. All rights reserved. CHAPTER 9 COUNTING AND PROBABILITY.
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.
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
The Practice of Statistics
3. Counting Permutations Combinations Pigeonhole principle Elements of Probability Recurrence Relations.
Chapter 6, Counting and Probability
Week 11 What is Probability? Quantification of uncertainty. Mathematical model for things that occur randomly. Random – not haphazard, don’t know what.
Chapter 2: Probability · An Experiment: is some procedure (or process) that we do and it results in an outcome. A random experiment: is an experiment we.
1 Melikyan/DM/Fall09 Discrete Mathematics Ch. 6 Counting and Probability Instructor: Hayk Melikyan Today we will review sections 6.1,
PROBABILITY, PROBABILITY RULES, AND CONDITIONAL PROBABILITY
Review Homework pages Example: Counting the number of heads in 10 coin tosses. 2.2/
Sixth lecture Concepts of Probabilities. Random Experiment Can be repeated (theoretically) an infinite number of times Has a well-defined set of possible.
Basic Concepts of Probability
+ Chapter 5 Overview 5.1 Introducing Probability 5.2 Combining Events 5.3 Conditional Probability 5.4 Counting Methods 1.
Basic probability Sep. 16, Introduction Our formal study of probability will base on Set theory Axiomatic approach (base for all our further studies.
Chapter 7: Probability Lesson 1: Basic Principles of Probability Mrs. Parziale.
3/7/20161 Now it’s time to look at… Discrete Probability.
Main Menu Main Menu (Click on the topics below) Pigeonhole Principle Example Generalized Pigeonhole Principle Example Proof of Pigeonhole Principle Click.
EXIT NEXT Click one of the buttons below or press the enter key BACKTOPICSEXIT NEXT Click one of the buttons below or press the enter key BACKTOPICS.
Spring 2016 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University.
Basic Probability. Introduction Our formal study of probability will base on Set theory Axiomatic approach (base for all our further studies of probability)
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
Chapter 8 Probability Section 1 Sample Spaces, Events, and Probability.
Counting and Probability. Imagine tossing two coins and observing whether 0, 1, or 2 heads are obtained. Below are the results after 50 tosses Tossing.
Introduction to probability (3) Definition: - The probability of an event A is the sum of the weights of all sample point in A therefore If A1,A2,…..,An.
Probability IIntroduction to Probability ASatisfactory outcomes vs. total outcomes BBasic Properties CTerminology IICombinatory Probability AThe Addition.
Chapter 4 Probability Concepts
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.
What is Probability? Quantification of uncertainty.
9. Counting and Probability 1 Summary
Chapter 2: Probability · An Experiment: is some procedure (or process) that we do and it results in an outcome. A random experiment: is an experiment we.
Introduction 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 occur. In the.
CONDITIONAL PROBABILITY
COUNTING AND PROBABILITY
Presentation transcript:

Main Menu Main Menu (Click on the topics below) Combinatorics Introduction Equally likely Probability Formula Counting elements of a list Counting elements of a sublist Sum of numbers from 1 to n Pairs of numbers Possibility Trees & The Multiplication Rule Cartesian Product Subsets of A= {a 1, a 2,…, a n } 3 digit numbers with distinct digits Relations from A to B 3 digit +ve odd integers with distinct digits Symmetric Relations Simple Graphs Click on the picture

Combinatorics Counting the number of possible outcomes. Counting the number of ways a task can be done. Sanjay Jain, Lecturer, School of Computing

Introduction Sanjay Jain, Lecturer, School of Computing l Multiplication Rule l Examples Click on the picture

Combinatorics Counting Probability l To say that a process is random means that when it takes place, one out of a possible set of outcomes will occur. However it is in general impossible to predict with certainty which of the possible outcomes will occur. l A sample space is the set of all possible outcomes of a random experiment.. l An event is a subset of a sample space.

Example Tossing two coins. Sample Space: {HH, HT, TH, TT} Event: At least one head: {HH, HT, TH}

END OF SEGMENT

Equally Likely Probability Formula Suppose S is a sample space in which all outcomes are equally likely. Suppose E is an event in S. Then the probability of E, denoted by Pr(E) is Notation: For a set A, #(A) denotes the number of elements in A. Sometimes n(A) or || A || is also used for #(A). Sometimes Prob(E) or P(E) is also used for Pr(E).

Example Consider the process of drawing a card from a pack of cards. What is the probability of drawing an Ace? Assume drawing any card is equally likely. Sample Space: S={SA, S2, S3, …., HA, H2,….}. Event: E={SA, HA, DA, CA} #(S)=52 #(E)=4 Pr(E)=4/52

END OF SEGMENT

Counting The Elements of A List How many integers are there from 8 through 15?

Theorem If m and n are integers and m  n then there are n-m+1 integers from m to n (both inclusive). Proof: m m+1 m+2 ………………… n m+0 m+1 m+2 …………………m+(n-m) ……………… (n-m)+1

END OF SEGMENT

Counting Elements of a Sublist How many 3 digit positive integers are divisible by 5? ……… *5 21*5 ……… 199* ……… =180

END OF SEGMENT

Floors and Ceilings  w  denotes the largest integer  w. For example:  6.9  = 6;  -9.2  = -10;  9  = 9  w  denotes the smallest integer  w. For example:  6.9  =7;  -9.2  = -9;  9  = 9

END OF SEGMENT

Sum of numbers from 1 to n Theorem: 1+2+….+n = n(n+1)/2 Proof We show this by induction on n. For n=1, the above is clearly true. Suppose the theorem holds for n = k. We show the theorem for n = k … + k + (k+1) = [k (k + 1) / 2] + (k+1) = (k + 2) ( k + 1) / 2 = (k + 1) (k + 2) / 2

END OF SEGMENT

Pairs of numbers: How many distinct pairs of numbers (i,j) satisfy the property 1  i < j  n? For any i, 1  i < n, the number of j’s which satisfy 1  i < j  n, is n - i. Thus, the number of distinct pairs of numbers (i,j) that satisfy the property 1  i < j  n is = = =

END OF SEGMENT

Possibility Trees Coin Toss: 2 ways Toss 2 x 2 ways H T T HH T

END OF SEGMENT

The Multiplication Rule Theorem: If an operation (or job) consists of k tasks (or steps), T 1, T 2,…, T k, performed one after another and l T 1 can be done in n 1 ways l T 2 can be done in n 2 ways (irrespective of how T 1 is done) l …. l T k can be done in n k ways (irrespective of how T 1... T k-1 are done) Then, the entire operation can be done in n 1 * n 2 * ….* n k ways.

The Multiplication Rule Theorem: If an operation (or job) consists of k tasks (or steps), T 1, T 2,…, T k, performed one after another and T i can be done in n i ways (irrespective of how T 1... T i-1 are done) Caution: Note the independence assumption. One cannot use the multiplication rule unless the independence assumption holds.

END OF SEGMENT

Cartesian Product How many elements are there in A x B? A= {a 1, a 2,…., a n } B= {b 1, b 2,…., b m } Recall: A X B = {(a,b) : a  A and b  B}.

Cartesian Product Job: select an element of A X B. l T 1 : Select an element a of A l T 2 : Select an element b of B n (this gives us an element (a,b) of A X B) l T 1 can be done in n ways l T 2 can be done in m ways (irrespective of how T 1 is done)  by the multiplication rule, the job can be done in n*m ways. The number of elements of A x B is n*m

END OF SEGMENT

Subsets of A= {a 1, a 2,…, a n } How many subsets of A={a 1, a 2,…, a n } are there? Job: select a subset of A. l T 1 : either select or not select a 1 l T 2 : either select or not select a 2 l …. l T n : either select or not select a n Each of these tasks can be done in two ways (irrespective of how the earlier tasks are done). Thus the number of ways of doing the job is 2 n. Therefore, the number of subsets of A is 2 n.

END OF SEGMENT

3 digit numbers with distinct digits How many 3 digit numbers with distinct digits are there?

3 digit numbers with distinct digits How many 3 digit numbers with distinct digits are there? l T 1 : Select the hundred’s digit l T 2 : Select the ten’s digit l T 3 : Select the unit’s digit

3 digit numbers with distinct digits How many 3 digit numbers with distinct digits are there? l T 1 : Select the hundred’s digit l T 1 can be done in 9 ways (digit 0 cannot be selected)

3 digit numbers with distinct digits How many 3 digit numbers with distinct digits are there? l T 2 : Select the ten’s digit l T 2 can be done in 9 ways (irrespective of how T 1 was done). You cannot select the digit chosen in T 1

3 digit numbers with distinct digits How many 3 digit numbers with distinct digits are there? l T 3 : Select the unit’s digit l T 3 can be done in 8 ways (irrespective of how earlier tasks were done). You cannot select the digit chosen in T 1 and T 2

3 digit numbers with distinct digits How many 3 digit numbers with distinct digits are there? l T 1 can be done in 9 ways l T 2 can be done in 9 ways l T 3 can be done in 8 ways Therefore, the total number of 3 digit numbers with distinct digits are 9*9*8

END OF SEGMENT

Relations From A to B How many different relations are there from A to B? A={a 1, a 2,…., a n }, B={b 1, b 2,…., b m } T (i,j) : select or not select (a i,a j ) as a member of R. (1  i  n and 1  j  m) Note that the total number of tasks is n*m. Each T (i,j) can be done in 2 ways. Thus all the tasks can be done in 2 n*m ways Total number of relations is: 2 n*m

Relations From A to B Another Method: A relation is a subset of A X B. Number of elements in A X B = n*m number of subsets of A X B = 2 n*m How many different relations are there from A to B? A={a 1, a 2,…., a n }, B={b 1, b 2,…., b m }

END OF SEGMENT

Be careful in using the Multiplication Rule How many 3 digit +ve odd integers have distinct digits? l T 1 : Select the hundred’s digit l T 2 : Select the ten’s digit l T 3 : Select the unit’s digit

3 digit +ve odd integers How many 3 digit +ve odd integers have distinct digits? l T 1 : Select the hundred’s digit l T 1 can be done in 9 ways

3 digit +ve odd integers How many 3 digit +ve odd integers have distinct digits? l T 2 : Select the ten’s digit T 2 can be done in 9 ways (irrespective of how T 1 was done). You cannot select the digit chosen in T 1

3 digit +ve odd integers How many 3 digit +ve odd integers have distinct digits? l T 3 : Select the unit’s digit l T 3 can be done in ? ways (the number of ways is either 3 or 4 or 5 depending on how exactly T 1 and T 2 were done).

3 digit +ve odd integers How many 3 digit +ve odd integers have distinct digits? l T 1 can be done in 9 ways l T 2 can be done in 9 ways l T 3 can be done in ? ways Therefore, the Multiplication Rule may not always be applicable. However, for this problem one can use the Multiplication Rule by reordering tasks.

3 digit +ve odd integers How many 3 digit +ve odd integers have distinct digits? (reordering tasks) l T 1 : Select the unit’s digit l T 2 : Select the hundred’s digit l T 3 : Select the ten’s digit

3 digit +ve odd integers How many 3 digit +ve odd integers have distinct digits? (reordering tasks) l T 1 : Select the unit’s digit l T 1 can be done in 5 ways

3 digit +ve odd integers How many 3 digit +ve odd integers have distinct digits? (reordering tasks) l T 2 : Select the hundred’s digit l T 2 can be done in 8 ways (irrespective of how T 1 was done).

3 digit +ve odd integers How many 3 digit +ve odd integers have distinct digits? (reordering tasks) l T 3 : Select the ten’s digit l T 3 can be done in 8 ways (irrespective of how T 1 and T 2 are done).

3 digit +ve odd integers How many 3 digit +ve odd integers have distinct digits? (reordering tasks) l T 1 can be done in 5 ways l T 2 can be done in 8 ways l T 3 can be done in 8 ways Therefore, the total number of 3 digit +ve odd integers with distinct digits is 5*8*8

END OF SEGMENT

Symmetric Relations Suppose A ={a 1,a 2,…,a n }. How many symmetric relations can be defined on A? We will show that it is 2 n(n+1)/2 Recall: for a relation to be symmetric, for each i, j, either both (a i,a j ) and (a j,a i ) are in R or both are not in R. Divide the job of selecting a symmetric relation R into the following tasks. S i (for 1  i  n) Either select or not select (a i,a i ) in R T (i,j) (for 1  i < j  n) Either select or not select both (a i,a j ) and (a j,a i ) in R Note that the number of different T (i,j) 's are (n-1)n/2

Symmetric Relations S i (for 1  i  n) Either select or not select (a i,a i ) in R T (i,j) (for 1  i<j  n) Either select or not select both (a i,a j ) and (a j,a i ) in R Each S i and T (i,j) can be done in exactly 2 ways. Thus the total number of symmetric relations on A are (2*2*…*2) * (2*2*….*2) (there are n 2’s in the first group, and ((n-1)n/2) 2’s in the second group) =2 n *2 n(n-1)/2 =2 n(n+1)/2

END OF SEGMENT

Simple Graphs How many simple undirected graphs are there with n vertices? This is similar to symmetric relations except that S i ’s are not there. T (i,j) (for 1  i < j  n) Either select or not select the edge {v i,v j } (= {v j,v i }) Note that the number of different T (i,j) 's are (n-1)n/2 Each T (i,j) can be done in exactly 2 ways. Thus the total number of simple graphs is 2*2*….*2 (there are ((n-1)n/2) 2’s ) =2 n(n-1)/2

END OF SEGMENT

Summary l Multiplication Rule l Remember the conditions under which multiplication rule is applicable, specially note the independence assumption Click on the picture

Follow-Up l Explain assignments. l List books, articles, electronic sources. l If appropriate, give an introduction to the next lecture in the series. Click on the picture