Docsity

Exam 2 with Solution - Elementary Statistics | ECON 400, Exams of Economic statistics

Toggle sidebar
bg1
Economic Statistics Exam 2 Last name:
November 2, 2006 First name:
PPID:
Circle class time: 9:30!11:00
12:30!2:00
Please sign that you abide by the honor pledge:
This exam contains fifteen short answer questions "worth 4 points each# and four
long answer questions "worth 15 points each#. Please answer in the space provided; if
you need more room, indicate clearly that the answer is continued on the back of the
page. In all problems where you need to make a calculation, simplify your answer as
much as possible. Show your work clearly to be eligible for partial credit.
Some PDFs: Some probabilities:
f(x)=1
2
!"
2e
#(X#
µ
)2
"
2
P[x!a]=e"
#
a
f(x)=1
u!!
P[X]=
µ
xe!
µ
X!
f(x)=
!
e"
!
x
P[X]=N!
X!(N!X)! pX(1!p)N!X
Short Questions !4 points apiece"
1. X is a random variable with a continuous distribution. Its probability density
function is some function,
f(x)
. How would we find the probability that X is
between two values "for example, between 2.13 and 4.56#, using the PDF?
2. The sum of many small random variables tends to have a normal distribution,
regardless of the distribution of the individual random variables. What is the
analogous statement for the log#normal distribution?
The product of many small random variables tends to have a lognormal distribution.
pf3
pf4
pf5
pf8

Partial preview of the text

Download Exam 2 with Solution - Elementary Statistics | ECON 400 and more Exams Economic statistics in PDF only on Docsity!

Economic Statistics Exam 2 Last name:

November 2, 2006 First name:

PPID:

Circle class time: 9 : 30! 11 : 00

Please sign that you abide by the honor pledge:

This exam contains fifteen short answer questions "worth 4 points each# and four

long answer questions "worth 15 points each#. Please answer in the space provided; if

you need more room, indicate clearly that the answer is continued on the back of the

page. In all problems where you need to make a calculation, simplify your answer as

much as possible. Show your work clearly to be eligible for partial credit.

Some PDFs: Some probabilities:

f ( x ) =

2

e

#( X # μ )

2

"

2

P[ x! a ] = e

" # a

f ( x ) =

u!!

P [ X ] =

μ

x

e

! μ

X!

f ( x ) =! e

"! x

P [ X ] =

N!

X !( N! X )!

p

X

( 1! p )

N! X

Short Questions! 4 points apiece"

  1. X is a random variable with a continuous distribution. Its probability density

function is some function, f ( x ). How would we find the probability that X is

between two values "for example, between 2. 13 and 4. 56 #, using the PDF?

P [2.13! X! 4.56] = f ( x ) dx

  1. 13
    1. 56
  1. The sum of many small random variables tends to have a normal distribution,

regardless of the distribution of the individual random variables. What is the

analogous statement for the log#normal distribution?

The product of many small random variables tends to have a lognormal distribution.

  1. What is the difference between an estimate and an estimator?

The estimator is a rule or formula used to !guess" the value of some statistic; an estimate is the

value you obtain with a specific sample.

  1. After a long night of trick!or!treating, the number of candies in my bag is a

random variable, distributed normally with mean of 300 and variance of 400. What

is the chance that I have fewer than 250 candies in my bag?

The z#score is

= !2.5. P [ X < 250 ] = F

z

  1. The lifespan of a male born in the U.S. in 1999 is 74 years. What is the chance

that a person lives to be this age or older? "You must decide the most appropriate

distribution to use in this case.#

Durations are usually modeled using the exponential distribution. Given the exponential

distribution, the probability of living to be 74 or older is P[ x! 74 ] = e

" # 74

, where

! = 1 / μ = 1 / 74_. Thus,_ P[ x! 74 ] = e

" 74 / 74

= e

" 1

  1. State the central limit theorem.

As the sample size $N% gets large, the sample mean $ X % has an approximately normal

distribution with mean μ

X

= μ

X

and variance!

X

2

X

2

/ N.

  1. I want to know the average number of hours that people watch television in a

month. When I take a random sample of size 100 , there is a 31. 74 $ chance that my

sample mean differs from the true mean by 5 hours or more "in either direction#.

Since this is deemed to be too imprecise, I am considering increasing my sample size.

If I take a random sample of size 400 , what is the chance that its mean differs from

the population mean by more than 5 hours?

We are told here that when N = 100 , P [ X! μ > 5 ] = 0.3174_. We need to find the z#score_

associated with 0.3174 when N = 100 , and then we need to calculate the z#score when

N = 400_. The normal distribution is symmetric, so_ P [ X! μ > 5 ] = 2 " P [ X! μ > 5 ] , which

means that P [ X! μ > 5 ] = 0.1587 , and P [ X! μ < 5 ] = 0.8413_. This means that Z_ = 1.00 ,

so 1.00 =

X! μ

" / N

. We can solve for! = 50_. Finally, we need to calculate the z#_

score when N = 400 ; it should be 2..

1 2. Some variable X is distributed normally with mean of μ and variance of!

2

What is the distribution of Z = ( X! μ) / "?

Z is distributed normally with mean zero and variance one, which is called the standard

normal distribution.

  1. You have a database that contains the numerical variables y and x , as well as the

