Least Squares Line
Fit a straight line and check its intercept and slope. This page includes a preview and an autorun-ready lmscript source file.

Let an agent build from this example
Copy this prompt into your Lead's terminal to ask an agent to complete a related task:
Fit a straight line to a small deterministic dataset with lmpy. Check
the coefficients against their known values and report the source and
verified output. Use the lmpy API and the Least Squares Line example
below. Report the source, output, and verification.
LMScript DSL: https://lmctl.com/tools/lmscript/skill.html
lmpy API: https://lmctl.com/tools/lmpy/guide.html
Least Squares Line example:
https://lmctl.com/tools/lmpy/examples/least-squares-line.html
Run the example
lmctl autorun \
https://lmctl.com/tools/lmpy/examples/least-squares-line.lms
Read the autorun source. Also see Normal quantile example. See get started with provider runs.
Source from the project
The original example is book/least-squares-line.lms at a23339e18b. The published autorun source includes the host declaration and any setup needed to run it from a new directory.