Regression Output Walkthrough: Slope, P-value, and Causality
Statistics & ExperimentsModel answerLast updated
Interpret a fitted regression slope end-to-end: build the test statistic, read p-values and intervals correctly, check assumptions, and explain why correlation isn't causation.
A growth analyst at a subscription snack-box company fits a simple linear regression of weekly new customers (y) on weekly radio-ad spending in $100 units (x) using 27 consecutive weeks of data. The output is:
ŷ = 41.2 + 0.84x se(slope) = 0.30 residual sd = 9.5
p = 0.0097, 95% CI for slope: [0.22, 1.46]
The head of growth wants to triple the radio budget, and you need to walk them through what these numbers actually say before that decision is made.
Part 1 — The model and the test
Write out the full simple linear regression model with its parameters and error term. State the null and alternative hypotheses behind the reported p-value. Show explicitly how the test statistic is computed from the slope estimate and its standard error, and identify which reference distribution is used, including its degrees of freedom.
Part 2 — What the numbers mean
- Write one precise sentence explaining what
p = 0.0097means. Then give two interpretations that sound reasonable but are actually wrong. - Explain what the 95% confidence interval means in the repeated-sampling sense, and clarify what it does not guarantee.
- Describe the relationship between the two-sided test at α = 0.05 and whether zero falls inside the interval.
Part 3 — Assumptions and what breaks when they fail
List the assumptions that underpin your inference. For each one, describe the consequence of a violation and a practical check you would run on weekly time-series data like this.
Part 4 — Estimating a mean vs. predicting a single week
The growth lead asks: "If we put $2,000 into radio ads next week, how many new customers should we expect?" Distinguish between a confidence interval for the average response at that spend level and a prediction interval for that specific week's outcome. Explain which one is wider, why the gap persists even with large samples, and flag any concern about the requested spend level relative to the observed data.
Part 5 — Significance vs. causation, and practical importance
Explain why a small p-value and a positive slope do not establish that radio spending drives new customers. Name at least three concrete threats in this setting and sketch what a more credible causal study would look like. Finally, explain how a slope that is practically meaningless can still produce a highly significant p-value.
Hints
Hint 1
The test statistic is just the slope divided by its standard error; plug in the numbers and think about what distribution that ratio follows when the null is true.
Hint 2
A confidence interval describes a procedure across hypothetical repeated experiments, not a probability statement about this specific interval — be precise about what 'coverage' means and what it doesn't.
Hint 3
Ask yourself: what else changes on weeks when the company spends more on radio? Seasonality, competing campaigns, and budget rules tied to expected demand are all levers that could produce the observed pattern without any causal link.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Part 1: Model and test
The simple linear regression model is:
y_i = β0 + β1·x_i + ε_i, i = 1, …, 27
where β0 is the expected baseline weekly customers, β1 is the change in expected weekly customers for each additional $100 of radio spend, and the errors ε_i are assumed independent with mean 0 and constant variance σ².
The hypotheses are:
- H₀: β1 = 0 — radio spend has no linear relationship with new customers
- H₁: β1 ≠ 0 — some linear relationship exists
The OLS slope estimate is b1 = Σ(xᵢ − x̄)(yᵢ − ȳ) / Σ(xᵢ − x̄)², and its standard error is se(b1) = s / sqrt(Σ(xᵢ − x̄)²), where s = 9.5 is the residual standard deviation estimated on n − 2 = 25 degrees of freedom.
The test statistic is:
t = b1 / se(b1) = 0.84 / 0.30 = 2.80
Under H₀ and the model assumptions, this follows a t distribution with 25 degrees of freedom. The two-sided p-value is 2·P(T₂₅ ≥ 2.80) ≈ 0.0097.
Part 2: Reading the output correctly
p-value: If the true slope were exactly zero and all model assumptions held, the probability of observing a slope estimate at least as far from zero as 0.84 (in either direction) is about 1%. That is all it says.
Two common wrong readings:
- "There is a 1% chance the null hypothesis is true." This conflates a p-value with a posterior probability, which requires a prior — it is a Bayesian quantity.
- "There is a 99% chance the effect is real or important." p-values say nothing about effect size or practical relevance.
Confidence interval: Using b1 ± t₀.₉₇₅,₂₅ · se = 0.84 ± 2.060 · 0.30, we get [0.22, 1.46]. The correct reading: if you repeated the 27-week study many times and built a 95% CI each time, about 95% of those intervals would contain the true β1. It does not mean there is a 95% probability that β1 sits in this specific interval — under the frequentist view, β1 is a fixed number and this interval either covers it or it doesn't. The interval also says nothing about any individual week.
Duality with the test: A two-sided test at level α rejects H₀: β1 = c whenever c falls outside the corresponding (1−α) confidence interval. Since 0 is outside [0.22, 1.46], the test rejects at α = 0.05. The interval adds information the bare p-value hides: plausible effect sizes range from 0.22 to 1.46 additional customers per $100 spent — spanning quite modest to moderate impact.
Part 3: Assumptions
| Assumption | Consequence if violated | How to check |
|---|---|---|
| Linearity of E[y | x] | Slope is a misleading average; predictions are biased | Residuals-vs-fitted plot; try adding x² or a spline |
| Independent errors | Weekly data often has autocorrelation, making the SE too small and p-value too optimistic | Durbin-Watson test; ACF plot of residuals; use HAC (Newey-West) standard errors |
| Constant variance | Standard errors are wrong, CIs are miscalibrated | Plot residuals vs x; use heteroskedasticity-robust (HC) SEs if variance fans out |
| Approximately normal errors | t-based p-values and CIs are approximate at n = 27 | Q-Q plot of residuals; moderate skew is tolerable at this sample size, but outliers are not |
| No influential observations | A single unusual week can dominate the slope estimate | Leverage and Cook's distance; examine high-leverage weeks manually |
The most critical one for weekly data is autocorrelation. If a spike in sign-ups persists across several weeks, the model treats correlated observations as independent, which inflates confidence.
Part 4: Confidence interval vs. prediction interval
At x₀ = 20 ($2,000 spend), the point estimate is ŷ = 41.2 + 0.84·20 = 58.0 customers.
Confidence interval for the mean: quantifies uncertainty about the average response across all weeks with this spend level.
ŷ₀ ± t · s · sqrt(1/n + (x₀ − x̄)² / Σ(xᵢ − x̄)²)
Prediction interval for a single week:
ŷ₀ ± t · s · sqrt(1 + 1/n + (x₀ − x̄)² / Σ(xᵢ − x̄)²)
The extra 1 inside the square root captures the variance of that specific week's noise term ε. The CI shrinks toward zero width as n grows because you pin down the mean ever more precisely. The PI never shrinks below roughly ±1.96·σ (here about ±19 customers) no matter how much data you have — individual outcomes are always noisy.
For the growth lead's question ("how many customers will we get next week"), the prediction interval is the right frame. If $2,000 is near or above the maximum spend seen in the 27 weeks of data, both intervals are extrapolations and the linear relationship may not hold — that is the more important warning when someone wants to triple the budget.
Part 5: Causality and practical significance
Regression measures association, not causation. Several threats apply here:
- Seasonality / confounding: The company may run more radio ads in January (New Year resolutions) or around holidays — periods when subscriptions naturally spike. Spend and sign-ups move together because of a shared external driver.
- Reverse causality / endogenous budgeting: If marketing increases radio spend in weeks when internal forecasts look strong, higher spend and higher sign-ups co-occur by design, not because ads work.
- Omitted trend: If the brand is growing and the ad budget scales with revenue, both series share an upward trend. The slope absorbs that trend and looks positive regardless of whether radio ads do anything.
To get a credible causal estimate: run randomized experiments — turn radio ads on or off across matched geographic regions or time blocks and compare outcomes. Use unique promo codes or vanity URLs per channel with holdout groups to isolate attribution. Quasi-experimental approaches like difference-in-differences across markets (controlling for trend and seasonality) can help when experiments are not feasible.
Tiny slope, tiny p-value: The t-statistic is b1 / (s / sqrt(Σ(xᵢ − x̄)²)). With a very large sample or a wide spread of x values, the denominator shrinks and t grows even for a negligible slope. A slope of 0.001 customers per $100 can be "statistically significant at p < 0.001" with enough data while being completely irrelevant commercially. Always pair the p-value with the confidence interval to see whether the plausible effect sizes actually matter. Here, 0.22 customers per $100 spend — the low end of the CI — equates to roughly one new subscriber per $455 of radio budget; whether that clears the lifetime value hurdle is the real question.