Definition
Pseudoreplication is the error of analyzing measurements as independent repetitions of an experiment when they are not. Typically several measurements come from the same experimental unit §11.3, the thing that received one of the compared conditions as a whole, and each measurement is counted as if it were a separate unit. The analysis then assumes more separate pieces of evidence than exist. It usually reports too little uncertainty and can declare differences that are not real. Stuart Hurlbert named and defined the error in a 1984 paper on ecological field experiments [467].
The idea
Weigh one apple 100 times. The 100 readings fix the weight of that apple very exactly. About the average apple in the orchard they say little more than one careful weighing, because the same apple is in every reading. Counting them as 100 apples is pseudoreplication.
In a measurement log the apple is a device, or one session of use on it. Suppose a log holds 10,000 response times §9.32 from one session, and a queue was congested throughout that session. Every row is slow for the same reason. The usual formula for the uncertainty of a mean divides the spread of the rows by the square root of their number, as if the congestion had been drawn afresh 10,000 times. The congestion was drawn once.
How it works
Split each measured value into three parts: The offset is shared by every measurement in the unit: the congested queue, the slightly slow board. The noise is new in every measurement. Averaging measurements from one unit divides the variance §11.14 of the noise by , where variance means the average squared distance from the mean. The offset is the same in all values and passes into the average at full size. Only a new unit brings a new offset. A result about units in general is therefore limited by the number of units, however many measurements each one holds.
Hurlbert described three common forms.
Simple: one experimental unit per condition, with many measurements inside each.
Temporal: one unit per condition is measured at successive times, and the times are treated as separate units.
Sacrificial: there are several units per condition, but their measurements are pooled, or each measurement is treated as a unit. The information about how much units differ is thrown away or mixed with the variation inside units.
Three repairs are standard.
Reduce each unit to one value, such as its mean, and analyze those values.
Fit a statistical model that contains a term for the offset of each unit, called a hierarchical or mixed-effects model.
When uncertainty is estimated by resampling, meaning by drawing new data sets at random from the recorded data, draw whole units and not single rows. This is the cluster bootstrap §11.21.
Worked example
Four response times, in milliseconds (ms), come from one session. Each has a variance of , so a standard deviation, its square root, of 2 ms. Because the four share the session, they are not independent: every pair is given a covariance §15.44 of . Covariance measures how two quantities vary together; a positive value means that they tend to be high or low at the same time.
The variance of a sum is the sum of all the variances plus the covariances of all ordered pairs of different members. There are 4 variances: . There are ordered pairs: . The sum has variance . The mean is the sum divided by 4, which divides the variance by :
A calculation that ignores the covariances keeps only . The true variance is 2.5 times larger. The standard error §11.15 of the mean, which is the square root of this variance, is ms and not 1 ms. Since independent rows give the mean a variance of , the four rows are worth as much as independent rows.
More rows from the same session barely help. With 10,000 such rows the same counting gives for the variance of the mean, and the rows are worth independent ones. The shared part alone has a variance of , and no number of rows from one session reduces it.
Stated precisely
Let one unit supply observations. Let each have variance , and let every pair have the same correlation (rho), which is the covariance divided by . Then The factor is called the design effect: the ratio of the true variance to the variance that independent observations would give. The effective sample size is divided by the design effect. For it never exceeds , however large becomes. In the worked example , and , so the design effect is , the effective sample size is , and its limit is .
With independent units of observations each, the variance of the overall mean is The first term is the share of the unit offsets. It depends only on the number of units .
These formulas assume that all units have the same number of observations, that every observation has the same variance, that every pair inside a unit has the same correlation, and that different units are independent. In a series measured over time, close neighbors are often more strongly correlated than distant values, and the formulas do not hold as written.
Limits and common mistakes
Repeated measurements inside a unit are useful. They make the value of that unit more exact. The error lies only in counting them as units.
Pseudoreplication concerns statements of uncertainty: standard errors, confidence intervals §11.18 (ranges of uncertainty) and hypothesis tests §11.22 (decisions on whether a difference exceeds chance). The mean or the largest value of the recorded rows is still a correct description of those rows.
Grouping at too low a level repeats the error. If ten sessions ran on one device, the sessions share that device. Group at the level where the condition was assigned, or above that level when a higher level shares state.
A small correlation is not harmless when units are large. With and the design effect is , so the true standard error is about 10 times the one from the calculation that ignores the grouping.
With one unit per condition, no analysis can separate the effect of the condition from the difference between the two units. The repair is more units, not a different formula.
With only two or three units per condition the correct analysis is honest but imprecise, however many rows there are.
The correlation inside a unit can be negative, for example when the measurements in a unit compete for one resource. The calculation that ignores the grouping then overstates the uncertainty.
Questions answered
How would inference change if events were grouped by session or device?
The stated uncertainty would usually grow, often by a large factor, and the estimate itself could move. Grouping means that each session (one continuous period of use) or device, not each recorded event, counts as one piece of evidence. Events inside one session share its conditions, so they are usually positively correlated, and an analysis that counts every event separately then understates the uncertainty. Let each group hold events, and let (rho) be the correlation between any two events of a group, a number that is 0 for unrelated events and 1 for events that always move together. The standard error of a mean, which measures how uncertain the mean is, is then larger than the every-event calculation claims by the factor . Four events with give . Ten thousand events with give . Ranges of uncertainty widen accordingly, and some differences that seemed too large to be chance no longer do.
The estimate can move because the weights change. An average over events gives a session with many events more weight than a session with few. An average of session means gives every session the same weight. When sessions differ in size these are two different quantities, and the analysis has to say which one it reports.
Group at the level where the condition was assigned and where state is shared: by device if several sessions ran on one device.
Related entries: Experimental unit (§11.3), Independent and identically distributed samples (§11.5), Cluster bootstrap (§11.21), Observational unit (§11.4), Standard error (§11.15), Variance and standard deviation (§11.14). Further reading: [467].