How to determine the parameters of statistical distributions
5 次查看(过去 30 天)
显示 更早的评论
Hey, I have a dataset which consist of hourly wind speed points. I would like to know ho to use the "mle" command to determine the estimates for the parameters of a weibull, rayleigh, gamma and chi-square distribution?
0 个评论
采纳的回答
Star Strider
2018-3-26
5 个评论
Star Strider
2018-3-26
I usually substitute a very small scalar for zero entries, usually 1E-7, 1E-8 (essentially sqrt(eps)) or something in that range. I choose the magnitude so that squaring it remains a very small scalar, rather than zero, since zero could result in non-finite results. That also does not (in my experience at least) significantly affect the estimated distribution parameters.
However it could affect the parameter values if the rest of your data have very small amplitudes as well. The only solution for that might be to do your calculations in the Symbolic Math Toolbox, where extended precision is allowed. Then you could use an even smaller symbolic scalar to substitute for zero values.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!