Author-reviewedEvidence: highv1.0.1

Partial Correlation

Partial correlation is the correlation between two variables, such as costs and QALYs, after the linear effects of other variables are removed from both.

Last reviewed byDr Darrin Baines

Concept Architecture

Partial Correlation in Health Economic Analysis and Evidence Synthesis

A partial correlation coefficient shows how closely two quantities move together once one or more other quantities have been held fixed, so the link between a patient's hospital costs and their quality of life can be judged net of comorbidity or age. It lies between −1 and +1 like an ordinary correlation coefficient, and setting the two side by side shows how much of an observed association runs alongside the variables controlled for. Health economists meet it in exploratory work on patient-level data and as the partial rank correlation coefficient used to rank the uncertain inputs of a decision model. In evidence synthesis it serves as a standardised effect size recovered from reported regression results. Which variables to control for remains a judgement about the confounding structure of the data.

Removing the controlled variables from both quantities

The idea is to strip out of each variable whatever the control variables can predict linearly, and then correlate what is left. Marino and colleagues define the partial correlation as the correlation between the residuals from linear regressions of each variable on the remaining ones.

rxy⋅z=corr⁡(x−x^, y−y^)r_{xy \cdot z} = \operatorname{corr}\left(x - \hat{x},\, y - \hat{y}\right)

where rxy⋅zr_{xy \cdot z} is the partial correlation between xx and yy controlling for zz, x^\hat{x} and y^\hat{y} are the fitted values from linear regressions of xx and of yy on zz, and corr⁡\operatorname{corr} is the ordinary Pearson correlation of the two sets of residuals.

With a single control variable the same quantity follows from the three pairwise correlations. The NIST Dataplot reference manual gives this first-order formula, and Kim notes that the residual definition is equivalent to it.

rxy⋅z=rxy−rxz ryz(1−rxz2)(1−ryz2)r_{xy \cdot z} = \frac{r_{xy} - r_{xz}\, r_{yz}}{\sqrt{\left(1 - r_{xz}^{2}\right)\left(1 - r_{yz}^{2}\right)}}

where rxyr_{xy}, rxzr_{xz} and ryzr_{yz} are the simple Pearson correlations between each pair of variables. The numerator takes away the part of rxyr_{xy} that the two links through zz would produce on their own, and the denominator rescales the result to the variation in xx and yy that zz does not explain.

Several control variables and the inverse covariance matrix

Applied work usually adjusts for several variables at once, such as age, sex and baseline health. Kim states, citing Whittaker, that higher-order partial correlations can be read from the inverse of the variance-covariance matrix, which is far cheaper than applying the first-order formula recursively.

rij⋅S=−dijdii djjr_{ij \cdot S} = -\frac{d_{ij}}{\sqrt{d_{ii}\, d_{jj}}}

where rij⋅Sr_{ij \cdot S} is the partial correlation between variables ii and jj given the set SS of all other variables, and dijd_{ij}, diid_{ii} and djjd_{jj} are elements of the inverse covariance matrix, often called the precision matrix. The inverse of the correlation matrix gives the same result, since rescaling a variable does not change a correlation.

Partial correlation, semi-partial correlation and the regression coefficient

Two neighbouring quantities are easily confused with the partial correlation. Kim describes the semi-partial correlation, also called the part correlation, as removing the effect of the other variables from just one of the two variables of interest.

rx(y∣z)=rxy−rxz ryz1−ryz2r_{x(y \mid z)} = \frac{r_{xy} - r_{xz}\, r_{yz}}{\sqrt{1 - r_{yz}^{2}}}

where rx(y∣z)r_{x(y \mid z)} is the correlation between xx and the part of yy not explained by zz. Only the denominator differs, so the semi-partial correlation is never larger in size than the partial one, and Kim notes that the two are equal when zz is correlated with yy but not with xx.

The second neighbour is the coefficient from a multiple regression. Van Aert and Goos show that the partial correlation can be computed from the t statistic of the coefficient of interest and the residual degrees of freedom.

rp=tt2+dfr_p = \frac{t}{\sqrt{t^{2} + df}}

