D07-F07-A05 · LEVEL 2 GUIDED LAB · SYNTHETIC DATA

Regression Channel

How far does price deviate from a rolling linear trend after residual scaling? Walk the evidence clock one stage at a time. This lab teaches the publication contract; it does not simulate returns, platform parity, or trade performance.

Selected expression

fit a+b i over n; center_i=a+b i; bands=center_i +/- k*residual_stdev

Availability rule

An output at t may use only finite, basis-consistent observations available through t; chart alignment never moves the information clock backward.

calculated · step 1 of 7

Verified synthetic fixture

This lab is paired with datasets/implementation-fixtures.json: 96 deterministic, oldest-to-newest observations spanning oscillating, rising, and moderating regimes. It is teaching data—not market history or predictive evidence.

Canonical latest output (D07-F07-A05)
{
  "center": 103.97453763199998,
  "upper": 108.29510693120406,
  "lower": 99.6539683327959
}

Executable checks cover this result, flat/zero-volume boundaries, invalid timestamps, and prefix causality in both language entry points.