Why I don’t like null hypothesis significance testing – Part 2
Last week I described results from a couple of experiments assessing the impact on soybean yields of applying 100 pounds of nitrogen fertilizer per acre through the growing season.1 Here are the 2015 results for Brownstown and Urbana:
| Treatment | Brownstown | Urbana |
|---|---|---|
| Control | 61.1 | 91.0 |
| 100 lb N/acre | 56.2 | 96.1 |
| P-value | 0.022 | 0.028 |
If we ignore the cost of purchasing and applying fertilizer, these results suggest that a farmer in Brownston should not apply nitrogen fertilizer while a farmer in Urbana should although the P-value for the comparison is reported as less than 0.1.2 And the problem just gets worse if we add observations from Urbana in 2014.
| Treatment | Brownstown | Urbana 2014 | Urbana 2015 |
|---|---|---|---|
| Control | 61.1 | 74.0 | 91.0 |
| 100 lb N/acre | 56.2 | 80.5 | 96.1 |
| P-value | 0.022 | 0.022 | 0.028 |
Now the advice in Urbana depends on which year it is. Apply fertilizer in 2014 and don’t in 2015. What about 2016?
The problem here is that the evidence is only moderately strong in either site in either year. As a result, normal statistical variability can produce “significant” results in either direction in different years or sites. To see why you’ll need to put up with a little R code. For the sake of argument, let’s assume that the standard deviation of observed mean differences (including for the sites not included in the table above) reflects the expected variation in mean differences across sites and years. That gives us a standard deviation of a little more than 10.3 Using that let’s simulate samples from Brownstown and see how often yield in the control is greater than yield in the treatment (using the observed means).
`
## n_sim is the number of simulated experiments
##
n_sim <- 10000
## n_samp is the number of samples in each experiment
##
n_samp <- 20
larger <- numeric(n_sim)
for (i in 1:n_sim) {
control <- rnorm(n_samp, mean = 61.1, sd = 10)
treatment <- rnorm(n_samp, mean = 56.2, sd = 10)
larger[i] <- (mean(control) > mean(treatment))
}
print(round[1]sum(larger)/length(larger*100, 0))
`
I get 94, i.e., about 94 percent of the time the the control treatment has the larger mean. At the conventional 5 percent level of significance, we’d say that there isn’t a significant difference—but it looks really close. More about that next time.
- I didn’t make it clear last time, but the comparison I’m summarizing is between a control with no fertilizer application and a treatment that received 100 pounds of nitrogen fertilizer per acre four times through the growing season. ↩
- The P-value reported in the table is for the initial one-way ANOVA testing the hypothesis that all six experimental conditions (control, four different times for single applications of fertilizer, and one with application of fertilizer at four times) had the same yield, not for the comparison of control to the treatment I’m focusing. I got that wrong last week. I was also typing too fast last week. ↩
- Lest that seem too large for between year variation, the observed yearly standard deviation for three samples at Chillicothe control was 13.8. At Urbana it was 9.72 for four samples. ↩
References
| ↑1 | sum(larger)/length(larger |
|---|

