Question

In: Math

A statistical program is recommended. Consider the following data for two variables, x and y. x...

A statistical program is recommended.

Consider the following data for two variables, x and y.

x 22 24 26 30 35 40
y 12 20 32 36 39 36

(a). Develop an estimated regression equation for the data of the form

ŷ = b0 + b1x.

(b). Use the results from part (a) to test for a significant relationship between x and y. Use α = 0.05.

Find the value of the test statistic.

Find the p-value.

Is the relationship between x and y significant?

(c) Develop a scatter diagram for the data.

Does the scatter diagram suggest an estimated regression equation of the form ŷ = b0 + b1x + b2x2? Explain.

(d). Develop an estimated regression equation for the data of the form ŷ = b0 + b1x + b2x2.

(e) Use the results from part (d) to test for a significant relationship between x, x2, and y. Use α = 0.05. Is the relationship between x, x2, and y significant?

Find the value of the test statistic.

Find the p-value.

(f). Use the model from part (d) to predict the value of y when x = 25.

Solutions

Expert Solution

Perform linear regression n R

Rcode is

x   <- c(22,   24,   26,   30,   35,   40)
y <- c(12,   20,   32,   36,   39,   36)  


reg<-lm(y ~ x)
coeff=coefficients(reg)
coeff
# equation of the line :
eq = paste0("y = ", round(coeff[2],4), "*x ", round(coeff[1],4))
eq
attach(TrackRecords)
# plot
plot( x,y, main=eq)
abline(reg, col="blue")

(a). Develop an estimated regression equation for the data of the form

ŷ = b0 + b1x.
y=-7.6006+1.2463*x

(b). Use the results from part (a) to test for a significant relationship between x and y. Use α = 0.05.

using Rcode:

summary(reg)

Ouptut:

Call:
lm(formula = y ~ x)

Residuals:
1 2 3 4 5 6
-7.819 -2.312 7.196 6.210 2.978 -6.253

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -7.6006 13.9489 -0.545 0.6148
x 1.2463 0.4624 2.696 0.0543 .
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 7.155 on 4 degrees of freedom
Multiple R-squared: 0.645,   Adjusted R-squared: 0.5562
F-statistic: 7.266 on 1 and 4 DF, p-value: 0.05434

the value of the test statistic.

t=2.696

the p-value=0.0543

Ho:slope=0

Ha:slope not =0

t=2.696

the p-value=0.0543

p>0.05

Fail to Reject Ho:

Accept Ho.

relationship between x and y significant is not significant

(c) Develop a scatter diagram for the data.

Rcode:

plot( x,y, main="Scatterplot")

Output:

From scatterplot we observe:

Form:linear

Direction:positive

strength:strong

Yes

The scatter diagram suggest an estimated regression equation of the form ŷ = b0 + b1 x


Related Solutions

A statistical program is recommended. Consider the following data for two variables, x and y. x...
A statistical program is recommended. Consider the following data for two variables, x and y. x 22 24 26 30 35 40 y 12 20 33 35 40 36 (a) Develop an estimated regression equation for the data of the form ŷ = b0 + b1x.  (Round b0 to one decimal place and b1 to three decimal places. ŷ = (b) Use the results from part (a) to test for a significant relationship between x and y. Use α = 0.05....
A statistical program is recommended. Consider the following data for two variables, x and y. x...
A statistical program is recommended. Consider the following data for two variables, x and y. x 9 32 18 15 26 y 11 20 22 17 22 (a) Develop an estimated regression equation for the data of the form ŷ = b0 + b1x. (Round b0 to two decimal places and b1 to three decimal places.) ŷ = Comment on the adequacy of this equation for predicting y. (Use α = 0.05.) The high p-value and low coefficient of determination...
A statistical program is recommended. Consider the following data for two variables, x and y. x...
A statistical program is recommended. Consider the following data for two variables, x and y. x 9 32 18 15 26 y 9 20 22 16 23 (a)Develop an estimated regression equation for the data of the form ŷ = b0 + b1x. (Round b0 to two decimal places and b1 to three decimal places.) (b) Develop an estimated regression equation for the data of the form ŷ = b0 + b1x + b2x2. (Round b0 to two decimal places...
A statistical program is recommended. Consider the following data for two variables, x and y. xi...
A statistical program is recommended. Consider the following data for two variables, x and y. xi 135 110 130 145 175 160 120 yi 145 100 120 120 135 130 110 (a) Compute the standardized residuals for these data. (Round your answers to two decimal places.) xi yi Standardized Residuals 135 145 2.11 Incorrect: Your answer is incorrect. 110 100 -0.73 Incorrect: Your answer is incorrect. 130 120 145 120 175 135 160 130 120 110 Do the data include...
A statistical program is recommended. Consider the following data for a dependent variable y and two...
A statistical program is recommended. Consider the following data for a dependent variable y and two independent variables, x1 and x2. x1 x2 y 30 12 94 47 10 108 25 17 112 51 16 178 40 5 94 51 19 175 74 7 170 36 12 117 59 13 142 76 16 211 (a) Develop an estimated regression equation relating y to x1. (Round your numerical values to one decimal place.)ŷ =   Predict y if x1 = 43. (Round...
Consider the following data for two variables, x and y.
  Consider the following data for two variables, x and y. x 22 24 26 30 35 40 y 11 20 33 34 39 36 (a) Develop an estimated regression equation for the data of the form ŷ = b0 + b1x. (Round b0 to one decimal place and b1 to three decimal places.)ŷ = −8.3+1.259x    (b) Use the results from part (a) to test for a significant relationship between x and y. Use α = 0.05. Find the...
Consider the following data for two variables, x and y.
Consider the following data for two variables, x and y. x   2 3 4 5 7 7 7 8 9 y 4 5 4 6 4 6 9 5 11 a. Does there appear to be a linear relationship between x and y? Explain.(f-test, to do f-test for the overall significance) b. Develop the estimated regression equation relating x and y. c. Plot the standardized residuals versus yˆ for the estimated regression equation developed in part (b). Do the model assumptions...
Consider the following data for two variables, x and y. x 10 34 20 11 24...
Consider the following data for two variables, x and y. x 10 34 20 11 24 y 11 30 22 19 21 a. Develop an estimated regression equation for the data of the form y=b0+b1x. Comment on the adequacy of this equation for predicting . Enter negative value as negative number. The regression equation is Y=___________+___________ (to 2 decimals) s=__________ (to 3 decimals) r2=_________% (to 1 decimal) r2 adj=_______ % (to 1 decimal) Analysis of Variance SOURCE DF SS (to...
Consider the following data for two variables, x and y. x 9 32 18 15 26...
Consider the following data for two variables, x and y. x 9 32 18 15 26 y 10 19 22 17 23 (a) Develop an estimated regression equation for the data of the form ŷ = b0 + b1x. (Round b0 to two decimal places and b1 to three decimal places.) ŷ = Comment on the adequacy of this equation for predicting y. (Use α = 0.05.) The high p-value and low coefficient of determination indicate that the equation is...
Consider the following data for two variables, x and y. x 22 24 26 30 35...
Consider the following data for two variables, x and y. x 22 24 26 30 35 40 y 13 20 34 35 40 36 (a)Develop an estimated regression equation for the data of the form ŷ = b0 + b1x. (Round b0 to one decimal place and b1 to three decimal places.) ŷ = (b)Use the results from part (a) to test for a significant relationship between x and y. Use α = 0.05. Find the value of the test...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT