- Introduced by
- R. A. Fisher
- Year
- 1924
- Type
- Parametric correlation with covariate control
What does it do?
Partial correlation measures the linear association between two continuous variables after the linear influence of one or more control variables has been statistically removed from both.
The sampling distribution of the coefficient was treated by R. A. Fisher in a 1924 paper. It is used when a researcher suspects that a third variable may inflate or suppress the observed association between two variables of interest.
The intuition behind the method
Imagine you observe that shoe size and reading ability are positively correlated across a sample of children. Age drives both: older children have larger feet and read better. Partial correlation lets you mathematically hold age constant and ask whether shoe size and reading ability are still related once that shared driver is removed. If the partial r drops to near zero, the original correlation was spurious — entirely explained by the control variable.
History
R. A. Fisher's paper on the distribution of the partial correlation coefficient appeared in Metron in 1924 (volume 3, pages 329–332). Kim (2015) derived a general matrix formula for the semi-partial (part) correlation and implemented partial and semi-partial coefficients, together with a test statistic, in the R package ppcor, with the aim of fast computation.
When to use it
Use partial correlation when you have two continuous focal variables and one or more continuous covariates whose linear influence you want to remove. The method assumes that the variables are approximately normally distributed and that each focal variable is linearly related to the others and to the covariates; check this with scatterplots before relying on the coefficient. Sample size should be planned rather than taken from a fixed rule: a minimum of 30 is sometimes used as a rough heuristic, but each control variable uses one degree of freedom (n − 2 − k), so more controls require a larger sample. Run a power analysis for the smallest partial r you consider meaningful and the planned number of controls. Choose covariates on theoretical grounds before analysis, since selecting them after seeing the data inflates the false-positive rate. Do not use the standard version for ordinal data or clearly non-normal distributions; a rank-based (Spearman) partial correlation is the alternative in those cases.
Limitations and considerations
- Assumes linearity; a nonlinear relationship between a covariate and either focal variable will not be fully removed by the linear adjustment.
- Controlling for variables measured with error (attenuation bias) can over- or under-correct the partial r.
- The coefficient is symmetric in the two focal variables, so it says nothing about which one influences the other; any directional claim must come from the study design or external theory.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Removes the linear contribution of the named covariates from both focal variables, so the remaining coefficient reflects the association between them with those covariates held fixed.
- The partial r is on the same scale as the zero-order correlation computed from the same data, which makes the change caused by controlling easy to see.
- Accommodates several control variables in a single coefficient rather than requiring a series of subgroup analyses.
Applications
- Epidemiology and public health: isolating the association between an exposure and a health outcome after controlling for age, sex, or other demographic confounders.
- Psychology and education: determining whether a cognitive test score predicts academic achievement independently of general intelligence or socioeconomic status.
- Economics and social science: examining the relationship between two economic indicators while holding a third macroeconomic variable constant.
- Medical research: assessing whether two biomarkers remain correlated after adjusting for body mass index, age, or disease severity.
How it works
How it works
The null hypothesis states that the population partial correlation between the two focal variables, controlling for the specified covariates, equals zero. The alternative hypothesis states that a nonzero relationship remains after controlling for those covariates.
Formula
H_0:\ \rho_{xy \cdot z} = 0 \quad H_1:\ \rho_{xy \cdot z} \neq 0The partial correlation coefficient r(xy·z) is computed by first obtaining the pairwise zero-order correlations among all variables, then algebraically removing the variance each covariate shares with the two focal variables. Equivalently, it is the simple correlation between the residuals of each focal variable after regressing it on the covariates. For a single covariate z, the formula uses the three bivariate correlations r_xy, r_xz, and r_yz. When there are multiple covariates the same principle extends via matrix operations. Significance is tested by converting r(xy·z) to a t-statistic with n − 2 − k degrees of freedom, where k is the number of control variables. The t reference distribution assumes approximately multivariate normal variables; with clear departures from normality, consider a permutation or bootstrap test instead.
Formula
r_{xy \cdot z} = \dfrac{r_{xy} - r_{xz}\,r_{yz}}{\sqrt{(1 - r_{xz}^2)(1 - r_{yz}^2)}}, \quad t = \dfrac{r_{xy \cdot z}\sqrt{n - 2 - k}}{\sqrt{1 - r_{xy \cdot z}^2}}If the two-tailed p-value is below the significance level chosen before the analysis (conventionally 0.05), the null hypothesis is rejected, indicating a nonzero partial relationship. The level is a convention, so values just either side of it should not be treated as a qualitative difference. The squared partial r is reported as the effect size. It gives the proportion of the variance left in one focal variable after the covariates are removed that is accounted for by the residual of the other focal variable, so it is not a share of total variance. Report r(xy·z), the p-value and the degrees of freedom together with the list of controlled variables.
Formula
\text{reject } H_0 \text{ if } p < 0.05;\quad \text{effect size: } r_{xy \cdot z}^2 \text{ (partial } R^2\text{)}Common pitfalls
- Controlling for a collider (a variable caused by both focal variables) can introduce rather than remove bias, so the causal structure should be considered before adding controls.
- Controlling for a mediator, a variable through which one focal variable affects the other, removes part of the effect being estimated.
- Selecting control variables based on the data rather than theory inflates false-positive rates.
- Interpreting a non-significant partial r as proof of no relationship, especially in small samples where power is limited.
- Forgetting to report which variables were controlled; partial r values are not interpretable without that information.
Frequently asked questions
How is partial correlation different from zero-order (Pearson) correlation?
A zero-order Pearson correlation reports the total linear association between two variables, which can include variance attributable to third variables. Partial correlation removes the portion of variance in both focal variables that is linearly shared with the specified covariates, leaving only the unique association between them.
What is the difference between partial and semi-partial (part) correlation?
Partial correlation removes the covariate's influence from both focal variables. Semi-partial (part) correlation removes it from only one of the two, typically the predictor, leaving the outcome variance intact. Semi-partial r is commonly reported in multiple regression as a measure of unique predictor contribution relative to the total outcome variance.
Can I use partial correlation with ordinal or non-normal data?
The standard parametric partial correlation assumes continuous, approximately normally distributed variables. For ordinal data or clearly non-normal distributions, a rank-based alternative (Spearman partial correlation) is more appropriate, and the choice should be stated in the report.
How many control variables can I include?
Each control variable uses one degree of freedom (df = n − 2 − k), so adding covariates reduces the information left for the test. With small samples, many controls make the coefficient unstable and reduce power. Keep the set to variables with a theoretical justification, and check that the residual degrees of freedom remain adequate for your sample.
Related methods
Sources
Fisher, R.A. (1924). The Distribution of the Partial Correlation Coefficient. Metron, 3, 329–332.
Open publication referenceKim, S. (2015). ppcor: An R Package for a Fast Calculation to Semi-Partial Correlation Coefficients. Communications for Statistical Applications and Methods, 22(6), 665–674.
Open DOI reference