Chapter 2 - Random Variable - L1 - Jan 2024
Chapter 2 - Random Variable - L1 - Jan 2024
Random Variable
2
Random Variable:
A numerical variable whose measured value can change from is one outcome of
random experiment.
3
Examples of random variables:
4
DISCRETE RANDOM VARIABLE
2. P( x) P( X x) 1
5
Example 1: The sample space for a machine
breakdown problem is
S = { electrical, mechanical, misuse }
and each of these failures is associated with a repair
cost of about RM200, RM350 and RM50 respectively.
Identify the random variable giving reasons for your
answer.
Example 2: The analysis of the surface of semi
conductor wafer records the number of particles of
contamination that exceed a certain size. Identify
the possible random variable and its values.
6
Probability mass function may typically be given in
tabular or graphical form
If from Example 1 that P(cost Misuse =50)=0.3, P(cost
Electrical = 200) = 0.2 and P(cost Mechanical = 350) = 0.5.
50 200 350
tabular form cost
line graph 7
MEAN AND VARIANCE :- Discrete R.V
We can summarize probability distribution by its mean
and variance.
Mean or expected value is
n
E( X ) xi f (xi )
i1
Variance of X is given as
n
2 V ( X ) E( X )2 xi2 f (xi ) 2 E( X 2 ) (E( X ))2
i1
Standard deviation of X is .
8
From Example 1 that P(cost Misuse =50)=0.3, P(cost
Electrical = 200) = 0.2 and P(cost Mechanical = 350) = 0.5.
9
Find
i. the mean of X;
ii. the variance and standard deviation of X;
iii. probability X greater than 200.
X=x 50 200 350 Total
f(x) = P(X=x) 0.3 0.2 0.5 1
Xf(x) 15 40 175 230
X2f(x) 750 8000 61250 70000
10
CUMULATIVE DISTRIBUTION FUNCTION
The cumulative distribution F(x) of a discrete random
variable X with probability mass function f(x) is
F ( x ) = P( X x ) f (x )
xi x
i
12
F( x )
1.0
Graph of F(x)
0.5
0.3
50 200 350
Cost ( RM )
0 for x 50
0.3 for 50 x 200
F(x) = P(X x)
0.5 for 200 x 350
1 for x 350
13
Example 2:
X=x 0 1 2 3
Find,
14
X 0 1 2 3 Total
P(X=x) 0.15 0.25 0.25 0.35 1
X.P(X=x) 0 0.25 0.5 1.05 1.8
Var(x) 1.16
sd(x) 1.077033
0 for x 0
0.15 for 0 x 1
F(x) = P(X x) 0.4 for 1 x 2
0.65 for 2 x 3
1
for x 3
15
Exercise :
x 0 1 2 3 4 5
0.05 0.15 0.20 k 0.15 0.1