[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] correlation error?



PureBytes Links

Trading Reference Links




Hi Tomasz and Everyone,
 
I wrote a little AFL to show correlation between a stock and 
its industry group, but the correlation function seems to be returning strange 
results in some cases.
 
The 1st picture shows the code and the top of the results 
list, sorted by correlation. My questions are:
 
1) Why does correlation return result > 1? (please see 1st 
row)
2) Why do some stocks return strange symbol? 
(1.#J)
 
2nd picture (middle of the list)  shows that some stocks 
seem to work ok, and also *maybe* implies that symbols with 1.#J also have 
correlation > 1?
 
3rd picture (bottom of the list) *maybe* implies that 
some stocks have correlation < -1?
 
Thanks very much for any help!
 
Steve






Yahoo! Groups Sponsor


  ADVERTISEMENT 









Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



Attachment:
screenshot1.gif
Description: GIF image
Attachment:
screenshot2.gif
Description: GIF image

Attachment: Description: "Description: GIF image"

Attachment: Description: "screenshot3.gif"

Attachment: Description: "Attachment:"