compare the quality of the different estimations, Basic Statistics

Assignment Help:

To illustrate the importance of model selection. We will use only the first four observations to estimate the function f such that ini t. h = f(h. d) for two different models.

We will then use the last three observations to compare the quality of the different estimations.

(a) We consider first a quadratic regression model: f(x) = ax2 + bx + c. We carry out the regression of h. d on the vector (ini t .h.init.h'")

f1=gH1: 4J

f2=g2 [1: 4J

LinReg1=lm(f2 ~ f1+I(f1A2))

summary (LinReg1)

What are the estimated values of a, b, c? What is the value of the coefficient of determination?

(b) We consider next the regression model: f(x) = ax2 + bx + c + dexp(x/20). We carry out the regression of h. d on the vector (ini t .h.init.h'' ,einit.h/20)

LinReg2=lm(f2 ~ f1+I(f1A2)+I(exp(f1/20)))

summary(LinReg2)

What are the estimated values of a, b, c, d? What is the value of the coefficient of determination? Is this sufficient to conclude that this model is better than the quadratic model ?

(c) To better answer the previous question, we compute and display the prediction on the last tree observations obtained for each of the previous models.

t=(2500:6000)/10

new=data. frame (f1=t)

pred1=predict(LinReg1, new, interval ="none")

pred2=predict(LinReg2, new, interval ="none")

par(bg='cornsilk')

plot(g1,g2,pch = 20,col="black",cex=2,ylim=c(0,1000))

points(t,pred1,pch = 20,col="blue",cex=0.2)

points(t,pred2,pch = 20,col="red",cex=0.2)

What is your conclusion?

(d) We are now using the package leaps of R to perform the model selection. library (leaps)

f1=g1 [1: 5]

f2=g2 [1: 5J

explain=matrix(c(f1,f1A2,exp(f1/20)),ncol=3)

leaps (x=explain, y=f2)

What do we use the instruction explain=matrix(c (£1, f1 A2,exp (£1/20)) ,ncol=3) for? Given the value of the Cp criterion, which one of the seven model do you select?


Related Discussions:- compare the quality of the different estimations

Discrete random varible, A probability distribution is partially given in t...

A probability distribution is partially given in the following table with the additional information that the even values of X are equally likely. Determine the missing entries in

What is hurdle rate, What is hurdle rate? In investment spending budget...

What is hurdle rate? In investment spending budget, challenge amount is the minimal amount that an organization desires to earn when getting a venture. Hence the challenge amou

Stock control, Two components, A and B, are used as follows: normal usage -...

Two components, A and B, are used as follows: normal usage - 50 per week each minimum usage - 25 per week each maximum usage - 75 per week re-order quantity - A:300; B:500 re-order

Price level change, how effect changes in prices to a financial statement?

how effect changes in prices to a financial statement?

IFRS 9, The company acquired 50000 8% preferencd shares (with a par value o...

The company acquired 50000 8% preferencd shares (with a par value of R4 each) in cross limited on 30 june 2006 for R180000.transaction costs at the acquisition date amounted to R12

Completely randomized design, Ask question #MinimumAgency revenues. An econ...

Ask question #MinimumAgency revenues. An economic consultant was retained by a large employment agency in a metropolitan area to develop a regression model for predicting monthly a

Marketing research field surveys, In marketing research field surveys ar...

In marketing research field surveys are commonly used to collect primary data from the respondents. 1. Through Personal Interviews: The investigator follows a rigid proced

Velocity, A car moves with constant velocity along a straight road. Its pos...

A car moves with constant velocity along a straight road. Its position is x1 = 0m at t1 = 0 seconds and is x2 = 56 m at t2 = 5.0 s. what is the cars position at t=2.5 seconds and

AUTOMATED TELLER MACHINE (ATM) , AUTOMATED TELLER MACHINE (ATM) Computer m...

AUTOMATED TELLER MACHINE (ATM) Computer managed devices placed at a financial institution division or other place, which allow a client to execute primary checking actions (such a

Difference between estimated proportions of business owners, Question 1. In...

Question 1. In 2009, Research New Zealand conducted a survey on small businesses in New Zealand. Small businesses were defined as enterprises with 19 or fewer employees. 501 small

Write Your Message!

Captcha
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