Two-Sample T-Test: Comparing Two Groups

Learn how to compare two groups with data. Tell independent samples from paired measurements, run two-sample t tests with Welch's and the pooled-variance method, analyze paired data through the differences, and compare two proportions with a z test. Build confidence intervals for each kind of difference, judge whether a difference is large enough to matter, choose the right procedure for a study design, and read and report results from statistics software.

BeginnerLesson 10 of 12 in Introduction to Statistics Course

What you will learn

  1. Decide whether two sets of measurements come from independent groups or from pairs, name the parameter being compared, and see how the uncertainty of a difference is built from the uncertainty of each group.
    • Tell independent samples from paired data
      Recognize the study designs that produce two independent groups and those that produce natural pairs, and state the parameter each design compares.
    • Understand how a difference between two samples varies
      Explain how a difference between two sample statistics changes from sample to sample, combine two standard errors correctly, and recognize the shared structure of every test and interval in this unit.
  2. Carry out and interpret two-sample t procedures, choose between Welch's method and the pooled-variance method, and estimate how large a difference in means is.
    • Run a two-sample t test with Welch's method
      Set up hypotheses, check the conditions, compute the Welch t statistic, degrees of freedom and p-value, and state a conclusion in context.
    • Choose between Welch's and the pooled-variance t test
      Compute the pooled-variance t test, compare it with Welch's method, and explain when the choice changes the result.
    • Estimate a difference in means and judge its size
      Build and interpret a confidence interval for the difference between two means, connect it to the test, and describe how large and how important the difference is.
  3. Reduce paired measurements to differences, test and estimate the mean difference, and explain why a paired design can detect effects that an independent comparison misses.
    • Carry out a paired t test
      Compute the differences within each pair, set up hypotheses about the mean difference, check the conditions and carry out the test.
    • Estimate a mean difference and explain why pairing helps
      Build and interpret a confidence interval for the mean difference, and show with data how pairing removes variation between individuals.
  4. Test whether two population proportions differ and estimate the difference between them, using the pooled proportion for the test and separate proportions for the interval.
    • Carry out a two-proportion z test
      Set up hypotheses about two proportions, compute the pooled proportion, check the conditions and carry out the z test.
    • Estimate a difference in proportions
      Build and interpret a confidence interval for the difference between two proportions, report it in percentage points, and relate it to the test.
  5. Select the right procedure from the study design and the type of response, read software output, and write a complete conclusion.
    • Choose the right test from the study design
      Use a short sequence of questions about the response and the design to pick between the two-sample t, paired t and two-proportion procedures, and avoid the common traps in that choice.
    • Read software output and report the results
      Find the statistics that matter in output from common statistics software and spreadsheets, and write a conclusion that a reader can check.

Two-Sample T-Test study guide

5 chapters

1

Start with the study design

A comparison begins with the people or objects behind the numbers. Two columns can hold measurements from separate groups or two measurements linked within each person. That link changes both the question and its uncertainty. Learn to identify the response, name the population difference, and fix the order of subtraction before using a formula. Then connect the standard error of a difference with the tests and intervals that follow.

1.1 Independent groups and natural pairs

A study comparing two groups needs two decisions: what was measured, and how the observations were collected. The response tells you whether to compare means or proportions. The design tells you whether to keep a link between measurements.

Find the link between observations

Independent samples have no one-to-one link between observations in the two groups. Randomly chosen nurses and randomly chosen teachers form two independent samples. A randomized experiment also produces independent groups when each participant receives exactly one of two treatments. Observations must be independent within each group as well.

Paired data have a real match for every observation. The same client weighed before and after a program supplies one pair. The two eyes of one patient supply another. Two different people can also form a pair when the study matches them on relevant features, such as twins assigned to different treatments. The match is part of the study design.

Equal sample sizes do not create pairs. Two unrelated groups of 25 people are independent. Sorting both groups and joining their smallest values, next-smallest values, and so on creates artificial matches. Those differences do not represent the design that collected the data.

Name the quantity being compared

A quantitative response, such as a score, time, or weight, leads to means. A response with two outcomes, such as clicked or did not click, leads to proportions.

Design and responsePopulation quantitySample estimate
Independent quantitative groupsμ1−μ2xˉ1−xˉ2
Paired quantitative measurementsμddˉ
Independent two-outcome groupsp1−p2p^1−p^2

For paired data, first calculate one difference for each pair. A study of 30 clients before and after a program becomes a sample of 30 differences. The parameter is the population mean of differences, not the change for one particular client.

Keep one order of subtraction

Write the order in words before calculating. With “new method minus old method,” a positive score difference favors the new method. For completion times, a negative difference means the new method takes less time. The sign tells you which value is higher; the context tells you whether higher is desirable.

Reversing the order changes the signs of the estimate and test statistic. It also reverses and negates the interval endpoints: an interval from 2 to 7 becomes one from −7 to −2. A two-sided p-value stays the same because the distance from zero stays the same.

Classify the study

“A school compares scores from 45 students taught with phonics and 52 other students taught with a whole-language method.” The response is quantitative and the students are different, so compare independent means.

“An optometrist measures the left and right eye of each of 20 patients.” The response is quantitative and the eyes are linked within each patient, so analyze 20 differences. Keeping that link lets the analysis separate differences between eyes from differences between patients.

Key Takeaways

  • Pairing comes from the design, including repeated measurements and meaningful matched pairs.
  • Quantitative responses lead to means; two-outcome responses lead to proportions.
  • For paired data, the sample size is the number of complete pairs.
  • Keep the order of subtraction fixed in hypotheses, estimates, intervals, and conclusions.

1.2 The uncertainty in a difference

A sample difference changes when new samples are drawn. Even when the population means are equal, two sample means will usually differ. The standard error describes the typical sampling variation in the difference, in the same units as the response.

Combine independent uncertainty

For independent samples, subtracting the statistics does not subtract their uncertainty. Either sample mean can fall above or below its population mean. Their random errors can pull the observed difference in either direction. Their variances add:

Var⁡(xˉ1−xˉ2)=Var⁡(xˉ1)+Var⁡(xˉ2).

Standard errors are square roots of variances, so square them before adding:

SEdifference=SE12+SE22.

If the two standard errors are 3 and 4, the combined standard error is 9+16=5. Adding gives 7 and subtracting gives 1; neither calculation combines variances correctly.

For independent means estimated from samples, this becomes

SE=s12n1+s22n2.

For an interval comparing independent proportions, use

SE=p^1(1−p^1)n1+p^2(1−p^2)n2.

Each group contributes a term. If one mean has a standard error of 4, making the other sample enormous still leaves the difference's standard error at least 4. Precision is often limited by the smaller or more variable group.

Connect tests with intervals

The sample difference estimates the population difference. For independent random samples, the sampling distribution of the difference in means is centered on μ1−μ2. Large samples make the distribution approximately normal; normal populations also support t procedures for small samples.

A test compares the estimate with a hypothesized difference, usually zero:

test statistic=estimate−null differenceSE.

A confidence interval starts at the estimate and extends in both directions:

estimate±critical value×SE.

The product of the critical value and standard error is the margin of error. Means use a t critical value because population standard deviations are estimated. Proportions use a z critical value when the normal approximation is suitable.

For paired data, the independent-groups formula loses the relationship between measurements. Calculate the differences and use sd/n, the standard error of their mean.

Let the design set the conclusion

Random sampling supports generalization to the populations sampled. Random assignment supports a causal comparison of treatments. These are separate features: a randomized experiment using volunteers can support causation for the participants without making them a random sample of all adults.

In an observational comparison of smokers and nonsmokers, other differences between the groups may explain an observed outcome. A small p-value does not remove that confounding. Report the association and keep the population claim tied to how the sample was obtained.

Key Takeaways

  • For independent samples, variances add when statistics are subtracted.
  • A test measures distance from the null in standard errors; an interval gives a plausible range for the population difference.
  • One large group cannot remove the uncertainty contributed by the other group.
  • Paired data use the standard error of the differences.
  • Random sampling supports generalization; random assignment supports causation.
2

Compare independent means

Independent groups often differ in both their average and their spread. A t procedure compares the averages while allowing for the uncertainty in each sample. Welch’s method estimates that uncertainty separately; the pooled method adds an equal-spread assumption. Work through both approaches, then use a confidence interval and an effect size to distinguish evidence of a difference from a difference large enough to matter.

