How is the slope computed from the two column sums in the least-squares regression example?
The slope is computed by dividing the sum of the cross-products of deviations by the sum of the squared x-deviations. In the worked example, the sum of the cross-products is 6 and the sum of the squared x-deviations is 10, yielding .
Conditions
- The data set consists of paired observations.
- The sample means and have been computed.
- The denominator is nonzero.
Reasoning, step by step
- Identify the column of squared x-deviations and sum its values to get the denominator.
- Identify the column of cross-products and sum its values to get the numerator.
- Divide the numerator sum by the denominator sum to find .
- Simplify the resulting fraction to a decimal value.
Example
The video shows the squared x-deviations summing to 10 and the cross-products summing to 6. The calculation is explicitly written as .
Common misconceptions
- Assuming the slope is the ratio of the sum of y-deviations to the sum of x-deviations.
- Forgetting to square the x-deviations before summing them for the denominator.
- Believing that rows with a zero deviation in either x or y contribute to the numerator sum.
Watch the explanation
Explore next
Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.