Random Variable 1 PDF
Random Variable 1 PDF
Random variable:
A random variable has a range or set or possible values associate with a definite
probability with each value.
Let us consider an example of four points obtained by tossing two unbiased coins
simultaneously as shown below:
HH, HT, TH, TT
1 1 1
Here the number of heads, X are 0, 1 and 2 with corresponding probabilities , and
4 2 4
constitute a random variable.
There are two types of random variable. These are
i. Discrete random variable
ii. Continuous random variable
Probability Distribution:
The set of each value of a discrete random variable with their respective probabilities is
called probability distribution.
Let x be the random variable representing the number on a dice when thrown. Then the
probability distribution of x will be as follows
x: 1 2 3 4 5 6
1 1 1 1 1 1
P(x)
6 6 6 6 6 6
1
Such as probability function P ( x) ( ) x will gives probability for each sample point
2
or value of x.
1
Probability Density Function (p.d.f):
The probability density function of a continuous random variable is the specification of
its possible values that it will lie in certain range with its respective probability.
If X is discrete random variable, then the f(x) is said to be probability function if and only
if it satisfies the following condition:
i. f ( xi ) 0 for a x b
b
ii. f ( x)dx 1
a
Problem:
Suppose x is a continuous random variable with p.d.f. f(x) given by
f ( x) ax ; 0<x<10
What is the probability that x lies between 2 and 3?
Solution:
Since f(x) is a p.d.f.
10
f ( x)dx 1
0
10
axdx 1
0
x 2 10
a[ ]0 1
2
100
a. 1
2
50a 1
1
a
50
1
f ( x) x ; 0 x 10
50
Now
3
P{2 x 3} f ( x)dx
2
3
1
xdx
2
50
1 x2 3
[ ]2
50 2
1 9 4
[ ]
50 2 2
2
1 5
*
50 2
1
20
Mathematical Expectation:
Let X be a random variable with probability function P(x) or probability density function
f(x), then the mathematical expectation of X is defined as
E ( x) xi P ( xi ) when x is discrete
b
xf ( x)dx ; a xb when x is continuous.
a
Properties of expectation:
i. E ( x y ) E ( x) E ( y )
ii. E ( xy) E ( x).E ( y )
iii. E (ax y ) aE ( x) E ( y )
iv. E (axy) aE ( x).E ( y ) ]
v. E (c ) c
Problem:
Find the expectation and variance of numbers on a dice when thrown
Solution:
Let x be the random variable representing the number on a dice when thrown. Then the
probability function of x will be as follows
x: 1 2 3 4 5 6
1 1 1 1 1 1
P(x)
6 6 6 6 6 6
3
The mathematical expectation is as
E ( x) xi P ( xi )
1 1 1 1 1 1
E ( x) 1. 2. 3. 4. 5. 6.
6 6 6 6 6 6
1
(1 2 3 4 5 6)
6
21
6
7
2
The variance is as
V ( x) E ( x 2 ) {E ( x)}2
Now
1 1 1 1 1 1
E ( x 2 ) 12. 2 2. 3 2. 4 2. 5 2. 6 2.
6 6 6 6 6 6
1
(1 4 9 16 25 36)
6
91
6
V ( x) E ( x 2 ) {E ( x)}2
91 7
( )2
6 2
91 49
6 4
91 * 4 49 * 6
24
364 294
24
70
24
35
12