2.1 Welch’s t test, from question to conclusion

Welch’s t test compares two population means without assuming equal population variances. Define group 1 and group 2, and choose the alternative before examining the results.

State the hypotheses and check the design

For a two-sided question, use H0:μ1−μ2=0 and Ha:μ1−μ2≠0. A directional question uses >0 or <0 in the alternative. The hypotheses concern population means, not the observed sample means.

Check independent random samples or random assignment, independence within each group, and suitable distributions. When sampling without replacement, keep each sample below about 10% of its population. Inspect each group's plot for skewness and outliers.

A rough guide based on the combined sample size is especially cautious below 15: data should look close to normal with no outliers. From 15 to 40, strong skewness or outliers are a concern; at 40 or more, t procedures usually tolerate skewness better. Still inspect each group separately. A very large group cannot rescue a tiny group with a strongly skewed distribution.

Calculate the statistic

A college compares final scores in a flipped class, with 25 students, mean 78.4, and standard deviation 9.2, and a lecture class, with 30 students, mean 72.1, and standard deviation 12.5. Both plots show no strong skewness or outliers. Use flipped minus lecture.

SE=9.2225+12.5230≈3.3856+5.2083≈2.9315.

The observed difference is 6.3 points. Under equal population means,

t=6.3−02.9315≈2.149.

The difference is about 2.15 standard errors above zero.

Find degrees of freedom and the p-value

Software calculates Welch's degrees of freedom. Writing a=s12/n1 and b=s22/n2 keeps the formula readable:

df=(a+b)2a2/(n1−1)+b2/(n2−1).

Here the value is about 52.27. With that t distribution, the two-sided p-value is about 0.036. A table-based conservative choice is the smaller of the two sample degrees of freedom, here 24. It gives a larger p-value, about 0.042.

If the null is true and the conditions hold, a standardized statistic at least this far from zero occurs in about 3.6% of repeated sample comparisons. This probability concerns the data under the null; it is not the probability that the null is true.

Make the decision in context

At a 0.05 significance level, reject the null. There is evidence that the population mean scores differ, with the flipped class averaging 6.3 points higher in these samples. If students chose their format, describe an association; causal wording requires random assignment.

A prespecified alternative that the flipped mean is higher gives a one-sided p-value of about 0.018. The opposite one-sided alternative gives about 0.982. Halving the two-sided value works only when the observed sign agrees with the prespecified alternative. A p-value above the significance level means insufficient evidence, not that the means have been shown equal.

When both population standard deviations are known, the comparison uses SE=σ12/n1+σ22/n2 and the standard normal distribution. In most studies they are estimated from the samples, so use a t procedure.

Key Takeaways

  • Welch’s method estimates each group’s variance separately.
  • Choose the alternative before examining the data.
  • Check each group’s distribution and independence, not just the combined sample size.
  • Use Welch degrees of freedom or the smaller sample degrees of freedom for a conservative table calculation.
  • A p-value measures how unusual the statistic is under the null, not how likely the null is to be true.
  • A nonsignificant result leaves uncertainty about the difference.

2.2 When pooling the variances is justified

The pooled-variance t test treats both samples as evidence about one common population variance. It assumes σ1=σ2. Welch's method keeps two separate estimates and is a useful default when that equality has no strong justification.

Build the pooled standard error

Pool the sample variances using their degrees of freedom as weights:

sp2=(n1−1)s12+(n2−1)s22n1+n2−2.

Take the square root to obtain the pooled standard deviation. Then calculate

SE=sp1n1+1n2,t=xˉ1−xˉ2SE,df=n1+n2−2.

Use that standard error and those degrees of freedom for the pooled confidence interval too.

For the class-score data, the weighted sum of squared deviations is 24(84.64)+29(156.25)=6562.61. Divide by 53 to get a pooled variance of about 123.82, then take its square root to get about 11.13 points. The pooled standard error is about 3.013, giving t≈2.09 and a two-sided p-value of about 0.041. Welch's p-value, about 0.036, gives the same decision here.

See why the choice can matter

Consider independent group A with size 10, mean 50, and standard deviation 15, and group B with size 40, mean 42, and standard deviation 5. Suppose the distribution checks support a t procedure.

MethodStandard errort statisticDegrees of freedomTwo-sided p-value
PooledAbout 2.80About 2.8648About 0.006
WelchAbout 4.81About 1.66About 9.5About 0.13

The small group is much more variable. Pooling gives most of its weight to the large, less variable group, understating uncertainty in the small group's mean. The resulting p-value is too optimistic. If the larger group has the larger variance, pooling instead overstates the standard error and can make a difference harder to detect.

When both sample sizes equal n, pooling averages the two variances. Both standard error formulas then reduce to (s12+s22)/n. The t statistics match, although the degrees of freedom may differ.

Choose a method for a reason

Use Welch unless the study gives a good reason to assume equal population spreads. Similar sample standard deviations are compatible with equal population spreads, but do not establish equality. A sample standard deviation ratio below 2 is a course rule used in some settings, not a guarantee.

Do not let a preliminary variance test decide the method. Such a test can miss unequal variances in a small sample, and combining that selection step with a t test alters the overall error behavior. In SPSS, select the row for the method chosen on substantive grounds. “Equal variances assumed” is pooled; “Equal variances not assumed” is Welch. In R, t.test(x, y) uses Welch, while t.test(x, y, var.equal = TRUE) requests pooling.

Key Takeaways

  • The pooled method assumes equal population variances and weights sample variances by their degrees of freedom.
  • Unequal spreads combined with unequal group sizes can make pooling misleading.
  • Equal sample sizes give equal Welch and pooled standard errors, but degrees of freedom can differ.
  • Use Welch by default; justify pooling from the study setting.
  • A preliminary variance test is a poor way to select the t procedure.

2.3 Estimate the size of a mean difference

A test asks whether the data give evidence against a proposed difference. A confidence interval estimates how large the population difference could reasonably be. It keeps the direction and the units visible.

Build and read a Welch interval

Use the same distribution checks, standard error, and degrees of freedom as in Welch's test:

(xˉ1−xˉ2)±t∗s12n1+s22n2.

For the class-score comparison, the estimate is 6.3 points and the standard error is about 2.9315. At 95% confidence with about 52.27 degrees of freedom, the critical value is about 2.006. The margin of error is about 5.88 points, giving an interval from about 0.42 to 12.18 points.

“We are 95% confident that the population mean score for flipped classes is between 0.4 and 12.2 points higher than for lecture classes.” The confidence level describes repeated use of the interval method: about 95% of such intervals contain the true difference. This interval estimates a difference in population means, not a range containing 95% of students' scores.

An interval above zero supports a higher group-1 mean; one below zero supports a lower group-1 mean. An interval containing zero is consistent with equal means. A wide interval leaves substantial uncertainty about the size of the difference.

Connect the interval and the test

When a two-sided t test and its interval use the same standard error and degrees of freedom, a 5% test rejects zero exactly when the 95% interval excludes zero. The score interval excludes zero, agreeing with the p-value of about 0.036.

Compare the groups with an interval for their difference. Separate 95% intervals for the score means, about 74.6 to 82.2 and 67.4 to 76.8, overlap even though the difference is significant. Overlap of separate intervals is not the correct test of the difference.

Describe importance as well as evidence

The original units are often easiest to interpret. A 6.3-point difference may matter differently on a 20-point quiz and a 200-point exam. Cohen's d expresses a difference in pooled-standard-deviation units:

d=xˉ1−xˉ2sp.

For the score data, d≈6.3/11.13≈0.57. Rough benchmarks for the magnitude are 0.2 small, 0.5 medium, and 0.8 large. Use them as guides; importance depends on the setting.

With 10,000 people per group and a standard deviation of 10, a difference of 0.4 gives a standard error of about 0.141 and a t statistic of about 2.83. The p-value is about 0.005, but d=0.04. A precise study can detect a very small difference. A small study can also leave an important difference undetected.

Larger samples narrow an interval. Quadrupling both sample sizes, with similar spreads, roughly halves its margin of error. Lowering the confidence level also narrows it, while accepting a method with a lower long-run coverage rate.

