Research question

A hypothetical 72-month sample: fund monthly excess return y, a standardized investor-sentiment index x and market monthly excess return z. Simple regression shows a positive x–y association. How much of x's coefficient remains after adding z, and is z a confounder, a mediator or some other structure? This article sets out the logic of choosing controls and the limits of the evidence. All numbers are hypothetical, not real market data.

Data

Item Value
Sample size n 72
Mean / standard deviation of y 0.70% / 0.77 percentage points
Mean / standard deviation of x 0 / 1.00
Mean / standard deviation of z 0.55% / 4.00 percentage points
Correlation of x and z 0.60
Simple regression slope on x 0.45 (SE 0.075)
Multiple regression slope on x 0.10 (SE 0.062)
Multiple regression slope on z 0.146 (SE 0.0156)
R² 0.34 → 0.71

x is a standardized sentiment index (unitless) and z is the market excess return; the data are hypothetical monthly observations, not real data. The figures come from a setting a reader can rebuild: the true model is y = 0.10·x + 0.146·z + u, with u of standard deviation 0.41 percentage points and corr(x,z) = 0.60; this gives a standard deviation of y of 0.77 percentage points and R² = 0.71. Regressing y on x alone returns a slope of 0.10 + 0.146 × 2.40 = 0.45, which is exactly the bias left by the omitted confounder. The standard errors use the population approximations SE(b) = s_e/(s_x·√(n-2)) for the simple regression and SE = s_e/(s_x·√(n-3)·√(1-corr(x,z)²)) for the multiple regression; the table rounds them, so a resampled reproduction can differ by about 0.01.

Method and assumptions

The simple regression is y = a + b x; the multiple regression is y = a + b x + c z. Confounding means that the effects of several factors on a response cannot be separated, and a relationship between two variables does not mean that one causes the other (OpenStax 1.2). If z affects both x and y and is not caused by x, it confounds; omitting it biases b. Omitted-variable bias is approximately c × δ, where c is the coefficient on z in the multiple regression and δ is the slope obtained by regressing the confounder on the explanatory variable, i.e. z = d + δ·x + e (in standard-deviation terms δ = corr(x,z)·s_z/s_x). Controls should block backdoor paths, not be added indiscriminately: controlling a mediator removes part of the effect, while controlling a collider creates bias. Linearity, independence, equal variance and correct form are still assumed; blocking can hold nuisance factors constant (NIST 5.3.3.2).

Results

Simple regression: b = 0.45 (SE 0.075, t = 6.00, 95% interval 0.30 to 0.60), R² = 0.34.

Multiple regression: b = 0.10 (SE 0.062, t = 1.61, p ≈ 0.11, 95% interval -0.02 to 0.22), c = 0.146 (SE 0.0156, t = 9.36), R² = 0.71. In both regressions the response is the fund's monthly excess return in percentage points; b is priced per one standard deviation of x and c per one percentage point of z.

corr(x,z) = 0.60 gives δ = 0.60 × 4.00 / 1.00 = 2.40, so the omitted-variable bias c × δ = 0.146 × 2.40 = 0.35, exactly the gap between 0.45 and 0.10. After adding z, x's coefficient falls from 0.45 to 0.10 and is no longer significant. One reasonable reading is that most of the simple association reflects market exposure rather than an independent sentiment effect. But "reasonable" is not "proven".

Slope of x on y before and after controlling for the market The horizontal axis is the standardized sentiment index x from -2.2 to 2.2; the vertical axis is fund monthly excess return in percentage points from -0.5 to 2.0. A solid line is the simple regression with intercept 0.70 and slope 0.45; a dashed line is the fit after controlling for market excess return z held at its mean, with intercept 0.6197 and slope 0.10. Dotted guide lines mark x = 0 and y = 0. y (pp per month; range −0.5 to 2.0) simple: ŷ = 0.70 + 0.45x with z controlled: ŷ = 0.6197 + 0.10x x = −2.2 0 +2.2
Figure 1: two lines from the same teaching data - a simple-regression slope of 0.45 and a slope of 0.10 once market excess return z is controlled and fixed at its mean of 0.55%. The controlled line's intercept is 0.70 − 0.146 × 0.55 = 0.6197. Only the lines implied by the coefficients in the text are drawn; the 72 monthly observations are not given, so no scatter appears. Numbers are teaching assumptions.

Figure 1 shows that the slope changes after the control; Figure 2 draws why as a backdoor path: z affects both x and y, so without controlling it the x–y association absorbs market exposure; with z controlled, the slope falls from 0.45 to 0.10.

Diagram: the backdoor path

