Regression basics
Regression fits a line through noise to estimate how much one variable moves with another — the output is an estimate with error bars, never a law.
Guided practice opens in the app — no account needed to try.
Why it matters
Beta, R-squared, factor loadings — half the numbers wrapped around a stock came out of a regression someone ran once, on one window of data. Read them as measurements with error bars and they serve you; read them as laws and they set you up.
The visual, in words
Line chart of one quarter, both series rebased to 100: the market index drifts up about 3% with daily wiggles while the stock traces the same wiggles amplified about 1.4 times, ending near +5% — up days and down days alike.
How it works
Regression fits a line through a cloud of paired observations — say, a stock's daily returns against the market's — choosing the line that minimizes the errors. Two outputs matter most. The slope (beta, in the market case) estimates sensitivity: how much the stock moved, on average, per unit of market move over that window. R-squared reports what fraction of the stock's variation the line explains; the rest is everything else — sector, company news, noise. Every output is an estimate: it carries a standard error, changes when the window changes, and describes the past sample rather than a standing rule. A regression is a summary of one stretch of history, useful precisely when you remember which stretch.
Common misconception
The belief
“A high R-squared means the model found the real driver.”
What’s actually true
R-squared measures fit, not truth — two trending series can produce a spectacular R-squared with no relationship at all. It tells you how much variation the line absorbs, never whether the mechanism is real.
Worked example
Illustrative example — tickers and prices are used for teaching only; not a recommendation or a current quote.
A provider lists a stock's beta as 1.4, estimated on two years of weekly returns. Re-estimate on daily data and you might get 1.2; on a different two-year window, 1.0 — the business deleveraged and the regime changed. Meanwhile a fund manager touts stock-picking skill, but regressing the fund on the market yields an R-squared of 0.94: the market explains 94% of the ride, leaving at most 6% for everything the manager claims credit for. Both numbers are useful — as noisy, window-dependent estimates.
Go deeper
R-squared: how much of the ride the line explains
Now regress a fund on the same market and get an R-squared of 0.94: the two lines below barely separate. The market explains 94% of the fund's movement — at most 6% is left for everything the manager claims credit for. R-squared measures fit, not truth: it reports how much variation the line absorbs, never whether the mechanism is real.
The visual, in words
Line chart of a fund and the market index over one quarter, rebased to 100, moving almost identically — the gap between the lines never grows beyond about half a percent.
The same stock, three betas
The worked example's provider quoted 1.4 — from two years of weekly returns. Re-estimate on daily data: 1.2. Use a different two-year window: 1.0. None of the three is wrong and none is the truth; each summarizes the stretch of history it was fed, and the spread between them IS the error bar.
The visual, in words
Three bars for one stock's estimated beta: 1.4 from two years of weekly returns, 1.2 from daily returns over the same period, 1.0 from a different two-year window.
What the fitted line does and doesn't prove
The slope proves the stock tended to move about 1.4-for-1 with the market over that window — nothing more. It does NOT prove the next 1% market move brings a 1.4% stock move, and a high R-squared does not prove the market is the mechanism: two trending series can fit spectacularly with no relationship at all. Regression outputs are tendencies with error bars, useful precisely while you remember which window produced them.
Try it: noise moves the estimate
The chart below is built, not measured: six days of a stock that moves 1.4-for-1 with the market, plus its own noise. With no noise the least-squares line recovers 1.4 exactly and R-squared is 1. Add noise and the fitted slope drifts while R-squared falls — the relationship underneath never changed; only what one short sample can see of it did.
Interactive lab, in words
Six days of a stock's moves plotted against the market's, with the least-squares line: the points were built with a sensitivity of 1.4, the fitted slope comes out at 1.34, and R-squared is 0.89.
Where this fits
Leads to
Practise it in DowJo
Reading is step one. In the app you walk through this concept step by step, then prove it on an understanding check — with practice capital, never real money. Try it as a guest; create an account to keep your progress.
New to investing? Start the free courseEducation only. DowJo is not a broker or an adviser, and never gives buy, sell or hold calls or price targets. Examples are illustrative.