Lesson 9 of 15
Beta & Alpha
Beta & Alpha (CAPM)
The Capital Asset Pricing Model (CAPM) decomposes an asset's return into market exposure and excess return:
Beta measures systematic risk — how much the asset moves with the market:
- : more volatile than market (amplifies moves)
- : less volatile than market (dampens moves)
- : moves opposite to market (hedge)
Alpha is the excess return not explained by market exposure:
A positive alpha means the asset outperformed the CAPM prediction — the manager "added value."
Your Task
Implement:
beta(asset_returns, market_returns)— CAPM betaalpha(asset_returns, market_returns, rf=0.0)— CAPM alpha
Python runtime loading...
Loading...
Click "Run" to execute your code.