Resources
An environmental bioassay is conducted to assess the toxicological impact of municipal wastewater chlorination byproducts on stream macroinvertebrates. An upstream reference station and an effluent-impacted downstream station are surveyed using Surber net kick-sampling. A total of individuals are collected downstream and categorized across four pollution-tolerance indicator taxa: Ephemeroptera (mayflies, intolerant), Trichoptera (caddisflies, moderately intolerant), Chironomidae (non-biting midges, tolerant), and Tubificidae (sludge worms, highly tolerant). Historical baseline ecological records from the unimpacted reference station indicate the expected proportion of individuals across these four taxa to be , , , and , respectively. The observed downstream collection yields Ephemeroptera, Trichoptera, Chironomidae, and Tubificidae. Perform a chi-square () goodness-of-fit test at significance level (critical value for ): compute the test statistic , and state the explicit formal statistical hypothesis conclusion regarding community composition shift.
Answer and steps
Final answer
; Reject at (Statistically significant shift in community structure due to wastewater effluent)
Steps
Formulate the Statistical Hypotheses
Let and represent the true downstream proportions of Ephemeroptera, Trichoptera, Chironomidae, and Tubificidae, respectively.
- Null hypothesis (): The downstream community follows the baseline unimpacted distribution (, , , ). There is no significant change in community structure.
- Alternative hypothesis (): At least one proportion differs significantly from the baseline distribution, indicating a shift in community structure.
Calculate the Expected Counts ()
Using the total downstream sample size and the reference baseline proportions, determine the expected number of individuals for each taxon:
- Ephemeroptera:
- Trichoptera:
- Chironomidae:
- Tubificidae:
Compute the Chi-Square Test Statistic ()
The formula for the chi-square goodness-of-fit test is:
where is the observed count, is the expected count, and is the number of categories.
Substitute the values for each taxon:
- Ephemeroptera (, ):
- Trichoptera (, ):
- Chironomidae (, ):
- Tubificidae (, ):
Summing all contributions:
Compare with the Critical Value and Draw Conclusion
- Degrees of freedom (): .
- Significance level: .
- Critical value: .
Because the calculated test statistic far exceeds the critical value:
we reject at the significance level ().
Ecological Conclusion: There is strong, statistically significant evidence of a community shift downstream of the wastewater outfall. The community shows a severe reduction in pollution-sensitive taxa (mayflies and caddisflies) and a massive proliferation of pollution-tolerant taxa (midges and sludge worms), consistent with severe organic and chemical water pollution.
Common Pitfall: Never insert percentages or relative frequencies directly into the formula; only use whole counts (observed counts and calculated absolute expected counts), as chi-square requires frequencies to evaluate sample variance correctly.
Typical errors
01 The student treats the expected baseline percentages directly as expected counts instead of multiplying by the total sample size N = 250, yielding an incorrect test statistic of 711.875.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 1Correct
You treated the expected percentage values (, , , ) directly as raw counts instead of multiplying each proportion by the total downstream sample size ().
- Step 2Correct
You correctly set up the chi-square summation and computed each term without arithmetic mistakes, but your numerical result was distorted by using the unscaled expected counts from the previous step.
- Step 3
, so reject the null hypothesis; community composition significantly shifted.
CorrectBecause , reject ; there is a statistically significant shift in macroinvertebrate community composition downstream.
You correctly compared your calculated test statistic to the critical value and drew the correct ecological conclusion, though the test statistic itself was based on incorrect expected frequencies.
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly identified and applied the chi-square goodness-of-fit formula .
You performed all intermediate divisions and summations accurately.
You correctly compared the test statistic against the critical value () and stated the appropriate hypothesis rejection and biological conclusion.
THE ERROR
Where Your ACEpath Teacher Spotted the MistakeYou treated the reference percentage values directly as raw expected counts without scaling them by the sample size .
WHY IT HAPPENED
ACEpath Teacher's DiagnosisA chi-square goodness-of-fit test evaluates sampling variation in raw count data, requiring that the expected frequencies sum to the total sample size (). Treating percentages as counts implicitly assumes , which breaks sample-size proportionality and artificially inflates the test statistic.
REASONING PATH
Your ACEpath teacher’s suggested approach- Expected Counts Sum to Sample Size
Before calculating , always verify that .
Multiply each reference baseline proportion by the total sample size: .
CORRECTED PATH
ACEpath Teacher's DemonstrationCalculate the correct expected counts using : , , , and .
Compute each taxon contribution: , , , and .
Sum the contributions: .
Compare to the critical value: since , reject at .
; Reject at (Statistically significant shift in community structure due to wastewater effluent)
02 The student assumes equal expected frequencies across all four categories rather than using the baseline proportions, resulting in χ² = 36.4.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 1
for each taxon
Correct, , ,
You assumed an equal distribution across all four taxa, but the problem specified historical baseline proportions of , , , and . Each expected count must be calculated as .
- Step 2Correct
You applied the formula correctly with your numbers, but your result was distorted because you substituted the incorrect expected count into every term.
- Step 3
, so reject the null hypothesis; downstream community composition shows a significant shift.
Correct, so reject at ; there is a statistically significant shift in community structure downstream.
Your decision rule and interpretation were logically sound, but the conclusion relied on the incorrect test statistic of rather than .
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly remembered and applied the general chi-square formula .
You accurately performed the arithmetic operations of squaring differences and dividing by expected counts.
You correctly identified the critical value comparison rule: reject when .
THE ERROR
Where Your ACEpath Teacher Spotted the Mistakeno
WHY IT HAPPENED
ACEpath Teacher's DiagnosisDefaulting to an equal-proportions model () for a goodness-of-fit test without checking whether the problem provides a specific baseline or theoretical probability distribution ().
REASONING PATH
Your ACEpath teacher’s suggested approach- Identify the Null Distribution Model
In a chi-square goodness-of-fit test, check if specifies equal proportions () or unequal reference proportions ().
Look for given percentages, ratios, or historical baseline data before computing expected counts.
- Calculate Category-Specific Expected Counts
For each category , , where .
Multiply the total sample count by each individual taxon proportion separately rather than dividing by the number of categories.
CORRECTED PATH
ACEpath Teacher's DemonstrationCalculate the correct expected counts using baseline proportions: , , , and .
Compute each component of the test statistic: , , , and .
Sum the components: .
Compare to the critical value: since , reject at .
; Reject at (Statistically significant shift in community structure due to wastewater effluent)
03 The student omits squaring the differences between observed and expected frequencies in the numerator, producing χ² = 1.85 and incorrectly concluding that community composition did not change.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 1
- Step 2Correct
You omitted the square on each difference term in the numerator. The chi-square formula requires squaring each deviation before dividing by the expected frequency, ensuring all terms are non-negative.
- Step 3
, so fail to reject the null hypothesis; there is no significant shift in community composition.
Correct, so reject at ; there is a statistically significant shift in community composition.
Your comparison logic followed your computed value, but because the test statistic was calculated without squared deviations, you reached the opposite biological conclusion.
WHAT YOU DID WELL
Compliments from Your TeacherYou accurately converted baseline percentages into expected counts based on .
You correctly matched each observed taxon count to its corresponding expected category.
You correctly identified the critical value and understood the general decision rule for a goodness-of-fit test.
THE ERROR
Where Your ACEpath Teacher Spotted the MistakeYou wrote instead of when setting up the summation.
WHY IT HAPPENED
ACEpath Teacher's DiagnosisForgetting that chi-square measures squared standardized distance causes negative deviations to cancel positive deviations. Every component in a chi-square sum must be non-negative.
REASONING PATH
Your ACEpath teacher’s suggested approach- Formula Structure
The goodness-of-fit statistic is .
Always write down the explicit formula with the square in the numerator before substituting numbers.
- Sign Sanity Check
Every individual category contribution must be .
If you see negative numbers such as or in your sum, pause immediately—a squared term can never be negative.
CORRECTED PATH
ACEpath Teacher's DemonstrationWrite the definition with squares: .
Compute squared deviations divided by expected counts: , , , and .
Sum the taxon components: .
Compare with the critical threshold: .
; Reject at . There is a statistically significant shift in macroinvertebrate community composition.
Lock it in
What is the formula to calculate the expected count () for a category in a chi-square goodness-of-fit test?
, where is the theoretical or baseline proportion and is the total sample size. Always use counts, never bare percentages.
Similar question
An estuary sampling survey captures fish across three species with historical baseline proportions of Species A, Species B, and Species C. If the observed counts are Species A, Species B, and Species C, calculate the expected counts for each species and the resulting chi-square test statistic .
Answer
, , .
A forest disturbance survey observes birds across four feeding guilds. The expected ratios from a mature old-growth forest are for insectivores, granivores, frugivores, and raptors, respectively. Calculate the expected count of frugivores in this disturbed forest patch.
Answer
The total ratio parts equal . The expected proportion of frugivores is . Expected count frugivores.
In a benthic biomonitoring study with macroinvertebrates, an analyst erroneously plugged the expected baseline percentage () directly as instead of the true expected count for a taxon with . Compute both the erroneous single-cell contribution and the true single-cell contribution , and find the difference between them.
Answer
True expected count: . Erroneous component: . True component: . Difference: .