Study design · 12 min read

Pseudoreplication: is your n really your n?

A reviewer says your 60 neurons are really 6 mice. Here is what that means, why they are right, and how to fix the analysis.

Advertisement
Updated December 2026 · Worked example with real numbers · Try it in the tool

You ran a careful experiment. Three mice got a drug, three got a vehicle injection, and a few weeks later you imaged 10 neurons from each mouse and counted their dendritic spines. The drug group had more spines, the t-test said p = 0.0003, and the paper went out for review. Then this comes back:

Reviewer 2, comment 3

The main conclusion rests on a comparison of n = 30 neurons per group (Figure 2C, p < 0.001). However, these neurons come from only three mice per group. Neurons from the same animal are not independent observations, so treating each neuron as a separate replicate is pseudoreplication and inflates the apparent sample size. Please reanalyze the data with the animal as the experimental unit, for example using per-animal means or a nested or mixed-effects model, report n as the number of animals, and revise the conclusions if necessary.

This is one of the most common statistical comments in biology and neuroscience reviews, and it is usually justified. This guide explains, without assuming a statistics background, what the reviewer is pointing at, why it can turn a non-existent effect into a "highly significant" one, and exactly how to fix the analysis and answer the comment.

What the reviewer means, in plain words

Imagine you want to know whether people in one city are taller than people in another. You measure three families from each city, ten family members per family, and end up with 30 heights per city. It sounds like a decent sample. But members of the same family share genes and eating habits, so if one tall family happens to land in your first city, ten of your 30 "independent" measurements are tall for the same single reason. You really sampled three families per city, not 30 people.

Neurons from the same mouse are like members of the same family. They share the mouse's genes, age, stress level, the day its brain was fixed and stained, and the session it was imaged in. If one drug-treated mouse happens to have unusually spiny neurons for any of those reasons, all ten of its neurons carry that quirk into your data.

Pseudoreplication means treating measurements as independent replicates when they are not: usually, counting many measurements from the same animal, patient, culture or sample as if each one were a separate subject. The analysis then believes it has more independent information than it really does.

The term was coined by the ecologist Stuart Hurlbert in 1984, after he found the problem in a large share of published field experiments. Neuroscience and cell biology have since had the same discussion, because modern methods (imaging, electrophysiology, single-cell sequencing) produce many measurements per animal.

The key idea: the experimental unit

To decide what your n is, ask one question: what was independently assigned to the treatment? That thing is your experimental unit, and n is the number of those.

ExperimentWhat you measuredExperimental unit (your n)
Drug injected into mice, neurons imagedNeuronsMice
Patients randomized to two treatments, blood tested three times eachBlood samplesPatients
Pregnant mice treated, several pups measured per litterPupsLitters
Cells from patients compared with cells from healthy donorsCellsDonors
Classrooms assigned to a teaching method, every student testedStudentsClassrooms
Fertilizer applied to field plots, 20 plants measured per plotPlantsPlots
Compound added to culture dishes, cells countedCellsDishes, or independent experiments if all dishes came from one culture on one day
One sample run through a machine three timesReadingsThe sample (the three readings are technical replicates)

In the spine study, the drug was injected into mice, not into individual neurons. You could not have given the drug to one neuron and vehicle to its neighbour. So the experimental unit is the mouse, and n = 3 per group, however many neurons you imaged.

This does not make the neuron measurements useless. Measuring several neurons gives you a much more precise value for each mouse. It just cannot tell you more about the drug than the number of mice allows.

A worked example: the same data, two answers

Here is a dataset that matches the story above: 3 mice per group, 10 neurons per mouse, spine density in spines per 10 µm. The full 60 values are at the end of this guide, ready to paste into ThinkFlo Stats. The mouse averages are:

MouseGroupNeuronsMean spine density
C1Control109.39
C2Control109.68
C3Control1010.53
D1Drug109.96
D2Drug1011.39
D3Drug1011.40

Both analyses below use the same 60 numbers. The group averages are identical (Control 9.87, Drug 10.92, a difference of 1.05). Only the question of what counts as n differs:

Neurons as n (pseudoreplicated)Mice as n (correct)
n per group30 neurons3 mice
t3.841.79
Degrees of freedom584
p0.00030.149
Conclusion"The drug strongly increases spine density"No convincing evidence of an effect

