statsmodels.emplike.descriptive.DescStatUV.test_mean¶ DescStatUV.test_mean(mu0, return_weights=False)[source]¶ 返回 - 2倍对数似然比、p值和权重 用于均值假设检验。 Parameters:¶ mu0float要测试的平均值 return_weightsbool如果 return_weights 为 True,函数将返回在零假设下观测值的权重。默认值为 False Returns:¶ test_resultstuple对数似然比和 mu0 的 p 值 Last update: Oct 16, 2024