简体   繁体   中英

How do scipy.stats.<distribution>.fit methods work?

How do distribution fitness-tests, ex. scipy.stats.norm.fit work? Investigation of scipy source code led me to rv_continuous.fit method, but it looks like beating the air. What algorithms are used, Pearson's chi-squared test or some other ones?

UPD As I understood optimization algorithm inside fit finds maximum likelihood estimation. But for example for scipy.stats.norm , maximum likelihood is well-known - it is sample mean for normal mean and square root from sample variance - for sigma. Why it isn't calculated direclty?

rv_continuous.fit似乎在做的所有事情都是使用下坡单纯形算法optimize类中以fmin开头的各种函数的包装方法。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM