@quantfinancetogo: ➡️ Quantitative Finance From Scratch, Part 21: Linear Regression in finance Linear regression finds the straight line that best describes how one quantity moves with another. In finance, that is often a stock's daily return against the market's daily return. Least squares: for every day, you measure how far the real return lies from the line, square that distance and add everything up. The best line makes this sum as small as possible. The line has two numbers. The slope is the beta from Part 14: how strongly the stock follows the market. The intercept is alpha: what the stock earns on average on a day when the market does not move. What the line cannot explain is the residual, and R² tells you which share of the swings (the variance) the line explains, from 0 for nothing to 1 for everything. In this video we simulate two years (504 trading days) of a market and a stock with a built-in beta of 1.2, a second factor with a beta of 0.6 and no alpha. The line finds a beta of 1.26 (the 1.2 lies within the range of chance for two years of data), an alpha of +0.05% a day and an R² of 52%. With two inputs, the line becomes a plane: betas 1.27 and 0.60, R² 63%. Quants use regression to estimate betas, to size hedges, to test whether a strategy earns more than its risk, and to check whether two assets really move together. The limits: a regression only finds a relationship in the data you give it. It does not prove that one thing causes the other, a few extreme days can pull the line (three invented extreme days move our slope from 1.26 to 1.10), and a relationship from the past can change. Education only, not financial advice. #quantitativefinance #quant #finance #regression #beta
QuantFinanceToGo
Region: DE
Monday 12 October 2026 09:51:43 GMT
Music
Download
Comments
Ivan Marino :
this Channel Is not bad, It's not a scam and the statistical concepts are correct. but be aware that Linear regressione Is rarely sufficiente if not mesleading for predict the market. linear regressione suppose omoschedasticity, a property that doesn't apply tò most markets
2026-10-12 10:42:33
15
appleuser78355968 :
Wrote my thesis on this. Impact of macroeconomic variables on stock market returns. Used eviews to build my ols model. Super fun
2026-10-13 02:36:10
3
stewie_griffin :
That’s phyton or animation?
2026-10-13 17:56:03
1
Joseph Warner111 :
In the past I used regression to fit data to a few different ETFs in different markets to 12 trading days of trading to a second order polynomial. The fits would tell me when to change ETF to get the highest return. The process works well inside a retirement account. it leads to an increase of return of about 5% to 10% a year if the account allowes alot of many sales and buys. but it is a lot of work.
2026-10-12 21:31:11
2
Michael :
hey bro, love your videos but this one is tricky, linear regression is a simple model which finds the best line of fit in a scatter plot but only works on the assumption that the data is linear or has linear relationships which is not true for stock price data as we know that they will have relationships but those relationships are not linear, please be careful
2026-10-12 16:45:03
3
Bilal Rajput⚜️ :
BSCS + Trading= freedom 💰
2026-10-12 15:29:56
0
Lewis :
The memecoin market isn’t just about predicting charts. It’s also about understanding narratives, tracking market sentiment, and recognizing where attention is moving. Some traders have access to better research and stronger networks, which can help them identify opportunities earlier. But no group has a guaranteed formula for profits. Learn how the market works, question bold claims, and never risk money you can’t afford to lose.
2026-10-13 17:25:50
0
Jacob :
😁😁😁
2026-10-13 23:12:34
0
To see more videos from user @quantfinancetogo, please go to the Tikwm
homepage.