Market return z affects both sentiment x and fund return y Three nodes: market return z at the top, standardized sentiment x at the lower left, and monthly fund excess return y at the lower right. Two gold dashed arrows run from z to x and from z to y, forming the backdoor path x from z to y; a solid arrow runs from x to y. After controlling z, the x coefficient falls from 0.45 to 0.10. Market z affects both Sentiment x standardized Fund return y monthly excess backdoor path After controlling z: x coefficient 0.45 → 0.10 Gold dashed = backdoor path; controlling z blocks it. Mediators take away the effect; colliders add bias.
Figure 2: z affects both x and y, creating the backdoor path x ← z → y; controlling z blocks it, and the x coefficient falls from 0.45 to 0.10. The arrows are a teaching structure, not proven causation; the numbers are teaching assumptions.

Robustness

The figures below are also hypothetical; they show which checks to run and cannot be derived from the setting above.

  • Two lags of z: x coefficient 0.08 (SE 0.10), still insignificant.
  • HAC standard errors: x SE about 0.10, same conclusion.
  • Two halves give x coefficients of 0.12 and 0.07, both insignificant, with wider intervals.
  • Alternative sentiment measure: 0.11 (SE 0.09).
  • If z is a mediator, controlling it understates the total effect; if it is a consequence of x or a collider, controlling it creates bias. Data alone cannot fully distinguish these structures; institutional knowledge and the timing of the variables are needed.

Limitations

Observational design cannot prove causation: when units cannot be assigned at random, the groups differ in more than the explanatory variable, and random assignment is what spreads potential differences evenly so that an experiment isolates the treatment effect (OpenStax 1.4). Mediator, collider and backdoor path are ordinary causal-inference terms used as this article's own methodological statement; the three registered sources cover the definition of confounding, random assignment and blocking, not these two kinds of mis-control. z may be mismeasured; size, style and fees may remain uncontrolled; functional form may be wrong; 72 months cover a limited environment. More controls are not always better; bad controls create bias. Numbers are hypothetical.

Reproduction

  1. Set out the time order, definitions and units of y, x and z.
  2. Run the simple regression; record the coefficient, SE and R².
  3. Plot x–z and y–z; assess whether z affects both.
  4. Add z; compare the change in the coefficient and report the auxiliary δ and the direction of the bias.
  5. Check robust SEs, subsamples and alternative measures.
  6. State the confounders that cannot be excluded.
short: y ~ x
long:  y ~ x + z
aux:   z ~ x          # δ = slope on x in this auxiliary regression
bias ≈ coef(x in long) * δ
       = omitted-variable bias, relative to the short-regression slope

Strength of conclusions

The simple association is 0.45; after z it is 0.10 and insignificant. This supports confounding by market exposure but does not prove x has no causal effect or that z is the only confounder. It is a conditional association, not a causal effect.

Knowledge-point review

causal graphs

Definition: A causal graph uses nodes and arrows to represent causal relations, often a directed acyclic graph (DAG).

Mechanism: DAGs identify confounders, colliders and mediators and guide control choice; backdoor and frontdoor criteria assess identification.

Example: For example, education affects income and ability affects both, so ability is a confounder to control; controlling post-graduation occupation, a mediator, blocks part of the effect.

Boundary: A causal graph is not fact; arrow direction rests on domain knowledge and assumptions, unobserved variables and feedback limit identification, and a wrong graph leads to wrong controls.

confounding

Definition: Confounding is a third variable affecting both treatment and outcome, mixing non-causal association into the observed relation.

Mechanism: It creates spurious or exaggerated effects; randomisation, matching, regression controls and instruments mitigate it but require knowing confounders.

Example: For example, ice-cream sales correlate with drowning, but weather affects both and is a confounder.

Boundary: Confounding is not correlation itself; unobserved confounding is hard to control, controlling colliders or mediators adds bias, matching can miss variables, and causal claims need design.

randomised experiments

Definition: A randomised experiment assigns treatment randomly, making treated and control groups comparable in expectation, the gold standard for causal identification.

Mechanism: Randomisation removes observed and unobserved confounding and identifies average treatment effects; sample size, compliance and external validity matter.

Example: For example, randomly giving half of patients a drug and half a placebo compares outcomes.

Boundary: Randomisation is not magic; non-compliance, attrition, ethics and cost limit experiments, it ensures internal validity only, and results in one sample may not generalise.

natural experiments

Definition: A natural experiment uses policy changes, geographic borders or accidental events that create quasi-random variation to identify causality.

Mechanism: It relies on exogenous shocks and comparability; policy thresholds, weather, disasters and institutional changes are used, but exogeneity must be tested.

Example: For example, one region raises the minimum wage while a neighbour does not, allowing employment comparison.

Boundary: A natural experiment is not a true experiment; exogeneity is contested, treatment coincides with other policies, migration and anticipation contaminate controls, and conclusions depend on institutions and period.

instrumental variables

Definition: An instrumental variable correlates with treatment but not directly with the outcome error, isolating the causal effect of treatment.

Mechanism: It needs relevance and exclusion restriction, estimated by two-stage least squares.

Example: For example, distance or policy changes instrument for years of schooling to estimate returns to education.

Boundary: Instruments are not any correlated variable; weak instruments, exclusion failure and local effects mislead, exogeneity cannot be fully tested, and the estimate is local to a subpopulation.

