Začněte nyníZačněte zdarma

Fisher's method in SciPy

Suppose you read five different papers on the role of a healthy diet on cancer diagnoses, with reported p-values loaded in the list p_values = [0.04, 0.13, 0.001, 0.09, 0.01]. In each case the papers are all assessing the null hypothesis that healthy diet has no relationship on cancer diagnosis, while the alternative is that there is a relationship.

Use these p-values in Fisher's method using SciPy.

The package stats from SciPy have been loaded for you.

Toto cvičení je součástí kurzu

Foundations of Inference in Python

Zobrazit kurz

Interaktivní cvičení na vyzkoušení si v praxi

Vyzkoušejte si toto cvičení dokončením tohoto ukázkového kódu.

# Compute the combined p-value and the p-value for this test
test_statistic, p_value = ____

# Print out the p-value for the test
____('Test p-value = ', ____)

# Print out if the p-value is signifcant at 5%
____
Upravit a spustit kód