Write down the likelihood function for the model

Assignment Help Econometrics
Reference no: EM131207950

1. The Simple Linear Model

The simple linear regression tries to better understand the functional dependence of one variable on another. In particular, consider a relationship of the form

Yi = α + β + εi

where Yi is a random variable and xi is another observable variable. The quantities α and β, the intercept and slope of the regression, are assumed to be fixed and unknown parameters, and εi is another random variable. It is also common to suppose that E[εi] = 0 (otherwise we could just rescale the excess into α), so that we have

E[Yi|xi] = α + βxi

This relationship is called the population regression function. One main purpose of regression is to predict Yi from knowledge of xi. We can also define the following sum of squares:

Sxx = i=1n (xi - x-)2

Syy = i=1n(yi - y-)2

Sxy = i=1n(xi - x-)(yi - y-)

RSS(a, b) = i=1n (yi - a - bxi)2

[1] Use the least squares approach to show that the estimators for α and β are:

α^ = y- - β^x-

β^ =  Sxy/Sxx

[2] Let y^i = α^ + β^xi and u^i = yi - y^i. Show that:

i=1n u^i = 0

i=1nu^ix^i = 0

The conditional normal model is the one of the most common simple linear regression models. The observed data are pairs, (x1, Y1), . . .  ,(xn, Yn). The values of the predictor variable, x1, . . . ,xn are considered to be known, fixed constants (you can think of them as being chosen and set by the experimenter). The random variables Y1, . . . , Yn are assumed to be independent. Furthermore,

Yi = α + βxi + εi

where ε1, . . . ,εn are i.i.d. N(0, σ2), which implies that the distribution of Yi is also normal:

Yi ~ N(α + βxi, σ2)

Thus, the population regression function is a linear function of x, that is, E(Y|x) = α + βx.

[3] Write down the likelihood function for the model, that is, the joint pdf of Y1, . . . ,Yn.

[4] Show that, for fixed values of σ2, maximizing the log likelihood function is equivalent of minimizing:

i=1n(Yi - α - βxi)2

And then the estimators are the same as in [2].

[5] Show that:

2219_Figure.png

[Hint: find the expected value, variance and covariance of the estimators, and finally argue that they are normally distributed.]

[6] An unbiased estimator for σ2 is:

S2 = (1/n-2)i=1n(Yi - α^ - β^xi)2

Use the fact that S2 is independent of (α^, β^) and the following distributional result:

(n -2)S22 ~ χ2n-2

to find a 100(1 - α)% confidence interval for β. Also explain how you would test H0: β = β0 vs H1: β ≠ β0.

Now you will study prediction analysis. Assume that (x1, Y1), . . . ,(xn, Yn) satisfy the conditional normal regression model, and based on these n observations we have the estimates, α^, β^ and S2. Let x0 be a specified value of the predictor variable. First, consider estimating the mean of the Y population associated with x0, that is, E(Y|x0) = α + βx0. The obvious choice for a point estimator is α^ + β^x0.

[7] Show that:

α^ + β^x0 ~ N(α + βx0, σ2(1/n + ((x0 - x-)2/Sxx)))

[Hint: find the expected value and variance of the estimator, and finally argue that it is normally distributed.]

[8] Use that

1148_Figure1.png

To find a 100(1- α)% confidence interval for the prediction.

Now you will asses the performance of the estimators in a simulation study using R. For all the questions below, use the following setup for i = 1, . . . ,n:

εi ~ N(0, 1)

xi ~ U(0, 2)

Yi = α + βxi + εi

α = β = 1
Also use set.seed(520) for easy comparison of the results.

[9] Generate 1,000 random samples of size n = 500 and, for each simulation, compute α^, β^ and S2. Plot the three densities and discuss the results.

[10] Let x0 = 1. Using the previous simulation study, compute also the distribution of the estimator for the predicted value α^ + β^x0. That is, for each simulation run, compute the point estimator and its variance from problem [7]. Finally, also compute the confidence interval from [8] and check if it has the right coverage.

2. The Generalized Linear Model

A generalized linear model (GLM) describes a relationship between the mean of a response variable Y and an independent variable x. But the relationship may be more complicated than the E[Yi] = α + βxi of the simple linear model from Section I. Many different models can be expressed as GLMs.

A GLM consists of three components: the random component, the systematic component, and the link function.

1. The response variables Y1, . . . ,Yn are the random component. They are assumed to be independent random variables, each with a distribution from a specified exponential family. The Yis are not identically distributed, but they each have a distribution from the same family: binomial, Poisson, normal, etc.

2. The systematic component is the model. It is the function of the predictor variable Xi, linear in the parameters, that is related to the mean of Yi. We will consider only α + βxi here.