where rpr_p is the partial correlation between the outcome and the predictor, tt is the t statistic for that predictor's coefficient, and df=N−M−1df = N - M - 1, with NN observations and MM predictors. Van Aert and Goos give the size as a square root, and the sign is that of the coefficient. The coefficient states the adjusted effect in natural units, such as pounds per unit of utility, while the partial correlation states only its standardised strength. Manca, Hawkins and Sculpher note that baseline utility is likely to be highly correlated with the QALYs accrued over follow-up, and they use multiple regression to estimate differential mean QALYs while controlling for baseline imbalance.

Sampling error, tests and intervals

Fisher showed in 1924 that the sampling distribution of a partial correlation from nn pairs with ss variates eliminated is the same as that of an ordinary correlation from n−sn - s pairs. He presented this as confirming Yule's 1907 approximation, provided the number of variates eliminated is a small fraction of the sample. Kim gives the corresponding test of no partial correlation.

t=rxy⋅SN−2−g1−rxy⋅S2t = r_{xy \cdot S}\sqrt{\frac{N - 2 - g}{1 - r_{xy \cdot S}^{2}}}

where tt follows a t distribution with N−2−gN - 2 - g degrees of freedom under the null hypothesis, NN is the sample size and gg is the number of control variables. With one control variable the NIST manual expresses the same test as an F statistic on 1 and N−3N - 3 degrees of freedom, the square of this t.

A confidence interval uses Fisher's z transformation. The NIST manual computes the interval for an ordinary correlation from atanh⁡(r)\operatorname{atanh}(r) with a standard error of one over n−3\sqrt{n - 3}, and Fisher's result replaces nn with n−gn - g.

z=atanh⁡(rxy⋅S),limits=tanh⁡(z±1.96N−3−g)z = \operatorname{atanh}\left(r_{xy \cdot S}\right), \qquad \text{limits} = \tanh\left(z \pm \frac{1.96}{\sqrt{N - 3 - g}}\right)

where zz is the transformed coefficient, 1.96 is the standard normal quantile for a 95% interval and tanh⁡\tanh converts the limits back to the correlation scale. Fisher's derivation assumes normally distributed variates and independent observations.

Partial rank correlation in probabilistic sensitivity analysis

A probabilistic sensitivity analysis produces thousands of joint draws of the model inputs and the matching outputs, such as incremental net benefit. Correlating each input with the output across those draws, while partialling out the other inputs, ranks the inputs by influence. Marino and colleagues describe the partial rank correlation coefficient (PRCC) as a partial correlation computed after rank-transforming inputs and output, and judge it a reliable measure for nonlinear but monotonic relationships provided little or no correlation exists between the inputs. They pair it with Latin hypercube sampling as a form of global sensitivity analysis.

Menzies and colleagues used PRCCs in a cost-effectiveness analysis of Xpert MTB/RIF testing for tuberculosis in southern Africa, computing them across the simulation results of their Bayesian uncertainty analysis. The conclusions were largely consistent with their one-way sensitivity analyses. A PRCC shows how strongly the output moves with an input but not whether that movement could change the adoption decision, which is the question the expected value of partial perfect information answers.

Partial correlations as effect sizes in meta-analysis

Primary studies seldom publish full correlation matrices but routinely report regression coefficients and t statistics. Van Aert and Goos note that meta-analyses of these partial effects are regularly conducted in psychology and economics, using the partial correlation as the effect size. Inverse-variance weighting then needs a sampling variance for each study, and two estimators are in use.

s12=(1−rp2)2df,s22=1−rp2dfs_1^{2} = \frac{\left(1 - r_p^{2}\right)^{2}}{df}, \qquad s_2^{2} = \frac{1 - r_p^{2}}{df}

