Professional Documents
Culture Documents
Random Variables
Summer 2003
Random Variables
A random variable is a rule that assigns a numerical
value to each possible outcome of a probabilistic
experiment.
We denote a random variable by a capital letter (such as
“X”)
0.5
T3
H1H2T3 2 0.125
H1 0.5
0.5
H3
H1T2H3 2 0.125
T2 0.5
P(X = 0) = 1/8
0.5
T3
P(X = 1) = 3/8 0.5
H1T2T3 1 0.125
P(X = 2) = 3/8 H3
T1H2H3 2 0.125
0.5
T3
T1H2T3 1 0.125
T1 0.5
0.5
H3
T1T2H3 1 0.125
T2 0.5
0.5
T3
T1T2T3 0 0.125
0.5 1.000
5/8
4/8
3/8
2/8
1/8
0.00
0 1 2 3
0.3
T3
H1H2T3 2 0.063
H1 0.7
0.3
H3
H1T2H3 2 0.063
T2 0.3
X p(X) 0.7
0 0.343 T3
1 0.441 H1T2T3 1 0.147
2 0.189 0.7
3 0.027
1.000
H3
T1H2H3 2 0.063
H2 0.3
0.3
T3
T1H2T3 1 0.147
T1 0.7
0.7
H3
T1T2H3 1 0.147
T2 0.3
0.7
T3
T1T2T3 0 0.343
0.7 1.000
5/8 p(X)
4/8 0.500
0.441
0.450
0.400
3/8 0.343
0.350
0.300
2/8 0.250 p(X)
0.189
0.200
0.150
1/8
0.100
0.050 0.027
0/8 0.000 0 1 2 3
0 1
x
2 3 x
0.30
0.25
Probability
0.20
0.15
0.10
0.05
0.00
43 44 45 46 47 48
Number of Orders
Probability
($ million) Probability 0.25
Sales
0.40
($ million) Probability
0.35
3.0 0.15 0.30
Probability
4.0 0.20 0.25
0.20
5.0 0.25
0.15
6.0 0.15 0.10
7.0 0.15 0.05
0.00
8.0 0.10
3.0 4.0 5.0 6.0 7.0 8.0
Sales ($ million)
X and Y denote the sales next year in the eastern division and the western division
of a company, respectively. X and Y obey the following distributions:
(A) (B)
0.50 0.50
0.40 0.40
0.30 0.30
P(Y = y)
P(X =x) 0.20 0.20
0.10 0.10
0.00 0.00
0 1 2 3 4 5 6 0 1 2 3 4 5 6
x y
- Variance:
Squared deviation around the mean; a measure of “spread”
n n
Var(X) = σ 2
X = ∑ P(X = x i )(xi − µX ) = ∑ pi (x i − µX )2
2
i =1 i =1
- Standard Deviation :
Square root of the variance. A measure of spread in the same units
as the random variable X.
2
SD(X) = σ X = σX
15.063 Summer 2003 13
Example: Let X be the number that comes up on a roll of one die.
Compute the mean, variance and standard deviation of X.
Outcome P(X=x)
1 1/6
2 1/6
3 1/6
4 1/6
5 1/6
6 1/6
σ = 1.06 mil
2
X
2
σ Y2 = 2.3875 mil 2
⎧ 1
⎪b − a for a≤ x≤b 1
⎪ b−a
f ( x) = ⎨
⎪ 0
f (x)
for all other values
⎪⎩
Area = 1
a x b
15.063 Summer 2003 19
Uniform
Uniform Distribution
Distribution
transit time of the subway between Alewife
Station and Downtown Crossing is uniformly
distributed between 10.0 and 20.0 minutes.
⎧ 1
⎪ 20 − 10 for 10 ≤ x ≤ 20
⎪ 1
f ( x) = ⎨
⎪ 0 b10− a
for all other valu es
⎪ f (x)
⎩
Area = 1
P(X >= 12.0) = 0.80
P(14<= X <= 18) = 0.40 10 x 20
⎧ 1
⎪ 47 − 41 for 41 ≤ x ≤ 47
⎪ 1 1
f ( x) = ⎨ =
⎪ 0 47 − 41 6
⎪⎩
for all other values f (x)
Area = 1
41 47 x
P ( x1 ≤ X ≤ x 2 ) =
1
(x − x )
b−a 2 1
41 42 45 47 x
1.0
F(t)
t 0.0
t
P( X ≤ s) F (s) = P( X ≤ s)
1.0
F(s)
s
0.0 s
P ( s ≤ X ≤ t ) = P ( X ≤ t ) − P ( X < s) = F (t ) − F ( s)
15.063 Summer 2003 24
Let X be uniformly distributed on [a,b]. Then density
function of X is:
f(x)
⎧ 1
⎪b − a for a≤ x≤b
⎪
f ( x) = ⎨ 1/(b-a)
⎪ 0 for all other values
⎪⎩