1The number of degrees of freedom is given by the number of measurements minus the number of fitted parameters, i.e., in this case the slope and intercept.