Professional Documents
Culture Documents
Week 10: Discrete & Continuous Random Variable Aneela Zafar
Week 10: Discrete & Continuous Random Variable Aneela Zafar
Example
Find the probability distribution for the number of heads when two coins are
tossed.
Solution: Let X be the r.v, that denotes the number of heads. Then the values of x are
0,1,2 and their probabilities are:
S={HH,HT,TH,TT}
f(0)=P(X=0)=P(TT)=1/4 X P(X)
f(1)=P(X=1)=P(HT,TH)=2/4=1/2 0 1/4
f(2)=P(X=2)=P(HH)=1/4 1 2/4
2 1/4
The mean, or expected value, of a discrete random variable is
Mean=E(X)=ΣXP(X)
Variance of A Discrete Random Variable
Variance=E(X)2-[E(X)]2
= ΣX2P(X)-[ΣXP(X)]2
Practice Question
• Find the probability distribution for the
number of heads when two coins are tossed.
Also find Mean and variance of the random
variable.
•• Continuous
random variables have a non-countable number
of values.
• Can’t list the entire probability distribution, so we use a
density curve instead of a histogram. E.g. normal density
curve.
•• The
expectation of a continuous random variable X with
probability density function f is the number
•
EXAMPLE:
Find the expected value of the random variable X having the p.d.f.
f(x) = 2 (1 – x), 0 < x < 1
= 0,elsewhere.
Also find the variance.
SOLUTION:
•
Question 2: Find the mean and Variance of the random variable X having the p.d.f
f(x)=2(1-x) , 0<x<1
=0, elsewhere
Find its mean and variance