Error Analysis

Error analysis quantifies how far a computed or measured value deviates from a true or reference value. It distinguishes between different error types and provides metrics to judge the quality of numerical results. Absolute error measures the raw difference: E_abs = |x_true − x_approx|. Relative error normalizes this by the true value: E_rel = |x_true − x_approx| / |x_true|, often expressed as a percentage. Relative error is more meaningful when values span different magnitudes. Two fundamental error sources in numerical computation are round-off error and truncation error. Round-off error arises from representing real numbers with finite precision (e.g., floating-point arithmetic). Truncation error results from approximating an infinite or continuous process with a finite one, such as truncating a Taylor series or using a finite step size in differentiation. Significant figures indicate the reliable digits in a reported value. The number of correct significant figures is related to relative error: approximately −log₁₀(E_rel) significant digits are correct. Engineers use error analysis to select appropriate step sizes, iteration counts, and numerical methods, and to determine when a solution has converged sufficiently for practical use.

Governing FormulaAbsolute error: E_abs = |x_true − x_approx| Relative error: E_rel = |x_true − x_approx| / |x_true| Percent relative error: E_% = E_rel × 100% Approximate relative error (iterative methods): E_a = |(x_new − x_old) / x_new| Significant figures: n ≈ −log₁₀(E_rel)

Knowledge Check

10 Questions

1.What does absolute error measure?

2.If x_true = 10.0 and x_approx = 9.7, what is the absolute error?

3.What is the relative error for x_true = 10.0 and x_approx = 9.7?

4.Why is relative error often more useful than absolute error?

5.What causes round-off error in numerical computations?

6.What causes truncation error?

7.If the relative error is 0.005, approximately how many significant figures are correct?

8.In an iterative method, what does the approximate relative error E_a measure?

9.Which stopping criterion is appropriate for an iterative numerical method?

10.A calculation yields x_approx = 3.14 for x_true = π ≈ 3.14159. What is the percent relative error?