Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, ozgur, AbrahamR, wdlmaster), 849 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
The sense of Spearman is reversed #449642
03/27/15 06:21
03/27/15 06:21
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
Zorro's Spearman returns high values when input series is steadily decreasing and low values when input series is steadily increasing. Someone implemented it backwards. I think it's because series index is in reverse order.

The correct implementation is something like
Code:
var d = ((Period - Idx[g_count] - 1) - g_count);
sum += d * d;


Re: The sense of Spearman is reversed [Re: GPEngine] #449673
03/28/15 03:09
03/28/15 03:09
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
Alternatively you could implement sortIdx(..., reverse=true)

Re: The sense of Spearman is reversed [Re: GPEngine] #449771
03/31/15 08:01
03/31/15 08:01
Joined: Apr 2014
Posts: 482
Sydney, Australia
B
boatman Offline
Senior Member
boatman  Offline
Senior Member
B

Joined: Apr 2014
Posts: 482
Sydney, Australia
That's really good to know GP! +1 for fixing this in the next release, or updating the manual to reflect.

Re: The sense of Spearman is reversed [Re: boatman] #449774
03/31/15 09:15
03/31/15 09:15
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Thanks for the info!


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1