Linear Fit

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

Line fit: intercept 1.0, slope 2.0

Output generated from source revision f7da56fe45. Download the output.

Let an agent build from this example

Copy this prompt into your Lead's terminal to ask an agent to complete a related task:

Analyze a small seeded data set with lmr, verify a concrete statistical
result, and report the LMScript source and checks. Use the lmr API and
the Linear Fit example below. Report the source, output, and
verification.
LMScript DSL: https://lmctl.com/tools/lmscript/skill.html
lmr API: https://lmctl.com/tools/lmr/guide.html
Linear Fit example:
https://lmctl.com/tools/lmr/examples/linear-fit.html

Run the example

lmctl autorun https://lmctl.com/tools/lmr/examples/linear-fit.lms

Read the autorun source. Also see Normal quantile example. See get started with provider runs.

Source from the project

The original example is linear-fit.lms at f7da56fe45. The published autorun source includes the host declaration and any setup needed to run it from a new directory.