Probability distribution
1 view (last 30 days)
Show older comments
Hi there, I have a series of 1277 daily returns on a asset. I want to see what distribution these returns follow (Eg, Levy, Normal). Does anybody know how I can show which distribution it is??
I look forward to a reply.
0 Comments
Accepted Answer
Anton Semechko
on 5 Feb 2012
If you have a univariate data then you can test it for normality using Anderson-Daarling test [1] or Kolmogorv-Smirnov test [2].
[1] http://www.mathworks.com/matlabcentral/fileexchange/14807-andartest ... you will have to modify the code slightly to get the p-value
[2] implemented as 'kstest' function in Statistics Toolbox
Unfortunately, I am not familiar with other tests to see if the data was drawn from other types of distributions ...
0 Comments
More Answers (1)
Mate 2u
on 5 Feb 2012
1 Comment
Walter Roberson
on 5 Feb 2012
There is no general mechanism, especially as some probability distributions are special cases of other distributions.
The situation is essentially the same as curve fitting: you can try a bunch of possibilities and find the one that gives the best fit, but that doesn't mean that you have *the* answer, just that you found the best out of what you tested.
To test any one distribution, see kstest2
http://www.mathworks.com/help/toolbox/stats/kstest2.html
See Also
Categories
Find more on Hypothesis Tests in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!