16. First draw a line through the data.
Student Enrollment
TripGeneration
17. Measure the distance from
the line to data, square
each distance, and then add
them up.
The distance from a
line to a data point is
called a “residual”.
Student Enrollment
TripGeneration
18. Draw any new line,
measure the residual,
square them , and then
sum up the square.
Student Enrollment
TripGeneration
19. Rotate the line little bit more…..
Student Enrollment
TripGeneration
20. Sum up the squared
residuals..
Student Enrollment
TripGeneration
21. Sum of square
residuals
Different Rotation
After the bunch of rotations,
you plot the sum of squared
residual and corresponding
rotation.
22. Sum of square
residuals
After the bunch of rotations,
you plot the sum of squared
residual and corresponding
rotation.