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

#13, A survey showed that 80% of the 1600 adult respondents believe in glob...

A survey showed that 80% of the 1600 adult respondents believe in global warming. Construct a 95% confidence interval estimate of the proportion of adults believing in global warmi

Normal Approximation to Binomial Probability Distribution, A machine that f...

A machine that fills quart milk cartons is set up to average 32.2 oz per carton, with a standard deviation of 1.2 oz. Assume a normal distribution for all of the cartons filled, wh

Dr. s.n.de, uses of time series with example

uses of time series with example

Statistic, any of your writer able to use the database given to generate th...

any of your writer able to use the database given to generate the null, alternative..etc.. into a power point presentation

Oecd database exercise , For this second assignment you will have to use th...

For this second assignment you will have to use the OECD database to investigate possible changes in the policy preferences of Western welfare states. You have to develop (i) an in

Calculate the expected ratio, 1. Cross BBGG X bbgg. Assume B and G are l...

1. Cross BBGG X bbgg. Assume B and G are linked together on an autosome. Show F2 and give expected results. 2. Cross BBGG x bbgg. Assume B and G are not linked. Show F2 an

Probability, jay can remember only the first 4 digits of his friends phone ...

jay can remember only the first 4 digits of his friends phone number. he also knows that the number has 7 digits and the last digit is not a zero. if jay were to dial all of the po

De Broglie hypothesis and Heinsberg’s uncertainty principle, According to d...

According to de Broglie hypothesis and Heinsberg’s uncertainty principle, if and electron is to exist inside the nucleus, it should posses energy ranging from 20 MeV to 200 MeV. B

Bond redemption, Bond redemption The regaining of control of bonds formerly...

Bond redemption The regaining of control of bonds formerly issued by expense of amount due to the owner.

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