compare the quality of the different estimations, Basic Statistics

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?

Posted Date: 3/20/2013 3:20:12 AM | Location : United States







Related Discussions:- compare the quality of the different estimations, Assignment Help, Ask Question on compare the quality of the different estimations, Get Answer, Expert's Help, compare the quality of the different estimations Discussions

Write discussion on compare the quality of the different estimations
Your posts are moderated
Related Questions

Lifts usually have signs indicating their maximum capacity. Consider a sign in a lift that reads “maximum capacity 1400kg or 20 persons”. Suppose that the weights of lift-users are

Costs or expenses that connect with the appropriate identification requirements of the finance type engaged but have not been compensated. Acquired expenses are required to be comp

(Penney’s game) Independent flips of a biased coin that lands on heads with probability 0.7 are made. Each of two players, A and B, had chosen one out of the eight triplet: {HHH, H

What is meant by the full cost of a product? Many organizations use the expression top dollars to mean the complete creating or technology cost of a product. To this organiz

An employer provides taxable fringe benefits of $11,000 (GST inclusive) for his employees during the relevant period, all being for creditable purposes and input tax credits of

In fowl,the genotype rrpp gives single comb, R_P_ walnut comb, rrP_ pea comb, and R_pp rose comb. a. What comb type will appear and in what proportions in F and F2 if single- co

During the execution of the search process, the whole populations are classified into subgroups by sufficiently analyzed the individuals' state. Each individual in a different subs

CRSL has a large auditorium which can cater for 300 people and is ideal for formal balls and functions. The auditorium can also be reconfigured to cater for 100 people. The Seasons

Refund can be defined as return of a part of a purchase price by a seller to a buyer, usually on a purchase of a specified quantity or a value of goods within a specified period.