Docsity

Problem Set 1 in Economics 671: Univariate Probability, Assignments of Introduction to Econometrics

Toggle sidebar
bg1
Economics 671
Problem Set #1
Univariate Probability
(1) Casella and Berger, 2.24:
Compute E(x) and Var(X) for each of the following probability distributions
(a) f(x) = axa−1,0< x < 1, a > 0.
(b) f(x) = 1
n, x = 1,2,··· , n where nis an integer.
(Note: for (b), this is just the discrete uniform distribution over the first nintegers. You will need
to look up the formulas for the sum of the first nintegers, and the sum of the first nintegers
squared).
(2) Casella and Berger, 1.52:
Let Xbe a continuous random variable with pdf f(x) and cdf F(x). For a fixed point x0with
F(x0)<1, define the function
g(x) = ½f(x)/[1 −F(x0)] for x≥x0
0 otherwise .
Show that g(x) is a valid p.d.f. (Note that this procedure is how we calculate the density associated
with truncated random variables).
(3) Consider the following density function:
f(x) = xexp(−x), x > 0.
Find the moment generating function of this density and use it to compute the first and second
moments of x.
Hint: You will need to use the calculus formula for integration by parts:
Zb
a
udv =uv|b
a−Zb
a
vdu.
pf2

Partial preview of the text

Download Problem Set 1 in Economics 671: Univariate Probability and more Assignments Introduction to Econometrics in PDF only on Docsity!

Economics 671 Problem Set # Univariate Probability

(1) Casella and Berger, 2.24:

Compute E(x) and Var(X) for each of the following probability distributions (a) f (x) = axa−^1 , 0 < x < 1 , a > 0. (b) f (x) = (^) n^1 , x = 1, 2 , · · · , n where n is an integer.

(Note: for (b), this is just the discrete uniform distribution over the first n integers. You will need to look up the formulas for the sum of the first n integers, and the sum of the first n integers squared).

(2) Casella and Berger, 1.52:

Let X be a continuous random variable with pdf f (x) and cdf F (x). For a fixed point x 0 with F (x 0 ) < 1, define the function

g(x) =

{ (^) f (x)/[1 − F (x 0 )]^ for^ x^ ≥^ x 0 0 otherwise.

Show that g(x) is a valid p.d.f. (Note that this procedure is how we calculate the density associated with truncated random variables).

(3) Consider the following density function:

f (x) = x exp(−x), x > 0.

Find the moment generating function of this density and use it to compute the first and second moments of x.

Hint: You will need to use the calculus formula for integration by parts: ∫ (^) b a

udv = uv|ba −

∫ (^) b a

vdu.

(4) Casella and Berger, 2.32:

Let MX (t) be the moment generating function of X and define S(t) = log MX (t). Show that

∂ ∂t S(t)

t=

= E(X)

and ∂^2 ∂t^2 S(t)

t=

= Var(X).

(5) Suppose that a couple decides to continue having children until they have a girl (and then stop). What is the expected number of chidren that this couple will have, assuming that the births are independent events, and that a boy and girl child are equally likely outcomes? (Hint: You will need to make use of a formula for the sum of an infinite geometric series).

(6) Getting started in MATLAB.

Using MATLAB, provide plots of the two densities:

(a) the double exponential: f (x) = 12 exp(−|x|), −∞ < x < ∞. (b) the lognormal: f (x) = √^1 2 πx

exp(−(1/2)[log(x)]^2 ) 0 < x < ∞.

For each case, pick a suitable range over which to plot the densities. Attach a graph and your computer program with your completed problem set.