Professional Documents
Culture Documents
X : S −→ R
ω 7→ r
For every ω in S, there exists a real number r such that
X (ω) = r .
X : S −→ R
ω 7→ r
For every ω in S, there exists a real number r such that
X (ω) = r .
and the set of all values of X : {0, 1, 2}. Since the coins are
fair,
1 1 1
P(X = 0) = , P(X = 1) = , P(X = 2) = .
4 2 4
X : S −→ R
(a, b) 7→ a + b.
X : S −→ R
(a, b) 7→ a + b.
For example : X (3, 4) = 7
X : S −→ R
(a, b) 7→ a + b.
For example : X (3, 4) = 7
The set of all values of X = ...
X : S −→ R
(a, b) 7→ a + b.
X : S −→ R
(a, b) 7→ a + b.
For example : X (1, 2) = 3
X (2, 4) = ... The set of all values of X = ...
X : S −→ R
H 7→ 1
TH 7→ 2
TTH → 7 3.
..
.
X : S −→ R
H 7→ 1
TH 7→ 2
TTH → 7 3.
..
.
the set of all values of X = ...
Definition
A random variable X is called discrete random variable if the
set of all values of X (range of X ) is a finite or countable set.
Definition
The cumulative distribution function (CDF) F of a discrete
random variable X with PMF f is the function with definition
F (x) = P(X ≤ x) = Σy ≤x f (y ),
1 1
f (0) = P(X = 0) = , f (1) = P(X = 1) = ,
4 2
1
f (2) = P(X = 2) = .
4
Valentino Risali, M.Sc Department of Economics Random Variables
Example
The PMF is given by
1 1 1
f (0) = , f (1) = , f (2) = , f (x) = 0, x otherwise.
4 2 4
Remark
For a given function f to be a PDF, it needs to satisfy the
following conditions:
1 f (x) ≥ 0 for every x,
R∞
2
−∞
f (x)dx = 1.
Remark
For a given function f to be a PDF, it needs to satisfy the
following conditions:
1 f (x) ≥ 0 for every x,
R∞
2
−∞
f (x)dx = 1.
dF (x)
If f is continuous, then = f (x), where F (x) is the CDF.
Rb dx
P(a ≤ X ≤ b) = a f (x)dx.
If x < 0, F (x) = 0.
If 0 ≤ x ≤ 1,
Z x
F (x) = f (t) dt
0
x
1 2
= t
2 0
1
= x 2.
2
x2
1 Given an CDF of X , F (x) = , x ≥ 0. Determine
1 + x2
the PDF of X .
2 Let the function
c(4x − 2x 2 ) , 0 < x < 2
g (x) =
0 , otherwise
where c is a constant.
1 Find c such that g is a PDF.
2 Determine the CDF G (x).
1
3 Compute P(0 < X < ).
2
Definition
An expectation of a random variable X , denoted by E [X ] is
defined by
1 E [X ] = Σx;p(x)>0 x.p(x), if X is discrete.
R
2 E [X ] = xf (x)dx, if X is continuous.
X = {x | x = 1, 2, 3, 4, 5, 6}
1
p(x) = , x = 1, 2, 3, 4, 5, 6
6
X = {x | x = 1, 2, 3, 4, 5, 6}
1
p(x) = , x = 1, 2, 3, 4, 5, 6
6
By definition,
E [X ] = Σ6x=1 x.p(x) =
Theorem
Let g (X ) be a function of X , then the expected value of g (X )
is
1 E [g (X )] = Σx g (x).p(x), if X is discrete.
R
2 E [g (X )] = g (x)f (x)dx, if X is continuous.
E [aX + b] = a.E [X ] + b.
E [aX + b] = a.E [X ] + b.
Proof.
If X is discrete,
Definition
An k−moment of a random variable X is defined by
1 E (X k ) = Σx;p(x)>0 x k .p(x), if X is discrete.
R
2 E (X k ) = x k .f (x)dx, if X is continuous.
X = {x | x = 1, 2, 3, 4, 5, 6}
1
p(x) = , x = 1, 2, 3, 4, 5, 6
6
The second moment is
X = {x | x = 1, 2, 3, 4, 5, 6}
1
p(x) = , x = 1, 2, 3, 4, 5, 6
6
The second moment is
X = {x | x = 1, 2, 3, 4, 5, 6}
1
p(x) = , x = 1, 2, 3, 4, 5, 6
6
7
E [X ] =
2
By definition,
X = {x | x = 1, 2, 3, 4, 5, 6}
1
p(x) = , x = 1, 2, 3, 4, 5, 6
6
7
E [X ] =
2
By definition,
91
E [X 2 ] = Σ6x=1 x 2 .p(x) = .
6
X = {x | x = 1, 2, 3, 4, 5, 6}
1
p(x) = , x = 1, 2, 3, 4, 5, 6
6
7
E [X ] =
2
By definition,
91
E [X 2 ] = Σ6x=1 x 2 .p(x) = .
6
91 7 35
Var (X ) = E [X 2 ] − (E [X ])2 = − ( )2 = .
6 2 12
Valentino Risali, M.Sc Department of Economics Random Variables
Properties of Variance
Properties
Let a be a constant and X be a random variable. Then
1 Var (X ) = E [X 2 ] − (E [X ])2 .
2 Var (aX ) = a2 .Var (X ).
1 Discrete
Uniform
Binomial
Poisson
Geometrik
2 Continuous
Uniform
Exponential
Normal
X = {x | x = 1, 2, 3, 4, 5, 6}
1
p(x) = , x = 1, 2, 3, 4, 5, 6
6
Definition
A binomial experiment is one that has the following properties:
Check:
1 1
P(X = 1) =4 C1 ( )1 ( )3 .
2 2
Determine the probability that at most 2 heads are obtained.
1 1
P(X = 1) =4 C1 ( )1 ( )3 .
2 2
Determine the probability that at most 2 heads are obtained.
Definition
A random variable X is said to have a uniform probability
distribution on the interval (α, β) if its PDF is given by
1
,α < x < β
f (x) = β−α
0 , otherwise
Definition
A random variable X is said to have a uniform probability
distribution on the interval (α, β) if its PDF is given by
1
,α < x < β
f (x) = β−α
0 , otherwise
Check:
β
1
Z
dx = 1.
α β−α
0 ,a ≤ α
a−α
F (a) = ,α < a < β
β−α
1 ,a ≥ β
Definition
A random variable X is said to have a normal distribution with
parameters µ and σ 2 if its PDF is
1 2 2
f (x) = √ e −(x−µ) /2σ , −∞ < x < ∞.
2πσ