Two block distributions in distinct blue shades building up from paired observations.
This will be our last chapter on the \(t\) statistic. We’ll introduce the related-samples \(t\) test, used to compare two samples that, unlike those in the previous chapter, are somehow related. We’ll discuss the research designs this involves, their pros and cons, and how to calculate the test.
The competition machine
First, a little game for you to play. You’re going to turn a handle (by moving your mouse or finger in circles) to move a little blue flag along a race track. Try your best, and have fun!
Activity 13.1: The competition machine
A game based on Triplett's competition machine: wind a reel to send a flag around a track four times, first alone and then racing a rival flag. It needs JavaScript.
This is a little digital recreation of one of my favorite studies in the history of psychology. In fact, it is often credited as being the first published experiment in social psychology—though like many such claims, that’s questionable. It was conducted by Norman Triplett as part of his master’s research at Indiana University, and published in 1898. He was interested in how racing alone or against competitors might affect performance. This is now known as social facilitation: the idea that the presence of other people can improve our performance on some kinds of tasks (Triplett, 1898).
At first, Triplett examined cycling records, comparing unpaced rides against the clock, rides with someone setting the pace, and competition races. He compared averages and graphed patterns in the data, finding some evidence that multiple cyclists racing together might produce faster times than people racing against the clock.
But Triplett realized he needed some more convincing, more carefully controlled data. So he devised the “competition machine”: a clever apparatus disguised as a children’s game. Two fishing reels were secured to the end of a Y-shaped apparatus that was clamped on top of a heavy table. Bands of silk cord were run over the axles of the reels and across two pulleys, so that turning the reel would cause a small flag sewn into the silk to move around the four-meter circuit. The task was to turn the reel and complete the circuit four times as quickly as possible. Triplett had children do this a number of times, either by themselves or facing off against another kid.
Figure 13.1: Triplett’s diagram of the Competition Machine, from his 1898 paper.
What makes the paper so charming is that Triplett included full tables of the raw data in his paper, including the first names and last initials of the children. Compared to modern results sections filled with impersonal aggregate statistics, it’s a delight to imagine little Violet F. and Willie H. staring each other down across the competition machine, teeth gritted in determination, Triplett watching on with clipboard in hand. He noted some wonderfully specific details. “An intense desire to win,” Triplett wrote, was often accompanied by “labored breathing, flushed faces and a stiffening or contraction of the muscles of the arm.” The youngest children sometimes became so excited that they could barely turn the crank; “The effort to continue turning in these cases was by a swaying of the whole body.” One particularly competitive five-year-old was so upset at losing his race, according to his mother, that he “felt badly about it all day.”
This gives us a context in which to think about research designs where each participant does something more than once, and how to analyze the resulting data.
Between- and within-participants designs
This requires some more thought about research design. In Chapter 12, we used a between-participants design: each participant experienced and contributed data to a single condition of our study. In the spending example, everyone spent their ten dollars either on themselves or on someone else, not both.
Figure 13.2: Independent samples contain different, independent groups of people, represented here by 10 different colored dots.
Independent samples: ten different people, five in each sample.
Because it’s a different group of people in each sample, there are at least two reasons why our sample means might differ. One is a treatment effect that increases or decreases scores overall. That’s what we’re hoping to discover. But one group might have a few more people who score high on our measure and the other a few more who score low, just by chance. Those individual differences are another source of variability between groups.
Now, compare that to a related-samples design, in which each score in one sample is paired with a specific score in the other. The most common version is the within-participants design, also called a repeated-measures design. Every participant experiences and contributes data to both conditions. When you played the game in Activity 13.1, you produced two scores, one alone and one in competition. That’s what Triplett got from each of the kids he tested.
Figure 13.3: In a within-participants design, the same people contribute a score in each condition. The groups are not independent, represented by the line connecting each pair of same-colored dots.
Related samples: the same five people in both samples, each joined to their own second score.
There are still individual differences within each sample, but it’s the same people in both. A child who is generally slow contributes a score to both conditions, so that stable difference in overall speed doesn’t explain the difference between conditions. When the paired scores tend to go together, taking those stable differences out of the comparison can give us a more powerful test. (Other things could still change between the two measurements, though, like practice or fatigue. We’ll come back to those when we interpret the results.)
Matched-subjects designs
Another variation of the related-samples design is what’s called a matched-subjects design, or matched-samples design. We have two samples of different people, but each individual in one sample is deliberately paired with someone similar in the other.
Say we didn’t want the same kids to repeat the reel-turning task alone and in competition. We have one group of kids do it alone, and a different set of kids do it with a competitor. We might match children on age, since it’s plausible that older children could turn the reels faster. For each pair of children of the same age, we’d randomly assign one to perform alone and the other to perform in competition. Each child contributes a score in just one condition, but we compare the two scores within each matched pair. These are the pairs we use in the analysis; they aren’t the two children racing against each other.
Age is our matching variable: the characteristic we use to form the pairs. If we gave the alone and competition conditions the same mix of ages, age couldn’t explain a difference simply because one condition had older children. But children of the same age could still differ in strength, coordination, or experience. Matching approximates the advantages of measuring the same people twice, at least as far as the variables we’ve decided to match people on. It works best when those variables help predict the scores we’re measuring.
Pros and cons
There’s a practical advantage to measuring the same people twice: to get five scores in each condition, a within-participants study needs five people rather than ten. Participants can be expensive and time consuming to recruit, especially if we’re not just using intro psych students and giving them course credit. And sometimes participants are just hard to come by, like patients with a rare condition or clients at a single clinic. Getting more data out of each person can be what makes a study feasible at all. (A matched-subjects design doesn’t have that advantage; it requires twice as many participants as a within-participants design.)
A within-participants design also lets us see whether individuals change over time. Remember the cognitive behavioral therapy (CBT) study for obsessive-compulsive disorder from Chapters 5 and 8? Researchers used the Dimensional Obsessive-Compulsive Scale (DOCS) to measure people’s symptoms before and after treatment (Abramowitz et al., 2010). (You’ll finally get to analyze the data from that study appropriately in the learning checks at the end of this chapter!)
But there are potential downsides to within-participants designs. People might stop treatment or miss the follow-up assessment. That’s called dropout. For the related-samples test, we need both measurements to calculate each person’s difference score, so someone with only a pretreatment score can’t contribute a complete pair. It can be necessary to recruit more people than the number of complete pairs we want to allow for this. And if those who drop out differ from those who stay—perhaps they’re the people who aren’t finding the treatment helpful—the remaining pairs could give us a misleading picture.
From two samples to one
Let’s use some of Triplett’s own data to make things concrete. His procedure was a bit more complicated than I’m making out here, but for our purposes we’ll take just the first five kids from one of the paper’s tables. Following a practice trial, all these kids first did a race alone, then with a competitor. Table 13.1 shows the data. (I’ve rounded the times to whole seconds to keep the math more manageable. Note also that the race took much longer overall on Triplett’s machine than the version you played in Activity 13.1.) Triplett grouped these five kids among those whose performance generally improved in competition, so this selected example is for learning the procedure, rather than estimating the overall effect in his study.
Table 13.1: Times (in seconds) from Triplett’s competition-machine study.
Participant
Alone
Competition
Violet F.
\(54\)
\(43\)
Anna P.
\(67\)
\(57\)
Willie H.
\(38\)
\(39\)
Bessie V.
\(46\)
\(41\)
Howard C.
\(42\)
\(36\)
If we ignored the Participant column, the data would resemble the kind of scores from independent samples that we worked with in the last chapter. But the column of names tells us that each row comes from one child; the scores are related. Notice that the children differ in their overall speed. Anna P. took quite a bit longer than Willie H. in both conditions, but the comparison we’re interested in is how each child’s own time changed. We need a way to distill that information when we compare the conditions.
Let’s look at this visually, like we did for independent samples last time, before we walk through the equations.
Activity 13.2: From pairs to differences
Triplett's five children: their times alone (54, 67, 38, 46, 42 seconds) and in competition (43, 57, 39, 41, 36 seconds), then each child's difference score, competition minus alone: −11, −10, 1, −5, −6 seconds, with mean difference −6.2.
Treating these paired scores as independent would violate the assumption of independence. Instead, we turn them into a single sample of difference scores. Subtracting each child’s time alone from their time in competition gives the difference score, \(D\), shown in a new column:
Table 13.2: Triplett’s times with each child’s difference score, \(D = \text{Competition} - \text{Alone}\).
Participant
Alone
Competition
\(D\)
Violet F.
\(54\)
\(43\)
\(-11\)
Anna P.
\(67\)
\(57\)
\(-10\)
Willie H.
\(38\)
\(39\)
\(1\)
Bessie V.
\(46\)
\(41\)
\(-5\)
Howard C.
\(42\)
\(36\)
\(-6\)
Negative differences mean faster times in competition; positive differences mean slower times. We could subtract in the other direction, but we need to keep the direction the same for every row. Reversing it would reverse the signs of the mean difference and \(t\), without changing our two-tailed test decision.
Figure 13.4 shows this logic, using the same kind of diagram as Figure 11.3 and Figure 12.1. On the left, the design looks like the independent-samples design, with two treated samples. But now they come from a single sample: the same people receive both treatments. Subtracting within each pair turns the two treated samples into one sample of difference scores. From there, the right side is the single-sample \(t\) test again, with a subscript \(D\) added. The treated population is now a population of difference scores, and we compare its unknown mean, \(\mu_D\), with the reference value of \(0\) that the null hypothesis specifies.
Figure 13.4: The related-samples \(t\) test: paired scores become a single sample of differences, with a null reference mean of \(\mu_D = 0\).
One sample from the original population receives both treatments; subtracting within each pair gives difference scores with M_D, n, and s_D; inference to the treated population's unknown μ_D; is it the same as the reference value μ_D = 0?
Which test?
0 of 3
1
A national reading test is scaled so that scores in the population of
fourth graders have a mean of 500 and a standard deviation of 100. A
school tries a new reading program with 36 fourth graders, then gives
them the test. Which test fits this design?
Hint
How many samples are there? Is each score paired with a particular
score in the other condition? Do we know the population standard
deviation?
Answer
A single-sample \(z\) test
Explanation
There’s one sample, each child has one score, and we’re comparing
their mean with a population whose mean and standard deviation are both
known. If we didn’t know the population standard deviation, we’d
estimate it and use a single-sample \(t\) test. The program might sound like a
before-and-after design, but nobody was tested before it, so there are
no pairs to analyze.
2
Thirty volunteers each drive the same simulator course twice, once
while talking on a hands-free phone and once without, in counterbalanced
order. Which test fits this design?
Hint
How many samples are there? Is each score paired with a particular
score in the other condition? Do we know the population standard
deviation?
Answer
A related-samples \(t\) test
Explanation
There are two conditions, but not two independent groups: each
volunteer supplies a score in both. Their two scores form a pair, so we
analyze the 30 difference scores.
3
A researcher pairs up 40 students with similar self-reported stress
scores. One student in each pair is randomly assigned to use a
mindfulness app for a month, and the other isn’t. Then everyone’s final
stress score is measured. Which test fits this design?
Hint
How many samples are there? Is each score paired with a particular
score in the other condition? Do we know the population standard
deviation?
Answer
A related-samples \(t\) test
Explanation
Each student is in only one condition, so it’s tempting to treat
these as independent samples. But each score in the app condition is
deliberately paired with a particular score in the other condition. This
is a matched-subjects design, so we analyze the 20 difference
scores.
The related-samples \(t\) statistic
Remember that every \(t\) statistic has the same basic structure (Equation 12.1):
\[ t = \frac{\text{sample statistic} - \text{population parameter}}{\text{estimated standard error}} \]
For the single-sample \(t\) test, the null gave us a reference value for the population mean, \(\mu_0\) (Equation 11.2):
\[ t = \frac{M - \mu_0}{s_M} \]
For the independent-samples \(t\) test, the statistic was the difference between sample means, and the null said the difference between population means was zero (Equation 12.2):
Conceptually, the related-samples \(t\) test is just the single-sample \(t\) test, applied to difference scores. We just add a \(D\) subscript to things to show that we’re dealing with difference scores rather than the original scores: \(M\) becomes \(M_D\), the mean of the difference scores; \(s\) becomes \(s_D\); and \(s_M\) becomes \(s_{M_D}\). The parameter becomes \(\mu_D\). As in Chapter 12, we’re writing the parameter itself because it’s about a hypothesized difference, and the null hypothesis says its value is zero:
\[ t = \frac{M_D - \mu_D}{s_{M_D}} \tag{13.1}\]
The denominator is the estimated standard error of the mean difference score, \(s_{M_D}\). Don’t confuse it with Chapter 12’s estimated standard error of the mean difference, \(s_{M_1 - M_2}\). The mean of the differences will be equal to the difference between the two condition means. For our children, the mean of the differences, \(-6.2\), is the same as the difference between the two condition means, \(43.2 - 49.4\). But the two standard errors are calculated differently, and as we’ll see later in the chapter, that can make a big difference to the resulting \(t\). As in Chapter 11, \(s_{M_D}\) estimates how much the mean of the difference scores would vary from sample to sample. To calculate it, we divide the sample standard deviation of the difference scores, \(s_D\), by the square root of the number of pairs, \(n\):
\[ s_{M_D} = \frac{s_D}{\sqrt{n}} \tag{13.2}\]
With a null mean difference of zero, we just divide \(M_D\) by its estimated standard error to see how many standard errors our observed mean difference falls from zero.
Degrees of freedom
We’ll need to know the degrees of freedom for the \(t\) test. Here it’s \(df = n - 1\), where \(n\) counts complete pairs, or difference scores. In a within-participants study, each person contributes one difference score. In a matched-subjects study, each matched pair of people contributes one difference. So our five children supply ten original times, but only five difference scores, giving \(df = 4\).
All the \(t\)s
Table 13.3 adds the related-samples test to the comparison from Chapter 12. Look for the common threads behind the different symbols to understand the structure of \(t\), rather than just memorizing formulas.
Table 13.3: The pieces of the three \(t\) statistics. All follow the structure of Equation 12.1, and the related-samples column is the single-sample column with a \(D\) subscript.
Single-sample \(t\)
Independent-samples \(t\)
Related-samples \(t\)
Sample statistic
\(M\)
\(M_1 - M_2\)
\(M_D\)
Parameter under \(H_0\)
\(\mu_0\)
\(\mu_1 - \mu_2 = 0\)
\(\mu_D = 0\)
Variability estimate
\(s^2\)
\(s_p^2\) (pooled)
\(s_D^2\)
Estimated standard error
\(s_M\)
\(s_{M_1 - M_2}\)
\(s_{M_D}\)
Degrees of freedom
\(n - 1\)
\((n_1 - 1) + (n_2 - 1)\)
\(n - 1\) (pairs)
A related-samples \(t\) test, step by step
Let’s run through the familiar hypothesis testing steps with Triplett’s five kid racers, using their five difference scores as our sample.
Step 1: State the hypotheses
The null hypothesis says that the population mean difference is zero. We’ll use a nondirectional alternative, looking for a difference in either direction:
\[ H_0: \mu_D = 0 \]
\[ H_1: \mu_D \ne 0 \]
Step 2: Set the decision criteria
Our nondirectional alternative calls for a two-tailed test. The five difference scores give \(df = n - 1 = 4\) (not nine; we count pairs, not individual times). Consulting the \(t\) table, the critical values for a two-tailed \(\alpha = .05\) with four degrees of freedom are \(\pm 2.776\).
Table 13.4: An excerpt of the \(t\) table, with the \(df = 4\) row highlighted.
t table excerpt for 2 through 6 degrees of freedom, highlighting the two-tailed .05 critical value of 2.776 at df = 4.
Step 3: Collect and analyze the data
To calculate our statistic, we work with the difference scores just like any single sample of scores: find their mean, then their deviations from that mean, squared deviations, sum of squares, variance, and standard deviation.
Table 13.5: Difference scores and their deviations.
Table of Triplett's data: alone and competition times, difference scores, deviations, and squared deviations for five participants, with M_D = -6.2, SS = 90.8, s^2_D = 22.7, and s_D = 4.76.
Our \(t = -2.91\) falls below the lower critical value of \(-2.776\), so we reject the null hypothesis. These children were faster in competition, on average.
Figure 13.5: The observed \(t = -2.91\) falls just inside the lower critical region of the null \(t\) distribution with \(df = 4\).
Null t distribution with 4 degrees of freedom. The two rejection regions lie beyond ±2.776; the observed t of −2.91 is just inside the left rejection region.
The corresponding two-tailed \(p\)-value is approximately \(.044\), just below our \(\alpha\) of \(.05\).
Step 5: Estimate the effect, interval, and power
Effect size
As before, we should also estimate the effect size, whether or not the result is significant. Cohen’s \(d\)1 works like the single-sample version: divide the mean difference by the standard deviation of the differences:
\[ d = \frac{M_D}{s_D} = \frac{-6.2}{4.764} \approx -1.30 \]
The mean difference is about 1.3 standard deviations of the differences below zero.
Confidence interval
The confidence interval works just like the single-sample interval, too, but now we’re estimating the population mean difference:
The interval ranges from about twelve seconds faster in competition to a fraction of a second faster. That’s still a wide range. Notice that it barely excludes zero, agreeing with our two-tailed test’s \(p\)-value of about \(.044\), which only just squeaked past the \(\alpha = .05\) threshold.
Figure 13.6: The 95% \(t\) interval for the mean difference excludes zero, agreeing with the two-tailed test at \(\alpha = .05\).
95% t confidence interval for the mean difference: −12.12 to −0.28 seconds, with point estimate −6.2 seconds. Zero lies just above the interval.
Statistical power
As in Chapters 11 and 12, power is more useful for planning a future study than for describing the result we’ve already found. Say we consider a three-second difference worth detecting, in either direction. How many children would we need?
The calculation is the same as for the single-sample test in Chapter 11. But the standard deviation we need is the standard deviation of the differences, not the standard deviation of the times in either condition. Our five differences give an estimate of \(s_D = 4.76\) seconds. A three-second change is about \(3/4.76 = 0.63\) standard deviations of the differences. Using the normal approximation from Chapter 9, with a two-tailed \(\alpha = .05\) and power of .80:
\[ n \approx \frac{(1.96 + 0.84)^2}{(3/4.76)^2} \approx 19.7 \]
Rounding up, that’s 20 children, each measured in both conditions. An exact calculation using the \(t\) distribution gives 22. Here \(n\) counts pairs, so a matched-subjects study would need 22 pairs, or 44 people.
The hard part is estimating how variable the changes will be. Two conditions could each have a lot of variability, but if the same people score high in both, their differences could be much less variable. That’s what happened here. And our estimate comes from only five children, so we shouldn’t treat it as a precise description of the population.
Reporting and interpreting the results
Reporting results
As usual, we need to report the descriptive statistics, the kind of test, the estimated difference and its confidence interval, the test statistic with its degrees of freedom, the \(p\)-value or whether it falls below \(\alpha\), and the effect size. Here’s how we might report our worked example:
In this selected five-child example, children completed the task faster in competition (\(M = 43.2\), \(SD = 8.14\) seconds) than alone (\(M = 49.4\), \(SD = 11.48\) seconds). A two-tailed related-samples \(t\) test found a significant mean difference, \(M_D = -6.20\) seconds, 95% CI [-12.12, -0.28], \(t(4) = -2.91\), \(p < .05\), \(d = -1.30\).
Assumptions of the related-samples \(t\) test
We’ve encountered the assumption of independence quite a few times by now. This applies to the related-samples \(t\) test as well, but in a slightly different way. Obviously the whole point is that the samples are not independent of one another; they consist of pairs of scores from the same person (or from participants we have matched on some characteristic). We expect the two scores within a pair to be related, not independent; that’s why we put them together. But that’s fine, because we don’t use those samples themselves for the analysis. We use the difference scores instead. The independence assumption applies to those: the difference scores must be independent of one another. One child’s change shouldn’t depend on another child’s change.
There’s also the familiar assumption about normality. The \(t\) distribution assumes a normally distributed population, but here it’s the distribution of difference scores that matters, not the distribution of the individual scores in either condition. As usual, there is some leeway for non-normality, particularly with larger samples, but strong skew, bimodality, or outliers can still be problematic, so the data should be checked carefully.
Interpreting the results
The result was “statistically significant,” in a direction consistent with social facilitation: better race performance against a competitor. But as usual, we would still need to be cautious in our interpretation. A statistically significant result doesn’t rule out a Type I error, and the wide confidence interval shows how imprecise our estimate is with just five children. We ought also to be careful about generalizing the result to other children. For the data we analyzed, I specifically selected five kids Triplett classified as “stimulated positively” by competition. That selection prevents trustworthy inferences about a more general population of children.
There’s also a problem with the particular pairs of scores we analyzed: every child did the alone trial first and the competition trial second. Maybe some of the improvement was just getting better at turning the reel through practice. Or maybe they were getting tired, which could push their times in the other direction. This is an order effect: a change in performance or responses caused by the order in which the conditions are experienced. (Triplett anticipated this problem. Each child completed six timed trials, and he varied the sequence of alone and competition trials across two groups. But everyone started alone (Triplett, 1898). Our first-pair-only analysis leaves out his attempts to separate practice from competition.)
One way to deal with order effects is counterbalancing. In a simple two-condition study, we could have some children do the alone trial first and others do competition first. That way, extra practice or fatigue on the second run wouldn’t always go along with the same condition. Using the same children twice removes stable differences in their overall speed, but it doesn’t remove things that change between runs.
But some experiences have lasting effects that counterbalancing can’t undo. Think about the CBT study: we can’t have someone do therapy first and then go back to being the same untreated person they were before. For some questions, a between-participants design makes more sense.
So our significant result here doesn’t establish an overall effect in Triplett’s data. But what’s the status of the research? Triplett didn’t even have tools like the \(t\) test to analyze data. A later reanalysis of his published data using modern statistical approaches found little convincing evidence that competition improved performance overall (Strube, 2005).
Triplett gave us an ingenious way to investigate an interesting question, even if his results didn’t settle it. But the competition machine got another outing. In 2025, researchers reported a replication with 445 children using an apparatus built from Triplett’s diagrams. Children were faster alongside another child than alone, even after accounting for practice, though they weren’t explicitly told to compete (McHugh et al., 2025). It’s still not conclusive—no single piece of research is. But it’s encouraging evidence for the idea Triplett was pursuing.
What’s the difference?
To finish up, let’s briefly forget everything we just learned about related samples, and subject the same data we just worked with to an independent-samples \(t\) test, as if we hadn’t realized that each row belonged to one child. Let’s see what happens using Chapter 12’s equations, treating the two sets of times as independent samples.
With a two-tailed test, \(\alpha = .05\), and \(df = 5 + 5 - 2 = 8\), our critical \(t\) values would be \(\pm 2.306\). The competition times constitute sample 1, with \(M_1 = 43.2\) and variance \(s_1^2 = 66.2\); the alone times are sample 2, with \(M_2 = 49.4\) and variance \(s_2^2 = 131.8\). The pooled variance weights each variance by its degrees of freedom:
The estimated standard error of the mean difference is \(s_{M_1 - M_2} = \sqrt{99/5 + 99/5} \approx 6.29\). And the \(t\) statistic works out to \(-6.2/6.29 \approx -0.99\), so this calculation would fail to reject the null hypothesis.
Here’s how that compares with the correct analysis using the pairs we did earlier:
Table 13.6: The same scores analyzed with and without their known pairing. The independent-samples calculation is inappropriate for these paired observations.
Quantity
Ignoring the pairs
Using the pairs
Mean difference (seconds)
\(-6.2\)
\(-6.2\)
Estimated standard error (seconds)
\(6.29\)
\(2.13\)
Degrees of freedom
\(8\)
\(4\)
Critical values, two-tailed \(\alpha = .05\)
\(\pm 2.306\)
\(\pm 2.776\)
\(t\)
\(-0.99\)
\(-2.91\)
Two-tailed \(p\)
\(.353\)
\(.044\)
95% confidence interval (seconds)
\([-20.71,\ 8.31]\)
\([-12.12,\ -0.28]\)
The mean of the differences is exactly the difference between the sample means, so both numerators are the same. What changes is the variability we used to calculate the denominator. The independent-samples calculation includes how much the children differ in their overall speed. The related-samples calculation uses how much their changes differ, excluding stable individual differences in overall speed. Here that’s a much smaller number, so we get a smaller standard error and a narrower confidence interval, even though the lower degrees of freedom require a more extreme critical \(t\).
Obviously which variety of \(t\) test we use isn’t a choice we make by trying both out and keeping the answer we prefer. My point is that the numbers don’t know or care what we subject them to. We have to know where those numbers came from, and what the appropriate statistical tools are. These scores belong in pairs, so our analysis needs to use the differences. The related-samples approach doesn’t guarantee greater power, but when related scores do tend to go together, the analysis is not only appropriate, but also more powerful, as is the case for our data here.
Learning Checks
0 of 8
1
Study A measures 12 children both alone and in competition. Study B
matches 24 children into 12 pairs by age, and each child races in just
one condition. What are the degrees of freedom for each study’s
related-samples \(t\) test?
Answer
\(df = 11\) for both studies
Explanation
Either way there are 12 difference scores, so \(n = 12\) and \(df
= 11\). Study A has 24 scores, but each child’s two scores become
one difference. Study B has twice as many children, but each matched
pair supplies one difference. The independent-samples formula, \((n_1 - 1) + (n_2 - 1) = 22\), would ignore
the pairs.
2
Suppose that in a study like Triplett’s, children’s times alone and
in competition were unrelated: knowing how fast a child was alone told
you nothing about how fast they’d be in competition. Compared with
treating the two conditions as independent samples, what would analyzing
the pairs do to the estimated standard error?
Hint
What does subtracting within each pair take out of the comparison? If
a child’s time alone tells you nothing about their time in competition,
is there anything to take out?
Answer
Leave it about the same
Explanation
Pairing shrinks the standard error by taking stable differences
between people out of the comparison. If the two scores don’t go
together, there’s nothing to take out: the difference scores vary about
as much as the independent-samples calculation assumes. And with half
the degrees of freedom, the critical value would be more extreme, so
pairing wouldn’t help here.
3
Here are five other children from Triplett’s study, with their times
rounded to whole seconds (Triplett, 1898, Table
II, Group A). These children came from the group Triplett classified
as adversely affected by competition, so again we’re using selected data
for practice.
Participant
Alone
Competition
Jack R.
44
44
Helen F.
44
51
Emma P.
38
42
Warner J.
42
44
Genevieve M.
36
36
Calculate each child’s difference score, then the related-samples
\(t\) statistic. Use competition minus
alone and a null population mean difference of zero.
Hint 1
Subtract each child’s alone time from their competition time. Zero
differences still count as observations.
Hint 2
Find the sample mean and sample SD of the differences, then divide
the SD by \(\sqrt{n}\) to get the
estimated standard error.
Answer
1.96
Explanation
The differences are 0, 7, 4, 2, and 0 seconds. Their mean is 2.6,
\(SS = 35.2\), and \(s_D = \sqrt{35.2/4} \approx 2.97\) seconds.
So \(s_{M_D} = 2.96648/\sqrt{5} \approx
1.327\) seconds, and \(t = 2.6/1.32665
\approx 1.96\). The positive sign means slower times in
competition, on average. Both zero differences count, so \(n = 5\) and \(df
= 4\).
Check your work
What is the mean of your five difference scores?
Answer
2.6
Explanation
Add 0, 7, 4, 2, and 0, then divide by 5.
What is the sample standard deviation of the differences?
Answer
2.96648
Explanation
Subtract 2.6 from each difference, square those deviations, and add
them to get \(SS = 35.2\). Divide by
\(df = 4\) and take the square
root.
For those five children, calculate the 95% confidence interval for
the mean difference. Use a critical \(t\) of 2.776. Would you reject the null
hypothesis in a two-tailed test at \(\alpha =
.05\)? Does the result establish that competition had no
effect?
Hint
Use the estimated standard error from the previous question: \(M_D \pm t \times s_{M_D}\).
Answer
\(2.6 \pm 2.776(1.32665) \approx [-1.08,\
6.28]\) seconds. The interval includes zero, agreeing with the
failure to reject the null hypothesis: \(t
\approx 1.96\) falls between \(\pm
2.776\). This doesn’t establish no effect. The interval includes
differences favoring either condition, and the data were selected for
practice rather than for estimating the overall effect in Triplett’s
study.
5
Return to the CBT study from Chapters 5 and 8. The same 40 people had
mean DOCS symptom scores of 30.25 before treatment and 15.49 afterward
(Abramowitz et al., 2010,
Table 9). Higher scores mean more severe symptoms. Use an estimated
SD of the differences of \(s_D = 9.75\)
points. (The SD of differences is reconstructed approximately from the
paper’s reported paired test.) Calculate the related-samples \(t\) statistic, using after minus
before.
Hint 1
We don’t have the individual scores, but you can still calculate
\(t\) from the information given.
Hint 2
Subtract the before-treatment mean from the after-treatment mean to
get \(M_D\). That works because the
mean of the differences equals the difference between the two condition
means. Then divide by \(s_D/\sqrt{n}\).
Answer
-9.57
Explanation
We can subtract the means: \(M_D = 15.49 -
30.25 = -14.76\) points. The mean of the differences equals the
difference between the means for the same complete pairs; we don’t need
the raw scores to find it. With \(s_{M_D} =
9.75/\sqrt{40} \approx 1.542\) points, \(t = -14.76/1.54161 \approx -9.57\). The
negative sign means lower symptom scores after treatment. The SD of
differences had to be supplied; subtracting the two condition SDs
wouldn’t give it.
Check your work
What mean difference did you calculate, after minus before?
Answer
-14.76
Explanation
\(15.49 - 30.25 = -14.76\)
points.
What estimated standard error did you calculate?
Answer
1.54161
Explanation
\(9.75/\sqrt{40} \approx 1.542\)
points. Use the SD of differences, not the SD of either condition
separately.
6
For the CBT calculation, would you reject the null hypothesis in a
two-tailed test at \(\alpha = .05\)?
The critical values for \(df = 39\) are
\(\pm 2.023\). What does the result
tell us about symptoms, and does it establish that therapy caused the
change?
Answer
With 40 complete pairs, \(df = 39\).
Our \(t \approx -9.57\) falls below
\(-2.023\), so we reject the null
hypothesis. The mean symptom score was significantly lower after
treatment. But everyone was measured before treatment and then after,
and that order can’t be counterbalanced: people can’t go back to being
untreated. Symptoms might have improved over time anyway, or people
might answer the questionnaire differently the second time. To show that
the therapy caused the change, we’d want a comparison group of people
who weren’t treated.
7
We’re testing a null population mean difference of zero, and the
estimated standard error is greater than zero. What would a
related-samples \(t\) statistic of 0
tell us? Would it mean nobody’s score changed?
Answer
The sample mean difference is exactly zero. Individual difference
scores can still be positive or negative and cancel each other out. It
doesn’t mean every person had identical scores in both conditions, or
establish that the population mean difference is zero.
8
Think of a research question you could study either by measuring the
same people in two conditions or by comparing two separate groups.
Briefly describe each version of the study. What would the
related-samples version gain, and what problems might it introduce?
Hint
Think about how many people each version needs, the differences
between people, what might change between the two measurements, and
whether everyone will come back for the second one.
Example answer
Does caffeine speed up reaction times? In the independent-samples
version, one group drinks coffee and another drinks decaf before a
reaction time test. In the related-samples version, everyone does the
test on two days, once after each drink. The related version needs half
as many people, and it takes stable differences in people’s speed out of
the comparison, which could make the test more powerful. But people
might get faster with practice on the second day, so we’d counterbalance
which drink comes first. And some people might not come back for the
second session.
Explanation
A good answer recognizes that the related version helps most when
people’s scores in the two conditions tend to go together, and that
anything that changes between the two measurements, like practice,
fatigue, or lingering effects of the first condition, needs to be dealt
with. For some questions, like whether a therapy works, the first
condition can’t be undone, and two separate groups make more sense.
Abramowitz, J. S., Deacon, B. J., Olatunji, B. O., Wheaton, M. G., Berman, N. C., Losardo, D., Timpano, K. R., McGrath, P. B., Riemann, B. C., Adams, T., Bjorgvinsson, T., Storch, E. A., & Hale, L. R. (2010). Assessment of obsessive-compulsive symptom dimensions: Development and evaluation of the dimensional obsessive-compulsive scale. Psychological Assessment, 22(1), 180–198. https://doi.org/10.1037/a0018260
Lakens, D. (2013). Calculating and reporting effect sizes to facilitate cumulative science: A practical primer for t-tests and ANOVAs. Frontiers in Psychology, 4, 863. https://doi.org/10.3389/fpsyg.2013.00863
McHugh, C., Griffin, S. M., Kinsella, E. L., Quayle, M., Strunz, B., & Muldoon, O. T. (2025). A replication of Triplett’s “social facilitation experiment.”Scientific Reports, 15, 40366. https://doi.org/10.1038/s41598-025-25608-x
Strube, M. J. (2005). What did Triplett really find? A contemporary analysis of the first experiment in social psychology. The American Journal of Psychology, 118(2), 271–286. https://pubmed.ncbi.nlm.nih.gov/15989124/
Triplett, N. (1898). The dynamogenic factors in pacemaking and competition. The American Journal of Psychology, 9(4), 507–533. https://doi.org/10.2307/1412188
You may see this version written \(d_z\) elsewhere. That has nothing to do with \(z\)-scores: Cohen used \(Z\) to stand for the difference score, \(Z = X - Y\), which we’ve been calling \(D\). There are also other ways to standardize an effect in a repeated-measures design. The choice matters when comparing effect sizes across designs; see Lakens (2013).↩︎