Module 2 · Financial Arithmetic, Time Value, and Returns Lesson 20 of 120

Return Annualization and Deannualization

An annual equivalent is not a prediction.

2:37 clip1:01:04–1:03:42 in the full courseWatch on YouTube

Transcript

21 sentences · select one to jump there

Check your understanding

Is an annualized historical return a forecast?

Choose one answer

Code lab

Run it yourself

The lesson source in 7 languages. Edit it, run TypeScript and Python right here, and compare with the expected output.

020-return-annualization-and-deannualization.ts
Start from GitHub
/**
 * Fintech Math Bootcamp · Lesson 020 of 120
 * Return Annualization and Deannualization
 * Module 02: Financial Arithmetic, Time Value, and Returns
 *
 * Scenario: An annual equivalent is not a prediction
 * Rule:     annual = (1+holdingReturn)^(1/years) − 1
 *
 * Try it:   Is an annualized historical return a forecast?
 *
 * Lesson article: https://thefintechbuilder.com/financial-mathematics-statistics-and-data-foundations/financial-arithmetic-time-value-and-returns/annualization-deannualization/
 * Free course:    https://courses.thefintechbuilder.com
 * Synthetic teaching example, not financial advice or a production library.
 */

export function lesson020() {
  const holdingReturn = 0.18, years = 2;
  const annual = (1 + holdingReturn) ** (1 / years) - 1;
  const recovered = (1 + annual) ** years - 1;
  const result = {annual, recovered};
  return result;
}

export const checkedResult = {"annual":0.08627804912002146,"recovered":0.17999999999999972};

// Run this file directly: npx tsx lessons/02-financial-arithmetic-time-value-and-returns/020-return-annualization-and-deannualization.ts
if (process.argv[1] && import.meta.url.endsWith(process.argv[1].replace(/\\/g, "/").split("/").pop()!)) {
  console.log(JSON.stringify(lesson020(), null, 2));
}

Your output

Press Run to execute the code in your browser.

Expected output

{
  "annual": 0.08627804912002146,
  "recovered": 0.17999999999999972
}

Prefer your own machine? Every file is in the course repository · open it in Codespaces.

Lesson notes

The rule

annual = (1+holdingReturn)^(1/years) − 1