Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Statistics and Probability Expert

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?

Statistics and Probability, Statistics

  • Category:- Statistics and Probability
  • Reference No.:- M9530269

Have any Question?


Related Questions in Statistics and Probability

A puck company wants to sponsor the players with the 10

A puck company wants to sponsor the players with the 10% quickest goals in hockey games. The times of first goals are normally distributed with a mean of 8.54 minutes and a standard deviation of 4.91 minutes. How fast wo ...

Assume that you deposit 1293 each year for the next 15

Assume that you deposit $ 1,293 each year for the next 15 years into an account that pays 10 percent per annum. The first deposit will occur one year from today (that is, at t = 1) and the last deposit will occur 15 year ...

How do i figure a cusomers expected return when borrowing

How do I figure a cusomer's expected return when borrowing money? Example, the customer wants an investment that costs $100 and considers borrowing $80 for one year at 4.6% to help pay for the investment. What is the cus ...

You decide to research further this seemingly contradictory

You decide to research further this seemingly contradictory guidance, hypothesizing that the  true population average core body temperature  amidst higher ambient temperature and humidity levels while using an electric f ...

Suppose the chance of selecting a female adult at random in

Suppose the chance of selecting a female adult at random in the population is exactly π= 0.5 (ie: 50%). What is the probability that I choose 10 adults at random and I get the number of females in the sample to be betwee ...

A new type of soft drink from frackly inc is sold in 500

A new type of soft drink from Frackly Inc. is sold in 500 milliliter (ml) bottles. The mean volume of drink placed in a bottle is 490 ml with a standard deviation of 6.1 ml. Assuming a normal distribution of the data, wh ...

A researcher selects from a participant pool of 8 males and

A researcher selects from a participant pool of 8 males and 11 females. He determines that the probability of selecting 2 female participants is p = .335. Based on this probability, what strategy did the researcher use t ...

Suppose you perform a multiple regression to predict crime

Suppose you perform a multiple regression to predict crime rate in a state and includes as indicators of predictions the homeownership rate divorce rate and the personal bankruptcy. Explain how to conduct a test of hypot ...

The random variablenbspxnbsptakes on the values 5 20 30 and

The random variable  X  takes on the values 5, 20, 30, and 200 with probabilites 0.60, 0.30, 0.08, and 0.02 respectively.  Use the statistical capacity of your calculator to find the expected value of  X rounded to one p ...

A process is normally distributed with a mean of 104

A process is normally distributed with a mean of 104 rotations per minute and a standard deviation of 8.2 rotations per minute. If a randomly selected minute has 128 rotations per minute, would the process be considered ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As