开始使用免费开始使用

Bonferonni-Holm correction

You've seen that comparing many different datasets, even randomly generated ones, can result in "statistically significant relationships" that are anything but! One way around this is to apply a correction to the alpha of your confidence level. In this exercise you'll explore why you should apply this correction and how to do so.

The 1000 p-values you calculated in the previous exercise have been loaded for you in a NumPy array p_values, as has the package NumPy as np.

本练习是课程的一部分

Foundations of Inference in Python

查看课程

交互式实操练习

通过完成这段示例代码来试试这个练习。

# Compute the Bonferonni-corrected alpha
bonf_alpha = ____

# Check how many p-values were significant at this level
____
编辑并运行代码