BackActual path and compound annual growth Go further on the technical side · partnerQuantPadTo go from theory to code: auto-graded exercises in Python, SQL and quantitative finance, backtests and mock interviews for quant, data and M&A roles.Train on QuantPad · quantpad.app ↗For your career · partnerKairosKairos finds the roles that fit you every day, scores your CV against each out of 100 and prepares your application.Find my role on Kairos · trykairos.eu ↗
IntermediateCode · 8 h
Python for Finance
Wrangle market data, returns and risk with a hands-on interactive code lab.
Live chart for this course
■ Portfolio
€108,959
■ Contributions
€53,000
✦ You invest €53,000; compounding adds €55,959 - 51.4 % of the final capital. Waiting 5 more years would add €51,964.
Educational simulation - not investment advice. Returns are not guaranteed.
…
Illustrative path from 100 to 180
Worked example
Computing an annual growth rate in Python
An index goes from 100 to 180 in 5 years. What is its compound annual growth rate (CAGR)?
Assumption · cagr = (end / start) ** (1 / years) - 1
- 01end / start1.80
- 02CAGR1,8^(1/5) − 112.47 %
- 03Misleading arithmetic mean80 % / 516.0 %
The professional’s reflex
The simple average always overstates real growth. In code, a pro uses log returns or CAGR, and checks the result on a known case.
To watchSelected by the newsroom · loads only when you press play
Python for finance, beginner’s guide
Ryan O’Connell, CFA, FRM · in English
Python for finance, first steps
FORMASYS · in French