Now the uncomfortable part: these numbers were simulated with no drug effect at all. Every mouse's true average was drawn from the same distribution. The "highly significant" result comes entirely from two of the three drug mice happening to have spinier neurons than the control mice, which, with only three mice per group, happens easily by chance.

The same 60 neurons plotted two ways Left: bars of the neuron means with SEM error bars computed from 30 neurons per group, labelled p = 0.0003. Right: a SuperPlot showing every neuron as a small dot coloured by mouse, each mouse mean as a large dot, and the test on the 3 mouse means per group, p = 0.149. A. As submitted: n = 30 neurons 7 8 9 10 11 12 13 Spines per 10 µm Control Drug B. SuperPlot: n = 3 mice 7 8 9 10 11 12 13 Spines per 10 µm Control Drug *** p = 0.0003 Mean ± SEM, each neuron counted as n ns p = 0.149 Small dots: neurons (colour = mouse) · Big dots: mouse means
The same 60 neurons. Panel A treats every neuron as an independent replicate and looks convincing. Panel B, a SuperPlot, shows each neuron coloured by the mouse it came from: the neurons cluster by mouse, and the comparison rests on three mouse averages per group.

Why counting neurons makes p too small

A t-test judges a difference by comparing it with how much the data vary, and it assumes every value is a fresh, independent piece of evidence. When ten neurons share a mouse, the test sees ten pieces of evidence where there is mostly one. It therefore underestimates how much the group average would change if you repeated the experiment with three new mice, and it reports a p-value that is far too small.

How much too small depends on how alike neurons from the same mouse are compared with neurons from different mice. Statisticians measure this with the intraclass correlation (ICC): the share of the total variation that is due to differences between mice. An ICC of 0 means neurons behave as if they came from random mice; an ICC of 1 means every neuron in a mouse is identical. In the example, the ICC is about 0.35, which is typical for this kind of data.

To see what this does to error rates, we simulated 20,000 experiments with the same design (3 mice per group, 10 neurons each) and no true effect, then counted how often each analysis declared p < 0.05:

Similarity of neurons within a mouse (ICC)Neurons as n: false positivesMouse averages as n: false positives
0.1 (mice differ a little)15.9%5.0%
0.3 (common in practice)32.7%5.0%
0.5 (mice differ a lot)43.8%5.0%

A test run at the 5% level should produce false positives 5% of the time. Counting neurons instead of mice produced them up to 44% of the time. That is the reviewer's concern in one table: the reported p-value no longer means what readers think it means. (For more on false positives, see Type I and Type II errors.)

Three ways to fix the analysis

1. Average each animal, then test the averages

Calculate one value per mouse (the mean of its neurons), then run the usual test on those values: a t-test for two groups or a one-way ANOVA for three or more. In the example, that is the "mice as n" column: t(4) = 1.79, p = 0.149.

This is simple, transparent and accepted by reviewers. When every animal contributes the same number of measurements, it gives exactly the same p-value as a nested ANOVA (option 2). For the example, both give F(1, 4) = 3.19, p = 0.149. Its one weakness is that every mouse counts equally even if you measured 3 neurons in one and 25 in another, so it is best when the numbers per animal are similar.

2. Nested t-test or nested ANOVA

A nested analysis keeps all the neuron values but tells the software that neurons sit inside mice and mice sit inside groups. The drug effect is then tested against the variation between mice, not between neurons. Some commercial packages offer a "nested t-test" or "nested one-way ANOVA" directly. With balanced data the answer matches option 1; the nested output also reports how much of the variation comes from mice versus neurons, which can be informative in itself.

3. Linear mixed-effects model

A mixed model is the most flexible option. It handles different numbers of neurons per mouse, extra levels (slices within mice, mice within litters) and additional factors such as sex or time. In R, with the lme4 and lmerTest packages, the spine example is one line: lmer(spines ~ group + (1 | mouse), data = d), where (1 | mouse) means "neurons from the same mouse share a baseline". Mixed models need some care with small numbers of animals; with three per group, option 1 is just as valid and easier to explain.

What does not fix it: reporting SEM instead of SD, picking one "representative" neuron per mouse, or adding the mouse ID to the figure legend while still testing neurons. The test itself has to use the animal as the unit.

More neurons or more mice?

