Why Input Rounding Deserves a Separate Check
A dose or covariate may look precise enough for a data table while still affecting a model calculation. The consequence depends on the model: a dose may enter a prediction proportionally, while a covariate may enter through a nonlinear function. A small input change can therefore alter a predicted concentration, an individual likelihood contribution, or—after refitting—the parameter estimates.
The key question is not whether a recorded value has been rounded. It is whether the rounding changes a quantity relevant to the analysis by enough to matter. Answering that requires comparing the values actually supplied to the model with defensible higher-precision values, while holding other choices fixed. If the input precision is genuinely unavailable, the comparison is a sensitivity analysis, not a recovery of the unknown exact value.
From Input Changes to Prediction Changes
Let \(f(D,x,\theta)\) denote a model prediction for dose \(D\), covariate \(x\), and parameters \(\theta\). Write the rounded inputs as \(D+\Delta D\) and \(x+\Delta x\). If \(f\) is differentiable in the inputs near the values being considered, a first-order Taylor expansion gives a useful local approximation:
This approximation explains why input precision alone is not a measure of impact: the derivatives matter too. For a positive prediction, the corresponding relative change is approximately \(\Delta f/f\). When both dose and covariates change, their contributions can reinforce or offset one another. The approximation is local; a direct evaluation at both sets of inputs is preferable when the change is not small or the model is strongly nonlinear.
A related calculation applies to a likelihood contribution. If the individual log-likelihood is \(\ell(D,x,\theta)\), then, locally,
This is a diagnostic approximation, not a substitute for recomputing the likelihood with the rounded inputs. The likelihood can respond differently from the prediction: a small prediction change may matter more when the observation is precise or lies in a region where the likelihood changes steeply.
Worked Example: Rounding a Dose in a Proportional Prediction
Suppose a hypothetical one-compartment bolus model predicts concentration at time \(t\) using \(C(t)=D/V\,\exp(-kt)\). Assume complete bioavailability, fixed \(V=40\) L and \(k=0.12\) h\(^{-1}\), and evaluate the prediction at \(t=6\) h. Compare an input dose of 248 mg with the rounded dose 250 mg.
Assumptions. The model treats the dose as an instantaneous bolus, and the stated parameter values and time are held fixed. This example isolates the dose-input effect; it does not claim that this model describes a real study.
At 248 mg, the prediction is
At 250 mg, it is
The absolute change is about \(3.04220-3.01786=0.02434\) mg/L. Because this model is proportional to dose, the relative change is exactly the dose ratio:
Thus rounding from 248 mg to 250 mg increases this fixed-parameter prediction by about 0.806%. Whether that is material depends on the intended use, the observation scale, and the uncertainty in the model and data; the percentage alone does not settle that question.
Covariate Rounding Can Change a Likelihood Contribution
Covariates often enter through powers, exponentials, or other nonlinear relationships. Their rounding effect is therefore not generally proportional to the covariate change. For example, if a prediction is proportional to \(W^{-0.75}\), its local relative sensitivity to weight is \(-0.75\): a small percentage increase in weight produces approximately a 0.75-times-as-large percentage decrease in the prediction.
To connect a prediction change to a likelihood, consider an observation \(y\) with a normal error model: \(Y\sim N(\mu,\sigma^2)\), where \(\mu\) is the model prediction and \(\sigma^2\) is a fixed residual variance. The log-likelihood contribution is
The standardized squared residual \(Q=(y-\mu)^2/\sigma^2\) is the quadratic part of this contribution. With \(\sigma^2\) held fixed, a decrease in \(Q\) increases the log-likelihood by half the decrease in \(Q\). This comparison is meaningful here because both the error distribution and variance are explicitly held constant.
Worked Example: Rounding Weight in a Nonlinear Covariate Model
Consider a hypothetical prediction model \(\mu(W)=50/[4(W/70)^{0.75}]\) mg/L, with weight \(W\) in kg. The observed concentration is \(y=12.60\) mg/L, and the normal residual variance is fixed at \(\sigma^2=0.18\) \((\mathrm{mg/L})^2\). Compare using \(W=70.0\) kg with using a rounded covariate \(W=69.6\) kg.
Assumptions. The normal error model is used for this observation, the variance remains fixed, and only the weight input changes. The example treats both weights as plausible model inputs for comparison; it does not assert which one is the true unrounded weight.
At 70.0 kg, the prediction is \(50/4=12.5\) mg/L. Its quadratic contribution is
At 69.6 kg, the prediction is \(50/[4(69.6/70)^{0.75}]\approx12.5538\) mg/L. Substitution using the unrounded model evaluation gives
The quadratic term decreases by about \(0.05556-0.0118371=0.04372\). Since the variance is unchanged, the log-likelihood difference, rounded-input value minus the 70.0-kg value, is
The rounded covariate gives a higher log-likelihood contribution for this observation under the stated model. That result does not show that the rounded weight is more accurate, nor does it establish that the model is better overall. It shows that even a modest covariate change can shift a likelihood contribution, and that the direction depends on the observation’s residual.
Refitting Is Necessary to Assess Parameter Effects
A change in a prediction at fixed parameters is not the same as a change in parameter estimates. To assess parameter effects, the model must be fitted again with the alternative inputs and the estimates compared. A simple Gaussian model makes the distinction explicit. For independent observations \(Y_i=\beta D_i+\varepsilon_i\), with \(\varepsilon_i\sim N(0,\sigma^2)\), the maximum-likelihood estimate of \(\beta\) is the least-squares slope through the origin:
This expression follows by minimizing \(\sum_i(y_i-\beta D_i)^2\). Differentiating with respect to \(\beta\) gives \(-2\sum_iD_i(y_i-\beta D_i)=0\); rearranging yields the formula above, provided \(\sum_iD_i^2>0\). Thus changing the doses changes both the numerator and denominator of the estimate.
Worked Example: Dose Rounding Shifts a Fitted Slope
Suppose two hypothetical observations have doses \(D_1=100.4\) mg and \(D_2=199.6\) mg, with responses \(y_1=10.04\) and \(y_2=19.96\) in arbitrary response units. Fit the through-origin model \(y_i=\beta D_i+\varepsilon_i\) first using the stated doses, then using doses rounded to 100 and 200 mg.
Assumptions. The errors are independent normal with a common fixed variance, the model has no intercept, and the only change between fits is the dose input. Under these assumptions, maximizing the likelihood is equivalent to minimizing the residual sum of squares.
Using the stated doses,
Using rounded doses,
The estimate decreases by \(0.00008\), or \(0.08\%\) relative to 0.10000. With the rounded-dose estimate, the fitted responses are \(100(0.09992)=9.992\) and \(200(0.09992)=19.984\). The residuals are 0.048 and \(-0.024\), so the residual sum of squares is \(0.048^2+(-0.024)^2=0.00288\). With the stated doses and \(\hat{\beta}=0.1\), both residuals are zero. If the common variance is fixed at \(0.01\), the rounded-input fit has a log-likelihood lower by \(0.00288/(2\times0.01)=0.144\) log units. This small example isolates the mechanism: changed inputs can shift both the fitted estimate and the maximized likelihood.
Diagnostics and Practical Choices
A useful assessment separates the input effect from unrelated changes in computation. Keep the model, observations, parameter values, and numerical settings fixed when first comparing predictions or individual contributions. Then refit from comparable starting values using each input version. Record both the fixed-parameter differences and the refitted differences; they answer different questions.
Check the source records, units, transformations, and export formats. A value displayed with few digits may have been stored at higher precision, while a value with many digits may only be a derived representation.
Evaluate the same prediction and likelihood contribution with the recorded value and a defensible alternative. Change one input at a time before testing combined changes.
Compare estimates, predictions, and likelihood values after refitting. Use the model’s units and the decision context to judge whether a difference matters, rather than relying on a single arbitrary threshold.
Retain the input version and precision used, and verify that the comparison can be reproduced from the data and analysis code.
Warning signs include changes that are unexpectedly large relative to the input perturbation, discontinuous jumps when a covariate is varied smoothly, or a result that depends on hidden rounding during data import. A sharp response may be legitimate—for example, if a model contains a threshold—but it should be traced to the model structure rather than attributed automatically to optimizer failure. Conversely, nearly identical predictions do not guarantee identical estimates when the data weakly identify some parameters.
The main alternatives are to preserve the best available input precision, to perform a targeted sensitivity analysis over plausible input values, or to represent genuine uncertainty in an input explicitly if the model and analysis support doing so. These approaches are not interchangeable. Rounding all values to a convenient common precision can discard information; retaining extra digits cannot restore precision that was never measured. Sensitivity analysis reveals dependence on plausible alternatives but does not identify the unknown value.
Common Mistake and Limitations
A common mistake is to calculate that a rounded input changes a fixed-parameter prediction only slightly and then conclude that the fitted model is unaffected. That conclusion does not follow: refitting can redistribute changes across parameters, particularly when parameters are correlated or weakly identified. The correction is to distinguish the fixed-parameter comparison from the refitted comparison and to report both when parameter impact is the question.
Another mistake is to infer that the value producing the better likelihood is the more accurate input. The likelihood evaluates compatibility under the specified model and data; it does not validate the measurement record. Likewise, rounding uncertainty should not be treated as a new random error automatically. Whether a measurement error model is appropriate depends on how the input was generated and what information is available.
Check Your Understanding
Try each question, then compare your reasoning with the solutions below.
- In a model whose prediction is proportional to dose, what is the relative prediction change when dose increases from 398 mg to 400 mg?
- A prediction is proportional to \(W^{-0.75}\). Near 70 kg, estimate the relative prediction change for a weight change of \(-0.5\) kg using a first-order approximation. State the direction.
- For the normal-error example, why does the change in log-likelihood equal half the decrease in \(Q\) when the variance is fixed?
- In the two-observation slope example, what fitted estimate results from using doses rounded to 100 and 200 mg, and why is a refit needed to answer the parameter-impact question?
Solutions. (1) Proportionality gives \((400/398-1)\times100=0.5025\%\), so the prediction increases by about 0.503%. (2) The first-order relative change is approximately \(-0.75(-0.5/70)=0.005357\), or a 0.536% increase in the prediction. This is a local approximation, not an exact bound. (3) The log-likelihood is \(-\tfrac12[\log(2\pi\sigma^2)+Q]\). With \(\sigma^2\) fixed, the log term is unchanged, so \(\Delta\ell=-\tfrac12\Delta Q\); a decrease in \(Q\) therefore raises \(\ell\) by half that decrease. (4) The rounded-dose estimate is \((100\times10.04+200\times19.96)/(100^2+200^2)=4996/50000=0.09992\). A fixed-parameter prediction comparison cannot show how the fitting criterion rebalances the estimate; the model must be refitted with the alternative inputs.