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:

y = a + b x

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.

Fitted line and the mean point The horizontal axis is the explanatory variable x in percent per month from minus 3.6 to 4.4; the vertical axis is y in percent per month from minus 5 to 5.5. A straight line runs from the lower left (-3.6, -4.12) to the upper right (4.2, 5.24) and passes through the mean point (0.50, 0.80). Dashed lines mark x = 0 and y = 0. No scatter points are drawn because the article does not give the observations. y (% per month; range −5 to 5.5) mean point (0.50, 0.80) ŷ = 0.20 + 1.20x x = −3.6 x = 4.2 x = 0 (dashed)
Figure 1: the fitted line ŷ = 0.20 + 1.20x, fixed by the statistics already in the text (slope 1.20 = 0.8571 × 2.80 ÷ 2.00; intercept 0.20 = 0.80 − 1.20 × 0.50), together with the mean point (0.50, 0.80). The x-axis spans the observation range given in the text, −3.6% to 4.2%; no scatter points are drawn because the 48 observations are not provided - inventing them would be fabrication. Numbers are teaching assumptions.

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

  1. Fix the sample, frequency and definitions; draw a scatter plot.
  2. Compute x̄, ȳ, s_x, s_y and r.
  3. Compute b, a, residuals and R².
  4. Compute s_e, SE(b), t and the 95% interval.
  5. 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.

Introduction to Linear Regression: mechanism chain Introduction to Linear Regression — three-step structure: problem, mechanism, judgment. Labels come from the article's sections, not new data. Introduction to Linear Regression: mechanism chain Labels come from the article's sections; all three steps matter. Problem Linear regression summarizes the… Linear regressio n summarizes the average relationship between two… Reproduction Reproduction: 1. Reproduction: 1. Data | Item | Value | | --- | ---: | |… | Item | Value | | --- | ---: | | Sample size n | 48 | | Mean of x | 0.50%… 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 2: Introduction to Linear Regression — mechanism chain: problem, mechanism, judgment. Sample: the article's own argument; units as stated in the text.
Introduction to Linear Regression: boundary Separates conditions where the claim holds from those where it fails; a local example is not universal. Introduction to Linear Regression: when does it hold? Check the conditions before the conclusion If conditions, definitions or samples change, recompute the conclusion Holds Regression describes an average linear relationship within the sample. Fails / rewrite A hypothetical 48-month sample: a fund's monthly excess return y and the market's monthly excess… Boundary illustration; sample is the article's own argument; units as stated in the text.
Figure 3: Introduction to Linear Regression — boundary: when the claim holds, and when it fails. Sample: the article's own argument; units as stated in the text.
Introduction to Linear Regression: 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. Introduction to Linear Regression: object, conditions and common mistakes at a glance This article Commonly confused Object Linear regression summarizes the… Adjacent concepts / common claims Conditions Regression describes an average linear… A hypothetical 48-month sample: a fund's monthly excess return… 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 4: Introduction to Linear Regression — comparison of object, conditions and common mistakes. Sample: the article's own argument; units as stated in the text.

Exercises

  1. What is the unit of the slope 1.20?
  2. Does R² = 0.735 mean the model explains 73.5% of the causal effect?
  3. Why is a prediction at x = 6.00% uncertain?
Suggested answers
  1. 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.
  2. No. R² is an in-sample variance share; it does not measure causation or guarantee out-of-sample prediction.
  3. 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

  1. 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)
  2. 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)
  3. 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.

How to read it

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.

Slope b—
Intercept a—
R²—

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.

Back to station