Probability distribution

3 views (last 30 days)
Mate 2u
Mate 2u on 5 Feb 2012
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.

Accepted Answer

Anton Semechko
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 ...

More Answers (1)

Mate 2u
Mate 2u on 5 Feb 2012
Does anybody else know how I can test what probability distribution a set of data belongs too?
Best wishes,
  1 Comment
Walter Roberson
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

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!