name of each observation. Describe what output you would get if you typed graph

twoway (scatter y x, mlabel(name)) (lfit y x) into Stata. In

particular, tell me what the commands %scatter&, %mlabel&, and %lfit& produce.

!Scatter" produces a scatterplot of the two variables; !mlabel" identifies each plot with its name,

and !lfit" superimposes the best linear fit of the data on top of the scatterplot.

  1. You want to create a Q$ confidence interval for some parameter, which will we

call!. State, as generally as possible, the formula for constructing this confidence

interval in a large sample. "If you introduce any values, like! , explain how these are

calculated.#

Generally, a confidence interval can be constructed as

! ± z

" / 2

s

ˆ

!

, where

! is your estimator and

s

ˆ

!

is its standard deviation.! = ( 100 " Q ) / 100 , and z

! / 2

is the number such that

1! F

z

( z

" / 2

  1. You are interested in the average age of public school teachers. In a random

sample of 100 teachers, you find a sample mean of X = 40 and a standard deviation

of s

X

= 10. At the 95 $ confidence level, test the hypothesis that μ

X

= 42 "against

the alternative that μ

X

A 95 & confidence interval for μ is X ± 1.

s

x

N

= 40 ± 1.96_. Since 42_

is outside of this interval, we reject the null hypothesis.

Long Questions! 15 points apiece"

  1. When you participate in some medical experiment, you are promised

compensation between $200 and $400. Assume that your payment, X , is

distributed uniformly between these values.

a. Write out the probability density function of this variable "completely#.

f ( x ) =

if 200 " x " 400

0 otherwise

b. Calculate the probability that X is between 250 and 300. "It is important to

show your work.#

P [ 250! x! 300 ] = f ( x ) dx

250

300

dx =

x

x = 250

x = 300

250

300

c. Using the general formula for expected value of a continuous random variable,

calculate the expected value of X. "For partial credit, you may use the

specific formula for the uniform distribution.#

E [ X ] = f ( x ) xdx

200

400

x

dx

200

400

x

2

x = 200

x = 400

2

2

d. Using the general formula for variance in a continuous random variable,

calculate the variance in X. "For partial credit, you may use the specific

formula for the uniform distribution.#

X

2

= ( x " μ

x

2

f ( x ) dx

200

400

( x " 300 )

2

dx

200

400

x

2

" 600 x + 90000

dx

200

400

x

3

300 x

2

90000 x

x = 200

x = 400

  1. Every Halloween, my neighbor transforms his home into a haunted house, which

is open to the public. When a person is walking down the street on Halloween,

there is some chance p that he stops to visit %Al's Discount Funeral Parlor.& This

year, 100 people walked down this street, and X is the total number who went into

the haunted house.

a. Give the distribution of X , along with its mean and variance.

The distribution of X is either binomial or approximately normal $which is

probably the better answer%. Regardless, its mean is μ

X

= Np = 100 p and its variance

is s

X

= Np ( 1! p ) = 100 p ( 1! p ).

b. If p = 0.5 , what is the chance that between 50 and 60 people attend?

Since it has an approximately normal distribution,

P [ 50! X! 60 ] = F

60 " μ

X

s

X

" F

50 " μ

X

s

X

= F

" F

= F

" F ( 0 ) = F ( 2 ) " F ( 0 ) = 0.9772 - 0.5000 = 0.4772.

c. Al wonders if his elaborate decorations have caused a change in the proportion of

people who stop by. In 2005 , 50 of 100 attended. In 2006 , 80 of 100 did. At the

90 $ confidence level, test that the hypothesis that p

2005

= p

2006

"against the

alternative hypothesis that they are different#.

The hypothesis is H

0

:! p = 0_. A 90 & confidence interval for_! p is:

p

2006

p

2005

p

2006

p

2006

N

2006

p

2005

p

2005

N

2005

If zero is outside of this interval $which it is%, then we reject the null hypothesis.

  1. This question is about estimators.

a. State the three %desirable properties& of estimators, and explain what each

one means.

Unbiasedness: that the expected value of the estimator is the true value of the parameter.

Consistency: that as the sample size gets larger and larger, the estimator converges to its

true value.

Efficiency: that the estimator has minimal variance.

b. Suppose that X is a random variable distributed with mean μ

X

and

variance!

X

2

. Derive the formula for the variance in the sample mean.

X

2

= E [( X " μ

X

2

] = E [(

1

N

i = 1

N

X

i

" μ

X

2

] = E [(

1

N

i = 1

N

X

i

1

N

i = 1

N

μ

X

2

]

= E [(

1

N

i = 1

N

( X

i

" μ

X

2

] =

1

N

2

E [(#

i = 1

N

( X

i

" μ

X

2

]

1

N

2

E [(#

i = 1

N

( X

i

" μ

X

2

i = 1

N

j $ i

( X

i

" μ

X

)( X

j

" μ

X

))]

1

N

2

i = 1

N

E [( X

i

" μ

X

2

] + 2

1

N

2

i = 1

N

j $ i

E [( X

i

" μ

X

)( X

j

" μ

X

))]

1

N

2

( N!

X

2

2

N

2

( N ( N " 1 ))!

X

i

X

j

If this is a random sample, then all of the covariances are zero, and we are left with

X

2

1

N

2

( N!

X

2

X

2

/ N.