Question

Consider the following set of ordered pairs. 5 4 1 n 5 5 3 2 4 3 у 3 a) Calculate the slope and y-intercept for these data. b
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution-:

By using R-Software:

> x=c(5,5,3,4,1);x
[1] 5 5 3 4 1
> y=c(4,5,2,3,-3);y
[1] 4 5 2 3 -3
> # (a) For the equation of the line of regression
> fit=lm(y~x);fit

Call:
lm(formula = y ~ x)

Coefficients:
(Intercept) x
-4.357 1.821

> cr=coef(fit);cr
(Intercept) x
-4.357143 1.821429
> mcr=matrix(cr);mcr
[,1]
[1,] -4.357143
[2,] 1.821429
> a=mcr[1,1];a
[1] -4.357143
> round(a,4)
[1] -4.3571
> b=mcr[2,1];b
[1] 1.821429
> round(b,4)
[1] 1.8214
> #The equation of the line of regression of y on x is: y= m*x+b or y=a+b*x
> #The equation of the line of regression of y on x is:y=-4.3571+1.8214*x
> #(c) For SSE
> esty=-4.3571+1.8214*x;esty # Regression equation
[1] 4.7499 4.7499 1.1071 2.9285 -2.5357
> d=y-esty
> d1=d^2
> SSE=sum(d1);SSE #Residual Sum of Square
[1] 1.642857
> round(SSE,3)
[1] 1.643
> #For SSR
> my=mean(y);my #Mean of y
[1] 2.2
> c=esty-my
> c1=c^2
> SSR=sum(c1);SSR #Regression sum of square
[1] 37.15598
> round(SSR,3)
[1] 37.156
> #(b)For SST
> SST=SSR+SSE;SST #Total sum of square
[1] 38.79883
> round(SST,1)
[1] 38.8

R-Code:

x=c(5,5,3,4,1);x
y=c(4,5,2,3,-3);y
# (a) For the equation of the line of regression
fit=lm(y~x);fit
cr=coef(fit);cr
mcr=matrix(cr);mcr
a=mcr[1,1];a
round(a,4)
b=mcr[2,1];b
round(b,4)
#The equation of the line of regression of y on x is: y= m*x+b or y=a+b*x
#The equation of the line of regression of y on x is:y=-4.3571+1.8214*x
#(c) For SSE
esty=-4.3571+1.8214*x;esty # Regression equation
d=y-esty
d1=d^2
SSE=sum(d1);SSE #Residual Sum of Square
round(SSE,3)
#For SSR
my=mean(y);my #Mean of y
c=esty-my
c1=c^2
SSR=sum(c1);SSR #Regression sum of square
round(SSR,3)
#(b)For SST
SST=SSR+SSE;SST #Total sum of square
round(SST,1)

Or

By using MS-Excel :

Given Data:

x y
5 4
5 5
3 2
4 3
1 -3

Output:

SUMMARY OUTPUT
Regression Statistics
Multiple R 0.9786
R Square 0.957658
Adjusted R Square 0.943544
Standard Error 0.740013
Observations 5
ANOVA
df SS MS F Significance F
Regression 1 37.15714 37.15714 67.85217 0.003746
Residual 3 1.642857 0.547619
Total 4 38.8
Coefficients Standard Error t Stat P-value Lower 95% Upper 95% Lower 95.0% Upper 95.0%
Intercept -4.35714 0.862089 -5.05417 0.014944 -7.10069 -1.61359 -7.10069 -1.61359
x 1.821429 0.221121 8.237243 0.003746 1.117722 2.525135 1.117722 2.525135

From this output we get,

(a) The equation of the line of regression of y on x is:y=-4.3571+1.8214*x

(c) SSE=1.643 and SSR=37.156

(b) SST=SSR+SSE=37.156+1.643=38.8

Add a comment
Know the answer?
Add Answer to:
Consider the following set of ordered pairs. 5 4 1 n 5 5 3 2 4...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 4 Consider the following set of ordered pairs. a) Calculate the slope and y-intercept for these...

    4 Consider the following set of ordered pairs. a) Calculate the slope and y-intercept for these data. b) Calculate the total sum of squares (SST). c) Partition the sum of squares into the SSR and SSE. a) Calculate the slope and y-intercept for these data. y- Round to four decimal places as needed.) b) Calculate the total sum of squares (SST) SST c) Partition the sum of squares into the SSR and SSE. (Round to one decimal place as needed.)...

  • Consider the following set of ordered pairs. X 4 5 4 6 3 3 у a)...

    Consider the following set of ordered pairs. X 4 5 4 6 3 3 у a) Calculate the slope and y-intercept for these data. b) Calculate the total sum of squares (SST). c) Partition the sum of squares into the SSR and SSE. a) Calculate the slope and y-intercept for these data. y=-x (Round to four decimal places as needed.)

  • please show all the work. if you use excel please show the screenshots. Thank you !...

    please show all the work. if you use excel please show the screenshots. Thank you ! I Question 2 (20pts) Consider the following set of ordered pairs. Complete parts a through c. у Х 1 3 5 4 10 8 4 a) Calculate the slope and y-intercept for these data. (Round to four decimal places as needed.) b) Calculate the total sum of squares (SST). (Round to two decimal place as needed.) c) Partition the sum of squares into the...

  • b) SST=? C) SSE=? SSR=? Consider the following set of ordered pairs. Complete parts a through...

    b) SST=? C) SSE=? SSR=? Consider the following set of ordered pairs. Complete parts a through c. х 1 2 6 5 5 40 7 у 5 a. Calculate the slope and y-intercept for these data. Ÿ= + ( X (Round to four decimal places as needed.)

  • a) Calculate the slope and y-intercept for these data. b) Calculate the total sum of squares...

    a) Calculate the slope and y-intercept for these data. b) Calculate the total sum of squares (SST). c) Partition the sum of squares into the SSR and SSE. a) Calculate the slope and y-intercept for these data. y = + x (Round to four decimal places as needed.)

  • answer c-e 2. Consider the following ordered pairs a. First draw a scatter plot with this...

    answer c-e 2. Consider the following ordered pairs a. First draw a scatter plot with this information LHHHH b. Then write the equation of a line. O i 234567 Y=9.5-0.58 c. Calculate the slope and y intercept for the linear regression equation d. Calculate the SST e. Partition the SST into SSR and SSE f. Calculate the coefficient of determination

  • A) Calculate the slope and​ y-intercept for these data. B) Calculate the total sum of squares​...

    A) Calculate the slope and​ y-intercept for these data. B) Calculate the total sum of squares​ (SST). C) Partition the sum of squares into the SSR and SSE. Cursider she fallrwing set af ardered pairs a) Calculate the slope and y intercept for these dala. b) Caiculatc the total sum of squares ISST c) Pa ton the sum of squaresmo the SSH, and SSE sum ct saunto tme SSH

  • Consider the following set of ordered pairs. x 2 7 1 4 30 y 6 9...

    Consider the following set of ordered pairs. x 2 7 1 4 30 y 6 9 5 8 6 Assuming that the regression equation is y = 4.491 +0.679x and that the SSE = 1.0189, construct a 95% confidence interval for the slope. Click here to see the t-distribution table, page 1 Click here to see the t-distribution table, page 2 Construct a 95% confidence interval for the slope. LCL = and UCL = (Round to three decimal places as...

  • Consider the set of ordered pairs shown below. Assuming that the regression equation is = 1.768...

    Consider the set of ordered pairs shown below. Assuming that the regression equation is = 1.768 +0.712x and the SSE = 2.558, construct a 90% prediction interva for x= 1. 1 15 5 0 2 4 5 3 5 3 3 у 2 Click the icon to view a portion of the Student's t-distribution table. Calculate the upper and lower limits of the prediction interval. UPL = LPL = (Round to three decimal places as needed.)

  • 14.4.22 A Question Help 0 Consider the set of ordered pairs shown below. Assuming that the...

    14.4.22 A Question Help 0 Consider the set of ordered pairs shown below. Assuming that the regression equation is y = 5.413-0.239x and the SSE = 10.674, construct a 95% confidence interval for x = 2 2 X у 2 5 3 5 14 6 6 Click the icon to view a portion of the student's t-distribution table. မဟ Calculate the upper and lower limits of the confidence interval. UCL = LCL = (Round to three decimal places as needed.)

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT