Professional Documents
Culture Documents
Tan Do
Vietnamese-German University
Lecture 13
In this lecture
X ∼ U (a, b).
1
f (x) =
b−a
for a≤x≤b and f (x) = 0 otherwise.
Suppose that a farmer retrieves 10 oysters out of the water and that the random
is
P (Y ≥ 8) = P (Y = 8) + P (Y = 9) + P (Y = 10)
10 10 10
= × 0.68 × 0.42 + × 0.69 × 0.41 + × 0.610 × 0.40
8 9 10
= 0.121 + 0.04 + 0.006 = 0.167.
Games of chance
Dial spinning game Recall that in a dial-spinning game we dene θ to be
the angle spun (0 ≤ θ ≤ 180) and
θ
X = $1000 × ,
180
which is a player's winning amount of money (0 ≤ X ≤ 1000).
We have
E(θ) = 90 and E(X) = 500.
and
√
σX = 83333 = 288.7.
Tan Do (VGU) Introduction to Probability Lecture 13 9 / 21
The exponential distribution
f (x) = λ e−λx
Z ∞ 1
E(X) = x λ e−λx dx = .
0 λ
Also, Z ∞ 2
E(X 2 ) = x2 λ e−λx dx = .
0 λ2
Therefore,
2 1 1
Var(X) = E(X 2 ) − (E(X))2 = − 2 = 2.
λ2 λ λ
1
It follows that the standard deviation is σ= λ
. Note that σ = E(X).
Tan Do (VGU) Introduction to Probability Lecture 13 10 / 21
The exponential distribution
function
f (x) = λ e−λx
for x≥0 and f (x) = 0 for x < 0.
Its cumulative distribution function is
F (x) = 1 − e−λx
for x ≥ 0.
The expectation is
1
E(X) = .
λ
The variance is
1
Var(X) = .
λ2
Tan Do (VGU) Introduction to Probability Lecture 13 11 / 21
The exponential distribution
Graphically, this means that the section beyond a certain point x0 is just a
scaled version of the whole probability density function.
Due to the vast searching area, the unfruitful searching of certain areas
does not alter the chance of nding the wreck in the future.
Therefore, the memoryless property of the exponential distribution is
suitable in this case.
Tan Do (VGU) Introduction to Probability Lecture 13 15 / 21
The exponential distribution
It is highly demanded that the wreck is found within the rst week. The probability of
this is
P (X ≤ 7) = F (7) = 1 − e−0.05×7 = 0.3.
After 4 weeks, the search will be called o. The probability that the captain has to call
o the search without success is
P (X ≥ 28) = 1 − F (28) = e−0.05×28 = 0.25.
randn generates a random real number with normal distribution, i.e., distribution
with density
1 x2
f (x) = √ e− 2 .
2π
ExponentialDistribution
Exponential distribution
mu = 11.2619 [6.59179, 23.4849]
exppdf(x,m) computes the p.d.f value of the exponential distribution with mean
m at x.
Plotting p.d.f of the exponential function with mean 2:
x = 0:0.1:10;
y = exppdf(x,2);
plot(x,y)
xlabel(’Observation’)
ylabel(’Probability Density’)
expcdf(x,m) computes the c.d.f value of the exponential distribution with mean
m at x.
Plotting c.d.f of the exponential function with mean 2:
x = 0:0.1:10;
y = expcdf(x,2);
plot(x,y)
xlabel(’Observation’)
ylabel(’Cumulative Probability’)