How to fit a (left) skewed distribution

조회 수: 64 (최근 30일)
MiauMiau
MiauMiau 2017년 9월 2일
댓글: Image Analyst 2021년 2월 2일
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
Kin Sung Chan
Kin Sung Chan 2020년 4월 23일
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.

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2017년 9월 2일
Try fitting the max value minus your data. In other words, flip your distribution right to left.
  댓글 수: 6
Maria Amr
Maria Amr 2021년 2월 2일
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!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by