Key Takeaways

  • A confidence interval estimates the population difference, not the spread of individual responses.
  • For matching two-sided t procedures, excluding zero agrees with rejecting the null.
  • Use an interval for the difference; overlap of separate mean intervals does not settle the comparison.
  • Cohen’s d expresses the mean difference in pooled-standard-deviation units.
  • Statistical significance and practical importance answer different questions.
  • Larger samples improve precision; higher confidence makes intervals wider.
3

Analyze measurements in pairs

Repeated measurements let each person or object provide a comparison with itself. A paired analysis follows those links by turning each pair into one difference. Work from the differences to the standard error, t test, and confidence interval. The same calculations also show why strong pairing can improve precision and why an observed before-and-after change needs careful interpretation when there is no comparison group.

3.1 A t test on the differences

A paired t test is a one-sample t test applied to the differences within pairs. Keep each pair together and subtract in one consistent order. The sample size is the number of pairs, not the total number of recorded measurements.

Turn pairs into one sample

Eight adults have their resting heart rates measured before and after a six-week exercise program. Define a difference as before minus after, so a positive value means a decrease.

AdultBeforeAfterBefore − after
172684
280764
368671
475705
584786
677752
770691
879745

All values are in beats per minute. The differences sum to 28, so their mean is dˉ=28/8=3.5. Calculate their sample standard deviation from these eight differences, giving sd≈1.927. Subtracting the original columns' standard deviations would not measure variation in individual changes.

Set hypotheses and inspect the differences

The parameter is μd, the population mean difference. Test H0:μd=0 against a two-sided alternative, or a prespecified directional alternative. With before minus after, Ha:μd>0 asks whether the mean heart rate is lower afterward.

The pairs should come from random sampling or an appropriate randomized design. Differences from separate pairs must be independent. Inspect the differences themselves for approximate normality when the number of pairs is small. Two separate normal-looking columns do not establish that their differences have a suitable distribution. Here a plot of the eight differences shows no outliers or strong skewness.

Calculate and interpret the test

The standard error and test statistic are

SE=sdn,t=dˉ−0sd/n,df=n−1.

For these eight pairs,

SE≈1.9278≈0.681,t≈3.50.681≈5.14.

There are 7 degrees of freedom. The two-sided p-value is about 0.0013; the prespecified one-sided decrease question gives about 0.0007. Both give evidence against zero mean change at a 0.05 significance level.

A suitable conclusion is: “The data give evidence that mean resting heart rate was lower after the program, with a sample mean decrease of 3.5 beats per minute.”

Separate a change from its cause

An uncontrolled before-and-after study records all changes over time together. Exercise, a seasonal change, or growing used to measurement could contribute. The paired test estimates a mean change; it does not isolate which explanation produced it. A randomized comparison group or a crossover study with randomized treatment order provides stronger evidence about treatment effects.

Eight people measured twice supply eight independent differences and 7 degrees of freedom. Counting 16 measurements as the sample size would exaggerate the information available about the mean change.

Key Takeaways

  • Compute one consistently ordered difference per pair before calculating the test.
  • Use the mean and standard deviation of the differences, with sample size equal to the number of pairs.
  • Check independence across pairs and the distribution of differences.
  • A before-and-after change alone does not isolate a treatment effect.

3.2 Paired intervals and the benefit of matching

A paired confidence interval estimates the mean difference between linked measurements. Its width depends on how much the differences vary, not on how widely the people differ from one another at the start.

Estimate the population mean change

Use the t critical value with one fewer degree of freedom than the number of pairs:

dˉ±t∗sdn,df=n−1.

For the heart-rate differences, the mean is 3.5 and the standard error is about 0.681 beats per minute. At 95% confidence with 7 degrees of freedom, the critical value is about 2.365. The margin of error is about 1.61, producing an interval from about 1.89 to 5.11 beats per minute.

“We are 95% confident that population mean resting heart rate was between about 1.9 and 5.1 beats per minute lower after the program than before it.” The positive interval uses before minus after. Defining after minus before would give a negative interval, from about −5.11 to −1.89, describing the same decrease.

The interval excludes zero, matching the two-sided paired test's rejection at the 5% level. It describes average change. Individual changes can be outside the interval, and an uncontrolled time comparison leaves the cause of the change unresolved.

Understand why the differences can be precise

Some adults have consistently higher heart rates than others. That person-to-person variation appears in both the before and after columns. Subtracting within a person removes the shared baseline, leaving variation in the change.

The before values have a standard deviation of about 5.42 and the after values about 4.12. The differences have a much smaller standard deviation, about 1.93. Before and after measurements are strongly positively correlated, with correlation about 0.955.

The relationship is

sd2=s12+s22−2rs1s2.

A positive correlation subtracts from the variance of the differences. For these data, the calculation is approximately 29.41+16.98−42.68=3.71, matching the squared standard deviation of the differences. The more closely each person's two measurements move together, the more baseline variation can cancel.

Preserve the pairing in the analysis

Treating the heart-rate columns as independent gives a standard error of about 2.41 and a two-sided p-value near 0.17. The paired standard error is about 0.681 and its p-value is about 0.0013. The independent analysis misses the information in the links between measurements.

Pairing is most helpful when the matching feature is strongly related to the response. Poor matches with correlation near zero gain little precision. A paired analysis also has only n−1 degrees of freedom, compared with up to 2n−2 for two independent groups of size n. Create meaningful pairs through the design, and use them as pairs in the calculation.

A compact report gives the estimate and units alongside its uncertainty: “Resting heart rate fell by a mean of 3.5 beats per minute, 95% CI 1.9 to 5.1; t(7) = 5.14, p = .001, two-sided.” The study description supplies the limits on causal interpretation.

Key Takeaways

  • A paired interval estimates the population mean of the within-pair differences.
  • Strong positive within-pair correlation can reduce the standard error.
  • Ignoring genuine pairs discards information about how measurements are linked.
  • Weak matching may give little precision benefit and leaves fewer degrees of freedom.
  • Report the direction, units, interval, statistic, degrees of freedom, and p-value.
4

Compare independent proportions

Click rates, recovery rates, and yes-or-no survey responses call for proportions. Their comparison has the same estimate-and-uncertainty structure as a comparison of means, but the standard error changes between testing and estimation. Learn why the equality test pools the counts, why the confidence interval keeps the two rates separate, and how to describe the result clearly in percentage points.

4.1 The two-proportion z test

A two-proportion z test compares two population proportions using a two-outcome response in independent groups. Label the outcome counted as a success, even if it is an undesirable event, and keep that definition the same in both groups.

Estimate the common proportion under the null

Let each group's success count be xi out of ni observations. Its sample proportion is p^i=xi/ni. To test equality, use H0:p1−p2=0 and a prespecified two-sided or directional alternative.

The null says both groups share one population success probability. Estimate it by combining successes and observations:

p^=x1+x2n1+n2.

Pool counts, not percentages. With 30 successes out of 50 and 100 out of 400, the pooled proportion is 130/450≈0.289. The simple average of 0.60 and 0.25 gives 0.425 and gives the small group too much weight.

Check independence and expected counts

Use independent random samples or random assignment, with independent observations within each group. When sampling without replacement, each sample should be below about 10% of its population.

For the normal approximation, check the expected success and failure counts under the null:

n1p^,n1(1−p^),n2p^,n2(1−p^).

Require all four to be at least 10. These test checks use the pooled proportion because the test models equal population rates.

Work through a click-rate comparison

An online store randomly sends subject line A to 600 customers and B to 600 other customers. The click counts are 156 and 120. The sample proportions are 0.26 and 0.20; their difference is 0.06. Under the null,

p^=156+120600+600=0.23.

Each group has expected counts of 138 clicks and 462 nonclicks. All four exceed 10. Calculate

SE0=p^(1−p^)(1n1+1n2)≈0.0243, z=p^1−p^2SE0≈0.060.0243≈2.47.

The two-sided standard normal p-value is about 0.0135. Reject equality at the 0.05 level. Random assignment supports a conclusion that the subject line affected clicks among customers like those in the experiment. The sample rate was 6 percentage points higher for A.

A prespecified alternative that A has the higher population rate gives about 0.007. Do not select a direction after seeing the difference.

Recognize related output and unsuitable designs

For an uncorrected two-sided comparison, a chi-square test of the corresponding two-by-two table gives the same p-value: χ2=z2 with 1 degree of freedom. Here the chi-square statistic is about 6.10. Software may apply a continuity correction, changing the reported statistic and p-value slightly.

Two responses from the same person are dependent. A yes-or-no survey before and after a debate supplies paired categorical data, so this independent-groups z test does not fit the design.

Key Takeaways

  • Pool successes over total observations when testing equal proportions.
  • Check all four expected counts using the pooled proportion.
  • Use the standard normal distribution for the two-proportion z statistic.
  • A two-sided uncorrected two-proportion test agrees with the two-by-two chi-square test.
  • Repeated yes-or-no responses from the same people require a paired categorical procedure.

4.2 Intervals for the difference between rates

A confidence interval for two independent proportions estimates their population difference without assuming equality. It therefore uses each sample's own rate to estimate its contribution to uncertainty.

Use separate sample proportions

The interval is

(p^1−p^2)±z∗p^1(1−p^1)n1+p^2(1−p^2)n2.

Use independent random samples or random assignment, independence within each sample, and at least 10 observed successes and 10 observed failures in each group. Check x1, n1−x1, x2, and n2−x2. The test's pooled expected counts and the interval's observed counts answer different approximation checks.

Common critical values are 1.645 for 90% confidence, 1.960 for 95%, and 2.576 for 99%. A higher confidence level expands the range.

Estimate the click-rate difference

For subject lines A and B, the rates are 0.26 and 0.20 in samples of 600 each. Their difference is 0.06. The unpooled standard error is

SE=0.26(0.74)600+0.20(0.80)600≈0.02423.

At 95% confidence, the margin of error is about 1.96(0.02423)≈0.0475. The interval runs from about 0.0125 to 0.1075. Rounded to one decimal percentage point, it is about 1.2 to 10.8 percentage points.

“We are 95% confident that the population click rate for A is between 1.2 and 10.8 percentage points higher than for B.” The interval estimates a difference in rates; it does not describe how many times a particular customer will click.

Keep percentage points separate from relative change

The difference between 26% and 20% is 6 percentage points. A relative percentage increase uses a baseline:

0.26−0.200.20=0.30.

Relative to B, A's sample click rate is 30% higher. The two descriptions refer to the same data but answer different questions. When reporting a proportion difference and its interval, percentage points keep the scale clear.

Read the uncertainty without forcing agreement

An interval entirely above zero supports a higher group-1 rate. An interval crossing zero leaves both directions, including equality, plausible at that confidence level. For the click data, a 99% interval is about −0.002 to 0.122, which includes zero and is wider than the 95% interval.

The equality test uses a pooled standard error; this interval uses separate estimates. Because the methods differ, they can disagree near a cutoff. Do not apply the exact t-test/interval equivalence to these two proportion procedures. Report both the testing method and the estimated difference, especially when the result is close to the significance threshold.

Key Takeaways

  • Use separate sample proportions for the interval standard error.
  • Check observed successes and failures in both groups.
  • State absolute rate differences and their intervals in percentage points.
  • Higher confidence produces a wider interval.
  • The pooled test and unpooled interval can disagree near a cutoff.
5

Choose an analysis and report it clearly

A useful report connects a statistical result to the study that produced it. Start with the response and the links between observations, choose the procedure before inspecting p-values, and check its conditions. Then read the software’s method, subtraction order, estimate, and uncertainty together. A clear conclusion tells the reader what differs, by how much, and how far the study design allows that conclusion to reach.

5.1 Choose the procedure from the question

The choice of a two-group procedure follows the response and the study design. Software can calculate several tests for the same spreadsheet, but only a design-based choice gives the numbers a useful interpretation.

Follow a short decision path
  1. Identify the response. A score, amount, or time is quantitative, so compare means. A two-outcome response calls for proportions.
  2. Look for real pairs. Repeated measurements or meaningful matched subjects lead to paired data. Separate unrelated groups lead to independent samples.
  3. Set the alternative. Choose a directional or two-sided question before examining the results. Fix the order of subtraction too.
  4. Check conditions. Verify the sampling or assignment process, independence, and the relevant plots or count checks.
Response and designProcedure
Quantitative, independent groupsWelch t test and interval; pool only with justified equal population spreads
Quantitative, paired observationsPaired t test and interval on the differences
Two outcomes, independent groupsTwo-proportion z test and difference interval
Two outcomes, repeated within peopleA procedure for paired categorical data
Apply the path to real designs

“Forty patients have blood pressure recorded before and after eight weeks.” Blood pressure is quantitative and each patient supplies a pair. Use a paired t procedure on 40 differences, checking their distribution.

“A survey asks 500 randomly chosen urban adults and 400 randomly chosen rural adults whether they own a car.” The response has two outcomes and the groups are independent. A two-proportion z procedure fits when the count and independence checks pass.

“Students are randomly assigned to music or silence and take a recall test.” Scores are quantitative and each student receives one condition. Choose an independent two-sample t procedure, with Welch as the default. If instead every student tried both conditions in randomized order, use the paired route.

Test the difference directly

Suppose group A differs significantly from a national average but group B does not. That does not establish a difference between A and B. Each separate test has its own uncertainty. Calculate and test the between-group difference itself.

Likewise, do not try pooled, Welch, one-sided, and two-sided tests and keep the smallest p-value. Repeatedly selecting the most favorable analysis increases the chance of a false positive. A research question determines the direction; the design determines the procedure.

Respond to failed conditions

A small quantitative sample with strong skewness or an extreme outlier can make a t procedure unreliable. Check for recording errors and investigate the data before choosing an appropriate method. Do not delete an accurate unusual observation simply to obtain significance.

For proportions, small success or failure counts weaken the normal approximation. A z test or normal-approximation interval is not supported when its count conditions fail. A design with real pairing also needs that dependence represented in the analysis; a large sample does not turn pairs into independent groups.

Key Takeaways

  • Choose the procedure from response type and dependence before calculating a p-value.
  • Test a group difference directly; comparing separate significance decisions is insufficient.
  • Fix the alternative and method in advance to avoid selecting the most favorable result.
  • Failed plot or count checks require a suitable analysis, not a more favorable significance threshold.

5.2 Read the output and write the conclusion

Software output reports a method's calculations, but the reader still needs the design, units, and meaning of the comparison. Begin by checking which group comes first and whether the chosen method matches the design.

Find the estimate and its uncertainty

Locate sample sizes, means and standard deviations, or counts and proportions. Then find the estimated difference, confidence interval, statistic, degrees of freedom for t procedures, and p-value. A negative statistic may simply mean that the program subtracted the groups in the reverse order.

For the class-score data, R-style output gives “Welch Two Sample t-test,” a statistic of 2.149, degrees of freedom 52.269, a p-value about 0.03628, and a 95% interval from 0.418 to 12.182. The heading identifies the method. Fractional degrees of freedom are common for Welch, though a whole-number result can occur too. With formula-based grouping, factor levels determine the order of subtraction; inspect the labels.

In SPSS, “Equal variances assumed” gives the pooled result and “Equal variances not assumed” gives Welch. Levene's significance value tests spreads, not means. Read the t-test p-value in the row for the method you selected.

Know what a spreadsheet returns

Excel's T.TEST(array1, array2, tails, type) returns a p-value. Set type to 1 for paired data, 2 for pooled independent samples, or 3 for Welch. Set tails to 2 for a two-sided comparison. The function does not also return the difference, interval, or test statistic.

With tails set to 1, Excel returns half the two-sided value, regardless of the observed sign. If the data point in the prespecified direction, that is the appropriate one-sided p-value. If they point the opposite way, use one minus the returned value. Check the sign separately; a small returned tail area can otherwise support the wrong direction.

R's prop.test can apply a continuity correction by default, so its result can differ from an uncorrected hand calculation. Read the method details when comparing outputs.

Build a report a reader can check

State the design and population question, the procedure and conditions checked, the estimated difference with units and interval, and the test result. For example:

“Students in the flipped class (M = 78.4, SD = 9.2, n = 25) averaged 6.3 points higher than those in the lecture class (M = 72.1, SD = 12.5, n = 30). Welch's t(52.3) = 2.15, p = .036; 95% CI for the difference, 0.4 to 12.2 points.”

Add how the students entered the classes. Random assignment supports a causal comparison; self-selection leaves possible confounding, such as prior achievement. Generalization depends on the sampling process.

Report very small p-values as “p < .001” when appropriate. A displayed value of .000 is rounded, not a probability of exactly zero. Pair evidence with the estimated effect and interval: a tiny p-value alone does not tell the reader whether the difference is important.

Key Takeaways

  • Read the method, group order, and interval together before interpreting the sign.
  • Levene’s p-value concerns variances; it is not the t-test p-value for means.
  • Excel’s test type selects paired, pooled, or Welch; a one-sided result also needs a direction check.
  • Report the estimate, units, confidence interval, statistic, degrees of freedom where relevant, and p-value.
  • Match causal and population claims to assignment and sampling.

Two-Sample T-Test examples

5 Walkthroughs

1

Find the design and the uncertainty

10 steps
Classify the observations, fix a subtraction order, and combine the uncertainty in two independent estimates.
  1. 1
    IntroductionStart behind the numbers

    Two columns of measurements can represent very different studies. One may compare unrelated people; another may measure each person twice.

    That link decides what counts as an independent piece of information. First identify the response and the design. Then name the difference you want to estimate and calculate its uncertainty. A formula is useful only when it represents the way the observations were collected.

  2. 2
    ExplanationLook for a real match

    Independent samples have no specific links between observations across groups. Separate random samples of nurses and teachers are an example.

    Paired data connect observations one to one: before and after on the same client, two eyes of the same patient, or meaningful matched subjects. A pair contributes one difference. Equal column lengths alone say nothing about whether those links exist.

  3. 3
    ExampleChoose the population quantity

    The response tells you what kind of difference to estimate.

    • Quantitative, independent groups: population mean difference μ1−μ2.
    • Quantitative, paired measurements: population mean difference within pairs μd.
    • Two outcomes, independent groups: population rate difference p1−p2.

    A time in seconds is quantitative. “Completed” or “not completed” has two outcomes, even when the responses are stored as 1 and 0.

  4. 4
    ChallengeClassify a machine comparison

    A factory samples 18 machines. Each machine makes one part using setting A and one using setting B, with order randomized. Part mass is recorded. What design and population quantity fit this comparison?

    ---reveal---

    The masses are quantitative and linked within machines, so use a paired analysis. Define a difference, such as A minus B, and estimate the population mean within-machine difference. The 18 machines provide 18 differences.

  5. 5
    TipWrite the order in words

    With “new minus old,” a positive difference means the new value is higher. For a score that may be desirable; for a task time it may mean slower performance.

    If you reverse the order, negate and reverse the interval endpoints. An interval from 1 to 6 becomes −6 to −1. The two-sided p-value stays the same because the standardized distance from zero is unchanged.

  6. 6
    ExplanationCombine variances, not standard errors

    Independent samples each add sampling variation to a difference. Their variances add even though their statistics are subtracted.

    SE=SE12+SE22.

    With standard errors of 3 and 4, the variance contributions are 9 and 16. Their sum is 25, so the combined standard error is 5. Subtracting the errors would wrongly make a comparison seem more precise merely because two sources of uncertainty are present.

  7. 7
    ConnectionUse one structure for tests and intervals

    A test measures how far the estimate lies from a null difference, usually zero:

    statistic=(estimate−null difference)/SE.

    An interval estimates the population difference:

    estimate±critical value×SE.

    The critical value reflects the confidence level and reference distribution. Means use t procedures when spreads are estimated. Suitable proportion comparisons use the standard normal distribution.

  8. 8
    ChallengePredict the limit on precision

    Two independent mean estimates have standard errors of 2 and 6 points. The first sample becomes much larger, with similar spread. What value does the standard error of the difference approach?

    ---reveal---

    It approaches 6 points. The first variance contribution approaches zero, but the second stays at 36. The square root of their sum therefore approaches 6. One huge sample cannot remove uncertainty from the other group's estimate.

  9. 9
    ChallengeConnect design with the conclusion

    A random sample of 24 volunteers each tries two reading settings in randomized order. Each supplies a reading-time difference. Would the independent-groups standard error preserve this design? What is the correct standard error?

    ---reveal---

    No. The measurements are linked within volunteers, so form 24 differences and use sd/24. The original columns are dependent. Randomized order strengthens the comparison, while the population claim depends on the population from which those volunteers were sampled.

  10. 10
    RecapCarry the design into the calculation

    Identify the response, preserve meaningful pairs, and fix the subtraction order. Independent differences combine variance contributions; paired measurements become one sample of differences.

    Tests standardize a difference from the null. Intervals attach a margin of error to an estimate. Random sampling supports generalization, and random assignment supports causal comparison. Keep those design features visible when stating what the result means.

2

Compare means with a test and an interval

17 steps
Work through Welch and pooled calculations, then interpret uncertainty and practical size.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionHow different are the class means?
  2. 2
    ExplanationSet the question before the result
  3. 3
    ExampleFind each group’s uncertainty
  4. 4
    ExampleStandardize the observed difference
  5. 5
    Key InsightRead the p-value in the correct direction
  6. 6
    ChallengeCalculate a new Welch statistic
  7. 7
    ExplanationPooling adds an assumption
  8. 8
    ExampleCompare the two calculations
  9. 9
    Key InsightUnequal sizes can expose the problem
  10. 10
    ChallengeDecide whether a variance test settles the choice
  11. 11
    ExampleAttach an interval to the estimate
  12. 12
    ExplanationKeep means separate from individual scores
  13. 13
    ConnectionPut the effect on a common scale
  14. 14
    ChallengeSeparate detection from importance
  15. 15
    TipChange precision deliberately
  16. 16
    ChallengeConnect the interval to a testing decision
  17. 17
    RecapReport evidence and size together
3

Turn pairs into differences

12 steps
Carry out a paired test and interval, then explain how within-pair correlation affects precision.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionUse the links within each pair
  2. 2
    ExampleForm the heart-rate differences
  3. 3
    ExplanationCheck the sample that is actually tested
  4. 4
    ExampleStandardize the mean change
  5. 5
    ChallengeFind the right count and error
  6. 6
    TipA measured change still needs an explanation
  7. 7
    ExampleBuild the paired interval
  8. 8
    Key InsightCancel shared baseline variation
  9. 9
    ChallengePredict when pairing helps less
  10. 10
    ConnectionKeep the sign and its meaning together
  11. 11
    ChallengeCombine a test decision with interval meaning
  12. 12
    RecapAnalyze changes at the pair level
4

Test and estimate a rate difference

12 steps
Pool counts for the equality test, use separate rates for the interval, and interpret the difference in percentage points.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionTwo rates, two kinds of uncertainty
  2. 2
    ExplanationPool successes under equality
  3. 3
    ExampleCheck the null model’s expected counts
  4. 4
    ExampleCalculate the z statistic
  5. 5
    ChallengePool unequal groups
  6. 6
    ConnectionRecognize a different output label
  7. 7
    ExplanationUse separate rates for estimation
  8. 8
    ExampleBuild the rate-difference interval
  9. 9
    ChallengeChoose the scale of the difference
  10. 10
    Key InsightDo not force exact cutoff agreement
  11. 11
    ChallengeCarry the method through a new interval
  12. 12
    RecapKeep testing and estimation distinct
5

Choose the method and audit the report

10 steps
Use the response and design to select a test, then read software and check the claims in a result report.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionA report starts before software
  2. 2
    ExplanationFollow the decision path
  3. 3
    ChallengeIdentify the right analysis
  4. 4
    Key InsightCompare the groups directly
  5. 5
    ExplanationCheck labels before signs
  6. 6
    TipCheck the spreadsheet’s type and tail
  7. 7
    ChallengeRead the requested tail
  8. 8
    ExampleWrite an estimate with its uncertainty
  9. 9
    ChallengeAudit a complete conclusion
  10. 10
    RecapGive the reader enough to judge

Two-Sample T-Test practice questions

40 Practice Questions in 4 sets

Set 1: Designs, estimates, and first calculations10 Practice Questions

Question 1 of 10

Twenty printers are each tested with two paper brands. Each printer’s jam count is recorded for both brands. How are the two sets of measurements related?
  1. They are independent across brands.
  2. They are paired within each printer.
  3. They are paired by equal jam counts.
  4. They are independent if sizes match.
Show answerHide answer
Answer: B
The same printer supplies one measurement for each brand, creating a real link within that printer. Equal sample sizes alone would not establish pairing; the repeated measurement is what makes this design paired. Preserve those printer links when forming the differences.

Question 2 of 10

Two independent sample means have standard errors of 6 and 8 hours. What is the standard error of their difference?
  1. 14 hours
  2. 2 hours
  3. 100 hours
  4. 10 hours
Show answerHide answer
Answer: D
Independent variances add, so the standard error is 62+82=100=10 hours. Adding the two standard errors directly would give 14, but the addition rule applies to their squares. Taking the square root returns the uncertainty to hours.

Question 3 of 10

Independent samples have means 42 and 38, standard deviations 6 and 8, and sizes 36 and 64. The t conditions hold. What is Welch’s statistic for testing equal means, using group 1 minus group 2?
  1. About 2.83
  2. About 2.00
  3. About 0.29
  4. About 4.00
Show answerHide answer
Answer: A
The two variance contributions are 62/36=1 and 82/64=1, giving a standard error of 2. Dividing the mean difference of 4 by that value gives about 2.83. A statistic of 2.00 comes from adding the two individual standard errors, which should be combined through their squared values.

Question 4 of 10

What additional population assumption does a pooled independent-samples t test make compared with Welch’s test?
  1. The population means are equal.
  2. The sample sizes are equal.
  3. The population variances are equal.
  4. The sample means are normal.
Show answerHide answer
Answer: C
The pooled procedure estimates one common population variance from both samples. Equal means belong to the null hypothesis being tested, not to the extra assumption that justifies pooling. Equal sample sizes are also unnecessary for calculating a pooled test.

Question 5 of 10

A 95% confidence interval for population mean delivery time, depot A minus depot B, is −4.8 to −1.2 minutes. What does it estimate?
  1. A’s population mean is 1.2 to 4.8 minutes higher.
  2. 95% of A’s deliveries are 1.2 to 4.8 minutes faster.
  3. A’s population mean is 1.2 to 4.8 minutes lower.
  4. The mean difference is exactly −3.0 minutes.
Show answerHide answer
Answer: C
The entire interval is negative under A minus B, so it estimates a lower population mean time at A. It gives a range for the difference in means, not a range containing 95% of individual deliveries. The midpoint is an estimate, not an exact known population difference.

Question 6 of 10

A technician weighs each of 14 sealed containers before and after storage. How many degrees of freedom does the paired t test use?
  1. 13
  2. 14
  3. 26
  4. 27
Show answerHide answer
Answer: A
There are 14 complete pairs, so there are 14 differences and 14−1=13 degrees of freedom. Counting the 28 separate weighings and subtracting one would treat linked measurements as independent information. The test works with one difference per container.

Question 7 of 10

A paired study has 16 differences with mean 3 cm and standard deviation 4 cm. Using t∗=2.131, what is the 95% interval for the population mean difference?
  1. About −5.52 to 11.52 cm
  2. About 1.93 to 4.07 cm
  3. About 2.47 to 3.53 cm
  4. About 0.87 to 5.13 cm
Show answerHide answer
Answer: D
The standard error is 4/16=1 cm, so the margin of error is 2.131 cm. Centering that margin at 3 gives about 0.87 to 5.13 cm. Multiplying the critical value by 4 directly uses the standard deviation of individual differences instead of the standard error of their mean.

Question 8 of 10

In independent groups, 18 of 60 members and 42 of 140 members respond yes. What pooled proportion is used to test equal population rates?
  1. 0.15
  2. 0.30
  3. 0.60
  4. 0.43
Show answerHide answer
Answer: B
Combine the 60 successes and 200 observations to obtain 60/200=0.30. Adding the rates gives 0.60, which counts the same type of proportion twice without the required denominator. Pooling counts preserves each group’s contribution to the combined sample.

Question 9 of 10

A signup rate rises from 16% in group B to 20% in group A. What is A minus B, expressed as a percentage-point difference?
  1. 4 percentage points
  2. 25 percentage points
  3. 0.04 percentage points
  4. 20 percentage points
Show answerHide answer
Answer: A
Subtracting the two percentage rates gives 20 minus 16, or 4 percentage points. The relative increase is 4 divided by 16, or 25%, which uses B as its baseline. That relative percentage is a different quantity from the absolute difference between the rates.

Question 10 of 10

Participants each use two navigation apps in randomized order. Travel time is recorded for every trip; complete pairs are independent and their differences look roughly normal. What analysis best addresses whether population mean travel time differs between the apps?
  1. A two-sided Welch t test on the two time columns.
  2. A one-sided paired t test in the faster observed direction.
  3. A two-proportion z test on which app was faster.
  4. A two-sided paired t test on within-person differences.
Show answerHide answer
Answer: D
Travel time is quantitative, and using both apps links the observations within each participant. The question asks whether means differ, so a two-sided paired t test fits. Welch would discard the links; choosing a one-sided direction after observing the faster app would change the question using the results.
Set 2: Carry out the comparison10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A pooled independent-samples test has n1=12, n2=18, and sample standard deviations of 4 and 6. What pooled variance does it use?
  1. About 26.00
  2. About 5.31
  3. About 28.14
  4. About 36.00
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

Two unrelated groups have 28 observations each. A researcher sorts both columns and matches values by rank. What is the correct design classification for inference?
  1. Paired groups; equal ranks establish a natural match.
  2. Paired groups; equal sizes establish a natural match.
  3. Independent groups; rank sorting creates no real pairs.
  4. Independent groups only if their sample means differ.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

Two independent means have standard errors of 1 and 5 points. The first sample becomes extremely large while the second is unchanged. With similar population spreads, what happens to the standard error of the difference?
  1. It approaches 5 points.
  2. It approaches 0 points.
  3. It approaches 4 points.
  4. It approaches 6 points.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A prespecified alternative is that group A’s population mean is higher than B’s. The observed difference A minus B is negative, and the two-sided t-test p-value is 0.08. What is the appropriate one-sided p-value?
  1. 0.04
  2. 0.08
  3. 0.92
  4. 0.96
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

Independent groups have a mean difference of 5 units and a pooled standard deviation of 10 units. What is Cohen’s d?
  1. 2.00
  2. 0.50
  3. 0.05
  4. 5.00
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A paired test uses “before minus after.” A prespecified claim is that mean task time decreases after training. What is the alternative hypothesis?
  1. The population mean difference is less than zero.
  2. The population mean difference is greater than zero.
  3. The sample mean difference is greater than zero.
  4. The population mean difference is equal to zero.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Independent random samples have 3 successes out of 20 and 27 out of 80. Using a minimum expected count of 10, does a pooled two-proportion z test meet the large-count condition?
  1. No; the smaller group’s expected success count is 6.
  2. Yes; the combined expected success count is 30.
  3. No; the larger group’s expected failure count is 24.
  4. Yes; each group has at least 20 observations.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A 95% confidence interval for a rate difference is 0.03 to 0.11. With the same data and method, what changes when confidence rises to 99%?
  1. The interval narrows around the same estimate.
  2. The estimate increases and the width stays fixed.
  3. The confidence level of each individual outcome rises.
  4. The interval widens around the same estimate.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

Separate random samples of office and remote workers report whether they use a standing desk. With the count conditions met, what procedure tests whether the population rates differ?
  1. A paired-samples t test.
  2. A pooled-variance t test.
  3. A two-proportion z test.
  4. A one-sample t test.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A random sample of employees is assigned at random to two break schedules. Output for A minus B gives a mean productivity difference of 0.8 items per hour, 95% CI 0.2 to 1.4, and p = .010. What conclusion is supported?
  1. Schedule A increased every employee’s productivity by 0.8 items per hour.
  2. Schedule A increased mean productivity in the sampled population.
  3. The schedules have identical population productivity distributions.
  4. The probability that equal population means are true is 1%.
Show answerHide answer

Save this lesson to see this answer.

Set 3: Interpret evidence and diagnose errors10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A prespecified analysis asks whether A’s mean exceeds B’s. The observed mean of A is lower. Excel’s T.TEST with tails = 1 returns .015. What p-value belongs to the prespecified alternative?
  1. 0.985
  2. 0.015
  3. 0.030
  4. 0.970
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

