Class Notes 2
Class Notes 2
VARIABLES
EXAMPLE:
Select items at random from a batch of size
N until the first defective item is found.
Record the number of non-defective items.
Sample Space: S = {0, 1, 2, . . . , N }
Abbreviation: rv
DEFINITION:
A rv X is said to be discrete if its range
consists of a finite or countable number of
values.
p(x) = Pr(X = x)
for all values x in the range of X.
Abbreviation: pf
Probability function:
1 , x = 1, 2, . . . , n ,
pX (x) = n
0 elsewhere.
Cumulative distribution function:
0, x < 1,
[x]
FX (x) = n , 1 ≤ x ≤ n,
1, x ≥ n,
and so on.
• It satisfies FX (−∞) = 0 ,
• It satisfies FX (∞) = 1 .
P
E(X) = x x Pr(X = x), so
√
Standard deviation of X: 1.45, or 1.20.
CONTINUOUS RANDOM
VARIABLES
Introduction
Interpretation
• When multiplied by a small number h,
the pdf gives, approximately, the probability
that X lies in a small interval, length h, close
to x.
• If, for example, fX (4) = 2 fX (7), then
X occurs near 4 twice as often as near 7.
Mean and Variance
DEFINITION:
For a continuous rv X with pdf fX (x), the
expectation of a function g(x) is defined as
Z ∞
E{g(X)} = g(x) fX (x) dx
−∞
1
b−a
a b
Because fX (x) is constant over [a, b] and
Z ∞ Z b
fX (x) dx = fX (x) dx = 1,
−∞ a
1 , a < x < b,
b−a
fX (x) =
0
elsewhere.
Uniform Distribution: Mean and Variance
Z b
1
E(X) = µ = x dx
a b−a
= 1
2 (a + b).
Var(X) = σ 2 = E(X 2) − µ2
(a + b)2
Z b
1
= x2 dx −
a b−a 4
1
= (b − a)2.
12
Z ∼ N(0, 1).
Special notation φ(z) is used for the pdf of
N(0, 1). We write
1 − 1 z2
φ(z) = √ e 2 , −∞ < z < ∞.
2π
The cdf of Z is denoted by Φ(z). We write
Z z
Φ(z) = φ(x) dx
−∞
1 − 1 x2
Z z
= √ e 2 dx
−∞ 2π