Uncommon Ground

Monthly Archive: November 2026

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.

  1. 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. ↩
  2. 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. ↩
  3. 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

References
↑1 sum(larger)/length(larger

Why I don’t like null hypothesis significance testing – Part 1

A couple of weeks ago, I argued against falsificationism. Empirical evidence is the foundation of scientific knowledge, but falsifying hypotheses is a less important part of building that knowledge than people often think. And even within the realm of falsifications, null hypothesis significance testing is less useful than many people think for several reasons. In this post I’ll focus on problems that arise for decision making posed by the difference between planned and post-hoc comparisons. I’ll use some real, but simplified, data on soybean yields to illustrate.

The first set of data I’ll discuss come from a field trial at a university research farm near Brownston, Illinois in 2015 that gave the following results:1

Treatment Yield (bushels per acre)
Control 61.1
Treatment (100 lb N/acre) 56.2

That’s a difference of 4.9 bushels per acre, with less yield when nitrogen is applied,2 and the difference is significant: P = 0.022. The price of soybean futures on the Chicago Board of Trade as I write this3 is $12.30 per bushel. In 2022, US farms harvested a little more than 300 acres of soybeans on average. So for an average soybean farmer, applying 100 pounds of nitrogen per acre would cost them a little over $18,000 (not counting the cost of the fertilizer).

So far so good, but the results I just reported are from one of 5 hypothesis tests the authors performed, and the particular test reported was not a planned comparison. Using Tukey’s HSD test for post-hoc comparisons, which is what you should do in this case, gives P > 0.1, which is far from significant, meaning that in a conventional statistical sense we have no evidence that applying nitrogen fertilizer has an effect. It still doesn’t make sense to apply nitrogen fertilizer, since it costs money to buy and apply it, but with this analysis the farmer wouldn’t expect to lose additional money because of reduced yields.

But of course the agronomists at the University of Illinois didn’t do the experiment only near Brownston, they also did it at several other experimental farms. Let’s look at the results from Urbana in 2015:

Treatment Yield (bushels per acre)
Control 91.0
Treatment (100 lb N/acre) 96.1

In this case, there’s a 5.1 bushel per acre increase in yield per acres when nitrogen is applied and the difference is significant: P = 0.028. But again, when we use Tukey’s HSD, we get P > 0.1, meaning that we don’t have statistical evidence of an effect, even though our best guess is that the farmer would make nearly $19,000 (minus the cost of fertilizer) if they did.

What are you going to tell a farmer to do? How much of what you tell them will depend on results of the null hypothesis tests I presented? Feel free to look at the additional results reported in the study from which these data were drawn. I’ll give you my answer in the next post.

  1. https://ilagronomy.info/2025/07/14/nitrogen-fertilizer-and-soybean-yield-what-we-learned-from-multi-year-trials-in-illinois/ The treatment mean is the PLT+R1+R3+R5 mean. ↩
  2. That might not be too surprising, since soybean fixes nitrogen. ↩
  3. About 9:00am EST on 16 November 2026 ↩

One way that I’m using Claude

Like many people, I often ask Claude or ChatGPT a simple question that I might once have investigated using a search engine. That’s useful, but not particularly creative. For the past month or month and a half, though, I’ve been using Claude in a way that some of you might find useful.1

I use Endnote as my bibliography manager,2 and I use Obsidian to manage a large collection of markdown notes. Here’s how I use Claude to link the two of them.

  1. Export all references in the Endnote database to a text file using the BibTeX export format. That retains all of the bibliographic information. It also includes the abstract for any references that has one.
  2. The first time through I prompted Claude to scan the BibTeX export and (a) retain only those records that include an abstract and (b) write each BibTeX record to a file with a name based on the citation within my Obsidian vault.3 Now I prompt Claude to scan the BibTeX export and (a) retain only those records that include an abstract and that haven’t already been added to my Obsidian vault and (b) write the new records to the vault, adding a letter to the year for disambiguation where necessary.

Now I have a bunch of bibliographic records where I can easily search abstracts as well as authors and titles. More importantly (for me), when I open a specific record, theSmart Connectionscommunity plugin shows me notes in my Obsidian vault that are similar to the one I’m looking at with a numerical score that depends on the degree of relationship. The image below is a screenshot of what this looks like for a paper by Daniel Schreider that recently appeared in Genetics.

  1. Assuming that there is a “some of you” who read entries here. ↩
  2. Yes, I know that Clarivate is evil, but I’ve been using EndNote for at least 20 years, maybe 30. Old habits die hard, and I’m sure you could mimic everything I describe here in your bibliography manager. And in case you’re wondering, I Clarivate won’t pay me for mentioning Endnote, and I won’t get any money from them if you click on that link and decide to buy it. ↩
  3. I use <author>-<year>-<source>. ↩

International Fountain Pen Day

The first Friday of November is International Fountain Pen Day, and I felt compelled to celebrate by giving myself an early holiday present.

That’s a photo of the Pilot Justus 95, black with gold trim that I just ordered. I clipped it from the Pen Botique site where I bought it. I already own a Namiki Falcon and a Pilot Metal Falcon, both of which are among my favorites.1 In fact, the Justus 95 looks a lot like my Namiki Falcon, but that’s not why I bought it. I bought it because the Justus 95 has an adjustable nib. It can be adjusted to be hard or soft. I’ll probably set it to hard most of the time, but when I feel like having a little fun and having my line width vary a little more than usual, I’ll switch to soft.

Don’t count on it, but it’s possible that I’ll post a writing sample that shows the difference after my new pen arrives next Wednesday.

  1. Why do I mention the Namiki Falcon? Because Ryosuke Namiki founded Pilot, and Namiki is owned by the Pilot Corporation (https://en.wikipedia.org/wiki/Namiki). I could also have mentioned that I own a Namiki Vanishing Point. ↩

Against falsificationism

In The Logic of Scientific Discovery Karl Popper proposed that falsifiability solves both the problem of distinguishing science from pseudoscience1 and the problem of induction, the observation dating to Hume if not before, that you cannot justify generalizations with the same logical certainty that you can justify the conclusion of a syllogism. Even though you’ve seen the sun rise every morning as have millions of people before you, it is possible (even if highly improbable) that it won’t rise tomorrow morning.

Consider a simple syllogism, this one an example of a pattern known asmodus ponens:

All human beings are mortal.

I am a human being.

Therefore, I am mortal.

The defining characteristic of a logically valid syllogism is that if the premises are true—“All human beings are mortal.”, “I am a human being.”—then the conclusion must be true, where “must” has the same logical force as the assertion that “equals” does in 2 + 2 = 4.

Your belief (and mine) that the sun will rise tomorrow morning is justified, but our belief doesn’t carry with it that degree of certainty, because we can imagine that the sun might not rise tomorrow morning. Earth might explode in the next 12 hours.2 So no matter how many times the sun has risen before, it might not rise the next time.

Falsifiability solves the problem of induction by arguing that inductive reasoning should not be the goal of science. What science can establish with certainty is which hypotheses are false. Popper argued that science advances by excluding more and more false hypotheses. And he argued that pseudoscience is characterized by theories unconnected to data or observation or connected only through special pleading, paying attention only to some of the evidence.

The logic of falsification is simple. Consider the hypothesis “All swans are white.” If that hypothesis is true, we can construct the following syllogism.

All swans are white.

This bird in front of me is a swan.

Therefore, the bird in front of me is white.

Well, if you’re a birder or you’ve been to souther Australia, you know that there’s a species of swan there, Cygnus atratus that is black. Thus, we can conclude with logical certainty that the hypothesis, “All swans are white,” is false. That’s how falsification works.

But there’s a problem with what I just wrote. Given the structure of the argument, if the bird in front of me is black, we know that at least one of the two premises must be false, but we don’t know which one. Even worse, it’s possible that I wrongly asserted that the bird in front of me is black. Maybe it’s a white bird that’s been dipped in black dye. There’s nothing in the logical structure of those premises that tells us which of those possibilities is right, only that one of them must be. We haven’t advanced nearly as far as we thought.

We depend on our background knowledge to judge whether our observation is wrong and whether one or both of our premises is wrong. More precisely, as a knowledge community, the group of people interested in and expert in the subject of our hypothesis use their shared background knowledge and experience to determine the appropriate conclusion, possibly after a lot of argument and additional observation.

Falsification isn’t as simple as people often think.

  1. The demarcation problem ↩
  2. I’m writing this a little before 7:00pm EST, and the sun is expected to rise tomorrow at 6:23am EST. ↩