Lecture 7: T-Tests Flashcards
T-Tests
* A stastical ratio used to compare 2 group means
* tells us if the two groups of data are statistically different or is there a chance that the two groups are not statistically different from one another
X bar = the mean of the group
What is another name for an independent T-Test?
* What is it?
Unpaired T-Test
Means that the two groups of data being used are different (isnt the same group being tested twice
So in the picture below group 1 would be 4 different people and group 2 would be four different people
However, if it was the same group of people being tested twice (think anatomy score vs physiology score) than it would be considred a paired T-Test
* Because for each person there is a pair of data
A statistical ratio used to compare 2 group means dividuded by variability within groups
T-Test
Variability = the variation between scores within 1 group (so in group one its the variabition between 91, 100, 98, 100).
X bar = the mean for each group
A T Test would be the difference between means / Variability within groups
Does A t test take variance into consideration?
Yes, it looks at how variable each data set is
Homogeneity is assumed w/ in t-tests. What does that mean?
Variability in data is similar (you can’t have one group thats extremely variable and another group that has almost no variability)
Is the variability between these two data sets similar or different?
* Is it low or high vairability?
Similar
* The curves look the same
Low variability
* the curve is smooshed together, meaning all the data points fall close to the mean = decreased vairability
Which groups have a larger variability B or C?
C
* The wider it is = more variability
There is more variability within each data set in C because the curves are wider, meaning the points in each curve fall on average further from the mean than in B
NOTE In B each of the two graphs (orange and blue) have about the same width. Its the same thing for C (both orange and blue have about the same width). Meaning within B and within C a t-test would work well, beacuse for a t-test we want both graphs to have similar variable
* NOTE: I am not saying the variability between C and B is the same, im saying within each graph (B and C) the two data sets graphed have similar variability = same variabce = good for a t-test
This is what no variability within the groups looks like. If everyone got the same socre in each group you can see no deviation from the mean
* So we can obviously tell that there is a significiant difference between groups
Why would a t-test not be great here?
No t-test here because the variability between the two curves is very different. In T-Tests we want roughly equal variability between data sets
KNOW: When the variability is very different between curves theres a different kind of T-test we use
Here theres a small difference, the means are pretty close together
but theres a bigger difference in variance between the two. Which according the the equation below will lower our T value
T = Small difference / Large variance std deviation
* Small # over big number = small T
Theres tons of overlap = not a significant difference between the two groups = Small T
* So theres a small chance they’re actaully statistically different
Small variance between groups
Larger Difference in means
t = large difference/small variance std deviation = Big T value
Theres only a small amount of overlap, meaning theres a significant difference between the two (which is why we we got a small T)
A Large T or Small T value = A bigger difference between the two groups?
The bigger T is the bigger the difference between the two data sets
To do the T-Test we use the equation Difference between means / Variability within groups
Means: 20-10 = 10
Variance: 3-37?
10/34 = .29
T-Test yields a small value of .29
* which means theres not much staitstical difference
To find T we use the equaltion difference between means/Variability within groups
9-5/12-7? = .8
NOTE: this is a bigger T value = more statistical significant difference
* Makes sense, theres not much overlap
A t-test assumes similar variability between the two groups. Below you can see that the means are the exact same, however, the variance is not even close to the same between the two groups. This data set would not be a good canidate for a normal t-test
* A normal T-test assumes homogeneity (variation is similar)
This is a limiation of the t-test because it would assume the groups are the exact same, however, we can see that they clearly are not due to the variation
When a t-test is performed, a test of homogeneity of variance is performed
* meaning, they take the variance of one group, and comapre it to the variance of the other group and see if theres a stasticially difference between the two groups varibility
This is looking at an independent/unpaired T-Test (meaning there are two seperate groups of people, groups are considered independent, subjects are different in each group). I.e., treatment vs contorl group.
X bar = the mean of each group
Sxbar = standard error of the difference between the means = whats the difference in the variability (difference in variability of one group vs the other group)
* Also can just consider this the pooled variance (what the variance is overall)
This is still talking about the Independent T-Test from the slide prior
This is looking at two different groups. One group is using the newly developed splint while the other is using the standard splint.
The two measures that we are going to compare is the total chance in grip strength (so the two final measurs of each group)
n = # of people in each group
New splint = gained on average 10.1100 pounds of grip strength
Standard = 5.4500 pounds of grip strength gained
Mean difference between the groups = 4.66 (10.1100-5.4500)
* So we want to know if this is truely significant or just due to chance
We assume equal variance between were doing a T-test
we find that t = 2.718. This doesnt mean much, we don’t know if this is large enough to be significant
So in our splint example we are going to do a 2 tailed t test because its nondirectional. Meaning, we don’t know if the new splint group is going to get more strength gains or go down in strength gains. We just don’t know what that realtionship is going to look like
dont memorize these
she wants us to understand how the variance is pooled together
* Know its pooled between the two groups
above we found that the t-value was 2.718
* However, this doesnt have much meaning to use alone
* We need to compare the T-value to the critical value to find meaning
Critical value: A value set based on a pre-specified level of significance (a) (0.05 typically)
* Compare t to the critical value to determine significance
* Can be done for 1-tailed and 2 tailed t tests
One tailed t test vs 2 tailed t test
1 tailed t test - less common - have to prove without a shadow of a doubt it can only go 1 direction
* Purpose is to test for the possibility of the relationship in one direction
* The null hypothesis H0 states that there is no effect or difference, while the alterantive hypothesis states that there is a difference in a specific direction (greater or lass than)
* EX: H0: μ1 = μ2 (no difference) vs. H1: μ1 > μ2 (group 1 mean is greater than group 2 mean).
* Use case: Use a one-tailed test when you have a specific prediction about the direction of the effect and are sure its not going to go the other way
Two tailed T-Test
* Purpose: Tests for the possibility of the relationship in both directions
* Hypothesis: The null hypothesis H0 remains the same, but the alternative hypothesis states that there is a difference, without specifying a direction
* Example: H0: μ1 = μ2 (no difference) vs. H1: μ1 ≠ μ2 (group 1 mean is different from group 2 mean).
* Use case: use a two-tailed t test when you want to determine if there is any difference, regardless of the direction
Key differences:
* One tailed t-test is directional, while two-tailed is non directionalA significant result in a one tailed test confirms the hypothesis in one direction, whereas a significant result in a two tailed test indicates a difference, but does not specify direction
Degrees of Freedom:
* Based on the size of the sample
* n-1 for one group, or N-2 for 2 groups
* N for 2 groups, n for 1 group
Degrees of freedom = the number of independent values or quantities that can vary in an analysis without breaking any constrains.
Single sample: When you have a single sample of size n, the degrees of freedom is typically n-1. This is because one value can be derived from the others meaning if you know n-1 values, the last value is determined based on the mean
* EX: if you have 5 measurements and their mean is 6, the sum is 5x6 = 30. If you know 4 of the measurements, you can find the 5th measurement by substracting the sum of the known values from 30.
Two groups: When comparing two groups (like in a t-test), the degrees of freedom is calculated as N-2, where N is the total number of observations in both groups. This accounts for estimating two means (one for each group).
* EX: if you have two gorups, one with 3 subjects and the other with 4, N is 7, or the defrees of freedom would be 7 - 2 = 5
This is how we find the critical value
a1 = 1 tailed t test
a2 = 2 tailed t test
We go over to what our alpha is set to at the top (the EX below is 2 tailed t-test (a2) w/ a confidence of 0.5)
We have 18 degrees of freedom in this example (df = 18 on the left)
Go over and down
Since we had two groups of 10 our we use N - 2
* 20-2 = 18
* df = 18
N = 10+10 =20
Critical value = 2.101
if t > 2,101 = significant difference
So if t is greater than the critical value there is a significant difference between groups