For group A minus group B, a 95% interval is −9 to −3 units and the two-sided p-value is .012. If the report switches to B minus A, what are the corresponding interval and p-value?
  1. −3 to −9 units; p = .012
  2. 3 to 9 units; p = .006
  3. −9 to −3 units; p = .988
  4. 3 to 9 units; p = .012
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

Two independent samples have sizes 8 and 120. The smaller sample’s plot has strong right skew and one extreme value; the larger sample looks roughly normal. A researcher uses Welch’s test because the total size exceeds 40. What is the main problem?
  1. Welch’s test requires the two sample sizes to match.
  2. The large group must be reduced to eight observations.
  3. The small group’s shape still undermines the t approximation.
  4. The total sample size should replace both denominators.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

For independent samples, group A has n = 9 and s = 14, while B has n = 81 and s = 3. Assume plots support t procedures. Why can pooling give a much smaller p-value than Welch for the same nonzero mean difference?
  1. The large low-spread group can pull the pooled error downward.
  2. Welch subtracts the two sample variances before taking a root.
  3. The large low-spread group forces the true mean difference upward.
  4. Pooling gives the small high-spread group most of the variance weight.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A randomized trial estimates a gain of 0.6 points, 95% CI 0.2 to 1.0, with p = .004. Before the study, investigators defined a gain of at least 3 points as practically useful. What does the result support?
  1. A useful gain, because any p-value below .05 is sufficient.
  2. A detectable gain, with the interval below the practical target.
  3. No gain, because every plausible gain must exceed 3 points.
  4. A gain of at least 3 points, because the interval excludes zero.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A paired study records both measurements on 19 machines. Which data should be plotted to check the paired t procedure’s small-sample shape condition?
  1. The 19 within-machine differences.
  2. The 38 measurements in one pooled plot.
  3. The two original means in a bar chart.
  4. The 19 sorted values from either column.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Two measurements within each pair have sample standard deviations 5 and 5, with correlation 0.8. What is the sample variance of their differences?
  1. 50
  2. 40
  3. 10
  4. 0
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Independent groups have 50 successes out of 100 and 30 out of 300. What common proportion is used in a test of equal population proportions?
  1. 0.30
  2. 0.20
  3. 0.40
  4. 0.60
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

Independent samples have rates 0.40 and 0.25 and sizes 100 and 200. Count conditions hold. What standard error is used for a confidence interval for the rate difference?
  1. About 0.0796
  2. About 0.0561
  3. About 0.00334
  4. About 0.0578
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

Group A has p = .02 against a common benchmark, while group B has p = .20 against that benchmark. What is the sound next step for assessing whether A and B have different population means?
  1. Conclude A and B differ because their decisions differ.
  2. Subtract the two p-values and compare the result with .05.
  3. Test the between-group mean difference with a suitable procedure.
  4. Conclude A and B agree because only one result is significant.
Show answerHide answer

Save this lesson to see this answer.

Set 4: Evaluate a complete analysis10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

Software displays a p-value as .000 after rounding to three decimal places. How should a report express this result?
  1. p = .000
  2. p < .001
  3. p = .001
  4. p > .001
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

Researchers randomly assign volunteers to two training programs. One program has a significantly higher mean skill score. What scope of conclusion follows from the stated design?
  1. A causal comparison for the participants; wider population fit needs support.
  2. A population-wide effect; volunteers are a random population sample.
  3. An association only; random assignment cannot support causal comparison.
  4. An individual guarantee; significance means each person would improve.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

Welch’s t test gives p = .18 for a two-sided difference at a .05 significance level. What is the appropriate testing conclusion?
  1. The population means have been established as equal.
  2. There is an 18% probability that the means are equal.
  3. There is insufficient evidence of a population mean difference.
  4. The population mean difference has been established as small.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

Two independent groups have equal sample sizes but very different sample standard deviations. For the same mean difference, how can Welch and pooled t results compare?
  1. Their degrees of freedom match, but standard errors must differ.
  2. Both p-values must match because sample sizes are equal.
  3. The pooled t statistic must be larger because one spread is large.
  4. Their t statistics match, but degrees of freedom can change p-values.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A matching two-sided Welch test and 95% interval use the same standard error and degrees of freedom. The interval is −0.4 to 6.0 units. A minimum useful increase was set at 4 units. What conclusion fits at the 5% level?
  1. Reject zero; a useful increase has been established.
  2. Do not reject zero; a useful increase remains within the interval.
  3. Do not reject zero; a useful increase has been ruled out.
  4. Reject zero; the population difference must equal 2.8 units.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

Twelve participants try two keyboard layouts in randomized order. Their speed differences have mean 4 words per minute and standard deviation 6. The differences are independent and look roughly normal. What statistic and degrees of freedom test zero mean difference?
  1. t ≈ 3.27, df = 23
  2. t ≈ 2.31, df = 11
  3. t ≈ 0.67, df = 11
  4. t ≈ 2.31, df = 22
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

For paired measurements, both marginal standard deviations equal 8 units. Compare correlation 0.9 with correlation 0.1, keeping the number of pairs and confidence level fixed. What happens to the paired interval width?
  1. It is wider at 0.9 because the original variances become larger.
  2. It is unchanged because the original standard deviations match.
  3. It is narrower at 0.1 because the difference variance is 12.8, not 115.2.
  4. It is narrower at 0.9 because the difference variance is 12.8, not 115.2.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

An uncorrected two-sided two-proportion test reports z = −2.4. What chi-square statistic and degrees of freedom give the equivalent two-by-two table test?
  1. χ² = 5.76, df = 1
  2. χ² = −5.76, df = 1
  3. χ² = 2.40, df = 2
  4. χ² = 4.80, df = 1
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

Near a .05 cutoff, an uncorrected pooled two-proportion test rejects equality, while a simple 95% separate-proportion interval includes zero. Both calculations are correct and conditions hold. How should this be explained?
  1. A two-sided test corresponds to a one-sided interval, so their tail counts differ.
  2. The interval estimates population rates, while the test compares individual outcomes.
  3. They use different standard errors, so exact cutoff agreement is not assured.
  4. A 95% interval corresponds to a .01 test, so their significance thresholds differ.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

An observational survey compares two independent random samples. Welch’s output for A minus B gives a mean difference of −2.0 units, 95% CI −3.5 to −0.5, and p = .012. What conclusion fits the sign and design?
  1. A’s population mean is higher; the result is an association.
  2. A’s population mean is lower; group membership caused the difference.
  3. A’s sample mean is lower; the population direction remains unresolved.
  4. A’s population mean is lower; the result is an association.
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

53 Key Terms, each with its definition

A

Alternative hypothesis
An alternative hypothesis states the population difference the study seeks evidence for, with its direction chosen before analysis.
A question about any mean change calls for a two-sided alternative, allowing either direction.

C

Cohen’s d
Cohen’s d expresses an independent mean difference in pooled-standard-deviation units, allowing a standardized description of its size.
A mean difference of 3 points with pooled standard deviation 6 points gives Cohen’s d of 0.5.
Condition check
A condition check evaluates whether the design and data support a procedure’s assumptions and approximation before interpreting its results.
A paired t analysis checks the differences, while a proportion z test checks pooled expected counts.
Confidence interval for a mean difference
A confidence interval for a mean difference gives a range estimating the difference between population averages in a specified order.
An interval from −6 to −2 minutes estimates a lower group-1 mean when the order is group 1 minus group 2.
Confidence level
A confidence level is the long-run share of intervals from a method that contain the true population quantity under its conditions.
Across repeated studies, a 95% interval method covers the true mean difference about 95% of the time.
Confounding
Confounding occurs when another influence is mixed with the group or treatment difference, making its separate effect unclear.
Prior achievement can confound a comparison when students choose which teaching format they attend.
Conservative degrees of freedom
Conservative degrees of freedom use the smaller sample size minus one for an independent t procedure, giving more cautious inference.
For sample sizes 18 and 29, the conservative table choice is 17 degrees of freedom.
Continuity correction
A continuity correction adjusts a continuous approximation to discrete count data and can change the resulting statistic and p-value.
R’s proportion-test output may differ from an uncorrected hand calculation because of this correction.
Crossover design
A crossover design gives each participant both treatments, with treatment order randomized to strengthen the within-person comparison.
Each typist tries both keyboard layouts, with chance deciding which layout is used first.

D

Degrees of freedom
Degrees of freedom select the t distribution used for inference and reflect the uncertainty in estimating population spread.
Welch output can report 27.4 degrees of freedom because its approximation combines two variance estimates.

E

Equal-variance assumption
The equal-variance assumption says the two populations share the same spread, permitting their sample variances to be pooled.
Similar sample standard deviations support consideration of pooling but do not establish population equality.
Expected count
An expected count is the number predicted in an outcome category under the null model, found from group size and the pooled rate.
A group of 100 with a pooled success rate of 0.30 has 30 expected successes and 70 expected failures.

F

False positive
A false positive occurs when a test rejects a true null hypothesis; selecting a favorable analysis after seeing data increases this risk.
Trying several tests and reporting only the smallest p-value can create more false-positive findings.

I

Independent samples
Independent samples are groups whose observations have no specific links across groups and whose random variation is independent.
Separate random samples of nurses and teachers can support a comparison of their mean work hours.

L

Levene’s test
Levene’s test assesses equality of population variances and appears beside mean-comparison results in some independent-samples output.
Levene’s significance value is separate from the p-value testing equality of the two population means.

M

Margin of error
A margin of error is the distance from an interval’s estimate to an endpoint, calculated as a critical value times standard error.
An estimated difference of 7 with a margin of error of 3 gives an interval from 4 to 10.
Mean paired difference
The mean paired difference is the average of the consistently ordered sample differences and estimates the population mean change.
Differences of 2, 4, and 6 seconds have a mean paired difference of 4 seconds.

N

Null hypothesis
A null hypothesis states the population claim tested; in an equality comparison, it sets the difference between groups to zero.
The observed means can differ even when the null claims that the two population means are equal.

O

Observed count
An observed count is the number of outcomes actually recorded in a sample, used to check successes and failures for a rate interval.
An interval for a sample with 24 successes out of 60 checks the counts 24 and 36.
One-sided test
A one-sided test seeks evidence in one population direction chosen before examining results and calculates a tail probability for that direction.
A prespecified claim that layout A is faster uses the tail matching the defined speed difference.
Order of subtraction
The order of subtraction identifies which group or measurement comes first and determines the sign of an estimated difference.
Changing A minus B to B minus A changes a difference of 5 minutes to −5 minutes.

P

P-value
A p-value is the probability, under the null and model conditions, of a test statistic at least as extreme as the observed statistic.
A two-sided p-value counts extreme standardized differences in both the positive and negative directions.
Paired confidence interval
A paired confidence interval estimates the population mean within-pair difference using its sample mean, standard error, and t critical value.
An interval of 1 to 5 seconds for before minus after estimates a mean decrease in completion time.
Paired data
Paired data consist of two observations linked within each person, object, or meaningful match established through the design.
Measuring each patient’s left and right eye creates pairs that preserve the within-person link.
Paired t test
A paired t test tests a population mean within-pair difference by applying a one-sample t procedure to the sample differences.
Twenty workers tested twice contribute 20 differences and 19 degrees of freedom to a paired t test.
Percentage point
A percentage point is one unit on a percentage scale, used to express an absolute difference between two rates stated as percentages.
A rate of 28% exceeds a rate of 22% by 6 percentage points, not by a 6% relative increase.
Pooled proportion
A pooled proportion combines successes across groups and divides by their combined size to estimate a common rate under equality.
Combining 20 of 80 and 40 of 120 gives a pooled proportion of 60 out of 200, or 0.30.
Pooled standard deviation
The pooled standard deviation is the square root of the pooled variance, expressed in the same units as the measurements.
If the pooled variance is 49 square minutes, the pooled standard deviation is 7 minutes.
Pooled variance
A pooled variance combines sample variances using their degrees of freedom as weights to estimate an assumed common population variance.
A group of 40 contributes more weight to a pooled variance than a group of 10.
Pooled-variance t test
A pooled-variance t test compares independent population means using one common variance estimate under an equal-variance assumption.
When equal population spreads are justified, the pooled test uses both samples to estimate that spread.
Population mean difference
A population mean difference compares population averages in a fixed order, or averages the differences in a paired population.
With new minus old, a negative population mean time difference favors the faster new process.
Practical importance
Practical importance concerns whether the size of a difference matters for the decision or setting, beyond whether it is detectable.
A 0.2-minute reduction may be detectable yet too small to justify an expensive delivery-system change.
Precision
Precision describes how tightly an estimate is determined by the data; a smaller standard error gives a narrower interval at fixed confidence.
Meaningful pairing can improve precision by removing baseline variation shared by each person’s measurements.
Preliminary variance test
A preliminary variance test checks equality of spreads before another analysis; using its result to select a t test can distort error rates.
Levene’s test may miss unequal spreads in small samples, so its p-value is a weak method-selection rule.

R

Random assignment
Random assignment allocates treatments through chance and supports causal comparison by distributing other influences without systematic preference.
Randomly assigning volunteers to two training programs supports a causal comparison for those participants.
Random sampling
Random sampling selects observations through a chance process and supports inference from the sample to the population sampled.
A random sample of residents supports conclusions about those residents’ population, with sampling uncertainty.
Relative percentage increase
A relative percentage increase divides the increase by the chosen baseline and expresses that ratio as a percentage of the baseline.
A rise from 20% to 25% is a 25% relative increase because the increase is one quarter of the baseline.
Response variable
A response variable is the outcome measured in a study; its type helps determine whether the comparison concerns means or proportions.
A completion time is quantitative, while a completed-or-not result has two categories.
Result report
A result report connects the study design and procedure with the estimated difference, units, interval, test result, and contextual conclusion.
A report pairs a mean difference of 4 minutes with its interval and p-value so the reader can judge its size.

S

Sample proportion
A sample proportion is a group’s count of a specified outcome divided by its sample size, estimating the corresponding population rate.
A campaign with 72 clicks among 300 recipients has a sample click proportion of 0.24.
Sampling distribution
A sampling distribution describes how a statistic varies across repeated random samples collected using the same design.
Repeated pairs of samples produce different mean differences even when the population means agree.
Software subtraction order
The software subtraction order specifies which labeled group comes first in the reported difference, affecting signs and interval endpoints.
Checking factor labels prevents an analyst from describing a negative difference as an increase for the wrong group.
Standard deviation of differences
The standard deviation of differences measures how much individual within-pair differences vary around their sample mean.
Similar before values can still produce a large standard deviation of differences if changes vary widely.
Standard error of a difference
The standard error of a difference measures the sampling variation of the difference between two estimated population quantities.
Independent mean standard errors of 9 and 12 combine to give a difference standard error of 15.
Statistical significance
Statistical significance means a test’s p-value meets the chosen rejection threshold, providing evidence against its null hypothesis.
A precise estimate can make a tiny mean difference statistically significant in a very large sample.

T

Test statistic
A test statistic measures how far the observed estimate lies from the null value in standard-error units for the chosen procedure.
A negative t statistic can simply mean that software subtracted the groups in the reverse order.
Two-proportion z test
A two-proportion z test compares independent population rates using a pooled null standard error and the standard normal distribution.
Independent randomized email groups can be compared on click rates when their expected counts are large enough.
Two-sided test
A two-sided test looks for a population difference in either direction and includes extreme test-statistic values in both tails.
A question asking whether two layouts have different mean typing speeds calls for a two-sided comparison.

U

Unpooled proportion standard error
An unpooled proportion standard error combines uncertainty from the two separate sample rates to estimate a difference without equality.
A difference interval uses each group’s own rate even though the equality test pools its counts.

V

Variance of differences
The variance of differences measures squared spread in paired changes and includes the effect of correlation between the two measurements.
With both standard deviations equal to 5 and correlation 0.8, the difference variance is 10.

W

Welch’s t test
Welch’s t test compares independent population means using separate sample variance estimates and approximate degrees of freedom.
Welch’s method allows a small high-spread group and a larger low-spread group to contribute different uncertainty.
Within-pair correlation
Within-pair correlation describes how closely the two measurements in each pair vary together across the sample of pairs.
Strong positive correlation can leave small changes even when people differ widely in their starting values.
Within-pair difference
A within-pair difference subtracts two linked measurements in a fixed order, producing one observation for each pair in the analysis.
A machine weighed before and after storage contributes one weight difference to the paired sample.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started