Question: how to calculate the slope in regression?
Answer: Remember from algebra, that the slope is the “m” in the formula y = mx + b. In the linear regression formula, the slope is the a in the equation y' = b + ax. They are basically the same thing. So if you're asked to find linear regression slope, all you need to do is find b in the same way that you would find m.