where s12s_1^{2} is the estimator derived by Olkin and Siotani and by Anderson, s22s_2^{2} is the one given by Stanley and Doucouliagos, and dfdf is the residual degrees of freedom of the study's regression. Van Aert and Goos show that s22s_2^{2} was derived assuming a population value of zero and is biased when the true value is not zero and samples are small, and they recommend s12s_1^{2}. In a separate paper van Aert found, in a reproduced simulation study, that pooling Fisher z transformed partial correlations gave lower bias and root mean square error, and recommends reporting such an analysis alongside any pooling of untransformed values. Each study's coefficient is conditional on its own control set, so a pooled value combines different adjustments.

Worked example with cost, utility and comorbidity in a registry

All numbers are illustrative. A registry of 200 adults with a long-term condition records annual hospital cost (CC), EQ-5D utility (UU) and number of comorbidities (MM). The simple correlations are rCU=−0.40r_{CU} = -0.40, rCM=0.50r_{CM} = 0.50 and rUM=−0.60r_{UM} = -0.60, so part of the cost and utility association may run through comorbidity.

1. Partial correlation. The numerator is −0.40 − (0.50 × −0.60) = −0.40 + 0.30 = −0.10. The denominator is √((1 − 0.25) × (1 − 0.36)) = √(0.75 × 0.64) = √0.48 = 0.6928. The partial correlation is −0.10 / 0.6928 = −0.144.

2. Check from the inverse correlation matrix. The determinant is 1 + 2 × (−0.40) × 0.50 × (−0.60) − 0.16 − 0.25 − 0.36, which is 1 + 0.24 − 0.77 = 0.47. The inverse elements are dCCd_{CC} = 0.64 / 0.47 = 1.3617, dUUd_{UU} = 0.75 / 0.47 = 1.5957 and dCUd_{CU} = 0.10 / 0.47 = 0.2128, so the partial correlation is −0.2128 / √(1.3617 × 1.5957) = −0.2128 / 1.4741 = −0.144.

3. Semi-partial correlation. Removing comorbidity from utility only gives −0.10 / √(1 − 0.36) = −0.10 / 0.8 = −0.125.

4. Test. With NN = 200 and gg = 1 there are 197 degrees of freedom. Since 1 − 0.1443² = 0.9792, tt = −0.1443 × √(197 / 0.9792) = −0.1443 × 14.184 = −2.05, a two-sided p-value of about 0.042. The unadjusted correlation gives tt = −0.40 × √(198 / 0.84) = −0.40 × 15.353 = −6.14.

5. Interval. atanh(−0.1443) = −0.1454 and the standard error is one over √196, which is 1/14 = 0.0714. The z-scale limits are −0.1454 ± 1.96 × 0.0714 = −0.1454 ± 0.1400, or −0.2854 and −0.0054, and back-transformed the 95% interval is −0.278 to −0.005.

6. Recovering the value from a regression. A study reporting only a regression of cost on utility and comorbidity, with tt = −2.047 for utility on 200 − 2 − 1 = 197 degrees of freedom, gives rpr_p = −2.047 / √(4.190 + 197) = −2.047 / 14.184 = −0.144. For pooling, 0.9792 squared is 0.9588, so s12s_1^{2} = 0.9588 / 197 = 0.00487 and s22s_2^{2} = 0.9792 / 197 = 0.00497.

7. Interpretation. The correlation of −0.40 falls to −0.14 once comorbidity is held fixed, so most of the tendency for patients with lower utility to cost more travels with comorbidity count in these data. The remaining association is small and its interval nearly reaches zero. For a cost model, comorbidity is the stronger candidate predictor, since its partial correlation with cost given utility is (0.50 − 0.24) / √(0.84 × 0.64) = 0.355, though nothing here shows which variable drives which.

Choosing what to control for and common misreadings

The coefficient depends entirely on the control set. Controlling for a confounder removes association that would otherwise mislead, while controlling for a variable on the path between the two, the subject of mediation analysis, removes part of the association of interest, and controlling for a common effect of the two, a collider, can create an association that was not there. Only linear effects of measured variables are removed, so a nonlinear effect of age or an unmeasured cause such as frailty can leave spurious association behind.

  • Treating a small partial correlation as no relationship. The relationship may be nonlinear, or a mediator among the controls may carry most of it.
  • Comparing values across studies with different controls. The same pair of variables gives different partial correlations under different adjustment sets.
  • Ranking model inputs by PRCC when inputs are correlated or relationships are not monotonic. Both conditions fall outside the method's stated scope.
  • Pooling with the variance derived under a zero value. It exceeds the recommended estimator whenever the coefficient is not zero, and van Aert and Goos note that a suboptimal variance estimator biases a meta-analysis through its weights.

Sources

Library

Publications

1
  • Book

    Bayesian Methods in Health Economics — Gianluca Baio, 1st Edition ed., 2012 (Chapman & Hall / CRC Press)

    An overview of Bayesian statistical methods for the analysis of health economic data, covering economic evaluation concepts, statistical cost-effectiveness analysis, Bayesian computation and MCMC, and applied health economic evaluation.

Frequently Asked Questions (6)

  • What is partial correlation?

    Partial correlation is the correlation between two variables, such as costs and QALYs, after the linear effects of other variables are removed from both.

    Source: Kim 2015

  • What does partial correlation reveal once other variables are held constant?

    A partial correlation measures how strongly two quantities still move together after the linear effects of the controlled variables have been removed from both of them. Kim explains it as the association between two variables after eliminating the effect of all the other variables, which is equivalent to correlating the residuals left when each is regressed on the controls. Set beside the simple correlation, it shows how much of an observed link travels with the variables held fixed. In an illustrative registry, a cost and utility correlation of 0.40 in size fell to 0.14 once comorbidity was held fixed, so most of that association ran alongside comorbidity. The adjusted value still says nothing about which variable drives which.

    Source: Kim 2015

  • How is partial correlation calculated?

    The direct route regresses each of the two variables on the control variables and then takes the ordinary Pearson correlation of the two sets of residuals. With a single control variable the same value follows from the three pairwise correlations, by subtracting from the correlation of interest the product of the two correlations with the control and dividing by the square root of the product of one minus each of those squared correlations. Kim notes that the residual definition is equivalent to this formula. For several controls at once, higher-order partial correlations can be read from the inverse of the variance-covariance matrix, which is far cheaper than applying the first-order formula repeatedly.

    Source: Kim 2015

  • Why is partial correlation useful?

    Partial correlation separates the association between two quantities from the part that runs alongside other measured variables, which helps in exploratory work on patient-level cost and outcome data. In decision modelling its rank form, the partial rank correlation coefficient, orders the uncertain inputs of a probabilistic sensitivity analysis by how strongly each moves with an output such as incremental net benefit while the other inputs are partialled out. Marino and colleagues judge this rank measure reliable for nonlinear but monotonic relationships, provided the inputs are little correlated with one another, and pair it with Latin hypercube sampling as a form of global sensitivity analysis. A high rank does not show whether an input could change the adoption decision.

    Source: Marino et al. 2008

  • How does partial correlation differ from simple correlation?

    A simple correlation measures the linear association between two variables from their raw values, while a partial correlation measures it after the linear effects of one or more control variables have been removed from both. With one control, the partial value is the simple correlation less the part that the two links through the control would produce on their own, rescaled to the variation the control does not explain. Both lie between minus 1 and plus 1, and comparing them shows how much of the observed association runs alongside the controls. Testing also differs, since Kim's test of no partial correlation loses one degree of freedom for each control variable.

    Source: Kim 2015

  • What are the limitations of partial correlation?

    A partial correlation depends entirely on the chosen control set, and only linear effects of measured variables are removed, so a nonlinear effect of age or an unmeasured cause such as frailty can leave spurious association behind. Controlling for a variable on the path between the two removes part of the association of interest, and controlling for a common effect of both can create an association that was not there. Values from studies with different adjustment sets are not directly comparable. The usual test and interval rest on Fisher's 1924 result on its sampling distribution, which assumes normally distributed variates and independent observations.

    Source: Fisher 1924

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 27 Oct 2026

Content version: 1.0.1

Canonical Identity

Term code
HE-ES-SA-153
Wikidata
Q2998010

Stable URI · Machine-readable · Resolvable · CC BY 4.0