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

Find mode and median, The following data shows marks obtained by 40 student...

The following data shows marks obtained by 40 students in a Statistics test. 75 99 72 54 25 40 65 32 69 10 85 48 52 80  63 64 35 62 51 71 67 57 95 74 56 69 61  49 45 63 39

Time series, mathametical examples of components

mathametical examples of components

Quantitative techniques and decision making, Let the national income model ...

Let the national income model be: Y= c+1+G C=20+0.6y I=0.2y G=20 Where y= income, C= consumption, I= investment and G=government expenditure find y, C and I from the model. By quan

Test of hypothesis, A toothpaste company wants to know if its new products ...

A toothpaste company wants to know if its new products increases the length of time in between dentists visits for its uses. The company sets a target of 180 days to determine if i

Define accounting Actuarial basis , A basis used in processing the quantity...

A basis used in processing the quantity of advantages to be created regularly to a finance or consideration so that the complete advantages plus the complicated income thereon will

Fertility-define the annual crude birth rate, Fertility:  In order to study...

Fertility:  In order to study at which speed, at which the population is increasing, fertility rates are used which are of various types? Important among these are: Crude birth rat

Standard price, Stock at hand 1000 unit at #0.80 each, received 2000 units ...

Stock at hand 1000 unit at #0.80 each, received 2000 units at #1.10 each,

Accounting problem, a business was started on January 1, 2011 and $1000 of ...

a business was started on January 1, 2011 and $1000 of supplies to use in the business. At the end of the month 25% of the supplies remains unpaid and 20% are still on hand. what a

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