class4b_regression_activities_engr195(ii)s10

# class4b_regression_activities_engr195(ii)s10 - i , e i 2 ,...

This preview shows pages 1–5. Sign up to view the full content.

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 625 Mean: 5 2.5 25 1. Compute the slope(a) and intercept(b) using the least squares method. 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

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

View Full Document
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 12.5 1.88 7.5 2.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 i )) 2. Compute the errors for each data point by calculating e

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 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 1 2 3 4 0.5 1 1.5 2 2.5 3 3.5 4 4.5 f(x) = 0.38x + 0.63 R = 0.75 5 6 7 8 9 10 yi Linear Re-gression for yi 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 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 University-West Lafayette.

### Page1 / 5

class4b_regression_activities_engr195(ii)s10 - i , e i 2 ,...

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

View Full Document
Ask a homework question - tutors are online