拟合伽马分布

2024-07-05 12:26:37 发布

您现在位置:Python中文网/ 问答频道 /正文

我的家庭作业有以下问题。到目前为止,我已经计算了平均值和标准差,为平均值和密度拟合创建了直方图。不幸的是,我不知道如何解决伽马分布的问题。如何将Gamma分布拟合到直方图?我是Python新手,非常感谢大家的支持。你知道吗

另外,我们正在研究标准普尔股票的回报率。你知道吗

Compute the averages and standard deviations for each stock. Properly treat any missing values. Plot a frequency histogram for the averages with a density fit. Add a fit based on normal distribution. Do the same for the standard deviations, but
use a fit to gamma distribution.

Tags: thefor标准直方图standarddistributionfit密度