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

Patrick Burns patrick at burns-stat.com
Tue Dec 21 10:37:35 CET 2010


I think there are some practical problems.

The ks.test will test if funds are different.
It doesn't really test if one fund is better
than the other.

For the data that you are likely to have, I
doubt you have much power.  I would try
simulating with some known distributions to
see how much power there is.

On 20/12/2010 21:04, Chiquoine, Ben wrote:
> 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.
>
> 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.
>

-- 
Patrick Burns
patrick at burns-stat.com
http://www.burns-stat.com
http://www.portfolioprobe.com/blog
twitter: @portfolioprobe



More information about the R-SIG-Finance mailing list