/** * Ordinary least squares fit of y = intercept + slope*x over paired samples. Shared by * OrnsteinUhlenbeck.fit() and CoxIngersollRoss.fit() (stage 1 AR(1) regression, and CIR's * stage 2 conditional-variance regression), since both reduce to the same y = a + b*x + eps * form even though the underlying process being estimated differs. * * @param {Array} xs Regressor values. * @param {Array} ys Response values, same length as xs. * @returns {{slope: number, intercept: number}} OLS slope and intercept. * @ignore */ export default function ols(xs: any[], ys: any[]): { slope: number; intercept: number; };