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

Decision tree, how do I answer: with the aid of a decision tree prepare a q...

how do I answer: with the aid of a decision tree prepare a quantitative report advising the company on the optimal course of action. (use a time horizon of 6years and ignore the ti

Intervals, At a tennis tournament a statistician keeps track of every serve...

At a tennis tournament a statistician keeps track of every serve. The statistician reported that the mean serve speed of a particular player was 102 miles per hour (mph) and the st

Analysis and interpretation business report, Case Study. Using the data, pr...

Case Study. Using the data, prepare a report that analyses the profitability, liquidity and solvency of a Accessorize Pty Ltd and help the owner to decided whether to purchase the

Correlation, what are the condition to use probable error

what are the condition to use probable error

Salient features of a promissory note, What are the salient features of a P...

What are the salient features of a Promissory Note? Ans. a) A Promissory Note is made by the promiser who undertakes to pay the mentioned amount of Bill to the bearer of the Promi

Inventory, An audit of the accounting records of Loch Ness Ltd. for the yea...

An audit of the accounting records of Loch Ness Ltd. for the year ending 30 June 2012 discovered that the ending inventory balance was over-valued by $35,000. Upon further investig

Define Manufacturing Overhead Costs, In the financial statements, each prod...

In the financial statements, each product must include the costs of the given below: Direct labor Direct material Manufacturing or factory overhead The costs that would typically b

Sequence networks , A group of identical synchronous motors is connected th...

A group of identical synchronous motors is connected through a transformer to a 4.16-kV bus at a remote location from the generating plants of a power system. The motors are rated

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