3. Finally, the link function g(μ) links the two components by asserting that g(μi) = α + βxi, where μi = [Yi].

In probit regression, the link function is the standard normal cdf Φ (x) = P(Z ≤ x), where Z ~ N (0, 1). Thus, in this model we observe (Y1, x1), (Y2, x2), . . . ,(Yn, xn), where Yi ~ Bernoulli(πi) and πi = P(Yi = 1) = Φ(α + βxi).

[1] Derive the pdf Yi and compute E[Yi] and Var [Yi].

[2] Find the likelihood function of Y1, . . . ,Yn.

[3] Using the log-likelihood function, show that the first order condition for α and β are:

1100_Figure2.png

and find the exact expressions for Fi and fi.

Reference no: EM131207950

Questions Cloud

What factors influence the costs of supplying : What factors influence the costs of supplying such public goods as police protection and national defense?- What might cause these costs to go up or down, and how would such change affect your taxes?
What is the purpose of malware : What is the purpose of malware? Follow-up by briefly describing each of the following types of malware: virus, spyware, adware, Trojans, worms, and macro virus.
Evaluate a product expression : To evaluate a sum expression (series of zero or more additions and subtractions): evaluate a product expression (zero or more multiplications and divisions).
Analyse information provided on the queensland health study : Discuss frameworks (COBIT and COSO) and controls which should be used in a project such as the Queensland Health Payroll system.
Write down the likelihood function for the model : ECO 520 - FALL 2015 - FINAL EXAM. The Simple Linear Model- The simple linear regression tries to better understand the functional dependence of one variable on another. Write down the likelihood function for the model, that is, the joint pdf of Y1, ...
Explain activation and function of b cells in body defences : Explain the activation and function of B cells in body defences. What are the mechanisms of antibody actions which support immunity? How does HIV infection impair the body's ability to produce antibodies?
How the law can affect ethical hackers and security testers : Write a one page summary explaining how this law can affect ethical hackers and security testers. To avoid undermining the tests you're conducting, you won't be introduced to any IT staff or employees.
Discuss how the globalism trend affect the local store : 1. Discuss how the globalism trend affect the local store. 2. In general, do you think ALL companies should go global? Why or why not?
Preferred method of communicating with others : 1) What is your preferred method of communicating with others? (phones, letters, email, or texting?) In which method do you get the best responses?

Reviews

Write a Review

Econometrics Questions & Answers

  What is the opportunity cost of economic growth

What is the opportunity cost of economic growth?

  Assume that gross private domestic investment is 800

assume that gross private domestic investment is 800 billion and the government state local and federal combined is

  What was the main objective of your interview

How can some of the concepts from the course help you explain what you found?

  How would you test the implications of this model

Provide the necessary conditions for an interior solution. Highlight how these necessary conditions should be modified to allow for corner solutions where s(t) might take the value of 0 or 1.

  Why there is asymmetric information

Consider each of the following situations involving moral hazard. In each case identify the principal (uninformed party) and the agent (informed party) and explain why there is asymmetric information. How does the action described for each situati..

  Determihne what is the maximum car purchase price

A student has a job that leaves her with $500 per month in disposable income. She decides that she will use the money to buy a car. Before looking for a car, she arranges a 100% loan whose terms are $500 per month for 36 months at 18% annual inter..

  Determine the annual worth of the costs of packing

Peyton Packing has a ham cooker that has the cost stream below. If the interest rate is 15% per year, determine the annual worth(in years 1 through 7) of the costs. year 0=$4,000, year 1=$4000, year 2=$3000, year 3=$2000, year 4=$6000, year 5=$800..

  Find the number of firms and the output per firm

Suppose the two countries we considered in the numerical example on pages 166-169 were to integrate their automobile market with a third country, which has an annual market for 3.75 million automobiles. Find the number of firms, the output per fir..

  Enforce antitrust laws against the microsoft corporation

Begin a response to this statement with your assertion - Agree or Disagree - then provide reasoning to support your assertion.

  Can they produce any linear combinations

two people live alone in isolated regions, have the same resources, grow potaotes and chickens, if one devotes resources to growing potatoes they raise 200 lbs a year. if they grow chickens they raise 50 a year. if they apportions some resourcs to ..

  What is the total revenue joe can earn in a year

What are the total opportunity costs of producing ten boats (explicit and implicit)?

  Determine the economy operating at full-employment level gdp

Consider an economy that is operating at full-employment level GDP. Assuming the MPC is 0.90, predict the effect on the economy of a $50 billion increase in government spending balanced by a $50 billion increase in taxes.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd