Module 22 · 8 min read · Free chapter
Probability, errors and numerical methods: binomial, Poisson and normal distributions, propagation of errors, least-squares fitting, root finding, interpolation, trapezoidal and Simpson's rules, Runge-Kutta method, dimensional analysis
Start from zero: every measurement has a spread
Time a pendulum ten times with a stopwatch and you get ten slightly different answers. Count clicks from a radioactive source in one-second windows and the count jumps around. Physics needs ways to say what the true value probably is and how sure we are.
Probability distributions describe that spread. Error analysis tells us how uncertainties combine, and least squares picks the best line through scattered data. When equations have no neat formula solution, numerical methods let a computer find roots, areas and trajectories to any accuracy we need.
Probability distributions
Random variable X with probabilities P(x): mean , variance , standard deviation σ.
Binomial distribution. n independent trials, each with success probability p (q = 1 − p):
Example: the number of heads in 10 coin tosses has μ = 5 and σ ≈ 1.58. In a 1D random walk of N steps of length l, the net displacement has mean 0 and root-mean-square value , the basis of diffusion and Brownian motion.
Poisson distribution. Let n → ∞ and p → 0 with np = λ fixed:
It describes rare independent events: radioactive decays in a fixed time, photons arriving at a detector, earthquakes above a magnitude in a year. A count N therefore has an uncertainty of about (counting statistics).
Worked example. A source gives on average 3 counts per second. The chance of zero counts in a second is , and of exactly 3 counts is .
Normal (Gaussian) distribution. For large n the binomial approaches
About 68% of values lie within ±σ of the mean, 95% within ±2σ and 99.7% within ±3σ. The central limit theorem explains why it is so common: the sum of many small independent effects is normally distributed whatever their individual distributions.
Bayes' theorem. updates a prior belief with data; it is the basis of probabilistic geophysical inversion.
Errors, dimensional analysis and least squares
Kinds of error. Systematic errors (zero error, calibration, parallax) shift every reading the same way and are not reduced by repetition. Random errors scatter readings both ways and shrink on averaging. Accuracy is closeness to the true value; precision is the closeness of repeated readings to each other.
Mean and its error. For N readings with standard deviation σ, the best estimate is the mean , with standard error
Four times as many readings halve the error.
Propagation of errors. For independent x, y and :
Special cases: for sums and differences, absolute errors add in quadrature. For , fractional errors combine as .
Worked example. with L = 1.000 ± 0.002 m and T = 2.006 ± 0.004 s. Then . So g = 9.81 ± 0.04 m s⁻²; the period error dominates because T is squared.
Dimensional analysis. Every term in a valid equation has the same dimensions in M, L, T (and current, temperature). This checks formulas and predicts forms. Example: the period of a pendulum can depend only on l, g and m; matching dimensions forces , independent of m. The constant cannot be found this way, and dimensionless groups (like the Reynolds number) are the starting point for scaling laws.
Least-squares straight line. For data , minimise . Setting gives the normal equations, with solution
The line passes through the centroid . Curves like or are fitted by linearising first (plotting ln y or ). The correlation coefficient r measures how well a line fits. With unequal errors each point is weighted by , and the general matrix form is the inversion formula of matrices.
Numerical methods
Root finding.
- Bisection: if f(a) and f(b) have opposite signs, halve the interval and keep the half with a sign change. It always converges, gaining one binary digit per step.
- Newton-Raphson: follow the tangent to the axis:
The error roughly squares each step (quadratic convergence), but a bad start or f′ ≈ 0 can make it fail.
Worked example. as the root of : . From = 1: 1.5, 1.41667, 1.414216, already correct to six figures in three steps.
Interpolation. Through n + 1 points passes one polynomial of degree n. Lagrange's form is , where . For equal spacing h, Newton's forward-difference formula is used. Extrapolation beyond the data range is far less reliable than interpolation.
Numerical integration with n strips of width h and :
- Trapezoidal rule: , error of order .
- Simpson's one-third rule (n even), fitting parabolas through each three points:
error of order ; exact for polynomials up to degree 3.
Worked example. . With h = 0.25, Simpson gives . The trapezoidal rule with the same points gives 0.782794.
ODEs: Euler and Runge-Kutta. For , :
- Euler: , global error of order h; simple but drifts.
- Fourth-order Runge-Kutta (RK4):
It matches the Taylor series up to (global error of order ) without needing derivatives of f.
Worked example. , y(0) = 1, one step h = 0.1: = 0.1, = 0.105, = 0.10525, = 0.110525, so y(0.1) = 1.1051708, against the exact = 1.1051709. Euler gives 1.1.
Second-order equations such as are written as two first-order equations for x and v and stepped together. This is how orbits, seismic ray paths and circuit transients are computed.
Mains lens: how UPSC asks this
Geo-Scientist Geophysics B1 lists probability distributions, numerical techniques (roots, interpolation, trapezoidal and Simpson's rules, Runge-Kutta), least squares and dimensional analysis explicitly. NET Part A asks short numericals on them, and CSE practical-style questions test error propagation and Poisson counting statistics.
Expect:
- Derive the Poisson distribution as a limit of the binomial and find its mean and variance (10 marks).
- Propagate errors in a formula such as .
- Derive the least-squares formulas for a straight line and fit given data.
- Evaluate an integral by Simpson's rule, or solve an ODE step by RK4 (10 marks).
- Find a root by Newton-Raphson to a given accuracy.
Model answer plan: "Show that the binomial distribution reduces to the Poisson distribution for large n and small p, and prove that its mean and variance are both λ." (10 marks).
- Write the binomial with p = .
- Use and to get .
- Mean: by shifting the index.
- , so variance .
- Application: counting error in radioactivity.
Quick revision
- Binomial: np, npq; Poisson: mean = variance = λ, counting error ; normal: 68-95-99.7.
- Standard error ; errors add in quadrature; powers multiply fractional errors.
- Dimensional analysis: pendulum ; constants not found.
- Least squares: line through centroid; slope formula from normal equations; weights .
- Newton-Raphson quadratic; bisection always safe; Lagrange interpolation.
- Trapezoid , Simpson (even strips); Euler , RK4 .