Understand the idea
Almost every standard test assumes your rows are separate, unrelated measurements. That is what lets the method treat 100 rows as 100 pieces of evidence.
It breaks in ordinary ways. Measure the same person twice and the two rows are more alike than two random people. Sample whole classrooms and pupils in one room share a teacher. Record a machine every minute and consecutive readings drift together.
When rows are related, you have fewer real pieces of evidence than rows. A method that assumes independent rows does not know that, so with the usual kind of relatedness (rows in the same group are more alike) it acts more certain than it should: p-values come out too small and intervals too narrow. Rarer patterns of relatedness can push the other way.
This is the one assumption you cannot check by looking at a histogram and cannot fix by transforming the data. It is decided by how the data were collected, so the fix is to use a method that models the structure: a paired test, or a mixed model that knows which rows belong together.
Treating related rows as if they were independent, such as counting 30 measurements from 3 plants as if they came from 30 separate plants, is called pseudoreplication. Rows that are more alike than randomly chosen rows would be, like two measurements on one person, are called correlated observations. Groups of related rows, such as pupils in the same classroom, are called clusters, and this clustering is one of the most common ways independence breaks. Measuring the same person or item more than once gives repeated measures, which are rarely independent of each other.
Practitioner explanation
Requirements differ by method: some assume independent observations, others independent errors or a specified dependence structure. For independent clusters of equal size m with exchangeable within-cluster correlation ICC, the variance design effect is approximately 1 + (m-1)*ICC; the standard-error multiplier is its square root. Coverage depends on model and method.
Diagnosis is by design first, residuals second: repeated measurement of the same unit, hierarchical sampling (pupils in schools, parts in batches), spatial proximity, and time ordering are the recurring sources. Where a plausible ordering exists, autocorrelation of residuals (Durbin-Watson, an ACF plot) is evidence, but a clean residual plot never establishes independence: the structure may simply not be represented in the columns you modeled.
Depending on the design, appropriate approaches can include paired or repeated-measures tests, mixed-effects models, GEE with cluster-robust standard errors or a time-series model. Aggregating to clusters may be suitable when the scientific question and design justify that analysis unit, but changes the available information and is not a universal remedy.
When to use it
Consider it when
Consider it before every analysis: ask how the rows were collected and whether some of them belong together. Some patterns can be spotted (for example, an autocorrelation plot for data in time order), but no check on the card can prove that rows are independent.
Use caution when
Never assume it merely because a residual plot looks clean; absence of visible autocorrelation in the modeled columns is not evidence of independence.
Alternatives
- Paired t-Test. Exactly two measurements per unit: the dependence is a simple pairing and differencing removes it.
- Linear Mixed-Effects Model. Rows are nested in clusters (subjects, sites, batches) or there are more than two repeated measures per unit; a random intercept per cluster models the shared variation explicitly.
- Repeated-Measures ANOVA. A balanced repeated-measures design with the same measurement occasions for every subject.
Worked example
Scenario
Thirty patients each have blood pressure measured three times, and the 90 rows are analyzed with a two-sample t-test comparing treatment to control.
Result
The test is told there are 90 independent observations. In reality there are 30 patients; with an intra-patient correlation around 0.6 the effective sample size is closer to 40.
Interpretation
The reported standard error is roughly a third too small, so the p-value is too small and the confidence interval too narrow. The correct analysis either averages the three readings per patient and compares 30 values, or fits a mixed model with a random intercept for patient.
Common misconceptions
Misconception
Random sampling guarantees independence.
Correction
Random sampling of CLUSTERS still yields dependent observations within each cluster. Independence is about the relationship between individual rows, not about whether selection was random.
Misconception
A large sample fixes non-independence the way it fixes non-normality.
Correction
A larger sample helps with non-normality (the Central Limit Theorem), but not with dependence: extra rows that are related to rows you already have add less information than the method assumes, so with the usual positive relatedness a bigger sample still gives intervals that are too narrow and p-values that are too small.
References
- NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5 Quantitative techniques (assumptions underlying standard tests), NIST/SEMATECH (2012), §1.3.5.
- STAT 502: Introduction to Repeated Measures, Penn State Eberly College of Science, Lesson 11.
