Unit 15 Continuous Uniform and Exponential Distributions: Structure

Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

Continuous Uniform and

UNIT 15 CONTINUOUS UNIFORM AND Exponential Distributions


EXPONENTIAL DISTRIBUTIONS
Structure
15.1 Introduction
Objectives

15.2 Continuous Uniform Distribution


15.3 Exponential Distribution
15.4 Summary
15.5 Solutions/Answers

15.1 INTRODUCTION
In Units 13 and 14, you have studied normal distribution with its various
properties and applications. Continuing our study on continuous distributions,
we, in this unit, discuss continuous uniform and exponential distributions. It
may be seen that discrete uniform and geometric distributions studied in Unit
11 and Unit 12 are the discrete analogs of continuous uniform and exponential
distributions. Like geometric distribution, exponential distribution also has the
memoryless property. You have also studied that geometric distribution is the
only discrete distribution which has the memoryless property. This feature is
also there in exponential distribution and it is the only continuous distribution
having the memoryless property.
The present unit discusses continuous uniform distribution in Sec. 15.2 and
exponential distribution in Sec. 15.3.
Objectives
After studing the unit, you would be able to:
 define continuous uniform and exponential distributions;
 state the properties of these distributions;
 explain the memoryless property of exponential distribution; and
 solve various problems on the situations related to these distributions.

15.2 CONTINUOUS UNIFORM DISTRIBUTION


The uniform (or rectangular) distribution is a very simple distribution. It
provides a useful model for a few random phenomena like having random
number from the interval [0, 1], then one is thinking of the value of a
uniformly distributed random variable over the interval [0, 1].
Definition: A random variable X is said to follow a continuous uniform
(rectangular) distribution over an interval (a, b) if its probability density
function is given by

 1
 for a  x  b
f x  b  a
 0, otherwise

57
Continuous Probability The distribution is called uniform distribution since it assumes a constant
Distributions
(uniform) value for all x in (a, b). If we draw the graph of y = f(x) over x-axis
and between the ordinates x = a and x = b (say), it describes a rectangle as
shown in Fig. 15.1

1
ba

X
a b
Fig. 15.1: Graph of uniform function

A uniform variate X on the interval (a, b) is written as X ~ U[a, b]


Cumulative Distribution Function
The cumulative distribution function of the uniform random variate over the
interval (a, b) is given by:
x
For x  a , F  x   P  X  x    0dx  0


For a < x < b,


x x
1 1 x a
F  x   P  X  x    f  x  dx   dx   x ax  .
a a
ba ba ba

For x  b
x
F  x   P X  x   f  x dx


a b 
  f  x dx   f  x dx   f  x dx
 a b

a b 
1
   0 dx  
 a
ba
dx    0 dx
b

1 b ba
=0+  x a  0 =  1.
ba ba
So,
 0 for x  a
x  a

Fx    for a  x  b
b  a
 1 for x  b

58
On plotting its graph, we have Continuous Uniform and
Exponential Distributions
Fx 

a b
Fig. 15.2: Graph of distribution function

Mean and Variance of Uniform Distribution


Mean = 1st order moment about origin 1'  
b b
1
=  x.f  x  dx =  x.
a a
ba
dx

b
1  x2  1  b2 a 2 
=      
b  a  2 a b  a  2 2 

=
 b  a  b  a  
ab
2b  a  2

Second order moment about origin   '2 


b
2
=  x f  x  dx
a

b b
1 1  x3  1  b3 a 3 
=  x2. dx =   =   
a
ba b  a  3 a ba  3 3 

b3  a 3
=
3 b  a 

 b  a   b2  ab  a 2 
=  x 3  y 3   x  y   x 2  xy  y 2  
3 b  a   

a 2  ab  b 2

3
2
2 a 2  ab  b 2  a  b 
2
 Variance of X = E(X ) – [E(X)] =  
3  2 
2


 
4 a 2  ab  b 2  3  a  b 
12
59
Continuous Probability
Distributions 4a 2  4ab  4b 2  3a 2  3b 2  6ab

12
2
b2  a 2  2ab  b  a 
  .
12 12
2

