The paperExchangeCrypto WikiWikiAcademyacademy.notitiaplatform.com
Sign in
● LIVE
CAC 408 080,7▼ 0.81%S&P 5007 254,6▼ 0.94%EURO STOXX6 113,9▼ 0.66%BTC/USD62 734▲ 0.55%ETH/USD1 765,7▲ 1.55%EUR/USD1.10▲ 0.05%BRENT90.38▲ 1.36%GOLD3 690,6▼ 1.37%OAT 10Y5.09%▲ 0.39%VIX24.59▲ 0.12%CAC 408 080,7▼ 0.81%S&P 5007 254,6▼ 0.94%EURO STOXX6 113,9▼ 0.66%BTC/USD62 734▲ 0.55%ETH/USD1 765,7▲ 1.55%EUR/USD1.10▲ 0.05%BRENT90.38▲ 1.36%GOLD3 690,6▼ 1.37%OAT 10Y5.09%▲ 0.39%VIX24.59▲ 0.12%
 
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 ↗
Python for Finance: free course with certificate · Notitia