class4b_regression_activities_engr195(ii)s10_sol

class4b_regression_activities_engr195(ii)s10_sol - i )) 2....

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
ENGR 195(II) - Spring 2010 Class 4B - Linear Regression Activity 1 - Least Squares Method i 1 1 0.5 1 0.5 2 3 2.5 9 7.5 3 5 2 25 10 4 7 4 49 28 5 9 3.5 81 31.5 Sums: 25 12.5 165 77.5 Mean: 2.5 1. Compute the slope(a) and intercept(b) using the least squares method. (see Class 4b Slides for solution of simultaneous equations) a= 0.38 b= 0.63 2. Write the equation in y = ax + b form. y=0.375x+0.625 x i y i x i 2 x i y i
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Activity 2 - Goodness of Fit 1 -0.5 0.25 4 1.75 0.75 0.56 0 2.5 -0.5 0.25 0.25 3.25 0.75 0.56 2.25 4 -0.5 0.25 1 1.88 7.5 3. Using the values in the table above compute the Sum of Squares of Errors. SSE 1.88 4. Using the values in the table above compute the Sum of the Squares of the Deviations SST 7.5 0.75 f(x i ) predicted y e i e i 2 [ y i -y mean ] 2 1. Use your slope and intercept to compute predicted values of y for each x in the table above (called f(x
Background image of page 2
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: i )) 2. Compute the errors for each data point by calculating e i , e i 2 , and [y i-y mean ] 2 in the table above 5. Use SSE and SST to determine r 2 r 2 ENGR 195(II) - Spring 2010 Class 4B - Linear Regression - Activity 3 Year Telephone Expenditures 1981 360 1982 375 1983 415 1984 435 1985 455 1986 471 1987 499 1988 537 1989 567 1990 592 1991 618 1992 623 1993 658 1994 690 1995 708 1996 772 1997 809 1998 830 1999 849 1980 1982 1984 1986 1988 1990 0 100 200 300 400 500 600 700 800 900 f(x) = 27.48x - 54086.82 R² = 0.99 Trends in Telephone Ex Year Telephone expenditures 1992 1994 1996 1998 2000 xpenditures...
View Full Document

This note was uploaded on 08/25/2011 for the course ENGR 195 taught by Professor Staff during the Fall '08 term at Purdue.

Page1 / 4

class4b_regression_activities_engr195(ii)s10_sol - i )) 2....

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online