2020 21sjit PQT QB
2020 21sjit PQT QB
2020 21sjit PQT QB
1 3 1
Let A and B be two events such that P(A) = , P(B) = , P(A B) = .
3 4 4
Compute P A B and P A B .
3.
(May/June
2019)
1
P A B 1
P A B 4 .
P( B) 3 3
4
P A B P B P A B
3 1 2 1
.
4 4 4 2
4. State Baye’s Theorem on Probability.
If E1, E2 …En are a set of exhaustive and mutually exclusive events associated with a random
experiment and A is any other event associated with Ei.
P( Ei ) P( A / Ei )
Then P( Ei / A) n , i=1,2,..n
P( Ei ) P( A / Ei )
i 1
5. Let X be a discrete R.V. with probability mass function
x
, x = 1, 2, 3, 4 X
P(X = x) = 10 . Compute P(X < 3) and E . (May/June 2016)
0, otherwise 2
X= x 1 2 3 4
P(X=x) 1/10 2/10 3/10 4/10
1 2 3
P ( X 3) P ( X 1) P ( X 2)
10 10 10
a(1 x )dx 1 a x 3 1
2
2 2
5 3
2
3
1
a 5 2 1 42a 1 a
3 3 42
1 23
4
(1 x 2 ) 1 x3 43
4
31
P X 4 dx x 4
2
2
42 42 3 2 42 3 3 63
0, x<0
8. The CDF of a continuous random variable is given by F(x) = -
x
1 - e , x 0
5
tr
E X r r' coefficient of in M X t
r!
t2
2
E X 2 2' coefficient of in M X t .
2! 9
x2e-x th
13. A continuous RV X has the pdf f(x) = 2 , x > 0 Find the r moment of X about the
origin.
r E[ X ] x
r r
f ( x)dx
x 2 e x 1 1
x r
dx x r 2e x dx x( r 3)1e x dx
0
2 20 20
1
x
n 1 x
(r 3) e dx (n)
2 0
1
(r 2)! if n is positive integer ( n) ( n 1)!
2
x 9 x
2 1
P X x n Cx p q x n x
9C x , x 0,1, 2,3,...9
3 3
0 9 9
2 1 1
P X 0 9C0
3 3 3
1 8
2 1 2 1 2
P X 1 9C1 9 8 7
3 3 3 3 3
1 1
15. If X and Y are independent binomial variates following B 5, and B 7, respectively
2 2
find P X + Y = 3
.
1 1
Given X ~ B 5, , Y ~ B 7,
2 2
By additive property, X Y is also a binomial variate with parameters
1
n1 n2 12 & p
2
1
X Y ~ B 12,
2
P Z z nCz p q ; z 0,1, 2,3.....n
z n z
3 9
1 1 55
P X Y 3 12C3 10
2 2 2
16. One percent of jobs arriving at a computer system need to wait until weekends for
scheduling, owing to core-size limitations. Find the probability that among a sample of 200
jobs there are no jobs that have to wait until weekends.
Let X be the Poisson random variable denoting the no. of jobs that have to wait
p = 1%= 0.01, n = 200, = np = (200)(0.01) =2,
e x
By Poisson distribution, P( X x) , x 0,1, 2,.....
x!
e2 20
P( X 0) e2 0.1353
0!
17. If X is a Geometric variate, taking values 1, 2, 3,...., , find P(X is odd). (April/May 17)
We know that for Geometric Distribution
P(X x) q x 1p, x 1,2,3,
P Xis odd P(X 1,3,5, )
P X 1 P X 3 P X 5 P X 7
p q2 p q4 p q6 p
p 1 q2 q4 q6
St. Joseph’s Institute of Technology Page No 4
Subject Name & Code: Probability and Queueing Theory & MA8402 Question Bank 2020 - 2021
p(1 q 2 ) 1
p
1 q 1 .
(1 q ) (1 q) 1 q 1 q
2
4
18. If X is a Uniformly distributed R.V with mean 1 and variance find P(X<0).
3
ab
Mean = 1 a b 2 --------------(1)
2
b a
2
4
variance = b a 4 ---------------(2)
12 3
(1) + (2) 2b = 6 b = 3
(1) – (2) 2a = -2 a = -1
Probability density function of Uniform distribution is
1 1
, a xb , 1 x 3
f ( x) b a f ( x) 4
0 , otherwise
0 , otherwise
0 0
1 1 0 1
P(X 0) f (x)dx dx x 1 .
1 1
4 4 4
19. Suppose the length of life of an appliance has an exponential distribution with mean 10
years. What is the probability that the average life time of a random sample of the
appliances is at least 10.5 years?
Mean of the exponential distribution = E(X) = 1/10 = 1/
x
1 x 1 10
, f (x) e , x 0 f (x) e , x 0
10 10
x
1 10
P(X 10.5) f (x)dx e dx e 1.05 0.3499
10.5 10.5
10
20. X is a normal variate with mean = 30 and S.D = 5. Find P 26 X 40
X follows N(30, 5) 30 & 5
X
Let Z be the standard normal variate
26 30 40 30
P 26 X 40 P Z
5 5
P 0.8 Z 2 P 0.8 Z 0 P 0 Z 2
P 0 Z 0.8 0 Z 2 0.2881 0.4772 0.7653 .
PART – B
1. i) A bag contains 3 black and 4 white balls. Two balls are drawn at random one at a
time without replacement.
(1) What is the probability that the second ball drawn is white?
(2)What is the conditional probability that the first ball drawn is white if the second
ball is known to be white? (May/June 2019)
Solution:
3 4 4 3 2 2 4
(1) P(the second ball drawn is white) =
7 6 7 6 7 7 7
(2)P(the second ball is white / first ball drawn is white)
1 1
P( B1 ) P( B2 )
2 2
1) Let A be the event that a red ball is selected.
2 1
P( A / B1 ) , P( A / B2 )
3 3
P( B1 ) P( A / B1 )
1) P( ball is from B1 , given it is red) P( B1 / A)
P( B1 ) P( A / B1 ) P( B2 ) P( A / B2 )
1 2
2 3 2
1 2 1 1 3
2 3 2 3
2) Let C be the event that a red ball and a green ball are selected.
2C1 1C1 2
P(C / B1 )
3C 2 3
1C1 2C1 2
P(C / B2 )
3C 2 3
P( B1 was chosen given a red ball and a green ball were selected )
1 2
P( B1 ) P(C / B1 ) 2 3 1
P( B1 / C )
P( B1 ) P(C / B1 ) P( B2 ) P(C / B2 ) 1 2 1 2 3
2 3 2 3
3) Let D be the event that a green ball is selected.
1
P( D / B1 )
3
St. Joseph’s Institute of Technology Page No 6
Subject Name & Code: Probability and Queueing Theory & MA8402 Question Bank 2020 - 2021
2
P( D / B2 )
3
1 2
P( B2 ) P( D / B2 ) 2 3 2
P( B2 / D)
P( B1 ) P( D / B1 ) P( B2 ) P( D / B2 ) 1 1 1 2 3
2 3 2 3
4) Let E be the event that a white ball is selected.
The given two boxes does not contained a white ball, hence the prob is 0
iii) A random variable X has the following probability function:
X : 0 1 2 3 4 5 6 7
2 2 2
P X : 0 K 2K 2K 3K K 2K 7K + K
Find (i) K , (ii) Evaluate P X < 6 ,P X 6 and P 0 < X < 5 (iii) Determine the
distribution function of X. (iv) P 1.5 < X < 4.5 X > 2 (v) E 3X - 4 , Var(3X- 4)
1
(vi) If P X C > , find the minimum value of C. (April/May 2015)
2
Solution:
(i) We know that P( X x ) 1
i
i
7
P X x 1, K 2K 2K 3K K 2 2K 2 7K 2 K 1 10K2+9K−1=0
x 0
1
K or K 1 ( here K 1 is impossible, since P( X x) 0 )
10
1
K
10
The probability mass function is
X x 0 1 2 3 4 5 6 7
P( X x) 0 1 2 2 3 1 2 17
10 10 10 10 100 100 100
1 2 2 3 1 81
(ii) P X 6 P X 0 P X 1 ... P X 5
10 10 10 10 100 100
81 19
P X 6 1 P X 6 1
100 100
P 0 X 5 P X 1 P X 2 P X 3 P X 4 K 2 K 2 K 3K
8 4
8K
10 5
(iii) The distribution of X is given by FX x defined by FX x P X x
X x P( X x) FX x P X x
0 0 0 ,x 1
1 1 1
1 0+ = , 1 x 2
10 10 10
2 1 2 3
2 0+ + = , 2 x 3
10 10 10 10
1
(vi) To find the minimum value of C if P X C
2
X x P( X x) P( X x)
1
0 0 0<
2
1 1 1 1
1 0+ = <
10 10 10 2
1
here n r 4 e x x
r 31 1 1
dx (r 4)
r 3 !
n (n 1)!
60 6 6
4! 24
Putting r 1 , E ( X ) 1 4
6 6
5! 120
r 2 , E ( X 2 ) 2 20
6 6
2
Mean = E ( X ) 1 4 ; Variance = E ( X 2 ) E ( X ) 2 1
2
2 20 4 20 16 4
2
To find M.G.F
M X (t) E(e tX ) e
tx
f (x)dx
1 3 x
M X (t) e
tx
x e dx
6
1 3 tx x 1
60
x e dx x 3e(1 t)x dx
60
1 e(1 t)x 2 e
(1 t)x e(1 t)x e(1 t)x
x 3 3x 6x 3
6
(1 t) (1 t) (1 t) (1 t)
2 4
6 0
St. Joseph’s Institute of Technology Page No 9
Subject Name & Code: Probability and Queueing Theory & MA8402 Question Bank 2020 - 2021
(1 t)x
1 e(1t)x e(1t)x e(1t)x e
x3 3x 2 6x 6
6 (1 t) (1 t) 2
(1 t) 3
(1 t)4 0
1 6
(0) 4
6 (1 t)
1
M X (t)
(1 t)4
ii) A consulting firm rents cars from three rental agencies in the following manner: 20%
from agency D, 20% from agency E and 60% from agency F. If 10% cars from D,
12% of the cars from E and 4% of the cars from F have bad tyres, what is the
probability that the firm will get a car with bad tyres? Find the probability that a
car with bad tyres is rented from agency F. (May/June 2019)
Solution:
The event B represents the consulting firm rent cars have bad tyres
The event D represents the rent car from agency D
The event E represents the rent car from agency E
The event F represents the rent car from agency F
Given P(D) = 0.20, P(E) = 0.20 and P(F) = 0.60
P(Rent cars from agency D have bad tyres ) = P(B/D) = 0.10
P(Rent cars from agency E have bad tyres ) = P(B/E) = 0.12
P(Rent cars from agency F have bad tyres ) = P(B/F) = 0.04
1 7 1 [0.3164 0.175]
4 4 4
0.5086
2
P X 1
3
2
1 P X 1
3
2
1 P X 0
3
0 n 0
1 3 2
1 7C0
4 4 3
n
3 2
1
4 3
n
3 2
1
4 3
n n
3 1 3 1
n 3.8
4 3 4 3
n4
3 3 4 2 5 6
1 2 1 2 1 2 1
6C3 6C4 6C5 6C6 0.3196
3 3 3 3 3 3 3
Expected number of times atleast 3 dice to show 5 or 6 N P X 3 =729 X 0.3196
233.
3. i) 1
A random variable X has the probability mass function f (x) = x , x= 1,2,3,...
2
Find its (i) M.G.F (ii) Mean (iii) Variance.
Solution:
M.G.F= M X (t ) E (e tX )
x
1 et
= e f ( x) e x
tx tx
x 1 x 1 2 x 1 2
2 3 4
et et et et
= ...
2 2 2 2
et et et et
2 3
= 1 ...
2 2 2 2
1
et et
= 1
2 2
et
M.G.F= M X (t ) …………….. (1)
2 et
St. Joseph’s Institute of Technology Page No 11
Subject Name & Code: Probability and Queueing Theory & MA8402 Question Bank 2020 - 2021
M X (t )t 0 d e t (2 e )e t e2 (e ) 2
t t t t t
d
Mean = E(X)=
dx dx 2 e t 0 (2 e ) t 0
Variance = Var ( X ) E ( X ) E ( X )
2 2
Where
d 2e t (2 e t ) 2 e t e t 2(2 e t )(e t )
E( X 2 ) =
d
M ' X (t ) t 0
dx (2 e t ) 2 t 0
(2 e t ) 4
6
dx t 0
Variance = Var ( X ) E ( X 2 ) E ( X ) = 6-4 = 2.
2
ii) A component has an exponential time to failure distribution with mean of 10,000
hours.
(i) The component has already been in operation for its mean life. What is the
probability that it will fail by 15,000 hours?
(ii) At 15,000 hours the component is still in operation. What is the probability
that it will operate for another 5000 hours? (Nov/Dec 2015)
Solution:
Let X be the random variable denoting the time to failure of the component following
1 1
exponential distribution with Mean 10000 hours. 10,000
10,000
1
x
e 10,000 , x 0
The p.d.f. of X is f x 10, 000
0 , otherwise
(i) Probability that the component will fail by 15,000 hours given that it has already
been in operation for its mean life P X 15,000 / X 10,000
P 10,000 X 15,000
(1)
P X 10,000
15,000 x
P 10,000 X 15,000
1
10000
10,000
e 10000
dx
15000
x 15000
1 e 10000 10000
x
e
10000 1 10000
10000 10000
15000 10000 3
e 10000 e 10000 e 2 e 1 e 1 e 1.5 (2)
x
x
e 10000 10000
x
P X 10,000
1 1
e 10000
dx 1 e
10,000
10000 10000 10000
10000 10000
e e 1 e 1 (3)
Sub (2) & (3) in (1)
e1 e1.5 0.3679 0.2231
(1) P X 15,000 / X 10,000 0.3936 .
e1 0.3679
(ii) Probability that the component will operate for another 5000 hours given that
it is in operation 15,000 hours P X 20,000/ X 15,000
ax dx a dx (3a ax)dx 1
0 1 2
1 3
x2 x2 1
a a x 1 a 3x 1 a
2
2 0 2 2 2
(ii) CDF
If 0 x 1
x
x
x x2
x
x2
F ( x) f ( x) dx dx
0
2 4 0 4
If 1 x 2
x 1 x
x 1
F ( x)
f ( x) dx
0
2
dx dx
1
2
1
x2 x
x
x 1
4 0 2 1 2 4
If 2 x 3
3 x
x 1 2 x
x 1
F ( x)
f ( x) dx
0
2
dx dx dx
1
2 2
2 2
1 x
x 2 x 3x x 2
2
4 0 2 1 2 4 2
3x x 2 5
2 4 4
30 dx 30 x x 1230 0.4
15 30 15 30
1 1 1
f ( x)dx f ( x)dx
15 30
dx 9 24
9 24 9
30 24
(ii)P that he has to wait for the train for more than 10 minutes
P (0 x 5) (15 x 20)
5 20 5 20
1 1 1 10
f ( x)dx
f ( x)dx
dx dx x 0 x 15 0.3333
5 20
0 15 0
30 15
30 30 30
5. i) In a normal population with mean 15 and standard deviation 3.5, it is found that 647
observations exceed 16.25. What is the total number of observations in the
population? (April / May 17)
Solution:
Given that 15, 3.5, n 647
x 16.25
P X 16.25 P
16.25 15
P z P z 3.6
3.5
0.5 P 0 z 0.36 0.5 0.1406 0.3594
P X 16.25 N 647
647
N
0.3594
1800
t 0 1 qe
t
2
t 0
p
d 2 pet
M (0) 2
' "
d pet 1 q
2 X
dt 1 qet
dt
t 0 1 qe
t
2
t 0
p2
1
Mean 1'
p
2
1 q 1
q
2
Variance 2 2
'
2
'
1
p p p
Memoryless property of geometric distribution.
Statement:
If X is a random variable with geometric distribution, then X lacks memory, in the sense
that P X s t / X s P X t s, t 0 .
Proof:
The p.m.f of the geometric random variable X is P( X x) q x 1 p , x 1,2,3,....
P X s t X s P X s t
P X s t / X s (1)
P X s P X s
P X t q x 1
p qt p qt 1 p qt 2 p .... qt p 1 q q 2 q3 ....
x t 1
5 5
10 10 5 10
1 7
2 5
10 10
2 P X 2 1 P X 2 1 P 2 X 2
2 2 2
1 1 1
P 2 X 2 f ( x)dx dx dx x 2
2
2 2
10 10 2 10
1 4
2 2
10 10
3 Cumulative distribution function of X
If x 5
x x
F ( x)
f ( x)dx 0 dx 0
If 5 x 5
x5
x x
1 1
f ( x)dx 10 dx 10 x
x
F ( x) 5
5 5
10
If x 5
55
5 x 5
1 1
F ( x) f ( x)dx f ( x)dx dx 0 x 5
5
1
5 5 5
10 10 10
0 for x 5
x5
f ( x) for 5 x 5
10
1 for x 5
b a 5 (5)
2 2
100 25
(4)Var ( X ) .
12 12 12 3
x-1
3 1
ii) Let P X = x = , x = 1, 2, 3,.... be the probability mass function of the R.V.
4 4
X. Compute (1) P(X > 4) (2) P(X > 4/ X >2) (3) E(X) (4) Var ( X) (May/June 2016)
Solution:
1 P X 4 P X 5 P X 6 P X 7
3 1 x 1
3 1 4 1 5 1 6
P( X x)
X 5 X 5 4 4 4 4 4 4
1
4 4 4 4
4 1 4 1 4
3 1 1 3 1 3 1
1 4 4
4 4 4 4 4
2 P X 4 / X 2 P( X 2)
P X 3 P X 4 P X 5
x 1
3 1
P( X x)
X 3 X 3 4 4
3 1 1 1
2 3 4
4 4 4 4
3 1 1 1
2 2
1
4 4 4 4
2 1 2 1 2
3 1 1 3 1 3 1
1
4 4 4 4 4 4 4
1 1 4
3 E X 3
p 3
4
1
1 16 4
4)Var ( X ) 2 2 .
q 4
p 3 4 9 9
4
UNIT – II TWO DIMENSIONAL RANDOM VARIABLES
PART – A
1. Determine the value of the constant c if the joint density function of two discrete random
variables X and Y is given by p(x,y) = cxy, x = 1,2,3 and y = 1,2,3.
X/Y 1 2 3 p(y)
1 c 2c 3c 6c
2 2c 4c 6c 12c
3 3c 6c 9c 18c
p(x) 6c 12c 18c 36c
Since p(x,y) is the joint pdf of X and Y
p(x,y) ≥ 0 , for all x ,y
p(x, y) = 1
m n
36c = 1
1
c=
36
X/Y 1 2 3 p(y)
1 0.1 0.1 0.2 0.4
2 0.2 0.3 0.1 0.6
p(x) 0.3 0.4 0.3 1
X
2 4 PY(y)
Y
1 1/10 1.5/10 2.5/10
3 2/10 3/10 5/10
5 1/10 1.5/10 2.5/10
PX(x) 4/10 6/10 1
P( X 2 , Y 3) 2 / 10 2
P ( X = 2 / Y = 3) =
PY (3) 5 / 10 5
4. The joint probability mass function of X and Y is
X\Y 0 1 2
0 0.1 0.04 0.02
1 0.08 0.2 0.06
2 0.06 0.14 0.3
Check if X and Y are independent.
X\Y 0 1 2 pX(x)
0 0.1 0.04 0.02 0.16
1 0.08 0.2 0.06 0.34
2 0.06 0.14 0.3 0.5
pY(y) 0.24 0.38 0.38 1
pX(0) . pY(0) = (0.16)(0.24) 0.1 = p(0,0)
X and Y are not independent.
St. Joseph’s Institute of Technology Page No 18
Subject Name & Code: Probability and Queueing Theory & MA8402 Question Bank 2020 - 2021
5. The joint pdf of a two dimensional random variable (X,Y) is given by
f ( x , y ) kxe y , 0 x 2, y 0. Find the value of k.
Given that f(x,y) is pdf of (X,Y)
f(x,y) ≥ 0 , for all x ,y
2 2
2
x2
f ( x, y )dxdy 1 kxe dxdy 1 k xdx . e dy 1 k . e y 1
y y
2 0
0
0 0 0 0
1
k (2)(1) 1 k
2
6. Find the value of k, if the joint density function of (X , Y) is given by
k(1 - x)(1 - y) , 0 < x < 4,1 < y < 5
f(x, y) =
0 ,otherwise
Given the joint pdf of (X , Y) is f(x , y) = k (1 – x) (1 – y), 0 < x < 4, 1 < y < 5
5 4
f ( x, y)dxdy 1 k (1 x)(1 y)dxdy 1
1 0
4 5
5
x2 x2 y2
k x yx y dy 1 k 4 y 4 1
1
2 2 0 2 1
5
1
k (4 4 y)dy 1 k (30 2) 1 32k 1 k
1
32
7. Given the joint probability density function of X and Y as
1
, 0 < x < 2, 0 < y < 3
f(x, y) = 6 , determine the marginal density functions.
0, otherwise
3
y
3
1 1
The marginal function of X is f X ( x)
f ( x, y )dy dy , 0 x 2
0
6 6 0 2
2
x
2
1 1
The marginal function of Y is fY ( y)
f ( x, y )dx dx , 0 y 3
0
6 6 0 3
8xy , 0 < x < 1, 0 < y < x
8. If f(x, y) = is the joint probability density
0 ,elsewhere
function of X and Y, find f(y/x).
x
x
y2
f X ( x) f ( x, y )dy 8 xydy 8 x 4 x 3 , 0 x 1
y y 0 2 0
f ( x, y ) 8 xy 2 y
f ( y / x) , 3 2 , 0 y x, 0 x 1
f X ( x) 4x x
1
9. ,0 y x 1
The joint p.d.f. of R.V. (X,Y) is given as f ( x , y ) x .
0 ,elsewhere
Find the marginal p.d.f. of Y.
The marginal pdf of Y is
1
1
f ( x, y )dx dx log x y log1 log y log y, 0 y 1
1
fY ( y )
y
x
0 0
1
1
x2 x3 x 4
2 ( x 2 x x )dx 2 2
2 3
0 2 3 4 0
1 2 1 1
2
2 3 4 6
11. Let X and Y be two random variables having joint density function.
3 1 1
f(x, y) = (x 2 + y 2 ), 0 x 1, 0 y 1. Determine P X < , Y >
2 2 2
1 1 1
1
1 3 y3
1
P X , Y f ( x, y)dydx x 2 y 2 dydx x 2 y dx
2 2 2
1 3
2 2 x 1
y x 0 y 1
2 20 3 1
2 2 2
1 1 1
3 2 1 1 1
2
3 x2 7 3 x3 7 x
2 2
2 0 2 3 8 2 0 2 24
2 6 24 0
x 1 1 dx dx
3 1 1 7 1
. .
2 6 8 24 2
3 8 1
2 48 4
12. If the joint cumulative distribution function of X and Y is given by
F(x, y) = (1- e-x )(1- e-y ), x > 0, y > 0 , find P( 1 < X < 2 , 1 < Y < 2 )
The joint pdf is
2 F 2
f ( x, y )
xy xy
1 e x 1 e y
x
1 e x .e y e x .e y e ( x y ) , x 0, y 0
2 2 2 2 2 2
P 1 X 2,1 Y 2 f ( x, y )dxdy e ( x y ) dxdy e x .e y dxdy
1 1 1 1 1 1
1 1 e 1
2 2 2 2
e x dx. e y dy e x . e y e 1 e 2
2 2 2
2 2
1 1
1 1
e e e
0.054
13. If X has mean 4 and variance 9, while Y has mean –2 and variance 5 and the two are
independent find (a) E[XY] (b) E[XY2]
Given E X 4, E Y – 2, X and Y are independent.
a E XY E X E Y 4 –2 –8
b E XY 2 E X E Y 2
E[Y 2 ] 9 E[ XY 2 ] 4(9) 36
14. Let X and Y be two independent R.Vs with Var(X) = 9 and Var(Y) = 3.
Find Var(4X – 2Y + 6).
Var(4X – 2Y + 6) = 16 Var(X) + 4 Var(Y) = 16(9) + 4(3) = 156
15. If Y = -2X + 3, find Cov (X , Y).
Cov X, Y E XY – E X E Y E X 2X 3 – E X E 2X 3
E 2X 2 3X E X 2E X 3
2E X 2 3 E X 2 E X 3E X
2
2 E X – 2 E X 2 2 var X
2
1
16. The correlation coefficient of two random variables X and Y is - while their variances
4
are 3 and 5. Find the covariance.
1
Given rxy = , 2X 3, 2Y 5 rxy = Cov ( X , Y ) , X 0, Y 0
4 XY
Cov(X, Y) = rxy X Y = 3 . 5 = - 0.968
1
4
17. 49
The lines of regression in a bivariate distribution are X + 9Y = 7 and Y + 4X = .
3
Find the coefficient of correlation.
49
x + 9y – 7 = 0 ----------- (1) y + 4x – = 0 ----------- (2)
3
Let (1) be the regression line of Y on X and let (2) be the regression line of X on Y.
1 7 1
y = - x + b1 = -
9 9 9
1 49 1
x= - y+ b2 = -
4 12 4
1 1
r = ± b1b2 = - .-
9 4
1 1
= = <1
36 6
Since both regression coefficients are negative, correlation coefficient is negative.
18. The regression equations of X on Y and Yon X are respectively 5x – y = 22 and
64x – 45y = 24. Find the mean values of X and Y.
Regression lines pass through the mean values of X and Y. Solving the two equations we get the
mean values.
Let 5x – y = 22 --------------(1)
64x – 45y = 24 --------------(2)
Multiply equation (1) by 45 and subtract equation ( 2)
225x – 45y = 990
– 64x + 45y = – 24
__________________
161x = 966 x = 6
Substitute in equation 1
5 ( 6 ) – y = 22 y = 8.
mean value of X = 6 and mean value of Y = 8
St. Joseph’s Institute of Technology Page No 21
Subject Name & Code: Probability and Queueing Theory & MA8402 Question Bank 2020 - 2021
19. The two lines of regression are 4x – 5y + 33 = 0 and 20x – 9y = 107. Calculate the
coefficient of correlation between X and Y.
4x – 5y + 33 = 0 ----------- (1) 20x – 9y = 107 ----------- (2)
Let (1) be the regression line of Y on x and let (2) be the regression line of X on Y.
4 33 4
y x b1
5 5 5
9 107 9 4 9 9 3
x y b2 r b1b2 . 0.6 1
20 20 20 5 20 25 5
xe-y ,0 < x < 2, y > 0
20. Given the joint density function of X and Y as f(x , y) = .
0 ,elsewhere
Find the range space for the transformation X + Y.
Let the auxiliary random variable be V = Y.
The transformation functions are u = x + y, v = y, y > 0 v > 0 and
0 < x < 2 0 < u – v < 2 v<u<v+2
PART – B
1. (i) The joint pdf of the random variables X and Y is defined
25e 5 y , 0 x 0.2, y 0
as f ( x , y ) .
0 , elsewhere
(a) Find the marginal PDFs of X and Y
(b) COV (X,Y)
Solution:
The marginal PDF of X is
f X ( x)
f ( x, y)dy 25e y dy 25 e y 25 e e0 25(1) 25, 0 x 0.2
0
0
0
0.2
0.2 x2 0.04
E(X) = xf X ( x)dx x(25)dx 25 25
0
2 2 0.5
0
E(Y) = yfY ( y)dy y(5e y )dx 5 ye y e y 50 1 5
0
0
0.2 0.2
E(XY) = xyf ( x, y)dxdy xy(25e y )dxdy 25 ye y dy . xdx
0 0 0 0
2 0.2
x 0.04
= 25 ye y e y . 250 1. (25)(0.02) 0.5
0 2 0 2
Cov(x,y) = E(XY) – E(X)E(Y) = 0.5 – (0.5)(5) = –2
k ( x 1)e y , 0 x 1, y 0
(ii)Find the constant k such that f ( x , y ) is a joint p.d.f. of
0 , otherwise
the continuous random variable (X,Y). Are X and Y independent R.Vs? Explain.
Solution:
To find k :
3 2
k (1) 1 k
2 3
2 y
( x 1)e , 0 x 1, y 0
f ( x, y) 3
0 , otherwise
The marginal PDF of X is
2 2 2 2 2
f X ( x)
f ( x, y)dy ( x 1)e y dy ( x 1) e y ( x 1) e e0 ( x 1)(1) ( x 1), 0 x 1
0
3 3 0 3 3 3
f x
y
f ( x, y) 4 xy
fY ( y )
2y
2 x, 0 x 1
(ii). The joint density function of two random variable X and Y is given by
6 2 xy
x + ,0 x 1, 0 y 2
f(x, y) = 7 2 .
0 ,elsewhere
(a) Compute the marginal p.d.f of X and Y ? (b) Find E(X) & E(Y) (c)
1 1
P X , Y
2 2
Solution:
The marginal pdf of X is
St. Joseph’s Institute of Technology Page No 23
Subject Name & Code: Probability and Queueing Theory & MA8402 Question Bank 2020 - 2021
2
6 2 xy 6 2 x y2
2
6
f X ( x) 0 7 2 x x , 0 x 1
2
f ( x , y ) dy x dy x y
2 7 2 2 0 7
The marginal pdf of Y is
1
6 xy 6 x3 x 2 y 6 1 y
1
fY ( y )
f ( x, y ) dx x 2 dx
0
7 2 7 3
,0 y 2
2 2 0 7 3 4
E(X) =
1
6 2 x4 x2
1
6 2 6 3 2 1 6 1 1 6
xf X ( x)dx x 7 2 x x dx 7 2 x x 0 7 4 2 7 2 2 7
0 0
2 2
6 y y2 6 y 2 y3
2
6 1 y 6 2 2 8
E(Y) = yfY ( y )dy y dy
0
7 3 4 7 3 4 7 6 12 7 3 3 7
0 0
1 1 1
2
2
1 1 2 2
6 xy 2
6 x y2
P( X , Y ) f ( x, y ) dy dx x 2 dy dx x 2 y 1 dx
2 2 1 0 1 7 2 0
7 2 2
2 2 2
1 1 1 1
6 2 2
x2 x 2
6 3x 2 15 x 2 6 x3 15 x 2 2
2 x x dx dx
0
7 2 16 0
7 2 16 0 7 2 32 0
6 1 15 6 23 69
.
7 16 128 7 128 448
(i). If X,Y and Z are uncorrelated random variables with zero means and standard
3. deviations 5 , 12 and 9 respectively and if U = X + Y, V = Y + Z, find the correlation
coefficient between U and V.
Solution:
Now, E(U) = E(X+Y) = E(X) + E(Y) = 0 and E(V) = E(Y+Z) = E(Y) + E(Z) = 0
E(U2) = E((X+Y)2) = E(X2 + Y2 + 2XY) = E(X2) + E(Y2) + 2E(XY) = 25 + 144+ 0 = 169
E(V2) = E((Y+Z)2) = E(Y2 + Z2 + 2YZ) = E(Y2) + E(Z2) + 2E(YZ) = 144 + 81+ 0 = 225
X 3 5 6 8 9 11
Y 2 3 4 6 5 8
Solution:
X Y U=X–6 V=Y–6 U2 V2 UV
3 2 –3 –4 9 16 12
5 3 –1 –3 1 9 3
6 4 0 –2 0 4 0
8 6 2 0 4 0 0
9 5 3 –1 9 1 –3
11 8 5 2 25 4 10
6 –8 48 34 22
V
V
8
1.33 , U2
U 2
U
2
48
1 7 , U 2.646 ,
n 6 n 6
V2
V 2
V
34 2
(1.33)2 3.898 , V 1.974
n 6
Cov(U , V) =
U V 22 (1)(1.33) 4.997
UV
n 6
Cov(U ,V ) 4.997
rUV 0.484
U . v (2.646) (3.898)
rXY 0.484
X U 6 X 1 6 7
Y V 6 Y 1.33 6 4.67
X U X 2.646 ; Y V Y 3.898
The regression line of Y on X is
r Y
Y Y
X
X X Y 4.67
(0.484) (3.898)
(2.646)
X 7 Y 0.713 X 0.321
(ii) X and Y are two random variables having the joint probability mass function
f x , y k 3x 5y ; x 1, 2, 3 : y 0, 1, 2 .Find the marginal distributions and
conditional distribution of X, P(X = xi /Y = 2) , P(X ≤ 2 / Y ≤ 1). (April/May 2019)
Solution:
X
1 2 3 PY(y)
Y
0 3k 6k 9k 18k
1 8k 11k 14k 33k
2 13k 16k 19k 48k
PX(x) 24k 33k 42k 99k
which shows first order stationary random process has a constant mean.
8. Define transition probability matrix. (Dec 2011)
The transition probability matrix (TPM) of the process {Xn , n ≥ 0} is defined by
5 1
16. If the initial state probability distribution of a Markov chain is P 0 = and the
6 6
0 1
transition probability matrix of the chain is 1 1 , find the probability distribution of
2 2
the chain after 2 steps. (May 2012)
Probability distribution after 2 steps = P(2) = P(1)P = {P(0)P}P
0 1
5 1 1 1
Now P 1 P 0 P = 1 / 12 11 / 12
6 6 2 2
0 1
1 11 1 1
2
P P P
1
= 11 / 24 23 / 24
12 12 2 2
0 1
If the transition probability matrix of a Markov chain is 1 1 , find the steady state
17.
2 2
distribution of the chain. (May 2013)
The steady state distribution of the chain is given by A a b , where A.P = A
0 1
A.P A a b a b
1 / 2 1 / 2
b / 2 a 1
a b / 2 b 2
We know that a b 1 3
substituting (1) in (3),
we get 3b/2 1 b 2/3
1 a 1 / 3
Steady state distribution of the chain A 1 / 3 2 / 3
18. Consider the Markov chain consisting of the three states 0, 1, 2 and transition probability
1 1
2 2 0
matrix P = 1 1 1
. Is it irreducible? Justify. (May 2010)
2 4 4
0 1 2
3 3
0.5 0.5 0 0.5 0.375 0.125
P 0.5 0.25 0.25
and P 0.375 0.395 0.23
2
Here Pij
(n)
0 , i, j . So, P is irreducible.
P( N (t ) m)
m!
e3(4) 3(4)
10
P( N (4) 10)
10!
0.1048.
PART – B
1. i) Let the Markov Chain consisting of the states 0, 1, 2, 3 have the transition probability
1 1
0 0 2 2
matrix P 1 0 0 0 . Determine which states are transient and which are
0 1 0 0
0 1 0 0
recurrent by defining transient and recurrent states. (MAY 2010)
Solution:
Transient state: A state ‘a’ is transient if Faa< 1.Recurrent state: A state ‘a’ is recurrent if
Faa=1.
Here Faa f , where f first time return probability of state 'a' after n steps.
n 0
n
aa
n
aa
0 1 1
1/2
1/2
1
1
2 3
3
Here P00 0, P01
2
0, P02
1
0, P03
1
0
1
P10 0, P11
3
0, P12
2
0, P13
2
0
2
P20 0, P21
1
0, P22
3
0, P23
3
0
2
P30 0, P31
1
0, P32
3
0, P33
3
0
Therefore, the Markov chain is irreducible. And also it is finite.
So, all the states are of same nature.
Consider the state ‘0’
P X 2 3/ X 0 1 P X 0 1 P X 2 3/ X 0 2 P X 0 2 P X 2 3/ X 0 3 P X 0 3
P132 P X 0 1 P232 P X 0 2 P332 P X 0 3 0.26 0.7 0.34 0.2 0.29 0.1 0.279
(II) P X 3 2, X 2 3, X1 3, X 0 2
P X 0 2, X1 3, X 2 3 P X 3 2 / X 0 2, X1 3, X 2 3
P X 0 2, X1 3, X 2 3 P X 3 2 / X 2 3
P X 0 2, X1 3 P X 2 3/ X 0 2, X1 3 P X 3 2 / X 2 3
P X 0 2, X1 3 P X 2 3/ X1 3 P X 3 2 / X 2 3
P X 0 2 P X1 3/ X 0 2 P X 2 3/ X1 3 P X 3 2 / X 2 3
0.2 0.2 0.3 0.4 0.0048
iii) Three boys A,B and C are throwing a ball to each other . A always throws the ball to
B and B always throws the ball to C , but C is just likely to throw the ball to B as to A
.Show that the process is Markovian. Find the transition matrix and classify the
states. (April 2017)
Solution:
0 1 0
TPM= P 0 0 1 Since states of Xn depend only on states of Xn-1 .{ Xn} is a
0.5 0.5 0
Markov chain.
0 0 1 0.5 0.5 0
Now P 0.5 0.5 0 ; P 0
2 3 0.5 0.5
0 0.5 0.5 0.25 0.25 0.5
Therefore P11 > 0, P13 > 0, P21 > 0, P22(2) > 0, P33(2) > 0 and all other Pij(1)>0.
(3) (2) (2)
2,3,5,6,….=1
Therefore the state 1 is aperiodic. Since the chain is finite and irreducible , all its states are
non–null Persistant.
iv) Let Xn : n 0 be a Markov chain having state space S = 1, 2, 3 and one step TPM
3 1
4 4 0
P= 1 1 1
4 2 4
0 3 1
4 4
(i) Draw a transition diagram for this chain.
(ii) Is the chain irreducible? Explain.
(iii) Is the state 3 ergodic? Explain. (April/May 2019)
Solution:
The TPM of the given Markov chain is
1 2 3
1 3 1
0
4 4
1 1 1
P 2
4 2 4
3 1
3 0
4 4
(i) Let X n {1, 2,3} finite
(ii)
e12 (12)4
(ii) P X (2) 4 0.053
4
3 3 0
e 2
1 2
3
1
P X 1 1 P X 01 1 e 2 0.776.
(iii) 4 4 0
ii) Prove that (i) difference of two independent Poisson processes is not a Poisson process
and (ii) Poisson process is a Markov process. (MAY 2013)
(i) Let X t X1 t X 2 t where X1(t) and X2(t) are Poisson processes with 1 and 2 as
the parameters
E X t E X1 t E X 2 t 1 2 t
E X 2 t E X 1 t X 2 t
2
E X 1
2
t E X 22 t 2E X1 t X 2 t
E X12 t E X 22 t 2E X1 t E X 2 t
12t 2 1t 22t 2 2t 2 1t 2t 1 2 t 12 22 t 2 212t 2
1 2 t 1 2 t 2 1 2 t 1 2 t 2
2 2
t3 t2
n n t3 t2
n3 n2
n1 ! n2 n1 ! n3 n2 ! e 3 2
e t2 n2 t1n1 t2 t1
n2 n1
n3 n2 !
n1 ! n2 n1 !
P X t3 n3 / X t2 n2
P X t3 n3 / X t2 n2 , X t1 n1 P X t3 n3 / X t2 n2
This means that the conditional probability distribution of X t3 given all the past
values X t1 n1 , X t2 n2 depends only on the most recent values X t2 n2 .
i.e., The Poisson process possesses Markov property.
St. Joseph’s Institute of Technology Page No 35
Subject Name & Code: Probability and Queueing Theory & MA8402 Question Bank 2020 - 2021
3. i) A salesman territory consists of three cities A, B and C. He never sells in the same
city on successive days. If he sells in city A, then the next day he sells in city B.
However if he sells in either city B or city C, the next day he is twice as likely to sell in
city A as in the other city.In the long run how often does he sell in each of the cities?
(MAY 2012,DEC 2013)
Solution:
States: A, B and C
0 1 0
The transition probability matrix is given by P 2 / 3 0 1/ 3
2 / 3 1/ 3 0
The long run probability is given by a b c , where P = .
0 1 0
Now P = a b c 2 / 3 0 1/ 3 a b c
2 / 3 1/ 3 0
2 2 2 2
0.a + b + c = a -a + b + c = 0 (1)
3 3 3 3
1 1
1.a + 0.b + c b a - b + c 0 (2)
3 3
1 1
0.a + b + 0.c = c b - c = 0 (3)
3 3
Also, we know that a + b + c = 1 (4)
From (3), c = b/3
From (2), a - b + b/9 = 0 a = 8b/9
From (4), 8b/9 + b + b/3 = 1 20b/9 = 1 b = 9/20
c = 3/20 and a = 8/20
Long run probability = 8 / 20 9 / 20 3 / 20
ii) A gambler has Rs. 2. He bets Re. 1 at a time and wins Re. 1 with probability ½. He
stops playing if he loses Rs. 2 or wins Rs. 4. i) What is the tpm of the related Markov
chain? ii) What is the probability that he has lost his money at the end of 5 plays?
(MAY 2013)
Solution:
Let Xn denote the amount with the player at the end of the nth round of the play.
The possible values of Xn = State space = {0, 1, 2, 3, 4, 5, 6}
Initial probability distribution= P(0) 0 0 1 0 0 0 0
(ii) Probability that he has lost his money at the end of 5 plays = P X 5 0
To find this we need P5
1 0 0 0 0 0 0
1 1
0 0 0 0 0
2 2
1 1
0 0 0 0 0
2 2
1 0 1 1
P P P 0 0 1 0 0 0 0 0
1 1
0 0 0 0 0 0 0 0 0
2 2 2 2
1 1
0 0 0
2
0
2
0
0 0 0 0
1
0
1
2 2
0 0 0 0 0 0 1
1 0 0 0 0 0 0
1 1
0 0 0 0 0
2 2
1 1
0 0 0 0 0
2 2
2 1 1 1 1 1 1 1 1
P P P 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2 2 2 2 4 2 4
1 1
0 0 0
2
0
2
0
0 0 0 0
1
0
1
2 2
0 0 0 0 0 0 1
sin t t 2 2
A2 2
cos 0 t1 t2 0
0 1 2
4
2 0
A2 sin 0 t1 t2 4 sin 0 t1 t2
cos 0 t1 t2 2
4 2 2
A2 sin 0 t1 t2 sin 0 t1 t2
2 cos 0 t1 t2
4 2 2
A2 A2
.2 cos 0 t1 t2 cos 0 t1 t2 =a function of t1 t2
4 2
The process X t is W.S.S.
ii) A random process has sample function of the form X(t) = Acos w0t + θ where w0 is a
constant. ‘A’ is a R.V that has a magnitude of +1 and -1 with equal probability and
is a R.V that is uniformly distributed over [0, 2 ] . Assume that the random variable
A and are independent. Is X(t) a wide-sense stationary process? (April/ May 2019)
Solution:
X(t) = Acos w0t + θ
A 1 -1
P(A) 1/2 1/2
1 1
E ( A) ap(a) 1 (1) 0
a 2 2
1 1
E ( A2 ) a 2 p(a) 12 (1)2 1
a 2 2
E[ X (t )] E[a cos(0 t )] E[ A] E (cos(0 t )) 0. E ( A) 0
RXX ( ) E[ X (t ) X (t )]
E[ A2 cos(0 t ) cos(0 t 0 )]
E ( A2 ) E[cos(0 t ) cos(0 t 0 )]
cos(0 t 0 t 0 ) cos(0 t 0 t 0 )
(1) E
2
1 1
E[cos(20 t 0 2 )] E[cos(0 )] (1)
2 2
2
0. cos( cos(t n )d 0,
0
nis an integer , n 0
From (1),
1 1
RXX ( ) 0 cos(0 ) cos(0 ) a function of t . The process is W.S.S.
2 2
iii) A random process is given as X(t) = U + Vcos wt + θ where U is a R.V with
E(U) = 0 and Var(U) = 3 , V is a R.V with E(V) = 0 and Var(V) = 4 , is a constant
1 -π 3π
and is a R.V with p.d.f f(θ) = , θ . It is further assumed that U,V and
2π 2 2
are independent R.Vs. Is the process X(t) stationary in the wide-sense? (April 2019)
Solution:
X(t) = U + Vcos wt + θ
E (U ) 0 & Var (U ) 3; E (v) 0 & Var (V ) 4
E (UV ) E (U ) E (V ) 0 U & V are independent.
Var (U ) E (U 2 ) ( E (U )) 2
3 E (U 2 ) 0 E (U 2 ) 3
ll ly E (V 2 ) 4
E[ X (t )] E[U V cos(t )]
E[ X (t )] E(U ) E(V )cos(t ) 0 0 0
RXX ( ) E[ X (t ) X (t )]
E U V cos(t ) U V cos( (t ) )
E U 2 UV cos(t ) UV cos( (t ) ) V 2 cos(t ) cos( (t ) )
E (U 2 ) E (UV ) cos(t ) E (UV ) cos( (t ) )
E (V 2 ) cos(t ) cos( (t ) )
3 0 0 4 E (cos(t ) cos( (t ) ))
1
3 4 E cos(t t ) cos( t t )
2
4
3 E[c os(2t 2 ) cos( )]
2
3
2
1
3 2 cos(2t 2 ) 2 d 2 cos (1)
2
3 3
3
2
1 1 2
1 sin(2t 2 ) 2
2 cos(2t 2 )
2
d
cos(2t 2 )d
2
2
2 2
1
sin(2t 3 ) sin(2t ) sin(2t ) in(2t ) 0
2
Hint : sin(n ) (1)n sin ; sin(n ) (1) n sin
St. Joseph’s Institute of Technology Page No 40
Subject Name & Code: Probability and Queueing Theory & MA8402 Question Bank 2020 - 2021
From (1),
RXX ( ) 3 0 2 cos 3 2 cos .
The process is W .S .S .
5. i) A man either drives a car (or) catches a train to go to office each day. He never goes
two days in a row by train but if he drives one day, then the next day he is just as
likely to drive again as he is to travel by train. Now suppose that on the first day of
the week, the man tossed a fair die and drove to work if and only if a 6 appeared.
Find (1) the probability that he takes a train on the third day and (2) the probability
that he drives to work in the long run. (DEC 2011)
Solution:
0 1
i) Here train (T) and car(C) are the states. The tpmis P 1 1
2 2
5 1
Initial state probability distribution P1 , ,
6 6
1 5
as P[traveling by car]=P[getting 6]= ; P[traveling by train]=
6 6
5 1 0 1 1 11 1 11 0 1 11 13
P 2 P1P , 1 1 , ; P3 P 2 P , 1 1 ,
6 6 2 2 12 12 12 12 2 2 24 24
11
Probability that the man travels by train on 3rd day
24
ii) Let 1, 2 be the stationary state distribution of the Markov chain. By property of
P
0 1
1 1
1, 2 1 1 1, 2 2 1 and 1 2 2 2 1 2
2 2
2 2
Also 1 2 1 ( Since is the probability distribution )
1 2 2
1 2 1 1 1 2 ; Probability that he travels by car in the long run .
3 3 3
ii) The process {X(t)} whose probabilitydistribution under certain condition is given by
at n 1
, n 1, 2,3,
P X (t ) n 1 at
n 1
at , .
n 0.
1 at
Show that X t is not stationary. MAY 2012, DEC 2013
Solution:
at n 1
, n 1,2,3,
1 at n 1
Given PX (t ) n
at
, n 0.
1 at
E X t nP X t n 0 1P X t 1 2P X t 2 3P X t 3
n 0
1 2 3
1 at 2 1 at 3 1 at 4
1 at at
2
1 at
2
1 2 3 1 1 at
1 at 1 at 1 at 1 at
2 2
2
1 1
1 at 1 a constant
1 at
2
E X 2 t n 2 P X t n = n n 1 n P X t n
n 0 n 0
= n n 1 P X t n nP X t n
n 0
= n n 1 P X t n 1
n 0
nP X t n 1
n 0
1 3 4 1 1 1 at 1
1 at 1 at 1 at 1 at
2 2
3
1 1
1 at 1 1 at 1 at , not a constant
1 at
2
This model is based on the birth and death process. Arrivals are births and departures are deaths.
When the system is in state n if an arrival comes, it goes to state n+1 and if a departure is there
then the system goes to state n-1. The number of customers in the system is the state of the
system.
10. What is the probability that a customer has to wait more than 15 min. to get his service
completed in (M / M / 1):( / FIFO) queue system if λ = 6 / hr and μ = 10 / hr?
(May/June’13)
1
P( ws 15min) P ws hr
4
Where ws is exponential random variable with parameter .
( )
P( ws 15 min) ( ) e
d
1
4
( )
e
1
4
( ) (10 6)
e 4
e e 1
4
0 1 1
3 2 2 P P where P P
0
3
here 0.75
4
3 2 (2 0.4564) (0.75 0.4564) 3(1.4295) 4.2885
St. Joseph’s Institute of Technology Page No 45
Subject Name & Code: Probability and Queueing Theory & MA8402 Question Bank 2020 - 2021
PART – B
1. (i) A supermarket has 2 girls running up sales at the counters. If the service time for each
customer is exponential with mean 4 minutes and if people arrive in Poisson fashion at the
rate of 10 per hour, find the following:
(i) What is the probability of having to wait for service?
(ii) What is the expected percentage of idle time for each girl?
(iii)What is the expected length of customer’s waiting time?
(iv) What is the expected number of idle girls at any time?
(April/May’15) (Ap/May’19)
Solution:
Model identification: Since there are two girls and infinite capacity.
Hence this problem comes under the model (M/M/c);( /FCFS).
Given data:
Arrival rate 10 per hr
1 60
Service rate per min (i.e) 15 per hr.
4 4
Number of servers c 2
1
c 1 1 n c
c
w.k.t P0
n 0 n ! c !( c )
1
1 1 10 n 2 15 10
2
P0
n0 n ! 15 2!((2 15) 10) 15
1
1 1 30 2
0.6667 0.6667
n
n 0 n ! 40
1
1 1
0.6667 0.3333
n
n 0 n !
P0 (1 0.6667) 0.3333 21 0.5
1
(ii) A small mail –order business has one telephone line and a facility for call waiting for
two additional customers. Orders arrive at the rate of one per minute and each order
requires 2 minutes and 30 seconds to take down the particulars. What is the expected
number of calls waiting in the queue? What is the mean waiting time in the queue?
Solution:
Model identification:
since there is only one telephone line and the capacity of the system is finite. Hence this problem
comes under the model (M/M/1);(k /FCFS).
Given Data:
Arrival rate 1/ min
1 5 2 1 5
Service rate per min , k=3 2.5
2 5 2/5 2
The expected number of calls waiting in the queue = Lq Ls
(k 1) k 1
Where Ls , if and 1 P0
1 1 k 1
2.5 4(2.5) 4
Ls 0.3333 4.105 4.4383
1 2.5 1 (2.5) 4
(1 )
P0 , if
1 k 1
St. Joseph’s Institute of Technology Page No 47
Subject Name & Code: Probability and Queueing Theory & MA8402 Question Bank 2020 - 2021
1 2.5 1.5
P0 0.0394
1 (2.5) 4
38.06
2
1 0.0394 0.3842
5
0.3842
The expected number of calls waiting in the queue = Lq 4.4383 3.4778
0.4
Ls 1 4.4383
The mean waiting time in the queue= Wq 2.5 11.55 2.5 9.052
0.3842
2. (i) Find the system size probabilities for an M / M / S : FCFS / / queueing system
under steady state conditions. Also obtain the expression for average number of customers
in the system and waiting time of a customer in the system.
(Nov/Dec’11), (April/May’11)
Solution:
Assume S c M / M / c ;( / FCFS )
This model represents a queueing system with poisson arrivels, exponential service time,
multiple servers, infinite capacity and FCFS queue service from a single queue.
If n c, then only n of the c servers will be busy and others are idle and hence mean service rate
will be n .
If n c, all c servers will be busy and hence the mean service rate is c
n , 0 n c
n and n n
c , n c
By birth and death process
....n 1
Pn 0 1 2 3 P
1 2 3 4 ....n 0
Case i: When 0 n c
.... (n times)
Pn P0
1 2 3 4....n
1
Pn P0
n!
Case ii: when n c
......(n times)
Pn P
1 2 ....c ....c 1 ....n 0
n
P
1 2 3...(c 1)c c...(c (c 1)) times 0
n
P0
(c 1)! c 1c n c 1 n c 1
n
P0
(c 1)! c c 1c n c c 1 ( c 1)
n
P0
(c 1)! c 1c n c 1 n c 1
1 n
nc P0 , n c
c!c
Pn n
1
n ! P0 ,0 n c
To find P0
Since P
n0
n 1
c 1
P P
n0
n
nc
n 1
n n
c 1
1
1
P0 P0 1
n 0 n ! n c n !
c 1 1 n
1
n
P0 n c 1 ---------(1)
n0 n ! n c c !c
Consider
n n
1 1
n c
n c c !c c !c c n c c
1
c c 1 c2
...
c !c c c c c
1
c 1 2 3
c 1 ...
c !c c c c c
1
c
1
1
c !c c c c
c 1
1 c
c !c c c c
n c
1 1 c
n c c !c n c c !c c c c
1
c 1 1 n
1
n
(1) P0
n 0 n !
n c
n c c !c
1
c 1 1 n 1 c
c
P0
n 0 n ! c !c c c c
To find the average number of customer in the system: Ls
Ls Lq
Where
St. Joseph’s Institute of Technology Page No 49
Subject Name & Code: Probability and Queueing Theory & MA8402 Question Bank 2020 - 2021
Lq Average number of customer in the queue
Lq (n c ) Pn
nc
n
1
Lq (n c) P0
n c c !c n c
n
1
P (n c)
c
c 0
c !c nc
1
c 1
c2
c 3
P 0 (c 1 c ) (c 2 c ) (c 3 c ) ...
c c c
c 0
c !c
c 1 1 2
1
c 0
P 1 (2) (3) ...
c !c c c c
c 1 2
1
P0 1 c
c
c
c !c
c 1 2
1
Lq 1 c P0
c c!
c 1 2
1
Ls Lq 1 c P0
c c!
(ii) In a cinema theatre people arrive to purchase tickets at the average rate of 6 per
minute and it takes 7.5 seconds on the average to purchase a ticket. If a person arrives just
2 minutes before the picture starts and it takes exactly 1.5 minutes to reach the correct seat
after purchasing the ticket.
i) Can he expect to be seated for the start of the picture?
ii) What is the probability that he will be seated when the film starts?
iii) How early must he arrive in order to be 99% sure of being seated for the start of the
picture?
(Nov/Dec’14)
Solution:
Model identification:
since there is only one counter and the arrival of persons are infinite, capacity of the system is
infinie. Hence this problem comes under the model (M/M/1);( /FCFS).
Given Data:
Arrival rate 6 per min
1 60
Service rate per sec 8 per min
7.5 7.5
i) Expected total time required to purchase the ticket and to reach the seat
=waiting time in the system + time to reach the seat = Ws 1.5 .
1 1 1
Where Ws 0.5
86 2
Expected total time required to purchase the ticket and to reach the seat =0.5+1.5=2 min
ii) P(he will be the seated for the start of the picture)
=P(Total time < 2 min)
1 1
P Ws 1 P Ws
2 2
St. Joseph’s Institute of Technology Page No 50
Subject Name & Code: Probability and Queueing Theory & MA8402 Question Bank 2020 - 2021
( )t
1 e
1
(8 6)
1 e 2
0.63
iii) Suppose t minutes be the time of arrival so that he is seated 99%, then
P(W t ) 0.99
1 P(W t ) 0.99
P(W t ) 1 0.99 0.01
e ( )t 0.01 e2t 0.01 2t log(0.01) t 2.3
This is the waiting time in the system. that is to purchase ticket.
He takes 1.5 minutes to reach the seat after purchasing ticket.
total time = 2.3+1.5=3.8
Hence he must arrive atleast 3.8 minutes earlier so as to be 99% sure of seeing the start of the
film.
3. (i) There are three typists in an office. Each typist can type an average of 6 letters per
hour. If letters arrive for being typed at the rate of 15 letters per hour,
(a) What fraction of the time all the typists will be busy?
(b) What is the average number of letters waiting to be typed?
(c) What is the average time a letter has to spend for waiting and for being typed.
(d) What is the probability that a letter will take longer than 20 min waiting to be typed
and being typed? Assume that arrival and service rates follow poisson distribution.
(May-June’13), (May/June’12), (Nov/Dec’11), (Nov/Dec’10) (April/May’17)
Solution:
This is an (M/ M/ 3) : ( / FIFO) model.
2.5
15 / hr. & 6 / hr, s 3, 2.5 & 0.833
s 3
(a) All the typists will be busy if there are at least 3 customers (letters) in the system
p(n 3) p(3) p(4) p(5) ..... 1 p 0 p1 p 2
1 1
s1
1 n 1 2.5 2.5 2.5
s 2 3
1 1
p0 s 0.0449
n 0 n ! n s ! 5
6 1
2 22.25
1 s
6
2
p 0 2.5 p 0
1
p1 p0 2.5 p0 , p2
2
1! 2! 2
2
P(n≥3) = 1 – [1 + 2.5 + (2.52/2)].(.0449)= 1-0.2974625= 0.7025375= 0.7025
(b) Waiting to be typed (queue)
s 1 1 1
Lq p0 2.54 p0 3.5078
s s! s 1
2
3 6
1 s
1 1
(c) Ws Lq 3.5078 2.5 0.4005 hr.
15
(ii) A TV repairman finds that the time spend on his job has an exponential distribution
with mean 30 minutes. If he repair sets in the order in which they come in and if the
arrival of sets is approximately Poisson with an average rate of 10 per 8 hour day.
a) Find the repairman’s expected idle time on each day?
b) How many jobs are ahead of average set just brought? (Nov/Dec’13) (May/June’12)
Solution:
Model identification:
since there is only one repair man and the capacity of the system is infinity. Hence this problem
comes under the model (M/M/1);( /FCFS).
Given Data:
Arrival rate 10 per 8hr day
1 1
Service rate 30 per min (i.e) 8 2 16 per 8hr day
30
10 6 3
i) The repairman’s idle time = P0 1 1 / day
16 16 8
3
The Expected idle time = 8 3 hrs
8
10
ii) The average number of jobs in the system = Ls 1.667 2 jobs.
16 10
Another method:
10 5
Arrival rate per hr
8 4
1 60
Service rate per min (i.e) 2 / hr
30 30
10 6 3
i) The repairman’s idle time = 1 1
16 16 8
3
The Expected idle time each day = 8 3 hrs
8
ii) Number of the jobs ahead of the
average set brought in = The average number of jobs in the system
5
= Ls 4 1.667 2 jobs.
2 5
4
St. Joseph’s Institute of Technology Page No 52
Subject Name & Code: Probability and Queueing Theory & MA8402 Question Bank 2020 - 2021
4. i) A group of engineers has two terminals available to aid their calculations. The average
computing job requires 20 minutes of terminal time and each engineer requires some
computation one in half an hour. Assume that these are distributed according to an
exponential distribution. If there are 6 engineers in the group, find
a) the expected number of engineers waiting to use the terminals in the computing center.
b) the total time lost per day.
Solution:
Since there are 2 terminals, also since there are 6 engineers in the group, the capacity of the
system is finite.
Hence this problem comes under the model (M/M/c);(k/FCFS)
Given data:
1
Arrival rate =2 per hr
1/ 2
1 60
Service rate per min (i.e) 3 per hr.
20 20
Number of servers c 2
Capacity = k = 6
Expected number of engineers waiting to use in the computing center = Ls
Ls Lq
1
c 1
1
n
1
c k n c
Where P
0 n 0 n ! c! nc c
1
1 1 2 n 1 2 2
6 2 n 2
P
0 n 0 n ! 3 2! 3
3 2
n 2
1
2 2 3 4
2 1
2 1
1
1
1
= 1 1 0.5003
3 2 3 3 3
3 3
c
1
And L 1 - k - c - (k - c)(1 - ) k - c P
c 3 q c !(1 - )2 0
1
2 62 62
2 3 1 1 1
L 1 - - (6 2) 1 - (0.5003) 0.0796
q 3
1 3 3 3
2
2!1 -
3
c 1 1
Effective arrival rate c (c n) P 3 2 (2 n) P
n 0 n n 0 n
3 2 2P0 P1 where P P
1 0
2
3 2 2 0.5003 0.5003 1.9976
3
Expected number of engineers waiting to use in the computing center = Ls
n 0 n! s ! n s 1 2
s
P0 0.1960 , , Lq P0 1 k s k s 1 k s
2
s s !1
0.75
Lq =0.1960 1.5 1- 0.75 -2 0.25 0.75 =0.4134car.
2 2 2
2 0.252
s 1 1
Ls =Lq s s n pn 0.4134 2 2 n pn 2.4134 2 2 p0 p1 1.73cars.
n 0 n 0
Ls s 1
Ws = where s s n pn 8 2 2 p0 p1 10.512
n 0
1.73
Ws 0.1646 day
10.512
Average time that a car has to spend in the system = 0.16
5. (i) Patients arrive at a clinic according to Poisson distribution at the rate of 30 patients per
hour. The waiting room does not accommodate more than 14 patients. Examination time
per patient is exponential with a mean rate of 20 per hour. (April/May’19)
(a) Find the effective arrival rate at the clinic.
(b)What is the probability that an arriving patient will not wait?
(c)What is the expected waiting time until a patient is discharged from the clinic?
Solution:
Arrivalrate 30/ hr., Servicerate 20/ hr. , M / M /1: K / FIFO
1- λ 1- 3
μ
model. , p0 = 2 =0.00076
16
k+1
1- λ
μ
1- 3
2
K 1
16
(c) Ls
(3) 2 13patients
K 1
3
16
1 1
2
L 13
Ws s 0.65hr or 39 min.
19.98
(ii) A one-person barber shop has 6 chairs to accommodate people waiting for a haircut.
Assume that customers who arrive when all the 6 chairs are full leave without entering the
barber shop. Customers arrive at the rate of 3 per hour and spend an average of 15
minutes in the barber’s chair. Compute
1) the probability that a customer can go to the barber’s chair without waiting.
2) the average waiting time in the queue and in the system.
3) the average number of customers in the system and in the queue.
4) the probability that there are seven customers in the system. (May/June 2016)
Solution:
Model identification:
since there is only one barber and the capacity of the system is finite. Hence this problem comes
under the model (M/M/1);(k /FCFS).
Given Data:
Arrival rate 3 / hr
1 3
Service rate 60 4 / hr per min , k=6+1=7 0.75
15 4
1) The probability that a customer can go to the barber’s chair without waiting
(1 )
= P0 , if
1 k 1
3
1
P0 4 0.2778
8
3
1
4
L
2) The average waiting time in the queue Ws s
'
(k 1) k 1
Where Ls , if and 1 P0
1 1 k 1
4 1 0.2778 2.89
0.75 8(0.75)8
Ls 3 0.89 2.11
1 0.75 1 (0.75)8
2.11
The average waiting time in the System Ws 0.73
2.89
Ls E(T)
21 E(T)
5. When a M/G/1 queuing model will become a classic M/M/1 queuing model?
(May/June 2012)
If the service time distribution is exponential then a M/G/1 queuing model will become a classic
M/M/1 queuing model.
6. An M/D/1 queue has an arrival rate of 10 customers per second and a service rate of 20
customers per second. Compute the mean number of customers in the system.
(Apr/May 2019)
1 1
Var(T) 0; 10 cust / sec; 20 cust / sec E(T)
E(T)
2 Var(T) E(T) 2
Ls E(T)
2 1 E(T)
1 2 1
102 0
1
10 20 1 4 1 1 3
20 1 2 2 1 2 4 4
2 1 10
20 2
- λP0,0 + μ 2 P0,1 = 0
-μ1P1,0 + μ 2 P1,1 + λP0,0 = 0
-(λ + μ 2 )P0,1 + μ1P1,0 + μ 2 Pb,1 = 0
-(μ1 + μ 2 )P1,1 + λP0,1 = 0, - μ 2 Pb,1 + μ1P1,1 = 0
where rj is the arrival rate to node j , j is the total arrival rate of customers to node j and Pij is
the probability that a departure from server i joins the queue at server j.
19. Write a short note on Finite resource model.
Models in which arrivals are drawn from a small population are called Finite resource model. In
this case the arrival rate may greatly depend on the state of the system. For example the case of
machine repairman model.
20. A police department has 5 patrol cars. A patrol car breaks down and requires service once
every 30 days. The department has two repair workers, each of whom takes an average of
3 days to repair a car. Breakdown and repair times are exponential. Identify the queuing
model of the problem.
Since the server here is the repair man and the customer is the cars [only 5 cars] that require
service from the repairman, this problem comes under machine interference model which is one
of the finite resource models.
PART – B
1. (i) A Laundromat has 5 washing machines. A typical machine breaks down once every 5
days. A repairer takes an average of 2.5 days to repair a machine. Currently, there are
three repair workers on duty. The owner has the option of replacing them with a super
worker, who can repair a machine in an average of (5/6) day. The salary of the super
worker equals the pay of the three repair workers. Break down time and repair time are
exponential. Should the Laundromat replace the three repairers with a super worker?
(Nov/Dec 2015)
Solution:
This problem comes under the machine interference problem and let K = No. of machines;
R = No. of repairman, the steady state probabilities.
KC j jP0 , j 0,1, 2,3...R
Pj KC j j!P
j R 1, R 2,....K
j 0
j R
R!R
Part 1 : Three repair Workers K = 5 and R = 3:
(1/ 5) mch / day, (1/ 2.5) mch / day, 1/ 2
5C j (1/ 2) j P0 , j 0,1, 2,3
Pj 5C (1/ 2) j j!P
j 4,5
j 0
j3
3!3
5
LS jPj 1.7149 with P0 0.1292
j0
Part 2 : One Super Workers K = 5 and R =1 :
Therefore One Super Worker is better option than the three repair workers as Ls is lesser in this
case.
(ii) Discuss the Jackson open queueing network system and hence obtain the
corresponding product form solution of the system size probabilities. (April/May 2019)
A queueing network is called as Open Jackson network if it has the following characteristics.
1. It is a system with m nodes where each node i (i = 1,2,…,m) has an infinite queue.
2. Customers arriving from outside the system to node i follow a poisson process with mean rate
ri.
3. Service times at each channel at node i are independent and exponentially distributed with
parameter i
4. A customer who has completed serice at node i (with ci servers) is routed next to node j with
probability rij (independent of the system state) or leaves the system from node i with probability
m
ri 0 , where i = 1,2,3,…,m , j = 1,2,3,…,m and ri 0 1 rij
j 1
Open Jackson network has the following key property, called traffic equations.
For each node i, its input processes from various sources are independent poisson processes
and so their sum or aggregate is a Poisson process with parameter i . Now the probability for a
customer going from node i to node j is rij i.e. the proportion of customers going from node i to
node j is rij . Therefore, the rate at which customers from node i arrive at node j is i rij .
i rij is the total rate from all node i to node j. The rate of arrival from outside the network
i
m
to node j is rj. Hence the total arrival rate to node j from all sources is j rj r ,
i 1
i ij
j = 1,2,3,…,m where j c j j .
m
The equations j rj r , j = 1,2,3,…,m is called traffic equations or flow balance
i 1
i ij
equations.
If Ni,i = 1,2,3,…,m be the number of customers in the node i, then the steady state joint
probability P[N1=n1, N2=n2,…,Nm=nm]= P[N1=n1].P[ N2=n2]…P[Nm=nm] where
P[Ni=ni] is the steady state probability mass function of an M/M/ci system with arrival rate i
and service rate i
i.e. the joint probability pn1 ,n2 ,...,nm pn1 . pn2 ... pnm
Thus the joint probability is the product of marginal probabilities.
2. (i) Consider a queuing system where arrivals are according to a Poisson distribution with
mean 5 per hour. Find the expected waiting time in the system if the service time
distribution is (1) a uniform distribution between t = 5 minutes and t = 15 minutes.
(2) Normal distribution with mean 3 minutes and standard deviation 2 minutes.
Ws s
L 3.09023 37.08276min.,
1
12
ii) E(T) =3 minutes and S .D = 2 i.e Var(T) = 4,
therefore μ = 1/ E(T) = μ = 1/ 3 .
By the Pollaczek-khintchin formula.
Ls E (T )
2 Var (T ) E (T ) 2
,
2(1 E (T ))
Ls= 0.310185.
Ls 0.310185
Ws 3.7222min.,
1
12
(ii) A one-man barber shop takes exactly 25 minutes to complete one hair-cut. If
customers arrive at the barber shop in a Poisson fashion at an average rate of one every 40
minutes, how long on the average a customer in the spends in the shop. Also, find the
average time a customer must wait for service? (Nov/Dec 2015)
Solution:
The service time is constant. Hence it is a M / D /1 queuing model.
E T =25 Var T =0
1
Arrival rate λ= /min.
40
2
1 2
2 E 2 t Var T 1 25 0 55
Ls E T 25 40
customers.
2 1 E T 1
2 1 25
40 48
40
55
Ws s 45.8min., Wq Ws Ws
L 48 1 1
45.8 25 20.8 min.
1 1
E T
40
3. (i) A patient goes to a single doctor clinic for a general checkup has to go through 4 phases.
The doctor takes on the average 4 minutes for each phase of the check up and the time
taken for each phase is exponentially distributed. If the arrivals of the patients at the clinic
are approximately Poisson at the average rate of 3 per hour, what is the average time spent
by a patient (i) in the examination (ii) waiting in the clinic?
Solution:
The clinic has 4 phases ( each having different service nature) in series as follows:
Considering all the phases (each with exponential service time) together as “one server” we
shall take it as a server with Erlang service time. So this is a M / Ek /1 model with
N 2 M 2 2 M 1 2 N M 1 2 M 2 1
2 N 1 M N 2 N 2 M 2 2 M 1 2 M 1 ....... 2
Taking Expectation on both sides of (1) we get,
E N E N 1 E M E
In steady state, the probability that the number of customers in the system is constant
E N E N and
E N 2 E N 2 ........(3)
and substituting in previous equation we have E 1 E M .....(4)
Taking Expectation on the both sides of (2) we get
2E N 1 M E N 2 E N 2 E M 2 2E M 1 2E M 1 E
Using (3) we have
Since the number of arrivals M to a system is independent of the number of customers already in
the system N, we have
2E N E 1 M E M 2 2E M E M E M 2 2E 2 M E M
2
EN
E M 2 2E 2 M E M
......(5)
2 1 E M
Since the arrivals in service time T follows Poisson process with parameter ,
E M T T , E M 2 T 2T 2 T , 2M T T
E M E T E T
E M 2 E 2T 2 T 2 E T 2 E T 2 var T E 2 T E T
E 2 M 2 E 2 T
substituting in (5) we have,
2 var T E 2 T E T 2 2 E 2 T E T
EN
2 1 E T
2 var T E 2 T 2 E T 2 2 E 2 T
2 1 E T
2 var T E 2 T 2 E T 1 E T
2 1 E T
2 var T E 2 T 2 E T 1 E T
2 1 E T 2 1 E T
2 var T E 2 T
E T
2 1 E T
This is called P-K formula.
1 1
If the average service time is then E (T )
E (T ) . If Var (T ) 2 , then the above formula can be written as
1
2 2 2
2 2 2
LS
2(1 ) 2(1 )
LS 2 1
Ws2 3 2
0.5 3
2 8
The total repair time of the network is Ws1 Ws 2 2 hours
3 3
(ii) There are 2 salesmen in a super market. Out of the 2 salesman, one is in charge of
billing and receiving payment while other salesman is in charge of weighing and delivering
the items. Due to lack of space, Only one customer is allowed to enter the shop, only if the
billing clerk is free. The customer who has finished is billing job has to wait until the
delivery section becomes free. If customer arrive according to Poisson process at a 1/hour
and the service times of 2 clerks are independent and have exponential rates of 3 and
2/hour. Find (i) The proportion of customers who enter the supermarket.
(ii)The average number of customer in the system.
(iii)The average amount of time a customer spends in the shop. (Nov / Dec 2013)
Solution:
This problem is 2 stage sequential queuing model with blocking
µ2 (0, 1) µ2
(0, 0)
µ1 (b, 1)
(1, 0) (1,1) µ1
µ2
St. Joseph’s Institute of Technology Page No 64
Subject Name & Code: Probability and Queueing Theory & MA8402 Question Bank 2020 - 2021
From the balance equations with =1; 1 =3; 2 = 2
we have p0,0 2 p0,1 .....(1)
3 p1,0 p0,0 2 p1,1 .......(2)
3 p0,1 3 p1,0 2 pb,1 .......(3)
5 p1,1 p0,1 .......(4)
2 pb,1 3 p1,1 .. .....(5)
From the boundary condition
p0,0 p1,0 p0,1 p1,1 pb,1 1.....(6)
P0,1 = (1\2)P0,0; P1,0 = (2\5) P0,0; P1,1= (1\10) P0,0; Pb,1 = (3\20) P0,0
20 8 10 2 3
Solve the above equations we get p0,0 , p1,0 , p0,1 , p1,1 , pb,1
43 43 43 43 43
20 10 30
(i)Proportion of customers entering the shop is equal to p0,0 p0,1
43 43 43
(ii) Ls = m+n pm, n 1 p1,0 p0,1 2 p1,1 pb,1
28
m n 43
L 30
(iii) Ws s , A Average rate entering of super market A 1 ,
A 43
28
Ws 43 14 hrs.=56min.
30 15
43
5. (i) For an open queuing network with three nodes 1, 2 and 3., let customers arrive from
outside the system to node j according to a Poisson input process with parameters rj and
let Pij denote the proportion of customers departing from facility i to facility j.
0 0.6 0.3
Given (r1, r2, r3) = ( 1, 4, 3 ) and Pij = 0.1 0 0.3
0.4 0.4 0
Determine the average arrival rate λj to the node j for j = 1,2,3. (June2012)
Solution:
k
The traffic equations for the arrival rates are j rj i Pij , j 1,2,...k
i1
Solution:
k
The traffic equations for the arrival rates are j rj i Pij , j 1,2,...k
i1
1 1
1 4 2 ; 2 5 1
4 2
41 2 16 (1)
1 22 10 (2)
Solving (1) and (2) we get, 1 6 and 2 8
n1 n2
3 4 3 4
P(n1 , n2 ) (1 1 )(1 2 ) 2
n1 n2
11
4 5 4 5
1 6 2 8
Ls1 , Ls2 , Ls 3 4 7
1 1 2 2 2 2
L 7
Ws s , 4 5 9
9