difference-in-differences and regression discontinuity

Definition: Difference-in-differences compares treated and control groups before and after, and regression discontinuity uses near-random differences around a threshold.

Mechanism: DID relies on parallel trends, RD on continuity and no manipulation near the cutoff; both need placebo and robustness checks.

Example: For example, a city policy is compared with similar cities before and after, and college admission compares scores around a cutoff.

Boundary: Methods are not automatically causal; parallel trends can fail, cutoffs can be manipulated or confounded, windows and functional form matter, and spillovers contaminate controls.

Related

  • Required prerequisite: Introduction to Linear Regression (RES-013).
  • Related reading: Hypothesis Testing and Practical Significance (RES-012), Introduction to Linear Regression (RES-013), Causality and Identification (RES-015).

Figures in plain language

The three figures below check the mechanism, boundary and comparison in this article; labels come from its own sections, not new data.

Control Variables and Confounding: mechanism chain Control Variables and Confounding — three-step structure: problem, mechanism, judgment. Labels come from the article's sections, not new data. Control Variables and Confounding: mechanism chain Labels come from the article's sections; all three steps matter. Problem Control variables are used to… Control variable s are used to block confoundin g paths, not to include every… Reproduction Reproduction: 1. Reproduction: 1. Data | Item | Value | | --- | ---: | |… | Item | Value | | --- | ---: | | Sample size n | 72 | | Mean / standard… Reading order: test the problem, then the mechanism, then whether the judgment overreaches. If a middle step lacks evidence, later conclusions are hypotheses, not facts. Structural illustration, not a new data chart; sample is the article's own argument.
Figure 3: Control Variables and Confounding — mechanism chain: problem, mechanism, judgment. Sample: the article's own argument; units as stated in the text.
Control Variables and Confounding: boundary Separates conditions where the claim holds from those where it fails; a local example is not universal. Control Variables and Confounding: when does it hold? Check the conditions before the conclusion If conditions, definitions or samples change, recompute the conclusion Holds Observational design cannot prove causation: when units cannot be assigned at random, the groups differ… Fails / rewrite A hypothetical 72-month sample: fund monthly excess return y, a standardized investor-sentiment index x… Boundary illustration; sample is the article's own argument; units as stated in the text.
Figure 4: Control Variables and Confounding — boundary: when the claim holds, and when it fails. Sample: the article's own argument; units as stated in the text.
Control Variables and Confounding: object, conditions and common mistakes Three rows compare the concept, its conditions and common mistakes; comparison is not equivalence and does not replace a definition. Control Variables and Confounding: object, conditions and common mistakes at a glance This article Commonly confused Object Control variables are used to block… Adjacent concepts / common claims Conditions Observational design cannot prove… A hypothetical 72-month sample: fund monthly excess return y, a… Check Define first, then compare; never judge labels only Correlation is not causation; a local case is not universal Comparison illustration; sample is the article's own argument; units as stated in the text.
Figure 5: Control Variables and Confounding — comparison of object, conditions and common mistakes. Sample: the article's own argument; units as stated in the text.

Exercises

  1. How does a control differ from a confounder?
  2. Why does controlling a mediator change the target effect?
  3. What if z is a collider and is controlled?
Suggested answers
  1. A confounder affects both the treatment and the outcome and forms a third path that has to be blocked, in the design or in the regression; a control is a variable included for that purpose, not simply every variable that happens to be available.
  2. A mediator lies on the causal chain from treatment to outcome, so controlling it takes away part of what belongs in the total effect; what is estimated is a direct effect rather than the total effect.
  3. Controlling a collider opens a path that was closed and can introduce selection bias, moving the coefficient away from the target.

Sources

  1. Illowsky, Barbara, and Susan Dean. Introductory Statistics 2e, “1.2 Data, Sampling, and Variation in Data and Sampling.” OpenStax. CC BY-NC-SA 4.0. https://openstax.org/books/introductory-statistics-2e/pages/1-2-data-sampling-and-variation-in-data-and-sampling (accessed 2026-10-30)
  2. Illowsky, Barbara, and Susan Dean. Introductory Statistics 2e, “1.4 Experimental Design and Ethics.” OpenStax. CC BY-NC-SA 4.0. https://openstax.org/books/introductory-statistics-2e/pages/1-4-experimental-design-and-ethics (accessed 2026-10-30)
  3. NIST/SEMATECH. e-Handbook of Statistical Methods, “5.3.3.2 Randomized block designs.” U.S. Government work (public domain). https://www.itl.nist.gov/div898/handbook/pri/section3/pri332.htm (accessed 2026-10-30)

Worked demo

Read-through check: can you say three things?

No recitation needed. Tick each sentence below and see whether you can explain the mechanism, one worked example and one boundary in your own words.

Ticked 0 / 3

The numbers are teaching assumptions that show relationships, not forecasts or investment advice.

This article has passed the current publication gate. Factual, calculation and translation revisions update both language versions together.

Back to station