SlideShare a Scribd company logo
COUNTING, MATHEMATICAL
INDUCTION AND DISCRETE
PROBABILITY
BY: SURBHI SAROHA
SYLLABUS
• Basics of Counting
• Pigeonhole Principal
• Permutations and Combinations
• Inclusion-Exclusion Principle
• Mathematical Induction
• Probability
• Bayes’ Theorem
BASICS OF COUNTING
• Assume we have a set of objects with certain properties.
• • Counting is used to determine the number of these objects.
• Examples:
• • Number of available phone numbers with 7 digits in the local calling area
• • Number of possible match starters (football, basketball) given the number of team members and their
positions
• Approach: – simplify the solution by decomposing the problem
• • Two basic decomposition rules:
• – Product rule • A count decomposes into a sequence of dependent counts (“each element in the first
count is associated with all elements of the second count”)
• – Sum rule • A count decomposes into a set of independent counts (“elements of counts are
alternatives”)
PIGEONHOLE PRINCIPAL
• Assume you have a set of objects and a set of bins used to store objects.
• • The pigeonhole principle states that if there are more objects than bins then there is at
least one bin with more than one object.
• • Example: 7 balls and 5 bins to store them
• • At least one bin with more than 1 ball exists.
EXAMPLE:
• • How many students, each of whom comes from one of the 50 states, must
be enrolled in a university to guaranteed that there are at least 100 who come
from the same state?
• Answer:
• • Let there by 50 boxes, one per state.
• • We want to find the minimal N so that N/50=100.
• • Letting N=5000 is too much, since the remainder is 0.
• • We want a remainder of 1 so that let N=50*99+1=4951
GENERALIZED PIGEONHOLE PRINCIPLE THEOREM
• If N objects are placed into k bins then there is at least one bin containing at
least N / k objects.
• Example.
• Assume 100 people. Can you tell something about the number of people
born in the same month. • Yes. There exists a month in which at least
• 100 / 12 = 8.3 = 9 people were born.
PERMUTATIONS
• A permutation of a set of distinct objects is an ordered arrangement of the
objects.
• Since the objects are distinct, they cannot be selected more than once.
• Furthermore, the order of the arrangement matters.
• Example:
• • Assume we have a set S with n elements.
• S={a,b,c}.
• • Permutations of S:
• • a b c a c b b a c b c a c a b c b a
EXAMPLE 1
• • How many permutations of letters {a,b,c} are there?
• • Number of permutations is:
• P(n,n) =P(3,3) =3! = 6
• • Verify: abc acb bac bca cab cba
EXAMPLE 2
• • How many permutations of letters A B C D E F G H
contain a substring ABC.
• Idea: consider ABC as one element and D,E,F,G,H as other
5 elements for the total of 6 elements.
• Then we need to count the number of permutation of
these elements.
• 6! = 720
EXAMPLE:
• Suppose that there are eight runners in a race. The winner
receives a gold medal, the second-place finisher receives a silver
medal, and the third-place finisher receives a bronze medal. How
many different ways are there to award these medals, if all
possible outcomes of the race can occur?
• Answer:
• note that the runners are distinct and that the medals are ordered.
• The solution is P(8,3) = 8 * 7 * 6 = 8! / (8-3)! = 336.
COMBINATIONS
• A k-combination of elements of a set is an unordered selection of k elements
from the set.
• Thus, a k-combination is simply a subset of the set with k elements.
• Example: • 2-combinations of the set {a,b,c}
COMBINATIONS
Example:
• We need to create a team of 5 player for the competion out of 10 team members. How
many different teams is it possible to create?
Answer:
• When creating a team we do not care about the order in which players were picked.
It is is important that the player is in.
Because of that we need to consider unordered sets of combinations.
• C(10,5) = 10!/(10-5)!5! = (10.9.8.7.6) / (5 4 3 2 1) = 2.3.2.7.3= 6.14.3= 6.42= 252
INCLUSION-EXCLUSION PRINCIPLE
• Used in counts where the decomposition yields two count tasks with overlapping elements.
• • If we used the sum rule some elements would be counted twice Inclusion-exclusion principle: uses a
sum rule and then corrects for the overlapping elements.
• We used the principle for the cardinality of the set union.
MATHEMATICAL INDUCTION
• Mathematical Induction is a mathematical technique which is used to prove a
statement, a formula or a theorem is true for every natural number.
• The technique involves two steps to prove a statement, as stated below −
• Step 1(Base step) − It proves that a statement is true for the initial value.
• Step 2(Inductive step) − It proves that if the statement is true for the
nth iteration (or number n), then it is also true for (n+1)th iteration ( or
number n+1).
PROBABILITY
• Probability can be conceptualized as finding the chance of occurrence of an
event.
• Mathematically, it is the study of random processes and their outcomes.
• The laws of probability have a wide applicability in a variety of fields like
genetics, weather forecasting, opinion polls, stock markets etc.
STEPS TO FIND THE PROBABILITY
• Step 1 − Calculate all possible outcomes of the
experiment.
• Step 2 − Calculate the number of favorable outcomes of
the experiment.
• Step 3 − Apply the corresponding probability formula.
THROWING A DICE
• When a dice is thrown, six possible outcomes can be on the top − 1,2,3,4,5,6.
• The probability of any one of the numbers is 1/6
• The probability of getting even numbers is 3/6 = 1/2
• The probability of getting odd numbers is 3/6 = 1/2
CONDITIONAL PROBABILITY
• The conditional probability of an event B is the probability that the event will
occur given an event A has already occurred. This is written as P(B|A).
• Mathematically − P(B|A)=P(A∩B)/P(A)
• If event A and B are mutually exclusive, then the conditional probability of
event B after the event A will be the probability of event B that is P(B).
PROBLEM 1
• In a country 50% of all teenagers own a cycle and 30% of all teenagers own a bike and
cycle. What is the probability that a teenager owns bike given that the teenager owns a
cycle?
• Solution
• Let us assume A is the event of teenagers owning only a cycle and B is the event of
teenagers owning only a bike.
• So, P(A)=50/100=0.5 and P(A∩B)=30/100=0.3 from the given problem.
• P(B|A)=P(A∩B)/P(A)=0.3/0.5=0.6
• Hence, the probability that a teenager owns bike given that the teenager owns a cycle is
60%.
BAYES’ THEOREM
• Bayes' theorem is stated mathematically as the following equation
THANK YOU

