Learn

Learning preferences

Make learning more comfortable. Changes apply immediately.

Enlarges page content, including diagrams and their labels. You can also use your browser’s zoom.

Choose the colours that are easiest for you to distinguish. Applies to lesson diagrams and lab plots. Labels, shapes, hatching and line patterns also distinguish meanings. Source photographs and raw image brightness stay unchanged; mask-only views are available for image overlays.

ExampleComparisonSample link

Saved in this browser on this device. Preferences are separate from progress backups.

Lesson 2 of 3

Complete one-mean, paired and Welch analyses

Choose the independent unit before calculating t probabilities and confidence intervals from summary statistics.

Loading your saved responses…

Try the optional starting-point checks and targeted refreshers. You can continue directly into this lesson.

Try

Twenty independent measurements from a stipulated normal process have sample mean 14.2 minutes and sample standard deviation 3.6 minutes. The question is whether the population mean μ exceeds 12 minutes. Before entering summaries, state H₀:μ=12 and Hₐ:μ>12, and choose α=0.05. A second question asks for a 95% interval for μ.

The standard deviation describes variation among measurements. The standard error of their mean is s/√n. It is smaller because averaging independent measurements reduces variability. Neither number proves the measurements were independent or the process was normal; those are supplied assumptions in this worked example.

Predict

Predict whether the reference should be standard normal or Student t when the population standard deviation is unknown and the sample SD is used. Then decide whether two measurements from the same person should be entered as independent groups. The sampling unit determines the method before arithmetic begins.

A paired analysis is a one-sample analysis of within-pair differences. It needs the SD of those differences, not just the two marginal SDs. A Welch analysis instead compares two independent groups and estimates their variance contributions separately.

Experiment

Calculate and audit mean inference

Choose the method from the study design before entering numbers. Predict the direction of the effect, calculate, then explain whether the numerical reference is justified. Editing any input clears the previous result.

Confidence level is a proportion from 0.80 to 0.999. Sample sizes are bounded at 100,000. Means require at least two observations and nondegenerate uncertainty. The confidence interval is always two-sided, even when the selected test is one-sided.

Mean magnitudes and sample SDs are bounded at 1,000,000; a single or paired null mean has the same magnitude bound, and a two-group null difference is bounded at 2,000,000. These are teaching-tool limits. An interval too narrow to resolve at the measurement scale is rejected rather than displayed as exact.

Temporary calculations do not save a response, award mastery or verify the design. Record the method, parameter, hypotheses, conditions, numerical results, units and contextual conclusion in your practice response. Public repetition is practice, not independent assessment.

Choose one-sample t, with n=20, mean 14.2, sample SD 3.6, null mean 12, greater alternative and confidence 0.95. Compute both outputs and compare them with this independently calculated reference record.

QuantityCalculationReference
Standard error3.6/√20about 0.80498447 minutes
t statistic(14.2−12)/SE2.73297197
Degrees of freedomn−119
Greater-tail probabilityP(T₁₉≥2.73297197)0.00660675
95% critical tLower t probability 0.9752.09302405
Mean interval14.2 ± critical t·SE[12.515148,15.884852] minutes

At α=0.05 the test rejects μ=12 in favor of a larger mean, under the model. The interval estimates the mean duration, not the durations of 95% of individual cases. A p-value does not state the chance that μ=12 is true. The shared confidence setting describes a two-sided interval; the alternative controls the test tail separately.

Understand

For a paired worked case, 12 independent people each perform a first and second task. Define d=first−second, with mean difference −2.4 minutes and difference SD 3 minutes. Assume a normal distribution of differences. Select paired t and enter these difference summaries, not the marginal summaries. Testing mean difference zero against less gives t≈−2.771281, df=11 and p≈0.00909264. The 95% interval is approximately [−4.306109,−0.493891] minutes. The sign says the first task has a lower estimated mean duration. Swapping the definition changes the sign and the appropriate directional hypothesis.

Normality for this paired calculation concerns the differences. Raw measurements in each column need not individually be normal. Missing or mismatched pairs can change the target population and cannot be silently repaired by treating the remaining columns as independent.

Now use independent groups: A has n=18, mean 52 and SD 8; B has n=22, mean 46 and SD 10. Assume independent random observations from normal populations. Welch’s estimate is 6. Its SE is √(8²/18+10²/22), with approximate degrees of freedom

df=(8²/18+10²/22)² / [(8²/18)²/17+(10²/22)²/21]≈37.988988.

Keep the noninteger degrees of freedom in the numerical calculation. For a zero difference null and greater alternative, t≈2.108054 and p≈0.02083966. The 95% critical t is about 2.024413, giving interval [0.238059,11.761941]. Welch’s reference is approximate; it does not require assuming equal population variances. A null of equal means does not itself imply equal variances.

For small samples, severe skew or outliers can invalidate a t interpretation; summary statistics alone cannot reveal these features. Random sampling fractions and dependence also need inspection. A sample size exceeding 30 is not a universal guarantee. If sample SD is zero, the usual t statistic can become undefined; a software refusal should prompt measurement/model investigation, not an invented automatic p-value.

Apply

Return to the paired example and reverse the difference to second−first. Enter mean +2.4 with the same SD and n, choose greater, and predict the interval and p-value before calculating. Explain why this is a relabeling rather than new evidence.

Check the orientation repair

The statistic becomes +2.771281 and the greater-tail p-value remains about 0.00909264 because the alternative was reversed along with the difference. The interval is [0.493891,4.306109]. If the mean sign changed but the less alternative stayed fixed, the p-value would instead be about 0.99090736. Always state what a positive difference means. Repeated calculations of the same data are not independent replications.

For another design check, suppose only separate before and after means and SDs survived. The mean difference is recoverable for complete pairs, but its variance depends on covariance. Ask for the paired differences or their SD; no calculator setting can reconstruct information absent from the summaries.

Continue

Review paired mean inference and Welch inference for deeper derivations. In practice, identify the independent unit, define the oriented parameter, check shape/design, compute the reference probability and critical value, and finish with a conclusion limited to the actual study.

Apply · explain · revise

Practice and reasoning

Drafts save locally as you type. Reveal worked solutions when useful; the site remembers that exposure. Automatic matches check the requested answer, while written arguments require review against the rubric.

A random sample of 25 measurements from a normal process has mean 31.2 seconds and sample SD 5 seconds. Test mean 30 against a two-sided alternative at α=0.05 and construct a 95% interval. Interpret nonrejection.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Sixteen independently sampled adults each complete tasks A and B in randomized order. Differences d=time(A)−time(B) have mean 1.5 minutes and SD 2 minutes; assume a normal difference population. Test mean difference 0 against greater and give a 95% interval.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Independent random samples from normal populations have A:n=20,mean 18,SD 4 and B:n=30,mean 15,SD 6. Test μA−μB=0 against greater at α=0.05 and construct a 95% Welch interval. Do not assume equal variances.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

A summary has n=10,mean 5,SD 0 and a proposed one-mean null 5. The software cannot form its usual t statistic. Explain why, and why neither p=0 nor p=1 is an automatic valid replacement.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

For 20 paired before/after measurements, only the separate column means and SDs survive. A researcher proposes treating the columns as independent to get an interval. Explain why this does not recover a paired interval and what is needed.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

A prespecified test asks whether a population mean is less than 100. An independent normal sample has n=40,mean 102,SD 12. Compute its one-sided p-value and 90% interval. A colleague flips to a greater alternative after seeing the mean. Evaluate that change.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Reflect and continue

Before marking this lesson complete, explain one key idea without the worked solution and identify a condition that matters. Marking complete records participation, not independent mastery.