How can I calculate the Pearson's r coefficient in Maple?

Printable View

- Apr 22nd 2010, 04:15 PMdwsmithMaple
How can I calculate the Pearson's r coefficient in Maple?

- Apr 22nd 2010, 06:12 PMDeadstar
http://img532.imageshack.us/img532/4122/sadfghfds.jpg

So long as you define the samples as X := [...] and Y := [...] that should work.

Just did it of the top of my head so I'm sure there's a better way but that should work. (May wanna check it against known values though).

Also ignore the standard maple error... -0.9999999997 = -1 basically. - Apr 22nd 2010, 06:29 PMdwsmith
This what happened when I attempted the calling procedure.

> Pearson:=proc(A,B):

print(`output redirected...`); # input placeholder

Error, unterminated procedure - Apr 22nd 2010, 06:48 PMdwsmith
[IMG]file:///C:/Users/Dustin/AppData/Local/Temp/moz-screenshot.png[/IMG][IMG]file:///C:/Users/Dustin/AppData/Local/Temp/moz-screenshot-1.png[/IMG][IMG]file:///C:/Users/Dustin/AppData/Local/Temp/moz-screenshot-2.png[/IMG][IMG]file:///C:/Users/Dustin/AppData/Local/Temp/moz-screenshot-3.png[/IMG]

Here is a picture of what happened - Apr 22nd 2010, 07:14 PMdwsmith
Never mind I have it under control now.