Professional Documents
Culture Documents
Virtual University of Pakistan Lecture No. 23 of The Course On Statistics and Probability by Miss Saleha Naghmi Habibullah
Virtual University of Pakistan Lecture No. 23 of The Course On Statistics and Probability by Miss Saleha Naghmi Habibullah
Lecture No. 23
of the course on
Statistics and Probability
by
Miss Saleha Naghmi Habibullah
IN THE LAST LECTURE,
YOU LEARNT
•Bayes’ Theorem
•Discrete Random Variable
• Discrete Probability Distribution
•Graphical Representation of a Discrete Probability
Distribution
•Mean, Standard Deviation and Coefficient of
Variation of a Discrete Probability Distribution
•Distribution Function of a Discrete Random Variable.
TOPICS FOR TODAY
•Mathematical Expectation
f(0) = P(X = 0)
= P[{TTT}] = 1/8
f(1) = P(X = 1)
= P[{HTT, THT, TTH}] = 3/8
f(2) = P(X = 2)
= P[{HHT, HTH, THH}] = 3/8
f(2) = P(X = 3)
= P[{HHH}] = 1/8
Expressing the above information in the tabular
form, we obtain the desired probability distribution of X
as follows:
N
umb
erofHe
adsP
ro
babil
ity
(
xi) f(
xi)
1
0
8
3
1
8
3
2
8
1
3
8
T
ot
al 1
The line chart of the above
probability distribution is as
follows:
f(x)
4/8
3/8
2/8
1/8
0 X
0 1 2 3
In order to obtain the distribution function of this
random variable, we compute the cumulative probabilities
as follows:
Number of Probability Cumulative
Heads Probability
(xi) f(xi) F(xi)
1 1
0
8 8
3 1 3 4
1
8 8 8 8
3 4 3 7
2
8 8 8 8
1 7 1
3 1
8 8 8
Hence the desired distribution function is
0, for x 0
1
, for 0 x 1
8
4
F x , for 1 x 2
8
7
8 , for 2 x 3
1, for x 3
INTERPRETATION:
If x < 0, we have
P(X < x) = 0, the reason being that it is not possible
for our random variable X to assume value less than zero.
(The minimum number of heads that we can have in
tossing three coins is zero.)
1
P(X x) P(X 0) ;
8
Similarly,
•For 1 < x < 2, we have
P X x P X 0 P X 1
1 3 4
;
8 8 8
•For 2 < x < 3, we have
P X x P X 0 P X 1 P X 2
1 3 3 7
;
8 8 8 8
And, finally, for x > 3, we have
P X x P X 0 P X 1 P X 2 P(X 3)
1 3 3 1 8
1.
8 8 8 8 8
Hence, the graph of the
DISTRIBUTION FUNCTION
is as follows:
F(x)
1
6/8
4/8
2/8
0 1 2 3 X
As this graph resembles the steps of a staircase, it
is known as a step function.
It is also known as a jump function (as it takes
jumps at integral values of X).
In some books, the graph of
the distribution function is
given as shown in the following
figure:
F(x)
1
6/8
4/8
2/8
0 1 2 3 X
In what way do we interpret
the above distribution function
from a REAL-LIFE point of
view?
If we toss three balanced
coins, the probability that we
obtain at the most one head is 4/8,
the probability that we obtain at
the most two heads is 7/8, and so
on.
Let us consider another
interesting example to illustrate
the concepts of a discrete
probability distribution and its
distribution function:
EXAMPLE
A large store places its last 15 clock radios in a
clearance sale. Unknown to any one, 5 of the radios are
defective.
If a customer tests 3 different clock radios selected
at random, what is the probability distribution of X,
where X represent the number of defective radios in the
sample?
SOLUTION
We have:
Type of Number of
Clock Radio Clock Radios
Good 10
Defective 5
Total 15
The total number of ways of
15
selecting 3 radios out of 15 is .
3
Also, the total number of ways of selecting 3
good radios (and no defective radio)
10 5
is .
3 0
Hence, the probability of
10 5
X = 0 is 3 0 0.26.
15
3
The probabilities of X = 1, 2, and 3 are computed in
a similar way.
Hence, we obtain the following probability
distribution:
Number of defective Probability
clock radios in the
sample
X f(x)
0 0.26
1 0.49
2 0.22
3 0.02
Total 0.99 1
The line chart of this
distribution is:
LINE CHART
f(x)
0.5
0.4
0.3
0.2
0.1
0 X
0 1 2 3
As indicated by the above diagram, it is not
necessary for a probability distribution to be symmetric;
it can be positively or negatively skewed.
The distribution function of
the above probability
distribution is obtained as
follows:
Number of defective f(x) F(x)
clock radios in the
sample
X
0 0.26 0.26
1 0.49 0.75
2 0.22 0.97
3 0.02 0.99 1
Total 0.99 1
INTERPRETATION
The probability that the sample of 3 clock radios
contains at the most one defective radio is 0.75, the
probability that the sample contains at the most two
defective radios is 0.97, and so on.
Next, we consider the concept of
MATHEMATICAL EXPECTATION.
H x i f x i ,
i
In particular, if H(X) = X2, then E(X2) = xi2 f(x).
and kurtosis by 4
2 2
.
2
These moment-ratios assist us in determining the
skewness and kurtosis of our probability distribution in
exactly the same way as was discussed in the case of
frequency distributions.
Next, we discuss some important properties of
mathematical expectation.
The important properties of the expected values
of a random variable are as follows:
PROPERTIES OF MATHEMATICAL
EXPECTATION
1. If c is a constant, then
E(c) = c.
Thus the expected value of a constant is
constant itself.
This point can be understood
easily by considering the following
interesting example:
Suppose that a very difficult test
was given to students by a professor,
and that every student obtained 2
marks out of 20!
It is obvious that the mean mark
is also 2. Since the variable ‘marks’
was a constant, therefore its
expected value was equal to itself.
2. If X is a discrete random variable and if a and b
are constants, then
E(aX + b) = a E(X) + b.
Let us verify this from
the following example:
EXAMPLE
Let X represent the number of
heads that appear when three fair coins
are tossed.
The probability distribution of X is:
X P(x)
0 1/8
1 3/8
2 3/8
3 1/8
Total 1
The expected value of X is
obtained as follows:
x P(x) xP(x)
0 1/8 0
1 3/8 3/8
2 3/8 6/8
3 1/8 3/8
Total 1 12/8=1.5
Hence, E(X) = 1.5
Suppose that we are
interested in finding the
expected value of the random
variable 2X+3.
Then we carry out the
following computations:
x 2x+3 P(x) (2x+3)P(x)
0 3 1/8 3/8
1 5 3/8 15/8
2 7 3/8 21/8
3 9 1/8 9/8
Total 1 48/8=6
Hence
E(2X+3) = 6
It should be noted that
E(2X+3) = 6
= 2(1.5) + 3
= 2E(X) + 3
i.e.
E(aX + b) = a E(X) + b.
IN TODAY’S LECTURE,
YOU LEARNT
•Graphical Representation of the
Distribution Function of a Discrete
Random Variable
•Mathematical Expectation
•Mean, Variance and Moments of a
Discrete Probability Distribution
•Properties of Expected Values
IN THE NEXT LECTURE,
YOU WILL LEARN
•Chebychev’s Inequality
•Continuous Probability
Distributions