Perform a polynomial fit, subtract and return the standard deviation of the residuals.
calc_sd_poly(y, degree = 1)
y
array.
degree
polynomial degree.
standard deviation of the fit residuals.