How do I perform a t-test in Python?
#*-* coding: utf-8 *-* from __future__ import division from scipy import stats import numpy as np x=([ 0.01082045 0.00225922 0.00022592 0.00011891 0.00525565 0.00156956]) y=([ 0.0096333 0.0019453 0.0038384 0.0058286 0.00078786]) ttest=stats.ttest_ind(x,y) print 't-test independent', ttest
I get two numbers out:
t-test independent (array(1.5061708454111165), 0.1662878376677496)
I don't know what they mean. Could you maybe help me?
I have one row of samples. And this row of samples had to be analyzed with two different measure methods. I had to make a t-test on the two data sets afterwards. I chose an independent t-test.
But I have trouble to figure out what the two numbers I got out actually means? According to Wikipedia I just have to get a t-value out. According to Python I get a p-value out? Please help me! Is it the first number I get out I should use? And what does it tell me?
Thank you very much for help!