Probability distribution

1 vue (au cours des 30 derniers jours)
Mate 2u
Mate 2u le 5 Fév 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.

Réponse acceptée

Anton Semechko
Anton Semechko le 5 Fév 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 ...

Plus de réponses (1)

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

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by