Session 2 PDF
Session 2 PDF
Rohit Gupta
Operations & SCM Area
Office: Faculty wing 5, Room No. 23
Email: [email protected]
[email protected]
Types of Random Variables
Corresponding probabilities
0.5
Probabilities
0.4
0.3
0.2
0.1
0
x=0 x=1 x=2
Example:
In throwing a die, X is the values appeared
X is a discrete random variable having the probability distribution
0.2
Probabilities
0.15
0.1
0.05
3 / 4 if x 100
p ( x)
1 / 4 if x 200
Sometimes, the pmf can be expressed as a mathematical function.
Example:
X denotes the number of tosses needed to get the first tail.
X is a discrete random variable.
• So the random variable X has the probability distribution
• Also,
1
x
2 3
1 1 1 1
p ( x ) 2 1
x 1 2 2 2 2 1
x 1
1
2
Example:
Consider the previous example again.
The discrete random variable has the pmf
x 2 -1 0 1
p(x) 0.4 k 0.2 0.3
Find E(X).
Ans: 1.2
x -3 -1 0 1 2 3 5 8
p(x) .1 .2 0.15 0.2 0.1 0.15 0.05 0.05
Find:
1. p(X>0)
2. p(X is even)
3. E(X)
Variance of a Discrete Random Variable
Var ( X ) X2 E X E ( X )
2
E X 2 E ( X )
2
x -2 -1 0 1
p(x) 0.4 k 0.2 0.3
Find Var(X).
Ans: 1.64
x -3 -1 0 1 2 3 5 8
p(x) .1 .2 0.15 0.2 0.1 0.15 0.05 0.05
Find Var(X).
Probability Distribution of a Continuous Random Variable
1 h h
f ( x) lim h0 P x X x
h 2 2
Provided
P ( a X b) P ( a X b)
P ( a X b)
P ( a X b)
b
f ( x)dx
a
Example:
Let X is a random variable with pdf
E( X ) xf ( x)dx
RX
Example:
• If X is a continuous random variable with pdf
• Find E(X).
Ans: 3/4
Example:
• If X is a continuous random variable with pdf
• f(x) = k, 0 < X < 2,
• Find k
• Ans: 1/2
• Find E(X)
• Ans: 1
Variance of a Continuous Random Variable
Var ( X ) X2 E X E ( X )
2
E X 2 E ( X )
2
where
f(x) is pdf of X,
RX is the range space of X.
Find Var(X).
Ans: 0.0375
Example:
If X is a continuous random variable with pdf
f(x) = 1/2, 0 < X < 2,
Find Var(X)
Ans: 1/3