Another practical for continuous distribution
Another practical for continuous distribution
Q. (a) The records for the arrival of aircraft at an airport indicate that the arrival of aircraft is
exponentially distributed with an average of five minutes between flight arrivals. What is the
probability that the time interval between flights will be (i) Less than 5 minutes (ii) More than
7 minutes?
(b) The life time in hours of a certain of electric component follows exponential distribution
with distribution function.
.
𝐹(𝑋) = 1 − 𝑒 ; x≥0.
(i) What is the probability that the component will survive up to 300 hours? (ii) What is the
probability that it will fail during 350 to 400 hours? (iii) Find its expectation and variance of
the life time of the component?
Aim: (a) To find the probability that the time interval between flights will be
(i) Less than 5 minutes
(ii) More than 7 minutes.
(b) (i) To find that the probability that the component will survive up to 300 hours.
(ii) To find that the probability that the electric component will fail during 350 to 400 hours.
(iii) Find expectation and variance of the life time of the electric component.
Procedure:
Let X follows exponential distribution with parameter 𝜃 then its probability density function
is
𝑓(𝑥; 𝜃) = 𝜃𝑒 ; x ≥0 and
its cumulative distribution function is
𝐹(𝑥) = 1 − 𝑒 ; x≥0.
𝐸(𝑋) = 𝑀𝑒𝑎𝑛 = and Variance=
Calculations:
(a) Let X denote the arrival time between flights in minutes.
Give that, 𝐸(𝑋) = 𝑀𝑒𝑎𝑛 = =5⟹𝜃= .
(i) Probability that the time interval between flights will be Less than 5 minutes is
𝑃(𝑋 ≤ 5) = ∫ 𝑒 𝑑𝑥 = ∫ 𝑒 𝑑𝑥 = = −[𝑒 − 1] = 1 − 𝑒
(ii) Probability that the time interval between flights will be More than 7 minutes is
⁄
𝑃(𝑋 ≤ 7) = ∫ 𝑒 𝑑𝑥 = ∫ 𝑒 𝑑𝑥 = =𝑒 = 0.2466
(b) Let X follows life time (in hours) of the electric component.
.
Given that 𝐹(𝑋) = 1 − 𝑒 = 1−𝑒
.
Here 𝜃 = 0.008 = then its p.d.f. is 𝑓(𝑥) = 0.008𝑒 and
⁄
C.D.F. is 𝐹(𝑋) = 1 − 𝑒 ; x≥0.
(i) The probability that the component will survive up to 300 hours is P[X<300].
.
i.e., P[X < 300] = 1 − 𝑒 =1−𝑒 = 1 − 0.0907 = 0.9093.
(ii) The probability that the electric component will fail during 350 to 400 hours is
P[350<X<400].
.
i.e., P[350 < X < 400] = ∫ 𝑓(𝑥) 𝑑𝑥 = ∫ 𝑓(𝑥) 𝑑𝑥 = ∫ 0.008𝑒 𝑑𝑥
.
.
P[350 < X < 400] = 0.008 ∫ 𝑒 𝑑𝑥 = (0.008) = 0.0200.
.
Conclusion:
(a) The estimated parameter is 𝜃 = .
(i) Probability that the time interval between flights will be Less than 5 minutes is 0.6321.
(ii) Probability that the time interval between flights will be More than 7 minutes is 0.2466.
(b) Here parameter is 𝜃 = 0.008 = .
(i) The probability that the component will survive up to 300 hours is 0.9093.
(ii) The probability that the electric component will fail during 350 to 400 hours is 0.0200.
Q. (a) Suppose that times between fatal auto accidents on a stretch of busy highway have an
exponential distribution with a mean of 20 days. Suppose that an accident occurred on July 1.
What is the probability that another fatal accident occurred in the same month? If the month
of July were accident-free in this stretch of highway except for the accident on July 1, what is
the probability that there will be another fatal accident in the following month (August)?
(b) Let X be the time (in hours) required to repair a computer system. We assume that X has
an exponential distribution with parameter 𝜃 = . Find P(X>10│X>8).
(c ) The distance between major cracks in a highway follows an exponential distribution with
a mean of 5 miles. Given that there are no cracks in the first 5 miles inspected, what is the
probability that there are no major cracks in the next 15 miles?
Aim: (a) To find the probability that there will be another fatal accident in the following
month (August).
(b) To find P(X>10│X>8).
(c ) To find the probability that there are no major cracks in the next 15 miles.
Procedure:
Let X follows exponential distribution with parameter 𝜃 then its p.d.f. is given by
𝑓(𝑥; 𝜃) = 𝜃𝑒 ; x ≥0 and
its cumulative distribution function is 𝐹(𝑥) = 1 − 𝑒 ; x≥0.
Let X has exponential distribution, then for every constant a≥0, one has
P[Y≤x│X≥a]=P[X≤x] for all x, where Y=X – a. This condition explains exponential
distribution has ‘lacks of memory’.
Calculations:
(a) Let X be the time in days from July 1 to the next fatal accident on this stretch of highway.
Then X is exponentially distributed with a mean of 20 days.
The probability that another fatal accident will occur in the month of July is P[X≤31], which
is
.
P[X ≤ 31] = 1 − 𝑒 =1−𝑒 = 0.7878.
The month of July has 31 days and the month of August has 31 days. If the month of July is
accident-free except for the accident on July 1. i.e., Total days are 62. Then the probability
that an accident occurs in August is:
⇒ 𝑃[𝑋 ≤ 𝑥 + 𝑎|𝑋 ≥ 𝑎] = 𝑃[𝑋 ≤ 𝑥] ⇒ 𝑃[𝑋 > 𝑥 + 𝑎|𝑋 > 𝑎] = 𝑃[𝑋 > 𝑥].
P[X≤62│X>31] = 1-P[X>62│X>31]
= 1-P[X>31]
= P[X≤31]
.
=1−𝑒 =1−𝑒 = 0.7878.
= 1 – (1 − 𝑒 )
P[X>10│X>8] = 1 − (1 − 𝑒 ) = 𝑒 = 0.6065.
(c ) Let X denote the distance between major cracks. Given that, Mean (μ)=5. Then, X is an
exponential random variable with 𝜇 = = 5 ⇒ 𝜃 = = 0.2 cracks/mile.
.
Then its C.D.F. is F(X) = 1 − 𝑒 .
Given that there are no cracks in the first 5 miles inspected, then the probability that there are
no major cracks in the next 15 miles this shows lacks of memory less property of
exponential distribution.
(a) The probability that there will be another fatal accident in the following month (August)
is 0.7878.
(b) The computer system repair of the P(X>10│X>8) probability is 0.6065.
(c ) The probability that there are no major cracks in the next 15 miles is 0.0498.
Practical-14
Q. (a) The service life in hours of semiconductor is a random variable having a Weibull
distribution with α=0.025 and β=0.50.
(i) How long can such a semiconductor be expected to last?
(ii) What is the probability that such a semiconductor will still be in operating condition after
4,000 hours.
(b) The lifetime of a certain kind of an emergency backup battery (in hours) is a random
variable X having the Weibull distribution with α=0.10 and β=0.50. Find
(i) The mean lifetime of these batteries;
(ii) The probability that such a battery will last more than 300 hours.
Aim: (a) (i) To find the probability of life time of a semiconductor be expected to last.
(ii) To find the probability that such a semiconductor will still be in operating condition after
4,000 hours.
(b) (i) To find the mean lifetime of an emergency backup batteries (in hours).
(ii) To find the probability of an emergency backup battery will last more than 300 hours.
Procedure:
Let X follows Weibull distribution of the parameters (α,β) with probability density function is
𝑀𝑒𝑎𝑛(𝜇) = ⁄
Calculations:
(a) Given that α=0.025 and β=0.50.
. ( . ) .
𝑃[𝑋 > 4000] = (0.025)(0.5)𝑥 𝑒 𝑑𝑥
. ( . ) .
𝑃[𝑋 > 4000] = (0.0125)𝑥 𝑒 𝑑𝑥
√
1 1
𝑃[𝑋 > 4000] = × 𝑒 𝑑𝑥
80 √𝑥
√
put 𝑢 = ⇒ 𝑑𝑢 = 𝑑𝑥
√
√
𝑃[𝑋 > 4000] = − ∫ 𝑒 𝑑𝑢 = − ( )
= [−𝑒 ] = −𝑒
√ √ × √
𝑃[𝑋 > 4000] = − 𝑒 −𝑒 =𝑒 =𝑒 = 0.2057.
⁄ .
𝜇=𝛼 ∫ 𝑢 𝑒 𝑑𝑢 = 𝛼 Γ 1+ = (0.1) Γ 1+ = (100)(2!) = 200 hours.
.
. ( . ) .
𝐹(𝑥) = ∫ 𝛼𝛽𝑥 𝑒 𝑑𝑥 = ∫ (0.1)(0.5)𝑥 𝑒 𝑑𝑥
√
. ( . ) .
𝐹(𝑥) = ∫ (0.05)𝑥 𝑒 𝑑𝑥 = ∫ 𝑑𝑥
√
√
put 𝑢 = − ⇒ 𝑑𝑢 = 𝑑𝑥
√
⇒ −∫ 𝑒 𝑑𝑢 = 𝑒
. √
. ( . ) √
∴∫ 𝑥 𝑒 (0.5)(0.1)𝑑𝑥 = [−𝑒 ] = −𝑒 =𝑒 0.1769 ≅ 0.177.
Conclusion:
The following are the calculated results:
(a) (i) The probability of life time of a semiconductor be expected to last is 3,200 hours.
(ii) Probability of a semiconductor will still be in operating condition after 4,000 hours is
0.2057.
(b) (i) The mean lifetime of an emergency backup batteries is 200 hours.
(ii) The probability of an emergency backup battery will last more than 300 hours is 0.1769.
Practical-15
Q. Fit a logistic distribution for a given data and obtain Logistic frequencies.
Procedure:
The probability density function of logistic distribution with parameters α and β is given by
𝐹 (𝑥) = .
Then we have to estimate the parameters of α, β of the logistic distribution by using the given
data. The estimates are obtained as:
∑ ∑
𝛼= Mean of the given frequency distribution= ∑
; zi=Mid value; But 𝑧̅ = .
By substituting 𝛼 and 𝛽 in the p.d.f. we get fitted logistic distribution for the given data. To
obtain the expected frequencies first we have to compute F(xi).
∴ 𝐹(𝑥 ) = , where xi is the upper limit of the class interval then expected
∑ 𝑓𝑧 3562
∴𝛼= = = 17.81
∑ 𝑓 200
∑ 𝑧 126
∴ 𝑧̅ = = = 18
𝑛 7
∴ 𝐹(𝑥 ) =
1
𝑥 = 11 ⇒ 𝐹(𝑥 ) = = 0.0801
11 − 17.81
1 + 𝑒𝑥𝑝 −
2.79
1
𝑥 = 13 ⇒ 𝐹(𝑥 ) = = 0.1514
13 − 17.81
1 + 𝑒𝑥𝑝 −
2.79
1
𝑥 = 15 ⇒ 𝐹(𝑥 ) = = 0.2675
15 − 17.81
1 + 𝑒𝑥𝑝 −
2.79
1
𝑥 = 17 ⇒ 𝐹(𝑥 ) = = 0.4279
17 − 17.81
1 + 𝑒𝑥𝑝 −
2.79
1
𝑥 = 19 ⇒ 𝐹(𝑥 ) = = 0.6050
19 − 17.81
1 + 𝑒𝑥𝑝 −
2.79
1
𝑥 = 21 ⇒ 𝐹(𝑥 ) = = 0.7583
21 − 17.81
1 + 𝑒𝑥𝑝 −
2.79
1
𝑥 = 23 ⇒ 𝐹(𝑥 ) = = 0.8653
23 − 17.81
1 + 𝑒𝑥𝑝 −
2.79
1
𝑥 = 25 ⇒ 𝐹(𝑥 ) = = 0.9294
25 − 17.81
1 + 𝑒𝑥𝑝 −
2.79
Conclusion:
Logistic distribution is fitted to the given data. Calculated expected frequencies. They
are 16.02, 14.26, 23.22, 32.08, 35.42, 30.66, 21.40, 12.80 and 14.12 respectively.
Practical-16
√
smaller than − .
Aim: (a) Let X ~ C(2,4) then to find the probability that (i) X is less than 4,
(ii) X is greater than 5, (iii) X is between 1 and 4.5.
√
(b) To find the probability that the error is smaller than− .
Procedure:
The distribution function of Cauchy distribution is
𝑓(𝑥) = ( )
; – ∞<x<∞.
Calculations:
(a) Given that μ=2, and λ=4.
The distribution function of Cauchy distribution is
[Note: Put your calculator in radians then calculate Tan-1(0.5)=0.4636, because Cauchy
distribution measures circular wheel circumference.]
(i) The probability that X is less than 4 is
P[X≤4] = F(4)
.
= 0.5 + 𝑇𝑎𝑛 = 0.5 + 𝑇𝑎𝑛 (0.5) = 0.5 + = 0.6476
. .
√
(b) The probability that the error is smaller than− is
√
√ √ √
√ ( )
𝑃 𝑋<− =∫ 𝑓(𝑥)𝑑𝑥 = ∫ ( )
𝑑𝑥 = ∫ ( )
𝑑𝑥 =
√3 1 𝜋
𝑃 𝑋<− = −0.7137 + = −0.2272 + 0.5 = 0.2728
2 𝜋 2
Conclusion:
(a) (i) The probability that X is less than 4 is 0.6476.
(ii) The probability that X is greater than 5 is 0.2952.
(iii) The probability that X is between 1 and 4.5 is 0.2558.
√
(b) The probability that the error is smaller than− is 0.2728.