Skip to content

Instantly share code, notes, and snippets.

@JulianaGuama
Created March 17, 2019 03:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JulianaGuama/60b6bc6d327f38a1c30d23edc1e6efde to your computer and use it in GitHub Desktop.
Save JulianaGuama/60b6bc6d327f38a1c30d23edc1e6efde to your computer and use it in GitHub Desktop.
Teste T-Student em Python
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