The paperExchangeCrypto WikiWikiAcademyacademy.notitiaplatform.com
Sign in
● LIVE
CAC 408 347,4▼ 0.22%S&P 5007 297,1▼ 1.47%EURO STOXX6 201,5▼ 0.31%BTC/USD46 240▲ 7.97%ETH/USD1 429,9▲ 8.20%EUR/USD1.08▲ 0.05%BRENT91.43▼ 0.22%GOLD3 827,5▲ 1.17%OAT 10Y5.02%▼ 1.06%VIX21.67▲ 17.39%CAC 408 347,4▼ 0.22%S&P 5007 297,1▼ 1.47%EURO STOXX6 201,5▼ 0.31%BTC/USD46 240▲ 7.97%ETH/USD1 429,9▲ 8.20%EUR/USD1.08▲ 0.05%BRENT91.43▼ 0.22%GOLD3 827,5▲ 1.17%OAT 10Y5.02%▼ 1.06%VIX21.67▲ 17.39%
 
Europe edition
NotitiaAcademy
Back
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.

…

Actual path and compound annual growth
100140180012345yearsCAGR 12.5 %
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
  1. 01end / start1.80
  2. 02CAGR1,8^(1/5) − 112.47 %
  3. 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
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 ↗