Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Psych 5500/6500 t Test for Dependent Groups (aka ‘Paired Samples’ Design) Fall, 2008.

Similar presentations


Presentation on theme: "1 Psych 5500/6500 t Test for Dependent Groups (aka ‘Paired Samples’ Design) Fall, 2008."— Presentation transcript:

1 1 Psych 5500/6500 t Test for Dependent Groups (aka ‘Paired Samples’ Design) Fall, 2008

2 2 Experimental Designs t test for dependent groups is used in the following two experimental designs: 1.Repeated measures (a.k.a. within-subjects) design. 2.Matched pairs design.

3 3 Repeated Measures (Within-subjects) Design Measure each participant twice, once in ‘Condition A’ and once in ‘Condition B’. The scores in the two groups are no longer independent as they come from the same participants. I like to use ‘Condition A’ and ‘Condition B’ rather than ‘Group 1’ and ‘Group 2’ as the latter terms seem to imply (at least to me) that there are different subjects in each group.

4 4 Design SubjectCondition ACondition B 1S1S1 S1S1 2S2S2 S2S2 3S3S3 S3S3 etc. Each subject’s two scores are dependent, but are independent of the other subjects’ scores.

5 5 Matched Pairs The two paired scores don’t have to come from the same person, there are other ways the scores within the pairs could be associated (dependent). For example, measuring marital satisfaction within married couples (a static group design).

6 6 Design CoupleWifeHusband 1S 1.W S 1.H 2S 2.W S 2.H 3S 3.W S 3.H etc. The scores within each couple are dependent, but each couple’s scores are independent of the other other couples’ scores

7 7 Example: Repeated Measures or Within-Subjects Design You are interested in whether attending a mixed- race day camp affects children’s racial prejudice. Six children attending the day camp were given a test to measure racial prejudice (higher scores = more prejudice) when they first arrived at camp. The same six children were given the same test seven days later when they left the camp.

8 8 Data SubjectBeforeAfter 18580 23026 35250 41011 59894 63936 Mean=52.3349.5

9 9 Getting Rid of the Nonindependence Because we have two scores per person the scores are not all independent of each other, which means we can’t do a t test. The solution is simple, we will turn those two scores per person into just one score per person, a score which reflects the difference in each person’s score when they are in Condition A compared to when they are in Condition B.

10 10 Difference Scores SubjectBefore-After=Difference 185-80=5 230-26=4 352-50=2 410-11= 598-94=4 639-36=3 For each subject we now have just one score, their ‘difference’ score. 1) The difference scores measure how much the subject’s score differed in the two conditions. 2) The difference scores are independent of each other, we can now perform the t test for a single group of scores on the difference scores.

11 11 Difference Scores SubjectBefore-After=D 185-80=5 230-26=4 352-50=2 410-11= 598-94=4 639-36=3 To simply, let’s call the difference scores ‘d scores’. The mean of the d scores is a measure of the average difference between the scores in condition A and the scores in condition B.

12 12 Difference Scores SubjectBefore-After=D 185-80=5 230-26=4 352-50=2 410-11= 598-94=4 639-36=3 In our sample, the prejudice scores were on average 2.83 higher before the day camp than they were after the day camp.

13 13 Difference Scores SubjectD 15 24 32 4 54 63 Mean D is a statistic, it reflects what we found in those six kids. Our hypotheses will concern the larger population these six kids represent (2-tailed): H0: μ D =0 Ha: μ D  0

14 14 Same Thing What we are about to do is exactly the same thing as performing a t test for a single group of scores, we have simply relabeled our variable as ‘D’ (to stand for ‘difference scores’) rather then ‘Y’. This is not really a third t test, it is just another context in which we can use the t test for a single group of scores.

15 15 Sampling Distribution All the results we could get for mean D assuming H0 were true.

16 16 df and tc so t c =±2.571

17 17 est. standard error (Compare to t test for a single group mean).

18 18

19 19 t obt You should be able to guess what this formula is.

20 20 t(5)=3.24, p=.023

21 21 Difference Scores SubjectBefore-After=Difference 185-80=5 230-26=4 352-50=2 410-11= 598-94=4 639-36=3 If we analyze the difference scores to see if the mean of their population differs from zero we get: t(5)=3.248, p=.023, we can conclude that their is a statistically significant difference in the before and after scores (i.e. μ D  0), if we have no serious confounding variables then we conclude that the day camp affected prejudice scores.

22 22 One-Tail Tests If we are testing a theory which predicts that prejudice should be less after the day camp then that would imply that the mean of the difference scores should be greater than zero (write Ha to express the prediction). H0: μ D  0 Ha: μ D > 0 This is indeed the direction the results fell, so the p value would be p=.023/2=.012 So the results are t(5)=3.248, p=.012

