- qspec.analyze.straight_std ( x , sigma_a , sigma_b , corr_ab )[source]
The standard deviation of a
straight$$\sigma_f(x) = \sqrt{\sigma_a^2 + (x\sigma_b)^2 + 2x\sigma_a\sigma_b\rho_{ab}}.$$- Parameters:
-
- xarray_like
The $x$ values.
- sigma_aarray_like
The standard deviation $\sigma_a$ of the y-intercept.
- sigma_barray_like
The standard deviation $\sigma_b$ of the slope.
- corr_abarray_like
The correlation coefficient $\rho_{ab}$ between the slope and the y-intercept.
- Returns:
-
- sigma_fndarray
The standard deviation $\sigma_f$ of a straight line.