Hey Jeff Miller, I excluded the zeros in the doc("original_data") and then I fitted the weibull distribution to the non zero terms. How do I "After you do this, you should verify that the fitted parameters predict about the right proportion of values below the truncation point (i.e., comparable to the percentage of zeros in your original data)."
how to develop a zero inflated weibull distribution in matlab
조회 수: 6 (최근 30일)
이전 댓글 표시
Hey, I am trying to fit a weibull distribution to my dataset which consist of hourly wind speed. However when i plot my pdf, it is clear that there is an excessive amount of zeros within the data. This maybe since the value may have been too small to record. Does anyone have any idea how to handle zero inflation on a dataset or how to fit a zero inflated weibull distribution?
채택된 답변
Jeff Miller
2018년 4월 1일
1. You might replace the zeros with some small nonzero value (e.g., half-way between 0 and the smallest value that can be recorded).
2. Exclude the zeros and fit a truncated Weibull to the remaining data (with a lower truncation point being the smallest value that can be recorded). After you do this, you should verify that the fitted parameters predict about the right proportion of values below the truncation point (i.e., comparable to the percentage of zeros in your original data).
댓글 수: 1
John D'Errico
2018년 4월 1일
I'd think of this as sort of a mixture distribution.
Thus, with probability p, you have a sample from a discrete distribution that always takes on the value zero. With probability 1-p, you have a sample from a Weibull. You can estimate p from the number of samples that were exactly zero, because the Weibull will never yield exactly zero. Or, you can do a bit better and estimate p, along with the Weibull parameters using MLE to fit that mixture distribution.
추가 답변 (1개)
Vitaly Kheyfets
2018년 5월 8일
I am not sure your original dataset would be considered zero-inflated. Yes, it has some zeros, but if you consider the zero as just another measurement, then the data still appears (roughly) normally distributed.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Exploration and Visualization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!