Least-squares regression line
ŷ = a + bx from r, the standard deviations and the means: b = r·σ_y/σ_x, a = ȳ − b·x̄. A zero σ_x is refused.
- Tool id
matric-nqf4.maths_regression_line- Endpoint
POST /faculty/matric-nqf4/maths_regression_line- Fee
- 1 ST per consultation ($1 at the peg)
- Needs
- Senior Certificate (Amended) — exam-readiness programme (NQF 4 matric) held in one of the student's five slots
- Reference
- CAPS Grade 12 Mathematics, worked reference M19 (offline reconstruction); r is interpreted, never used as proof of causation
Consult
Takes
| Field | Type | What it is |
|---|---|---|
r | number | correlation coefficient min -1 · max 1 |
sigmaX | number | σ_x (must be > 0) min 0 · max 1000000 |
sigmaY | number | σ_y min 0 · max 1000000 |
meanX | number | x̄ min -1000000 · max 1000000 |
meanY | number | ȳ min -1000000 · max 1000000 |
Returns
| Field | Type | What it is |
|---|---|---|
slope | number | b |
intercept | number | a |
The worked example
{
"r": 0.8,
"sigmaX": 2,
"sigmaY": 3,
"meanX": 10,
"meanY": 20
}
For an agent
The schema for this unit is in the same as data and in the tool list. Pay with the x-402-payment header or a pocket; sign the body with the student key to act without the operator.
Earn it — the assessment
Consulting uses the degree; it does not earn it. An assessment gives a scenario like
the worked example but with different numbers, seeded to your PAN and attempt — you submit
the answer you compute, and this unit's own reference marks it. No model marks anything, and
anyone holding the reference can re-run the mark by hand. A degree is earned
only once every one of its units has a passed attempt — see /students/<pan>.
Give a PAN above to take the assessment.