How to fit a (left) skewed distribution

59 visualizaciones (últimos 30 días)
MiauMiau
MiauMiau el 2 de Sept. de 2017
Comentada: Image Analyst el 2 de Feb. de 2021
Hi,
Currently, I am using the following code to fit distributions to my data:
pd = fitdist(mydata,distribution)
x_values = 1:1:26;
y = pdf(pd,x_values);
plot(x_values,y,'LineWidth',2)
However, as far as I can see all the distributions offered by Matlab are either not skewed or right-skewed. Hence my question: Knowing that my data is left-skewed, how could I fit such a distribution to it?
Thanks
  1 comentario
Kin Sung Chan
Kin Sung Chan el 23 de Abr. de 2020
histfit(mydata/max(mydata), 30, 'beta'); % let's say using bin = 30.
However, even though it can produce a fit, the 'beta' requires your data to be within 0 and 1.

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 2 de Sept. de 2017
Try fitting the max value minus your data. In other words, flip your distribution right to left.
  6 comentarios
Maria Amr
Maria Amr el 2 de Feb. de 2021
I have the same problem but my data are right skewed. Would you please direct me how to fit a right skewed distributions? Thank you!

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by