Begins a statistics templates block in the preferences file.
*BeginStatsTemplates()Begins a statistics templates block in the preferences file. |
|||||
*BeginStatsTemplates()Begins a statistics templates block in the preferences file. |
Syntax |
*BeginStatsTemplates() |
Example |
*BeginStatsTemplates() *BeginTemplate("Linear Regression") *BeginText() {N = min({numpts(x), numpts(y)}) } {q = sum(x)} {K = {{N, q}, {q, sum(x^2)}}} {L = {sum(y), sum(x*y)}'} {A = inverse(K)*L} Linear Least Squares Regression over the chosen range index {from} -> {to}
y = A * x + B where A = {A[1]} B = {A[0]}
*EndText() *EndTemplate("Linear Regression") *EndStatsTemplates() |
Application |
HyperGraph 2D |
See also |
|