






























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!































- Chapter
Ammar M. Sarhan
Department of Mathematics and Statistics,
Dalhousie University^ Fall Semester 2008
Dr. Ammar M. Sarhan
Dr. Ammar M. Sarhan
3.1 Random Variables
(D=defective, N=non-defective)
In a statistical experiment, it is often very important to allocatenumerical values to the outcomes. Example: • Let X = number of defective components.• Assigned numerical values to the outcomes are: Notice that, the set of all possible values of the variable X is {0, 1, 2}.
Dr. Ammar M. Sarhan Random Variable
For a given sample space
of some experiment, a
random variable is
any
rule (function) that associates a real number with each outcome in
Notation:
" denotes the random variable. "^ x
" denotes a particular value of the random variable
Bernoulli Random Variable
Any random variable whose only possible values are
and
is called
a^ Bernoulli random variable.
Dr. Ammar M. Sarhan
Probability Distribution
The
probability distribution or probability mass function (pmf) of a discrete rv
is defined for every number
x^
by
(^
)^
(^
) x
X P x s X S s P x
p^
=
∈
=^
) ( :
all ) (
The probability mass function,
p (
x ), of a discrete random variable X
satisfies the following:
(^
)^
. 0
) (^
=^
x X P x p
. 1 ) (^
=
∑ xall
x p
Note:
.)
(
) (
) (
∑
∑
∈
∈
=
=
=^
Ax all
Ax all
x X P x p A P
Dr. Ammar M. Sarhan
Parameter of a Probability Distribution
¾Suppose that
p(x)
depends on a
quantity
that can be assigned any
one of a number of possible values, each with different valuedetermining a different probability distribution. ¾Such a quantity is called a
parameter of the distribution
¾The collection of all distributions for all different parameters is calleda
family
of distributions.
Example:
For 0<
a^
Each choice of
a^
yields a different pmf.
⎧ ⎪ ⎨ ⎪⎩
= =
otherwise
x if
a
x if a
a x p
0
(^01)
1 ) ; (
Dr. Ammar M. Sarhan
Probability Distribution for the Random Variable
A probability distribution for a random variable
x^
-^ -^ -^
0
1
4
6
P(X=x)
Find: 1)F(x)2)P(X > 0)3)P(-
≤^
X^ ≤^ 1)
4)P(-
≤^
X < 1)
5)P(-2 < X
≤^
6)P(-3 < X < 1)
x^
-^ -^ -^
0
1
4
6
F(x)
1)^
F(x)
= 1- P(X
≤^
= P(-
≤^
X^
≤^ 1) = F(1) – F(-2-) = F(1) – F(-3) = 0.
= P(-
≤^
X < 1) = F(1-) – F(-2-) = F(0) – F(-3) = 0.
= P(-2 < X
≤^
= F(1) – F(-2) = 0.
= P(-3 < X < 1) = F(1-) – F(-2) = F(0) – F(-2) = 0. 37
Dr. Ammar M. Sarhan
x^
-^ -^ -^
0
1
4
6
F(x)
x^
-^ -^ -^
0
1
4
6
P(X=x)
6 5 4 3 2 1 0
F(x)
Dr. Ammar M. Sarhan
Sample point
Value of X (x)
Probability
HH
2
P(HH) = P(H) P(H) = 1/
×1/3=1/
HT
1
P(HT) =P(H) P(T) =1/
×2/3 = 2/
TH
1
P(HT) = P(H) P(T) =1/
×2/3 = 2/
TT
0
P(TT) = P(T) P(T) = 2/
×2/3 = 4/
The possible values of X are:
0, 1, and 2.
X is a discrete random variable.^ (X=x)
p(x) = P(X=x)
(X=0)={TT}
4/
(X=1)={HT, TH}
2/9 + 2/9 =4/
(X=2)={HH}
1/
X^
0
1
2
Total
P(X=x)
4/
4/
1/
1.
Probability distribution of the X
Tossing a non-balance coin 2 times independently. Sample space:
Suppose P(H) = ½ P(T)
P(H) =1/3 and P(T)=2/3.
Let X= number of heads
Example
Dr. Ammar M. Sarhan
φ) = 0 =1-F(8) = 1-1 = 0
P(X<10) = P(X=0) + P(X=1) + P(X=2) = P(
X^
0
1
2
F(x)
4/
8/
9/
F(x)
⎧ ⎪⎪ ⎨ ⎪ ⎪⎩
≤
< ≤
< < ≤
=
x x x x
x F
2 if
1
2
1 if (^9) / 8
1
0 if (^9) / 4
0
if
0 ) (
Dr. Ammar M. Sarhan
N(X=0)={0D and 2N} = N(X=1)= {1D and 1N} = N(X=2)={2D and 1N} =^ P(X=0)=
Dr. Ammar M. Sarhan
The probability distribution of X p ( x ) =
,^ x
p(x) = P(X=x)^ Hypergeometric Distribution
otherwise.
Dr. Ammar M. Sarhan
The Expected Value of a Function
If the rv
has the set of possible values D and pmf
p (
x ), then the
expected value of any function
h (
x ), denoted E[h(X)] or (
μh(X)
) is
.) ( ) (
)] ( [^
) (^
∑∈
⋅
=
=^
Dx
Xh
x p x h X h E
μ
Rules of the Expected Value^ E[
aX
b ] =
a^
b
a,
aX
a^
b,
X + b
b
Dr. Ammar M. Sarhan
20
The Variance and Standard Deviation
Let
have pmf
p (
x ) ,
and expected value
Then the
variance
of
denoted
(or
or
(^2) σ ) ,^ is
.) ( )
(
] )
[( ) (^
2
2
∑∈
⋅ −
=
−
=^
Dx
x p x X E X V
μ
μ
(^2) X
The
standard deviation
(SD) of
is
(^2) X
X