Difference between revisions of "Spearman 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}} | ||
− | ;Spearman | + | ;Spearman( <List of Points> ) |
:Returns [[w:Spearman's rank correlation coefficient|Spearman's rank correlation coefficient]] of x-coordinates and y-coordinates of points of a list. | :Returns [[w:Spearman's rank correlation coefficient|Spearman's rank correlation coefficient]] of x-coordinates and y-coordinates of points of a list. | ||
:{{Example|1=Let <code><nowiki>list = { (-3, 4), (-1, 4), (-2, 3), (1, 3), (2, 2), (1, 5) }</nowiki></code> be a list of points. <code><nowiki>Spearman[ list ]</nowiki></code> yields ''a = -0.37''.}} | :{{Example|1=Let <code><nowiki>list = { (-3, 4), (-1, 4), (-2, 3), (1, 3), (2, 2), (1, 5) }</nowiki></code> be a list of points. <code><nowiki>Spearman[ list ]</nowiki></code> yields ''a = -0.37''.}} | ||
− | ;Spearman | + | ;Spearman( <List of Numbers>, <List of Numbers> ) |
:Returns Spearman's rank correlation coefficient of two lists. | :Returns Spearman's rank correlation coefficient of two lists. | ||
:{{Example|1=Let <code><nowiki>list1 = {3, 2, 4, 5, 1, 6, 8, 9}</nowiki></code> and <code><nowiki>list2 = {5, 6, 8, 2, 1, 3, 4, 7}</nowiki></code> be two lists. <code><nowiki>Spearman[ list1, list2 ]</nowiki></code> yields ''a = 0.24''.}} | :{{Example|1=Let <code><nowiki>list1 = {3, 2, 4, 5, 1, 6, 8, 9}</nowiki></code> and <code><nowiki>list2 = {5, 6, 8, 2, 1, 3, 4, 7}</nowiki></code> be two lists. <code><nowiki>Spearman[ list1, list2 ]</nowiki></code> yields ''a = 0.24''.}} |
Revision as of 17:16, 7 October 2017
- Spearman( <List of Points> )
- Returns Spearman's rank correlation coefficient of x-coordinates and y-coordinates of points of a list.
- Example: Let
list = { (-3, 4), (-1, 4), (-2, 3), (1, 3), (2, 2), (1, 5) }
be a list of points.Spearman[ list ]
yields a = -0.37.
- Spearman( <List of Numbers>, <List of Numbers> )
- Returns Spearman's rank correlation coefficient of two lists.
- Example: Let
list1 = {3, 2, 4, 5, 1, 6, 8, 9}
andlist2 = {5, 6, 8, 2, 1, 3, 4, 7}
be two lists.Spearman[ list1, list2 ]
yields a = 0.24.