University of Illinois Urbana-Champaign · FACULTY OF STATISTICS

STAT 400 Chap.11 Power and Chi-Square Tests

- one subject, every graph, every model, every mark
6 Chapters2-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 11 of 11 · STAT 400

Power and Chi-Square Tests

Power: how often a test finds a real effect

The power of a test is the probability of rejecting the null hypothesis when a specific alternative is true, which equals one minus the Type II error probability. Computing it takes two stages. First find the rejection region using the null hypothesis. Then compute the probability of landing in that region using the alternative value.

Plotted against the true parameter, the power function equals α at the null value and rises toward one as the true value moves away.

What controls power

Power increases with the sample size, with the significance level, and with the distance between the null and the true value, and it decreases as the population standard deviation grows.

Solving the power condition for n gives a sample size formula for a target power, which is how studies are planned before data are collected. The course objectives ask you both to compute power for a given test and to explain what the result means.

Chi-square tests for count data

The last topics of the semester test hypotheses about categorical data using observed and expected counts.

The statistic sums (O − E)²/E across categories and is compared with a chi-square distribution, provided every expected count is at least five.

A goodness-of-fit test compares one categorical variable with specified probabilities, using k − 1 degrees of freedom, reduced by one for each parameter estimated from the data.

Independence versus homogeneity

Both tests use a two-way table, expected counts equal to row total times column total divided by the grand total, and (r − 1)(c − 1) degrees of freedom. The difference is the design.

A test of independence uses one sample classified by two variables and asks whether the variables are related. A test of homogeneity uses separate samples from several populations, with the group sizes fixed in advance, and asks whether the populations share the same distribution.

The arithmetic is identical; the hypotheses and conclusions are worded differently.

Power and planning together

Power connects the two halves of inference. A confidence interval that is too wide and a test with low power are symptoms of the same problem, too little information, and the cure is also the same: a larger sample or less noisy measurement.

Reporting power alongside a non-significant result tells a reader whether the study could realistically have detected an effect of the size that matters.

Reading the result

Large values of the chi-square statistic are evidence against the null hypothesis, so these tests are upper-tailed.

When a result is significant, comparing observed with expected counts cell by cell shows which categories drive the difference.

In this chapter

What this chapter covers

  • 01

    Power and Type II error

  • 02

    Power functions

  • 03

    Sample size for a target power

  • 04

    Chi-square goodness of fit

  • 05

    Tests of independence

  • 06

    Tests of homogeneity

Worked example · free

Goodness of fit with three categories

Q [6 marks]. AskSia-authored practice. A department expects its students to choose three elective streams in the ratio 50 : 30 : 20. A sample of 100 students chose them 52, 31 and 17 times. Test the expected ratio at the 5% level. This weighting is a study aid and not an official marking scheme.
Figure.Figure. Power function of the test that rejects when x̄ > 53.29 (σ = 8, n = 16). It equals α at the null value and climbs toward 1 as the true mean moves away.4850525456586000.250.50.751true mean μpowerα = 0.05 at μ = 500.804 at μ = 55
Figure. Power function of the test that rejects when x̄ > 53.29 (σ = 8, n = 16). It equals α at the null value and climbs toward 1 as the true mean moves away.
  • 1Expected counts under H0 are 50, 30 and 20, all at least 5.
  • 2Q = 4/50 + 1/30 + 9/20 = 0.080 + 0.033 + 0.450 = 0.563.
  • 2Degrees of freedom = 3 − 1 = 2, and the upper 5% chi-square critical value with 2 degrees of freedom is 5.991.
  • 10.563 is far below 5.991, so do not reject: the choices fit the expected ratio.
Q = 0.563 with 2 degrees of freedom is well below 5.991, so the data are consistent with the 50 : 30 : 20 ratio.
Sia tip — Compute expected counts, not expected percentages, and check each is at least 5 before trusting the chi-square reference.
Glossary

Key terms

Power
The probability that a test rejects the null hypothesis when a specified alternative is true, equal to 1 − β.
Power Function
The probability of rejection viewed as a function of the true parameter value.
Goodness-of-Fit Test
A chi-square test of whether observed category counts match probabilities specified by a hypothesis.
Test of Homogeneity
A chi-square test of whether several separately sampled populations share the same categorical distribution.
FAQ

Power and Chi-Square Tests FAQ

What is the difference between a test of independence and a test of homogeneity?

Independence uses one sample classified by two variables; homogeneity uses separate samples from several populations. The expected counts and degrees of freedom are computed the same way.

How can I increase the power of a test?

Take a larger sample, accept a larger significance level, reduce measurement variability, or target a larger effect. Each makes it more likely that a real difference produces a rejection.

Why must expected counts be at least five?

The chi-square distribution is only an approximation to the true sampling distribution of the statistic. When expected counts are small, the approximation becomes unreliable and p-values can be badly wrong, so combine sparse categories or use an exact method.

Study strategy

Exam move

For power, always draw two curves, one centred at the null value and one at the alternative, and shade the rejection region under the second. For count data, practise deciding the test from the sampling design before computing any expected count.

Working through Power and Chi-Square Tests in STAT 400? Sia is AskSia’s AI Statistics tutor — ask any STAT 400 Power and Chi-Square Tests question and get a clear, step-by-step explanation grounded in how STAT 400 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 6 of your University of Illinois Urbana-Champaign subjects - and 1,000+ Bibles across every Australian university.
Sia - your STAT400 tutor, unlimited, worked the way the exam marks it
The full 2-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works