document.write( "Question 159471: This is a homework question. I do not understand about regression lines.\r
\n" ); document.write( "\n" ); document.write( "The question is: Find the equation of the regression line:\r
\n" ); document.write( "\n" ); document.write( "x 12 14 10 9 15 8
\n" ); document.write( "____________________________________\r
\n" ); document.write( "\n" ); document.write( "y 29 35 28 23 36 18\r
\n" ); document.write( "\n" ); document.write( "Multiple choice answer:\r
\n" ); document.write( "\n" ); document.write( "y = -1.2 + 2.4x
\n" ); document.write( "y = 1.2 + 2.4x
\n" ); document.write( "y = 2.4 + 1.2x
\n" ); document.write( "y = -2.4 + 1.2x\r
\n" ); document.write( "\n" ); document.write( "Which is the correct answer?
\n" ); document.write( "

Algebra.Com's Answer #117658 by Fombitz(32388)\"\" \"About 
You can put this solution on YOUR website!
A regression line is the best fit of a straight line using the data points.
\n" ); document.write( "It doesn't necessarily go through all or any of the points but fits the data best (least error at each of the data points).
\n" ); document.write( "A regression analysis uses the data to find the slope, m, of the line, and the y-intercept, b.
\n" ); document.write( "\"y=mx%2Bb\"
\n" ); document.write( ".
\n" ); document.write( ".
\n" ); document.write( ".
\n" ); document.write( "Let's see if we can guess the solution without doing a full blown regression analysis.
\n" ); document.write( "I'm not sure if that was the intent of the problem.
\n" ); document.write( "First look at the data,
\n" ); document.write( "
\n" ); document.write( "You can guess the approximate slope by using the first and last points,
\n" ); document.write( "\"m%5Bapx%5D=%2836-18%29%2F%2815-8%29=2.57\"
\n" ); document.write( "So the answer must be 2.4, closer to 2.4 than 1.2.
\n" ); document.write( "You know that \"b=y%5Bave%5D-mx%5Bave%5D\"
\n" ); document.write( "\"x%5Bave%5D=%2812%2B14%2B10%2B9%2B15%2B9%29%2F6=11.333\"
\n" ); document.write( "\"x%5Bave%5D=%2829%2B35%2B28%2B23%2B36%2B18%29%2F6=28.167\"
\n" ); document.write( "\"b=y%5Bave%5D-mx%5Bave%5D\"
\n" ); document.write( "\"b=28.167-%282.4%29%2811.333%29\"
\n" ); document.write( "\"b=28.167-27.2\"
\n" ); document.write( "\"b=0.97\"
\n" ); document.write( "The closest answer is 1.2.
\n" ); document.write( "\"y=1.2%2B2.4x\"
\n" ); document.write( ".
\n" ); document.write( ".
\n" ); document.write( ".\r
\n" ); document.write( "\n" ); document.write( "The value for b was off because of roundoff error in m.
\n" ); document.write( "The actual calculated value for m=2.3814, with b=1.178.\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );