Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Engineering Mathematics Expert

Question 1. The least-squares solution β' for a linear regression model is β' = ( β0', β1')T, where

β' = i=1N (xi - x')(yi-y')/i=1N (xi - x')2

and

β' = y- - β1'x-

Verify that β' solves the normal equations AT Aβ' = ATy for data y.

Question 2. For an outcome Y = y of a linear model Y = Aβ + ε, where ε ~ N(0, σ2I), show that the least-squares solution 13 solving the normal equations ATA = ATy is the maximum likelihood estimator for β.

Question 3. Simulate N = 100 outcomes from the model

Y = 2.5 - 5X2 + ε,

where X ~ U[0, 0, 7] and ε ~ N(0, 0, 12) independently. From your simulated outcomes of (X, Y), fit a sequence of polynomial regression models to your data via least-squares, of degree n = 0, 1,2,3.

Provide plots of your regression curves with the data superimposed, plots of the residuals, and supply your code.

Question 4. Extend your solution to Q3, by calculating the mean error sum-of-squares; and calculate the regression sum of squares associated with increasing the model degree by 1. Based on your residual plots in Q3, comment on the validity of the error model in each case. If the error model is valid, compute the appropriate F statistic for testing whether the additional term in the model is needed, together with the associated p-value. For valid tests, conclude whether or not the additional term is needed. Supply your calculated output, comments, and your code.

Question 5. For a linear regression model:

(a) Determine the joint distribution of the least-squares solution β'.

(b) Using (a), determine the distribution of the linear regression line at an arbitrary explanatory point x; that is, the distribution of Y' where Y' = β0' + β1'x. Comment on how to go about constructing a confidence interval for the linear regression line at an arbitrary explanatory point x.

Question 6. Revisiting Q3, fit a linear regression model with transformed explanatory variables X~ = X2. Plot a 95% confidence interval and a 95% prediction interval on the sample plot as your regression curve and the data points, assuming the variance σ2 = 0.12 is known. Supply your plot and code.

Where β' is refer to β^.

Engineering Mathematics, Engineering

  • Category:- Engineering Mathematics
  • Reference No.:- M91424358
  • Price:- $75

Priced at Now at $75, Verified Solution

Have any Question?


Related Questions in Engineering Mathematics

Assignment - lp problemsthe data for all the problems in

Assignment - LP problems The data for all the problems in this HW are included in the LP_problems_xlsx spreadsheet Problem 1: Cash Planning A startup investment project needs money to cover its cash flow needs. At the en ...

Numerical analysis assignment -q1 define the following

Numerical Analysis Assignment - Q1. Define the following terms: (i) Truncation error (ii) Round-off error Q2. Show that if f(x) = logx, then the condition number, c(x) = |1/logx|. Hence show that log x is ill-conditioned ...

Assignment - introduction to math programmingdirections

Assignment - Introduction to Math Programming Directions - Formulate a linear programming model for the following description. Include definitions of decision variables, Objective function, and constraints. Augment your ...

Question 1 - many spas many componentsconsider 4 types of

Question 1 - Many spas, many components Consider 4 types of spa tub: Aqua-Spa (or FirstSpa, or P1), Hydro-Lux (or SecondSpa, or P2), ThirdSpa (or P3) and FourthSpa (or P4), with the production of products P1, ..., P4 in ...

1 this problem concerns of the proof of the np-completeness

(1) This problem concerns of the proof of the NP-completeness of 300L a) Convert the formula F into a 300L graph b) Find a solution for the 300L instance of F and verify that it is a solution for F F = (Z 1 V Z 2 ) ^ (z ...

Q undirected vs directed connectivitya prove that in any

Q: Undirected vs. directed connectivity. (a) Prove that in any connected undirected graph G = (V, E) there is a vertex v ? V whose removal leaves G connected. (Hint: Consider the DFS search tree for G.) (b) Give an examp ...

Question a signal starts at point x as it travels to point

Question : A signal starts at point X. As it travels to point Y, it loses 8 dB. At point Y, the signal is boosted by 10 bB. As the signal travels to point Z, it loses 7 dB. The dB strength of the signal at point Z is -5 ...

Problem -consider a closed convex set x sub rd a function h

Problem - Consider a closed convex set X ⊂ R d , a function H : X x Ξ ι→ R d , and a deterministic nonnegative sequence {α n } such that n=0 ∑ ∞ α n = ∞ and n=0 ∑ ∞ (α n ) 2 = ∞. Consider an inner product (·, ·) on R d , ...

Question suppose that g is a directed graph in class we

Question : Suppose that G is a directed graph. In class we discussed an algorithm that will determine whether a given vertex can reach every other vertex in the graph (this is the 1-to-many reachability problem). Conside ...

Assignment - lp problemsthe data for all the problems in

Assignment - LP problems The data for all the problems in this HW are included in the LP_problems_xlsx spreadsheet. Problem 1 - Cash Planning A startup investment project needs money to cover its cash flow needs. At the ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As