Once the animal is the unit, a natural question is whether imaging more neurons per mouse helps. It does, but only up to a point. A useful way to see this is the effective sample size: how many truly independent neurons your clustered data are worth. With 3 mice per group and an ICC of 0.3:

Neurons imaged per mouseTotal neurons per groupWorth about this many independent neurons
133.0
5156.8
10308.1
20609.0
501509.5

Going from 10 to 50 neurons per mouse, five times the imaging work, barely moves the effective sample size, and with three mice it can never exceed 10. The extra neurons make each mouse's value more precise, but the differences between mice remain, and only more mice can average those out. When planning, a modest number of cells per animal (often 5 to 15) and as many animals as feasible is usually the efficient design. See sample size and power for how to plan the number of animals.

A very common case: cultures, coverslips and images

You compare wild-type (WT) and knockout (KO) neurons. Each mouse gives one culture, each culture gives five coverslips, and you take one image per coverslip. With three mice per genotype that is 3 cultures and 15 images per group. Raising the number of mice to 15 is rarely realistic, so the practical and widely used solution is a nested analysis: enter all 15 images per genotype, and nest the five images within the culture they came from.

GenotypeCultureValue (one row per image)
WTWT1image 1 of 5
WTWT1image 2 of 5
………
KOKO3image 5 of 5

Every image is used and shown, but the genotype difference is tested against the variation between cultures. The p-value to report is the nested one, not the p-value from an ordinary t-test on 15 vs 15 images. To see why, we simulated 40,000 experiments of this design with no true difference between genotypes and counted how often p < 0.05:

Similarity of images within a culture (ICC)Nested analysisOrdinary t-test, 15 vs 15
0.15.1%10.4%
0.35.1%20.4%
0.55.2%29.2%

When every culture has the same number of images, the nested ANOVA gives the same p-value as a Student's t-test on the culture means, so you can report either.

What the extra coverslips buy you

Five coverslips per culture are well worth imaging: they make each culture's value more precise. The table shows the power of the nested analysis (the chance of p < 0.05) when the true difference is 1.2 standard deviations of the individual images:

Cultures × coverslips per genotypeICC 0.1ICC 0.3ICC 0.5
3 × 120%21%21%
3 × 555%40%31%
3 × 2082%49%35%
5 × 3 (also 15 images)75%63%53%
8 × 2 (16 images)85%79%73%

With three cultures, going from one to five coverslips raises power from 21% to 40% at an ICC of 0.3. If you can add even two more cultures, spreading the same 15 images over five cultures raises it to 63%.

If the treatment was applied to coverslips, the design is different. When coverslips from the same culture are split between drug and vehicle, each culture is its own control. Average the drug and the vehicle coverslips within each culture and run a paired t-test across cultures; n is the number of cultures. This comparison is often much more sensitive, because differences between cultures cancel out.

In the figure legend, state both levels, for example: "n = 3 independent cultures per genotype (one mouse each), 5 coverslips per culture; nested analysis with culture as the experimental unit."

How to show it in a figure

The plot in panel B above is a SuperPlot, a format proposed by Lord and colleagues in 2020 for exactly this problem. It has three ingredients:

Readers can see the spread of the raw data, how much animals differ from each other, and how many animals the conclusion rests on, all at once. In the figure legend, state both levels: "n = 3 mice per group, 10 neurons per mouse; statistics on mouse means."

Answering the reviewer

If the reanalysis keeps your result significant, say so and report the new numbers. If it does not, as in the example, the honest response is to revise the claim and, if possible, add animals. A reply might read:

Response to Reviewer 2, comment 3

We thank the reviewer for this important point. We agree that the animal is the experimental unit. We have reanalyzed the data using per-animal means (10 neurons per animal; n = 3 animals per group), which for our balanced design is equivalent to a nested ANOVA. The difference in spine density is no longer statistically significant (t(4) = 1.79, p = 0.15). We have revised Figure 2C as a SuperPlot showing individual neurons and animal means, updated the Methods and figure legend to state n as the number of animals, and toned down the corresponding conclusion in the Results and Discussion. [If applicable: We have added three further animals per group; with n = 6 animals per group, …]

Reviewers generally respond well to a clear, complete reanalysis, even when the effect shrinks. Arguing that neurons are independent rarely works.

Doing it in ThinkFlo Stats

ThinkFlo Stats handles this design directly. Enter the data the way most instruments and lab notebooks record it, one row per measurement with a column for the group, a column for the animal and a column for the value, and the tool does the per-animal analysis for you:

  1. Open the nested view and paste your table. Go to nested statistics (the Advanced: nested statistics link on the tool page), then paste or upload the data. The tool picks the group, subject and value columns. Check that it chose correctly (you can change any of them).
  2. Pick a test. Every test runs on one value per animal (the mean of its neurons), so n is the number of animals. With equal numbers of neurons per animal, Student's t-test and one-way ANOVA give exactly the nested t-test or nested ANOVA result, and the results say so.
  3. Read the pseudoreplication check. Below the results, the tool shows the p-value you would have got by counting every neuron, with a warning when that would have turned a non-significant result into a "significant" one. It is the number to quote to Reviewer 2.
  4. Use the SuperPlot. It is the default graph in this view: every neuron as a faint dot coloured by mouse, each mouse's mean as a large dot, and the mean of the mouse means with the error bar you choose. Significance brackets sit above all the points.

To try it with the example, copy all 60 rows below and press Ctrl/⌘+V in the nested statistics view (or click Load an example there). With Student's t-test, ThinkFlo Stats reports t(4) = −1.786, p = 0.149, a mean difference of −1.05 (95% CI −2.68 to 0.58), and a pseudoreplication check of p = 0.0003 for the per-neuron analysis, the same numbers as the tables above. The minus sign appears because the tool subtracts the second group from the first (Control − Drug). Welch's t-test gives p = 0.156.

Group	Mouse	Spines
Control	C1	7.8
Control	C1	10.0
Control	C1	8.5
Control	C1	11.0
Control	C1	9.7
Control	C1	8.6
Control	C1	9.3
Control	C1	9.3
Control	C1	9.4
Control	C1	10.3
Control	C2	10.0
Control	C2	11.1
Control	C2	10.1
Control	C2	9.4
Control	C2	8.2
Control	C2	8.2
Control	C2	9.7
Control	C2	10.2
Control	C2	10.9
Control	C2	9.0
Control	C3	11.0
Control	C3	10.2
Control	C3	10.5
Control	C3	8.8
Control	C3	11.6
Control	C3	10.2
Control	C3	10.8
Control	C3	11.3
Control	C3	11.2
Control	C3	9.7
Drug	D1	11.3
Drug	D1	10.7
Drug	D1	10.4
Drug	D1	9.4
Drug	D1	8.5
Drug	D1	8.5
Drug	D1	9.8
Drug	D1	10.1
Drug	D1	9.3
Drug	D1	11.6
Drug	D2	11.3
Drug	D2	11.9
Drug	D2	11.8
Drug	D2	10.1
Drug	D2	11.9
Drug	D2	11.4
Drug	D2	9.9
Drug	D2	11.7
Drug	D2	12.0
Drug	D2	11.9
Drug	D3	12.3
Drug	D3	10.0
Drug	D3	11.1
Drug	D3	10.8
Drug	D3	11.4
Drug	D3	11.4
Drug	D3	12.3
Drug	D3	12.0
Drug	D3	10.6
Drug	D3	12.1

Already have one value per animal? Use the standard tool page and paste the means, one column per group and one row per animal:

Control	Drug
9.39	9.96
9.68	11.39
10.53	11.40

What the tool does not do: it does not fit linear mixed-effects models, so with very unequal numbers of cells per animal, several nested levels (slices within mice within litters) or the same animals measured in every group (repeated measures), use a mixed-model package such as lme4 in R. It also cannot know which column identifies your experimental unit: if your design has several possible levels (animal, litter, culture batch), choose the one that was independently assigned to treatment, as described above.

Summary

Your n is the number of things that were independently assigned to the treatment, usually animals, patients or independent cultures, not the number of cells or readings. Counting cells as n can push the false-positive rate from 5% to over 40%. Average within each animal and test the averages (equal to a nested ANOVA for balanced data), or use a mixed model; show the data as a SuperPlot; and when planning, add animals rather than cells.

References

Analyse one value per animal, automatically.

Paste one row per measurement with an animal column: ThinkFlo Stats tests the animal means, draws a SuperPlot and shows how much pseudoreplication would have changed the result.

Open ThinkFlo Stats