Mathematics · Article
Calibration, sensitivity and validation
Fit models with known measurement uncertainty, identify what an experiment can determine, and derive how predictions respond to parameter changes. Build a separate validation test for the population and tolerance the prediction must serve.
Back to MathematicsAfter reading, you can
- Derive weighted and generalized least-squares estimates and state how observation covariance changes their precision.
- Identify measured parameter combinations and use a controlled condition to separate confounded factors.
- Distinguish true nonlinear curvature from its Gauss–Newton approximation and quantify regularization bias and variance.
- Derive local sensitivities, adjoint gradients, event-time derivatives and variance-based input effects under their own assumptions.
- Construct and interpret predictive intervals and proper probability scores for the actual future target.
- Design independent evaluation and compute a risk bound with the correct sample unit, support and tolerance.
Which measurements can distinguish two models?
Two parameter settings can produce the same measured trace. Measuring that trace more precisely can reduce instrument uncertainty without revealing which setting generated it. Calibration starts by asking which quantities the experiment itself constrains. The answer can be one coefficient, a combination of coefficients or a prediction that remains stable even when the coefficients vary.
We derive weighted fits for both independent and correlated readings, then use rank, singular directions and changes to the experiment to study what can be learned. Gradients, adjoints and variance decompositions help explain which changes matter for a particular output. Each calculation uses a declared scale, uncertainty law and operating range.
Independent validation asks whether a frozen prediction rule works on the units and conditions where it will be used. We compare proper scores and prediction intervals, account for groups and distribution shifts, and derive when a predeclared tolerance can be certified. A fitted residual, a numerical error and a new measurement answer different questions about the model.
Separate the quantity, simulator and observation model
Fix the quantity being predicted, the controlled conditions x, and the population of units to which the result will apply. Write f_phys(x) for the corresponding physical mean, and let m(x,θ) be the mean delivered by an exact simulator at a given parameter θ. These are both in output units. A physical discrepancy δ(x)=f_phys(x)−m(x,θ) compares these means at the declared θ and conditions.
Write a measurement Y=f_phys(x)+ε with E(ε|x)=0 and finite conditional variance s²(x). Taking conditional expectations gives E[Y−m(x,θ)|x]=δ(x) for a fixed model and parameter. Subtracting the deterministic difference leaves ε, so Var(Y−m(x,θ)|x)=s²(x). A persistent bias in the measuring instrument would violate centering and could be misread as model discrepancy.
Taking the conditional second moment gives E[(Y−m)²|x]=δ(x)²+s²(x), because the cross term has conditional expectation zero. If X varies in a target population, Var(Y−m(X,θ))=E[s²(X)]+Var(δ(X)) by total variance. A scalar pooled error can conceal that one region consistently overpredicts and another underpredicts.
Calibration selects a parameter from observations. A fitted predictor using those same observations is no longer fixed relative to its training residuals. For a fresh unit, the displayed conditional decomposition applies after fixing the fitted predictor, provided the new error remains centered conditional on both X and that fit. This is one reason to define a separate evaluation sample and retain the intended population. Related reading: [Measurement models, discrepancy and propagated uncertainty](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337), [Designing a model assessment for a stated target](https://www.siam.org/media/wwjd5o2k/gaimme-2nd-ed-final-online-viewing-color.pdf). A declared measurement quantity and model support separation of the centered reading error from a physical discrepancy. The conditional moment and variance decompositions are proved for the specific fixed predictor.
Derive generalized least squares by whitening
Let y=Xβ+ε, where the n by p design X is fixed and has full column rank, Eε=0 and Cov(ε)=Σ is known and positive definite. Factor Σ=LLᵀ with L invertible. Use z=L⁻¹y and A=L⁻¹X. Then z=Aβ+e has E e=0 and Cov(e)=I. This changes the metric from raw squared output units to a residual measured relative to the observation covariance.
Minimizing Q(β)=||z−Aβ||² gives AᵀA β̂=Aᵀz. Indeed, the gradient is 2Aᵀ(Aβ−z), and A has full column rank because L is invertible. Thus AᵀA is positive definite, the solution is the unique minimizer, and reverting to the original coordinates gives β̂=(XᵀΣ⁻¹X)⁻¹XᵀΣ⁻¹y.
Substituting the model gives β̂−β=(AᵀA)⁻¹Aᵀe. Its expectation is zero and its covariance is (AᵀA)⁻¹AᵀI A(AᵀA)⁻¹=(XᵀΣ⁻¹X)⁻¹. A contrast cᵀβ̂ has variance cᵀ(XᵀΣ⁻¹X)⁻¹c. Different coefficient units are represented by the corresponding rows and columns of this covariance.
The estimator, centering and covariance need only the stated first and second moments. Gaussian errors imply an exact multivariate normal coefficient law and supply the corresponding likelihood, but neither follows from whitening alone. A singular covariance instead imposes deterministic relations in some directions. It requires a separate constrained analysis before using any inverse. Related reading: [Weighting observations of differing precision](https://www.itl.nist.gov/div898/handbook/pmd/section4/pmd452.htm), [Least-squares derivatives and local step design](https://personal.math.vt.edu/sturler/LectureNotes/Optimization-05_QuasiLSConstrained.pdf#page=20). The retained weight convention uses inverse observation variance and ordinary least squares. The lesson derives whitening for a full covariance, the inverse information and claims that survive without normal errors.
Compute the information in correlated repetitions
Let e₁,…,e_m be centered reading errors with m≥2, variance σ²>0 and Cov(e_i,e_j)=ρσ² for i≠j. Their covariance is σ²[(1−ρ)I+ρ11ᵀ]. This makes each repetition equally precise in isolation while allowing a shared unit or instrument to couple the errors.
The vector 1 is an eigenvector of the covariance divided by σ² with eigenvalue 1+(m−1)ρ. Every vector orthogonal to 1 has eigenvalue 1−ρ. Therefore the exact positive semidefinite interval is −1/(m−1)≤ρ≤1. Both endpoints can occur for a suitable singular joint law, so neither should be silently excluded when reasoning from covariance alone.
The mean error has variance σ²[1+(m−1)ρ]/m, from either the first eigenvalue or direct expansion of its sum. For positive variance, define m_eff=m/[1+(m−1)ρ] so that m_eff independent observations of variance σ² would have that same mean variance in the formula. This numerical comparison need not be an integer. Positive ρ makes additional observations less effective than independent ones.
Invert the positive-definite covariance. Normalize Σ⁻¹1 to sum to one. This minimizes variance among linear unbiased estimates of the common mean, so the inverse total information equals its variance.
| Quantity | Exact result |
|---|---|
| Covariance determinant | 3/4 |
| Information 1ᵀΣ⁻¹1 | 4/3 |
| GLS weights | (1/2, 1/2) |
| GLS estimate | 2 |
| GLS variance | 3/4 |
| Arithmetic mean variance | 3/4 |
| Arithmetic mean estimate | 2 |
| Estimate and variance comparison | GLS: 2 and 3/4. Arithmetic mean: 2 and 3/4. |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| y | [1,3] |
| v1 | 1 |
| v2 | 1 |
| c | 1/2 |
At the lower endpoint, the mean error is centered and has zero variance, so the mean is exact almost surely under that covariance model. The effective-size division has zero denominator. At ρ=1 the errors are equal almost surely since every pair difference has zero variance, giving equivalent size one. A measured estimate of ρ near either endpoint does not establish the corresponding exact relation. Related reading: [Measurement models, discrepancy and propagated uncertainty](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337), [Validation design for new groups and predictor ranges](https://www.biom.uni-freiburg.de/mitarbeiter/dormann/roberts-et-al-2017-ecography.pdf/at_download/file). Readings sharing one experimental unit can be dependent. The compound-symmetry eigenvalues, attainable endpoint and exact mean variance come from the original covariance matrix.
Identify combinations rather than arbitrary parameters
Let H(θ) collect the noiseless outputs of an experiment on an allowed parameter domain. The observations y identify θ if the fiber {θ:H(θ)=y} has exactly one point. They identify a combination ψ(θ) if ψ is constant on that fiber. If two parameter values on one fiber give different target values, the target cannot be recovered from this exact experiment alone.
Suppose a device yields H(a,b)=ab with positive factors a,b. Holding a product v>0 fixed gives every pair (s,v/s) for s>0. The product is identified. The factor a and the factor b each vary over the fiber, so neither is identified. A higher-precision repetition of exactly the same experiment still supplies the same noiseless constraint.
With a controlled offset δ>0 in the same units as a, a second noiseless channel yields v₂=(a+δ)b. Subtract v₁=ab to get v₂−v₁=δb. Then b=(v₂−v₁)/δ and a=v₁δ/(v₂−v₁). These values give both measurements back by substitution and require v₁>0 and v₂>v₁. The subtraction has output units and division by δ gives b in its prescribed units.
A zero offset or a zero difference does not identify two positive factors through these equations. A very small nonzero offset makes the recovered b sensitive to error because the input difference is divided by δ. Thus exact identifiability and precision under the actual instrument error and experimental range are separate calculations. Related reading: [Designing a model assessment for a stated target](https://www.siam.org/media/wwjd5o2k/gaimme-2nd-ed-final-online-viewing-color.pdf), [Physical units and changes of coordinates](https://pdodds.w3.uvm.edu/files/papers/others/1914/buckingham1914a_scanned.pdf). The exact comparison holds the experiment conditions and units fixed. The controlled offset and its risk from a small denominator resolve the original two-factor product ambiguity.
Connect the Jacobian to local identifiability
Let H map an open part of R^p into R^n and be continuously differentiable. At θ₀ assume its Jacobian has column rank p. Some p by p row submatrix is nonsingular, so selecting those p measured outputs gives a map H_* with invertible derivative at θ₀.
The inverse function theorem gives a neighborhood in which H_* has a differentiable local inverse. Equality of all measurements in that neighborhood implies equality of the selected outputs and hence of the two parameters. The condition is sufficient for locally distinguishing parameters at θ₀. It does not claim this inverse exists near a domain boundary or outside that neighborhood.
For H(θ)=θ² on the full real line, the derivative is nonzero at θ₀=1 and the positive local branch is invertible. The measurement 1 also has preimage −1, so full rank at the chosen branch does not imply global uniqueness. If physics restricts θ to positive values, that different domain does remove the sign ambiguity.
The linear response is the matrix applied to a parameter perturbation. Full column rank gives local distinction for this linear declaration. A small nonzero response can still be difficult to measure, but it is not a kernel direction.
| Quantity | Exact result |
|---|---|
| Determinant | 0 |
| Rank | 1 |
| Null direction | (−1, 1) |
| Image Ju | [1, 2] |
| Image Jv | [1, 2] |
| Exact output difference Ju−Jv | [0, 0] |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| J | [[1,1],[2,2]] |
| u | [1,0] |
| v | [0,1] |
Conversely H(θ)=θ³ is strictly increasing globally even though its derivative is zero at 0. Its inverse near zero magnifies small errors: an output uncertainty ε corresponds to input uncertainty up to ε^(1/3). Thus deficient derivative rank may indicate a locally poor linear sensitivity without proving equality of exact model outputs across a fiber. Related reading: [Least-squares derivatives and local step design](https://personal.math.vt.edu/sturler/LectureNotes/Optimization-05_QuasiLSConstrained.pdf#page=20). The Jacobian and rank describe differential behavior at the tested parameter. The lesson proves local identifiability using a selected inverse function and gives its own global and zero-derivative counterexamples.
Put sensitivities in a physically declared metric
Let J be the derivative of m(x,θ) with respect to the displayed parameter values, so J_{ij} carries units of output i per unit of parameter j. Choose an invertible physical reference-scale matrix D and perturb θ as θ₀+D u with dimensionless coordinates u. Whiten outputs by L⁻¹ for an observation covariance Σ=LLᵀ. The dimensionless local measurement change is A u with A=L⁻¹JD.
For a perturbation with ||u||₂=1, the largest and smallest first-order output changes in the whitened Euclidean norm are the largest and smallest singular values of A, counting zero directions when necessary. Right singular vectors specify actual parameter perturbations Dv. Thus a small singular value means a weakly measured physical direction in the particular declared metrics.
Change numerical units by invertible maps θ̃=Sθ and ỹ=Ty. Then J̃=TJS⁻¹, D̃=SD and Σ̃=TΣTᵀ. If L̃L̃ᵀ=Σ̃, the new scaled matrix is L̃⁻¹TL A. The prefactor Q=L̃⁻¹TL satisfies QQᵀ=I, so both scaled matrices have the same singular values. This result assumes that the same physical parameter metric and uncertainty are carried through the conversion.
By contrast, even a raw identity Jacobian can acquire a large numerical condition number if one parameter is rewritten in hundredths of an old unit without changing its output label. This rescales one column of raw derivatives while leaving the experiment physically identical. Exact invertible coordinate changes preserve rank. A condition number is meaningful only in the chosen metrics, which also need an uncertainty model that reflects the data. Related reading: [Least-squares derivatives and local step design](https://personal.math.vt.edu/sturler/LectureNotes/Optimization-05_QuasiLSConstrained.pdf#page=20), [Physical units and changes of coordinates](https://pdodds.w3.uvm.edu/files/papers/others/1914/buckingham1914a_scanned.pdf), [Weighting observations of differing precision](https://www.itl.nist.gov/div898/handbook/pmd/section4/pmd452.htm). Rank and scaling enter the linearized residual solve. The lesson proves how physical parameter scales and full whitening preserve the relevant singular values when units are converted consistently.
Separate the exact curvature from the Gauss–Newton term
Use a fixed positive definite observation covariance and fix its inverse whitening map. Let r(θ) be the vector of whitened predicted-minus-observed residuals. For the scalar objective F(θ)=r(θ)ᵀr(θ)/2, the directional derivative in h is rᵀJ h, where J has rows ∇r_iᵀ. Thus ∇F=Jᵀr.
Differentiate once more with respect to θ on a twice differentiable patch. For two directions h,k the derivative is (Jh)ᵀ(Jk)+∑_i r_i hᵀ∇²r_i k. Equivalently ∇²F=JᵀJ+∑_i r_i∇²r_i. The first term is positive semidefinite at any residual, because its quadratic form is a squared norm.
The residual curvature sum vanishes at an exact fit, at every parameter for a linear mean, or at other points where its terms cancel. At a general nonlinear point its sign is unconstrained. For r(θ)=θ²−1 at θ=0, the Gauss–Newton term is zero and the exact Hessian is −2. That example is stationary but has negative curvature.
For an exact fit and a full column rank J the exact Hessian is positive definite and gives a strict local minimum on an open domain. At a least-squares optimum with nonzero residual, a positive approximation does not establish the same property for the exact Hessian. A variance or whitening operator that depends on θ also needs its own derivatives and any likelihood normalization terms. Related reading: [Least-squares derivatives and local step design](https://personal.math.vt.edu/sturler/LectureNotes/Optimization-05_QuasiLSConstrained.pdf#page=20), [Ridge estimation and its bias–variance calculation](https://homepages.math.uic.edu/~lreyzin/papers/ridge.pdf). The residual Hessian has a Gram term and a curvature term. The lesson derives the complete differential and demonstrates how the exact curvature can have a different sign.
Derive a reliable local update for least squares
At the current θ, approximate the residual at θ+d by r+Jd. Minimizing ||r+Jd||²/2 gives the normal equations JᵀJd=−Jᵀr. When J has full column rank, H_G=JᵀJ is positive definite and the unique minimizing direction is d=−H_G⁻¹g for g=Jᵀr.
If g≠0, then gᵀd=−gᵀH_G⁻¹g<0. Differentiability gives F(θ+αd)=F(θ)+αgᵀd+o(α) as α decreases to zero. The negative leading coefficient dominates its remainder for all sufficiently small positive α within the domain. A line search that progressively reduces a positive trial length can therefore locate an improving feasible step when θ is interior.
The linearized residual model explains the direction rather than certifying a full step. The omitted residual second derivatives can be substantial, and a long step may exit the domain or increase the nonlinear objective. For an explicit example start at θ=0.1 for r(θ)=θ²−1. The scalar direction is (1−0.01)/0.2=4.95, so a unit step goes to 5.05 and produces a much larger squared residual.
If g=0, the full-rank Gauss–Newton step is zero even at a nonminimal stationary point. If J has deficient rank, the linearized criterion has unmeasured directions and no ordinary inverse. A restricted direction, a changed experiment or a declared regularization can address different issues. A numerical decrease supplies evidence about the objective at tested points rather than a global uniqueness guarantee. Related reading: [Least-squares derivatives and local step design](https://personal.math.vt.edu/sturler/LectureNotes/Optimization-05_QuasiLSConstrained.pdf#page=20). The retained nonlinear least-squares notes distinguish linearization from the true objective and damping. The descent and small-step conditions follow from the actual gradient and quadratic model.
Fit observation variance with the stated likelihood
Let y=Xβ+ε with fixed full-column-rank X and independent errors N(0,σ²) for a common σ²>0. With r²(β)=||y−Xβ||², the negative log likelihood apart from an additive constant is n log(σ²)/2+r²(β)/(2σ²). At every fixed variance its minimizer in β is the ordinary least-squares fit.
Let RSS be the squared residual sum at that fit. When RSS>0, the derivative of the profiled negative log likelihood in s=σ² is n/(2s)−RSS/(2s²). It changes sign from negative to positive through s=RSS/n, and the criterion tends to infinity at both ends of (0,∞). Thus the maximum likelihood variance estimate is RSS/n.
Let P be the orthogonal projector onto the column space of X. The residual vector is (I−P)ε. Its squared norm has expectation σ² tr(I−P)=σ²(n−p), because I−P is an idempotent symmetric projection of rank n−p. When n>p the unbiased residual variance estimate is RSS/(n−p). Normality gives the exact chi-square law for that scaled residual sum through an orthonormal basis of the residual subspace.
If RSS=0, the negative log likelihood goes to minus infinity as s decreases to zero at the fit. There is no maximum likelihood estimate in the positive variance domain. If n=p with full rank, all observations interpolate and no residual degrees of freedom remain. This calculation does not prove the measuring instrument has zero variance, and weighting, correlated errors and extra estimated model choices can change the applicable degrees of freedom. Related reading: [Ridge estimation and its bias–variance calculation](https://homepages.math.uic.edu/~lreyzin/papers/ridge.pdf), [A future measurement and an estimated mean](https://itl.nist.gov/div898/handbook/pmd/section5/pmd512.htm). The normal likelihood uses the joint variance normalization. The lesson finds the profiled maximum and derives the residual degrees of freedom and exact-fit boundary from its projection.
Profile out nuisance directions without holding them fixed
In whitened coordinates write z=a b+Bγ+e, where b is a scalar target and B contains nuisance columns of full column rank. For each fixed b, minimize ||z−a b−Bγ||² in γ by projecting z−a b onto the column space of B. Denote that projector by P_B and write M=I−P_B.
The remaining profile criterion is ||M z−(M a)b||². Put c=M a. If c≠0, the coefficient minimizing it is b̂=cᵀM z/(cᵀc), with curvature cᵀc for half the criterion. Expanding the profile about b̂ gives the minimum plus ||c||²(b−b̂)². The loss scale and nuisance directions have both been incorporated.
If Cov(e)=I, the estimate satisfies b̂−b=cᵀe/(cᵀc) because M is an orthogonal projection. Therefore Var(b̂)=1/(cᵀc). Writing cᵀc=aᵀa−aᵀB(BᵀB)⁻¹Bᵀa gives the Schur complement of the nuisance information block. The profile weights depend only on the part of the target direction that the nuisance columns cannot explain.
If a belongs to the column space of B, then c=0 and the profile is constant in b. Every change to b is canceled by a nuisance change. A small nonzero c can make the criterion almost flat in physical units even when all columns are linearly independent. Holding γ fixed would give curvature ||a||², which answers a different experiment unless the nuisance value is known. Related reading: [Least-squares derivatives and local step design](https://personal.math.vt.edu/sturler/LectureNotes/Optimization-05_QuasiLSConstrained.pdf#page=20), [Weighting observations of differing precision](https://www.itl.nist.gov/div898/handbook/pmd/section4/pmd452.htm). Least squares and whitening support the chosen residual norm. The nuisance projection, Schur complement, variance and flat-confounding limit follow from the original profile calculation.
Derive the bias and variance of regularization
Choose physical parameter coordinates in which the penalty is λ||β||² with λ>0. For centered errors of covariance σ²I and fixed design A, minimize ||z−Aβ||²+λ||β||². The normal matrix AᵀA+λI is positive definite, so β̂_λ=(AᵀA+λI)⁻¹Aᵀz is unique even if A is deficient.
Write A in a singular-value decomposition with right singular coordinates β_j and singular values s_j, allowing zero directions. A direction with s_j>0 contributes (s_j²/(s_j²+λ))β_j plus (s_j/(s_j²+λ)) times the corresponding rotated error. A zero direction contributes zero to the estimate. Orthogonality of the left singular vectors gives zero cross covariances under the declared error covariance.
In each direction the bias is −λβ_j/(s_j²+λ) and its variance is σ²s_j²/(s_j²+λ)². The estimate attenuates the expectation more strongly for poorly measured directions. For fixed positive s_j, increasing λ decreases that variance, but the squared bias can increase. New response uncertainty through cᵀβ̂_λ uses the variance of that linear contrast and also needs separate allowance for its bias.
As λ decreases to zero the supported coordinates tend to the least-squares coordinates, and exact null directions retain the minimum-norm choice zero. As λ tends to infinity all fitted coordinates tend to zero. Uniqueness due to the penalty does not supply identification in the experiment. Rescaling physically different parameters without transforming the penalty changes which values are preferred. Related reading: [Ridge estimation and its bias–variance calculation](https://homepages.math.uic.edu/~lreyzin/papers/ridge.pdf), [Least-squares derivatives and local step design](https://personal.math.vt.edu/sturler/LectureNotes/Optimization-05_QuasiLSConstrained.pdf#page=20). The ridge formula separates a diagonal penalty from the observation covariance. The lesson derives directional bias and variance, including zero design singular values and matching physical metrics.
Change parameter coordinates without changing the model
Let θ>0 and let θ₀ be a fixed reference quantity in the same units. Then u=log(θ/θ₀) is dimensionless and θ=θ₀exp(u), so dθ/du=θ. For a differentiable predicted output m, its derivative in u is θ ∂m/∂θ. This derivative gives an output change per unit log change rather than per displayed parameter unit.
A small physical displacement h in θ corresponds to leading log displacement h/θ. A change of physical units multiplying θ and θ₀ by the same positive number leaves u and its response derivative unchanged. A finite displacement uses the exact transformation. A zero or sign-changing parameter requires a different coordinate chart and cannot be included by dividing through zero.
If a law for θ has density p_θ relative to dθ, then in u it has density p_u(u)=p_θ(θ₀exp(u))θ₀exp(u) by the substitution in its probability integral. The posterior transforms the same way, since the observed-data likelihood is evaluated at the same physical parameter. Integrals of predictions and probabilities of corresponding events are invariant under this change of variable.
For example a uniform density on [θ₀,2θ₀] is constant in θ, but proportional to exp(u) on [0,log 2] in u. A maximum of a density can therefore change under reparametrization even though the law and likelihood are represented exactly. If a modeling procedure intends a different prior, penalty or decision, it needs to specify that physical information instead of treating a density height as invariant. Related reading: [Physical units and changes of coordinates](https://pdodds.w3.uvm.edu/files/papers/others/1914/buckingham1914a_scanned.pdf), [Normal likelihood and precision weighting](https://openlearninglibrary.mit.edu/asset-v1%3AMITx%2B18.05r_10%2B2022_Summer%2Btype%40asset%2Bblock/pdf_mit18_05_s22_1805-statistics.pdf). The reference makes the log input dimensionless. The lesson derives both sensitivity and probability-density Jacobians and identifies the coordinate dependence of density multipliers and modes.
Separate fitted response uncertainty from future observation noise
Assume θ has normal prior mean μ₀ and variance v₀>0. Conditional on θ, observe independent normal Y_i with common mean θ and known positive variances v_i. The log of the product of prior and likelihood, up to terms independent of θ, is −(1/2)[(θ−μ₀)²/v₀+∑_i(Y_i−θ)²/v_i]. Given the numerical readings this is a quadratic in θ.
Its quadratic coefficient is Λ=v₀⁻¹+∑_i v_i⁻¹, and its linear coefficient after multiplying by minus one half is μ₀/v₀+∑_i Y_i/v_i. Completing the square gives posterior variance v_post=1/Λ and mean μ_post=v_post(μ₀/v₀+∑_i Y_i/v_i). Every term of Λ has inverse squared output units.
An independent new reading conditional on θ can be written Y_new=θ+ε_new with ε_new normal of mean zero and known variance v_new. The noise is independent of the posterior θ under this model, so the posterior predictive law is normal with mean μ_post and variance v_post+v_new. Equivalently, the same variance follows from total variance and the positive noise variance remains even for sharply learned θ.
Under the declared sampling model the sample mean has variance σ²/n. Its estimation error is independent of the new observation noise. Adding these two sources gives the repeated-sampling prediction error, not a conditional variance given fixed observations.
| Quantity | Exact result |
|---|---|
| Fitted mean | 2 |
| Fitted-mean variance | 4/3 |
| Independent future observation noise variance | 4 |
| Prediction-error variance | 16/3 |
| Prediction / fitted-mean variance | 4 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| observed | [1,2,3] |
| variance | 4 |
A posterior interval for the latent mean θ uses v_post alone. A predictive interval for an additional measurement uses the larger variance and the stated measurement mechanism. The conclusions are conditional on the assumed likelihood, variance and prior. A systematic discrepancy, correlated future errors or a distinct target measurement model needs a separate term or revised likelihood. Related reading: [Normal likelihood and precision weighting](https://openlearninglibrary.mit.edu/asset-v1%3AMITx%2B18.05r_10%2B2022_Summer%2Btype%40asset%2Bblock/pdf_mit18_05_s22_1805-statistics.pdf), [A future measurement and an estimated mean](https://itl.nist.gov/div898/handbook/pmd/section5/pmd512.htm). The normal update adds prior and reading precisions. The lesson obtains the independent unequal-variance posterior and combines new observation noise with uncertainty in the fitted common mean.
Expose calibration and discrepancy confounding
Suppose the exact mean vector has form Xβ+Zγ, where β calibrates the simulator and γ describes a discrepancy on the observed conditions. Two coefficient pairs yield the same mean exactly when their differences obey X Δβ+Z Δγ=0. Thus the full coefficient pair is identifiable precisely when the combined matrix [X Z] has full column rank.
If the separate blocks both have full column rank, the remaining requirement is that their column spaces intersect only at zero. A nonzero common vector h=Xu=Zv allows adding a multiple of u to β and subtracting the same multiple of v from γ, preserving all observed means. The ranking condition changes if a parameter range rules out one of the constructed pairs.
For a constant simulator mean β and an unknown constant discrepancy γ, the measured mean identifies only β+γ. Repeating the same measurement more accurately cannot split those two contributions. If the discrepancy is constrained to lie in the sample-metric orthogonal complement of the simulator space, an exact decomposition is obtained by projection. Then an overlapping constant discrepancy is excluded by the modeling choice.
An orthogonality constraint gives uniqueness in the assumed fit while leaving its physical justification and extrapolation open. A true bias can have a component exactly in the simulator space and be absorbed into the fitted parameter. Distinguishing it requires new physical information or an experimental design in which their predicted responses differ, followed by validation on the prediction conditions. Related reading: [Measurement models, discrepancy and propagated uncertainty](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337), [Designing a model assessment for a stated target](https://www.siam.org/media/wwjd5o2k/gaimme-2nd-ed-final-online-viewing-color.pdf). A measurement model must distinguish possible sources of discrepancy. Column-space intersections and a metric orthogonality constraint give precise fit-level results without claiming they identify a physical mechanism.
Account for a censored observation in its actual information channel
Let a latent reading Y have continuous CDF F_θ and density f_θ. A sensor reports W=min(Y,L) with known upper limit L. For w<L the event W∈dw corresponds exactly to Y∈dw, so the observed distribution there has density f_θ(w). At w=L the reading is a censoring flag whose probability is P_θ(Y≥L)=1−F_θ(L) by continuity.
The observed probability law is mixed: a continuous part on (−∞,L) whose mass is F_θ(L), and one atom at L completing mass one. Densities have inverse output units, while the mass of a flag is dimensionless. Relative to a reference measure consisting of length below L and a unit atom at L, these are the two likelihood factors.
For conditionally independent sensor observations, multiply f_θ(w_i) for exact readings and 1−F_θ(L) for capped readings. Replacing the latter with f_θ(L) fits a different observation model and can bias estimates for the tail or variance. If the model assigns zero probability to the reported censoring event, the observed-data likelihood is zero under that model.
A true exact measurement at L has probability zero under the stated continuous latent law, while the censoring report can have positive probability. A discrete latent law already allows its own atoms and requires care with F_θ(L−). If records above L are deleted without counting how many, the remaining sampling may instead be truncated or selectively missing, with a different conditional likelihood. Related reading: [Likelihood of a censored reading](https://www.itl.nist.gov/div898/handbook/apr/section4/apr412.htm). The selected censoring likelihood combines exact observation densities with survival mass. The lesson derives the mixed law for a clipped reading, including the distinct missing-instrument branches.
Choose a finite difference in the presence of computation error
At a parameter θ take 0<h≤H so the function g is three times continuously differentiable on the interval between θ−H and θ+H, with |g'''|≤M there. Taylor expansion at θ gives g(θ±h)=g(θ)±h g'(θ)+(h²/2)g''(θ)+R_± with |R_±|≤Mh³/6. Subtracting and dividing by 2h gives a truncation error bounded by Mh²/6.
If each computed value may differ from its exact value by at most η in output units, the difference of their errors is at most 2η. Dividing by 2h adds an error bound η/h with gradient units. Thus the total derivative error is bounded by B(h)=Mh²/6+η/h without assuming independent numerical errors.
For M>0 and η>0, B'(h)=Mh/3−η/h² has exactly one positive zero at h_*=(3η/M)^(1/3). Its sign changes from negative to positive, so the best bound within (0,H] uses min(H,h_*). This is a choice based on the uniform bound. Observed changes in function values at one step do not identify the true truncation or numerical error.
If η=0 and M>0, the bound tends to zero as h decreases to zero. If M=0 and η>0, take H because the truncation estimate is then zero everywhere and η/h decreases. If both are zero, every admitted h gives the exact centered derivative. In applications cancellation, discretization and instrument accuracy determine whether the assumed evaluation-error budget is valid. Related reading: [Numerical verification against a fixed equation](https://www.grc.nasa.gov/www/wind/valid/tutorial/verassess.html), [Forward tangent equations for an initial-value problem](https://sundials.readthedocs.io/en/v7.4.0/cvodes/Mathematics_link.html#forward-sensitivity-analysis). Numerical differentiation needs a fixed accuracy premise. The truncation and amplified evaluation-error bounds and their optimal admissible step are derived independently.
Differentiate a dynamical calibration model
Let ẋ=f(t,x,θ) on a finite interval [0,T] with x(0,θ)=x₀(θ). Assume f is continuous in t and continuously differentiable in x,θ on a neighborhood containing the nearby solution paths, with uniform derivative bounds on the tubes and line segments used below. Assume x₀ is differentiable and the neighboring solutions exist on [0,T]. Fix a parameter θ and a perturbation direction h.
Write x_s(t)=x(t,θ+s h) and x(t)=x(t,θ). In the integral equation the difference of f along these paths is A_s(t)(x_s−x)+s B_s(t)h, with A_s,B_s the integrals of f_x,f_θ along the line segment between the two state-parameter pairs. Uniform bounds and Gronwall's inequality give sup_t||x_s−x|| bounded by a constant times |s|, using the corresponding bound for the initial difference.
Divide the integral difference by s. Then q_s=(x_s−x)/s solves q̇_s=A_s q_s+B_s h with initial difference quotient. On the compact common tube the derivative continuity gives uniform convergence A_s→f_x(t,x,θ) and B_s→f_θ(t,x,θ). Subtract the limiting integral equation and use the bounds and Gronwall again. The difference tends to zero uniformly and the initial vector becomes x₀,θ h.
Thus the derivative q has q̇=f_x q+f_θ h and q(0)=x₀,θ h. The same uniform estimates over bounded directions and differentiability of x₀ yield the corresponding matrix tangent S=∂x/∂θ, with Ṡ=f_x S+f_θ. A column of S has state units per unit of the associated parameter. At model switches, failed existence or discontinuous parameter dependence, this argument needs new assumptions. Related reading: [Forward tangent equations for an initial-value problem](https://sundials.readthedocs.io/en/v7.4.0/cvodes/Mathematics_link.html#forward-sensitivity-analysis), [A first-order model, initial data and solution checks](https://ocw.mit.edu/courses/es-1803-differential-equations-spring-2024/mites_1803_s24_topic1.pdf). The forward sensitivity equation includes the derivative of the initial value. The lesson proves parameter differentiability on the common interval with uniform derivative and integral bounds.
Compute a response gradient with a continuous adjoint
Let x solve ẋ=f(t,x,θ) on [0,T] and let its directional tangent in h be v with v̇=f_x v+f_θ h and v(0)=x₀,θ h. Consider J(θ)=Φ(x(T),θ)+∫₀^T ℓ(t,x(t),θ)dt. Assume the uniform differentiability needed to differentiate the finite-horizon integral. Use column gradients with respect to x for both Φ and ℓ.
Direct differentiation gives DJ[h]=Φ_xᵀv(T)+Φ_θᵀh+∫₀^T(ℓ_xᵀv+ℓ_θᵀh)dt. Choose a backward adjoint p satisfying −ṗ=f_xᵀp+ℓ_x and p(T)=Φ_x, with coefficients evaluated on the original solution. Then d(pᵀv)/dt=−ℓ_xᵀv+pᵀf_θ h, by the two differential equations.
Integrate this identity over [0,T]. The endpoint p(T)ᵀv(T) combined with the integral of ℓ_xᵀv becomes p(0)ᵀx₀,θ h+∫₀^T pᵀf_θ h dt. Hence the full derivative is Φ_θᵀh+p(0)ᵀx₀,θ h+∫₀^T(pᵀf_θ h+ℓ_θᵀh)dt. Every term has units of objective change for the physical perturbation h.
One backward solve supplies the state-dependent weight for all parameter directions of this fixed scalar objective. It still requires the actual trajectory and accurate quadrature, and the initial contribution vanishes only for a parameter-independent initial state or an orthogonal perturbation. A varying event time, a reset or a moving endpoint requires its own derivative contributions. Related reading: [Continuous adjoints and their initial-state contribution](https://sundials.readthedocs.io/en/v7.4.0/cvodes/Mathematics_link.html#adjoint-sensitivity-analysis). The continuous adjoint weights the state and retains initial-time sensitivity. The lesson derives the combined terminal and running objective with the correct adjoint sign and direct parameter term.
Check event-time sensitivity at a crossing
Let a continuously differentiable scalar h(t,θ) vanish at a specified (t_*,θ_*), with h_t(t_*,θ_*)≠0 and t_* interior to the admissible times. This is transversality: near the event the signal has a nonzero rate of crossing in its units. The implicit function theorem gives a unique nearby root t(θ) in a neighborhood of t_*.
Differentiate h(t(θ),θ)=0 in direction u. By the chain rule, Dt[u]=−h_θ u/h_t at the root. If h is an observed state function along a trajectory, h_θ includes the trajectory tangent at fixed time. The denominator is the full time derivative along the path. This quotient has time units for the physical perturbation u, and it can be large when the crossing slope is small.
A locally unique root may cease to be the first root under changes far from that neighborhood. To transfer a first-crossing claim, the earlier portion of the observation window must have no competing root and retain that separation under the perturbation. For a finite earlier compact interval a strict positive separation from zero supplies such a condition by continuity.
For h=θ−(t−1)² at θ=0, the root at t=1 has zero time derivative. For small θ<0 there is no root, and for 0<θ<1 the earlier root is 1−√θ. Its derivative is −1/(2√θ), which diverges in magnitude toward zero from above. A finite sensitivity for that event cannot be obtained by dividing through the vanished time slope. Related reading: [Numerical root detection and tangencies](https://sundials.readthedocs.io/en/v7.4.0/cvodes/Mathematics_link.html#rootfinding), [Forward tangent equations for an initial-value problem](https://sundials.readthedocs.io/en/v7.4.0/cvodes/Mathematics_link.html#forward-sensitivity-analysis). A sign change can be lost near tangency. The lesson uses the implicit theorem and the fixed-time tangent to obtain a time derivative only on its isolated transversal branch.
Measure an interaction with a controlled change
For a twice continuously differentiable output f(x,y) on a rectangle, take x₁>x₀ and y₁>y₀. The four-setting contrast is Δ=f(x₁,y₁)−f(x₀,y₁)−f(x₁,y₀)+f(x₀,y₀). It compares the controlled change with x across the two settings of y and has output units.
Integrate ∂f/∂x in the two horizontal differences to get Δ=∫_{x₀}^{x₁}[f_x(x,y₁)−f_x(x,y₀)]dx. Integrate the bracket in y to obtain the double integral of f_xy over the rectangle. Dividing by the positive side lengths gives the rectangle average of the mixed derivative and tends to its value at the limiting point as the rectangle shrinks.
If f(x,y)=cxy, the contrast is exactly c(x₁−x₀)(y₁−y₀). Along either axis through the zero baseline, varying just one factor gives no change at all. A joint perturbation can nevertheless be substantial. If f is additive in x and y, all such contrasts are zero wherever the additive representation holds.
The interaction contrast has weights (+1,−1,−1,+1) in row-major order. Independent cell-estimate variances add after squaring the weights. Parallel cell-mean lines indicate zero interaction on this additive scale.
| Quantity | Exact result |
|---|---|
| Rows / columns | A levels 0,1 / B levels 0,1 |
| Effects of B at A=0 and A=1 | (2, 4) |
| Effects of A at B=0 and B=1 | (1, 3) |
| Difference in differences | 2 |
| Variance of the contrast | 4 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| means | [[1,3],[2,6]] |
| var | [[1,1],[1,1]] |
Zero contrast for one chosen rectangle alone can occur by cancellation of positive and negative mixed derivatives. In an experiment noisy corner measurements also give uncertain Δ. The variance of the contrast is the signed quadratic form of their covariance matrix. This design tests an interaction on the specified rectangle, with any approximation to a derivative requiring a sufficiently local range. Related reading: [Variance components and total-effect sensitivity](https://www.andreasaltelli.eu/file/repository/Sobol_2001.pdf), [Designing a model assessment for a stated target](https://www.siam.org/media/wwjd5o2k/gaimme-2nd-ed-final-online-viewing-color.pdf). The source treats interactions through combined factors in a variance decomposition. The lesson provides a separate deterministic four-corner identity and explains the local and finite-rectangle meanings.
Decompose response variance under independent inputs
Let X and Y be independent, and suppose Z=f(X,Y) is square-integrable. Define μ=E Z, a(X)=E[Z|X]−μ, b(Y)=E[Z|Y]−μ and i(X,Y)=Z−μ−a(X)−b(Y). By independence E[b(Y)|X]=0 and E[a(X)|Y]=0. Therefore E[i|X]=E[i|Y]=0.
Independence and centering give E[ab]=0. Conditioning gives E[ai]=E[a E[i|X]]=0 and E[bi]=0. Thus Var(Z)=E[a²]+E[b²]+E[i²] by expansion. This orthogonality follows from the product input law and a declared squared-output loss.
For total variance V>0 the first-order fractions are S_X=E[a²]/V and S_Y=E[b²]/V. The variance left when Y is given is E Var(Z|Y)=E[(a+i)²]=E[a²]+E[i²], giving total-effect fraction T_X=(E[a²]+E[i²])/V. Likewise T_Y=(E[b²]+E[i²])/V. Their sum is 1+E[i²]/V, because the interaction affects both inputs.
When V=0 the response is constant almost surely and relative fractions are undefined. The measures also depend on the spread and distribution assigned to inputs. Correlated inputs change the conditional projection relations and may make a marginal effect indistinguishable from information about the other input. They require a different interpretation or a different attribution rule. Related reading: [Variance components and total-effect sensitivity](https://www.andreasaltelli.eu/file/repository/Sobol_2001.pdf). Independence and square integrability underlie the orthogonal decomposition. The lesson proves it for two general independent input laws, uses the correct normalization, and states the undefined constant-response fractions.
Propagate dependent input uncertainty with its covariance
For a vector perturbation U of mean zero and covariance Σ, the linearized response change of a scalar output with gradient a is aᵀU. Its mean is zero and its variance is aᵀΣa. For a vector output with Jacobian J the corresponding covariance is JΣJᵀ. The products carry squared output units after the physical parameter units cancel.
For two inputs the variance is a₁²Σ₁₁+a₂²Σ₂₂+2a₁a₂Σ₁₂. A negative input covariance can increase uncertainty when the gradients have opposite signs, and reduce it when they have the same sign. Its magnitude is constrained by positive semidefiniteness, so the resulting variance cannot be negative.
For an exact example let X=Y almost surely with common centered variance s²>0, and f=X+Y. Treating the two terms as independent would give variance 2s², whereas the correct variance is 4s². Also E[f|X]=2X and E[f|Y]=2Y, so each conditional mean explains the whole output variance by itself.
Adding the two conditional fractions as if they were independent pieces would double count this shared information. If f=X−Y the same covariance cancels all variability and either independent estimate would miss the cancellation. Use the covariance of the actual joint input law for a local variance calculation. Claims about changing one input while keeping another fixed need an explicit experiment or intervention, not only their observational correlation. Related reading: [Measurement models, discrepancy and propagated uncertainty](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337), [Variance components and total-effect sensitivity](https://www.andreasaltelli.eu/file/repository/Sobol_2001.pdf). Uncertainty propagation must carry cross covariance. The lesson proves the linear variance identity and the perfect-dependence example where both conditional projections can explain one output.
Control a small-input uncertainty approximation
Let U be centered and ||U||≤B almost surely in a chosen parameter metric. For x=x₀+εU, assume f is three times continuously differentiable along all permitted segments and that its third derivative norm is bounded by M. Let a=∇f(x₀) and H=∇²f(x₀). Taylor's theorem gives f(x)=f(x₀)+ε aᵀU+ε²UᵀHU/2+R with |R|≤M|ε|³B³/6.
Taking expectations removes the first-order term. Since E[UᵀHU]=tr(HΣ) for Σ=E[UUᵀ], the mean is f(x₀)+ε² tr(HΣ)/2 with absolute remainder bounded by M|ε|³B³/6. The covariance between input components can therefore change both the mean correction and variance.
Write η=ε²UᵀHU/2+R. For |ε|≤ε₀, |η|≤C ε² with C=||H||B²/2+Mε₀B³/6. Then Var(η)≤C² ε⁴ and the magnitude of the covariance term 2 Cov(ε aᵀU,η) is at most 2C|ε|³√(aᵀΣa), by Cauchy–Schwarz. This gives an explicit error bound for using ε² aᵀΣa as the output variance.
If aᵀΣa=0, there is no linear variance term. The leading variability may instead be of order ε⁴ or smaller, so a relative error claim from the first-order formula is unwarranted. A large input range, nonsmooth thresholds or unbounded perturbations outside the derivative control need a new bound or an analysis of the full transformed law. Related reading: [Measurement models, discrepancy and propagated uncertainty](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337). The measurement scope acknowledges approximations and input uncertainty. The original bounded Taylor proof gives actual mean and variance remainders and states when a vanishing first-order variance needs another scale.
Keep mixture uncertainty and observation variation separate
After conditioning on the calibration data D, let Θ have the stated parameter or model law and let f(Θ) denote its conditional mean response at a new input. Suppose the latent response R given Θ,D has mean f(Θ) and variance v_phys(Θ). Let a new observation be Y=R+ε with E[ε|R,Θ,D]=0 and conditional observation variance v_meas(R,Θ). Assume all displayed second moments are finite.
First condition on Θ,D. The centered measurement error leaves E[Y|Θ,D]=f(Θ). By total variance over R, its conditional variance is v_phys(Θ)+E[v_meas(R,Θ)|Θ,D]. This calculation keeps the model law, stochastic variation of the physical outcome and the observation process as distinct sources.
Taking expectations and variances over Θ gives E[Y|D]=E[f(Θ)|D] and Var(Y|D)=Var(f(Θ)|D)+E[v_phys(Θ)+v_meas(R,Θ)|D]. The three components all have squared output units. If measurement and latent errors fail the centering premise, their conditional covariance or systematic bias enters the calculation.
For two equally likely states with means −a and a and conditional variance σ² in each, the mixture has mean zero and variance a²+σ². Its shape can still differ sharply from a single normal law having that variance. A predictive quantile requires the mixture distribution or a valid inequality under its assumptions, beyond quoting its mean and variance. Related reading: [Normal likelihood and precision weighting](https://openlearninglibrary.mit.edu/asset-v1%3AMITx%2B18.05r_10%2B2022_Summer%2Btype%40asset%2Bblock/pdf_mit18_05_s22_1805-statistics.pdf), [A future measurement and an estimated mean](https://itl.nist.gov/div898/handbook/pmd/section5/pmd512.htm). Uncertainty about a parameter and randomness of a new reading are distinct. The lesson derives total conditional variance for a general mixture without requiring a normal distribution for its shape.
Allocate a fixed budget to a contrast
Plan to compare two means using independent readings with known standard deviations σ₁,σ₂ and positive per-reading costs c₁,c₂. For counts n₁,n₂>0 the variance of the difference is V=σ₁²/n₁+σ₂²/n₂. Use the continuous relaxation c₁n₁+c₂n₂=C for a positive budget C.
Cauchy–Schwarz gives (σ₁√c₁+σ₂√c₂)²≤(σ₁²/n₁+σ₂²/n₂)(c₁n₁+c₂n₂), by pairing σ_i/√n_i with √(c_i n_i). Equality requires these two vectors to be proportional. For positive σ_i this gives n_i proportional to σ_i/√c_i, and the budget determines n_i=C σ_i/[√c_i(σ₁√c₁+σ₂√c₂)].
The minimum relaxed variance is (σ₁√c₁+σ₂√c₂)²/C if the resulting counts are allowed. The total cost of each arm is proportional to its standard deviation times the square root of its cost. Two extra readings at the same physical condition can have less value than this formula suggests if they are correlated.
An actual mean comparison needs observations in both arms and positive integer counts. A zero variance arm under the model needs only its minimum feasible count; retaining more of its readings cannot lower V. For positive variances an active minimum count alters the constrained relaxation. Among feasible integer counts evaluate the stated variance rather than blindly rounding and exceeding the budget. Related reading: [Weighting observations of differing precision](https://www.itl.nist.gov/div898/handbook/pmd/section4/pmd452.htm), [Designing a model assessment for a stated target](https://www.siam.org/media/wwjd5o2k/gaimme-2nd-ed-final-online-viewing-color.pdf). The design depends on the precision sought and experimental unit cost. The allocation limit follows from the original Cauchy–Schwarz argument and preserves feasible integer and zero-variance branches.
Choose input levels that distinguish sensitivities
Let y_i=β₀+β₁x_i+ε_i for fixed x_i in [a,b] with a<b, independent centered error and common variance σ²>0. Let A have rows (1,x_i). Its Gram determinant is n∑x_i²−(∑x_i)²=n²[(∑x_i²/n)−x̄²]. Whitening by σ multiplies both design columns by 1/σ and divides this determinant by σ⁴.
Let X be a uniformly chosen member of the design values. Since (X−a)(b−X)≥0 pointwise, E[X²]≤(a+b)E[X]−ab. Therefore Var(X)≤(b−x̄)(x̄−a)≤(b−a)²/4, the last bound attained at x̄=(a+b)/2. The Gram determinant is at most n²(b−a)²/4.
For equality in the first inequality, every design point must be at an endpoint. Equality in the second requires the midpoint average. If n is even and each endpoint is allowed, allocating half the observations to each attains both inequalities. Then slope and intercept are identifiable since the determinant is positive. Repeating only one input gives a determinant of zero even with arbitrarily many readings.
The conclusion uses the two-column linear mean, homoscedastic independent errors and the full admissible input interval. Cost varying by condition, repeated-unit correlations or extra curvature terms change the design objective and its optimum. An endpoint design for identifying a line still needs interior observations if the scientific task is to test whether the line represents the system there. Related reading: [Least-squares derivatives and local step design](https://personal.math.vt.edu/sturler/LectureNotes/Optimization-05_QuasiLSConstrained.pdf#page=20), [Designing a model assessment for a stated target](https://www.siam.org/media/wwjd5o2k/gaimme-2nd-ed-final-online-viewing-color.pdf). Rank and the distribution of controlled inputs affect which coefficients can be separated. The exact determinant bound and endpoint design are proved for the stipulated two-column model.
Separate selection, fitting and final evaluation
Fix a training set producing K candidate predictors. Conditional on this training set, write R_j for the population risk of candidate j, and let R̂_j be an evaluation estimate with E[R̂_j|training]=R_j. The estimates may be dependent across candidates because they use the same evaluation units.
Choose ĵ with the smallest R̂_j and report R̂_ĵ=min_j R̂_j. For each j, the minimum is at most R̂_j pointwise, so E[R̂_ĵ|training]≤min_j R_j. Also R_ĵ≥min_j R_j pointwise. Hence E[R̂_ĵ−R_ĵ|training]≤0. Equality can occur, but the same data used to choose the winner are not generally an unbiased evaluation of it.
Let a new evaluation set be independent of both training and selection, and sampled at the deployment unit under the target law. Conditional on every earlier decision, the selected predictor is fixed. The new sample mean test loss then has conditional expectation R_ĵ. Its uncertainty is measured using the evaluation units, including clusters when those are the independent objects.
A validation split for selecting hyperparameters is part of the fitting procedure. It can assess options but its best reported score has the selection issue above. If a final evaluation also feeds model revisions, it becomes part of selection and requires a separately justified assessment for the new predictor. Holding out rows within a correlated unit may fail the required independence even with disjoint file identifiers. Related reading: [Validation design for new groups and predictor ranges](https://www.biom.uni-freiburg.de/mitarbeiter/dormann/roberts-et-al-2017-ecography.pdf/at_download/file), [Importance weighting under a changed input distribution](https://jmlr.org/papers/volume8/sugiyama07a/sugiyama07a.pdf). Choosing or tuning a predictor changes its evidence requirements. The lesson derives selection optimism and a conditional unbiased result for a fresh independently sampled evaluation.
Interpret residuals against the data that generated them
For a fixed predictor m(x), suppose Y=f_phys(x)+ε with E[ε|x]=0. The residual Y−m(x) has conditional mean f_phys(x)−m(x). Under a correct physical-mean predictor, it is centered at every x under the measurement model. A pooled mean can vanish when positive and negative conditional errors cancel.
For a fixed full-column-rank design X with correct linear mean Xβ and error covariance σ²I, write P=X(XᵀX)⁻¹Xᵀ. The training residual vector is e=(I−P)y=(I−P)ε. Its covariance is σ²(I−P) given X, because I−P is a symmetric idempotent matrix. The i-th residual has variance σ²(1−P_ii), and residuals can be correlated despite independent errors.
The training condition Xᵀe=0 follows mechanically from projection. If the design includes a constant, the fitted residuals sum to zero by this identity under any observed y. This provides no test of whether a missing mechanism affects fresh responses. Even normal independent observation errors produce shaped in-sample residual variability through the projection.
Residual patterns against time, group, controlled input, fitted scale or held-out conditions can reveal a relevant discrepancy. An interpretation must use its actual sample unit, model choices and measurement assumptions. Passing one mean or covariance check does not establish the governing mechanism, and statistical comparison with the fit may require an appropriate residual diagnostic distribution. Related reading: [Ridge estimation and its bias–variance calculation](https://homepages.math.uic.edu/~lreyzin/papers/ridge.pdf), [Validation against relevant observed conditions](https://standards.nasa.gov/sites/default/files/standards/NASA/B/1/NASA-STD-7009B-Final-3-5-2024.pdf). The original linear predictor gives an orthogonal-projection residual, while validation compares a fixed prediction with actual observations. The covariance and pooled cancellation examples come from the lesson’s own models.
Test event forecasts with a proper squared score
At a stated input let Y be a Bernoulli event with conditional probability p, and let q in [0,1] be the forecast. The Brier loss is (Y−q)². Its expected conditional value is p(1−q)²+(1−p)q²=p(1−p)+(q−p)², using the two possible outcomes.
The nonnegative squared difference is zero only at q=p. Thus the score is strictly proper for the declared conditional probability, including the endpoint forecasts in the Brier convention. The first term is conditional variability present even for a correct forecast. Changing the target event or observation coding changes the scientific quantity being scored.
If a predictor issues the population average p̄=E p at every input, it is marginally calibrated. The difference between its expected Brier loss and the forecast p(X) is E[(p(X)−p̄)²]=Var(p(X)). Distinct conditional event rates can therefore support better resolution than a single calibrated constant.
For a finite table, compare empirical event frequency and average predicted probability within predeclared bins or physically meaningful groups, together with uncertainty based on the independent units. In a small group exact agreement or disagreement can arise by chance. Agreement of the pooled event rate with the average forecast can conceal poor conditional predictions in opposing groups. Related reading: [Proper squared and logarithmic probability scores](https://sites.stat.washington.edu/raftery/Research/PDF/Gneiting2007jasa.pdf), [Validation design for new groups and predictor ranges](https://www.biom.uni-freiburg.de/mitarbeiter/dormann/roberts-et-al-2017-ecography.pdf/at_download/file). The Brier loss uses the binary event probability and finite stated units. The lesson derives properness, resolution and the distinction between finite subgroup reliability and the population property.
Use log scores without concealing impossible events
On a finite outcome set let p_j be the true probabilities and q_j the proposed forecast probabilities, both summing to one. The log loss for outcome j is −log q_j. If p_j>0 and q_j=0 for any j, the expected loss is infinite. Terms with p_j=0 contribute zero to the expectation even if q_j is also zero.
When q is positive on the support of p, subtract the expected loss obtained by using p. The gap is ∑_{p_j>0}p_j log(p_j/q_j). The inequality log z≤z−1 for z>0 follows by differentiating z−1−log z and minimizing at one. Apply it to z=q_j/p_j to bound the gap below by ∑_{p_j>0}(p_j−q_j)=1−∑_{p_j>0}q_j≥0.
Equality in the bound and the log inequality requires q_j=p_j for each positive p_j, and therefore q has no remaining mass outside that support. Thus the correct probability vector uniquely minimizes expected log loss under the actual outcome partition. Small putative probabilities for events that occur can carry a large finite penalty.
The Brier score measures a squared difference between a probability and the realized binary event. Log loss is minus the natural logarithm of the probability actually assigned to the observed outcome. Its exact extension at zero is infinity, so a finite average cannot hide that event.
| Quantity | Exact result |
|---|---|
| Assigned probabilities for realized outcomes | [1/2, 3/4, 3/4] |
| Brier scores | [1/4, 1/16, 1/16] |
| Mean Brier score | 1/8 |
| Log losses (natural logarithm) | −log(1/2) / −log(3/4) / −log(3/4) |
| Mean log loss | −log(9/32)/3 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| p | ["1/2","3/4","1/4"] |
| y | [0,1,0] |
If a predeclared numerical rule raises small probabilities and then normalizes the vector, evaluate the resulting normalized forecast. A required minimum probability must be imposed on the final forecast values. Post-outcome clipping alters the reported scoring rule and can conceal poor tail forecasts. A predictive score on independent units can compare probabilistic predictions, but it does not identify the physical mechanism behind two models with the same forecast probabilities. Related reading: [Proper squared and logarithmic probability scores](https://sites.stat.washington.edu/raftery/Research/PDF/Gneiting2007jasa.pdf). A logarithmic score becomes negative log loss under the lesson’s orientation. The expectation is under the true outcome law and strict propriety and zero-probability limits are proved directly.
Check a predictive distribution with a randomized rank
Let F be the predictive CDF at a fixed set of conditioning data and suppose a future Y actually has that CDF. For an independent V uniform on (0,1), define U=F(Y−)+V[F(Y)−F(Y−)]. This uses uniform mass across the probability interval of each atom and the usual F(Y) at continuity points.
To prove uniformity, let W be uniform on (0,1) and set Y*=inf{y:F(y)≥W}. This quantile has CDF F by monotonicity and right continuity. It obeys F(Y*−)≤W≤F(Y*) almost surely. Conditional on an atom Y*=y with positive mass, the W values giving that outcome form the interval from F(y−) to F(y) up to endpoints of zero uniform measure, so the conditional W is uniform on that interval.
On the complement of the atoms, the bounding endpoints coincide and W=F(Y*) almost surely. Thus the constructed (Y,U) restores the same conditional rank law given Y as (Y*,W), atom by atom and on the nonatomic part. Therefore U is uniform. The proof holds conditional on the forecast information whenever the conditional predictive CDF is correct.
For a pooled diagnostic take two equally likely groups and a forecast uniform on (0,1) for both. Suppose the actual conditional outcomes are uniform on (0,1/2) in one group and on (1/2,1) in the other. Pooling gives the forecast CDF exactly, so the ranks look uniform overall. Each group separately is wrong, requiring conditional checks where the scientific target distinguishes them. Related reading: [Randomizing ranks at a point mass](https://gksmyth.github.io/pubs/residual.pdf), [Validation design for new groups and predictor ranges](https://www.biom.uni-freiburg.de/mitarbeiter/dormann/roberts-et-al-2017-ecography.pdf/at_download/file). Probability-scale randomization at a jump restores the conditional rank. The lesson proves its general uniform law and uses two groups to show what the pooled rank cannot certify.
Construct an interval for a new noisy reading
Let Y₁,…,Y_n be independent N(μ,σ²) readings, with n≥2 and σ²>0. The sample average Ȳ is normal with variance σ²/n. In an orthonormal coordinate system of the data vector, the normalized constant vector gives the average coordinate and its orthogonal complement gives the residual vector. Under the spherical normal law these parts are independent.
With s²=∑(Y_i−Ȳ)²/(n−1), the residual coordinates prove (n−1)s²/σ² is chi-square with n−1 degrees of freedom. The statistic (Ȳ−μ)/(s/√n) consequently has a t-distribution with those degrees of freedom. Using its two-sided critical value q=t_{n−1,1−α/2} gives the confidence interval Ȳ±q s/√n for μ.
For an independent Y_new with the same law, Y_new−Ȳ is centered normal with variance σ²(1+1/n) and independent of s. The analogous t-pivot yields Ȳ±q s√(1+1/n) as a repeated-experiment prediction interval for the new reading. Independence from s follows because Y_new is independent of the whole calibration sample and Ȳ is independent of s.
The prediction interval includes fresh observation variability, while the mean interval contracts on the scale 1/√n. Both have output units and their exact coverage uses the stated normal, independent, common-variance model. A new instrument, dependent sampling, distribution shift or additional selection changes the premises, so its residual spread alone cannot justify the same critical value. Related reading: [A future measurement and an estimated mean](https://itl.nist.gov/div898/handbook/pmd/section5/pmd512.htm). A fresh noisy reading adds variability to the uncertain mean. The lesson proves both exact t pivots for independent normal readings, with the common residual degrees of freedom.
Validate on the deployment unit
Define one validation unit to be a whole new group G, including all its measurements and its fixed aggregation rule. Let g be a predictor trained and frozen independently of evaluation groups G₁,…,G_n, which are independent draws from the deployment group law. Write L(g,G) for the group-level loss, assumed to have finite conditional variance.
Conditional on all training information, the random variables L(g,G_i) are iid with mean R(g)=E[L(g,G)|g]. Their average is therefore conditionally unbiased and has variance Var(L(g,G)|g)/n. This weights groups equally. Weighting every recorded row equally instead targets a group-size-dependent quantity if groups differ in size.
For a simple equal-size group with m row losses of common variance s² and pair covariance c, the variance of its average is s²/m+(m−1)c/m. Across independent groups, the variance divides by n, not by n m again. Applying an independent-row analysis drops the within-group covariance term and can greatly understate uncertainty.
Consider a group with a fair binary label shared by every row. A predictor that memorizes labels of observed groups can achieve zero loss on their held-out rows. For a fresh independent group with an unobserved label, any stored-label rule with no predictive covariates has expected error one half. The validation split must reflect whether future predictions concern known groups, new groups or a new region. Related reading: [Validation design for new groups and predictor ranges](https://www.biom.uni-freiburg.de/mitarbeiter/dormann/roberts-et-al-2017-ecography.pdf/at_download/file). The proper holdout depends on whether future cases share an existing group. The group-risk expectation, within-unit covariance and stored-label counterexample are independent derivations.
Qualify several predeclared checks with finite samples
Fix K≥1 scoring functions before evaluating and let X₁,…,X_n be independent draws from the declared population with n>0. Each function j has a loss ℓ_j(X) in [0,1] and risk R_j. Predictors can have been fitted earlier, provided that we condition on their fixed state and evaluation units remain independent with the stated law.
The bounded-mean inequality gives P(R_j−R̂_j≥t)≤exp(−2nt²) for each function j, where R̂_j is its sample mean. The union bound gives P(any R_j exceeds its estimate by at least t)≤K exp(−2nt²). It does not require the K losses on one unit to be independent across scores.
Take t=√[log(K/α)/(2n)] for 0<α<1. With probability at least 1−α all true risks are at most their individual upper limits min(1,R̂_j+t). For fixed loss range [a,b] with b>a, scale this margin by b−a. Constant losses can be evaluated exactly. For both upper and lower simultaneous bounds the union needs both directions with their own allocated probability.
Reporting which of these fixed simultaneous comparisons passes can use that joint guarantee. Fitting a new candidate, changing the grouping after inspecting these losses or treating correlated rows as independent units changes the argument. An unbounded score also needs a different suitable concentration method or a predeclared bounded scoring target. Related reading: [One-sided concentration for independent bounded variables](https://www.cs.rpi.edu/academics/courses/spring06/random/hoefding.pdf). Independent bounded losses give a one-sided fixed-sample concentration bound. The lesson applies it to negated loss and derives the union control for predeclared comparisons sharing evaluation units.
Transfer a loss estimate only under a supported shift
Let P be the evaluation input law and Q the deployment input law. Assume the conditional law of the outcome given a declared input x is identical in the two populations and that the predictor and loss are already fixed. Write g(x)=E[ℓ(x,Y)|x] for that common conditional mean loss.
If Q is absolutely continuous with respect to P and w=dQ/dP, then the deployment risk is ∫g dQ=∫wg dP=E_P[w(X)ℓ(X,Y)] when the loss is integrable under Q. Thus with known weights the independent evaluation average of weighted losses is unbiased for that declared target. Its variance needs E_P[w²ℓ²] finite, and the simple bounded-mean result needs a bound on weighted loss, not just on the raw loss.
Suppose an input set A has P(A)=0 but Q(A)>0. For example use binary outcomes, a fixed prediction of zero and its zero-one error loss. Construct two conditional outcome laws agreeing everywhere evaluation can observe. On A, let the outcome be zero in the first law and one in the second. Both yield identical evaluation law. Their target risks differ by Q(A), so the missing contribution cannot be identified without more assumptions or measurements.
If conditional loss is invariant across environments, source weighting multiplies each conditional loss by the target-to-source mass ratio. A positive target mass with zero source mass violates this support condition. A separately specified target-only loss is extra information, not an estimated weight.
| Quantity | Exact result |
|---|---|
| Target / source weights | 1/2 / 3/2 |
| Covered source-weighted contribution | 3/2 |
| Target-only contribution from supplied oracle loss | 0 |
| Full target risk using all supplied losses | 3/2 |
| Source-only recovery | All target mass covered. |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| source | ["1/2","1/2"] |
| target | ["1/4","3/4"] |
| loss | [0,2] |
Absolute continuity alone can still permit weights so variable that a small sample has poor precision. Prediction in a new covariate range and changes to the conditional relationship require actual scientific evidence. A new intervention that changes the response mechanism is not justified by this covariate-shift calculation. Related reading: [Importance weighting under a changed input distribution](https://jmlr.org/papers/volume8/sugiyama07a/sugiyama07a.pdf), [Validation design for new groups and predictor ranges](https://www.biom.uni-freiburg.de/mitarbeiter/dormann/roberts-et-al-2017-ecography.pdf/at_download/file). The common conditional output law and target input support determine when weighting can transport risk. The original counterexample and weighted-variance condition delimit what can be inferred.
Combine verification, model and measurement error budgets
At a declared input x let y_num be the computed output of a solver, y_eq the exact output of its equations, y_phys the target physical value, and y_obs a reading in the same units. Assume explicit local guarantees |y_num−y_eq|≤e_num, |y_eq−y_phys|≤e_model and |y_obs−y_phys|≤e_obs. Bounds may depend on x and should address the same statistic and conditions.
The triangle inequality gives |y_num−y_phys|≤e_num+e_model and |y_num−y_obs|≤e_num+e_model+e_obs. The signs can align, so a smaller general worst-case bound requires extra information about their joint behavior. Agreement with a known exact solution supplies evidence about the numerical error under those conditions.
If only a measured gap d=|y_num−y_obs| is available, then |y_eq−y_phys|≤d+e_num+e_obs. The reverse triangle inequality gives the lower bound max(0,d−e_num−e_obs). Thus even exact agreement on one reading leaves uncertainty of the measurement and numerical discrepancy, and a large gap may rule out a small equation discrepancy if the other error bounds are tight.
Verification tests whether the computation represents the stated equations through exact cases, tolerances or refinement. Validation asks whether predictions from those equations meet the physical target within declared limits. If the component bounds are statistical rather than deterministic, combine them only with justified joint coverage, for example by allocating failure probabilities to all component events. Related reading: [Numerical verification against a fixed equation](https://www.grc.nasa.gov/www/wind/valid/tutorial/verassess.html), [Validation against relevant observed conditions](https://standards.nasa.gov/sites/default/files/standards/NASA/B/1/NASA-STD-7009B-Final-3-5-2024.pdf), [Measurement models, discrepancy and propagated uncertainty](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337). Verification and validation address distinct comparisons with the equations and with observed conditions. The triangle and reverse-triangle bounds here use the same units and local target.
Use an uncertainty bound for an acceptance decision
Let R be a predeclared population risk and τ the largest scientifically acceptable value. If a valid one-sided procedure gives P(R≤U)≥1−α under the sampling and model premises, accept the specified target only when U≤τ. On the event that the bound covers R, this rule guarantees that every such acceptance has R≤τ.
For a fixed underlying R>τ, the chance of an erroneous acceptance is at most α because U≤τ<R implies the upper bound did not cover. Conversely an observed estimate below τ, or a test that cannot demonstrate R>τ, does not supply this protection. An upper bound can be too wide because data or precision are insufficient.
If an interval [L,U] covers jointly with the desired probability, one can also reject the tolerance when L>τ. If L≤τ<U, both an acceptable and an unacceptable value remain consistent with that interval. For a bound on absolute discrepancy derived from a signed interval [a,b], the upper limit for |δ| is max(|a|,|b|); the lower limit is zero when the interval meets zero and otherwise min(|a|,|b|).
The threshold must identify the target outcome and units in advance. A lower numeric loss is relevant only under the intended population and observation law. A finite acceptance criterion cannot separately approve hidden mechanisms, unmeasured outputs or other populations, and a check that fails because its uncertainty is wide does not by itself show a large physical error. Related reading: [One-sided concentration for independent bounded variables](https://www.cs.rpi.edu/academics/courses/spring06/random/hoefding.pdf), [Validation against relevant observed conditions](https://standards.nasa.gov/sites/default/files/standards/NASA/B/1/NASA-STD-7009B-Final-3-5-2024.pdf). A predeclared target tolerance and a valid upper interval control false qualification. The lesson proves the accept, reject and inconclusive branches from their appropriate coverage conditions.
Plan a new calibration and validation experiment
Consider a fixed-volume, well-mixed test vessel at a specified operating condition. The model for the concentration of an inert tracer after stopping feed is C(t)=A exp(−kt) for A>0 and k≥0. Declare a transfer target consisting of fresh prepared vessels at the same condition, with observations at two predeclared times in the same instrument units. Retain the assumption of common k and allow an independently measured starting amplitude as declared by the protocol.
In an exact calibration trace at t=0 and t=Δ>0, the starting value identifies A and the ratio C(Δ)/A identifies k=−log(C(Δ)/A)/Δ when 0<C(Δ)≤A. At one positive time alone, every k≥0 can be matched by A=C(t)exp(kt), so the rate is not identified. A zero or larger-than-start reading violates the finite positive decay law in the exact setup, and measurement noise requires the separate observation model.
Freeze the fitted prediction rule and test it on fresh independently prepared vessels using the intended starting-amplitude information. Define the group loss as the mean of the two absolute reading errors divided by a reference C_ref>0. Require observations and predictions to lie in [0,C_ref] as part of this toy bounded-measurement protocol, so group loss lies in [0,1]. Keep all times of one vessel together. A calibration or solver check at a matching computed trace does not supply those new experimental groups.
For n=300 independent validation vessels and one frozen predictor, a one-sided 95% bounded-loss limit is the observed mean plus √[log(20)/600]. With a declared tolerance τ=0.12, the pass boundary is an observed mean at most 0.12−√[log(20)/600], about 0.0493. Any transfer to different mixing, instrument behavior or input conditions requires its own physical scope and evidence. The absence of a feasible confidence margin is an inconclusive outcome rather than a license to use calibration data again. Related reading: [A first-order model, initial data and solution checks](https://ocw.mit.edu/courses/es-1803-differential-equations-spring-2024/mites_1803_s24_topic1.pdf), [Validation against relevant observed conditions](https://standards.nasa.gov/sites/default/files/standards/NASA/B/1/NASA-STD-7009B-Final-3-5-2024.pdf), [One-sided concentration for independent bounded variables](https://www.cs.rpi.edu/academics/courses/spring06/random/hoefding.pdf). The stated first-order physical model supplies a calibrated two-measurement parameter law. Independent new group observations, bounded losses and the fixed transfer domain are needed before the original numerical tolerance can qualify it.
Compare exact information, identifiability, uncertainty, interaction, shift and probability-scoring checks. The cases show when a requested estimate is unavailable.
Correlated measurement errors change the value of information
Two positively correlated equally precise observations
Invert the positive-definite covariance. Normalize Σ⁻¹1 to sum to one. This minimizes variance among linear unbiased estimates of the common mean, so the inverse total information equals its variance.
| Quantity | Exact result |
|---|---|
| Covariance determinant | 3/4 |
| Information 1ᵀΣ⁻¹1 | 4/3 |
| GLS weights | (1/2, 1/2) |
| GLS estimate | 2 |
| GLS variance | 3/4 |
| Arithmetic mean variance | 3/4 |
| Arithmetic mean estimate | 2 |
| Estimate and variance comparison | GLS: 2 and 3/4. Arithmetic mean: 2 and 3/4. |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| y | [1,3] |
| v1 | 1 |
| v2 | 1 |
| c | 1/2 |
Different perturbations can produce the same modeled changes
Different directions have the same effect
The linear response is the matrix applied to a parameter perturbation. Full column rank gives local distinction for this linear declaration. A small nonzero response can still be difficult to measure, but it is not a kernel direction.
| Quantity | Exact result |
|---|---|
| Determinant | 0 |
| Rank | 1 |
| Null direction | (−1, 1) |
| Image Ju | [1, 2] |
| Image Jv | [1, 2] |
| Exact output difference Ju−Jv | [0, 0] |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| J | [[1,1],[2,2]] |
| u | [1,0] |
| v | [0,1] |
Estimating the mean and predicting a new observation are different tasks
A future observation adds its own noise
Under the declared sampling model the sample mean has variance σ²/n. Its estimation error is independent of the new observation noise. Adding these two sources gives the repeated-sampling prediction error, not a conditional variance given fixed observations.
| Quantity | Exact result |
|---|---|
| Fitted mean | 2 |
| Fitted-mean variance | 4/3 |
| Independent future observation noise variance | 4 |
| Prediction-error variance | 16/3 |
| Prediction / fitted-mean variance | 4 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| observed | [1,2,3] |
| variance | 4 |
An interaction is a contrast of two differences
One factor makes the other more effective
The interaction contrast has weights (+1,−1,−1,+1) in row-major order. Independent cell-estimate variances add after squaring the weights. Parallel cell-mean lines indicate zero interaction on this additive scale.
| Quantity | Exact result |
|---|---|
| Rows / columns | A levels 0,1 / B levels 0,1 |
| Effects of B at A=0 and A=1 | (2, 4) |
| Effects of A at B=0 and B=1 | (1, 3) |
| Difference in differences | 2 |
| Variance of the contrast | 4 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| means | [[1,3],[2,6]] |
| var | [[1,1],[1,1]] |
A likelihood ratio correction requires target support
Target emphasis shifts toward higher loss
If conditional loss is invariant across environments, source weighting multiplies each conditional loss by the target-to-source mass ratio. A positive target mass with zero source mass violates this support condition. A separately specified target-only loss is extra information, not an estimated weight.
| Quantity | Exact result |
|---|---|
| Target / source weights | 1/2 / 3/2 |
| Covered source-weighted contribution | 3/2 |
| Target-only contribution from supplied oracle loss | 0 |
| Full target risk using all supplied losses | 3/2 |
| Source-only recovery | All target mass covered. |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| source | ["1/2","1/2"] |
| target | ["1/4","3/4"] |
| loss | [0,2] |
A log score treats an impossible realized event as infinite loss
All realized outcomes have positive assigned probability
The Brier score measures a squared difference between a probability and the realized binary event. Log loss is minus the natural logarithm of the probability actually assigned to the observed outcome. Its exact extension at zero is infinity, so a finite average cannot hide that event.
| Quantity | Exact result |
|---|---|
| Assigned probabilities for realized outcomes | [1/2, 3/4, 3/4] |
| Brier scores | [1/4, 1/16, 1/16] |
| Mean Brier score | 1/8 |
| Log losses (natural logarithm) | −log(1/2) / −log(3/4) / −log(3/4) |
| Mean log loss | −log(9/32)/3 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| p | ["1/2","3/4","1/4"] |
| y | [0,1,0] |
Worked examples
A weighted line with known sensor precision
At x=0,1,2 observe y=1,2,5. The independent errors have variances 1, 1/2 and 1 in squared output units. Fit an intercept and slope by weighted squared error. Find the weighted residual sum and the covariance of the intercept and slope.
- The inverse observation variances give weights 1,2,1. Their total is 4, the weighted input mean is 1 and the weighted output mean is (1+2·2+5)/4=5/2. With an intercept, the fitted line passes through these two weighted means.
- The weighted centered input sum of squares is (0−1)²+(2−1)²=2. The weighted cross sum is (−1)(1−5/2)+(1)(5−5/2)=4. Thus the slope is 4/2=2 and the intercept is 5/2−2·1=1/2.
- The predictions at inputs 0,1,2 are 1/2,5/2,9/2. Observed-minus-fitted residuals are 1/2,−1/2,1/2, so their weighted squared sum is 1/4+2/4+1/4=1. This number uses the specified precisions and is dimensionless.
- The weighted information matrix XᵀWX is [[4,4],[4,6]] with determinant 8. Its inverse is [[6,−4],[−4,4]]/8, the covariance for independent centered errors with the stated known variances. The off-diagonal quantity has intercept times slope units. No additional estimated variance factor multiplies this matrix.
The slope is 2 and the intercept is 1/2. The weighted residual sum is 1. In intercept–slope order the covariance is [[3/4,−1/2],[−1/2,1/2]] in the corresponding squared and cross units.
Four readings from one experimental unit
Four centered equal-variance measurement errors have standard deviation 3 and equal pair correlation 1/4. Find the variance of the four-reading mean, its independent-reading equivalent and what changes if two entire four-reading units are independently repeated.
- The variance of an individual error is σ²=9, and a pair covariance is σ²ρ=9/4. There are four diagonal variances and twelve ordered off-diagonal covariances in the sum variance. Both contribute before division by 4².
- The variance is therefore [4·9+12·9/4]/16=(36+27)/16=63/16. Four independent readings would instead give 9/4, because the off-diagonal terms would vanish.
- Set 9/m_eff=63/16 to find m_eff=144/63=16/7. This comparison concerns the variance of the mean. It does not turn the correlated readings into a noninteger number of real units.
- If the group means are independent and measure the same target, averaging two of them divides 63/16 by two, giving 63/32. Relative to individual-observation variance 9, this corresponds to 32/7. Independence is needed across complete units, even though readings within one unit remain correlated.
The variance is 63/16 squared output units and the independent-reading equivalent is 16/7. With two independent four-reading units their combined mean has variance 63/32 and equivalent size 32/7.
Identify a positive decay rate at two times
A noiseless response A exp(−kt) has values 12 and 3 at t=0 and t=2 minutes. Find A, k and the prediction at 4 minutes. Derive the local sensitivity of k to each measured input and identify a boundary where the formula cannot be used.
- At t=0 the exponential is one, so the exact initial reading gives A=12 in output units. The ratio at two minutes is 3/12=1/4, so exp(−2k)=1/4 in minute-based coordinates and k=log(4)/2=log 2 per minute.
- Substituting t=4 gives 12 exp(−4 log 2)=12/16=3/4. The four-minute value is also the result of multiplying the two-minute value by the same factor 1/4 under the stipulated common constant rate.
- For exact positive y₀,y₂ write k=(log y₀−log y₂)/Δ with Δ=2 minutes, interpreting the difference as the log of the unitless ratio. Differentiate to obtain ∂k/∂y₀=1/(Δ y₀) and ∂k/∂y₂=−1/(Δ y₂), the stated values.
- A nonpositive reading cannot be used for this finite positive exponential formula. The nonnegative decay premise also needs y₂≤y₀; equality gives k=0. These derivatives are local error sensitivities where both values are positive and do not provide an error bar without a joint reading-error model.
A=12, k=log 2 per minute, and the value at 4 minutes is 3/4. The local derivatives of k in the initial and later values are 1/24 and −1/6 per minute per output unit.
Take one nonlinear least-squares step
For residuals r₁(θ)=θ²−4 and r₂(θ)=θ−3, begin at θ=1. Derive the Gauss–Newton direction, compare exact and approximate curvature of half the residual sum there, and evaluate whether this particular unit step reduces the objective.
- At θ=1 the residual vector is (−3,−2) and its derivative column is (2,1). Hence the gradient of half the squared sum is 2(−3)+1(−2)=−8, and JᵀJ=2²+1²=5. The linearized normal equation is 5d=8.
- The exact curvature adds r₁ r₁''+r₂ r₂''=−3·2+0=−6 to 5, giving −1. The Gauss–Newton direction d=8/5 still has a negative directional derivative at the start because the gradient is −8.
- The new parameter for a unit step is 1+8/5=13/5. There r₁=169/25−100/25=69/25 and r₂=13/5−15/5=−2/5. The new objective is [(69/25)²+(−2/5)²]/2=4861/1250.
- The old objective is (9+4)/2=13/2, which equals 8125/1250. This step is an actual decrease for the stated residuals. It supplies no guarantee that a full step from another starting point or an iteration reaching a stationary parameter gives a global minimum.
The Gauss–Newton direction is 8/5. Its curvature approximation is 5 and the exact curvature at θ=1 is −1. The unit step to 13/5 decreases the objective from 13/2 to 4861/1250.
Profile the slope in a two-parameter fit
With unit known variance and residuals β₀+β₁−4, β₁−2 and β₀−1, obtain the least-squares profile in β₁, the minimizing β₁ and β₀, and the variance of the fitted slope under independent centered errors.
- For fixed β₁ the first and third residuals are affine with slope one in β₀. Making their sum zero gives 2β₀+β₁−5=0, so β₀=(5−β₁)/2. The middle residual does not depend on β₀.
- After that substitution the first residual is (β₁−3)/2 and the third is its negative. Their squared sum is (β₁−3)²/2. Adding the middle residual squared yields the stated profile with strictly positive curvature.
- Differentiating the squared profile gives (β₁−3)+2(β₁−2)=3β₁−7. Its zero gives β₁=7/3, then β₀=(5−7/3)/2=4/3. The three residuals become −1/3,1/3,1/3 and sum of squares is 1/3.
- The slope column a=(1,1,0) is profiled against the intercept column (1,0,1). The squared norm after orthogonal projection away from that column is aᵀa−(aᵀB)²/(BᵀB)=2−1/2=3/2. Unit known variance therefore gives inverse information 2/3, which includes the nuisance adjustment.
The squared residual profile is (β₁−3)²/2+(β₁−2)². Its minimizer is β₁=7/3 and β₀=4/3. The fitted slope variance is 2/3 in squared slope units.
Fit a common mean and predict one more reading
A physical mean θ has prior normal mean 1 and variance 4. Conditional independent readings 2, 4 and 6 each have variance 4 and normal mean θ. Find the posterior mean and variance, and the predictive mean and variance for an independent same-model reading.
- The prior variance and each known error variance are all 4, so each contributes precision 1/4. Conditional independence gives the likelihood product. Adding the three data precisions to the prior precision makes total precision one in the squared-unit convention.
- The prior-weighted data sum is (1+2+4+6)/4=13/4. Multiplying by posterior variance 1 gives posterior mean 13/4. Completing the square in θ gives the full normal law with variance one.
- A fresh reading is θ plus an independent normal error with variance four. Its conditional mean given θ is θ and conditional variance is four. Averaging conditional means and using total variance gives predictive mean 13/4 and variance 1+4=5.
- Normality of the predictive reading follows from addition of independent normal variables under this model. The variance one is uncertainty about the common latent mean and the additional four comes from the new measurement. A systematic discrepancy or repeated-unit correlation would affect this prediction.
The posterior is normal with mean 13/4 and variance 1. One further reading has a normal predictive law with mean 13/4 and variance 5.
Differentiate a decay trace and its crossing time
For x(t)=8 exp(−kt) and k=1/2 per minute, find the fixed-time derivative with respect to k at t=2 minutes. Find the time when x reaches 2 and its derivative with respect to k. State the crossing premise.
- At fixed t, differentiate x(t)=8 exp(−kt) to obtain x_k=−t·8 exp(−kt). The product kt is dimensionless. At t=2 and k=1/2 the factor is exp(−1), giving −16/e and units of output per inverse minute.
- The threshold equation exp(−kt)=2/8=1/4 gives kt=log 4 and t_*=log 4/k. At k=1/2 per minute this is 2 log 4 minutes. Since k>0 it is the only crossing of this positive threshold below the starting value.
- Differentiating t_* gives −log 4/k², hence −4 log 4 minutes squared. The same result follows from −x_k/x_t at the crossing, since x_k=−t_*x and x_t=−kx, giving −t_*/k.
- At the crossing x=2 and x_t=−2k is nonzero for positive k. That transversality justifies a regular nearby event-time derivative. At k=0 the concentration remains at 8 and this crossing ceases to occur, so the formula cannot be continued to a finite crossing time there.
At two minutes, ∂x/∂k=−16/e in output units times minutes. The crossing is at 2 log 4 minutes, with derivative −4 log 4 in minutes squared.
Measure interaction in a two-factor experiment
Let X and Y be independent and each equal to either −1 or 1 with probability 1/2. For f=2+2X+Y+2XY, calculate the mean, variance, each first-order and total-effect variance fraction, and the four-setting interaction contrast.
- Each of X,Y and XY has mean zero and variance one under independent fair signs. The three are pairwise uncorrelated: for example E[X(XY)]=E[Y]=0. Hence the centered terms 2X,Y,2XY contribute variances 4,1,4, summing to 9.
- Conditioning on X retains 2+2X and conditioning on Y retains 2+Y. This gives fractions 4/9 and 1/9. The residual interaction variance 4 contributes to both total effects, so T_X=(4+4)/9 and T_Y=(1+4)/9.
- Evaluate the four points in order (++), (−+), (+−), (−−). Their outputs are 7,−1,1,1. Thus the controlled contrast f(++)−f(−+)−f(+−)+f(−−)=7−(−1)−1+1=8.
- The contrast measures the total change in slope across this two-level setting and has output units. The variance fractions are dimensionless and depend on the declared independent sign law. An observational grouping with correlated signs would change the conditional expectations and the decomposition.
The mean is 2 and the variance is 9. First-order fractions are 4/9 and 1/9, total-effect fractions are 8/9 and 5/9, and the four-setting contrast is 8.
Propagate correlated input noise through a product
Let U and V have means 3 and 5, variances 0.04 and 0.16, and covariance −0.04. For Y=UV, find its exact mean and the first-order variance from linearizing at the two means. Compare with the variance of that linearization if covariance were zero.
- Write U=3+u and V=5+v with u,v centered. Their product is 15+5u+3v+uv. Taking expectations leaves 15+E[uv]=15−0.04=14.96, without needing a normal approximation.
- The linearized fluctuation is 5u+3v, giving variance 25·0.04+9·0.16+2·5·3·(−0.04). The contributions are 1,1.44,−1.20, so the total is 1.24 in squared product units.
- If the covariance were zero with both marginal variances held fixed, the same linearization calculation gives 1+1.44=2.44. The allowed negative covariance reduces this output variability because both derivative coefficients have the same sign.
- The exact variance of UV additionally depends on Var(uv) and its covariances with u and v. They are not determined by the supplied second moments alone. The exact mean correction and the first-order variance answer different calculations.
E[UV]=14.96. The variance of the first-order response is 1.24 under the given covariance and would be 2.44 if the covariance were zero.
Compare reliability with forecast resolution
For five distinct evaluation units with forecast 0.2, one event occurs. For five with forecast 0.8, four occur. Compute Brier scores for these forecasts and the fixed 0.5 forecast, and assess within-bin and pooled calibration on this finite table.
- At forecast 0.2, the one event costs (1−0.2)²=0.64 and each of four nonevents costs 0.2²=0.04. Their sum is 0.80, for mean 0.16 across five units.
- At forecast 0.8, the four events each cost (1−0.8)²=0.04 and the nonevent costs 0.8²=0.64. The mean is again 0.16. At 0.5 every observation costs (Y−0.5)²=0.25, giving the other forecast's mean.
- Observed event frequencies in the two original bins are 1/5 and 4/5. They exactly equal the two distinct forecasts in this table. Pooled, there are five events in ten units. Both the bin forecasts averaged over units and the constant forecast give 0.5 overall.
- The 0.5 forecast has one forecast-probability bin whose observed frequency is 0.5; its mismatch appears when checking conditional performance in the two predeclared physical groups. This illustrates resolution in the finite table, while population calibration would require uncertainty from evaluation on actual independent units.
The two-bin forecast has Brier loss 0.16 versus 0.25 for the constant forecast. Both match the pooled observed frequency. The constant forecast does not match either physical bin separately in this table.
Transfer risk to a different population mixture
A frozen predictor has conditional mean losses 0.1 and 0.4 in strata A and B. The evaluation distribution has probabilities 0.8 and 0.2, while deployment has 0.3 and 0.7. Under unchanged conditional losses derive both population risks and the weights needed for the deployment target.
- In the evaluation distribution, the average conditional loss is 0.8·0.1+0.2·0.4=0.08+0.08=0.16. This is the expectation appropriate to the original proportions.
- Deployment changes only the stratum frequencies under the premise. Its risk is 0.3·0.1+0.7·0.4=0.03+0.28=0.31. The higher-loss stratum receives greater weight.
- Compute target/evaluation weight ratios 0.3/0.8=3/8 and 0.7/0.2=7/2. Their expectation under evaluation is 0.3+0.7=1. Applying them to evaluation loss reproduces the two deployment terms exactly.
- Both target strata have positive evaluation probability. This calculation estimates a target mean if the conditional loss relationship remains unchanged. The weights also amplify uncertainty from B. Changing the mechanism or introducing an unobserved stratum requires information beyond these frequency ratios.
The evaluation-population risk is 0.16 and deployment risk is 0.31. The required importance weights in A and B are 3/8 and 7/2.
Qualify two fixed predictors with a bounded-loss test
Two fixed predictors are evaluated on the same 200 independent deployment-like units, using losses in [0,1]. One sample mean is 0.12. Use a simultaneous confidence level 95% with a union bound over both predictors. Does the upper bound for this predictor meet predeclared tolerances 0.22 and 0.20?
- Fix both predictors and losses before seeing the 200 independent units. For either predictor, Hoeffding gives failure probability at most exp(−2·200 t²) for a common upper increment t.
- The score pairs within each unit can be dependent, because the union bound is across the two risk statements. Set 2 exp(−400 t²)=0.05 to get t=√[log(40)/400], approximately 0.0960.
- Add this to the given mean 0.12. The result is about 0.2160 and lies below 0.22 but above 0.20. Equivalently the two allowed increments are 0.10 and 0.08, and the simultaneous margin lies between them.
- Under the stated bounded-loss and independent-unit premises, an upper limit at most the tolerance certifies that comparison at the simultaneous confidence level. The second tolerance remains inconclusive from this upper bound alone. The other predictor's upper limit uses its own observed mean, which has not been supplied.
The simultaneous upper limit for the stated predictor is 0.12+√[log(40)/400], about 0.2160. It meets the 0.22 criterion and does not certify the 0.20 criterion.
Try it yourself
Two same-mean readings are 10 and 19 with covariance matrix [[4,2],[2,9]]. Derive the GLS weights, common-mean estimate and its variance.
Show the answer and reasoning
The GLS weights are 7/9 and 2/9. The estimated common mean is 12 and its variance is 32/9 in squared reading units.
The covariance determinant is 4·9−2²=32>0 and its leading diagonal is positive. Its inverse is [[9,−2],[−2,4]]/32, so multiplying by the ones vector gives (7,2)ᵀ/32. The scalar information is 1ᵀΣ⁻¹1=(7+2)/32=9/32. Dividing the inverse-covariance vector by this scalar gives weights (7/9,2/9). They add to one, so the estimate of a common mean is centered under centered errors. The estimate is (7·10+2·19)/9=108/9=12. Its variance is the reciprocal information, 32/9. Direct calculation gives [49·4+4·9+2·7·2·2]/81=288/81=32/9. The known covariance requires accounting for the two shared off-diagonal entries. If one ignored their positive value and weighted by marginal inverse variances, the weights would be proportional to 1/4 and 1/9, answering a different precision calculation.
For m=5 readings with equal variance σ²>0 and common pair correlation, find the admissible interval and explain what occurs to the group mean at the lower endpoint under the exact covariance model.
Show the answer and reasoning
The interval is −1/4≤ρ≤1. At ρ=−1/4 the group mean has zero error almost surely under the exact centered model.
The correlation matrix for five readings has eigenvalue 1+4ρ on the common direction and 1−ρ on its four-dimensional orthogonal complement. A covariance cannot have a negative eigenvalue, so the two inequalities give the stated interval. This condition is also sufficient for a covariance law: take a centered vector constructed from independent standardized components in the eigenbasis, multiplying each by the square root of its nonnegative covariance eigenvalue. This allows an exactly singular endpoint. The group mean error has variance σ²(1+4ρ)/5. When ρ=−1/4 its variance is zero. The mean error is centered, so zero variance implies it is zero almost surely. Individual readings may still have positive variance because contrast directions remain random. At ρ=1 the contrast covariance vanishes instead, and all errors are equal almost surely. A covariance estimate close to the lower endpoint does not prove exact cancellation in an experiment. The effective replication size formula with a zero denominator is not a finite count.
An exact channel produces t ↦ ab exp(−kt), for positive a,b and known k. A new channel replaces a by a+δ with known δ>0. From the two values at t=0 recover a and b when possible and state which observed values are compatible.
Show the answer and reasoning
For readings v₁ and v₂, b=(v₂−v₁)/δ and a=δv₁/(v₂−v₁). The exact positive-factor model requires v₁>0 and v₂>v₁.
In the first channel the t=0 exponential is one, so v₁=ab. Its time trace with known k carries no independent information about a and b. At fixed positive v₁, pairs (s,v₁/s) all produce that same trace. The controlled second channel gives v₂=(a+δ)b at t=0. Subtracting gives v₂−v₁=δb. The known positive offset makes b uniquely determined by the observed difference. The resulting b is positive exactly when v₂>v₁. Then dividing the first product by b yields a=δv₁/(v₂−v₁), positive if v₁>0. Substituting these values back recovers both observations, and the calculation has the correct individual factor units. If these inequalities fail, the observations cannot lie on the exact two-positive-factor model. Noise can disturb both values and must be modeled separately. Sensitivity of b to the contrast scales as 1/δ, so an offset chosen only for formal rank can be too small for good precision.
For measurement y=θ³ on the real line, decide whether θ is locally and globally unique at 0. If only |y|≤ε is resolved, derive the exact corresponding interval for θ.
Show the answer and reasoning
The cube map has a unique inverse on the whole real line, including at zero. The resolved interval is −ε^(1/3)≤θ≤ε^(1/3).
For real arguments the cube is strictly increasing: if a>b, then a³−b³=(a−b)(a²+ab+b²)>0, since the parenthesis is positive unless a=b=0. The continuous map is onto the real line and every exact reading has a single preimage. Its derivative at zero is zero because H′(θ)=3θ². Thus the nonsingular-derivative sufficient condition does not apply there. Nevertheless the strict monotonicity proves both local and global uniqueness. For ε≥0, the inequality |θ³|≤ε is equivalent to |θ|³≤ε. Taking the monotone nonnegative cube root gives |θ|≤ε^(1/3), including the exact zero-resolution case ε=0. The ratio of this input error radius to ε is ε^(−2/3) for ε>0, diverging as precision improves toward zero. The inverse is continuous at zero but does not have a finite derivative there. This distinguishes identifiability from regular linear precision.
For r(θ)=θ²+1, compute the gradient and Hessian of r²/2 and the Gauss–Newton curvature at θ=0. Explain why the exact minimizer and the linearized update behave differently there.
Show the answer and reasoning
The gradient is 2θ(θ²+1) and the exact Hessian is 6θ²+2. At zero the exact curvature is 2 and the Gauss–Newton curvature is zero.
Differentiate F=(θ²+1)²/2 using r=θ²+1 and r′=2θ. Its gradient is r r′=2θ(θ²+1), and its second derivative is (r′)²+r r″=4θ²+2(θ²+1)=6θ²+2. At θ=0 the residual is one and r′=0. The Gauss–Newton term (r′)² vanishes. The entire true curvature 2 comes from r r″, so a positive residual can contain the dominant local curvature. Because θ²≥0 and r is positive, F≥1/2 with equality only at θ=0. The exact problem has a unique global minimizer. At that point the linearized residual r+r′d is identically one for every d, leaving all directions tied in the linearized least-squares step. A zero numerical update chosen for this flat surrogate may be appropriate at the minimizer, but the surrogate itself certifies no curvature. In a different example with residual r=θ²−1, exactly the same degeneracy of r′ at zero accompanies negative true curvature.
Use whitened noise covariance I, design singular values 3 and 1, and isotropic ridge penalty λ=1. Find the expectation multiplier and variance of each rotated coefficient estimate.
Show the answer and reasoning
The expectation multipliers are 9/10 and 1/2. The rotated estimates have variances 9/100 and 1/4, with zero covariance.
In a right singular direction of length s, the corresponding left-coordinate measurement is z_s=sβ_s+η_s, with centered noise variance one after whitening. The scalar ridge criterion is (z_s−s b)²+b². Minimizing in b gives (s²+1)b=s z_s, so β̂_s=s²β_s/(s²+1)+sη_s/(s²+1). Its variance is s²/(s²+1)² because only the centered error contributes. At s=3 these give expectation multiplier 9/10 and variance 9/100. At s=1 they give 1/2 and 1/4. The two rotated errors have covariance zero by the identity error covariance and orthogonal left singular vectors. Normality is unnecessary for those statements. The weak direction has more expectation shrinkage even though it may still contribute substantially to prediction variance. Bias and variance need to be assessed for the actual contrast and unit-scaled penalty. A zero singular value would give an estimate of zero entirely because of the penalty.
For θ uniform on [1,4] in its declared physical units, let u=log(θ/1) using the positive reference quantity of one unit. Derive the u density and the probability that θ≤2 in both coordinates. Compare constant density in θ with density variation in u.
Show the answer and reasoning
The density is exp(u)/3 on [0,log 4] and zero outside. The probability of θ≤2 is 1/3 under either representation.
In the original displayed units θ has constant density 1/3 on the interval of length three. The physical reference quantity of one unit makes θ divided by that reference dimensionless before taking its logarithm. In the transformed numeric coordinates θ=exp(u), so the Jacobian is exp(u). Multiplying 1/3 by it gives the claimed density on [0,log 4]. Its integral is [exp(u)/3] evaluated at the endpoints, equal to one. The original probability of θ≤2 is the length 2−1 divided by 4−1, which is 1/3. In u it is the integral of exp(u)/3 from 0 to log 2, also (2−1)/3. Equal-length intervals in u represent multiplicative rather than additive intervals in θ. The same prior can be uniform in one coordinate and increasing in the other. Giving u a uniform density instead would define a distinct physical prior.
A normal modeled reading with known standard deviation s>0 is observed exactly below L and reported as L for every value at least L. For exact observations y₁,y₂<L and one clipped report, write the independent likelihood as a function of mean μ and describe its atom.
Show the answer and reasoning
For the two exact reports and one clipped flag, L(μ)=φ((y₁−μ)/s)φ((y₂−μ)/s)[1−Φ((L−μ)/s)]/s², with an atom at L of the indicated tail probability.
Write the latent normal reading Y with standard deviation s and mean μ. A report below L is the exact sample, so its likelihood density equals the underlying normal density φ((y−μ)/s)/s. A report at L now records Y≥L. By the continuous normal model its mass is 1−Φ((L−μ)/s). It is a probability, while an exact observation below L contributes inverse-output-unit density. Conditional independence of the three instrument draws allows multiplying the two density terms and the tail probability to get the stated likelihood. A latent normal reading exactly equal to L has marginal probability zero. Replacing the clipped report by an exact normal density at L would drop all latent values above it. If those draws were instead removed and not counted, retained exact readings would require the corresponding truncated observation law.
Estimate the derivative of exp(θ) at θ=0 by a centered difference with 0<h≤1. Each function value can have absolute error η≥0. Give a rigorous bound and the minimizing positive h for η>0 within this domain, with the limiting case η=0.
Show the answer and reasoning
The error is at most e h²/6+η/h. For η>0 the bound is minimized at h=min(1,(3η/e)^(1/3)). For η=0 its infimum is zero as h decreases to zero.
The third derivative of exp on [−1,1] is exp, bounded by e. Taylor expansion at zero for exp(h) and exp(−h) cancels the constant and second-order terms on subtraction. The combined truncation error after division by 2h is at most e h²/6. If the two evaluated values have absolute errors at most η, their subtraction can have error at most 2η, which contributes η/h. No assumption about independence of numerical errors improves the deterministic bound. For η>0 differentiate the sum to find e h/3−η/h². It changes sign once at h=(3η/e)^(1/3), decreasing the bound before that point and increasing it after. If the point exceeds the stated domain, the best admissible step is one. For η=0 the bound has no positive minimizing h in (0,1] and tends to zero at its excluded boundary. Real arithmetic with a fixed nonzero evaluation-error bound does not allow taking that limit while keeping the total error small.
For x′=b−kx, x(0)=x₀, with b and x₀ fixed and k>0, find the exact solution and its sensitivity to k. Check that the result satisfies the tangent equation and its initial derivative.
Show the answer and reasoning
Let E=exp(−kt). The state is b/k+(x₀−b/k)E and its sensitivity is −(b/k²)(1−E)−t(x₀−b/k)E.
The equilibrium is b/k. The deviation from equilibrium obeys a pure decay with rate k and starts at x₀−b/k. Hence x(t)=b/k+(x₀−b/k)exp(−kt), which has the stated initial data. With D=x₀−b/k and E=exp(−kt), differentiate in k at fixed t. The equilibrium and the change of its subtraction give −b(1−E)/k², and the exponential contributes −tDE. Thus s(0)=0 when x₀ is fixed. The time derivative of this sensitivity is −(b/k)E−DE+ktDE=−x₀ E+ktDE. The tangent right side is −x−k s. Substituting x=b/k+DE and s gives the same expression, since the constant terms cancel. The sensitivity has state units per inverse time when k is a rate. Either formula requires k>0 as given. Dividing by k at zero would need a separate limit or solving the original model x′=b there.
For x′=−kx, x(0)=A, and objective J=x(T)+c∫₀^T x(t)dt with T>0 and fixed c, write the scalar adjoint and calculate the derivatives of J with respect to A and k. Give a second expression by differentiating the exact trace.
Show the answer and reasoning
For k≠0 let E=exp(−kT). Then J_A=E+c(1−E)/k and J_k=A[−TE+c(TE/k−(1−E)/k²)]. At k=0 the corresponding values are 1+cT and −A(T+cT²/2).
The running derivative in x is c and the terminal derivative is one. The adjoint satisfies −p′=−kp+c with p(T)=1. For k≠0 solving backward gives p(t)=exp(−k(T−t))+(c/k)[1−exp(−k(T−t))]. The A derivative comes from the initial state, so it equals p(0). The rate derivative is −∫₀^T p(t)x(t)dt because ∂f/∂k=−x at a fixed state. Multiplying by x(t)=A exp(−kt) gives p(t)x(t)=A[E+(c/k)(exp(−kt)−E)]. Integration produces the stated J_k. Independently the exact trace gives J=A[E+c(1−E)/k]. Differentiating the bracket in k gives −TE+c[TE/k−(1−E)/k²]. Differentiation in A gives the same p(0), checking the sign and the initial contribution. At k=0, x(t)=A and p(t)=1+c(T−t). The initial derivative is 1+cT and the integrated rate derivative is −A(T+cT²/2). These are also the limits of the derivative expressions as k tends to zero.
For t≥0 and h(t;θ)=θ−(t−1)², find the first zero for −1<θ<1 when it exists. Determine where its time derivative with respect to θ is finite and explain what happens at θ=0.
Show the answer and reasoning
For θ<0 there is no zero. At θ=0 the first zero is 1 and is tangent. For 0<θ<1 the first zero is 1−√θ and its derivative is −1/(2√θ).
The equation is (t−1)²=θ. For a negative θ no real time solves it. At θ=0 the only root is t=1 and the signal does not change sign across it. For positive θ below one, t=1±√θ are both nonnegative and the smaller one is measured first. Near this smaller root h_t=−2(t−1)=2√θ is nonzero, so the crossing is transversal. Direct differentiation of 1−√θ and implicit differentiation via −h_θ/h_t both give −1/(2√θ). It is finite at each strictly positive θ in the stated range. As θ decreases to zero from above the two roots coalesce and the derivative becomes unbounded in magnitude. At θ=0 the first-zero map has no continuation to negative θ and no finite derivative, even though h is smooth in both arguments.
Independent X, Y and Z take signs ±1 with equal probabilities. For f=4X+3YZ, find total variance and first-order and total-effect fractions for all three inputs. Explain why adding all total-effect fractions can exceed one.
Show the answer and reasoning
Total variance is 25. The first-order fractions are (16/25,0,0) and total-effect fractions are (16/25,9/25,9/25). Their sum is 34/25.
The independent fair signs have mean zero, and YZ also has mean zero and variance one. X is independent of YZ, so Var(4X+3YZ)=16+9=25. The two terms are a main effect and a pure interaction. Conditioning on X averages YZ to zero and leaves 4X. Conditioning on Y alone or Z alone averages both terms to zero. The first-order fractions use these conditional mean variances, giving 16/25,0,0. For the total effect of X, hold Y,Z fixed and vary X. The remaining variance is 16. For Y, hold X,Z fixed, so 4X is fixed and 3YZ has conditional variance 9 because Z is a sign. The same reasoning gives 9 for Z. The interaction component 9 is counted in both Y and Z total effects since varying either while holding the other fixed changes the output. Total effects do not partition variance. Under the stated product law the components themselves, 16 for X and 9 for the YZ interaction, do form a partition.
A future response has conditional means 0 and 4 in two model states with probabilities 1/4 and 3/4. Its conditional variance is 1 in either state. Find the mean, variance and the separate contributions from model state and within-state variation.
Show the answer and reasoning
The overall mean is 3 and variance is 4. The mean variation between states contributes 3 and conditional variation contributes 1.
Let M be the conditional mean, equal to 0 with probability one quarter and 4 with probability three quarters. Then E[M]=3 and E[M²]=12, so Var(M)=12−9=3. Conditional variance is one in either state. Its expectation is one. By total expectation the response mean is E[M]=3. By total variance the response variance is the sum of conditional variance averaged over states and variance of the conditional means, giving 1+3=4. The spread between states contributes even though each state's fluctuation is equally large. Conditional means and variances do not determine the full mixture law. For example skewness or discrete mass in the within-state response can affect its quantiles without changing these means and variances. A precise predictive interval requires more information or a suitable moment bound.
Two candidate methods have the same true risk 0.5. Their first evaluation estimates are independent and each equals 0.4 or 0.6 with probability 1/2. Compute the expected minimum, and the expected estimate on a fresh independent evaluation of the selected method.
Show the answer and reasoning
The expected minimum is 0.45. An independent second evaluation of the selected method has expected estimate 0.5.
The minimum of the two initial estimates is 0.6 only if both independent estimates take that value, an event of probability 1/4. In the other three equally likely pairs there is at least one 0.4, so the minimum is 0.4. The expected minimum is (1/4)0.6+(3/4)0.4=0.45. Each separate estimate had expectation 0.5 before selecting the smaller. The 0.05 downward shift is due solely to choosing on those noisy scores. Both candidate methods have exactly the same population risk, so the selected one has true risk 0.5 no matter which estimate realized the minimum. Ties can be broken without changing that statement. For a fresh independently sampled evaluation, conditional on the first results and the selection, the chosen method is fixed and its estimate has mean 0.5. Taking expectations leaves 0.5. This does not imply that its realized fresh estimate must equal the population risk.
A correct forecast puts probability 1/4 at response 0 and 3/4 at response 2. Derive the conditional and unconditional distribution of the randomized CDF rank. Compare it with replacing the auxiliary uniform by 1/2.
Show the answer and reasoning
The rank is uniform on (0,1/4) given response 0 and on (1/4,1) given response 2. Unconditionally it is uniform on (0,1). A fixed midpoint gives atoms at 1/8 and 5/8.
At response 0 the predictive CDF changes from zero to one quarter. Adding an independent variable uniform on that jump places the randomized rank across (0,1/4). At response 2 the CDF jumps from one quarter to one, so the conditional rank is uniform on (1/4,1). The two conditional densities are the reciprocals of their interval lengths. Multiplying by weights 1/4 and 3/4 gives unconditional density one on both intervals. Their shared endpoint and the global endpoints have zero rank probability. Replacing the auxiliary uniform sample by 1/2 gives the midpoint of each jump. The first is 1/8 and the second is (1/4+1)/2=5/8, with probabilities 1/4 and 3/4. These discrete midranks cannot have a continuous uniform law even under the exactly correct forecast. Diagnostic randomness spreads genuine point-mass outcomes over their predicted rank intervals. It supplies no extra physical observations.
Eighty percent of target mass is on known support where the target conditional average loss is 0.25. The other twenty percent is unseen under evaluation and its loss is only known to lie in [0,1]. Find the sharp range of the target risk using only this information.
Show the answer and reasoning
The sharp compatible risk interval is [0.20,0.40].
The covered target subset contributes its mass 0.8 times the target conditional average 0.25, or 0.20. This number is already averaged under the target distribution restricted to that subset. The omitted subset has mass 0.2 and conditional average loss between zero and one. Its full-risk contribution is therefore between zero and 0.20. Adding gives the stated interval. Both endpoints are compatible with the supplied information by setting every omitted loss to zero or to one, respectively, while retaining the same covered loss. Any intermediate value uses a suitable constant loss or probabilistic mixture across the omitted subset. Unlimited evaluation samples from the covered support cannot distinguish those possibilities on the unseen subset. Shrinking the sharp interval requires relevant target observations or a justified additional bound on the missing conditional mean.
At a new physical condition a numerical output is within 0.015 of the exact modeled value, the model is known within 0.040 of the physical response, and the measuring instrument is within 0.010 of it, all in the same units. Bound numerical-versus-physical and numerical-versus-measured differences, and decide which comparisons can be certified within 0.060.
Show the answer and reasoning
The numerical-to-physical bound is 0.055. The numerical-to-measured bound is 0.065. Only the first is certified within 0.060 by these bounds.
Apply the triangle inequality from numerical result to exact model to physical response. The possible gaps add to at most 0.015+0.040=0.055 in the common units. To compare with the reported measurement, include its possible gap from the physical value. The resulting bound is 0.055+0.010=0.065. The model and measurement comparisons concern different targets even though their units coincide. The first worst-case bound is less than 0.060. The second is larger. For a compatible extreme, let the physical value be zero, the exact modeled value 0.040, the numerical value 0.055 and the measurement −0.010. Then the second difference is exactly 0.065. A larger worst-case bound does not prove the actual observation exceeds the tolerance. It shows the guarantee cannot be made from the stated pieces alone. Narrowing it requires information about one component or how their signs are related.
What to carry forward
- A measured quantity, the exact model output, numerical error and observation error enter different comparisons.
- More repetitions of an unchanged design can improve precision without identifying an unmeasured direction.
- A conditioning or sensitivity number needs physical parameter scales and a declared output metric.
- A valid local sensitivity can fail at a tangency, a boundary or under a change in the governing regime.
- Joint input covariance and global interactions can change predicted output variation.
- Learning a latent mean and predicting another noisy reading use different uncertainty scales.
- Evaluation on independent new groups estimates a different risk from holding out rows within known groups.
- An upper confidence limit that meets a stated tolerance can qualify its declared target. An imprecise limit can leave the decision open.
References
Sources for the concepts and teaching approaches in this article.
SUNDIALS project, Lawrence Livermore National Laboratory3 sources
- Forward tangent equations for an initial-value problemSUNDIALS project, Lawrence Livermore National LaboratoryPrimary
- Continuous adjoints and their initial-state contributionSUNDIALS project, Lawrence Livermore National LaboratoryPrimary
- Numerical root detection and tangenciesSUNDIALS project, Lawrence Livermore National LaboratoryPrimary
- Variance components and total-effect sensitivityI. M. Sobol′Primary · PDF
- Proper squared and logarithmic probability scoresTilmann Gneiting and Adrian E. RafteryPrimary · PDF
- Randomizing ranks at a point massPeter K. Dunn and Gordon K. SmythPrimary · PDF
- Importance weighting under a changed input distributionMasashi Sugiyama, Matthias Krauledat and Klaus-Robert MüllerPrimary · PDF
National Institute of Standards and Technology (NIST)2 sources
- e-Handbook of Statistical Methods, Assessing Product Reliability, §8.4.1.2, selected Type I censoring likelihoodNIST/SEMATECHPrimaryLikelihood of a censored readingWeighting observations of differing precision
- A future measurement and an estimated meanNIST/SEMATECHPrimary
- Normal likelihood and precision weightingJeremy Orloff and Jonathan BloomPrimary · PDF
- Ridge estimation and its bias–variance calculationArthur E. Hoerl and Robert W. KennardPrimary · PDF
- One-sided concentration for independent bounded variablesWassily HoeffdingPrimary · PDF
- Least-squares derivatives and local step designVirginia Tech course-hosted optimisation lecture notesPrimary · PDF
- Measurement models, discrepancy and propagated uncertaintyJoint Committee for Guides in MetrologyPrimary
- Designing a model assessment for a stated targetSol Garfunkel and Michelle Montgomery, editorsPrimary · PDF
- Validation design for new groups and predictor rangesDavid R. Roberts and colleaguesPrimary
- Numerical verification against a fixed equationNASA Glenn Research Center, NPARC AlliancePrimary
- Validation against relevant observed conditionsNational Aeronautics and Space AdministrationPrimary · PDF
- A first-order model, initial data and solution checksJeremy Orloff, MIT OpenCourseWarePrimary · PDF
- Physical units and changes of coordinatesEdgar BuckinghamPrimary · PDF