Understanding Returns
In finance, we rarely analyze absolute prices. Instead, we focus on returns - the percentage change in value over time.
Why Returns Matter More Than Prices
Loading Python Playground...
Calculating Simple Returns
Loading Python Playground...
Cumulative Returns
Loading Python Playground...
Annualizing Returns
Loading Python Playground...
Complete Returns Analysis
Loading Python Playground...
Practice: Calculate Returns
Loading Python Exercise...
Key Takeaways
- Returns allow fair comparison across different price levels
- Use
.pct_change()to calculate returns from prices - Cumulative returns use compound growth:
(1 + r).cumprod() - 1 - Annualize daily returns:
(1 + daily)^252 - 1 - Track both return and risk (volatility) metrics
Next, we'll explore volatility and risk measurement!

