Skip to content
← All questions

How is the slope b1b_1 computed from the two column sums in the least-squares regression example?

The slope b1b_1 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 b1=6/10=0.6b_1 = 6/10 = 0.6.

Conditions

  • The data set consists of paired observations.
  • The sample means xˉ\bar{x} and yˉ\bar{y} have been computed.
  • The denominator ∑(xi−xˉ)2\sum (x_i-\bar{x})^2 is nonzero.

Reasoning, step by step

  1. Identify the column of squared x-deviations (xi−xˉ)2(x_i-\bar{x})^2 and sum its values to get the denominator.
  2. Identify the column of cross-products (xi−xˉ)(yi−yˉ)(x_i-\bar{x})(y_i-\bar{y}) and sum its values to get the numerator.
  3. Divide the numerator sum by the denominator sum to find b1b_1.
  4. 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 b1=6/10=.6b_1 = 6/10 = .6.

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.