Docsity

Regression Analysis of Electric Power Consumption and Product Production, Lab Reports of Statics

Toggle sidebar
bg1
STAT 305 COMPUTER LAB (JMP LAB)
1. The electric power, y, consumed each month by a chemical plant is thought to be
related to the average outside temperature, x1, and the tons of product produced,
x2. The data for last year are given below.
y304 290 259 240 250 280 316 300 275 250 275 300
x125 31 45 60 65 72 80 84 75 60 50 40
x2100 95 92 84 96 98 100 102 94 90 98 100
a) If you were using simple linear regression to predict y would you use x1 or x2?
Justify your answer.
Notice only 1% of the variation in electric power (y) is explained by the linear effects of
outside temperature (x1) (R2 = .002276). However, 70% of the variation in electric power
(y) is explained by the linear effects of tons of product produced (x2) (R2=.705376). Thus
I would choose x2 for simple linear regression to predict y.
pf3
pf4

Partial preview of the text

Download Regression Analysis of Electric Power Consumption and Product Production and more Lab Reports Statics in PDF only on Docsity!

STAT 305 COMPUTER LAB (JMP LAB)

  1. The electric power, y , consumed each month by a chemical plant is thought to be related to the average outside temperature, x 1 , and the tons of product produced, x 2. The data for last year are given below. y 304 290 259 240 250 280 316 300 275 250 275 300 x 1 25 31 45 60 65 72 80 84 75 60 50 40 x 2 100 95 92 84 96 98 100 102 94 90 98 100 a) If you were using simple linear regression to predict y would you use x 1 or x 2? Justify your answer. Notice only 1% of the variation in electric power ( y ) is explained by the linear effects of outside temperature ( x 1 ) (R^2 = .002276). However, 70% of the variation in electric power ( y ) is explained by the linear effects of tons of product produced (x 2 ) (R^2 =.705376). Thus I would choose x 2 for simple linear regression to predict y.

b) Using the equation involving both x 1 and x 2 what output, y , would you predict for x 1 = 60 and x 2 = 97. Why you be reluctant to predict y for x 1 = 60 and x 2 = 102? (Construct a plot x 1 versus x 2 and use that plot to justify your answer.) The equation using both x 1 and x 2 is y ˆ  100. 1483  0. 1189 x 1  4. 0231 x 2 So the value we would predict for x 1 = 60 and x 2 = 97 is

  1. 96 ˆ 100. 1483 0. 1189 ( 60 ) 4. 0231 ( 97 )  y    If we look at a fit of x 1 to x 2 below, we can see that the point (60,102) does not fit with the rest of the data so we would be reluctant to predict a value there (think, extrapolation).

What is the issue if x 1 = 60 and

x 2 = 102?

80 85 90 95 100 105 x 20 30 40 50 60 70 80 90 x Bivariate Fit of x2 By x I t appears that x 1 and x 2 and a curvilinear association and the point when x 1 = and x 2 =102 does fit the assumpt ion and is a point that lies outside the sampling f rame (t hink, extrapolation) f or what we defined our model on. c) What equation would you use to estimate electric power consumed? Justify your answer. Note that the R^2 value went from 70.5% with tons of product produced alone to 71.4% when we added average outside temperature. This is not much

The least squares line is y ˆ^^ ^ ^888.^7671 ^12.^3199 x and the quadratic fit line is y ˆ  45. 44  10. 00612 x  0. 101587 ( x  285. 9 )^2 . b) What is the R^2 when one does simple linear regression? R^2 = 0.903149. c) Would you use a quadratic fit for these data? Justify your answer. Yes because the R^2 increases from .903 to .9685 which means the quadratic curve is explaining 6% more of the variation in y. d) On the scatter plot that includes the linear regression identify ei^ ^ yi^ ^ y ˆ i for the point (207, 1420). eiyi  ˆ y^ i  1420 ( 888. 7671  12. 3199 * 207 ) 1420  1661. 47  241. 47 The residual is represented (roughly) by the blue line in the linear scatterplot.