Resources
In a field experiment testing territorial competition in song sparrows (Melospiza melodia), an investigator places acoustic playback speakers in distinct territories. The treatments consist of: (1) conspecific territorial song playback, (2) heterospecific competitor (Zonotrichia leucophrys) song playback, and (3) neutral control (Catharus guttatus) non-competitive vocalization. The observed aggressive physical approach responses within a radius over a -minute trial are recorded: aggressive responses out of trials for conspecific playback, aggressive responses out of trials for heterospecific playback, and aggressive responses out of trials for control playback (totaling responses out of trials). Under the null hypothesis that aggressive territorial response is independent of playback vocalization type, the expected count is responses per treatment. Calculate the test statistic , determine the degrees of freedom (), and state the statistical decision at (critical value ).
Answer and steps
Final answer
, ; since (), reject (conclude that aggressive response rate depends significantly on vocalization type).
Steps
Identify Observed and Expected Values
Under the null hypothesis (), the territorial aggressive response is distributed equally across the three acoustic treatments.
- Total aggressive responses across all groups:
- Number of treatment categories ():
- Expected responses per treatment ():
The observed responses () per category are:
- Conspecific song:
- Heterospecific competitor song:
- Neutral control vocalization:
Compute the Chi-Square () Test Statistic
The chi-square goodness-of-fit formula is:
Compute each component:
- Conspecific:
- Heterospecific:
- Neutral control:
Summing the components:
Determine Degrees of Freedom and Make the Statistical Decision
- Degrees of freedom ():
- Comparison with Critical Value: The critical value at significance level with is:
Since the calculated test statistic exceeds the critical threshold of (), we reject .
Biological conclusion: Aggressive territorial defense behavior in song sparrows depends significantly on the vocalization type, eliciting the strongest territorial aggression toward conspecific rivals.
Typical errors
01 The student forgets to divide each squared difference by the expected count, calculating only the sum of squared differences.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 1Correct
You calculated the sum of squared differences instead of dividing each squared difference by its expected count as required by the formula .
- Step 2
- Step 3Correct
Your comparison logic is correct, but your decision relied directly on the incorrect test statistic of calculated in Step 1.
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly identified and squared the deviations between observed and expected frequencies.
You correctly calculated the degrees of freedom as .
You correctly identified the rule for comparing the calculated test statistic with the critical value.
THE ERROR
Where Your ACEpath Teacher Spotted the Mistakeno
WHY IT HAPPENED
ACEpath Teacher's DiagnosisYou treated the chi-square test statistic as a simple sum of squared errors rather than standardizing each squared deviation relative to the expected count by dividing by .
REASONING PATH
Your ACEpath teacher’s suggested approach- Chi-Square Test Statistic Formula
Always divide each squared difference by its corresponding expected frequency before summing.
CORRECTED PATH
ACEpath Teacher's DemonstrationDivide each squared deviation by : .
Sum the resulting quotients: .
Compare the standardized test statistic to the critical threshold: since , reject .
, ; since (), reject .
02 The student miscalculates the degrees of freedom as the number of categories k rather than k - 1.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 1
- Step 2Correct
For a one-way chi-square goodness-of-fit test, the degrees of freedom equal the number of categories minus one (). Since there are vocalization treatments, .
- Step 3
WHAT YOU DID WELL
Compliments from Your TeacherYou substituted the observed and expected values accurately into the chi-square formula.
You calculated the test statistic without any arithmetic slips.
You correctly compared the test statistic to the critical value and stated the proper hypothesis decision.
THE ERROR
Where Your ACEpath Teacher Spotted the MistakeYou set the degrees of freedom equal to the total number of categories rather than subtracting .
WHY IT HAPPENED
ACEpath Teacher's DiagnosisIn goodness-of-fit tests, once the total sample count is fixed, the count in the final category is completely determined by the remaining categories, which reduces the free parameters by one ().
REASONING PATH
Your ACEpath teacher’s suggested approach- One-Way Chi-Square Degrees of Freedom
For a goodness-of-fit test across categories with fixed total , .
Count the distinct treatment categories () and subtract to find .
CORRECTED PATH
ACEpath Teacher's DemonstrationIdentify the number of treatment categories: (conspecific, heterospecific, control).
Apply the degrees of freedom formula: .
Confirm that the given critical value matches .
, ; since , reject .
03 The student reverses the decision rule for a chi-square test, failing to reject H₀ when the test statistic exceeds the critical value.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 1
- Step 2
- Step 3Correct
When the calculated test statistic is greater than the critical value, it falls into the critical rejection region (). Therefore, you must reject rather than fail to reject it.
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly applied the chi-square goodness-of-fit formula with observed and expected counts.
You calculated the test statistic value of without any arithmetic error.
You correctly identified that the degrees of freedom equal .
THE ERROR
Where Your ACEpath Teacher Spotted the Mistakeno
WHY IT HAPPENED
ACEpath Teacher's DiagnosisYou confused the critical value threshold rule in hypothesis testing, treating a larger test statistic as evidence supporting rather than recognizing that larger differences between observed and expected values increase and provide evidence against .
REASONING PATH
Your ACEpath teacher’s suggested approach- Decision Rule in Chi-Square Testing
If , the observed deviation from the null model is statistically significant (), so reject . If , fail to reject .
Compare to and place the value on the distribution curve: values in the upper tail beyond the critical threshold fall in the rejection region.
CORRECTED PATH
ACEpath Teacher's DemonstrationCompare the calculated value with the critical threshold .
Because , the test statistic falls in the upper rejection tail ().
Reject and conclude that territorial aggression differs significantly across the playback treatments.
, ; reject
Lock it in
What is the standard formula for the Pearson chi-square () goodness-of-fit test statistic?
. Remember: each squared difference must be normalized by dividing by the expected frequency .
Similar question
A biologist tests bird foraging site preference across equal habitats. Under , the expected count is for each habitat. The observed counts are in Habitat A and in Habitat B. Calculate the statistic.
Answer
. Key step: .
In a mating choice experiment with three male morphs, an equal distribution predicts female visits per morph. The observed visits are , , and . Calculate and determine the degrees of freedom ().
Answer
, . Key steps: . For each morph: , , . Sum: .
An animal behavior study tests responses to four predator alarm calls with unequal expected proportions: , , , and out of total trials (giving ). The observed responses are . Calculate the test statistic.
Answer
. Key steps: Category 1: ; Category 2: ; Category 3: ; Category 4: . Sum: .