Difference between revisions of "FitLine Command"
From GeoGebra Manual
Noel Lambert (talk | contribs) |
m (Text replace - ";(.*)\[(.*)\]" to ";$1($2)") |
||
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|statistics}} | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|statistics}} | ||
− | ; FitLine | + | ; FitLine( <List of Points> ) |
: Calculates the ''y'' on ''x'' regression line of the points. | : Calculates the ''y'' on ''x'' regression line of the points. | ||
:{{example|1=<div><code><nowiki>FitLine[{(-2, 1), (1, 2), (2, 4), (4, 3), (5, 4)}]</nowiki></code> yields ''0.4x + 2''.</div>}} | :{{example|1=<div><code><nowiki>FitLine[{(-2, 1), (1, 2), (2, 4), (4, 3), (5, 4)}]</nowiki></code> yields ''0.4x + 2''.</div>}} | ||
==CAS Syntax== | ==CAS Syntax== | ||
− | ; FitLine | + | ; FitLine( <List of Points> ) |
: Calculates the ''y'' on ''x'' regression line of the points. | : Calculates the ''y'' on ''x'' regression line of the points. | ||
:{{example|1=<div><code><nowiki>FitLine[{(-2, 1), (1, 2), (2, 4), (4, 3), (5, 4)}]</nowiki></code> yields ''0.4x + 2''.</div>}} | :{{example|1=<div><code><nowiki>FitLine[{(-2, 1), (1, 2), (2, 4), (4, 3), (5, 4)}]</nowiki></code> yields ''0.4x + 2''.</div>}} | ||
{{Note| | {{Note| | ||
See also [[File:Mode fitline.svg|link=|24px]] [[Best Fit Line Tool|Best Fit Line]] tool and [[FitLineX Command]].}} | See also [[File:Mode fitline.svg|link=|24px]] [[Best Fit Line Tool|Best Fit Line]] tool and [[FitLineX Command]].}} |
Revision as of 17:15, 7 October 2017
- FitLine( <List of Points> )
- Calculates the y on x regression line of the points.
- Example:
FitLine[{(-2, 1), (1, 2), (2, 4), (4, 3), (5, 4)}]
yields 0.4x + 2.
CAS Syntax
- FitLine( <List of Points> )
- Calculates the y on x regression line of the points.
- Example:
FitLine[{(-2, 1), (1, 2), (2, 4), (4, 3), (5, 4)}]
yields 0.4x + 2.
Note: See also Best Fit Line tool and FitLineX Command.