RESEARCH DOSSIER
Numerical Error and Verification in Economic Models
Abstract. Economic modeling increasingly depends on nonlinear numerical solutions, finite-precision arithmetic, dynamic programming, simulation, and structural estimation. The resulting quantities support substantive conclusions only when the numerical errors affecting them are characterized in relation to the mathematics of the model and the economic questions posed. This Research Dossier investigates the foundations and practical verification of computation in economics: floating-point representation, conditioning, backward stability, equation residuals, approximation and interpolation, dynamic equilibrium solutions, optimization, stochastic integration, and simulation. It develops conditional algebraic bounds for linear problems, contraction-based value-function verification, objective-function approximation, recursive error propagation, and welfare ranking. It distinguishes numerical correctness from statistical identification, empirical validation, and robustness to model misspecification. The original contribution is an integrated critical and methodological synthesis grounded in authoritative numerical analysis and computational economics literature, with transparent hypothetical examples. The analysis does not claim new mathematical theorems, named theoretical systems, empirical replications, or external peer review.
Keywords: Numerical error; numerical verification; computational economics; floating-point arithmetic; conditioning; backward stability; equilibrium computation; dynamic programming; Bellman residual; Euler-equation residual; structural estimation; Monte Carlo error; model validation; reproducibility; economic welfare
The Scientific Problem of Computed Economic Claims
A mathematical economic model specifies feasible allocations, behavioral restrictions, equilibrium relationships, or a statistical criterion. Its numerical implementation turns those objects into a finite sequence of operations. Every translation—from theory to equations, from equations to an approximation space, from that space to a solver, and from solution to published statistic—can influence the answer. Computational accuracy is therefore a substantive dimension of economic evidence, not an incidental property of software.
Kenneth Judd's Numerical Methods in Economics established a broad methodological connection between numerical analysis and economic problem solving. Higham's treatment of numerical stability makes clear that the same numerical method can behave differently as a function of rounding, conditioning, and algorithmic design. Together they motivate the examination of the map that carries a mathematical model into a computational conclusion.
Four levels must remain distinct. The theoretical model consists of assumptions and equations. An exact mathematical solution satisfies those equations and their admissibility restrictions. A numerical solution is a finite representation or approximation to an exact solution. An empirical interpretation connects the chosen model and its computed implications to observed evidence or a proposed decision. Accuracy at one level does not automatically transfer to the next. A precise root may correspond to the wrong equilibrium branch. An exact solution to a misspecified model may have weak empirical relevance. A stable parameter estimate can remain unidentified by the data.
The dossier's core research questions are: Which errors are caused by representation, approximation, iteration, and statistical simulation? When does a small residual imply a small error in an economic quantity? How do nonlinearities, curvature, constrained choices, and long dynamic horizons alter accuracy? Which independent tests justify a claim of verification, and which uncertainties remain even after excellent numerical performance?
The analysis uses direct mathematical derivations, methodological comparisons, and inspected source records. Whenever a derivation relies on contraction, smoothness, non-singularity, or boundedness, its validity is limited to those assumptions. Illustrative numbers represent hypothetical calculations, not estimates based on observed households, markets, or national accounts. No named theoretical construct is introduced; the contribution is the articulated reasoning connecting established mathematics to the interpretation of economic results.
Definition and Classification of Error
Let a model be expressed as F(x;θ)=0 for an admissible vector x, fixed parameters θ, and a true mathematical solution x*. Let x̂ be the numerical output. Forward error is x̂−x*, measured in a declared norm or economic unit. Residual error is F(x̂;θ), describing violation of the equations. Backward error asks how much one would need to perturb the problem so that x̂ became an exact solution. These objects answer different questions. A small residual is useful, but on its own it is not a bound on the distance to x*.
Roundoff error follows finite representation and arithmetic. Truncation error follows replacing an infinite expansion or continuous process with finitely many terms or steps. Interpolation and projection error follows replacing functions with restricted approximating classes. Iteration error remains when a convergent algorithm is stopped before its limit. Quadrature error follows replacing integrals with weighted sums. Simulation error follows finite random sampling; it has a probability structure that need not resemble deterministic roundoff. Implementation error follows a mismatch between intended and executed computation. Model discrepancy concerns the relationship between the mathematical assumptions and their substantive target.
The NIST discussion of error measures distinguishes absolute, relative, and representational notions in numerical arithmetic. This is particularly important for economics because variables have different natural scales. The absolute difference between two interest rates, the proportional error of household consumption, and the deviation of a probability from one are not commensurate. A relative error is unstable as a diagnostic when the denominator is near zero; an absolute error may be misleading when two model variables have vastly different units.
Suppose a market-clearing expression is measured in currency units while another is measured in shares of aggregate output. A solver minimizing the unscaled sum of squared residuals can effectively prioritize the former. Scaling changes the numerical criterion without changing the intended equilibrium equations, provided the transformation is legitimate. Every verification report should specify its norms, units, transformations, and weights.
A tolerance is an acceptance threshold chosen for the computation or economic task, not an observed error. A bound is a mathematical conclusion conditional on explicit assumptions. A diagnostic is a measured feature of a computed result. A validation exercise tests the relationship of the model to evidence or a reference phenomenon. Scientific reports should distinguish these four categories rather than present a single unqualified adjective such as 'accurate.'
Finite Precision and Stable Arithmetic
Computers ordinarily represent real numbers using finite collections of machine values. The IEEE 754-2019 floating-point standard and ISO/IEC 60559:2020 define standards relevant to such systems; the official ISO description explains that implementation may be in hardware, software, or both. Standards for numerical representation make elementary operations more predictable. They do not provide a certificate for an economic simulation or optimizer.
In a usual finite-precision model for an elementary arithmetic operation, fl(a ◦ b)=(a ◦ b)(1+δ), where |δ|≤u under suitable conditions and u denotes unit roundoff. The qualification matters: overflow, underflow, exceptional values, and operation-specific rounding behavior require additional analysis. Thousands of such operations do not have a uniform total error equal to one machine unit, and repeated operations can amplify rather than average discrepancies.
Cancellation is an elementary example. For small positive z, the expression sqrt(1+z)−1 subtracts nearly equal values. Rationalizing gives the exactly equivalent expression z/(sqrt(1+z)+1), which can retain more relative accuracy. The same computational concern arises in differences of utilities, log-likelihoods, consumer-surplus changes, net present values, and policy comparisons where the headline statistic is much smaller than its components.
Likewise, multiplying many small probabilities can underflow even when a log-likelihood is finite. Evaluating the sum of log probabilities can avoid that underflow under the likelihood's mathematical conventions. In discrete-choice calculations, computing a ratio of exponentials after subtracting a common maximum from exponents avoids preventable overflow. Such algebraic transformations preserve the intended value while materially changing numerical reliability.
The NIST arithmetic reference also describes interval arithmetic. Properly implemented interval enclosures may provide verified bounds, but enclosing a rounded operation is distinct from proving that all model equations, approximations, and admissibility assumptions are correct. Precision should therefore be disclosed in conjunction with independent numerical checks.
A useful implementation record identifies data types, working precision, exceptional-value treatment, aggregation order where it matters, and any higher-precision test. The question is not whether the processor uses a recognized format; it is whether the computed economic claim survives perturbations and documented numerical bounds at its relevant scale.
Conditioning, Residuals, and Backward Stability
Conditioning describes the sensitivity of a mathematical solution to changes in its problem data. Numerical stability describes an algorithm's behavior under arithmetic errors and perturbations. The distinction is fundamental in Higham's stability analysis. A stable procedure cannot make an inherently sensitive problem insensitive, and a large number of printed decimal digits does not establish that a result contains a corresponding number of reliable digits.
For a nonsingular linear system Ax=b, let x* be exact and x̂ computed. Define r=b−Ax̂. Then A(x*−x̂)=r, giving ||x*−x̂||≤||A⁻¹||||r|| in a compatible operator norm. If x* and b are nonzero, one obtains ||x*−x̂||/||x*||≤κ(A)||r||/||b||, where κ(A)=||A||||A⁻¹||. This inequality is an exact conditional mathematical bound. A relative residual of 10⁻⁹ combined with a condition number of 10⁷ permits a relative solution error as large as 10⁻² under the relevant bound; 'nine-digit convergence' is not a claim of nine-digit forward accuracy.
Backward stability asks whether the computed solution exactly solves a nearby problem. This can be highly desirable even when forward error is large. In econometrics, near-collinearity or weak identification can produce sensitivity in parameter estimates; in equilibrium modeling, nearly dependent equations or near-indifference conditions can do the same. Raising arithmetic precision can reduce algorithmic roundoff but does not eliminate the economic sensitivity represented by the Jacobian or the model's identification structure.
Variables can often be rescaled to improve numerical behavior, but the accompanying diagnostic must remain in economically meaningful units. A method that produces a relative error of 1% in a price spread may be inadequate when the policy question concerns a 0.1% change, whereas the same approximation may be sufficient for an aggregate trend that dwarfs the error.
Residuals should therefore be accompanied by conditioning information or an equivalent sensitivity argument where available. Without an explicit connection from the equations to the reported welfare, allocation, or estimated parameter, the residual provides only a partial accuracy assessment.
Linear Economic Systems and Near-Singularity
Linear models enter economic input-output accounting, equilibrium linearization, regression, asset pricing, and numerical projections. The relevant algebra is often simple, yet the computed decomposition can be extremely sensitive. Consider the hypothetical system A=[[1,1],[1,1+ε]] with ε>0. Its determinant equals ε. As ε approaches zero, the two equations become nearly redundant, and small changes to their right-hand sides can cause much larger changes in the separate unknowns.
The sum of the two components can nonetheless remain considerably more stable than their individual values. Thus the quantity of economic interest determines which error matters. A decomposition of total expenditures into two almost indistinguishable classes may be untrustworthy while the total is accurate. It is scientifically inappropriate to assign the same error claim to both statistics.
Diagnostic practice includes examining singular values or condition estimates, checking independently calculated residuals, comparing factorizations when appropriate, and investigating sensitivity to the assumptions represented in A and b. These techniques are part of the general economic numerical-methods toolkit described in Judd (1998).
A linearization of a nonlinear model introduces its own approximation limit. A stable solution of the linearized system is not automatically a stable solution of the original equilibrium model at distant states. The correct interpretation requires both numerical verification of the linear solve and validation of the linear approximation where used.
Nonlinear Root Finding and Equilibrium Verification
A nonlinear equilibrium is often represented as F(x;θ)=0 with constraints on the feasible vector x. Newton-type algorithms use the Jacobian to form local corrections, while globalization and continuation strategies attempt to improve their domains of convergence. Convergence to a small scaled residual is evidence about the returned candidate, but it does not independently establish admissibility, uniqueness, or economic relevance.
If F is differentiable and J=∂F/∂x is nonsingular at a nearby solution, a first-order calculation suggests x̂−x*≈J⁻¹F(x̂). This is a local approximation, not a global error certificate. It can be unreliable when the Jacobian is ill conditioned, derivatives change quickly, the point is far from the relevant root, or the feasible set contains an active inequality boundary.
Economic verification must check positivity, market clearing, budget restrictions, complementarity, transversality or terminal conditions where relevant, and consistency of the root with the intended equilibrium selection. Distinct starting points may find distinct roots, each with a tiny residual. Returning one root cannot be treated as proof that no others exist.
McCullough and Vinod's nonlinear-solver case study places independent verification directly within econometric practice. A persuasive computational report evaluates the model equations separately from the solver's stopping flag, checks feasibility, and compares results across numerical methods or precision settings when the economic stakes warrant it.
Some models have no exact root under the proposed parameterization; others have root correspondences rather than unique solution functions. A failed solver is not in itself a proof of nonexistence, while a successful solve is not proof of a globally optimal or empirically valid equilibrium. The mathematical and the economic claims require separate evidence.
Bellman Operators and Value-Function Error
Dynamic programming frequently represents intertemporal behavior using a fixed point V=TV for a Bellman operator T. If T is a contraction in a complete normed function space with modulus β between zero and one, the residual of an approximate value function V̂ yields ||V̂−V*||≤||TV̂−V̂||/(1−β). The proof is direct: separate V̂−V* into V̂−TV̂ and TV̂−TV*, then apply the triangle inequality and the contraction inequality before rearranging.
Suppose β=0.99 and the exact Bellman residual norm equals 10⁻⁵. The resulting bound is 10⁻³ value units. A solver reporting a five-decimal-place residual has not certified five-decimal-place value accuracy. This conditional bound is also specific to the operator evaluated. If a grid-based program computes the residual of a discretized operator T_h, the result certifies the discretized fixed point unless the error between T_h and T is separately controlled.
This distinction becomes important inside nested estimators. Rust's dynamic discrete-choice analysis is a classic example of a structural model estimated with a nested fixed-point algorithm. Error in an inner value-function calculation can alter the outer statistical criterion and change its optimizing parameter, especially when the criterion is flat.
Policy-function error is a separate issue. A small error in value may reverse a discrete choice when two actions have similar values. A computed policy must therefore be checked using feasibility, policy-specific residuals, independent state points, and decision sensitivity in near-indifference regions, not solely the convergence of the value function.
The comprehensive Maliar and Maliar survey identifies dynamic programming, projection and related methods used in large-scale economic models. The practical lesson is to verify the object and domain of each approximation and to translate its error into economically relevant quantities before drawing conclusions.
Euler-Equation Diagnostics and Policy Accuracy
Euler equations provide necessary conditions for intertemporal optimum under appropriate assumptions. A candidate consumption or savings policy can be evaluated by substituting it into the relevant Euler equation across states. The residual indicates violation of that necessary condition, not immediately the size of the policy error in consumption or welfare units.
Santos (2000) studies the accuracy of numerical dynamic-model solutions using Euler-equation residuals; the accessible abstract reports a relationship between residual order and policy-function approximation error under the paper's conditions. The finding should not be generalized into an unconditional equivalence across all models, constraints, and shock processes.
Consider isoelastic utility with marginal utility u′(c)=c⁻ᵞ for γ>0. Differentiating gives d log u′(c)=−γ d log c. When the Euler equation's right-hand side is held fixed and a local perturbation is sufficiently small, a relative marginal-utility discrepancy e translates to a first-order consumption discrepancy of magnitude approximately |e|/γ. This elementary calculation explains why curvature affects the meaning of residuals; it is neither a global policy-error bound nor a correction for errors in expected future marginal utility.
Euler tests should identify their normalization: a consumption-equivalent quantity, a proportion of marginal utility, a log-scale statistic, or an absolute equation gap. They should be evaluated on independent off-grid states, including rare or high-loss states, and at binding inequalities using their proper complementarity conditions.
Den Haan and Marcet's accuracy test adds a simulation-oriented approach to evaluating numerical solutions of rational-expectations models when exact solutions are unknown. Both lines of research motivate independent diagnostics; neither replaces a model-specific argument connecting a residual to an economically decisive statistic.
Local Perturbation and Global Approximation
Perturbation methods construct local approximations to model solutions around a reference state, often a deterministic steady state. First-order approaches approximate derivatives linearly; higher-order approaches introduce nonlinear curvature and terms related to uncertainty. Schmitt-Grohé and Uribe (2004) provide a second-order approximation procedure for dynamic general equilibrium models and its economic applications.
The mathematical limitation is that a local expansion is controlled only within an appropriate region and subject to regularity of the solution. A higher-order polynomial may improve the local approximation while behaving poorly far from its expansion point. Large shocks, binding constraints, or endogenous changes of regime can place simulated states outside the approximation's trustworthy domain. Increasing polynomial order alone does not prove improvement everywhere.
An important comparison by Aruoba, Fernández-Villaverde, and Rubio-Ramírez considers different solution methods for dynamic equilibrium economies, including perturbation, finite elements, Chebyshev approximations and value-function iteration. This is evidence that computational methodology affects numerical results, not a source for a universal accuracy ranking independently of the model calibration and metric.
A rigorous comparison keeps equations, economic parameters, domains, and evaluation metrics consistent. It should report errors on unseen state points, sensitivity to shock size, and accuracy of the final quantities being published. It may compare methods of different architecture as well as additional orders or grid sizes within one method. Two methods agreeing on a sample of paths is reassuring but does not rule out a shared programming or model-specification defect.
The economically relevant issue is the support of the policy experiment. When a counterfactual moves the system far from the calibration state, accuracy near the steady state is not an adequate verification result for that counterfactual. Where necessary, the analysis must combine local and global methods or establish bounds on the region actually visited.
High-Dimensional Approximation and Sparse Grids
Global approximation faces a dimensionality problem. If a tensor-product grid assigns m nodes to each of d independent state dimensions, it contains m^d points. Ten nodes in each of eight dimensions require 100 million combinations. This arithmetic count does not by itself establish error, but it shows how computational cost can escalate before a sophisticated heterogeneous-agent or multi-country model is adequately resolved.
An approximation space may fit values at its nodes while producing substantial errors between nodes. Interpolation can also violate concavity, positivity, monotonicity or other economic restrictions unless enforced or verified. An algorithm may report good fit on a limited state box but extrapolate badly when the shock process moves toward a boundary.
Judd and collaborators' Smolyak study examines sparse grids, Lagrange interpolation, anisotropic treatment of dimensions, and adaptive solution domains. Maliar and Maliar's large-scale methods survey provides a broader view of computational strategies for dynamic models with many state variables. Such strategies change the allocation of approximation effort; they do not remove the obligation to quantify error.
Verification should distinguish four populations of states: grid points used to construct the approximation; independent off-grid test points; states frequently visited in simulated economic paths; and stress states where welfare, asset pricing, or liquidity constraints become highly sensitive. A method that performs well on average can remain inadequate in a low-probability region of high policy consequence.
Grid-refinement studies should compare economically relevant statistics at multiple resolutions with consistent definitions. Apparent stability is empirical evidence, whereas a mathematical convergence guarantee requires assumptions and analysis of the approximation family. When possible, one should report both maximum and economically weighted errors, recognizing that each metric answers a different question.
Numerical Integration and Simulation
Economic expectations and likelihoods often involve integrals over shocks, heterogeneity and latent states. Deterministic quadrature replaces an integral with a weighted finite sum; stochastic methods replace an expectation with averages of sampled evaluations. Both create numerical approximation problems, but their error mechanisms differ.
For independent and identically distributed draws Z_i with finite variance Var[h(Z)]=σ², the sample mean N⁻¹Σh(Z_i) has standard deviation σ/√N. Increasing the number of observations by a factor of 100 reduces this standard deviation by a factor of 10 under those assumptions. The formula concerns a distribution of simulation errors, not a deterministic maximum difference for every realized sample. Correlated draws, adaptive procedures, quasi-Monte Carlo sequences, and importance weights require appropriately modified analysis.
Deterministic quadrature can be efficient for smooth integrands in modest dimensions; discontinuities, tails, singularities or increasing dimension can defeat simple rules. Increasing quadrature order without examining the economic integrand's behavior is no substitute for verification. The large-scale computational economics survey discusses approximation of integration as one component of solving dynamic systems.
Consider a simulation-based Euler equation. Approximation error in the policy affects the integrand, while finite simulation affects the approximation to its expectation. Improving the number of draws reduces the latter but does not automatically correct policy error. The same distinction arises when an expectation operator feeds an inner Bellman solution or an outer likelihood optimizer.
A good report identifies the probability law, numerical integration rule, integration domain, effective number of draws or nodes, random-seed convention, and diagnostics at tighter accuracy. Tail-specific verification is important where rare states drive ruin, constraints, or nonlinear welfare costs. Reported Monte Carlo standard errors must be distinguished from systematic quadrature bias and model-specification uncertainty.
Derivatives, Optimization, and Stopping Rules
Optimization is central to estimation, calibration, decision rules, and equilibrium selection. Solvers commonly stop when changes in the objective, variables or gradient fall below specified tolerances. Their termination status is evidence about these local criteria, not a proof of a global optimum. Constraints, scaling, curvature, and multiple stationary points determine which further conditions are relevant.
Finite differences illustrate an avoidable error tradeoff. A central difference approximation [f(x+h)−f(x−h)]/(2h) has a leading truncation error of order h² for a sufficiently smooth function, while subtraction and finite precision can generate an error component that grows roughly as u/h under appropriate scaling. Choosing h smaller indefinitely therefore does not guarantee a more accurate derivative. Analytic and automatic differentiation reduce some truncation issues but remain dependent on correct code, differentiability and stable evaluation.
Suppose a differentiable objective f is m-strongly convex on a convex domain, its minimizer θ* is interior, and the gradient exists at a candidate θ̂. The strong-monotonicity inequality implies ||θ̂−θ*||≤||∇f(θ̂)||/m. If curvature is weak and m very small, the same gradient norm permits a much larger parameter error. This bound is a conditional mathematical result; it must not be applied to a generic nonconvex likelihood.
McCullough and Vinod (2003) demonstrate the importance of independently verifying nonlinear-solver outputs as an econometric problem. For an unconstrained candidate, gradient and Hessian diagnostics may be relevant. For a constrained problem, primal feasibility, dual feasibility, stationarity and complementary slackness should be considered in the appropriate model-specific form.
When economic conclusions depend on close objective values or subtle parameter differences, the numerical tolerance must be stricter than the substantive discrimination threshold. If changing the optimizer's accuracy alters a confidence interval, policy effect, or model ranking, this is an inferentially material diagnostic that should be reported and resolved before presenting a precise conclusion.
Structural Estimation and Nested Error
Structural econometric estimators frequently place a computational solution inside an outer statistical criterion. In a nested fixed-point method, each candidate parameter may require solving an equilibrium or dynamic programming problem. Rust's original dynamic replacement model illustrates this architecture. The outer optimum depends on how accurately the inner model is solved across the parameter search, not merely at the final reported estimate.
Let Q(θ) be the ideal objective and Q̂(θ)=Q(θ)+e(θ) its numerical approximation. Assume |e(θ)|≤ε uniformly over the search domain and that θ* and θ̂ are global minimizers of Q and Q̂ respectively. Then Q(θ̂)≤Q(θ*)+2ε. If Q is additionally m-strongly convex with an interior minimizer, Q(θ̂)−Q(θ*)≥(m/2)||θ̂−θ*||², giving ||θ̂−θ*||≤2√(ε/m). This bound is derived by combining the two inequalities. It is not applicable without the uniform criterion error and strong-convexity conditions.
Even a small level error in Q̂ can have an irregular derivative with respect to θ, particularly if the inner algorithm changes grids, termination regimes, random draws, or active constraints discontinuously. Estimation uncertainty based on second derivatives may be more sensitive than objective levels. Holding random streams common across nearby parameter points can reduce avoidable simulation noise in comparative calculations, subject to the estimator's design.
Pakes and Pollard's simulation-estimator analysis develops asymptotic results for estimators defined through random criterion functions under specified conditions. It does not mean every simulation estimator is consistent regardless of how simulation size, smoothing, or numerical optimization is implemented.
Identification remains an independent prerequisite. If distinct parameters generate nearly the same distribution or moment predictions, numerical refinements cannot manufacture informative data. Structural-estimation reports should therefore show how inner accuracy affects criterion values, estimates, gradients, standard errors and substantive counterfactuals, and distinguish numerical sensitivity from genuine weak identification.
Statistical Uncertainty and Model Misspecification
Several different kinds of uncertainty coexist in computational economics. Sampling uncertainty arises from finite data. Parameter uncertainty follows statistical inference. Simulation uncertainty arises from random approximation. Numerical uncertainty arises from finite arithmetic, discretization, quadrature and solver termination. Specification uncertainty arises because the economic model is an imperfect representation of the target phenomenon.
The categories are related, but not interchangeable. Suppose an estimate has an estimated Monte Carlo standard error of 0.002 and a separate deterministic numerical error bound of 0.004. The former is a probabilistic quantity defined by sampling assumptions; the latter is a worst-case mathematical claim under numerical assumptions. Their sum or root-sum-of-squares is not automatically a valid confidence interval. Their joint interpretation requires an explicit estimand, probability model and dependence structure.
Hansen and colleagues' work on robust control and model misspecification addresses decision making under uncertainty about the economic model itself. This illustrates a crucial distinction: numerical verification asks whether the selected mathematical model was computed accurately, whereas model robustness asks how decisions withstand changes in the substantive assumptions or probability law.
For a quantity q, an algebraic decomposition can separate computed-model error from model-target discrepancy when both objects are well defined and comparable. But the existence of a decomposition does not provide data with which to estimate each component. A measured residual cannot validate behavioral assumptions, and a good empirical fit cannot certify solver accuracy.
Economic scientific practice should present statistical intervals, computational diagnostics and specification sensitivity side by side, explaining which propositions each supports. A calculation with negligible roundoff may remain highly uncertain because of rare events, unobserved heterogeneity, competing equilibria or imperfect identification. Precision is one dimension of reliability, not its synonym.
Error Propagation in Dynamic Paths
A one-period numerical error can be amplified by repeated nonlinear transition maps. Suppose the exact trajectory obeys x_{t+1}=G(x_t), while the computed path obeys x̂_{t+1}=G(x̂_t)+η_t. Assume ||η_t||≤ε and G is Lipschitz on the relevant invariant domain with constant L. Setting d_t=||x̂_t−x_t|| yields d_{t+1}≤Ld_t+ε and therefore d_T≤L^T d_0+εΣ_{j=0}^{T−1}L^j.
When L<1, accumulated error is bounded by the corresponding geometric sum, approaching ε/(1−L) if the stated assumptions hold. When L=1, the bound grows at most linearly from the recurring local perturbations. When L>1, it permits rapid growth. These are bounds on a deterministic comparison under specified assumptions, not empirical descriptions of all macroeconomic simulations.
A long-run average may appear stable even if trajectories separate, because the relevant statistic may depend on a distribution rather than matching path-by-path values. Conversely, rare divergent paths can matter enormously for expected welfare or financial distress. Researchers must specify whether the target is a path, an invariant distribution, a conditional moment, a rare-event probability, or a discounted utility sum.
Den Haan and Marcet's simulation accuracy work is relevant precisely because dynamic solutions often lack analytic benchmarks. A diagnostic based on simulated paths can reveal important inconsistencies, but its power and scope depend on the model, path length and test statistic.
Verification should separate sensitivity to initial conditions, local transition errors, shock discretization, random-seed choices, and approximated policy rules. Exact repetition under the same seed merely establishes reproducibility of that code path. Numerical validity additionally requires evidence about convergence to the intended model outcome.
Constraints, Discrete Choice, and Equilibrium Multiplicity
Economic models contain inequalities, borrowing constraints, capacity restrictions, discrete alternatives and equilibrium selection problems. The mathematical requirements are more demanding than solving an unconstrained equation. Complementarity may require a≥0, b≥0 and ab=0 simultaneously. Solving only ab=0 can accept points that violate the model's intended economic feasibility.
A policy can be numerically ambiguous near indifference. Suppose the exact value of each of two feasible actions is approximated with error at most ε. The difference between the two computed values then has error at most 2ε. If the observed difference is 1.5ε, its sign is not certified by that error information. If its absolute value exceeds 2ε, the ranking is preserved under the stated bound. This follows immediately from the triangle inequality and shows why value-function accuracy and discrete-choice accuracy are different tasks.
An equilibrium equation can also have several exact solutions. For illustration, F(x)=x(x−1)(x+1) has roots −1, 0 and 1. A local solver can converge to any of them. Obtaining a low residual at one root does not prove uniqueness or select the economically admissible branch. Continuation, multi-start exploration, local stability analysis and model-specific selection restrictions can supply evidence, but a complete proof of uniqueness requires an appropriate mathematical argument.
Occasionally binding constraints can make policy rules nondifferentiable and defeat straightforward Taylor or gradient diagnostics at switching surfaces. Global solution methods may need targeted refinement near these boundaries. The different architectures surveyed by Maliar and Maliar (2014) and compared in Aruoba et al. (2006) provide methodological context, without independently verifying a particular implementation.
A credible policy analysis should disclose the fraction or location of simulated states near thresholds and indicate where a strict decision is numerically unresolved. The correct scientific output may be a set of admissible policies or equilibria rather than an artificially precise single choice.
Welfare Measurement and Policy Rankings
Computed welfare changes can be more sensitive than levels of aggregate consumption or output. A comparison may subtract two large value functions to identify a small gain, convert the difference into consumption-equivalent terms, and average it across heterogeneous agents. Each transformation can amplify a numerical error or create cancellation.
Let the true welfare outcomes of two policies be W_A and W_B, and let their computed values be Ŵ_A and Ŵ_B. If justified absolute bounds satisfy |Ŵ_A−W_A|≤ε_A and |Ŵ_B−W_B|≤ε_B in common units, then the true welfare difference lies within ε_A+ε_B of the computed difference. Thus a strict sign is certified only when |Ŵ_A−Ŵ_B|>ε_A+ε_B. This conclusion is a simple consequence of the triangle inequality and does not depend on a new welfare theory.
If a model produces a computed gain of 0.003 welfare units and each policy's verified error radius is 0.002, the computed difference is smaller than the combined radius of 0.004. The ranking remains numerically unresolved. If the two radii are reduced to 0.0005, their combined radius is 0.001 and the positive ranking becomes certified under the stated model and valid bounds.
An uncertainty bound on a value function does not automatically transfer unchanged to a consumption-equivalent welfare measure. The transformation may depend on utility curvature, admissible consumption ranges and equilibrium changes. The researcher must establish the relevant sensitivity before converting error units. Similarly, an average welfare gain may conceal large individual errors where policy alternatives are nearly tied.
This produces an important authorial interpretive rule: verification effort should be allocated to the margin that determines the economic decision. Computing every internal value to a uniform tolerance is inefficient when some outputs are insensitive and others are decisively close. The economically honest conclusion can be a set of policies whose rankings cannot be distinguished at the verified precision, rather than a seemingly exact ordering.
Software Reliability and Independent Recalculation
Reproducibility means that an identified computation can be executed again with predictable results under specified conditions. Numerical verification concerns whether those results correctly approximate their intended mathematical object. These are related but distinct achievements. Repeating an erroneous program with the same data and random seed reproduces its error.
McCullough and Vinod's software reliability study directly addresses numerical pitfalls in econometric software. A separate published corrigendum exists for the 1999 work; the present analysis verifies that bibliographic fact but does not use the uninspected corrigendum text for a substantive numerical claim. Their later nonlinear-solver verification article reinforces the practical relevance of independent checking.
Verification can proceed through several layers. Evaluate the defining residual using separately coded expressions; compare with analytic special cases; use algebraically equivalent stable formulas; repeat in higher precision; vary quadrature and grid resolutions; rerun with an independent algorithm; and apply mathematical enclosures where justified. Each targets different failure mechanisms. A second program that shares the same erroneous specification or input file cannot establish full independence merely by producing the same output.
A computational provenance record should contain model and code versions, input data versions and transformations, numerical precision, software dependencies, solver methods, termination settings, seed and randomness policies, and checksums of exact source and evidence files. Reproducibility of parallel or stochastic calculations may require tolerance-aware comparison rather than byte equality. The meaning of an acceptance test must be explicitly stated.
Independence has degrees. A higher-precision repeat of the same code can test roundoff sensitivity but not necessarily implementation correctness. An independent implementation can reduce shared code defects, yet still inherit a conceptual error in the model. Empirical validation then asks a further question about the relationship between computed implications and observed economic behavior.
The decisive evidence is a record of which class of error each check addresses, its outcome, and its relevance to the published economic claim. A successful software test suite is useful but does not replace scientific scrutiny of the resulting inferences.
Accuracy Budgets and Verification Design
An accuracy budget starts from the object of economic interest rather than a universal solver tolerance. A small change in a policy-ranking margin may require more numerical precision than a large change in a broad aggregate. The error relevant to a consumption share, price spread, likelihood statistic, and transition probability cannot be compared without converting it into corresponding units.
Where valid mathematical bounds exist, representation, linear solve, interpolation, quadrature and iteration errors may be propagated through the model to bound a final statistic. The errors must be expressed in compatible units, and the inequalities used to combine them must be justified. Statistical Monte Carlo standard errors cannot simply be added to deterministic worst-case bounds as though both were independent random variables.
When rigorous bounds are unavailable, convergence studies and method comparisons can provide empirical numerical evidence. A sequence of smaller grid errors, stable policy statistics across resolutions, and agreement of independent algorithms are informative. But the record must distinguish observed numerical stability from a proven error enclosure. The NIST numerical arithmetic reference and Higham's stability framework support this discipline of identifying what has actually been bounded.
The appropriate sequence for a model is to specify governing equations and admissible solutions, choose normalized residual diagnostics, evaluate conditioning or local sensitivity, verify constraints, compare independent approximations, and test the final economic quantities. A tolerance should be revisited when reducing it changes the substantive conclusion.
Verification also has a resource cost. It is rational to stop refining a numerical method when independent evidence shows that further computational error is immaterial relative to the economic question and the documented statistical or specification uncertainty. Conversely, it is scientifically inadequate to report a precise policy difference when a feasible refinement can reverse its sign.
The quality criterion is therefore not maximal machine precision. It is a justified correspondence between the numerical test, its stated assumptions, the accuracy of a specific reported statistic, and the interpretation placed upon that statistic.
Illustrative Numerical Audit
This section provides a self-contained, hypothetical audit using algebra alone. No external model dataset has been loaded and no published numerical result is replicated. The examples demonstrate how distinct verification outcomes arise from different questions.
First, suppose a discounted Bellman operator is known to be a sup-norm contraction with β=0.95. A candidate approximation has an exactly evaluated residual norm of 2×10⁻⁴. The standard contraction inequality yields ||V̂−V*||≤0.0002/(1−0.95)=0.004. This is a conditional value-function bound. If the residual was instead evaluated only for a projected grid operator, the bound applies to that operator unless an additional discretization-error argument connects it to the intended operator.
Second, consider policy welfare values 1.234 and 1.231, each with a verified error radius of 0.002. The computed difference is 0.003, smaller than 0.004, the sum of the radii. The ranking is not certified. Replacing each radius by a justified value of 0.0005 would certify the ranking, since 0.003 exceeds 0.001. The economic model and numerical accuracy assumptions must remain fixed for that conclusion.
Third, a simulation uses N=10,000 independent draws from a distribution for which the evaluated statistic has an estimated standard deviation of 0.5. The ordinary estimated Monte Carlo standard error is 0.5/√10,000=0.005. The value describes estimated sampling dispersion; it is not a deterministic bound on realized sampling error, and it says nothing about systematic bias from a misrepresented state distribution.
Fourth, a nonsingular economic linear system has relative residual 10⁻⁹ and condition number 10⁷. The basic norm inequality permits a relative solution-error bound of 10⁻². This does not imply the error equals 1%; it shows that the residual alone is inadequate to certify a much smaller forward error.
Fifth, suppose the finite-precision evaluation of a small difference loses significant digits, but an algebraically equivalent expression avoids subtraction of nearby values. A higher-precision comparison can distinguish arithmetic instability from a model problem. Yet even exact evaluation of that expression cannot establish that the underlying behavioral assumptions are empirically adequate.
Each example identifies an input assumption, a mathematical relation, the output that is bounded or estimated, and a limitation. Together they demonstrate the need to evaluate claims at their actual scientific level: arithmetic, solution, decision, sampling, or external validity.
Research Evidence and Claim-Level Traceability
Verification of a research claim requires evidence matched to the proposition asserted. A bibliographic record can establish that a paper exists and what its abstract says; it does not verify every theorem, benchmark, table or numerical implementation in that work. The distinction is especially important when relying on classic economics articles whose full content may be access-restricted.
For example, the accessible Santos Euler-residual record supports a conditional characterization of the subject and its reported accuracy result. The dynamic-solution method comparison supports an account of the studied numerical approaches, but the present dossier does not invent rankings or computational timing results from uninspected tables. IEEE's official floating-point listing identifies the standard, while NIST's detailed arithmetic section supports definitions and elementary measures. These sources perform different evidentiary functions.
The accompanying research evidence record identifies the inspected scope of each work, the claim it supports, and the limits of access. Original algebraic results are marked as derivations rather than attributed as discoveries in a published source. References retain full bibliographic identities and direct source links. Contextual links in the chapters connect short and meaningful research phrases to the corresponding works.
A scientific verification chain should identify the claim, equations, numerical approximation, diagnostic, error interpretation, and economic consequence. A missing element does not automatically disprove the result, but it limits what can responsibly be certified. The authorial synthesis consists in making those distinctions explicit and applying them consistently across economic applications.
No independent empirical replication, complete full-text adjudication of every cited article, or external peer review is claimed. The reviewed standards, publisher descriptions and accessible technical reference sections establish the research context; the algebraic examples establish only their conditional mathematical conclusions.
Scientific Limitations and Implications
The study is a literature-grounded methodological monograph with original analytical synthesis, not a new solver, benchmark database, formal numerical library, or estimated macroeconomic model. The most detailed external technical reference examined is NIST's public arithmetic section. Other sources were checked through publisher descriptions, indexed abstracts and official bibliographic records, and claims are limited accordingly. The research gives no unverified performance figures for competing algorithms.
Actual economic models can exhibit difficult numerical structures absent from simple illustrations: high-dimensional state spaces, rare-event welfare effects, weak identification, time-dependent constraints, nonconvex equilibria, nondifferentiability, and stochastic simulation procedures with correlated draws. Their verification must reflect the actual mathematical domains and statistical designs. A single residual threshold cannot stand in for all these investigations.
Questions for further work include rigorous numerical enclosures for heterogeneous-agent equilibrium systems, systematic verification of estimated nonlinear macroeconomic models, testing policy rankings under independently controlled approximation error, and the design of reproducible high-dimensional verification benchmarks. These questions are future research opportunities, not results established here.
Robust control research on misspecification supplies an important conceptual distinction: numerical precision concerns solving the model that was specified; scientific validity also concerns the relevance of that model to the target phenomenon. Neither dimension should be substituted for the other.
The durable implication is that computational accuracy should be reported at the level of the economically meaningful conclusion, with its assumptions, admissibility conditions, diagnostic evidence and limitations visible to the reader.
Conclusion
Numerical computations are integral to modern economic theory, structural estimation and quantitative policy analysis. Their scientific reliability depends on finite-precision arithmetic, the condition of the mathematical problem, algorithmic stability, approximation accuracy, integration and simulation design, and the sensitivity of the reported economic result.
The central conclusions follow from explicit mathematical arguments. A small equation residual can coexist with a material forward error when a problem is ill conditioned. An optimizer's convergence flag does not establish global optimality or economic admissibility. A small Bellman residual yields a conditional value-function bound only for the operator whose residual is evaluated. A small value-function error may nevertheless alter discrete choices near indifference. A policy welfare ranking is justified by numerical bounds only when its computed margin exceeds the combined uncertainty of its alternatives.
A rigorous workflow therefore begins with the exact economic question and mathematical object, records normalized residuals and condition information, tests alternative approximations, checks constraints and critical states, distinguishes simulation variation from numerical bias, and verifies how error affects the final economic claim. Reproducibility of code, statistical inference, empirical validation and robustness to model misspecification complement this work while remaining distinct scientific tasks.
Numerical verification is complete only to the extent that the evidence supports a defined accuracy claim within a defined model, numerical domain and interpretation. That is the basis on which a computed economic result can be used as a reliable part of scientific reasoning.
References
-
Aruoba, S. Borağan, Jesús Fernández-Villaverde, and Juan F. Rubio-Ramírez. 2006. "Comparing Solution Methods for Dynamic Equilibrium Economies." Journal of Economic Dynamics and Control 30 (12): 2477–2508.
-
Den Haan, Wouter J., and Albert Marcet. 1994. "Accuracy in Simulations." Review of Economic Studies 61 (1): 3–17.
-
Hansen, Lars Peter, Thomas J. Sargent, Gauhar Turmuhambetova, and Noah Williams. 2006. "Robust Control and Model Misspecification." Journal of Economic Theory 128 (1): 45–90.
-
Higham, Nicholas J. 2002. Accuracy and Stability of Numerical Algorithms. 2nd ed. Philadelphia: Society for Industrial and Applied Mathematics.
-
IEEE Standards Association. 2019. IEEE Standard for Floating-Point Arithmetic. IEEE 754-2019.
-
International Organization for Standardization. 2020. ISO/IEC 60559:2020: Information Technology—Microprocessor Systems—Floating-Point Arithmetic.
-
Judd, Kenneth L. 1998. Numerical Methods in Economics. Cambridge, MA: MIT Press.
-
Judd, Kenneth L., Lilia Maliar, Serguei Maliar, and Rafael Valero. 2014. "Smolyak Method for Solving Dynamic Economic Models: Lagrange Interpolation, Anisotropic Grid and Adaptive Domain." Journal of Economic Dynamics and Control 44: 92–123.
-
Maliar, Lilia, and Serguei Maliar. 2014. "Numerical Methods for Large-Scale Dynamic Economic Models." In Handbook of Computational Economics, vol. 3, edited by Karl Schmedders and Kenneth L. Judd, 325–477. Amsterdam: Elsevier.
-
McCullough, B. D., and H. D. Vinod. 1999a. "The Numerical Reliability of Econometric Software." Journal of Economic Literature 37 (2): 633–665.
-
McCullough, B. D., and H. D. Vinod. 1999b. "Corrigenda: The Numerical Reliability of Econometric Software." Journal of Economic Literature 37 (4): 1565.
-
McCullough, B. D., and H. D. Vinod. 2003. "Verifying the Solution from a Nonlinear Solver: A Case Study." American Economic Review 93 (3): 873–892.
-
National Institute of Standards and Technology. n.d. "Arithmetics and Error Measures." Digital Library of Mathematical Functions, §3.1.
-
Pakes, Ariel, and David Pollard. 1989. "Simulation and the Asymptotics of Optimization Estimators." Econometrica 57 (5): 1027–1057.
-
Rust, John. 1987. "Optimal Replacement of GMC Bus Engines: An Empirical Model of Harold Zurcher." Econometrica 55 (5): 999–1033.
-
Santos, Manuel S. 2000. "Accuracy of Numerical Solutions Using the Euler Equation Residuals." Econometrica 68 (6): 1377–1402.
-
Schmitt-Grohé, Stephanie, and Martín Uribe. 2004. "Solving Dynamic General Equilibrium Models Using a Second-Order Approximation to the Policy Function." Journal of Economic Dynamics and Control 28 (4): 755–775.