Omniadisce

Computational physics 9.8: Going further — how good is the fit? χ²

Lesson Beginner

Join free to take this lesson

Anyone can look around, but taking a lesson needs a free account. With one, your answers are checked step by step and your progress is saved, so you can stop and pick up where you left off on any device.

14 steps · about 35 min

By the end you can

  • Measure a residual in units of the reading's uncertainty: z = res / sigma
  • Work out χ² = np.sum((res / sigma)**2) for a fit
  • Say why a good straight-line fit gives χ² close to N - 2, the degrees of freedom
  • Judge a fit with the rule of thumb dof ± 2√(2·dof), and say what a χ² far too big or far too small means

Who it is for: Anyone who has done lessons 9.1-9.6 of this course, and maths lessons 5.4, 5.6, 9.3 and 9.4 (random variables, the normal distribution, degrees of freedom, test statistics and χ²).

The steps

  1. Small compared with what?
  2. Residuals in uncertainties
  3. One number: χ²
  4. χ² for the ball
  5. Only two points
  6. Degrees of freedom
  7. 2000 simulated drops
  8. How far from dof is still fine?
  9. The spread of χ²
  10. Reading a χ²
  11. The wrong model
  12. Who was honest about σ?
  13. Too big, but which reason?
  14. What χ² adds

Discussion 0 comments

Log in to join the discussion.

× Enlarged view