More Related Content

What's hot

Combinatorics
CombinatoricsCombinatorics
Combinatorics
Rafay Farooq
 
Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)
Ikhtiar Khan Sohan
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logic
giki67
 
Dynamic pgmming
Dynamic pgmmingDynamic pgmming
Dynamic pgmming
Dr. C.V. Suresh Babu
 
CMSC 56 | Lecture 4: Rules of Inference
CMSC 56 | Lecture 4: Rules of InferenceCMSC 56 | Lecture 4: Rules of Inference
CMSC 56 | Lecture 4: Rules of Inference
allyn joy calcaben
 
Np hard
Np hardNp hard
Np hard
jesal_joshi
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
ForwardBlog Enewzletter
 
Rules of inference
Rules of inferenceRules of inference
Rules of inference
harman kaur
 
Unit 1 rules of inference
Unit 1  rules of inferenceUnit 1  rules of inference
Unit 1 rules of inference
raksharao
 
Proof by contradiction
Proof by contradictionProof by contradiction
Proof by contradiction
GC University Fsd
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
Rushdi Shams
 
Modular arithmetic
Modular arithmeticModular arithmetic
Modular arithmetic
Janani S
 
CMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and StrategyCMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and Strategy
allyn joy calcaben
 
Proofs by contraposition
Proofs by contrapositionProofs by contraposition
Proofs by contraposition
Abdur Rehman
 
Logical equivalence, laws of logic
Logical equivalence, laws of logicLogical equivalence, laws of logic
Logical equivalence, laws of logic
Lakshmi R
 
Pigeonhole Principle
Pigeonhole PrinciplePigeonhole Principle
Pigeonhole Principle
nielsoli
 
Mathematical Induction
Mathematical InductionMathematical Induction
Mathematical Induction
Edelyn Cagas
 
Method of direct proof
Method of direct proofMethod of direct proof
Method of direct proof
Abdur Rehman
 
Functions in discrete mathematics
Functions in discrete mathematicsFunctions in discrete mathematics
Functions in discrete mathematics
Rachana Pathak
 
Automata theory - CFG and normal forms
Automata theory - CFG and normal formsAutomata theory - CFG and normal forms
Automata theory - CFG and normal forms
Akila Krishnamoorthy
 

What's hot (20)

Combinatorics
CombinatoricsCombinatorics
Combinatorics
 
Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logic
 
Dynamic pgmming
Dynamic pgmmingDynamic pgmming
Dynamic pgmming
 
CMSC 56 | Lecture 4: Rules of Inference
CMSC 56 | Lecture 4: Rules of InferenceCMSC 56 | Lecture 4: Rules of Inference
CMSC 56 | Lecture 4: Rules of Inference
 
Np hard
Np hardNp hard
Np hard
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Rules of inference
Rules of inferenceRules of inference
Rules of inference
 
Unit 1 rules of inference
Unit 1  rules of inferenceUnit 1  rules of inference
Unit 1 rules of inference
 
Proof by contradiction
Proof by contradictionProof by contradiction
Proof by contradiction
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Modular arithmetic
Modular arithmeticModular arithmetic
Modular arithmetic
 
CMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and StrategyCMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and Strategy
 
Proofs by contraposition
Proofs by contrapositionProofs by contraposition
Proofs by contraposition
 
Logical equivalence, laws of logic
Logical equivalence, laws of logicLogical equivalence, laws of logic
Logical equivalence, laws of logic
 
Pigeonhole Principle
Pigeonhole PrinciplePigeonhole Principle
Pigeonhole Principle
 
Mathematical Induction
Mathematical InductionMathematical Induction
Mathematical Induction
 
Method of direct proof
Method of direct proofMethod of direct proof
Method of direct proof
 
Functions in discrete mathematics
Functions in discrete mathematicsFunctions in discrete mathematics
Functions in discrete mathematics
 
Automata theory - CFG and normal forms
Automata theory - CFG and normal formsAutomata theory - CFG and normal forms
Automata theory - CFG and normal forms
 

Similar to Counting, mathematical induction and discrete probability

Discrete Math Ch5 counting + proofs
Discrete Math Ch5 counting + proofsDiscrete Math Ch5 counting + proofs
Discrete Math Ch5 counting + proofs
Amr Rashed
 
1 - Probabilty Introduction .ppt
1 - Probabilty Introduction .ppt1 - Probabilty Introduction .ppt
1 - Probabilty Introduction .ppt
Vivek Bhartiya
 
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhChapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
beshahashenafe20
 
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhChapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
beshahashenafe20
 
Combinatorics.ppt
Combinatorics.pptCombinatorics.ppt
Combinatorics.ppt
ssuserdc5a3d
 
sample space formation.pdf
sample space formation.pdfsample space formation.pdf
sample space formation.pdf
MuhammadAdeel91907
 
chapter five.pptx
chapter five.pptxchapter five.pptx
chapter five.pptx
AbebeNega
 
unit-3-permutation_combination.pptx
unit-3-permutation_combination.pptxunit-3-permutation_combination.pptx
unit-3-permutation_combination.pptx
Pradip738766
 
powerpoints probability.pptx
powerpoints probability.pptxpowerpoints probability.pptx
powerpoints probability.pptx
carrie mixto
 
Properties
PropertiesProperties
Properties
Univ. of Tripoli
 
Class 6 - Maths (Integers).pptx
Class 6 - Maths (Integers).pptxClass 6 - Maths (Integers).pptx
Class 6 - Maths (Integers).pptx
SadiqHameed2
 
counting techniques
counting techniquescounting techniques
counting techniques
Unsa Shakir
 
Probability And Random Variable Lecture(4)
Probability And Random Variable Lecture(4)Probability And Random Variable Lecture(4)
Probability And Random Variable Lecture(4)
University of Gujrat, Pakistan
 
CP Power Point.ppt
CP Power Point.pptCP Power Point.ppt
CP Power Point.ppt
SauravDash10
 
Permutation and Combination excellant.ppt
Permutation and Combination excellant.pptPermutation and Combination excellant.ppt
Permutation and Combination excellant.ppt
SauravDash10
 
powerpointfull-140924104315-phpapp02 (1).pdf
powerpointfull-140924104315-phpapp02 (1).pdfpowerpointfull-140924104315-phpapp02 (1).pdf
powerpointfull-140924104315-phpapp02 (1).pdf
MossolbEquiper
 
Dividing integers
Dividing integersDividing integers
Dividing integers
bweldon
 
Probability
ProbabilityProbability
Probability
Atiq Rehman
 
K MAP SIMPLIFICATION.pdf
K MAP SIMPLIFICATION.pdfK MAP SIMPLIFICATION.pdf
K MAP SIMPLIFICATION.pdf
MeenakshiKS22BCE1551
 
STRAND 1 NUMBERS.pptx CBC FOR GRADE 8 STUDENTS
STRAND 1  NUMBERS.pptx CBC FOR GRADE  8 STUDENTSSTRAND 1  NUMBERS.pptx CBC FOR GRADE  8 STUDENTS
STRAND 1 NUMBERS.pptx CBC FOR GRADE 8 STUDENTS
kimdan468
 

Similar to Counting, mathematical induction and discrete probability (20)

Discrete Math Ch5 counting + proofs
Discrete Math Ch5 counting + proofsDiscrete Math Ch5 counting + proofs
Discrete Math Ch5 counting + proofs
 
1 - Probabilty Introduction .ppt
1 - Probabilty Introduction .ppt1 - Probabilty Introduction .ppt
1 - Probabilty Introduction .ppt
 
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhChapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
 
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhChapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Chapter Five.ppthhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
 
Combinatorics.ppt
Combinatorics.pptCombinatorics.ppt
Combinatorics.ppt
 
sample space formation.pdf
sample space formation.pdfsample space formation.pdf
sample space formation.pdf
 
chapter five.pptx
chapter five.pptxchapter five.pptx
chapter five.pptx
 
unit-3-permutation_combination.pptx
unit-3-permutation_combination.pptxunit-3-permutation_combination.pptx
unit-3-permutation_combination.pptx
 
powerpoints probability.pptx
powerpoints probability.pptxpowerpoints probability.pptx
powerpoints probability.pptx
 
Properties
PropertiesProperties
Properties
 
Class 6 - Maths (Integers).pptx
Class 6 - Maths (Integers).pptxClass 6 - Maths (Integers).pptx
Class 6 - Maths (Integers).pptx
 
counting techniques
counting techniquescounting techniques
counting techniques
 
Probability And Random Variable Lecture(4)
Probability And Random Variable Lecture(4)Probability And Random Variable Lecture(4)
Probability And Random Variable Lecture(4)
 
CP Power Point.ppt
CP Power Point.pptCP Power Point.ppt
CP Power Point.ppt
 
Permutation and Combination excellant.ppt
Permutation and Combination excellant.pptPermutation and Combination excellant.ppt
Permutation and Combination excellant.ppt
 
powerpointfull-140924104315-phpapp02 (1).pdf
powerpointfull-140924104315-phpapp02 (1).pdfpowerpointfull-140924104315-phpapp02 (1).pdf
powerpointfull-140924104315-phpapp02 (1).pdf
 
Dividing integers
Dividing integersDividing integers
Dividing integers
 
Probability
ProbabilityProbability
Probability
 
K MAP SIMPLIFICATION.pdf
K MAP SIMPLIFICATION.pdfK MAP SIMPLIFICATION.pdf
K MAP SIMPLIFICATION.pdf
 
STRAND 1 NUMBERS.pptx CBC FOR GRADE 8 STUDENTS
STRAND 1  NUMBERS.pptx CBC FOR GRADE  8 STUDENTSSTRAND 1  NUMBERS.pptx CBC FOR GRADE  8 STUDENTS
STRAND 1 NUMBERS.pptx CBC FOR GRADE 8 STUDENTS
 

More from SURBHI SAROHA

Cloud Computing (Infrastructure as a Service)UNIT 2
Cloud Computing (Infrastructure as a Service)UNIT 2Cloud Computing (Infrastructure as a Service)UNIT 2
Cloud Computing (Infrastructure as a Service)UNIT 2
SURBHI SAROHA
 
Management Information System(Unit 2).pptx
Management Information System(Unit 2).pptxManagement Information System(Unit 2).pptx
Management Information System(Unit 2).pptx
SURBHI SAROHA
 
Searching in Data Structure(Linear search and Binary search)
Searching in Data Structure(Linear search and Binary search)Searching in Data Structure(Linear search and Binary search)
Searching in Data Structure(Linear search and Binary search)
SURBHI SAROHA
 
Management Information System(UNIT 1).pptx
Management Information System(UNIT 1).pptxManagement Information System(UNIT 1).pptx
Management Information System(UNIT 1).pptx
SURBHI SAROHA
 
Introduction to Cloud Computing(UNIT 1).pptx
Introduction to Cloud Computing(UNIT 1).pptxIntroduction to Cloud Computing(UNIT 1).pptx
Introduction to Cloud Computing(UNIT 1).pptx
SURBHI SAROHA
 
JAVA (UNIT 5)
JAVA (UNIT 5)JAVA (UNIT 5)
JAVA (UNIT 5)
SURBHI SAROHA
 
DBMS (UNIT 5)
DBMS (UNIT 5)DBMS (UNIT 5)
DBMS (UNIT 5)
SURBHI SAROHA
 
DBMS UNIT 4
DBMS UNIT 4DBMS UNIT 4
DBMS UNIT 4
SURBHI SAROHA
 
JAVA(UNIT 4)
JAVA(UNIT 4)JAVA(UNIT 4)
JAVA(UNIT 4)
SURBHI SAROHA
 
OOPs & C++(UNIT 5)
OOPs & C++(UNIT 5)OOPs & C++(UNIT 5)
OOPs & C++(UNIT 5)
SURBHI SAROHA
 
OOPS & C++(UNIT 4)
OOPS & C++(UNIT 4)OOPS & C++(UNIT 4)
OOPS & C++(UNIT 4)
SURBHI SAROHA
 
DBMS UNIT 3
DBMS UNIT 3DBMS UNIT 3
DBMS UNIT 3
SURBHI SAROHA
 
JAVA (UNIT 3)
JAVA (UNIT 3)JAVA (UNIT 3)
JAVA (UNIT 3)
SURBHI SAROHA
 
Keys in dbms(UNIT 2)
Keys in dbms(UNIT 2)Keys in dbms(UNIT 2)
Keys in dbms(UNIT 2)
SURBHI SAROHA
 
DBMS (UNIT 2)
DBMS (UNIT 2)DBMS (UNIT 2)
DBMS (UNIT 2)
SURBHI SAROHA
 
JAVA UNIT 2
JAVA UNIT 2JAVA UNIT 2
JAVA UNIT 2
SURBHI SAROHA
 
Database Management System(UNIT 1)
Database Management System(UNIT 1)Database Management System(UNIT 1)
Database Management System(UNIT 1)
SURBHI SAROHA
 
Object-Oriented Programming with Java UNIT 1
Object-Oriented Programming with Java UNIT 1Object-Oriented Programming with Java UNIT 1
Object-Oriented Programming with Java UNIT 1
SURBHI SAROHA
 
Database Management System(UNIT 1)
Database Management System(UNIT 1)Database Management System(UNIT 1)
Database Management System(UNIT 1)
SURBHI SAROHA
 
OOPs & C++ UNIT 3
OOPs & C++ UNIT 3OOPs & C++ UNIT 3
OOPs & C++ UNIT 3
SURBHI SAROHA
 

More from SURBHI SAROHA (20)

Cloud Computing (Infrastructure as a Service)UNIT 2
Cloud Computing (Infrastructure as a Service)UNIT 2Cloud Computing (Infrastructure as a Service)UNIT 2
Cloud Computing (Infrastructure as a Service)UNIT 2
 
Management Information System(Unit 2).pptx
Management Information System(Unit 2).pptxManagement Information System(Unit 2).pptx
Management Information System(Unit 2).pptx
 
Searching in Data Structure(Linear search and Binary search)
Searching in Data Structure(Linear search and Binary search)Searching in Data Structure(Linear search and Binary search)
Searching in Data Structure(Linear search and Binary search)
 
Management Information System(UNIT 1).pptx
Management Information System(UNIT 1).pptxManagement Information System(UNIT 1).pptx
Management Information System(UNIT 1).pptx
 
Introduction to Cloud Computing(UNIT 1).pptx
Introduction to Cloud Computing(UNIT 1).pptxIntroduction to Cloud Computing(UNIT 1).pptx
Introduction to Cloud Computing(UNIT 1).pptx
 
JAVA (UNIT 5)
JAVA (UNIT 5)JAVA (UNIT 5)
JAVA (UNIT 5)
 
DBMS (UNIT 5)
DBMS (UNIT 5)DBMS (UNIT 5)
DBMS (UNIT 5)
 
DBMS UNIT 4
DBMS UNIT 4DBMS UNIT 4
DBMS UNIT 4
 
JAVA(UNIT 4)
JAVA(UNIT 4)JAVA(UNIT 4)
JAVA(UNIT 4)
 
OOPs & C++(UNIT 5)
OOPs & C++(UNIT 5)OOPs & C++(UNIT 5)
OOPs & C++(UNIT 5)
 
OOPS & C++(UNIT 4)
OOPS & C++(UNIT 4)OOPS & C++(UNIT 4)
OOPS & C++(UNIT 4)
 
DBMS UNIT 3
DBMS UNIT 3DBMS UNIT 3
DBMS UNIT 3
 
JAVA (UNIT 3)
JAVA (UNIT 3)JAVA (UNIT 3)
JAVA (UNIT 3)
 
Keys in dbms(UNIT 2)
Keys in dbms(UNIT 2)Keys in dbms(UNIT 2)
Keys in dbms(UNIT 2)
 
DBMS (UNIT 2)
DBMS (UNIT 2)DBMS (UNIT 2)
DBMS (UNIT 2)
 
JAVA UNIT 2
JAVA UNIT 2JAVA UNIT 2
JAVA UNIT 2
 
Database Management System(UNIT 1)
Database Management System(UNIT 1)Database Management System(UNIT 1)
Database Management System(UNIT 1)
 
Object-Oriented Programming with Java UNIT 1
Object-Oriented Programming with Java UNIT 1Object-Oriented Programming with Java UNIT 1
Object-Oriented Programming with Java UNIT 1
 
Database Management System(UNIT 1)
Database Management System(UNIT 1)Database Management System(UNIT 1)
Database Management System(UNIT 1)
 
OOPs & C++ UNIT 3
OOPs & C++ UNIT 3OOPs & C++ UNIT 3
OOPs & C++ UNIT 3
 

Recently uploaded

clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
sayalidalavi006
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 

Recently uploaded (20)

clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 

