Created
March 17, 2019 03:31
-
-
Save JulianaGuama/60b6bc6d327f38a1c30d23edc1e6efde to your computer and use it in GitHub Desktop.
Teste T-Student em Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from scipy.stats import ttest_ind | |
y_pred = [2,3,4,3,5,6] | |
y_real = [5,7,8,8,5,6] | |
t_valor, p_valor = ttest_ind(y_pred, y_real) | |
print(p_valor) | |
#>>> 0.0088828669913688148 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment