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

Parameters, Statistics, Estimands, and Estimators

Choosing the population question before calculating an answer.

2:32 clip3:49:33–3:52:06 in the full courseWatch on YouTube

Transcript

20 sentences · select one to jump there

Check your understanding

Does the sample mean automatically estimate the mean of every population?

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.

071-parameters-statistics-estimands-and-estimators.ts
Start from GitHub
/**
 * Fintech Math Bootcamp · Lesson 071 of 120
 * Parameters, Statistics, Estimands, and Estimators
 * Module 08: Sampling, Estimation, and Statistical Inference
 *
 * Scenario: Choosing the population question before calculating an answer
 * Rule:     estimand → estimator → realized estimate
 *
 * Try it:   Does the sample mean automatically estimate the mean of every population?
 *
 * Lesson article: https://thefintechbuilder.com/financial-mathematics-statistics-and-data-foundations/sampling-estimation-and-statistical-inference/parameters-statistics-estimands-and-estimators/
 * Free course:    https://courses.thefintechbuilder.com
 * Synthetic teaching example, not financial advice or a production library.
 */

export function lesson071() {
  const sampledAmounts=[80,100,120];
  const estimate=sampledAmounts.reduce((s,x)=>s+x,0)/sampledAmounts.length;
  const result={estimand:"mean amount across all submitted applications",
    estimator:"sample arithmetic mean",estimate};
  return result;
}

export const checkedResult = {"estimand":"mean amount across all submitted applications","estimator":"sample arithmetic mean","estimate":100};

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

Your output

Press Run to execute the code in your browser.

Expected output

{
  "estimand": "mean amount across all submitted applications",
  "estimator": "sample arithmetic mean",
  "estimate": 100
}

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

Lesson notes

The rule

estimand → estimator → realized estimate