So, Mean =
ab
and Variance =
b  a  .
2 12
Let us now take up some examples on continuous uniform distribution.
Example 1: If X is uniformly distributed with mean 2 and variance 12, find
P[X < 3].
Solution: Let X  U [a, b]
 probability density function of X is
1
f x  , a  x  b.
ba
Now as Mean = 2
ab
 2
2
 a+b=4 … (1)
Variance = 12
2


b  a   12
12
2
  b  a   144

 b – a =  12

b  a  12, being negative is 


 b – a = 12 ... (2)  rejected as b should be greater than a 
 
 b  a should be positive 

Adding (1) and (2), we have


2b = 16
 b = 8 and hence a = 4 – 8 = – 4
1 1 1
 f x    for – 4 < x < 8.
b  a 8   4  12
3 3
1 1 1 3
Thus, the desired probability  P  X  3  4 12 dx  12 41dx = 12  x 4
1 7
 3   4   = .
12 12
Example 2: Calculate the coefficient of variation for the rectangular
distribution in (0, 12).
60
Solution: Here a = 0, b = 12. Continuous Uniform and
Exponential Distributions
a  b 0  12
 Mean =   6,
2 2
2 2

Variance =
b  a  
12  0  
144
 12.
12 12 12
 S.D. = 12
Thus, the coefficient of variation
S.D.
= 100 [Also see Unit 2 of MST-002]
Mean

12
 100 = 57.74%
6
Example 3: Metro trains are scheduled every 5 minutes at a certain station. A
person comes to the station at a random time. Let the random variable X count
the number of minutes he/she has to wait for the next train. Assume X has a
uniform distribution over the interval (0, 5). Find the probability that he/she
has to wait at least 3 minutes for the train.
Solution: As X follows uniform distribution over the interval (0, 5),
 probability density function of X is
1 1 1
f x    , 0 x5
ba 50 5
Thus, the desired probability
5 5 5
1 1
P  X  3   f  x  dx   dx   1 dx
3 3
5 53

1 5 1 2
  x 3   5  3   0.4
5 5 5

Now, you can try the following exercises.


E1) Suppose that X is uniformly distributed over (–a, a). Determine ‘a’ so that
1
i) P  X  4 
3
3
ii) P  X  1 
4
iii) P  X  2   P  X  2 

E2) A random variable X has a uniform distribution over (–2, 2). Find k for
1
which P[X > k] = .
2

61
Continuous Probability Now, let us discuss exponential distribution in the next section.
Distributions

15.3 EXPONENTIAL DISTRIBUTION


The exponential distribution finds applications in the situations related to
lifetime of an equipment or service time at the counter in a queue. So, the
exponential distribution serves as a good model whenever there is a waiting
time involved for a specific event to occur e.g. waiting time for a failure to
occur in a machine. The exponential distribution is defined as follows:
Definition: A random variable X is said to follow exponential distribution
with parameter  > 0, if it takes any non-negative real value and its probability
density function is given by
e x for x  0
f x  
0, elsewhere

Its cumulative distribution function (c.d.f.) is thus given by


x x
F  x   P  X  x    f  x  dx   e x dx
0 0

x
 ex  x x


 x
  1 e  0   e  e
0
 
 0

 
  e x  1  1  e x .

1  e x for x  0
So, F  x    .
0, elsewhere

Mean and Variance of Exponential Distribution


 
Mean = E  X    x f  x  dx   x  ex dx
0 0


   x ex dx
0


 ex 

ex 
    x   1 dx  [Integrating by parts]
    0 0  

In case of integration of product of two different types of functions, we do


integration by parts i.e. the following formula is applied:

  First function Second fuction  dx


= (First function as it is) (Integral of second)
   Differentiation of first  Integral of second  dx

62
 Continuous Uniform and
 1  ex  
 Mean    0  0     Exponential Distributions
     0 

 1   1  1
    2  0  1     2   .
     
 
Now, E  X 2    x 2f  x  dx   x 2  e x  dx
0 0


   x 2e x dx
0

 ex   ex 
=   x 2   2x  dx  [Integrating by parts]
 0 0

  


 2 
   0  0    x e x dx 
 0 
 
2 2

 0 0

  x e x dx =  x ex dx 
2
 E X

21
 [E(X) is mean and has already been obtained]

2

