Probability & Queuing Theory
Probability & Queuing Theory
Probability & Queuing Theory
Submitted By
Kiran Subramaniam S
III Year BE/CSE
AC07UCS033
Probability
Probability
Definition:
An experiment is any well-defined operation or procedure that results in one of two or
more possible outcomes. An outcome is particular result of an experiment.
Counting Techniques:
For example, a coin and a die tossed together, the possible outcomes will be:
Situation I:
2
Probability
Where r ≤ n
Example:
How many three-digit numbers can be formed from the digits 1, 2, 4, 5 and 9 without
replacement?
Solution:
n = 5 and r = 3
Situation 2:
Example:
Arrange the license plate with 3 alphabets and 3 digits with replacement.
Solution:
Situation 3:
For n non-distinct items out of which n1 are of one kind, n2 are of another kind,
……, nk are of another, and n1 + n2 + …………… + nk = n, the number of
permutations of all n items is:
3
Probability
Example:
Find the possible permutations of 7558.
Solution:
n = 4 (7558),
n1 = 1 (one 7),
n2 = 2 (two 5), and
n3 = 1 (one 8).
Situation 4:
When the items are arranged in a circle, two arrangements are not considered
different, unless corresponding items of both are preceded or followed by a
different item.
= (n – 1)!
A B C D B C D A
B C A B
A D C D
Example:
Arrange 5 different trees in a circle:
Solution:
n = 5 trees
= (n – 1)!
= (5 – 1)! = 4! = 24 ways
4
Probability
Example:
In how many ways five students can be selected from a group of 12 students?
Solution:
n = 12; r = 5
If an experiment consists of a toss of a fair die and the numbers are of interest, the
possibility space would be:
S = {1, 2, 3, 4, 5, 6}
If the interest is whether the number is even or odd, the possibility space would
be:
S = {even, odd}
5
Probability
(b) Event: A subset of a possibility space is called an event and is usually denoted by
first few capital letters A, B, C, ……… For example, a coin is tossed, the sample
space is S = {H, T} and the subset A = {H} is the event when a head occurs.
Take another example, two coins are tossed. The sample space is S = {HH, HT,
TH, TT} and the subset B = {HH, HT, TH} is the event that at least one head
appears when two coins are tossed.
(i) Simple Event: is the subset if it contains only one outcome of the
possibility space.
(ii) Compound Event: is the subset if it contains more than one outcomes of
the possibility space.
(iii) Null Event: is a subset containing no outcomes. It is also called
‘impossible event’.
(iv) Sure Event: It is also called ‘certain event’. It is a subset containing all
outcomes of the possibility space.
Example:
Two coins are tossed. List all the possible events or subsets of the possibility space.
Solution:
S = {HH, HT, TH, TT}
n(s) = 4
6
Probability
E1 = { } Null Event
E2 = {HH}
E3 = {HT} Simple Events
E4 = {TH}
E5 = {TT}
E6 = {HH, HT}
E7 = {HH, TH}
E8 = {HH, TT}
E9 = {HT, TH}
E10 = {HT, TT}
E11 = {TH, TT} Compound Events
E12 = {HH, HT, TH}
E13 = {HH, HT, TT}
E14 = {HH, TH, TT}
E15 = {HT, TH, TT}
E16 = {HH, HT, TH, TT} Sure Event
S S
E5 =
{TT}
Event E5 Event
7
Probability
(d) Mutually Exclusive Events: Two events A and B are mutually exclusive if they
have no outcomes in common and therefore they cannot happen together.
Mutually exclusive events are also known as disjoint events.
Non-mutually exclusive events are the vice versa of the above definition and are
also known as over-lapping events.
S S
A B A B
For example, in case of two tossed coins, E6 and E7 are not mutually exclusive
events, because both events have an outcome HH in common. However, E6 and
E11 are two mutually exclusive events because no single outcome is common.
(e) Composite Events: For two events A and B, a composite event is defined as a set
of outcome of either A or B or both A and B and therefore at least one of two
events must occur. The composite event of A and B is written as AUB, or A or B.
(f) Joint Events: For two events, A and B, a joint event is defined as a set of
common outcomes of A and B and therefore both the events must occur together.
The joint event of A and B is written as ‘A and B’ or ‘A∩B’.
E6 ∩ E7 = {HH}
Probability Theory:
8
Probability
2. The probability of any event must satisfy the following two conditions.
(a) Classical Approach: It is the approach in which probabilities are assigned to the
events before the experiment is actually performed and therefore, such
probabilities are also called ‘a priori’ probabilities.
If the possibility space of the experiment is finite, and if each outcome of the
possibility space is equally likely to occur, then the probability of event A:
Example:
Two coins are tossed once, what is the probability that two heads will appear?
Solution:
S = {HH, HT, TH, TT}
n(S) = 4
Event = Two head appear
i.e., n(A) = 1
9
Probability
(b) Relative Frequency Approach: This approach is applied when the possibility
spaces are infinite, or the outcomes cannot be assumed equally likely.
and normally this estimate is called the probability of the event A and is written
as:
Example:
A die has been rolled 360 times and ‘Six’ has been observed 63 times. Estimate the
probability of occurring a ‘Six’ when the die is to be rolled once again.
Solution:
m = 63
n = 360
10
Probability
Example:
A coin is tossed 3 times. Find the probability of getting at least one tail.
Solution:
Number of possible outcomes in S = n(S) = 23 = 8
Let A = At least one tail appears
Then = No tail appears = All heads appear
(the only outcome with all heads)
1. When two events are given, the occurrence of the first event may or may not have
an effect on the occurrence of the second event.
2. When the occurrence of one of the two events has no effect on the probability of
the occurrence of the other event, the two events are called ‘Independent Events’.
3. On the other hand, when the occurrence of first event has some effect on the
probability of occurrence of second event, the second event is said to be
‘Dependant’ on the first event.
Conditional Probability:
If there are two events A and B such that the probability of event B depends on the
occurrence or non-occurrence of the event A, then the probability of event B occurs when
the event A occurs is called the ‘conditions probability of event B given event A’ and is
written as:
and
11
Probability
Example:
A black card is drawn from an ordinary deck of 52 playing cards. What is the probability
that it is of spade (♠) suit?
Solution:
Let B = Black card drawn
and S = Spade card drawn
Since the card drawn is black (event B has occurred), and there are 13 spade cards in 26
black cards, therefore:
or
When two events A and B are mutually exclusive, their joint probability is zero:
P(A∩B) = 0
Example:
In a graduate college, there are 500 male and female students learning B.Sc and B.Com.
The break up is as follows:
12
Probability
What is the probability that a randomly selected student is (i) a female B.Sc student, and
(ii) a male B.Com student?
Solution:
(i) a female B.Sc student:
or
13
Probability
Example:
A card is drawn from a pack of 52 cards. What is the probability that:
Solution:
(i) it is either Ace or King:
P(CUD)
Baye’s Theorem:
14
Probability
Where i = 1, 2, 3, 4, ……., n
3. P(Ai) are called ‘prior probabilities’ and P(Ai/B) are called ‘posterior
probabilities’. Thus Baye’s Theorem is a process to revise the prior probabilities
using additional sample information and get the posterior probabilities.
15