gpt4 book ai didi

perl - 如果我有 t 统计量和 d.f.,我如何计算 p 值? (在 Perl 中)?

转载 作者:行者123 更新时间:2023-12-04 18:16:00 26 4
gpt4 key购买 nike

我编写了一个 Perl 脚本来执行许多单样本 t 检验。我得到了数千个带有自由度 (df) 的 t 统计量。我需要升级脚本以返回它们的 p 值(在表格中手动查找它们太多了)。是否有某种公式可以用于将 t-statistic 和 d.f 作为输入?我希望有人能帮助我解决这个问题,非常感谢!

互诫协会

最佳答案

使用 Statistics::Distributions看起来很简单:

print Statistics::Distributions::tprob($dof,$tstat);

关于perl - 如果我有 t 统计量和 d.f.,我如何计算 p 值? (在 Perl 中)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/823177/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com