where yi and xi are the coordinates of datapoint i, and bi is the slope calculated from this datapoint.
This estimate would of course depend heavily on which datapoint i you choose to use, and thus be a poor estimate of the overall slope although it would be exact for just that point. A better approach could therefore be to do this for all the datapoints, and then compute some sort of mean value of all the bi's.