This site is version 0.0.1. Most of the code on this site is drafted by an agent and needs review. I apologize for the AI-speak, we are working on rewriting it!
viv-lang.org

Notebooks · lib/stats/lens/nist_digits

NIST's certified linear regressions under the digits lens

Fits one NIST StRD linear least-squares dataset (lib/stats/data/) with the solver slot of lib/stats/linmod.viv and prints the coefficients, for viv digits to perturb:

viv digits --set 'DATASET="Longley"' --set METHOD=0 lib/stats/lens/nist_digits.viv

METHOD 0 is pivoted QR with Bjorck's refinement, 1 the same QR without it, 2 the normal equations by Cholesky. The model is NIST's: Longley's six predictors and an intercept, a polynomial in x of degree DEGREE otherwise (10 for Filip, 5 for Wampler1-5).

Used as a program.

Look inside this program

  • Atlas

    The program’s map: every function and which calls which.

  • There’s no recorded run of this program yet.

Shift+Enter in a cell runs it and moves to the next. Running a cell runs every cell above it too, as one program.

[1]lines 19–72