23 23 One-Tail Tests If we are testing a theory which predicts that prejudice should be greater after the day camp then that would imply that the mean of the difference scores should be less than zero (write Ha to express the prediction). H0: μ D  0 Ha: μ D < 0 This is opposite from the direction the results fell, so the p value would be p=1-.023/2=.988 So the results are t(5)=3.248, p=.988

24 24 Matched Pairs Design This type of design is analyzed exactly the same way as a repeated measures design, you analyze the difference scores. CoupleWife-Husband=Difference 1-= 2-= 3-= 4-= 5-= 6-=

25 25 Lowering Variance Since the beginning of the semester I’ve been making the point that lowering the variance of the data is a good thing, it leads to more representative data and thus makes it easier to draw conclusions about the population from which the sample was drawn. Lowering variance increases power. I have been promising we would look at a way of accomplishing that other than simply sampling from a more homogeneous population, here it is...

26 26 Look again at our original data, if these scores came from an independent groups design (e.g. random half of the kids measured before the day camp and the other half measured after the day camp) we would be in trouble, look at how much the scores vary within each group, the kids really differed in prejudice levels. This variance would kill the power of our experiment. SubjectBeforeAfter 18580 23026 35250 41011 59894 63936 Mean=52.3349.5

27 27 But with a repeated measures design we are just looking at the effect of the independent variable (attending the camp) on each kid (how much they differed before and after rather than at how prejudiced they are). The independent variable had fairly similar effects on the kids (from –1 to 5), and thus the difference scores don’t have nearly as much variability as the prejudice levels of the various kids. SubjectBefore-After=Difference 185-80=5 230-26=4 352-50=2 410-11= 598-94=4 639-36=3 Mean52.3349.5

28 28 SubjectBefore-After=Difference 185-80=5 230-26=4 352-50=2 410-11= 598-94=4 639-36=3 Mean52.3349.5 Analyzed as t for independent groupsAnalyzed as t for dependent

29 29 Variability and Designs Which t test you use is based upon how you run the study. In deciding how to run the study: 1.If you think the effect of the independent variable will be rather similar for each subject and that the subjects’ actual scores will vary quite a bit then use a paired sample design (repeated measure or matched pairs design). 2.If you think the effect of the independent variable will vary quite a bit and that the subjects’ actual scores will be rather similar than use an independent groups design (true experiment, quasi-experiment, static group design). A repeated measures design is usually more powerful than an independent groups design.

30 30 Effect Size The direct measure of effect size in this t test is simply the mean of the difference scores. This value represents the effect of the independent variable on the participants, and it also happens to equal the mean of the first group minus the mean of the second group (making it the same as the measure of effect size in the t test for independent groups).

31 31 Standardized Effect Size

32 32 Manual Calculations

33 33 From SPSS When doing a ‘Paired Samples t Test’ (what SPSS calls what I call ‘t test for correlated groups’) the analysis will provide the following under the title ‘Paired Samples Test’: Mean = 2.83333 Std Deviation=2.13698 In our use of symbols these would be represented as: Which is enough to compute Hedges’s g, for Cohen’s d we need the standard deviation of the sample, which can be found by:

34 34

35 35 Warning.... There is some controversy about the correct calculations for standardized effect size. The shortcuts provided in the earlier lecture on a single group t test (repeated below) don’t work in this context: If we were to use those formulas we would get larger effect sizes:

36 36 GPower 3.0 In GPower this t test is called the t test for “Means: Difference between two dependent means (matched pairs)”. If you give it mean D and the standard deviation of D (‘S D ’) it will compute Cohen’s d (big deal, as we have seen that is a simple formula). The ‘Total sample size’ is the number of pairs of scores (6 in our example). By the way, the post hoc analysis shows that this example had a power of 0.80! This was due to my having the mean D be rather large compared to the S D.

37 37 Carry-Over Effect Carry-Over Effect: A confounding variable that may arise due to measuring the same person more than once, thus can only happen in a repeated-measures design. Practice effect: the general term for when a carry-over effect leads to an increase in performance over subsequent measures. Fatigue effect: the general term for when a carry-over effect leads to a decrease in performance over subsequent measures.

38 38 Options for Controlling Carry- Over Effects 1.If your independent variable is a carry-over effect (e.g. the effect of practice) then you do not need or want to control it. Otherwise.... 2.If applicable, use different forms of the same test. 3.Minimize the carry-over effect (e.g. increase the time between first measure and second measure). 4.Counterbalance the order of conditions.

39 39 Counterbalancing the Order of Conditions Half the participants are in Condition A first and in Condition B second. The other half of the participants are in Condition B first and Condition A second. SubjectCondition ACondition B S11 st 2 nd S22 nd 1 st S31 st 2 nd S42 nd 1 st


Download ppt "1 Psych 5500/6500 t Test for Dependent Groups (aka ‘Paired Samples’ Design) Fall, 2008."

Similar presentations


Ads by Google