When to use it
Ask whether two variables are still related once you account for one or more other variables: to check whether an association is genuine or is really driven by a lurking third variable (a confounder).
When not to: When a candidate control variable is actually a MEDIATOR (it lies on the causal path from X to Y): partialing it out removes real signal, not confounding, and understates the true effect. Also avoid controlling for a COLLIDER (a common effect of X and Y): conditioning on it can manufacture an association that was not really there. Choose controls from subject-matter knowledge, never by throwing in every available column.
Step by step
Open it from the menu
Click Analyze in the menu bar; under Correlation choose Partial Correlation.
Fill in the form
Choose the columns: Columns to relate, Columns to hold constant. The form lists only columns whose type fits each field.
Check the options
The options start at their defaults: Confidence level, Alpha. Change one only when your question needs it.
Run the analysis
Press Run analysis. The Result Card opens on its Results tab.
What to choose in the form
| Columns to relate Variables required | One numeric column. Two or more numeric target variables to correlate. |
|---|---|
| Columns to hold constant Controls required | One numeric column. One or more numeric control variables to hold constant (partial out of every target). |
| Confidence level | Confidence level for the Fisher-z interval. Default: 0.95. |
| Alpha | Significance threshold for the partial-correlation tests. Default: 0.05. |
How to read the card
The Results tab starts with what to know first (rows left out, checks that did not pass), then the interpretation in words and the Key Results; charts and assumption checks follow further down. Learn More explains the method in plain words. Read a Result Card covers all four tabs.
What it assumes
- Linearity
If it does not hold: Partial correlation removes only the LINEAR effect of each control variable; if a target depends on a control in a curved (nonlinear) way, that curved relationship leaks into the residual and inflates or deflates the reported partial correlation between the variables of interest.
How to check: Not checked by KernelStats: no nonlinearity diagnostic is run on the control relationships; the card states the linear-residualization mechanism directly.
- No (severe) multicollinearity
If it does not hold: Near-perfectly correlated control variables make the residualized (partialed-out) variables numerically unstable, so the reported partial correlation can be driven by rounding error rather than genuine signal.
How to check: Checked directly: the card reports the worst pairwise correlation among the analysis variables and controls, and flags it when at or above 0.99.
A worked example
Bill length and bill depth correlate at r = -0.23 across 342 penguins; controlling for flipper length and body mass (as proxies for overall body size) via partial correlation.
Result: Partial r = +0.24, 95% CI [0.13, 0.34], t(338) = 4.49, p < .001: a sign flip from the marginal r = -0.24 (n = 342 complete rows).
Once overall body size is held constant, bill length and bill depth are actually POSITIVELY related; the negative marginal correlation reflects the species mix: the large-bodied Gentoo have long but shallow bills, while the smaller Adelie have short, deep ones, so pooling species pulls the overall correlation negative. This is a textbook sign-flip case: the marginal correlation, read alone, would have suggested the opposite relationship.
From the Statistics Library.
The code tabs
Code gives this analysis as Python, R and MATLAB code (and SAS where the tab offers it), reading the data the way KernelStats did. Export sends the card to a report or to slides. See The Code tab.
Understand the statistics
Ask Oobi
Type one of these into Ask Oobi beside your data:
- Bill length and bill depth look negatively related across the penguins: is that still true once we control for body size (flipper length and body mass)?
- Explain the partial correlation in plain words.
- What does misconception: correlation implies causation mean?
Last reviewed November 16, 2026.
