[R-SIG-Finance] ks test to compare manager alphas.

mat matthieu.stigler at gmail.com
Mon Dec 20 22:17:00 CET 2010


Le 20. 12. 10 22:04, Chiquoine, Ben a écrit :
> Hi,
>
> I've recently discovered ks.test() in the stats package.  I'd like to apply it to alphas generated by hedge fund managers. I have several years of monthly excess returns for each manager and I'd like to see which come from distributions that are not statistically different.  I have two questions for the group.  The first question is whether the KS test is valid for two returns series which are likely not iid?  I think I read that as long as the difference in empirical distributions functions (ecdf) is iid from the true distribution (which I don't know) the test is valid.  My second question is more focused on R.  ks.test gives me the source code for the R function but there are several calls to C code within the function.  I'm wondering if there is any way to view the source for the C functions?  I've searched R help for an answer to this less finance related question but only found one post in which they said the source could be found in a file called ks.c.  Unfortunately I!
>    can't find this file on my hard drive or on the web.  Any help this group can offer is greatly appreciated.
you are most likely to find the file you search downloading the sources:
http://stat.ethz.ch/CRAN/sources.html
then (at least in R 2.9 sources)
src/library/stats/src

> Thanks,
>
> Ben
>
> ___________________________________________
> This message and any attached documents contain
> information which may be confidential, subject to
> privilege or exempt from disclosure under applicable
> law. These materials are solely for the use of the
> intended recipient. If you are not the intended
> recipient of this transmission, you are hereby
> notified that any distribution, disclosure, printing,
> copying, storage, modification or the taking of any
> action in reliance upon this transmission is strictly
> prohibited. Delivery of this message to any person
> other than the intended recipient shall not
> compromise or waive such confidentiality, privilege
> or exemption from disclosure as to this
> communication.
>
> If you have received this communication in error,
> please notify the sender immediately and delete
> this message from your system.
>
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Finance at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions should go.



More information about the R-SIG-Finance mailing list