Research question
A hypothetical 48-month sample: a fund's monthly excess return y and the market's monthly excess return x. How much higher is y on average when x is 1 percentage point higher? Can the line predict and explain? This article is descriptive and inferential; it does not turn correlation into causation. All numbers are hypothetical, not real market data.
Data
| Item | Value |
|---|---|
| Sample size n | 48 |
| Mean of x | 0.50% per month |
| Mean of y | 0.80% per month |
| Sample standard deviation of x | 2.00 percentage points |
| Sample standard deviation of y | 2.80 percentage points |
| Correlation r | 0.8571 |
| Observed range of x | about -3.6% to 4.2% |
The data are hypothetical monthly observations, not seasonally adjusted; means are shown as % per month, while standard deviations and coefficient changes are shown in percentage points.
Method and assumptions
The least-squares line is:
The slope is b = Σ(x-x̄)(y-ȳ) / Σ(x-x̄)² and the intercept is a = ȳ - b x̄ (OpenStax 12.3). The slope gives the average change in y per one-unit increase in x. R² = r² is the share of sample variance explained by the linear fit (OpenStax 12.3). Inference assumes linearity, independent errors, equal variance, approximately normal residuals and data from a well-designed random sample or randomized experiment; the correlation test has H0: ρ = 0 (OpenStax 12.4). These data are a hypothetical monthly time series, not a random sample, so the test results are only an approximate guide.
Results
b = 1.20, a = 0.20%, R² = 0.735. The regression standard error is 1.46 percentage points; SE(b) = 0.106, t = 11.29 (df = 46), p < 0.001, and the 95% interval is 0.99 to 1.41.
In the sample, a market excess return 1 percentage point higher is associated with a fund excess return 1.20 percentage points higher on average. At x = 1.00%, the predicted fund return is 0.20% + 1.20 × 1.00% = 1.40% per month. R² = 0.735 means about 73.5% of sample variance is explained; it is not a causal share and does not guarantee out-of-sample prediction.
Robustness
- Robust SE(b) ≈ 0.11; the conclusion is unchanged.
- Dropping the two largest absolute residuals gives b ≈ 1.16 and R² ≈ 0.71, with the sign unchanged.
- Two halves give b ≈ 1.05 and 1.34, both significant, with overlapping intervals.
- If x lies outside the observed range (for example 6.00%), the prediction is an extrapolation and the linear relationship may not hold (OpenStax 12.5).
- Serial correlation or heteroskedasticity distorts conventional standard errors and t-values; use robust methods or a time-series model.
Limitations
Regression describes an average linear relationship within the sample. Omitted variables, measurement error, reverse causality and selection can bias b; a high R² does not show that the model is right. Forty-eight months cannot pin down a long-run relationship, and changes in market structure shift the parameters. Correlation is not causation (OpenStax 12.3). The numbers are hypothetical and are not investment advice; treat them as a methods exercise, not as an assessment of any real fund.
Reproduction
- Fix the sample, frequency and definitions; draw a scatter plot.
- Compute x̄, ȳ, s_x, s_y and r.
- Compute b, a, residuals and R².
- Compute s_e, SE(b), t and the 95% interval.
- Inspect residuals, outliers and out-of-sample predictions.
b = sum((x - mean(x)) * (y - mean(y))) / sum((x - mean(x))^2)
a = mean(y) - b * mean(x)
r2 = corr(x, y)^2
se_b = sqrt(sum(resid^2) / (n - 2) / sum((x - mean(x))^2))
Strength of conclusions
In this hypothetical sample, the relationship is strong in-sample (b = 1.20, 95% interval 0.99 to 1.41, R² = 0.735). It is an association and a prediction description, not a causal effect; extrapolation needs more evidence.
Note: the standard errors, confidence interval and robustness figures illustrate method and direction. The four robustness figures are teaching assumptions, cannot be recomputed from the summary quantities printed here, and should not be quoted as precise estimates.
Knowledge-point review
control variables
Definition: Control variables are added to a regression to isolate the partial effect of a target variable.
Mechanism: Controls reduce omitted bias, but bad controls introduce overcontrol, collinearity and mediation; choice should follow causal graphs and mechanisms.
Example: For example, studying education's effect on income controls age, region and family background, but not post-graduation occupation, a mediator.
Boundary: More controls are not better; controlling mediators blocks the effect, controlling colliders creates bias, and measurement error and collinearity destabilise coefficients.
estimation diagnostics
Definition: Estimation diagnostics check whether regression results are credible through residuals, fit, collinearity, influence and specification.
Mechanism: Residual plots reveal nonlinearity and heteroskedasticity, VIF collinearity, Cook's distance influential points, and R-squared and standard errors fit and precision.
Example: For example, a funnel-shaped residual plot suggests heteroskedasticity, and a large Cook's distance flags influence.
Boundary: Diagnostics are not a formality; passing them does not prove causality, high R-squared can overfit, plots are subjective, and omitted-variable bias may not appear in residuals, so design matters.
heteroskedasticity
Definition: Heteroskedasticity means error variance changes across observations or regressors, violating homoskedasticity.
Mechanism: It biases conventional standard errors while coefficients may remain consistent; robust errors, weighted least squares or transformation address it.
Example: For example, consumption volatility rises with income, so error variance grows.
Boundary: Heteroskedasticity is not fatal; it mainly affects inference, robust errors help but are unstable in small samples, and omitted variables and nonlinearity can mimic it.
autocorrelation
Definition: Autocorrelation is correlation of errors over time, so adjacent or lagged errors are not independent.
Mechanism: It understates standard errors and inflates t-statistics; Newey-West, dynamic models or differencing help, but true dynamics and omitted variables must be distinguished.
Example: For example, monthly errors persist positively and ordinary significance is overstated.
Boundary: Autocorrelation is not only time series; spatial and grouped data correlate, robust errors cannot fix a wrong model, and lag choice and unit roots matter.
endogeneity
Definition: Endogeneity means a regressor correlates with the error, biasing coefficients through omitted variables, reverse causality, measurement error and simultaneity.
Mechanism: It cannot be solved by controlling everything; instrumental variables, experiments, panel fixed effects or structural models are needed, and direction and mechanism guide choice.
Example: For example, education affects income but ability affects both, so omitting ability biases the education coefficient upward.
Boundary: Endogeneity is not a technicality; it determines causal interpretation, instruments must be relevant and exogenous, fixed effects cannot fix time-varying omissions, and measurement error attenuates coefficients.
discrete and panel models
Definition: Discrete models handle binary, count or categorical outcomes, and panel models handle repeated observations of units over time.
Mechanism: Logit and probit suit binary, Poisson counts, and panel fixed or random effects control time-invariant individual differences.
Example: For example, default status uses logit, and multi-period firm investment uses panel fixed effects.
Boundary: Model choice is not automatic; discrete coefficients are nonlinear, fixed effects cannot estimate time-invariant variables, random effects assume no correlation with regressors, and clustered errors matter.
Related
- Required prerequisite: Covariance and Correlation (RES-010), Sampling and Confidence Intervals (RES-011).
- Related reading: Covariance and Correlation (RES-010), Sampling and Confidence Intervals (RES-011), Hypothesis Testing and Practical Significance (RES-012).
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.
Exercises
- What is the unit of the slope 1.20?
- Does R² = 0.735 mean the model explains 73.5% of the causal effect?
- Why is a prediction at x = 6.00% uncertain?
Suggested answers
- Percentage points of y per percentage point of x: a 1 point higher x is associated with a 1.20 point higher y on average.
- No. R² is an in-sample variance share; it does not measure causation or guarantee out-of-sample prediction.
- At x = 6.00%, it is outside the observed range (about -3.6% to 4.2%), so it is an extrapolation and the linear relationship may fail.
Sources
- Illowsky, Barbara, and Susan Dean. Introductory Statistics 2e, “12.3 The Regression Equation.” OpenStax. CC BY-NC-SA 4.0. https://openstax.org/books/introductory-statistics-2e/pages/12-3-the-regression-equation (accessed 2026-10-30)
- Illowsky, Barbara, and Susan Dean. Introductory Statistics 2e, “12.4 Testing the Significance of the Correlation Coefficient.” OpenStax. CC BY-NC-SA 4.0. https://openstax.org/books/introductory-statistics-2e/pages/12-4-testing-the-significance-of-the-correlation-coefficient (accessed 2026-10-30)
- Illowsky, Barbara, and Susan Dean. Introductory Statistics 2e, “12.5 Prediction.” OpenStax. CC BY-NC-SA 4.0. https://openstax.org/books/introductory-statistics-2e/pages/12-5-prediction (accessed 2026-10-30)
Worked demo
A regression line and three numbers
The sample means, standard deviations and correlation are fixed. Move the spread of x to see the slope change; then move the prediction point to see when it leaves the observed range.
The points are a teaching sample regenerated from the article’s means, standard deviations and r, not the original 48 observations; correlation is not causation.
Start with the slope: each extra point of x adds b points to y on average. Then the intercept: where the line sits at x=0. Finally R²: the share of sample y variance explained by the line.
48 teaching observations and fitted line
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.