Mixed inference practice: choosing the procedure
By Jude Wallis · Updated
These 8 problems make you choose the procedure before you compute anything. Each scenario asks which method the data structure calls for and why, then has you carry it out: one-proportion z, two-proportion z, one-sample t, paired t, two-sample t, or chi-square on a two-way table.
This set mixes the inference procedures from Unit 3 (15 to 25% of the multiple-choice section) and Unit 4 (10 to 20%) of the Fall 2026 AP Statistics course. The course framework asks students to practice procedures from Units 3 and 4 together so the similarities and differences stay clear, which is exactly what choosing the procedure first trains.
What these problems build
Most inference practice tells you which test to run. These 8 problems do not. Each one gives a scenario, asks which procedure the data structure calls for and why, and only then asks for the arithmetic, which is the order the AP exam uses.
Three questions settle almost every choice, and you answer all three from the design rather than from the subject matter:
- Is the response categorical (counts and proportions) or quantitative (measurements you average)? Categorical points to a proportion z procedure or to chi-square; quantitative points to a t procedure.
- How many groups are being compared: one, two, or more than two?
- If two, are they independent samples, or paired measurements on the same subjects or on matched units?
Notation used below: (read 'p-hat') is a sample proportion, is the population proportion it estimates, ('x-bar') is a sample mean, ('mu') is a population mean, is a sample standard deviation, ('sigma') is the population standard deviation, is the mean of a set of paired differences, and ('ky-square') is the chi-square statistic.
Problem 8 is the trap that costs the most points. Two columns of numbers with equal sample sizes look like two independent samples, but when each row is the same subject measured twice, the right analysis is a one-sample t procedure on the differences. That solution runs both procedures on the same data so you can see how far apart they land.
For the decision rules, read which statistical test to use or work through the which test interactive. The paired-versus-independent split gets its own treatment in when to use a paired t test and in paired vs two-sample t test.
Critical values come from the z table, the t table, and the chi-square table. The AP topics behind this set run through Unit 3 and Unit 4, and the two-way table problem is drilled further in chi-square two-way practice. More sets are on the practice page.
Problem 1
A campus transportation office wants to estimate the proportion of undergraduates who commute by city bus. It takes a simple random sample of 250 undergraduates from the enrollment list of 9,400 and finds that 90 of them commute by bus.
(a) Name the procedure and justify it from the data structure. (b) Check the conditions. (c) Build a 95% confidence interval and interpret it.
Show the worked solution
(a) Read the structure first. There is one sample, the response is categorical (bus or not bus), and the office wants an estimate with a margin of error rather than a decision about a claimed value. One sample, a categorical response, and an estimation goal give a one-proportion z-interval.
(b) Conditions. Random: a simple random sample was taken. 10%: , so sampling without replacement is fine. Large counts: 90 successes and failures, both at least 10.
(c) Point estimate. .
(c) Standard error. .
(c) Margin of error. For 95% confidence , so .
(c) Interval and interpretation. gives . You are 95% confident that the interval from 0.300 to 0.420 captures the true proportion of undergraduates at this campus who commute by bus.
One-proportion z-interval (one sample, categorical response, estimation). , , , interval .
Problem 2
A coffee roaster advertises that its retail bags hold a mean of 340 grams. An inspector weighs a random sample of 25 bags from one week's production and gets a sample mean of 336.4 grams with a sample standard deviation of 8.0 grams. A dotplot of the 25 weights is roughly symmetric with no outliers.
(a) Name the procedure and justify it. (b) State the hypotheses and check the conditions. (c) Compute the test statistic and bound the p-value from a t table. (d) Conclude at .
Show the worked solution
(a) Structure. One sample, a quantitative response (weight in grams), and a claimed value to test against, with the population standard deviation unknown. One sample plus a quantitative response plus unknown gives a one-sample t-test.
(b) Hypotheses. : grams against : grams, where is the mean fill weight of all bags in that week's production. The alternative is two-sided because underfilling and overfilling are both departures from the advertised claim.
(b) Conditions. Random sample: stated. 10%: 25 bags is well under 10% of a week's production. Sample data: is below 30, but the dotplot is roughly symmetric with no outliers, so the t procedure is safe.
(c) Standard error. grams.
(c) Test statistic. , with .
(c) p-value. In the row, falls between 2.064 (upper tail 0.025) and 2.492 (upper tail 0.01), so one tail holds between 0.01 and 0.025 and the two-sided p-value is between 0.02 and 0.05. Technology gives 0.034.
(d) Conclusion. The p-value of about 0.034 is less than , so reject . There is convincing evidence that the mean fill weight for that week differs from the advertised 340 grams, and the sample mean points to underfilling.
One-sample t-test (one sample, quantitative, unknown). , , , two-sided p between 0.02 and 0.05 (about 0.034). Reject at .
Problem 3
An online retailer randomly assigns 1,000 site visitors to one of two checkout pages, 500 to a redesigned page and 500 to the current page. Of the redesigned group, 145 complete a purchase; of the current group, 115 do.
(a) Name the procedure and justify it. (b) State the hypotheses. (c) Check the conditions and compute the test statistic using the pooled proportion. (d) Conclude at and say what kind of conclusion this design supports.
Show the worked solution
(a) Structure. Two independent groups created by random assignment, and the response is categorical (purchased or did not). Two groups plus a categorical response gives a two-proportion z-test.
(b) Hypotheses. : against : , where is the purchase rate for the redesigned page and is the purchase rate for the current page among visitors like these.
(c) Conditions. Random assignment is stated. Large counts: 145 purchases and non-purchases in the first group, 115 and in the second, all at least 10. The 10% condition is not needed for a randomized experiment.
(c) Sample proportions and the pooled proportion. and . Under the two rates are equal, so pool them: .
(c) Standard error. .
(c) Test statistic. .
(d) Conclusion. The two-sided p-value is . Since , reject : there is convincing evidence that the purchase rates differ between the two pages. Because visitors were randomly assigned, the design supports a causal conclusion about the page, though only for visitors to this site.
Two-proportion z-test (two independent groups, categorical response). , , , two-sided p about 0.031. Reject , and random assignment supports a causal reading.
Problem 4
A greenhouse randomly assigns 20 basil seedlings to two feeding schedules, 10 seedlings to each, and measures height in centimeters after six weeks. Schedule A: , , . Schedule B: , , . Neither sample shows strong skewness or outliers.
(a) Name the procedure and justify it, including why it is not paired. (b) Compute the test statistic. (c) Bound the p-value with conservative degrees of freedom, then give the technology value. (d) Conclude at .
Show the worked solution
(a) Structure. Two groups, a quantitative response (height), and no natural partner linking a Schedule A seedling to a Schedule B seedling; they are different plants assigned at random. Independent groups plus a quantitative response gives a two-sample t-test. Pairing would require each measurement in one group to be tied to one specific measurement in the other.
(a) Hypotheses. : against : , where the two values are the mean six-week heights under the two schedules.
(b) Standard error. Add the variances, never the standard deviations: .
(b) Test statistic. .
(c) Conservative degrees of freedom. . In the row, 2.677 falls between 2.262 (upper tail 0.025) and 2.821 (upper tail 0.01), so the two-sided p-value is between 0.02 and 0.05.
(c) Technology degrees of freedom. A calculator reports and a two-sided p-value of about 0.016. The conservative bound is looser because fewer degrees of freedom put more area in the tails.
(d) Conclusion. Either way the p-value is below 0.05, so reject . There is convincing evidence that mean six-week height differs between the two feeding schedules, and because seedlings were randomly assigned, the schedule is a plausible cause.
Two-sample t-test (independent groups, quantitative response). , ; conservative gives p between 0.02 and 0.05, technology gives p about 0.016. Reject .
Problem 5
A hand-therapy clinic measures grip strength in kilograms for 8 randomly selected patients before and after a four-week program.
| Patient | Before | After |
|---|---|---|
| 1 | 28 | 31 |
| 2 | 31 | 33 |
| 3 | 25 | 29 |
| 4 | 34 | 36 |
| 5 | 29 | 30 |
| 6 | 27 | 31 |
| 7 | 33 | 34 |
| 8 | 30 | 34 |
(a) Name the procedure and justify it. (b) Compute the differences with their mean and standard deviation. (c) Test : against : at , then say what the design does not let you claim.
Show the worked solution
(a) Structure. Each row is one patient measured twice, so the two columns are not independent; a strong patient reads high in both. Two dependent measurements on the same subjects collapse into one sample of differences, analyzed with a one-sample t procedure, which is the paired t-test.
(b) Differences, after minus before: , , , , , , , and .
(b) Mean difference. The differences sum to , so kg.
(b) Standard deviation of the differences. Deviations from 2.625 are 0.375, -0.625, 1.375, -0.625, -1.625, 1.375, -1.625, and 1.375. Their squares sum to , so kg.
(c) Conditions. The patients were randomly selected. With only 8 differences, check them directly: 3, 2, 4, 2, 1, 4, 1, 4 show no strong skewness and no outliers, so the t procedure applies.
(c) Standard error and test statistic. , so with .
(c) Conclusion. In the row, 5.700 is past 5.408 (upper tail 0.0005), so the one-sided p-value is under 0.0005; technology gives 0.00037. Reject : there is convincing evidence that mean grip strength increased over the four weeks.
(c) What the design does not support. There is no control group, so the increase cannot be credited to the program itself. Ordinary recovery over four weeks would produce the same pattern in these numbers.
Paired t-test (same patients measured twice). , , , , , one-sided p under 0.0005. Reject ; grip strength rose, but with no control group the program itself is not established as the cause.
Problem 6
A grocery chain takes one random sample of 200 shoppers at a single store and records each shopper's payment method and whether that shopper used a loyalty account.
| Payment | Loyalty | No loyalty | Total |
|---|---|---|---|
| Card | 66 | 34 | 100 |
| Cash | 18 | 22 | 40 |
| Mobile wallet | 36 | 24 | 60 |
| Total | 120 | 80 | 200 |
(a) Name the procedure and explain why a two-proportion z-test will not do. (b) Compute the statistic and the degrees of freedom. (c) Conclude at and comment on how close the call is.
Show the worked solution
(a) Structure. One random sample measured on two categorical variables, which calls for a chi-square test for independence. A two-proportion z-test compares exactly two proportions, and payment method has three categories, so there is no single difference to test. Chi-square handles any number of rows and columns at once.
(a) Hypotheses. : payment method and loyalty use are independent among this store's shoppers. : payment method and loyalty use are associated.
(b) Expected counts, . Card: and . Cash: and . Mobile wallet: and . All six exceed 5.
(b) Terms. Card: and . Cash: and . Mobile wallet: both observed counts equal their expected counts, so both terms are 0.
(b) Statistic and degrees of freedom. , and .
(c) Conclusion. The critical value for at is 5.991, and , so fail to reject ; the p-value is about 0.072. There is not convincing evidence that payment method and loyalty use are associated at this store.
(c) How close the call is. A p-value of 0.072 misses the 0.05 line by very little, and most of the statistic (3.75 of 5.25) comes from the cash row, where fewer shoppers used loyalty than independence predicts, and the rest (1.5) from the card row, where more did. That pattern argues for collecting more data rather than declaring the two variables unrelated.
Chi-square test for independence (one sample, two categorical variables, three payment categories). , ; since (p about 0.072), fail to reject .
Problem 7
A sensor manufacturer's spec sheet claims that no more than 8% of shipped units fail a calibration check. An independent lab pulls a random sample of 300 units from a shipment of 12,000 and finds 33 failures.
(a) Name the procedure and explain which proportion belongs in the standard error. (b) State the hypotheses and check the conditions. (c) Compute the test statistic and the p-value. (d) Conclude at .
Show the worked solution
(a) Structure. One sample, a categorical response (fails or passes), and a claimed value of 0.08 to test against, so this is a one-proportion z-test.
(a) Which proportion goes in the standard error. In a test the null value goes in the standard error, , because the whole calculation is carried out assuming is true. Only a confidence interval uses there, which is why an interval and a test on the same data have slightly different standard errors.
(b) Hypotheses. : against : , where is the true failure rate in the shipment. The alternative is one-sided because the lab is checking only whether the failure rate exceeds the claim.
(b) Conditions. Random sample: stated. 10%: . Large counts under : and , both at least 10.
(c) Sample proportion and standard error. , and .
(c) Test statistic and p-value. . The one-sided p-value is .
(d) Conclusion. Since , reject . There is convincing evidence that more than 8% of units in this shipment fail the calibration check.
One-proportion z-test (one sample, categorical, claimed value). Use in the standard error: . With , and the one-sided p-value is 0.0277, so reject .
Problem 8
A cycling club tests two tire compounds. Each of 8 riders rides the same 15 km course twice, once on each compound, with the order randomized. The times come back in minutes as two columns.
| Rider | Tire A | Tire B |
|---|---|---|
| 1 | 42.1 | 41.3 |
| 2 | 38.6 | 38.0 |
| 3 | 45.0 | 44.6 |
| 4 | 40.2 | 39.4 |
| 5 | 43.5 | 43.1 |
| 6 | 39.8 | 39.6 |
| 7 | 41.7 | 40.5 |
| 8 | 44.3 | 43.9 |
A club member sees two columns of 8 numbers, runs a two-sample t-test, and gets with a p-value near 0.62. (a) Explain why that procedure is wrong here. (b) Run the correct test at . (c) Explain why the two answers land so far apart.
Show the worked solution
(a) Why the two-sample test fails. Equal sample sizes and two columns look like two independent groups, but each row is the same rider on the same course, so the two columns move together. A two-sample t procedure requires the two samples to be independent, and pairing breaks that. The correct analysis subtracts within each row and runs a one-sample t on the 8 differences.
(b) Differences, Tire A minus Tire B: , , , , , , , and .
(b) Mean difference. They sum to , so minutes.
(b) Standard deviation of the differences. Deviations from 0.6 are 0.2, 0, -0.2, 0.2, -0.2, -0.4, 0.6, and -0.2, and their squares sum to . So minutes.
(b) Hypotheses and conditions. : against : , where is the mean of (Tire A time) minus (Tire B time) for riders like these. The order of the two rides was randomized, and the 8 differences show no strong skewness and no outliers.
(b) Test statistic. , so with .
(b) p-value and conclusion. In the row, 5.291 falls between 4.785 (upper tail 0.001) and 5.408 (upper tail 0.0005), so the two-sided p-value is between 0.001 and 0.002; technology gives 0.0011. Reject : there is convincing evidence that mean course time differs between the two compounds, with Tire B faster by about 0.6 minutes on average.
(c) Why the answers differ. Rider-to-rider variation is large, with times running from about 38 to 45 minutes, while the tire effect is a steady 0.2 to 1.2 minutes in the same direction for every rider. The two-sample standard error of 1.158 is built out of that rider variation and swamps the effect, while pairing subtracts each rider out and leaves a standard error of 0.1134, about ten times smaller.
Paired t-test on the 8 differences: , , , , , two-sided p between 0.001 and 0.002 (about 0.0011), so reject . The two-sample test fails because it keeps the rider-to-rider variation that pairing removes.