MR t-test
MR t-test
Dr Lila Simon
T- Test
A t-test is a statistical test that is used to compare the means of two groups.
It is often used in hypothesis testing to determine whether a process or treatment
actually has an effect on the population of interest, or whether two groups are
different from one another.
https://online.stat.psu.edu/statprogram/reviews/statistical-concepts/hypothesis-test
ing/examples
https://online.stat.psu.edu/statprogram/reviews/statistical-concepts/hypothesis-test
ing/examples
https://online.stat.psu.edu/statprogram/reviews/statistical-concepts/hypothesis-test
ing/examples
Two-tailed test One-tailed test One-tailed test
https://www.youtube.com/watch?v=pTmLQvMM-1M
When to use a t-test
A t-test can only be used when comparing the means of two groups (a.k.a.
pairwise comparison). If you want to compare more than two groups, or if you
want to do multiple pairwise comparisons, use an ANOVA test
t-test
The t-test is a parametric test of difference, meaning that it makes the same
assumptions about your data as other parametric tests. The t-test assumes your
data:
● are independent
● are (approximately) normally distributed.
● have a similar amount of variance within each group being compared (a.k.a.
homogeneity of variance)
One-sample, two-sample, or paired t-test
If the groups come from a single population (e.g. measuring before and after an
experimental treatment), perform a paired t-test.
If the groups come from two different populations (e.g. two different species, or
people from two separate cities), perform a two-sample t-test (a.k.a. independent
t-test).
If there is one group being compared against a standard value (e.g. comparing the
acidity of a liquid to a neutral pH of 7), perform a one-sample t-test.
One-tailed or two-tailed t-test
If you only care whether the two populations are different from one another,
perform a two-tailed t-test.
If you want to know whether one population mean is greater than or less than the
other, perform a one-tailed t-test.
T-test formula
The formula for the two-sample t-test ( the Student’s t-test) is shown below.
In this formula, t is the t-value, x1 and x2 are the means of the two groups being compared, s2 is
the pooled standard error of the two groups, and n1 and n2 are the number of observations in
each of the groups.
A larger t-value shows that the difference between group means is greater than the pooled
standard error, indicating a more significant difference between the groups.
Conclusions
A large t-score tells you that the groups are different.