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 )
(* If you work with big/small numbers, you should consider normalizing them for a more accurate result, see Normalize Command.)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|statistics}}
{{command|statistics}}
+
; FitLine( &lt;List of Points> )
; FitLine[List of Points]: Calculates the ''y'' on ''x'' regression line of the points.
+
: Calculates the ''y'' on ''x'' regression line of the points.
{{Note| See also [[Image:Tool Fit Line.gif]] [[Best Fit Line Tool|Best Fit Line]] tool and [[FitLineX Command]].}}
+
:{{example|1=<code><nowiki>FitLine({(-2, 1), (1, 2), (2, 4), (4, 3), (5, 4)})</nowiki></code> yields ''0.4x + 2''.}}
 +
==CAS Syntax==
 +
; FitLine( &lt;List of Points> )
 +
: Calculates the ''y'' on ''x'' regression line of the points.
 +
:{{example|1=<code><nowiki>FitLine({(-2, 1), (1, 2), (2, 4), (4, 3), (5, 4)})</nowiki></code> yields ''0.4x + 2''.}}
 +
 
 +
{{note| 1=<div>
 +
*See also[[File:Mode fitline.svg|link=|24px]] [[Best Fit Line Tool|Best Fit Line]] tool and [[FitLineX Command]]
 +
* If you work with big/small numbers, you should consider normalizing them for a more accurate result, see  [[Normalize Command]].
 +
</div>}}

Latest revision as of 11:44, 4 February 2019


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:
© 2024 International GeoGebra Institute