Exponential Distribution
Exponential Distribution
Exponential Distribution
Rajendr a Khemka
Enrollment ID:
140420705005
Introduction
CDF (Cumulative Distribution Function), and
EXPONENTIAL
DISTRIBUTION
In probability theory
an exponential distribution is
Equation for CDF: 1 ex
x >= 0
a null
MATLAB CODE
% exponential distribution pdf and cdf scripting
% both mean and mu should have same index
clc
clear all
mean = input('enter the mean value for dist. function : ');
mu = input('enter the mu value for dist. function : ');
temp= size(mean);
n= temp(1,2);
% to implement PDF (Prob. Density Function)
disp('Exponential PDF is : ');
for i = 1:n
y(i) = [2.718281828 ^ -(mean(i)./mu(i))]./ mu(i);
end
subplot(1,2,1);
plot(y)
title('PDF plot');
axis('square');
% To implement CDF (Cumulative Dist. Function)
% Function implemented is y(mu, mean) = 1 - e ^ (mean/mu)
% requirement : mean and mu must be of same size
disp('Exponential CDF is : ');
for i = 1:n
z(i) = 1 - [2.718281828 ^ -(mean(i)./mu(i))];
end
subplot(1,2,2);
plot(z)
title('CDF plot');
axis('square');
SIMULATION RESULTS
0.4
0.35
0.95
0.3
0.9
0.25
0.85
0.2
0.8
0.15
0.75
0.1
0.7
0.05
0.65
0
0
10
15
20
25
CDF plot
30
35
40
45
50
10
15
20
25
30
35
40
45
50
0.4
0.35
0.95
0.3
0.9
0.25
0.85
0.2
0.8
0.15
0.75
0.1
0.7
0.05
0.65
0
0
10
20
30
40
50
CDF plot
60
70
80
90
100
10
20
30
40
50
60
70
80
90
100
0.4
0.35
0.95
0.3
0.9
0.25
0.85
0.2
0.8
0.15
0.75
0.1
0.7
0.05
0.65
0
0
100
200
300
400
500
CDF plot
600
700
800
900
1000
100
200
300
400
500
600
700
800
900
1000
RESULTS USING
DISTTOOL - PDF
2
1.5
0.5
0.5
1.5
2.5
3.5
RESULTS USING
DISTTOOL - CDF
1
0.8
0.6
0.4
0.2
0.5
1.5
2.5
3.5
APPLICATIONS
The time it takes before your next telephone
call
For example, the rate of incoming phone calls
differs according to the time of day. But if we
focus on a time interval during which the rate is
roughly constant, such as from 2 to 4 p.m. during
work days, the exponential distribution can be
used as a good approximate model for the time
until the next phone call arrives.
THANK YOU
FOR YOUR
PATIENCE