2
2
2 1 2 1 1
Thus, Variance = E(X2) – [E(X)] 2 = 2
   2  2  2
    
1 1
So, Mean = and Variance = 2 .
 
1 1 Mean
Remark 1: Variance = 2
   Mean =  Variance
 . 
So,
Value of  Implies
<1 Mean < Variance
=1 Mean = Variance
>1 Mean > Variance

Hence, for exponential distribution,


Mean > or = or < Variance according to whether  > or = or < 1.

63
Continuous Probability Memoryless Property of Exponential Distribution
Distributions
Now, let us discuss a very important property of exponential distribution and
that is the memoryless (or forgetfulness) property. Like geometric distribution
in the family of discrete distributions, exponential distribution is the only
distribution in the family of continuous distributions which has memoryless
property. The memorless property of exponential distribution is stated as:
If X has an exponential distribution, then for every constant a  0, one has
P[X  x + a  X  a] = P  X  x  for all x i.e. the conditional probability of
waiting up to the time ' x  a ' given that it exceeds ‘a’ is same as the
probability of waiting up to the time ‘ x ’. To make you understand the above
concept clearly let us take the following example: Suppose you purchase a TV
set, assuming that its life time follows exponential distribution, for which the
expected life time has been told to you 10 years (say). Now, if you use this TV
set for say 4 years and then you ask a TV mechanic, without informing him/her
that you had purchased it 4 years ago, regarding its expected life time. He/she,
if finds the TV set as good as new, will say that its expected life time is 10
years.
So, here, in the above example, 4 years period has been forgotten, in a way,
and for this example:
P[life time up to 10 years]
= P[life time up to 14 years | life time exceeds 4 years]
i.e. P[X  10] = P [X  14 X  4]
or P[X  10] = P[X  10 + 4 X  4]
Here a = 4 and x = 10.
Let us now prove the memoryless property of exponential distribution.
 X  x  a    X  a  
Proof: P  X  x  a  X  a   [By conditional probability]
P X  a 

where
P  X  x  a    X  a    P  a  X  x  a 
xa xa
x
  f  x  dx   e dx
a a

xa
 ex   e   x a  e a 
    
   a    
  x  a 
  e  ea    e x .ea  ea 

= e a 1  ex  , and

  
x  e x   a  a
P[X  a] =  f  x  dx =  e dx       0  e   e
a a    a

64
e a 1  e x  Continuous Uniform and
 P X  x  a  X  a   1  e x Exponential Distributions
ea
x
Also, P[ X  x ]   e x dx
0

 1  e x [On simplification]


Thus,
P[X  x + a  X  a] = P[X  x].
Hence proved
Example 4: Show that for the exponential distribution:
f  x   Ae  x , 0  x   , mean and variance are equal.

Solution: As f  x  is probability function,



  f  x  dx  1
0

 
x  ex 
  Ae dx  1  A   1
0  (1)  0
 –A [0 –1] = 1  A = 1
 f  x   e x

Now, comparing it with the exponential distribution


f  x   e x , we have

=1
1 1
Hence, mean =   1,
 1
1 1
and variance =   1.
2 1
So, the mean and variance are equal for the given exponential distribution.
Example 5: Telephone calls arrive at a switchboard following an exponential
distribution with parameter  = 12 per hour. If we are at the switchboard, what
is the probability that the waiting time for a call is
i) at least 15 minutes
ii) not more than 10 minutes.
Solution: Let X be the waiting time (in hours) for a call.
 f  x   ex , x  0

 F  x   P  X  x   1  e x [c.d.f. of exponential distribution]

= 1  e12x … (1) [  = 12]


65
Continuous Probability Now,
Distributions
1
i) P[waiting time is at least 15 minutes] = P[waiting time is at least hours]
4
 1  1
= P X    1  P X  
 4  4
1
 12 
= 1  1  e 4  [Using (1) above]
 
= e 3
See table given at the 
= 0.0498 end of Unit10 
 
ii) P[waiting time not more than 10 minutes]
1
= P[waiting time not more than hrs]
6
1
 1 12
= P X    1  e 6
 6

= 1– e 2 = 1– (0.1353) = 0.8647

Now, we are sure that you can try the following exercises.
E3) What are the mean and variance of the exponential distribution given
by:
f  x   3e3x , x  0

