3-Random Variables-04-01-2023
3-Random Variables-04-01-2023
3-Random Variables-04-01-2023
Dr. Nalliah M
Assistant Professor
Department of Mathematics
School of Advanced Sciences
Vellore Institute of Technology
Vellore,Tamil Nadu,India.
nalliah.moviri@vit.ac.in
X (s1 ) = 2
X (s2 ) = 1
X (s3 ) = 1
X (s4 ) = 0
where si ∈ S, i = 1, 2, 3, 4.
Thus the variable X is called a random variable with the values x is 0, 1, 2.
X (s1 ) = 2
X (s2 ) = 1
X (s3 ) = 1
X (s4 ) = 0.
X 0 1 2
1 1 1
P(x)=P(X=x) 4 2 4
The set of ordered pairs (x, P(x)) is called the probability mass function,
probability function, or probability distribution of the discrete random
variable X .
P(x) ≥ 0
P
P(x) = 1.
x
X 0 1 2
68 51 3
P(x)=P(X=x) 95 190 190
Let us discuss a random variable whose values are the heights of all people
over 21 years of age.
Between any two values, say 163.5 and 164.5 centimeters, or even 163.99
and 164.01 centimeters, there are an infinite number of heights, one of
which is 164 centimeters.
The function f (x) is a probability density function (pdf) for the continuous
random variable X , defined over the set of real numbers, if
fZ(x) ≥ 0, for all x ∈ R,
∞
f (x)dx = 1.
−∞
Example
Suppose that the error in the reaction temperature, in C, for a controlled
laboratory experiment is a continuous random variable X having the
probability density function
x 2 , −1 < x < 2
3
f (x) =
0.
elsewhere.
Dr. Nalliah M Module-2 July 28, 2020 17 / 54
Example Cont...
Solution
For(1),
Obviously, f (x) ≥ 0. To verify condition
Z ∞
f (x)dx = 1.
−∞
Now,
Z ∞ Z −∞ Z 2 Z ∞
f (x)dx = f (x)dx + f (x)dx + f (x)dx
−∞ −1 −1 2
2
x2
Z
=0+ dx + 0
−1 3
2
x3
=
3×3 −1
8 (−1)
= −
9 9
8 (1)
= +
9 9
= 1.
For(2),
Z 1
P(0 < X ≤ 1) = f (x)dx
0
1
x2
Z
= dx
0 3
3 1
x
=
3×3 0
1
= −0
9
1
= .
9
X -2 -1 0 1 2 3
P(X) 0.1 k 0.2 2k 0.3 k
1 Find k.
2 Evaluate P(X ≤ 2) and P(−1 ≤ X ≤ 2).
3 Find the cumulative distribution function.
P
For(1), since P(x) is p.m.f, and P(x) = 1. , it follows that we get
x
X
P(x) = 1
x
0.6 + 4k = 1
4k = 0.4
0.4
k=
4
k = 0.1
X -2 -1 0 1 2 3
P(X) 0.1 0.1 0.2 0.2 0.3 0.1
For(2),
= 0.9
OR
Dr. Nalliah M Module-2 July 28, 2020 24 / 54
Solution Cont...
= 1 − P(X = 3)
= 1 − 0.1
= 0.9
Now,
= 0.8
Dr. Nalliah M Module-2 July 28, 2020 25 / 54
Solution Cont...
P
F (x) = P(X ≤ x) = P(X = t).
t≤x
P(X ≤ −2) = 0.1, If x = −2
P(X ≤ −1) = 0.2, If x = −1
P(X ≤ 0) = 0.4,
If x = 0
F (x) =
P(X ≤ 1) = 0.6, If x = 1
P(X ≤ 2) = 0.9, If x = 2
P(X ≤ 3) = 1,
If x = 3.
X 0 1 2 3 4 5 6 7
P(X) 0 k 2k 2k 3k k2 2k 2 7k 2 +k
1 Find k.
2 Evaluate P(X ≤ 6), P(X ≥ 6) and P((1.5 < X < 4.5)/(X > 2))
3 Find the cumulative distribution function.
The Department of Energy (DOE) puts projects out on bid and generally
estimates what a reasonable bid should be. Call the estimate b. The DOE
has determined that the density function of the winning (low) bid is
5 2
8b , 5b ≤ y ≤ 2b
f (y ) =
0.
elsewhere.
Find F (y ) and use it to determine the probability that the winning bid is
less than the DOE’s preliminary estimate b.
Z y
To find F (y ),F (y ) = P(Y ≤ y ) = f (y )dy .
−∞
Z 2b h i2b
5y 5y
For 25 b ≤ y ≤ 2b, then P(Y ≤ y ) = 5
8b dy = 8b 2
= 8b − 14 .
2
b 5
b
5
Thus,
0, y ≤ 25 b
F (y ) = 5y 1 2
8b − 4 , 5b ≤ y ≤ 2b
y ≥ 2b.
1.
Definition
The function p(x, y ) is a joint probability distribution or probability mass
function of the discrete random variables X and Y if
1 p(x, y ) ≥ 0, for all (x, y ),
PP
2 p(x, y ) = 1,
x y
where p(x, y ) = P(X = x, Y = y ).
Two ballpoint pens are selected at random from a box that contains 3 blue
pens, 2 red pens, and 3 green pens. If X is the number of blue pens
selected and Y is the number of red pens selected, find
1 the joint probability function p(x, y ).
2 P (X + Y ≤ 1).
For(1),
The possible pairs of values (x, y ) are (0, 0), (0, 1), (1, 0), (1, 1), (0, 2), and
(2, 0).
Now, p(0, 1), for example, represents the probability that a red and a
green pen are selected. The total number of equally likely ways of
selecting any 2 pens from the 8 is 82 = 28
The number of ways of selecting 1 red from 2 red pens and 1 green from 3
green pens is 21 31 = 6.
6 3
Hence, p(0, 1) = 28 = 14 .
Similar calculations yield the probabilities for the other cases, which are
presented in following table.
Dr. Nalliah M Module-2 July 28, 2020 36 / 54
Solution Cont...
x
p(x, y ) Row Totals
0 1 2
3 9 3 15
0 28 28 28 28
3 3 3
y 1 14 14 0 7
1 1
2 28 0 0 28
5 15 3
Column Totals 14 28 28 1
Definition
The function f (x, y ) is a joint probability density function of the
continuous random variables X and Y if
1 f (x, y ) ≥ 0, for all (x, y ),
Z ∞Z ∞
2 f (x, y )dxdy = 1.
−∞ −∞
Z ∞ Z ∞ Z 1Z 1
2
f (x, y )dxdy = (2x + 3y )dxdy
−∞ −∞ 0 0 5
Z 1 2 x=1
2x 6xy
= + dy
0 5 5 x=0
Z 1
2 6y
= + dy
0 5 5
y =1
3y 2
2y
= +
5 5 y =0
2 3
= +
5 5
= 1.
Dr. Nalliah M Module-2 July 28, 2020 40 / 54
Solution Cont...
Z 1 Z 1
1 1 1 2 2 2
P 0<X < , <Y < = (2x + 3y )dxdy
2 4 2 1
0 5
4
Z 1 2 x= 12
2 2x 6xy
= + dy
1 5 5 x=0
4
Z 1
2 1 3y
= + dy
1 10 5
4
y = 21
3y 2
y
= +
10 10 y = 1
4
1 1 3 1 3 13
= + − + = .
10 2 4 4 16 160
Dr. Nalliah M Module-2 July 28, 2020 41 / 54
The marginal distributions
Z ∞ Z ∞
fX (x) = f (x, y )dy and fY (y ) = f (x, y )dx,if (X , Y ) continuous
−∞ −∞
case.
x
p(x, y )
0 1 2
3 9 3
0 28 28 28
3 3
y 1 14 14 0
1
2 28 0 0
x
p(x, y ) PY (y )
0 1 2
3 9 3 15
0 28 28 28 28
3 3 3
y 1 14 14 0 7
1 1
2 28 0 0 28
5 15 3
PX (x) 14 28 28 1
5
, x =0
14
The marginal distributions functions of X is PX (x) = 15 , x =1
28
3,
x = 2.
28
15
28
, y =0
The marginal distributions functions of Y is PY (y ) = 3 , y =1
7
1,
y = 2.
28
p(x, 1)
Now,P(X /1) = = 37 p(x, 1), x = 0, 1, 2
PY (1)
p(0, 1)
= 73 p(0, 1) = 37 14
3 1
Therefore,P(0/1) = = 2
PY (1)
p(1, 1)
= 73 p(1, 1) = 73 14
3
P(1/1) = = 12
PY (1)
p(2, 1)
P(2/1) = = 73 p(2, 1) = 73 (0) = 0
PY (1)
For(1),
y
p(x, y ) PX (x)
1 2 3 4
4 2 5 1 12
1 36 36 36 36 36
1 3 2 1 7
2 36 36 36 36 36
x 3 3 1 1 8
3 36 36 36 36 36
2 1 1 5 9
4 36 36 36 36 36
10 9 9 8
PY (y ) 36 36 36 36 1