Difference between revisions of "FitLine Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
{{command|statistics}}
 
{{command|statistics}}
; FitLine[List of Points]: Calculates the ''y'' on ''x'' regression line of the points.
+
; FitLine[ <List of Points> ]
{{Note| See also [[Image:Tool Fit Line.gif]] [[Best Fit Line Tool|Best Fit Line]] tool and [[FitLineX Command]].}}
+
: 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>}}
 +
==CAS Syntax==
 +
; FitLine[ <List of 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>}}
 +
{{Note|
 +
See also [[Image:Tool Fit Line.gif]] [[Best Fit Line Tool|Best Fit Line]] tool and [[FitLineX Command]].}}

Revision as of 16:48, 26 August 2013



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 Tool Fit Line.gif Best Fit Line tool and FitLineX Command.
© 2024 International GeoGebra Institute