Skip to content
DeepForgeby svx
All problems
EasyStatisticsst-372

Bonferroni Adjusted Alpha

Problem

The Bonferroni correction divides the family-wise alpha by the number of tests m.

Given alpha and m > 0, return the adjusted per-test alpha.

Hint

It controls the family-wise error rate conservatively.

Test cases

case 1
in: [0.05,10]
expected: 0.005
case 2
in: [0.01,5]
expected: 0.002
case 3
in: [0.1,1]
expected: 0.1
Starter codePython
def bonferroni_adjusted_alpha(alpha, m):
    # Your code here
    pass

3 test cases · run your code against them in the editor