Linear and multiple regression by QR, with pointwise bands, version 1.0.1
linear-regression-qr@1.0.1: this version's equations with their symbols, each constant's value, their sources and whether each was read, a worked example where the record holds one, its level and what it was checked against, the number of cases, and what was not checked. This version's record is not rewritten; a correction is added under Changes.
What this page can and cannot show
Level: Checked against a reference. Reference kind: not recorded. This level uses the apps' wider definition on the levels page.
Not fully recorded, and not independently reviewed. Items marked "Not recorded" are missing from this project's records for the version named. Apart from any worked example shown, the cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed these methods or checks.
Every version of this method · Every method · What the levels mean
Version 1.0.1
Level: Checked against a reference. Reference kind: not recorded. This level uses the apps' wider definition on the levels page. linear-regression-qr@1.0.1
What this page can and cannot show
What was checked
Checked against R 4.4.3 (lm, summary.lm, confint, predict.lm, hatvalues, rstandard, cooks.distance, car 3.1-5 vif and the lack-of-fit anova) on the 27 regression cases of the 0.11.0 fixture (21 simple, 6 multiple; 2 ill-conditioned cases against exact rational least squares): coefficients, standard errors, t, bounds, R², the residual SD, hat values, standardised residuals, Cook's distance, VIF, the bands and the lack-of-fit F within 1e-9 relative, p within 1e-8 relative, refusals, aliased predictors and withheld states exact; SciPy 1.13.1 linregress agrees on all 19 slopes it computes (2026-10-13).
Cases: no case set is linked to linear-regression-qr@1.0.1.
Not yet recorded for this version
- Equation: not recorded for linear-regression-qr@1.0.1.
- Constants: not recorded for linear-regression-qr@1.0.1.
- Worked example: not recorded for linear-regression-qr@1.0.1.
- Prediction error: not recorded.
What was not checked
What was not checked: not recorded for linear-regression-qr@1.0.1. Its absence does not mean everything was checked.
Changes
2026-11-21-linear-regression-qr@1.0.1-1
2026-11-21 · linear-regression-qr@1.0.1 · Corrections to our methods
- What was wrong: The regression was fitted on the values as typed. Where X or Y was near 1e±160 or beyond, sums of squares, cross-products and Householder norms overflowed or underflowed: with X scaled by 1e-200 the intercept came out -0.385 (SE 0.876) where it is 0.0357 (SE 0.140); a fit through the origin at 1e-160 gave the slope t 0 and p 1 where t is 98.8; a multiple regression at 1e160 was refused as RANK_DEFICIENT; and at 1e160 the bands, leverages and diagnostics came out empty.
- Affected: relate_linear_regression and the Assay app's linear and multiple regression in version 1.0.0, only where a column's centred values or Y's were above about 1e154 or below about 1e-154 in absolute value. Every input whose arithmetic stayed in range gives the same bits as before: 1,000 seeded realistic calls of each of the four tools compared bit for bit against the previous engine, and the engines' oracle fixture tests unchanged.
- What changed: In 1.0.1 each X column and Y are divided by a power of two near their own largest absolute value before the fit, and every value reported in a unit is multiplied back (an intercept, SE, bound, σ, fitted value, residual and band by Y's power; a slope by Y's over its X's). t, p, R², F, VIF and leverage are unchanged by a positive scale of any column and a power of two scales a double exactly, so only inputs that overflowed or underflowed move: every probe case at 1e±160 and 1e±200 now gives the unscaled reply. A fit whose reported value cannot be represented (a slope of 1e400, say) is refused as BEYOND_DOUBLE_RANGE, and the lack-of-fit test is withheld so where its pure-error sum of squares cannot be.
- How it was found: An audit replay of the served tools at extreme finite inputs (probes through the tool handlers), repeated on 21 November 2026 by stored reference values with the data scaled by 1e±160 and 1e±200, shifted by 1000 and not, against the reply on the unscaled data; the scientific review's ruling of 18 November 2026 said what clears it. Reproduced by unit tests that failed before the fix.
- Cases added: stored reference values: the probe's six regression cases (X and Y, Y, X, replicates with lack of fit, through the origin, multiple) through the tool at 1e±160 and 1e±200, shifted and not; X at 1e-200 giving the unscaled intercept; a slope beyond the range refused and a pure-error sum of squares beyond it withheld as BEYOND_DOUBLE_RANGE; every number moved exactly by the power at 2^±100 and 2^±400.
Tools that use it
Cite this version
Linear and multiple regression by QR, with pointwise bands. Drybench; linear-regression-qr@1.0.1; https://www.drybench.com/methods/m/linear-regression-qr/1.0.1 (accessed [date]).