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

Reply plz, order tomatoes in crates of 25 kg and he is able to stock a maxi...

order tomatoes in crates of 25 kg and he is able to stock a maximum of four crates or 100 kg of tomatoes. His experience taught him that the daily demand ranges from 0 to100 kg of

Track Software, Seven years ago, after 15 years in public accounting, Stanl...

Seven years ago, after 15 years in public accounting, Stanley Booker, CPA, resigned his posiition as Manager of Cost Systems for Davis, Cohen, and O''''Brien Public Accountants and

Confidence interval, Ask quesA buffalo, your cola distributor is featuring ...

Ask quesA buffalo, your cola distributor is featuring a super-special sale on 12- packs. She wonders where in the grocery store to place the cola for maximum attention. Should it b

Measures of dispersion (variation), Measures of Dispersion (Variation) ...

Measures of Dispersion (Variation) A measure of dispersion is to measure the spread among values of observations in a data set. There are three commonly used measures of disper

examine the distributions of the sample data, A second file on DocDepot na...

A second file on DocDepot named Marks.mtp contains the final exam percentages of students in ADM2304A in the Fall 2011 semester. Assume that the class can be considered a random sa

Chapter 7, A study of long term phone calls made from general electricss co...

A study of long term phone calls made from general electricss corporate headquarters in fairfeild, conneticuit, revealed the length of the calls, in minutes follows the normal prob

estimate the mean chloride concentratio, An article in the Journal of Env...

An article in the Journal of Environmental Engineering (Vol. 115, No. 3,1989, pp. 608-619) reported the results of a study on the occurrence of sodium and chloride in surface str

Standard costing, Standard costing In contemporary price sales, the idea...

Standard costing In contemporary price sales, the idea of documenting traditional expenditures was taken further, by assigning the organization''s set expenditures over a given

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