E4) Obtain the value of k > 0 for which the function given by
f  x   2e kx , x  0

follows an exponential distribution.


1
E5) Suppose that accidents occur in a factory at a rate of   per
20
working day. Suppose in the factory six days (from Monday to
Saturday) are working. Suppose we begin observing the occurrence of
accidents at the starting of work on Monday. Let X be the number of
days until the first accident occurs. Find the probability that
i) first week is accident free
ii) first accident occurs any time from starting of working day on
Tuesday in second week till end of working day on Wednesday in
the same week.

66
We now conclude this unit by giving a summary of what we have covered in it. Continuous Uniform and
Exponential Distributions
15.4 SUMMARY
Following main points have been covered in this unit.
1) A random variable X is said to follow a continuous uniform (rectangular)
distribution over an interval (a, b) if its probability density function is given
by

 1
 for a  x  b
f x  b  a
 0, otherwise

ab
2) For continuous uniform distribution, Mean  and
2
2

variance 
b  a .
12
3) A random variable X is said to follow exponential distribution with
parameter  > 0, if it takes any non-negative real value and its probability
density function is given by
ex for x  0
f x  
 0 , elsewhere
1 1
4) For exponential distribution, Mean = and Variance = 2 .
 
5) Mean > or = or < Variance according to whether  > or = or < 1.
6) Exponential distribution is the only continuous distribution which has
the memoryless property given by:
P[X  x + a  X  a] = P[X  x].

15.5 SOLUTIONS/ANSWERS
E1) As X  U[  a, a],
 probability density function of X is
1 1 1
f x    , a  x  a .
a  ( a) a  a 2a
1
i) Given that P[X > 4] =
3
a
1 1
  2a dx  3
4

1 1
  x a4 
2a 3

67
Continuous Probability a4 1
Distributions  
2a 3
 3a – 12 = 2a
 a = 12.
3
ii) P  X  1 
4
1
1 3
 dx 
a
2a 4

1 3
  x 1 a 
2a 4
1 3
 1  a  
2a 4
3
 1+ a = a
2
 2  2a  3a
 a2
iii) P  X  2   P  X  2 

 X  2   X  2 
 X  2 or  X  2 
 
  2  X  2 and 
 P  2  X  2  P  X  2 or X  2   
 X  2  X  2 
 X  2or  X  2 
 
 X  2or X   2 

 By Addition law of 
 P  2  X  2  P  X  2   P  X  2  probability for mutually 

 exclusive events 
2 2 a
1 1 1
  dx   dx   dx
2
2a a
2a 2
2a

1 1 1

2a
 4    2  a    a  2 
2a 2a
 4  (2  a)  (a  2)
 4  4  2a
 2a = 8
 a=4
E2) As X ~ U [  2, 2],
1
 f x  ,  2  x  2.
68 4
1 Continuous Uniform and
Now P X  k  Exponential Distributions
2
2
1 1
  4dx  2
k

2k 1
 
4 2
2–k=2
 k = 0.
E3) Comparing it with the exponential distribution given by
f  x   e x , x  0

We have  = 3
1 1 1 1
 Mean =  and Variance = 2 
 3  9
E4) As the given function is exponential distribution i.e. a p.d.f.,

  f  x  dx  1
0

k=2 [On simplification]


Alternatively, you may compare the given function with exponential
distribution
f  x   ex ,

we have
 = 2 and  = k
k=2
1
 x
E5) Here P  X  x   F  x   1  e x = 1 – e 20

i) P[First week is accident free] = P[Accident occurs after six days]


= P[X > 6] = 1 – P[X  5]
1

= 1  1  e5/ 20   e 4
 e 0.25  0.7788.

ii) P[First accident occurs on second week from starting of working day
on Tuesday till end of working day on Wednesday]
=P[First accident occurs after 7 working days
and before the end of 9 working days]
= P[7 < X  9]
= P[X  9] – P[X  7]

69
Continuous Probability 9 7
Distributions      
  1  e 20   1  e 20 
   
9 7
 
20 20
 e e
7 9
 
20 20
e e
 e0.35  e 0.45
= 0.7047 – 0.6376 [See the table give at the end of Unit 10]
= 0.0671.

70

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy