Probability distribution
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuesta aceptada
Anton Semechko
el 5 de Feb. de 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 comentarios
Más respuestas (1)
Mate 2u
el 5 de Feb. de 2012
1 comentario
Walter Roberson
el 5 de Feb. de 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
Ver también
Categorías
Más información sobre Hypothesis Tests en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!