Counting, mathematical induction and discrete probability

  • 1. COUNTING, MATHEMATICAL INDUCTION AND DISCRETE PROBABILITY BY: SURBHI SAROHA
  • 2. SYLLABUS • Basics of Counting • Pigeonhole Principal • Permutations and Combinations • Inclusion-Exclusion Principle • Mathematical Induction • Probability • Bayes’ Theorem
  • 3. BASICS OF COUNTING • Assume we have a set of objects with certain properties. • • Counting is used to determine the number of these objects. • Examples: • • Number of available phone numbers with 7 digits in the local calling area • • Number of possible match starters (football, basketball) given the number of team members and their positions • Approach: – simplify the solution by decomposing the problem • • Two basic decomposition rules: • – Product rule • A count decomposes into a sequence of dependent counts (“each element in the first count is associated with all elements of the second count”) • – Sum rule • A count decomposes into a set of independent counts (“elements of counts are alternatives”)
  • 4. PIGEONHOLE PRINCIPAL • Assume you have a set of objects and a set of bins used to store objects. • • The pigeonhole principle states that if there are more objects than bins then there is at least one bin with more than one object. • • Example: 7 balls and 5 bins to store them • • At least one bin with more than 1 ball exists.
  • 5. EXAMPLE: • • How many students, each of whom comes from one of the 50 states, must be enrolled in a university to guaranteed that there are at least 100 who come from the same state? • Answer: • • Let there by 50 boxes, one per state. • • We want to find the minimal N so that N/50=100. • • Letting N=5000 is too much, since the remainder is 0. • • We want a remainder of 1 so that let N=50*99+1=4951
  • 6. GENERALIZED PIGEONHOLE PRINCIPLE THEOREM • If N objects are placed into k bins then there is at least one bin containing at least N / k objects. • Example. • Assume 100 people. Can you tell something about the number of people born in the same month. • Yes. There exists a month in which at least • 100 / 12 = 8.3 = 9 people were born.
  • 7. PERMUTATIONS • A permutation of a set of distinct objects is an ordered arrangement of the objects. • Since the objects are distinct, they cannot be selected more than once. • Furthermore, the order of the arrangement matters. • Example: • • Assume we have a set S with n elements. • S={a,b,c}. • • Permutations of S: • • a b c a c b b a c b c a c a b c b a
  • 8. EXAMPLE 1 • • How many permutations of letters {a,b,c} are there? • • Number of permutations is: • P(n,n) =P(3,3) =3! = 6 • • Verify: abc acb bac bca cab cba
  • 9. EXAMPLE 2 • • How many permutations of letters A B C D E F G H contain a substring ABC. • Idea: consider ABC as one element and D,E,F,G,H as other 5 elements for the total of 6 elements. • Then we need to count the number of permutation of these elements. • 6! = 720
  • 10. EXAMPLE: • Suppose that there are eight runners in a race. The winner receives a gold medal, the second-place finisher receives a silver medal, and the third-place finisher receives a bronze medal. How many different ways are there to award these medals, if all possible outcomes of the race can occur? • Answer: • note that the runners are distinct and that the medals are ordered. • The solution is P(8,3) = 8 * 7 * 6 = 8! / (8-3)! = 336.
  • 11. COMBINATIONS • A k-combination of elements of a set is an unordered selection of k elements from the set. • Thus, a k-combination is simply a subset of the set with k elements. • Example: • 2-combinations of the set {a,b,c}
  • 12. COMBINATIONS Example: • We need to create a team of 5 player for the competion out of 10 team members. How many different teams is it possible to create? Answer: • When creating a team we do not care about the order in which players were picked. It is is important that the player is in. Because of that we need to consider unordered sets of combinations. • C(10,5) = 10!/(10-5)!5! = (10.9.8.7.6) / (5 4 3 2 1) = 2.3.2.7.3= 6.14.3= 6.42= 252
  • 13. INCLUSION-EXCLUSION PRINCIPLE • Used in counts where the decomposition yields two count tasks with overlapping elements. • • If we used the sum rule some elements would be counted twice Inclusion-exclusion principle: uses a sum rule and then corrects for the overlapping elements. • We used the principle for the cardinality of the set union.
  • 14. MATHEMATICAL INDUCTION • Mathematical Induction is a mathematical technique which is used to prove a statement, a formula or a theorem is true for every natural number. • The technique involves two steps to prove a statement, as stated below − • Step 1(Base step) − It proves that a statement is true for the initial value. • Step 2(Inductive step) − It proves that if the statement is true for the nth iteration (or number n), then it is also true for (n+1)th iteration ( or number n+1).
  • 15. PROBABILITY • Probability can be conceptualized as finding the chance of occurrence of an event. • Mathematically, it is the study of random processes and their outcomes. • The laws of probability have a wide applicability in a variety of fields like genetics, weather forecasting, opinion polls, stock markets etc.
  • 16. STEPS TO FIND THE PROBABILITY • Step 1 − Calculate all possible outcomes of the experiment. • Step 2 − Calculate the number of favorable outcomes of the experiment. • Step 3 − Apply the corresponding probability formula.
  • 17. THROWING A DICE • When a dice is thrown, six possible outcomes can be on the top − 1,2,3,4,5,6. • The probability of any one of the numbers is 1/6 • The probability of getting even numbers is 3/6 = 1/2 • The probability of getting odd numbers is 3/6 = 1/2
  • 18. CONDITIONAL PROBABILITY • The conditional probability of an event B is the probability that the event will occur given an event A has already occurred. This is written as P(B|A). • Mathematically − P(B|A)=P(A∩B)/P(A) • If event A and B are mutually exclusive, then the conditional probability of event B after the event A will be the probability of event B that is P(B).
  • 19. PROBLEM 1 • In a country 50% of all teenagers own a cycle and 30% of all teenagers own a bike and cycle. What is the probability that a teenager owns bike given that the teenager owns a cycle? • Solution • Let us assume A is the event of teenagers owning only a cycle and B is the event of teenagers owning only a bike. • So, P(A)=50/100=0.5 and P(A∩B)=30/100=0.3 from the given problem. • P(B|A)=P(A∩B)/P(A)=0.3/0.5=0.6 • Hence, the probability that a teenager owns bike given that the teenager owns a cycle is 60%.
  • 20. BAYES’ THEOREM • Bayes' theorem is stated mathematically as the following equation