Module 8 · Sampling, Estimation, and Statistical Inference Lesson 75 of 120

Central Limit Theorem

Why averages may look normal when individual amounts do not.

2:40 clip4:00:04–4:02:45 in the full courseWatch on YouTube

Transcript

19 sentences · select one to jump there

Check your understanding

Does the CLT imply raw claim amounts become normally distributed?

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.

075-central-limit-theorem.ts
Start from GitHub
/**
 * Fintech Math Bootcamp · Lesson 075 of 120
 * Central Limit Theorem
 * Module 08: Sampling, Estimation, and Statistical Inference
 *
 * Scenario: Why averages may look normal when individual amounts do not
 * Rule:     Zₙ = √n(mean−μ)/σ
 *
 * Try it:   Does the CLT imply raw claim amounts become normally distributed?
 *
 * Lesson article: https://thefintechbuilder.com/financial-mathematics-statistics-and-data-foundations/sampling-estimation-and-statistical-inference/central-limit-theorem/
 * Free course:    https://courses.thefintechbuilder.com
 * Synthetic teaching example, not financial advice or a production library.
 */

export function lesson075() {
  const mu=1,sigma=1,n=2;
  const means=[0,1,1,2];
  const standardized=means.map(m=>Math.sqrt(n)*(m-mu)/sigma);
  const result={standardized};
  return result;
}

export const checkedResult = {"standardized":[-1.4142135623730951,0,0,1.4142135623730951]};

// Run this file directly: npx tsx lessons/08-sampling-estimation-and-statistical-inference/075-central-limit-theorem.ts
if (process.argv[1] && import.meta.url.endsWith(process.argv[1].replace(/\\/g, "/").split("/").pop()!)) {
  console.log(JSON.stringify(lesson075(), null, 2));
}

Your output

Press Run to execute the code in your browser.

Expected output

{
  "standardized": [
    -1.4142135623730951,
    0,
    0,
    1.4142135623730951
  ]
}

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

Lesson notes

The rule

Zₙ = √n(mean−μ)/σ