Why Transform Parameters?
Many pharmacometric model parameters have a restricted range by scientific definition: a clearance or variance must be positive, while a fraction or correlation may be confined to a finite interval. An optimizer that proposes values outside the permitted range can produce undefined model predictions or an objective function that cannot be evaluated. One way to preserve the restriction at every finite optimization iterate is to optimize an unconstrained coordinate and map it to the natural parameter scale.
This tutorial develops two common maps. The logarithm maps the real line to strictly positive values; the logit maps the real line to values strictly between two fixed bounds. These are smooth, one-to-one transformations in the interior of their ranges. Their derivatives therefore give a direct way to translate gradients and local uncertainty between scales. The transformations do not remove the need to choose a useful parameterization or starting value: near a boundary, their derivatives can become very small, which has practical consequences.
The reference value makes the logarithm's argument dimensionless. In practice, software often writes \(\eta=\log(\theta)\) while implicitly expressing \(\theta\) in a chosen unit; that convention is equivalent to taking the reference value to be one unit. Changing units changes the numerical log coordinate by a constant, so state the units and reference convention when reporting transformed values. The bounded transformation is also dimensionless: both \(\theta-L\) and \(U-\theta\) have the same units.
Derivatives on the Transformed Scale
Let \(f(\theta)\) be the objective function being minimized, and write \(\theta=g(\eta)\) for either inverse transformation. The optimizer evaluates the same objective at the mapped parameter value, \(f\{g(\eta)\}\). By the chain rule, the gradient used in transformed coordinates is the natural-scale gradient multiplied by the transformation's local rate of change. For a vector parameter, let \(J=\partial\theta/\partial\eta\) be the Jacobian matrix. Then
For a scalar positive parameter, \(\theta=\theta_{\mathrm{ref}}\exp(\eta)\), so \(d\theta/d\eta=\theta\). For a bounded parameter, set \(q=\{1+\exp(-\eta)\}^{-1}\), giving \(\theta=L+(U-L)q\). Since \(dq/d\eta=q(1-q)\), its derivative is \((U-L)q(1-q)\), which is positive in the interior and approaches zero near either bound. Thus the same natural-scale gradient can correspond to a much smaller transformed-scale gradient close to a boundary.
The additional second-derivative term matters away from a stationary point. For the log map, \(g'(\eta)=g''(\eta)=\theta\), so the scalar Hessian is \(\theta^2 f''(\theta)+\theta f'(\theta)\). At an interior optimum, where \(f'(\theta)=0\), the second term vanishes; away from the optimum it does not. For the bounded map, \(g'(\eta)=(U-L)q(1-q)\) and \(g''(\eta)=(U-L)q(1-q)(1-2q)\). These formulas explain why curvature reported in one coordinate system cannot generally be treated as though it were curvature in the other.
Worked Example: Mapping a Positive-Parameter Gradient and Hessian
Suppose a hypothetical objective \(f\) is evaluated at a positive clearance \(\theta=12\) L/h, using \(\theta_{\mathrm{ref}}=1\) L/h. At this point, let the natural-scale derivatives be \(f'(\theta)=0.80\) per L/h and \(f''(\theta)=0.25\) per \((\mathrm{L/h})^2\). Calculate the log-scale coordinate, gradient, and Hessian.
The transformed coordinate is \(\eta=\log\{(12\ \mathrm{L/h})/(1\ \mathrm{L/h})\}=\log(12)=2.4849\). The inverse map has derivative \(d\theta/d\eta=\theta=12\) L/h, so
For the Hessian, use both terms in the scalar chain-rule formula:
The values 9.60 and 45.6 are derivatives with respect to the dimensionless coordinate \(\eta\); they are not the natural-scale derivatives 0.80 per L/h and 0.25 per \((\mathrm{L/h})^2\). This calculation is at a point with nonzero gradient, so omitting the second term in the Hessian would give the incorrect value 36.
Worked Example: Mapping a Bounded-Parameter Gradient
Consider a hypothetical fraction \(\theta\) constrained to \(0.10<\theta<1.00\). At transformed coordinate \(\eta=-0.40\), calculate \(\theta\), the derivative \(d\theta/d\eta\), and the transformed gradient if \(f'(\theta)=-8.00\) per unit of \(\theta\).
The inverse logit gives \(q=1/\{1+\exp(0.40)\}=0.4013\), and therefore
The derivative is \((U-L)q(1-q)\). Substitution gives
Consequently, the gradient in transformed coordinates is
The negative sign still indicates that a small increase in \(\eta\) locally decreases the objective, because the map is increasing. The numerical gradient changes because a unit change in \(\eta\) does not equal a unit change in \(\theta\).
Mapping Local Uncertainty and Intervals
Suppose an estimator is obtained on the transformed scale, with estimated covariance matrix \(V_{\eta}\). If the transformation is differentiable and the uncertainty is sufficiently concentrated around the estimate, a first-order Taylor expansion gives the delta-method approximation
For a single parameter, this reduces to \(\operatorname{Var}(\hat{\theta})\approx\{g'(\hat{\eta})\}^2\operatorname{Var}(\hat{\eta})\), or \(SE_{\theta}\approx |g'(\hat{\eta})|SE_{\eta}\). This is a local approximation, not an exact distributional identity. For several transformed parameters, the Jacobian also maps covariances between parameters; dropping off-diagonal entries of \(V_{\eta}\) would generally lose information about their joint uncertainty.
Worked Example: A Bounded Estimate and Its Confidence Interval
Suppose a hypothetical fraction has bounds \(0<\theta<1\). Its logit-scale estimate is \(\hat{\eta}=-0.4055\), with estimated standard error \(SE_{\eta}=0.2500\). For illustration, construct a 95% Wald interval on the logit scale using the standard-normal critical value 1.96, then map it to the fraction scale. Also calculate the delta-method standard error at the estimate.
The logit-scale interval is
The inverse logit is increasing, so apply it to each endpoint in the same order:
Thus the transformed interval is approximately 0.2900 to 0.5211 on the fraction scale. Under the usual large-sample interpretation of the Wald construction, this is an approximate 95% confidence interval; the method does not assign a 95% probability to this particular fixed interval containing the true parameter.
At the estimate, the inverse logit gives \(\hat{\theta}=1/\{1+\exp(0.4055)\}\approx0.4000\). Its derivative is \(\hat{\theta}(1-\hat{\theta})\approx(0.4000)(0.6000)=0.2400\). Therefore the delta-method standard error is
A symmetric natural-scale Wald interval would be \(0.4000\pm1.96(0.06000)=[0.2824,0.5176]\). It differs from the interval obtained by transforming the logit-scale endpoints because the inverse logit is nonlinear. Both are approximations, and they answer slightly different construction choices; the transformed-endpoint interval respects the bounds automatically.
Why the Transformation Works—and Where It Can Struggle
The maps preserve the restrictions because exponentials are positive and the logistic function lies strictly between zero and one. For the bounded map, \(q=1/(1+\exp(-\eta))\) satisfies \(0<q<1\) for every finite \(\eta\). Hence \(L<L+(U-L)q<U\) whenever \(L<U\). Conversely, any interior value \(L<\theta<U\) has a finite coordinate \(\eta=\log\{(\theta-L)/(U-\theta)\}\). The log map similarly gives \(\theta_{\mathrm{ref}}\exp(\eta)>0\) for every finite \(\eta\), and every positive \(\theta\) has a finite log coordinate. These facts establish a smooth one-to-one correspondence between the real line and each parameter's interior range.
The correspondence does not include the endpoints at finite transformed values. As \(\eta\) tends toward negative or positive infinity, the logit-mapped parameter approaches \(L\) or \(U\), respectively, while \(d\theta/d\eta\) tends to zero. The log-mapped positive parameter approaches zero only as \(\eta\) tends to negative infinity. Accordingly, an estimate exactly on a boundary cannot be represented by a finite transformed coordinate. Optimization may also become poorly scaled when a parameter is very close to a boundary: a large change in \(\eta\) can produce only a tiny change in \(\theta\), and gradients in \(\eta\) may be small even when natural-scale gradients are not.
A transformation is a change of optimization coordinates, not automatically a change to the statistical model or objective. If the goal is to minimize \(f(\theta)\), the transformed objective is \(f\{g(\eta)\}\); one does not add a Jacobian term merely because the parameter was re-expressed. A Jacobian term is relevant in a different operation, such as transforming a probability density and expressing that density with respect to a new variable. Confusing these operations changes the target being optimized.
When using transformed-scale standard errors, remember that the delta method is local. It can be inaccurate when uncertainty is wide, when the estimate is near a boundary, or when the inverse transformation is strongly curved over the uncertainty range. Transforming the endpoints of a suitable transformed-scale interval often gives a more visibly asymmetric interval on the natural scale, but it does not guarantee good coverage in small samples or under a poor likelihood approximation. In pharmacometric estimation, inspect the fitted parameter values, gradients, and uncertainty on the scales relevant to the model; a plausible-looking transformed-scale result alone is not a diagnostic of a well-determined natural-scale parameter.
Choosing and Checking a Parameterization
| Parameter range | Common coordinate | Derivative of inverse map | Practical consideration |
|---|---|---|---|
| \(\theta>0\) | \(\eta=\log(\theta/\theta_{\mathrm{ref}})\) | \(d\theta/d\eta=\theta\) | Changes are naturally expressed in relative rather than fixed absolute units. |
| \(L<\theta<U\) | \(\eta=\log\{(\theta-L)/(U-\theta)\}\) | \((U-L)q(1-q)\) | The derivative shrinks near either bound, and finite \(\eta\) cannot attain the endpoints. |
A direct constrained optimization approach instead works with \(\theta\) and explicitly restricts proposals to the permitted range. It can represent an attained boundary, unlike a finite logit coordinate, but requires the optimizer to manage feasibility and boundary behavior. A transformed approach guarantees interior feasibility for finite iterates and allows unconstrained update methods, but can be poorly scaled near an endpoint. Neither is universally preferable: the scientific range, expected parameter location, and behavior of the estimation algorithm all matter. Detailed consequences of active parameter bounds are a separate issue from the chain-rule calculations developed here.
Useful diagnostics follow directly from the maps. Check that the inverse transformation returns the intended natural-scale starting values; verify the gradient chain rule numerically at an interior point; and compare the estimated natural-scale uncertainty with the transformed-scale uncertainty after applying the Jacobian. If the estimate is extremely close to a bound, report that fact and interpret local standard errors cautiously. These checks help separate a genuine feature of the model fit from a scale mismatch or a nearly flat transformation.
Check Your Understanding
Answer each question, then compare with the brief solutions below.
- For a positive parameter, why is a fixed reference value useful in \(\eta=\log(\theta/\theta_{\mathrm{ref}})\)?
- For \(\theta=L+(U-L)q\), with \(q=1/(1+\exp(-\eta))\), derive \(d\theta/d\eta\).
- If a positive parameter estimate is 5.00 units and its log-scale standard error is 0.08, what is its first-order natural-scale standard error?
- Why does a finite logit coordinate not give an estimate exactly equal to either fixed bound?
- Does reparameterizing an objective for optimization by itself require adding a Jacobian term? Explain.
Solutions. (1) It makes the logarithm's argument dimensionless; the reference value also makes explicit the unit convention. (2) Since \(dq/d\eta=q(1-q)\), \(d\theta/d\eta=(U-L)q(1-q)\). (3) The log inverse has derivative \(\theta\), so \(SE_{\theta}\approx5.00(0.08)=0.400\) units. (4) For finite \(\eta\), the logistic value satisfies \(0<q<1\), so the mapped parameter is strictly inside \((L,U)\); a bound is approached only as \(\eta\) tends to positive or negative infinity. (5) No. The optimization objective is composed with the inverse map, \(f\{g(\eta)\}\); a Jacobian term belongs to transforming a density with respect to a new variable, not merely changing optimization coordinates.