Mathematics · Article
Questions, assumptions and the modelling cycle
Build a mathematical model from a clear question, test what its equations predict, and revise the assumptions when the observations disagree.
Back to MathematicsAfter reading, you can
- Write a modelling question with an explicit target, horizon, observation map and tolerance.
- Derive a stock balance and state the domain, units and physical assumptions that give it meaning.
- Choose a measurement or intervention that distinguishes plausible mechanisms or parameter values.
- Use exact limiting cases and refinement to check a numerical prediction.
- Match a validation split and an error measure to the proposed use of the model.
- Report what evidence would justify keeping or revising a model, including unresolved uncertainty.
How long will the tank take to flush?
Suppose a tank holds dissolved salt and you need its outlet concentration to fall below a target by a given time. First decide what counts as reaching the target. A bulk concentration, an instantaneous outlet reading and a time-averaged reading can give different answers, even though they have the same units.
The lesson starts with a mass and volume balance, works out its exact prediction and checks where the well-mixed approximation matters. From there, the same example shows how to choose a useful measurement, distinguish two plausible mechanisms and tell a numerical error from a failure of an assumption.
A disagreement is useful when it suggests a more precise question. Is the actual outlet sampling the whole tank, has the instrument drifted, or did the test use a different flow from the one in the equations? Each possibility produces a different next check. We use the same reasoning for growth, grouped observations and decisions under uncertainty.
Define the target before choosing equations
Fix a state variable Y in declared units and a decision horizon H. The question “How much on average at H?” asks for E(Y_H) under the relevant law. The question “How often above b at H?” asks for P(Y_H>b). When b has the same units as Y, the latter compares like quantities but returns a dimensionless probability.
Take output A equal to 4 units and output B equal to 0 or 8 units with probabilities one half. Both have mean 4 units. A strict threshold at 5 has probability zero under A and one half under B because precisely the high outcome exceeds it. Thus an agreement about the mean leaves even this basic decision frequency open.
An arithmetic sample mean of n readings has expected value n⁻¹ times the sum of the expected readings under the actual design. A time mean is H⁻¹ times the integral of the latent level over [0,H]. Uniform independent observation times with conditionally unbiased instruments target that integral in expectation. A schedule that revisits one clock phase instead targets that phase. For example, hourly or spatial coverage is a design premise, not a consequence of taking a mean.
To model the question, specify the population or boundary, how H and b were chosen, the measurement map and conditions under which averaging the acquired data estimates the intended quantity. Even a correct fitted equation for the observed mean cannot by itself supply a decision rule about extremes or poorly covered portions of the modelled domain. Separate the measured quantity, its observation schedule and the decision about it. Related reading: [The modelling process and iteration](https://www.siam.org/media/wwjd5o2k/gaimme-2nd-ed-final-online-viewing-color.pdf), [Define the measurand and specify its observation law](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337). The sources support specifying the target and acquisition conditions before formulation. The same mean/different exceedance example and phase-weighted mean comparison are original.
Choose a boundary and balance the stock
Let M be the solute mass inside a declared boundary. Denote by J_in(t) and J_out(t) the counted external influx and outflux, each a nonnegative mass per time by convention. Let S(t) be the signed net conversion or production inside that boundary. If an external loss L crosses the boundary through a separately measured channel, keep L nonnegative and separate from the already counted J_out.
On [u,v] the mass added by a measured rate J is its time integral. Fix a sign by the direction of each transfer. Internal transfers between two parts of the same boundary cancel in the aggregate because the loss from one is the gain to the other. The change is M(v)−M(u)=∫_u^v [J_in−J_out+S−L]dt. Each integral is a mass, so add and subtract them only after converting units.
If the rates are locally integrable, the integral balance defines an absolutely continuous M with derivative J_in−J_out+S−L almost everywhere. At a point of continuity the average of that net rate over a shrinking interval tends to its value, giving the ordinary instantaneous balance there. A discrete sample or an impulsive event calls for the window balance or an added jump term instead of assuming all ordinary derivatives exist.
Counting L both in J_out and as its own term would create an apparent missing mass. Similarly a signed input estimate may become negative after changing the reference convention but cannot simply be inserted into both conventions. Checking that an isolated boundary gives ΔM=0 in the absence of actual conversion is a useful arithmetic test of the stated model. Balance a declared stock over the boundary before taking a time derivative. Related reading: [The modelling process and iteration](https://www.siam.org/media/wwjd5o2k/gaimme-2nd-ed-final-online-viewing-color.pdf), [Build and check simple rate models](https://ocw.mit.edu/courses/es-1803-differential-equations-spring-2024/mites_1803_s24_topic1.pdf), [Amount and concentration in a mixing tank](https://live.ocw.mit.edu/courses/es-1803-differential-equations-spring-2024/mites_1803_s24_topic_full.pdf). The instructional sources use a net change over a time interval. The proof uses its own additive mass accounting, integrated signs and exact continuity or almost-everywhere limit.
Derive the concentration equation from amount and volume
Let q_i and q_o be nonnegative inflow and outflow in volume per time. The feed has concentration C(t), the volume remains V(t)>0 and the solute mass is M(t)=V(t)c(t). The well-mixed assumption says the exiting concentration at that instant equals c(t). With no other production or loss, the two balances are V′=q_i−q_o and M′=q_i C−q_o c.
Differentiate M=Vc wherever the rates give derivatives. Substituting the balances gives Vc′+c(q_i−q_o)=q_i C−q_o c, hence Vc′=q_i(C−c). If the rates are only locally integrable, the same identity holds almost everywhere for positive V using the product and quotient rules for absolutely continuous functions on compact intervals where V stays bounded away from zero.
The sign is determined by the feed difference when q_i>0. The factor q_i/V has units of inverse time, so multiplication by the concentration difference produces a concentration rate. At q_i=0, withdrawals still lower V and M, but they do so in the same proportion and the remaining concentration stays fixed until V approaches zero. The outflow still matters through V when both flows act.
The well-mixed outlet has the current tank concentration. Differentiate M=Vc and subtract c times the changing volume before dividing by V. The outlet terms cancel from the concentration derivative because both stock and volume are lost in the same ratio.
| Quantity | Exact result |
|---|---|
| Volume rate | 0 volume/time |
| Inlet solute flux | 5 mass/time |
| Outlet solute flux | 20 mass/time |
| Amount rate | −15 mass/time |
| Concentration rate | −3/20 mass/(volume·time) |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| V | 100 |
| c | 4 |
| ci | 1 |
| Qin | 5 |
| Qout | 5 |
The cancellation depends on equal outlet and bulk concentrations. If the outlet samples a concentrated layer with c_out≠c, then Vc′=q_i(C−c)+q_o(c−c_out). This changed prediction can be tested by comparing simultaneous samples at different locations. At a dry boundary the quotient defining c fails, so the formula does not extend to that state without a new model. Amounts balance directly, and concentration follows after accounting for volume. Related reading: [Amount and concentration in a mixing tank](https://live.ocw.mit.edu/courses/es-1803-differential-equations-spring-2024/mites_1803_s24_topic_full.pdf), [The modelling process and iteration](https://www.siam.org/media/wwjd5o2k/gaimme-2nd-ed-final-online-viewing-color.pdf). The unequal-flow MIT example confirms the mass-versus-concentration distinction. The lesson independently differentiates M=Vc, cancels the same-composition outlet term and retains the positive-volume domain.
Make mixing and observability explicit
Consider two equal compartments of volume V/2, linked in series with a fixed positive volumetric rate q. Let total mass M>0. Write x for the mass in the outlet-side compartment. The other contains M−x. The total stock and volume are the same for any x between 0 and M, but a locally well-mixed outlet compartment discharges concentration 2x/V.
With a solute-free inflow and equal net volume exchange, the total mass derivative at that instant is −2qx/V. An internal transfer crosses neither outer boundary, so its contribution cancels. Compare x=M/2 and x=M/4. The derivatives are −qM/V and −qM/(2V), respectively, although M,V and q coincide.
The difference has a short-time consequence when the within-compartment flows and concentrations vary continuously. Over h, the first arrangement loses qM h/V+o(h); the second loses qM h/(2V)+o(h). A model using just aggregate concentration M/V must predict the same instantaneous response for both. It therefore cannot represent both initial states' outflow behavior.
The reduction can be justified by sufficiently rapid mixing on the prediction time scale or by a direct observation supporting the outlet-to-bulk equality for the question at hand. It can also be adequate for a target insensitive to the difference. The two histories show why a state description sufficient for total storage need not be sufficient for transit or discharge predictions. An aggregate stock may leave the outlet condition unknown. Related reading: [Amount and concentration in a mixing tank](https://live.ocw.mit.edu/courses/es-1803-differential-equations-spring-2024/mites_1803_s24_topic_full.pdf), [The modelling process and iteration](https://www.siam.org/media/wwjd5o2k/gaimme-2nd-ed-final-online-viewing-color.pdf), [Define the measurand and specify its observation law](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337). The well-mixed source makes this premise explicit. The lesson proves a counterexample with exact linked-compartment amounts and observes the consequence through a separately measured outlet.
Distinguish prescribed input from feedback
Take an inventory X with a first-order outflow kX, k>0, in the same units as the input. Under a prescribed constant u_0, the model is X′=u_0−kX and X(0)=x_0. Integrating after multiplication by e^{kt} yields X_A(t)=u_0/k+(x_0−u_0/k)e^{−kt}. Its initial derivative d=u_0−kx_0 measures the current net inflow.
Now let the input respond to inventory as u(X)=u_0+α(X−x_0), with α in inverse time and 0<α<k. Model B obeys X′=(u_0−αx_0)−(k−α)X. Set x_B^*=(u_0−αx_0)/(k−α). The exact solution is X_B(t)=x_B^*+(x_0−x_B^*)e^{−(k−α)t}. One may choose u_0 large enough for nonnegative input near the observed path.
At t=0 both models have derivative d. Differentiating the autonomy equations gives X_A″(0)=−kd and X_B″(0)=−(k−α)d. Thus their second derivatives differ by αd. If d≠0, their small-time difference is αd t²/2+o(t²). If d=0 the same initial state is an equilibrium for both models and the entire unperturbed trajectories agree.
In the second model the input reacts when the inventory changes, whereas in the first the experimental input is held fixed while the state responds. This is a premise about how the system operates, not merely a fitted intercept. Perturbing the state or separately measuring input can test it. If an actuator clips the affine response, these formulas apply only while the unclipped rule holds. Changing an input based on the current state changes the governing mechanism. Related reading: [Build and check simple rate models](https://ocw.mit.edu/courses/es-1803-differential-equations-spring-2024/mites_1803_s24_topic1.pdf), [Structural equations and the effect of setting an input](https://ftp.cs.ucla.edu/pub/stat_ser/r350-reprint.pdf), [The modelling process and iteration](https://www.siam.org/media/wwjd5o2k/gaimme-2nd-ed-final-online-viewing-color.pdf). The source verifies mathematical separation of controlled input and state-based assignment. The two exact inventory solutions and their second-order difference are original.
Model the instrument's averaging window
Let f(t)=m+A cos(2πt/P), where P>0 is a period with units of time and f,m,A share the measured units. A sensor reporting one average over [a,a+h], h>0, returns h⁻¹∫_a^{a+h}f(t)dt. The integral has measured units times time, and division by h returns the measured units.
Put ω=2π/P. Integration gives the exact average m+A[sin(ω(a+h))−sin(ωa)]/(ωh). Over h=P the sine terms cancel for every a, so the average is m. Over the shorter window [0,P/4], the cosine term integrates to 2A/π, making the average m+2A/π.
Samples at 0,P,2P and so forth always observe m+A. Their arithmetic mean remains m+A even without readout noise and as the sample count grows. If A≠0 that sequence misses m. Measurements spaced by half a period alternate m+A and m−A, so an even number of complete pairs recovers m for this exact waveform.
The instrument averages the complete signal over its exposure duration. Integrate e^(−kt) over the stated endpoints. A falling signal has average above the right endpoint; a rising signal reverses the sign.
| Quantity | Exact result |
|---|---|
| Left and right times | (0, 1) |
| Exact left value | 1 + 3 e^(−0) |
| Exact right value | 1 + 3 e^(−1) |
| Exact window mean | 1 + (3)(e^(−0)−e^(−1)) |
| Mean minus right endpoint | 1 + (3)(e^(−0)−e^(−1)) − (1 + 3 e^(−1)) |
| Rounded signed difference | 0.7927234 |
| Limit as h↓0 | Window average tends to c(s). |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| b | 1 |
| d | 3 |
| k | 1 |
| s | 0 |
| h | 1 |
A point model should be used only for a point-reading instrument, or when its error as an approximation to the actual window has an explicit relevant bound. Record the timing, support and instrument integration before using any reported value as a label. Finer sampling or a shifted phase can test this observational assumption without altering the proposed latent dynamics. Account for the time span that a reporting instrument actually averages. Related reading: [Define the measurand and specify its observation law](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337), [The modelling process and iteration](https://www.siam.org/media/wwjd5o2k/gaimme-2nd-ed-final-online-viewing-color.pdf). The metrology reading supports specifying time, location and the measurement target. The sine integral and persistent sampling phase error are independently proved.
Separate latent and measurement variability
Let a latent state X at one time have finite second moment, and let Y=X+ε with E(ε|X)=0 and Var(ε|X)=σ² for a known measurement setup. Conditional mean is E(Y|X)=X, and conditional variance is σ² because X is fixed by that conditioning. Independence of ε and X is a sufficient premise for these identities if ε is centered with variance σ².
Subtract μ=E X and expand (X−μ+ε)². The cross term has zero mean since conditioning on X leaves (X−μ)E(ε|X)=0. The result is Var(Y)=Var(X)+σ², while E Y=μ. With state-dependent instrument variance the same expansion gives Var(X)+E Var(ε|X).
For r repeat measurements of the same X assume the instrument errors are conditionally independent centered copies with common variance σ². The average is X+r⁻¹Σ ε_i and has conditional variance σ²/r. The variance over randomly sampled latent states is Var(X)+σ²/r, so only the instrument term diminishes with repeated measurements of one state.
The number of independent realizations of X has not changed. Treating the r readings as r independent draws of X would incorrectly shrink the latent part by r. Taking more visits, locations or independent initial states can address that part if the sampling assumption supports independence. Correlated instrument errors would require their covariance terms in the readout calculation. Repeated readings of a single state primarily refine the instrument contribution. Related reading: [Define the measurand and specify its observation law](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337). The source defines repeated noisy readings conditional on a fixed common quantity with an explicit observational law. This lesson adds random latent state, conditional variance and the exactly separate effect of replication.
Locate an additive calibration ambiguity
Consider exact repeated reports y=c+b with both true concentration c and the stable additive offset b unknown and expressed in the same units. For any δ for which the altered c remains in the allowed domain, c+δ and b−δ produce exactly the same y. Repetition at unchanged conditions cannot eliminate this transformed pair.
A reference sample whose true concentration c_ref is known gives y_ref=c_ref+b if the same offset applies in that measurement. Hence b=y_ref−c_ref and c=y−y_ref+c_ref. If measurement errors are present, the algebra describes the means under the stated centered error law or the noise-free ideal, and at least one noisy realization does not determine an exact offset.
If offset drift is allowed, write y=c+b and y_ref=c_ref+b_ref. Only b_ref is identified by the reference. Any δ can still trade a change in c against the unknown b for the target while keeping the separate reference reading intact. A bound such as |b−b_ref|≤d would give a concentration interval of radius d around y−y_ref+c_ref in the noise-free form.
Offset equality is therefore part of the experimental premise. A reference taken immediately before and after a sample is useful only with an assumption about between-reference drift or an independent monitor. A fitted shift that matches observations should carry its scope, instrument and timing into the next validation decision. A reference reading removes one offset only if the offset applies to the target reading. Related reading: [Define the measurand and specify its observation law](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337). The source supports additive corrections and possible drift. The shift invariance, exact solution with a reference, and partially bounded offset interval are original.
Make each comparison dimensionally valid
Write the dimensions of time, volume and solute mass as T, V and M. A flow q has units V/T and a concentration c has M/V, so qc has M/T, which can appear in a balance for M′. A first-order removal term kM also has M/T only when k has units T⁻¹. A concentration loss k c has the corresponding concentration-rate units M/(VT).
For a fixed-volume well-mixed tank with equal flow, let dc/dt=(q/V)(C−c)−kc, with all terms expressed in a common time unit. Let u be a new clock coordinate, one unit of u corresponding to a>0 old clock units, so t=au. The derivative dc/du=a dc/dt. Therefore both q and k take numerical values multiplied by a when expressed per new time unit. The volume and concentration values are unchanged if their units are unchanged.
The converted equation is dc/du=(aq/V)(C−c)−ak c, which is exactly the original equation followed along t=au. Equivalently the dimensionless products (q/V)t and kt are preserved. Uniqueness of this linear equation with a declared initial value gives the same predicted c at the same physical time. Converting mass units multiplies c,C and M by the same mass conversion, leaving this preservation intact.
If the time coordinate changes but q alone is multiplied by a, the relative strengths of exchange and loss change. For constant C and positive rates the equilibrium is c^*=qC/(q+kV). A mixed-unit substitution can change even that equilibrium, not just the clock. When recording an assumption, include units and recurrence or sampling interval so this can be checked. A common clock keeps transport and first-order loss in the same balance. Related reading: [Amount and concentration in a mixing tank](https://live.ocw.mit.edu/courses/es-1803-differential-equations-spring-2024/mites_1803_s24_topic_full.pdf), [Define the measurand and specify its observation law](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337). The unequal-flow example retains mass per time and volume per time explicitly. Consistent rescaling of both numerical rate values is proved directly and is not a borrowed empirical claim.
Use domain restrictions as checks
Assume a fixed positive volume with q≥0 constant, equal inflow and outflow, and a constant feed C≥0. The concentration model is c′=k(C−c), k=q/V, with c(0)=c_0≥0. Let z=c−C. Then z′=−kz. In particular z(t)=e^{−kt}z(0); this follows by differentiating e^{kt}z and seeing its derivative is zero.
For t≥0, θ=e^{−kt} lies in (0,1]. Thus c(t)=θ c_0+(1−θ)C is a convex combination of initial value and feed. If c_0>C it decreases toward C whenever k>0, if c_0<C it increases, and if either c_0=C or k=0 the initial concentration remains unchanged. A negative prediction is impossible under these exact premises.
The use of a nonnegative constant feed is material to the bounds. If C were replaced by a varying C(s), the exact integrating factor would instead weight the whole feed history with kernel k e^{−k(t−s)} and initial weight e^{−kt}. For nonnegative C(s) that retains positivity, but it need not stay between c_0 and any single terminal feed value. Negative fitted feed breaks the physical bound entirely.
The steady value C when k>0 concerns constant feed held long enough. An observation above the initial and declared constant feed levels could reflect changing input, hidden transport, an instrument error, or a numerical step that violates the convex weight condition. The inequality is a check of compatibility with the premises and needs context to diagnose a particular failure. The exact mixed-state solution stays between a constant feed and its initial value. Related reading: [Amount and concentration in a mixing tank](https://live.ocw.mit.edu/courses/es-1803-differential-equations-spring-2024/mites_1803_s24_topic_full.pdf), [Build and check simple rate models](https://ocw.mit.edu/courses/es-1803-differential-equations-spring-2024/mites_1803_s24_topic1.pdf). The source supports the balance and first-order deviation model. Positivity, the convex weights, distinction between constant and varying feed, and the boundary at negative input follow from the original calculation.
Choose a fit objective for the measurement process
Let independent readouts Y_i be Gaussian with a shared unknown mean c and known variances v_i>0 in squared concentration units. At observations y_i the log likelihood differs from −(1/2)Σ (y_i−c)²/v_i by a term constant in c. The measurement premises therefore require minimizing that dimensionless weighted squared sum, provided no boundary constraint on c is imposed or the minimizing value is admissible.
Differentiating gives Σ (c−y_i)/v_i=0. The second derivative is positive since Σ 1/v_i>0. The unique minimizer is ĉ=Σ(y_i/v_i)/Σ(1/v_i). It is a linear combination of independently centered measurement deviations from c, so it is unbiased and its variance is Σ (1/v_i²)v_i/[Σ(1/v_i)]²=1/Σ(1/v_i).
If readings and concentration are multiplied by a common a>0 under a change of units, the variances become a²v_i and each squared residual also acquires a². The objective values are unchanged at corresponding candidates. Consequently the estimate transforms to a ĉ, with variance multiplied by a². Arbitrarily changing just weights or just the variances would define a different optimization.
Weights in a task can instead express which errors are costly for a decision, which sites the target population emphasizes, or how to aggregate disparate outputs. They may lead to a valid fitted rule for that aim, but the Gaussian likelihood and variance calculation then require their own measurement premises. Recording the objective gives meaning to the result and to the subsequent test. Inverse-variance weighting follows when independent Gaussian measurements share a mean. Related reading: [Weight unequal measurement variances](https://www.itl.nist.gov/div898/handbook/pmd/section4/pmd452.htm), [Define the measurand and specify its observation law](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337). The NIST selected formula gives the same weight orientation under known true variances. The source emphasizes estimation in applications. The exercise uses known variances and derives its likelihood, rather than transferring general precision claims.
See what the loss function asks the model to predict
Let Y be a response with finite second moment and let z be a constant prediction in the same units. For μ=E Y, expand E(Y−z)²=E(Y−μ)²+(μ−z)² since the cross term contains E(Y−μ)=0. Thus under squared loss the unique optimum over real z is μ.
For absolute loss with E|Y| finite, the convex function g(z)=E|Y−z| has left derivative P(Y<z)−P(Y≥z) and right derivative P(Y≤z)−P(Y>z). The derivatives follow by bounded convergence of the difference quotients, whose absolute value is at most one. A point minimizes a convex function precisely when its left derivative is nonpositive and its right derivative nonnegative.
Those two inequalities say P(Y<z)≤1/2 and P(Y>z)≤1/2, so every median is a minimizer for absolute loss. Consider Y=0 with probability 3/4 and Y=8 units with probability 1/4. The squared-loss optimum is 2 units. At z=0 the left and right derivative conditions hold and at every z>0 the left derivative is positive, so the unique absolute-loss optimum is 0.
The two objectives award different compromises between rare large errors and frequent small errors. Determine the loss from the intended consequence before fitting a constant return or comparing models. A conditional version uses the law informed by the declared inputs. It is still the conditional mean or any conditional median rather than a property of a particular equation template. The objective determines whether a constant prediction targets a mean or a median. Related reading: [The modelling process and iteration](https://www.siam.org/media/wwjd5o2k/gaimme-2nd-ed-final-online-viewing-color.pdf), [Define the measurand and specify its observation law](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337). The model assessment sources support specifying what counts as success. The exact squared-loss and absolute-loss minimizers are derived by expansion and one-sided derivatives under separate moment assumptions.
Distinguish feasible fit from unique parameters
Suppose a fixed-volume concentration model is c′=s−kc, with k>0 and s≥0. The derivative is zero at c^*=s/k. One exact nonnegative observed equilibrium c^* determines a ratio only. For every k>0 the pair (s,k)=(kc^*,k) is consistent. In the zero-equilibrium case s must vanish, yet k can still be any positive value.
There are two equations hidden in a claim that a second experiment identifies the parameters. If an added, measured input adds D≠0 to the concentration production rate and all other coefficients stay unchanged, the new equilibrium is c_D^*=(s+D)/k, provided the experimental domain allows it. Subtraction gives k=D/(c_D^*−c^*), then s=k c^*. Positivity of k requires the difference to have the sign of D.
Alternatively, reset to a known non-equilibrium c_0≠c^* with unchanged input and observe c(t) at t>0. Then (c(t)−c^*)/(c_0−c^*)=e^{−kt}. An exact ratio in (0,1) gives k=−log(ratio)/t and hence s. A ratio extremely close to one may be difficult to distinguish from one with a noisy instrument, even though the exact problem is identifiable.
Additional observations at the original steady state do not resolve the parameter family. An input perturbation only counts as the stated second experiment if it leaves the removal mechanism unchanged, and a reset must be characterized independently. This distinction is a concrete modelling reason to design a new intervention or time measurement rather than interpreting a good one-equilibrium fit as a unique mechanism. A fitted equilibrium can identify a parameter ratio while leaving both rates unknown. Related reading: [Structural equations and the effect of setting an input](https://ftp.cs.ucla.edu/pub/stat_ser/r350-reprint.pdf), [Amount and concentration in a mixing tank](https://live.ocw.mit.edu/courses/es-1803-differential-equations-spring-2024/mites_1803_s24_topic_full.pdf), [The modelling process and iteration](https://www.siam.org/media/wwjd5o2k/gaimme-2nd-ed-final-online-viewing-color.pdf). Pearl’s observational agreement criterion provides conceptual context. The equilibrium family, adding a measured independent source, and the exact transient-rate reversal are wholly proved in the stated mass model.
Check a design that separates two effects
For specified inputs u_i and exact equilibria y_i, the model y_i=a+b u_i has a row (1,u_i) in its design matrix. A difference of parameter pairs (δa,δb) gives the same data precisely when δa+δb u_i=0 for every i. If there are two distinct u levels, subtracting their equations forces δb=0 and then δa=0. If all levels equal u_0, every pair (−u_0δb,δb) is a null direction.
At two distinct levels u_1,u_2 consistent exact data give b=(y_2−y_1)/(u_2−u_1) and a=y_1−b u_1. Their units are output per input and output respectively. More inputs may test the assumption of an affine relationship by checking whether the overdetermined outputs lie on this line; they do not change the two-column rank condition.
With independent centered errors ε_1,ε_2 of common variance σ², the two-setting slope estimate differs from b by (ε_2−ε_1)/(u_2−u_1). Its mean is zero and variance is 2σ²/(u_2−u_1)². The standard deviation thus grows as the reciprocal of the absolute setting separation. This is an actual sampling-precision limit under the stated variance model even with full rank.
Compute centered x variation. It vanishes if every input is the same. With nonzero x variation, the normal equations give slope as centered cross-product divided by centered sum of squares, and the intercept enforces the fitted mean.
| Quantity | Exact result |
|---|---|
| Design rank | 2 |
| Intercept and slope | (2, 2) |
| Fitted outputs | [2, 4, 6] |
| Residuals (observed minus fitted) | [0, 0, 0] |
| Residual sum of squares | 0 |
| Unidentified direction | None in the linear design |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| x | [0,1,2] |
| y | [2,4,6] |
A larger separation helps only if both settings are admissible and are still governed by the same trusted response and noise premises. Extremely close levels can make a unique exact slope practically uncertain. A repeated reading at the same input can improve an estimate of the mean response there, but cannot supply the distinct design row. Observe distinct input levels to separate an intercept from a slope. Related reading: [Define the measurand and specify its observation law](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337), [Weight unequal measurement variances](https://www.itl.nist.gov/div898/handbook/pmd/section4/pmd452.htm). The measurement sources support relating change in uncertainty to the design and observation laws. The rank criterion and slope variance scaling come from the elementary two-row calculation with independent noise.
Find where two mechanisms first disagree
Let n(0)=n_0 with 0<n_0<K, let r>0 be in inverse time, and compare n_L′=r n_L(1−n_L/K) with n_E′=a n_E. Set a=r(1−n_0/K)>0, so at t=0 both share derivative d=a n_0 and the same positive state. They can both fit a measured position and initial slope exactly.
Since the governing functions are smooth near n_0, n_E″(0)=a d. The chain rule for the logistic law gives n_L″(0)=r(1−2n_0/K)d. Their difference is r(n_0/K)d>0. Thus n_E(t)−n_L(t)=[r(n_0/K)d/2]t²+o(t²) as t→0. The factor has units state per time squared.
A difference that starts at order t² may be smaller than a sensor bound over a short observational window. If early observations are all effectively measuring only their common slope, a fit cannot discriminate these equations. Measurements over a justified longer window or at a new initial n_0 can magnify the model difference without requiring observational slopes of extreme precision.
Outside the local calculation, the logistic equilibrium K and the exponential positive growth have different long-run predictions. Extrapolating either depends on whether the capacity or growth rate premise is valid there. The Taylor result does not identify the actual mechanism. It identifies a discriminating quantity and indicates when an experiment could see it. Two growth models can agree on initial slope and differ in curvature. Related reading: [Build and check simple rate models](https://ocw.mit.edu/courses/es-1803-differential-equations-spring-2024/mites_1803_s24_topic1.pdf), [The modelling process and iteration](https://www.siam.org/media/wwjd5o2k/gaimme-2nd-ed-final-online-viewing-color.pdf). The proportional-growth source supplies the baseline model. The logistic construction, coefficient matching, second derivative difference and experimental detectability argument are original.
Derive an exact benchmark for the tank
Let the initial concentration be c_0, the positive constant feed C or a zero feed, and fixed volume V>0. The physical balance under a constant positive flow gives c′=k(C−c), k=q/V>0. To find the benchmark, use the deviation d(t)=c(t)−C; it obeys d′+kd=0.
Multiplying by e^{kt} gives derivative zero of e^{kt}d(t). The unique continuously differentiable solution is c(t)=C+(c_0−C)e^{−kt}; substitution and evaluation at t=0 check the equation and datum. The weight is dimensionless. The difference from C decreases in absolute value to zero because k>0.
If d(0)≠0, the first time the absolute deviation halves solves e^{−kt}=1/2, giving (log 2)/k in time units. Half-life describes the deviation, not necessarily half the concentration itself when C is not zero. When d(0)=0 the concentration is already constant and a measured nonzero deviation half-life is unavailable. When k=0 a nonzero deviation never halves.
Classify the initial value and the asymptotic level before taking logarithms. On the declining branch there is exactly one finite crossing only when the threshold lies strictly between the initial value and the asymptotic value.
| Quantity | Exact result |
|---|---|
| Threshold and equilibrium | (2, 1) |
| Initially at or below target | No |
| Finite time | log(4)/2 |
| Rounded time | 0.6931472 |
| Long-run concentration | 1 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| b | 1 |
| c0 | 5 |
| k | 2 |
| g | 2 |
The exact solution is a benchmark for checking a code table with the same coefficients and initial and feed data. A code match checks the consequences of the balance. It does not determine that a real outlet samples the bulk, and that mixing premise can be tested by comparing outlet and internal samples or by checking the transient under measured input. An exact solution checks what the proposed equation predicts. Related reading: [Build and check simple rate models](https://ocw.mit.edu/courses/es-1803-differential-equations-spring-2024/mites_1803_s24_topic1.pdf), [Verify a calculation against its stated equations](https://www.grc.nasa.gov/www/wind/valid/tutorial/verassess.html). The ODE source identifies proportional decay and checking a solution by substitution. The verification reading supplies scope for exact benchmarks. The lesson derives the half-life and treats mixing as an empirical premise.
Check numerical stability and physical bounds separately
Use a time step h>0 for c′=k(C−c) with constant k>0 and feed C. Forward Euler gives c_{n+1}=c_n+h k(C−c_n)=(1−kh)c_n+kh C. If d_n=c_n−C then d_{n+1}=r d_n with r=1−kh, so d_n=r^n d_0. The product kh is dimensionless.
For c_{n+1} to be a convex combination of c_n and C for all states, both weights must be in [0,1]. With positive h,k this is equivalent to 0<kh≤1. Then nonnegative inputs and states give nonnegative iterates within their first interval. At kh=1 it lands exactly at C in one step and stays there.
Decay of |d_n| for nonzero d_0 requires |r|<1, which is equivalent to 0<kh<2. For 1<kh<2 the deviation oscillates while shrinking. At kh=2 it has constant magnitude and reverses sign, so there is no decay. At kh=0 the model under this recurrence does not move. When kh>2 the absolute deviation grows unless it starts at zero.
The positivity requirement is 1−kh≥0 for positive initial stock. The strict asymptotic decay requirement is |1−kh|<1. These are different inequalities on the same step parameter.
| Quantity | Exact result |
|---|---|
| k h | 1/2 |
| Numerical multiplier | 1/2 |
| States at n=0,…,4 | [4, 2, 1, 1/2, 1/4] |
| Exact sampled law | 4 e^(−1/2n) |
| Nonnegativity for this positive initial state | Yes |
| Asymptotically stable | Yes |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| k | 1 |
| h | 1/2 |
| c0 | 4 |
For instance take a pure-water feed C=0, c_0>0 and kh=3/2. This satisfies |r|=1/2<1 but gives c_1=−c_0/2, which violates the physical nonnegative range. A numerical verification needs to check the qualitative property relevant to the task in addition to asymptotic stability. An Euler step can damp a numerical error while crossing a physical bound. Related reading: [Verify a calculation against its stated equations](https://www.grc.nasa.gov/www/wind/valid/tutorial/verassess.html), [Build and check simple rate models](https://ocw.mit.edu/courses/es-1803-differential-equations-spring-2024/mites_1803_s24_topic1.pdf). The verification source supports conservation and other basic relationships as distinct checks. The exact multiplier, negative state example, strict stability range and equality cases are independently derived.
Measure what time-step refinement tests
Fix H>0 and consider h>0 tending to zero with n=H/h a positive integer. Under c′=k(C−c) with k>0 and d_0=c_0−C, Euler gives d_h(H)=d_0(1−kh)^{H/h}. The exact deviation is d(H)=d_0 e^{−kH}. Small h ensures 1−kh>0, which allows the logarithm below.
Taylor expansion at zero gives log(1−kh)=−kh−k²h²/2+O(h³). Multiply by H/h to get −kH−(Hk²/2)h+O(h²). Exponentiating gives (1−kh)^{H/h}=e^{−kH}[1−(Hk²/2)h+O(h²)]. The global signed concentration error is therefore −d_0 e^{−kH}Hk²h/2+O(h²).
When d_0≠0, write A for the nonzero leading coefficient. The ratio of absolute errors at h and h/2 tends to two. If the exact solution is unavailable, d_h−d_{h/2}=A h/2+O(h²), and the corresponding h/2 versus h/4 difference is A h/4+O(h²). This makes the ratio a check at the same target time under the same physical assumptions.
At d_0=0 the equilibrium is exact for every step, so every such difference vanishes and none identifies the order. The comparison also becomes inconclusive if the changes are dominated by rounding, a mismatched observation clock or another error that does not refine with h. The refinement test addresses the numerical consequences of a fixed model, not the assumption that the given law fits a real tank. Refine the common target time to estimate error due to the time step. Related reading: [Verify a calculation against its stated equations](https://www.grc.nasa.gov/www/wind/valid/tutorial/verassess.html). The verification source distinguishes numerical refinement from evidence using observed data. The log expansion and leading error coefficient are developed for the specific fixed horizon, including the exact equilibrium exception.
Use an integral residual to check accounting
For an interval I=[t_1,t_2], record measured endpoint amounts M_1,M_2 and predicted fluxes from a declared accounting model. Define R(I)=M_2−M_1−∫_I[J_in−J_out+S]dt. A positive residual is excess accumulated mass relative to the counted model. Every term has units of mass and uses the same interval and boundary.
If the actual data are exact and one true additional sink removes mass at a constant rate L>0, then M_2−M_1=∫_I[J_in−J_out+S−L]dt. Subtracting the counted flux gives R(I)=−L(t_2−t_1). On disjoint intervals this contributes additively, with a constant residual per elapsed time if the missing sink and other premises remain steady.
The same formula appears if the physical balance is correct but an instrument reports M̃(t)=M(t)−Lt because of a linearly drifting mass offset. Then M̃_2−M̃_1 differs from the true mass change by −L(t_2−t_1). An unmeasured external flow of that constant mass rate is a further possibility when it was not included in J_out.
A repeated interval pattern gives a specific new check. Verify the mass instrument against an independent standard or measure the suspected outlet flux separately before identifying the cause. Working with integral residuals avoids constructing an instantaneous derivative from noisy endpoints, but measurement and flux-integration uncertainty still belong in their comparison. An interval mass residual detects a mismatch in the recorded budget. Related reading: [Amount and concentration in a mixing tank](https://live.ocw.mit.edu/courses/es-1803-differential-equations-spring-2024/mites_1803_s24_topic_full.pdf), [Verify a calculation against its stated equations](https://www.grc.nasa.gov/www/wind/valid/tutorial/verassess.html), [Define the measurand and specify its observation law](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337). The readings support counted mass balance, conservation checks and time-dependent instrument drift. The exact equal-residual sink/instrument example is an original identification boundary.
Track uncertainty from a fitted input
Consider a fixed rate k>0 and initial concentration c_0 known to the model. Let feed C be random across runs, constant in each run, with mean μ and variance σ_C² conditional on the declared pre-run information. At horizon t put θ=e^{−kt}. Solving the fixed-volume balance conditional on C gives X_t=θc_0+(1−θ)C.
Taking expectations over the possible feeds yields E X_t=θc_0+(1−θ)μ and Var(X_t)=(1−θ)²σ_C². At t=0 the feed contributes nothing because θ=1. As t grows the coefficient of C tends to one, so the variance tends to σ_C². These are true-state quantities before using a future readout.
If Y_t=X_t+ε_t with independent centered readout error of variance σ_R², then E Y_t=E X_t and Var(Y_t)=Var(X_t)+σ_R². The readout error does not enter the state balance. If one observes multiple times within a run, their feed-induced covariance is (1−e^{−ks})(1−e^{−kt})σ_C² because both depend on the same C.
A future scenario with a time-varying random feed would need its temporal law instead of one fixed unknown value. Keep modelled feed variability and readout variability separately in the assumptions. This determines whether an improved instrument, a better input estimate or a different observation time could meaningfully narrow the prediction being tested. Uncertain feed affects the future state, and instrument noise affects its reported value. Related reading: [Define the measurand and specify its observation law](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337), [Amount and concentration in a mixing tank](https://live.ocw.mit.edu/courses/es-1803-differential-equations-spring-2024/mites_1803_s24_topic_full.pdf). The source is relevant to defining the joint law of inputs and observations. The exact affine solution yields the dependence on t and a separate readout contribution by the lesson’s calculation.
Bound effects of uncertain parameters
For fixed c_0,C and t≥0 write f(k)=C+(c_0−C)e^{−kt}. Its derivative in k equals −t(c_0−C)e^{−kt}. Since k has units inverse time, the derivative has concentration times time as its units. Its sign is opposite that of c_0−C for t>0, so a positive interval [a,b] for k produces exact extreme concentrations at the endpoints.
For k_1,k_2∈[a,b], the mean-value theorem gives f(k_2)−f(k_1)=f′(ξ)(k_2−k_1) for an intermediate ξ unless the inputs coincide. For t≥0, |f′(ξ)|≤t|c_0−C|e^{−a t}. Therefore |f(k_2)−f(k_1)|≤t|c_0−C|e^{−a t}|k_2−k_1|, a finite bound in concentration units.
When t=0 or c_0=C the derivative vanishes for every k and the concentration data in that condition reveal no information about the rate. Otherwise its magnitude strictly decreases with k at fixed t>0. A derivative evaluated at a nominal k in the interval can understate the variation on the side of smaller rates. Sampling time matters because both t and the exponential factor contribute.
The interval shows what is supported by a declared deterministic range, with no presumed probability distribution for k. For a wide range or a nonlinear target such as a first hitting time, compute endpoints or bound derivatives over the whole admissible interval. A local estimate alone does not control the neglected higher-order terms or justify exclusion of a possible threshold event. A derivative over the whole allowed interval bounds the change in the prediction. Related reading: [Define the measurand and specify its observation law](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337), [The modelling process and iteration](https://www.siam.org/media/wwjd5o2k/gaimme-2nd-ed-final-online-viewing-color.pdf). The scope decision in metrology supports accounting for uncertainty in input quantities. The tight monotone endpoints and full-interval sensitivity bound follow by the mean-value theorem, beyond merely linearizing a nominal rate.
Design repeated observations to identify two variances
Across independent groups let X be the latent centered deviation, with finite variance τ². The paired readouts are Y_1=X+ε_1 and Y_2=X+ε_2. Assume the two errors are centered with common variance σ², independent of each other and of X. All deviations are in the same units. Replication is within one latent state, not two separate states.
The difference D=Y_1−Y_2=ε_1−ε_2 has variance 2σ², so half the population difference variance gives σ². The covariance of the paired readings expands as Var(X)+Cov(X,ε_2)+Cov(ε_1,X)+Cov(ε_1,ε_2)=τ². These two population moments jointly identify the two components under the stated design.
If the errors still have common variance but a shared covariance ρ, the same expansion gives Var(D)=2(σ²−ρ) and Cov(Y_1,Y_2)=τ²+ρ. These two quantities no longer identify all three unknown parameters. For example an extra centered shared sensor disturbance is observationally included in the latent component unless a distinct measurement identifies it.
Finite sample estimates of the two moments also have sampling uncertainty and can produce an imprecise estimated component. Suitable independent groups and different instrument calibrations can distinguish a true shared state from a shared readout error. The paired design should preserve the premise that X stayed essentially fixed during the pair or model its variation explicitly. Paired readings sharing one state can separate two variance components. Related reading: [Define the measurand and specify its observation law](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337), [Validation when observations share groups or ranges](https://www.biom.uni-freiburg.de/mitarbeiter/dormann/roberts-et-al-2017-ecography.pdf/at_download/file). The source explains repeated measurements and the consequences of grouped effects. The exact two-component covariance extraction and the correlated-error failure calculation are independent.
Use an interval for a threshold task
Let y be a reading for an unknown real state x and assume only |y−x|≤δ for a known δ≥0. Then x is in the closed interval [y−δ,y+δ], and every value there is compatible with some error satisfying the bound. The decision is whether x<b for a fixed threshold with the same units.
If y+δ<b, every compatible x is strictly below b. If y−δ≥b, every compatible x is at least b. In the remaining case y−δ<b≤y+δ, the interval has a value below b and includes b, so neither verdict holds for all compatible values. In particular an upper endpoint equal to b is not a certificate of strictly below.
If δ=0 the interval is a single point and the first two rules decide every case, including equality in the second. An independent physically admissible domain can narrow the interval using its intersection, but a contradiction between that domain and the instrument bound would be an evidence problem. Do not silently classify an empty feasible set.
The bound states which states are possible rather than how much probability each carries. A probability of being below b would need a distribution or calibrated conditional uncertainty law with relevant assumptions about measurement error and prior state information. Until then the inconclusive state is an exact consequence of the available bounds. Use the entire feasible reading interval when the task has a strict threshold. Related reading: [Define the measurand and specify its observation law](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337). The measurand and error-scope sources motivate matching measurement to a stated decision. The three branches and effects of equality are from the explicit deterministic bound. A distribution is needed for a probability.
Give observations a timing model
Assume a continuous nonincreasing concentration since time zero and two exact observations at times a<b with c(a)>u and c(b)≤u. Define τ as the first t≥0 with c(t)≤u. Monotonicity excludes earlier crossing before a, and existence at or before b follows because the endpoint is in the target set. Continuity makes the first attained value u and gives a<τ≤b under these premises.
An exponential model with fixed feed C and rate k>0 gives c(t)=C+(c_0−C)e^{−kt}. For a strict interior threshold C<u<c_0, solve c(t)=u to get τ=(1/k)log[(c_0−C)/(u−C)]. The log argument is dimensionless and greater than one. If u=C<c_0 there is no finite crossing, whereas if u≥c_0 the target is already met at time zero.
Straight-line interpolation of the two observed concentrations yields a+(b−a)(c(a)−u)/(c(a)−c(b)). It equals the crossing for a model with constant concentration rate on the interval. For a decreasing convex exponential, the graph lies below its chord, so the true threshold is attained no later than the interpolated time when both share exact endpoints.
Without the exponential assumption or another bound on rates or curvature, the observation interval is all that the values and monotone continuity certify. A clock offset or bounded reading error would need to be included when bracketing. Driven oscillation, concentration rebound and a threshold based on an unobserved location are distinct modelling questions. Time samples can bracket a crossing. An exact time depends on the model between them. Related reading: [Amount and concentration in a mixing tank](https://live.ocw.mit.edu/courses/es-1803-differential-equations-spring-2024/mites_1803_s24_topic_full.pdf), [Build and check simple rate models](https://ocw.mit.edu/courses/es-1803-differential-equations-spring-2024/mites_1803_s24_topic1.pdf), [Define the measurand and specify its observation law](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337). The sources provide timing context and a linear-rate model foundation. Monotonicity supplies the bracket and the original exponential and chord comparison explains interpolation and its limit.
Choose test groups before fitting
Suppose site g has observations Y_{gi}=μ+U_g+ε_{gi}. Let μ be the known common mean for this comparison. The U_g are independent across sites, centered with variance τ². The independent centered readout errors have variance σ² and are independent of all site effects. Within a site and for two distinct records, Cov(Y_{gi},Y_{gj})=τ². Across independent sites it is zero under the stated model.
For a new reading at a site with m previous records, consider predicting μ+w(Ȳ_g−μ) from the average of those records. Subtracting the factual new reading gives error (w−1)U_g+w ε̄_g−ε_new. The three terms are independent and centered, so its squared risk is (w−1)²τ²+w²σ²/m+σ².
Minimizing the quadratic gives w=τ²/(τ²+σ²/m) when the denominator is positive. The resulting risk is σ²+τ²(σ²/m)/(τ²+σ²/m). At a genuinely unseen site there are no previous records of its effect, so prediction by μ has squared risk σ²+τ². If τ²>0 this unseen-site risk exceeds the seen-site optimal linear risk. The new-site component persists regardless of how many repeated records exist at old sites.
A holdout row at a training site can validate prediction conditional on that site having been seen. To evaluate transfer to unseen sites, allocate entire site groups, collect representative new groups and restrict the features and fitting to information available at that decision. The simple variance formula explains why a random row split can produce an optimistically different reported risk. Split at the group level when a decision concerns unseen groups. Related reading: [Validation when observations share groups or ranges](https://www.biom.uni-freiburg.de/mitarbeiter/dormann/roberts-et-al-2017-ecography.pdf/at_download/file). The selected group-holdout discussion informs the design. The lesson separately derives the exact seen-site linear prediction risk and new-site risk, and does not infer unseen independence from within-group sample size.
Compare validation metrics with a tolerance
For n≥1 real signed errors e_i in a common unit, define B=n⁻¹Σ e_i, A=n⁻¹Σ|e_i| and R=(n⁻¹Σ e_i²)^{1/2}. By the triangle inequality |B|≤A. By Cauchy–Schwarz applied to the vector of |e_i| and the all-ones vector, (Σ|e_i|)²≤nΣ e_i², so A≤R.
The inequalities can be strict. For errors 4,−4,0,0 mg/L, signed mean error is zero, A=2 mg/L and R=√8 mg/L. Maximum absolute error is 4 mg/L. A criterion requiring every absolute error to be at most 3 mg/L fails even though bias is zero and both average magnitudes are below 3.
At a specified empirical set, R≤max_i|e_i| follows because each square is at most the maximum square. Conversely the maximum is at most √n R since its square is one nonnegative term in the full sum. A small RMS can therefore coexist with much larger individual errors when n is large. Equality in A≤R requires all |e_i| to be equal.
Choose the error summary and units to match the decision before tuning. Average accuracy, a quantile and a hard tolerance on every reading are different targets. Passing a finite empirical maximum supports a statement about those declared observations. A future guarantee requires additional coverage and uncertainty assumptions. Check the metric that corresponds to the declared tolerance. Related reading: [Validate against relevant observed conditions](https://standards.nasa.gov/sites/default/files/standards/NASA/B/1/NASA-STD-7009B-Final-3-5-2024.pdf), [The modelling process and iteration](https://www.siam.org/media/wwjd5o2k/gaimme-2nd-ed-final-online-viewing-color.pdf). The source supports testing against observed evidence at appropriate conditions and uncertainty. The inequalities and the equal-RMSE worked comparison are original, and a finite sample maximum has its own scope.
Use residual history to detect a missing pattern
Let a>0 be a residual amount per reporting interval and consider four equal intervals. Compare residual sequence A=(a,a,−a,−a) with B=(a,−a,a,−a). Both have signed mean zero, RMS a, maximum magnitude a and total sum zero. Along either sequence the same error magnitudes occur the same number of times.
However their partial sums differ. For the first two intervals the cumulative residual is 2a in A and zero in B. Across the four interval ends A traces a,2a,a,0 and B traces a,0,a,0. If one's output is a stock amount or if a decision is made before the full window closes, these temporally ordered sums affect the interpretation.
The average of the three adjacent signed products e_i e_{i+1} in A is (a²−a²+a²)/3=a²/3. In B each adjacent sign changes, so the average is −a². This is a directly defined finite statistic in squared units, not an inference that either series was sampled from a stationary process with that autocovariance.
Aligned signs over a relevant sequence may indicate a missing mass-balance component, because errors can accumulate rather than cancel. A lag statistic by itself does not identify a sink or determine a probability for the next interval. Use the observed order to choose a focused check on the sensor timing, forcing or omitted process. Repeated signed errors can accumulate even when their overall mean is zero. Related reading: [Validation when observations share groups or ranges](https://www.biom.uni-freiburg.de/mitarbeiter/dormann/roberts-et-al-2017-ecography.pdf/at_download/file), [Verify a calculation against its stated equations](https://www.grc.nasa.gov/www/wind/valid/tutorial/verassess.html). The source discusses order and dependence, while the exact pair of equal-RMSE residual series gives a finite cumulative and lag-product contrast. It does not diagnose a particular cause.
Test the range of transfer
Suppose observations use only a dimensionless input x∈[0,1]. Define f(x)=2x and g(x)=2x+3[(x−1)_+]², measured in the same output units. Here z_+=max(0,z). Then f and g coincide on the entire observed interval, including their one-sided derivative of 2 at x=1. At any x>1 their difference is 3(x−1)²>0.
If the readout noise law at each admitted input agrees for the two models, all held-out outcomes with x∈[0,1] have identical conditional laws under f and g. For a sequence of independent readout errors their joint laws there are identical by multiplication. Even without the independence premise one can explicitly give both models the same joint noise law, making the experiment uninformative about the difference.
If each candidate has an independently justified derivative bound L on [1,1+δ] in common units, then |f(x)−g(x)|≤|f(x)−f(1)|+|g(x)−g(1)|≤2L(x−1). A bound on their derivative difference, or a shared derivative and curvature bound, can improve this interval. Such restrictions are new premises and do not follow merely from agreement on [0,1].
A new observation at an admissible x>1 can discriminate if its uncertainty is sufficiently small relative to the difference. An independent mechanism that imposes the derivative bound can also narrow the prediction. State the original observed range whenever using a fit to make a transfer decision. A model may fit all past inputs and still leave extrapolation uncertain. Related reading: [Validation when observations share groups or ranges](https://www.biom.uni-freiburg.de/mitarbeiter/dormann/roberts-et-al-2017-ecography.pdf/at_download/file), [Define the measurand and specify its observation law](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337). The transfer sources distinguish sample structure from predictor overlap and note drift beyond the calibration range. The response functions and derivative-bound proof are independent examples.
Preserve the output that matters when simplifying
Take two fixed-volume models c′=k_j(C−c) for j=1,2 with k_1≠k_2 positive and a shared initial c_0>C. Both approach the same equilibrium C. Indeed their exact trajectories are c_j(t)=C+(c_0−C)e^{−k_j t}, which agree at the initial and limiting values even though their finite-time states differ.
For an interior threshold C<u<c_0, the arrival times are τ_j=ℓ/k_j, where ℓ=log[(c_0−C)/(u−C)]>0. If k_1<k_2 then τ_1>τ_2. For a decision deadline H lying strictly between them one model has reached the target and the other has not. Knowing only the common equilibrium cannot settle this finite-time choice.
Conversely, if the purpose is to predict a concentration within δ>0 of C at time H and both rates have a justified lower bound k_min>0, the largest deviation is at most |c_0−C|e^{−k_min H}. An equilibrium approximation is adequate for that tolerance whenever this upper bound is at most δ. This bound also separates the case of a threshold directly at C, which may be approached without being reached in finite time.
Simplify around the output and horizon that matter. Agreement on an equilibrium quantity is meaningful evidence for a settled-output prediction but leaves the transient rates and threshold times to be checked. Writing the error tolerance before making the reduction makes the extent of that simplification verifiable. Choose a simpler model according to the output and time horizon it must predict. Related reading: [Define the measurand and specify its observation law](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337), [Build and check simple rate models](https://ocw.mit.edu/courses/es-1803-differential-equations-spring-2024/mites_1803_s24_topic1.pdf), [The modelling process and iteration](https://www.siam.org/media/wwjd5o2k/gaimme-2nd-ed-final-online-viewing-color.pdf). The sources frame fitness for purpose and exponential relaxation. The exact shared equilibrium, distinct threshold times and sufficient finite-time tolerance condition are proved here.
Keep prediction separate from intervention
Let U and ε be independent centered variables of finite variance and suppose their laws are fixed. Under a natural observational regime Model A makes X=U and Y=αX+ε. Model B makes X=U and Y=αU+ε, with U directly driving the output. The observed vector in both cases is (U,αU+ε), so they share its entire joint observational law.
For example if Var(U)=v>0, Cov(X,Y)=αv and Var(Y)=α²v+Var(ε). Independence implies E(Y|X)=αX for this observational regime. Even with infinitely many samples from it, the observational law cannot say which structural equation produced the dependence because the same variables give the same joint vector.
Define setting X=x as replacing only its equation while preserving the rest of the mechanism and the exogenous variables' laws. Under A the post-setting mean of Y is αx. Under B the output still equals αU+ε with mean zero. For x_1≠x_0 and α≠0, the mean effect α(x_1−x_0) under A differs from zero under B.
Thus a prediction from observing a naturally selected X and a response to externally setting X answer different questions. To justify one intervention prediction a model needs a selective experiment or an independently supported structural assumption about what changes when X is set. The example poses an identification issue and assumes the intervention itself does not modify U or ε. A conditional observational prediction can differ from an outcome under an active setting. Related reading: [Structural equations and the effect of setting an input](https://ftp.cs.ucla.edu/pub/stat_ser/r350-reprint.pdf). The intervention definition and same-law identifiability criterion match the lesson’s exact construction. The two Gaussian models have identical observational distributions and different interventional means.
Check whether feedback changes an apparent effect
Consider a constant-volume tank with exchange removing solute at rate q c and a controllable source that injects solute mass per unit time without affecting the volume balance. Set the source to J=J_b+K(c_*−c) within its permitted unclipped range, with K≥0 in volume per time and concentrations in mass per volume. The concentration target c_* and baseline source J_b are given.
The mass balance is V c′=J_b+K c_*−(q+K)c. Divide by V>0 to set b=J_b/V, k=q/V and g=K/V. The affine equation is c′=b+g c_*−(k+g)c. If k+g>0 the state error relative to its equilibrium decays with exponential rate k+g. This is a model of changing an additive solute supply, separately from changing a volumetric flow.
The new equilibrium is c_eq=(b+g c_*)/(k+g), and the target error c_*−c_eq=(k c_*−b)/(k+g). Greater g speeds local return and reduces the absolute offset when k c_*≠b, but achieves exact zero offset at finite gain only if the numerator is already zero. If k+g=0 the homogeneous dynamics do not supply decay.
Clipping a commanded input, a delay, dependence on a noisy observation, or changing the volumetric exchange can change the governing law and its stability. For example, changing q affects the dilution term multiplicatively through C−c when it also changes feed flow. The affine conclusions only apply in the declared regime and require the specified physical actuation. A feedback rule enters the physical equation through the quantity it controls. Related reading: [Structural equations and the effect of setting an input](https://ftp.cs.ucla.edu/pub/stat_ser/r350-reprint.pdf), [Amount and concentration in a mixing tank](https://live.ocw.mit.edu/courses/es-1803-differential-equations-spring-2024/mites_1803_s24_topic_full.pdf). The mechanism replacement and balance contexts support separating additive solute actuation from volumetric feedback. The affine decay rate and target offset under the precise unclipped mass source are originally derived.
Separate variability within scenarios from uncertainty across them
Let scenario J take values 1 and 2 with probabilities p and 1−p on a stated horizon. Conditional on J=j let output Y have mean μ_j and variance v_j. The law is a mixture of two conditional laws, so E Y=pμ_1+(1−p)μ_2 by conditioning.
Using E(Y²|J=j)=v_j+μ_j², subtract the square of the mixture mean. This gives Var(Y)=p v_1+(1−p)v_2+p(1−p)(μ_1−μ_2)². The first terms describe within-scenario variability and the last describes variability of the conditional means. They have squared output units.
For a threshold b, P(Y>b)=pP(Y>b|J=1)+(1−p)P(Y>b|J=2). This follows because the two scenarios partition the probability space. If the outputs are 3 and 9 units with weights 3/4 and 1/4 and b=6, the actual exceedance is 1/4. The mean output 4.5 is below 6 and treating it as a deterministic replacement gives exceedance zero.
If an input is averaged before applying a nonlinear response, even the expected output may differ. For example scenario inputs 0 and 2 with equal weights yield E[X²]=2 while (E X)²=1. A probability for scenarios needs a justified stochastic premise or a stated assignment for a conditional analysis. If only possible scenarios are known, separate intervals or scenario outcomes can be retained without a probability average. Combine scenario-specific laws only under declared scenario probabilities. Related reading: [Define the measurand and specify its observation law](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337), [The modelling process and iteration](https://www.siam.org/media/wwjd5o2k/gaimme-2nd-ed-final-online-viewing-color.pdf). The statistical source supports specifying the joint observation law. Mixture variance, threshold weighting, and failure of averaging before a nonlinear response are all separate exact derivations.
Treat actions as constrained choices
Let a fixed positive-volume tank start at concentration c_0 above a constant input concentration C. Choose a constant flow q∈[0,Q] for a given time H>0. The target is c(H)≤u with C<u<c_0, and cost is a positive multiple of q for this fixed H. Under the mixing law c(H)−C=(c_0−C)e^{−qH/V}.
Dividing by c_0−C>0 and using the increasing logarithm gives −qH/V≤log[(u−C)/(c_0−C)]. Thus q≥q_*= (V/H)log[(c_0−C)/(u−C)]. The ratio inside the logarithm is dimensionless and greater than one. The factor V/H gives the proper flow units.
The feasible set is [q_*,Q] exactly when Q≥q_*. It is empty if Q<q_*. Strictly increasing cost is minimized at the left endpoint since every larger q costs more at the same time horizon. Equality Q=q_* is feasible and meets the stated threshold exactly. If the threshold were strict, one would check the open endpoint and an infimum could replace an attained optimum.
The result optimizes the stated constant-flow model and cost only. If measurement, mixing, variable flow or the reachable tank domain impose additional restrictions, they become part of the feasible set. Distinguishing feasibility from an optimum prevents claiming an attainable recommendation when no flow allowed by the scenario can meet the target. Establish whether the target is reachable before optimizing the cost. Related reading: [The modelling process and iteration](https://www.siam.org/media/wwjd5o2k/gaimme-2nd-ed-final-online-viewing-color.pdf), [Amount and concentration in a mixing tank](https://live.ocw.mit.edu/courses/es-1803-differential-equations-spring-2024/mites_1803_s24_topic_full.pdf). The goal-and-assumption source motivates an explicit modelling task. The constrained flow solution comes from the exact mass model under a fixed horizon, fee and flow range.
Test whether a choice is robust to its assumptions
Suppose outputs A and B, to be maximized, have exact attainable closed intervals [a_−,a_+] and [b_−,b_+] on the declared uncertainty sets. If every pair of values can occur independently across alternatives, A exceeds B for every pair precisely when a_−>b_+. Sufficiency follows from the endpoints. Necessity follows because the pair (a_−,b_+) is admissible.
If the intervals only bound possible outputs without asserting their extremes occur, the same disjointness test is sufficient, and failure of the test need not make the order ambiguous. Similarly a_−=b_+ under jointly attainable endpoints gives weak dominance at the boundary, not strict dominance. Keep the intended comparison strictness explicit.
For a shared input u∈[0,2] consider A(u)=u+1 and B(u)=u. The separate intervals are [1,3] and [0,2], which overlap. Yet A(u)−B(u)=1 for every shared u. Comparing endpoints across unrelated u would allow combinations not admitted by the same experiment. The coupled difference gives the exact robust ranking in this example.
If one has a deterministic error bound on each predicted output, it can be carried into a lower bound on the difference. A strict positive lower bound then certifies the ranking at the specified uncertainty scale. An overlap from a conservative comparison instead suggests checking common dependence or measuring what matters to the difference. Use the difference at shared inputs to assess whether a ranking can reverse. Related reading: [Define the measurand and specify its observation law](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337), [The modelling process and iteration](https://www.siam.org/media/wwjd5o2k/gaimme-2nd-ed-final-online-viewing-color.pdf). The source framing concerns fit for task and consequential uncertainty. The independent range criterion and shared-dependence counterexample are original. Overlap of separate intervals is not conclusive under a common input.
Reject a misleading improvement on the fitting data
Let model class A be contained in class B, and use the same training sum of squared residuals and outcomes. Since every candidate in A is available in B, the minimum over B is at most the minimum over A when both minima exist. This inequality refers only to the data and loss used in fitting.
Consider training data (0,0),(1,2). In the constant class, the least-squares prediction is the mean 1 with residuals 1 and −1, so its training sum of squares is 2. The affine line 2x passes through both distinct inputs and is the unique affine fit with training sum zero.
At validation inputs (0.5,1) and (2,1), using ordered pairs of input and observed output, the constant yields zero held-out sum of squares. The line predicts 1 and 4. Its error vector is (0,3), giving held-out sum 9. The smaller training loss therefore does not imply smaller validation loss even with an unchanged squared metric.
Compute errors separately for the data used to fit and the data held out beforehand. The threshold uses the declared mean absolute error alone, while the mean squared errors describe a different weighting of mistakes. Equality meets the weak inequality.
| Quantity | Exact result |
|---|---|
| Training MAE A / B | (0, 1) |
| Training RMSE squared A / B | (0, 1) |
| Held-out MAE A / B | (2, 1) |
| Held-out RMSE squared A / B | (4, 1) |
| Acceptance | B |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| fit | [[1,1,2],[3,3,2]] |
| test | [[1,3,2],[3,1,4]] |
| tol | 1 |
Treat the validation target, observations and loss as a separate declared test. Comparing models after changing the holdout definition can change the estimand, and repeated selection using held-out outcomes turns them into part of the selection information. A meaningful new check preserves the target and uses appropriate independent evidence. Compare model variants on evidence that was outside their fit. Related reading: [Validation when observations share groups or ranges](https://www.biom.uni-freiburg.de/mitarbeiter/dormann/roberts-et-al-2017-ecography.pdf/at_download/file). The cross-validation study distinguishes model selection and new data performance. The nested least-squares example gives an exact training improvement and held-out reversal under the declared split and objective.
Make a revision comparison traceable
Let two versions of an amount balance use M′=u(t)−kM−s_j for j=1,2, with the same measured input u, rate k>0 and initial mass. Only the fixed mass-rate sink s_j differs. On a fixed observed path M over I=[a,b], use R_j=ΔM−∫_I[u−kM−s_j]dt. Then R_2−R_1=(s_2−s_1)(b−a), since every shared term cancels.
If comparing each model's own predicted path from the same start, the difference D=M_2−M_1 obeys D′=−kD−(s_2−s_1), D(0)=0. Hence D(t)=−(s_2−s_1)(1−e^{−kt})/k. This contrasts endpoint predictions through the stated physical change and agrees with the residual sign when the second candidate removes more mass.
With observation equation Y_j(t)=M_j(t)+b_j and independent exact time t>0, observed difference is D(t)+b_2−b_1. At a single t, choosing b_2−b_1=−D(t) masks the physical change exactly. With a stable unknown offset, multiple times may distinguish the time-varying difference, or a separately calibrated offset can remove it.
A comparison can attribute the revision to the sink only when the observation map, clock, input and evaluation target are held fixed or explicitly adjusted. Document which version of each is in the comparison. If a new instrument calibration also changed, test the calibration effect distinctly before interpreting a better residual as support for the revised mechanism. Hold the observation conditions fixed when comparing an equation revision. Related reading: [The modelling process and iteration](https://www.siam.org/media/wwjd5o2k/gaimme-2nd-ed-final-online-viewing-color.pdf), [Define the measurand and specify its observation law](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337), [Validate against relevant observed conditions](https://standards.nasa.gov/sites/default/files/standards/NASA/B/1/NASA-STD-7009B-Final-3-5-2024.pdf). Iteration, instrument drift and uncertainty motivate tracking those changes. The changed-sink difference and its masking by a changed offset at one time are direct consequences of the original pair of models.
Turn validation failure into a targeted new question
Let the latent model imply state value x_m at a declared horizon and let a verified numerical output n obey |n−x_m|≤δ_n. Let the real sensor reading y satisfy |y−x_true|≤δ_y. Both error bounds are for the same target, time and units. If the stated model is correct for this situation, x_true=x_m.
Under those joint premises the triangle inequality gives |y−n|≤|y−x_true|+|x_m−n|≤δ_y+δ_n. Equivalently the sensor and numerical intervals must intersect. A residual larger than the sum contradicts the joint assumptions because the two possible latent value intervals are then disjoint.
If they do intersect, agreement with that tested bound is possible, but a single interval intersection does not establish a mechanism or predict a new experiment. If input, clock or initial condition has independently quantified uncertainty, propagate it as a further bound or change the set of admissible x_m before testing. A statistically stated coverage probability also needs its own interpretation.
On a genuine violation, choose a check aimed at the weakest premise from the record. For instance a spatial pair of calibrated samples tests the mixing simplification, whereas a reference measurement tests the readout bound. The scalar residual is evidence against the complete set of assumptions and cannot alone identify which premise failed. Use known numerical and instrument bounds to ask which assumptions a residual challenges. Related reading: [Verify a calculation against its stated equations](https://www.grc.nasa.gov/www/wind/valid/tutorial/verassess.html), [Validate against relevant observed conditions](https://standards.nasa.gov/sites/default/files/standards/NASA/B/1/NASA-STD-7009B-Final-3-5-2024.pdf), [Define the measurand and specify its observation law](https://www.bipm.org/documents/20126/2071204/JCGM_GUM_6_2020.pdf/d4e77d99-3870-0908-ff37-c1b6a230a337). The source distinction between approximate solution and measurements supports the premise. The specific deterministic rejection threshold is proved by triangle inequality and cannot assign the discrepancy to a single cause.
Close the modelling cycle for a bounded prediction
For c′=k(C−c), c_0>C and C<u<c_0, define ℓ=log[(c_0−C)/(u−C)]>0. The first arrival under the model is τ(k)=ℓ/k. If independent information only bounds the constant k∈[a,b] with 0<a≤b, monotonicity in k gives the exact prediction interval [ℓ/b,ℓ/a]. It is a set of possible times in declared units, not a probability interval.
If a=0 with admissible arbitrarily small positive rates, τ has no finite upper bound, and the zero-rate trajectory never reaches the interior threshold. If u=C<c_0, even positive k only approaches C and the finite crossing is absent. For u≥c_0 the target is met at time zero. The prediction must report these branches before using a finite time window for a decision.
An independently timed and calibrated transient measurement x(s) at s>0 gives the ratio r=(x(s)−C)/(c_0−C). For an exact consistent 0<r<1, solving k=−log(r)/s narrows the rate to one value within the model. With bounded reading error, map the compatible positive ratio interval through the decreasing logarithm and intersect with [a,b]. A component outside the admitted range signals incompatible assumptions, not a new fit automatically.
Use an observation reserved for testing, or measure outlet and bulk concentrations independently, before generalizing to a new run. For a declared time tolerance δ a prediction interval outside the decision's allowable region may justify a new experiment even if the equation still fits. Keep the old model, retired premises, numerical evidence and new test target so that a revision can be assessed under the same question. Return from a bounded prediction to an experiment or a decision about its use. Related reading: [The modelling process and iteration](https://www.siam.org/media/wwjd5o2k/gaimme-2nd-ed-final-online-viewing-color.pdf), [Amount and concentration in a mixing tank](https://live.ocw.mit.edu/courses/es-1803-differential-equations-spring-2024/mites_1803_s24_topic_full.pdf), [Validate against relevant observed conditions](https://standards.nasa.gov/sites/default/files/standards/NASA/B/1/NASA-STD-7009B-Final-3-5-2024.pdf). The iterative model assessment source supports the overall progression. The tank case closes it with an exact rate-to-time interval, domain cases, independent testing and a described revision decision.
Compare model boundaries, measurements, identification, stability and held-out prediction with the units and assumptions declared for every test.
Net amount and concentration have different equations
Constant volume still allows a changing amount
The well-mixed outlet has the current tank concentration. Differentiate M=Vc and subtract c times the changing volume before dividing by V. The outlet terms cancel from the concentration derivative because both stock and volume are lost in the same ratio.
| Quantity | Exact result |
|---|---|
| Volume rate | 0 volume/time |
| Inlet solute flux | 5 mass/time |
| Outlet solute flux | 20 mass/time |
| Amount rate | −15 mass/time |
| Concentration rate | −3/20 mass/(volume·time) |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| V | 100 |
| c | 4 |
| ci | 1 |
| Qin | 5 |
| Qout | 5 |
An averaging instrument measures a window, not an instant
A falling concentration makes the window reading exceed its right endpoint
The instrument averages the complete signal over its exposure duration. Integrate e^(−kt) over the stated endpoints. A falling signal has average above the right endpoint; a rising signal reverses the sign.
| Quantity | Exact result |
|---|---|
| Left and right times | (0, 1) |
| Exact left value | 1 + 3 e^(−0) |
| Exact right value | 1 + 3 e^(−1) |
| Exact window mean | 1 + (3)(e^(−0)−e^(−1)) |
| Mean minus right endpoint | 1 + (3)(e^(−0)−e^(−1)) − (1 + 3 e^(−1)) |
| Rounded signed difference | 0.7927234 |
| Limit as h↓0 | Window average tends to c(s). |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| b | 1 |
| d | 3 |
| k | 1 |
| s | 0 |
| h | 1 |
Repeated readings are not necessarily identifying
Distinct inputs separate intercept and slope
Compute centered x variation. It vanishes if every input is the same. With nonzero x variation, the normal equations give slope as centered cross-product divided by centered sum of squares, and the intercept enforces the fitted mean.
| Quantity | Exact result |
|---|---|
| Design rank | 2 |
| Intercept and slope | (2, 2) |
| Fitted outputs | [2, 4, 6] |
| Residuals (observed minus fitted) | [0, 0, 0] |
| Residual sum of squares | 0 |
| Unidentified direction | None in the linear design |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| x | [0,1,2] |
| y | [2,4,6] |
A threshold can lie outside a tank’s reachable concentrations
A reachable level has a finite crossing
Classify the initial value and the asymptotic level before taking logarithms. On the declining branch there is exactly one finite crossing only when the threshold lies strictly between the initial value and the asymptotic value.
| Quantity | Exact result |
|---|---|
| Threshold and equilibrium | (2, 1) |
| Initially at or below target | No |
| Finite time | log(4)/2 |
| Rounded time | 0.6931472 |
| Long-run concentration | 1 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| b | 1 |
| c0 | 5 |
| k | 2 |
| g | 2 |
A bounded numerical trajectory and a stable recurrence have distinct conditions
A positive and stable numerical trajectory
The positivity requirement is 1−kh≥0 for positive initial stock. The strict asymptotic decay requirement is |1−kh|<1. These are different inequalities on the same step parameter.
| Quantity | Exact result |
|---|---|
| k h | 1/2 |
| Numerical multiplier | 1/2 |
| States at n=0,…,4 | [4, 2, 1, 1/2, 1/4] |
| Exact sampled law | 4 e^(−1/2n) |
| Nonnegativity for this positive initial state | Yes |
| Asymptotically stable | Yes |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| k | 1 |
| h | 1/2 |
| c0 | 4 |
A fitted improvement can fail a predeclared validation tolerance
Winner on training loses on held-out data
Compute errors separately for the data used to fit and the data held out beforehand. The threshold uses the declared mean absolute error alone, while the mean squared errors describe a different weighting of mistakes. Equality meets the weak inequality.
| Quantity | Exact result |
|---|---|
| Training MAE A / B | (0, 1) |
| Training RMSE squared A / B | (0, 1) |
| Held-out MAE A / B | (2, 1) |
| Held-out RMSE squared A / B | (4, 1) |
| Acceptance | B |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| fit | [[1,1,2],[3,3,2]] |
| test | [[1,3,2],[3,1,4]] |
| tol | 1 |
Worked examples
A flushing question with units
A 200 L well-mixed tank has concentration 6 g/L and receives solute-free feed at 10 L/min with equal outflow. Find its mass balance, concentration after 20 min, time to reach 2 g/L, and one actual measurement you would use to test the tank assumption.
- The feed carries no solute. In the well-mixed model the outlet removes (10 L/min)c(t) grams per minute. Equal flows fix V=200 L, and M(0)=200·6=1200 g. Thus M′=−M/20 in grams per minute, with t expressed in minutes.
- Multiplying by e^{t/20} shows M(t)=1200e^{−t/20} g. Dividing by volume gives c(t)=6e^{−t/20} g/L, so after 20 min the exact value is 6/e≈2.21 g/L. The positive rate and pure-water feed imply strictly decreasing c from the stated initial value.
- Solving c(t)=2 gives e^{−t/20}=1/3. The equation's solution t=20 log 3 min is the first arrival because c is continuous and decreasing. It is later than 20 min, as the concentration at that time is still above the threshold.
- Measure outlet concentration and a calibrated internal sample at the same age after starting the feed. Persistent differences beyond the intended error tolerance challenge the claim that the outlet always samples the same concentration as the bulk. The exponential solution alone tests the consequences of the proposed mixing law.
M(t)=1200e^{−t/20} g and c(20)=6/e≈2.21 g/L. The first time at 2 g/L is 20 log 3≈21.97 min.
Revising a concentration equation for a changing volume
A well-mixed 90 L tank initially has 30 g of solute. Feed at 5 L/min contains 2 g/L and leaves at 2 L/min. For the first 10 min derive V, c and M and calculate them at 10 min. Check the signs against the declared mass balance.
- The volume increases at 5−2=3 L/min. The incoming mass rate is 5·2=10 g/min, while the exiting rate is 2c(t) g/min. Thus V(t)=90+3t and M′=10−2c. The initial concentration is 30/90=1/3 g/L.
- Using M=Vc in the two rates gives Vc′+3c=10−2c. Hence c′=5(2−c)/(90+3t). It is convenient to integrate the deficit d=2−c, which satisfies d′=−5d/(90+3t), d(0)=5/3. The exponent is −(5/3) log[(90+3t)/90].
- At 10 min the ratio 90/V is 3/4, so c=2−(5/3)(3/4)^{5/3}. The amount is 240−200(3/4)^{5/3} g. The power is about 0.619, giving c≈0.968 g/L and M≈116.2 g. All concentrations lie below the feed and increase while the volume is positive.
- As a balance check the predicted outlet rate grows from 2/3 g/min to about 1.94 g/min, so the excess of input over output is always positive in the interval. The predicted mass gain about 86.2 g lies between 10 times those maximum and minimum net rates, with the minimum net rate about 8.06 g/min.
V(t)=90+3t L, c(t)=2−(5/3)[90/(90+3t)]^{5/3} g/L and M(t)=V(t)c(t). At 10 min V=120 L, c≈0.968 g/L and M≈116.2 g.
Average or spot reading
The latent sensor signal is 20+4 cos(πt/6) mg/L, with t in hours. Compare the readings at t=0,12,24 with the 24-hour mean and the mean over 0≤t≤3. If noise is centered with standard deviation 2 mg/L and readings at each chosen instant are repeated independently four times, quantify the readout standard deviation of the replicate mean.
- The cosine has frequency π/6 radians per hour and period 12 hours. At t=0,12,24 the three phases are multiples of 2π, so each exact spot reading is 20+4=24 mg/L. Those observations all revisit the same phase.
- Over 24 hours the integral of the cosine vanishes because the interval covers two complete periods. Dividing the signal integral by 24 therefore gives 20 mg/L. Replicating the punctual observations only reduces readout variance and does not alter the latent phase that the schedule samples.
- Over the window [0,3] the average is 20+(4/3)(6/π)[sin(π/2)−sin 0]=20+8/π mg/L, about 22.55. This is below the 0-hour value because the cosine descends from one to zero over the window. A time-integrating instrument and a spot instrument measure different quantities.
- For four independent centered measurement errors with standard deviation 2 mg/L, the error variance of their mean is 4·4/16=1 (mg/L)², so its standard deviation is 1 mg/L. This calculation is conditional on one fixed instant and quantifies readout noise, not the between-phase variation.
The spot readings are all 24 mg/L, the full 24-hour mean is 20 mg/L, the first three-hour mean is 20+8/π≈22.55 mg/L, and the readout standard deviation for a four-repeat mean is 1 mg/L.
What one equilibrium does not identify
A concentration follows c′=s−kc with s≥0 g/(L min) and k>0 min⁻¹. One equilibrium is 5 g/L. Construct two distinct fitted parameter pairs giving half-lives ln(2)/0.1 and ln(2)/0.2 minutes. After a reset to 1 g/L calculate each c(10) and name a new observation capable of distinguishing them under the assumed equation.
- At equilibrium s−5k=0, so s=5k with k in min⁻¹ and s in g/(L min). Both chosen positive rates give the observed equilibrium without needing equal half-lives. Deviations from equilibrium decay as e^{−kt}, so the half-lives are log(2)/0.1 and log(2)/0.2 min.
- After resetting the tank to c_0=1 g/L and leaving both mechanisms otherwise unchanged, the solution of either model is c(t)=5−4e^{−kt}. Substituting 10 min gives exponents −1 and −2, with the higher k reaching nearer 5 sooner.
- The two predictions differ by 4(e^{−1}−e^{−2}) g/L, approximately 0.93 g/L. An independent calibrated non-equilibrium measurement around 10 min could discriminate if the input and initial state are held as assumed and its error is small enough relative to the gap.
- Another equilibrium measurement at the original conditions cannot distinguish these exact parameter pairs even if it removes readout error. One could also add a known production amount per time and compare the new equilibrium under an explicitly unchanged k, which would test a different assumption about the experiment.
The fitted pairs are (s,k)=(0.5,0.1) and (1,0.2) in rate units. After 10 min from 1 g/L the predicted concentrations are 5−4/e≈3.53 and 5−4/e²≈4.46 g/L.
Verification at two time steps
Use c′=−0.2c, c(0)=8 g/L and horizon 5 min. Compute the exact value and forward Euler values for h=1 and h=0.5 min. Compute their absolute errors and ratio. Apply the two stability/boundedness tests at h=7.5 min with the same decay model and discuss the first step.
- The exact model c′=−0.2c yields c(5)=8e^{−1}. Each Euler step multiplies concentration by 1−0.2h. The first approximation uses five factors 0.8 and gives 8(0.8)^5=2.62144 g/L. The second uses ten factors 0.9 and gives 8(0.9)^10≈2.78943 g/L.
- Subtracting each from 8/e yields the two positive absolute errors, approximately 0.32160 and 0.15361 g/L. Their ratio is approximately 2.09. This is consistent with first-order refinement at the same physical time for this exact model and horizon.
- The nonnegative bound requires h≤1/0.2=5 min for positive steps. Asymptotic magnitude decay requires h<2/0.2=10 min. For h=7.5 min the multiplier is −0.5, so the scheme satisfies magnitude decay but its first output −4 g/L is physically impossible for pure flushing from a positive start.
- The 7.5 min step is a separate stability illustration because it does not land on the original 5 min comparison grid. The two verification clocks for the reported errors do land on the same horizon. With a conserved or nonnegative state, numerical stability alone leaves an independent physical check.
At 5 min the exact c=8/e≈2.9430 g/L. Euler gives 2.62144 at h=1 and 2.78943 at h=0.5, with errors about 0.32160 and 0.15361 g/L, a ratio about 2.09. A separate 7.5 min step sends 8 to −4 g/L.
How much error comes from feed uncertainty
A fixed-volume well-mixed tank has initial concentration 2 g/L and k=0.1 min⁻¹. Feed concentration is constant within a run and equals 3 or 5 g/L with equal chances. The independent readout has zero mean and variance 0.04 (g/L)². Derive the mean and variance of the true state and of the readout at 10 min, and find the true probability of exceeding 3.5 g/L.
- The common decay weight is θ=e^{−0.1·10}=e^{−1}. Conditional on the constant feed input C, the true concentration is X=2θ+(1−θ)C. The two feeds have mean 4 g/L and variance 1 (g/L)².
- Taking the mean gives 2θ+4(1−θ)=4−2θ, about 3.264 g/L. Only the random feed contributes at the true-state level, giving variance (1−θ)²≈0.3996 (g/L)². The coefficient that transfers variation in the feed to the state is 1−θ.
- The readout Y=X+ε adds a centered independent instrument deviation. Its expectation is unchanged and its variance is approximately 0.4396 (g/L)² by adding the independent 0.04. Without the noise distribution, the true-state threshold probability below does not also give the readout threshold probability.
- For C=3 the true value is 3−θ≈2.632, below 3.5. For C=5 it is 5−3θ≈3.896, above 3.5. Each has probability one half under the specified input model. The exceedance cannot be decided by comparing just the average true concentration to 3.5.
At 10 min E X=4−2/e g/L and Var(X)=(1−1/e)² (g/L)². Readout has the same mean and variance (1−1/e)²+0.04 (g/L)². The true exceedance probability at 3.5 g/L is 1/2.
Learn variance from pairs
Across independent sites a centered latent deviation has unknown variance τ². Two same-visit readouts add independent centered errors of common unknown variance σ² independent of the deviation. Suppose the population covariance of readings is 9 (mg/L)² and variance of their difference is 8 (mg/L)². Find both variances, variance of the within-site mean, and what errors still remain at an unseen site.
- Each reading is X+ε_i for the same centered site deviation X. Covariance of the two readings is Var(X) because the two errors are independent of X and of one another. Thus τ²=9 (mg/L)².
- The reading difference is ε_1−ε_2, with variance 2σ². With difference variance 8 (mg/L)², divide by two to obtain σ²=4 (mg/L)². The factor two comes from independent errors from both readings.
- The pair mean is X+(ε_1+ε_2)/2. Its variance is τ²+σ²/2=11 (mg/L)². This amount includes 9 from group-to-group variation and 2 from the readout. A new pair within the same fixed state would instead have conditional variance 2.
- At an unseen site the latent deviation is still unknown. A new single reading there contains both variance components, giving 13 (mg/L)². Group replication helps estimate a stable instrument variance and the distribution of sites, but does not reveal the actual latent deviation of an unmeasured site.
Latent variance is 9 (mg/L)² and individual readout variance is 4 (mg/L)². The pair mean has variance 11 (mg/L)² across sites.
Check a held-out tolerance
Two models give signed errors (prediction minus observation) (0, 0, 0, 4) and (2, −2, 2, −2) mg/L on four held-out readings. Compare bias, MAE, RMSE and maximum absolute error. Which passes a requirement of absolute error at most 2.5 mg/L on every one of these readings, and what does that prove about future readings?
- For A the four absolute errors sum to 4, so the MAE is 1 mg/L. Its signed sum is also 4, giving the same bias. The squares sum to 16 in squared units, giving RMSE √(16/4)=2 mg/L. The maximum absolute error is 4 mg/L.
- For B the positive and negative errors cancel in the mean. Every magnitude is 2 mg/L, so the MAE and RMSE both equal 2 mg/L and the maximum also equals 2 mg/L. Here equal RMSE across two models does not imply equal suitability for an all-observations tolerance.
- Because 4>2.5, A fails on its fourth observation. Because 2≤2.5, B passes at every one of the four observations. If the criterion had instead picked the lower MAE alone, it would have chosen A for this data set.
- The pass applies to the specified observations and loss. This finite test does not guarantee a bound on the largest future error. Transfer requires a matching population, observation process and credible evidence about future error variation.
Model A has bias 1, MAE 1, RMSE 2 and maximum absolute error 4 mg/L. Model B has bias 0, MAE 2, RMSE 2 and maximum 2 mg/L. Only B passes the given held-out tolerance.
Find a boundary crossing with limited observations
A well-mixed tank goes from 8 toward feed 2 g/L under k=0.1 min⁻¹. Instrument-free exact observations are made at 0, 5, 10 and 15 min. Compute the earliest time it reaches 4 g/L, indicate which observation times bracket it and calculate a linear interpolation of the crossing from those two values. Explain the observation-only and model-based evidence.
- The exact decaying state is 2+6e^{−t/10} g/L. Equality to 4 requires e^{−t/10}=1/3, giving 10 log 3 min. The feed is below 4, so this time exists, and strict decay from 8 makes it the first time.
- At 10 min the model gives 2+6/e≈4.2073 g/L, still above the target. At 15 min it gives 2+6e^{−1.5}≈3.3388 g/L, below. Under known monotonic continuity those measured values alone give a first crossing after 10 and at or before 15 min.
- The straight-line estimate is 10+5[(2+6/e)−4]/[(2+6/e)−(2+6e^{−1.5})] min. The two differences are approximately 0.2073 and 0.8685 g/L, giving 11.19 min. For the convex decreasing exact model its chord lies above the curve, so this estimate is later than the true crossing.
- Refining the observation intervals can narrow the observation-only bracket. A precise time within that bracket needs a model of concentration change, as supplied by the predicted exponential or the chord assumption. Separate these when deciding if an instrument schedule is adequate for a threshold check.
The exact first crossing is 10 log 3≈10.986 min, bracketed by 10 and 15 min. Linear interpolation from the exact endpoint readings gives approximately 11.19 min.
A resource decision with a bound
A 120 L tank starts at 8 g/L and receives solute-free feed with equal outflow. Choose a constant q in [0,10] L/min for 30 min so that the concentration is at most 1 g/L by 30 min. Find the least-cost feasible flow when cost is proportional to q. Derive required q, check feasibility, and retest feasibility for q at most 8 L/min.
- The constant-volume balance gives c(30)=8e^{−30q/120}=8e^{−q/4} g/L when q is expressed in L/min. Require c(30)≤1 g/L. Dividing by 8 and taking logarithms gives q/4≥log 8, where the time and volume ratio was used to form a dimensionless exponent.
- Cost increases with q at the specified 30 min. The smallest feasible q is therefore 4 log 8 L/min, giving equality to 1 g/L at that horizon. Since log 8≈2.07944, this requires about 8.3178 L/min.
- Under the 10 L/min bound it is feasible. Under the 8 L/min bound the best available concentration is c(30)=8e^{−2}≈1.083 g/L, still above the target. A change of the selected operating range or horizon would be a different decision problem.
- This optimizes constant flow for a fixed deadline under the stated cost and well-mixed model. A different objective of shortest arrival time would use the largest allowed feasible flow. Real changes in mixing quality with q would also need evidence before this exact mathematical optimum could be applied.
The minimum flow for the fixed 30 min target is 4 log 8≈8.32 L/min. It is feasible with a 10 L/min maximum and infeasible with an 8 L/min maximum.
Same observational law, different effects
Let U and ε be independent centered normals with variances 1 and 4. Model A has X=U, Y=3X+ε. Model B has X=U, Y=3U+ε. Derive the observational covariance and both observational conditional means. Compare mean outcomes when X is externally set to 2 without changing U and ε.
- In the observed regime X=U in both cases. The paired vector is (U,3U+ε), with means zero. The covariance is 3 Var(U)=3. Independence gives the output variance 9 Var(U)+Var(ε)=13, and Var(X)=1, so the entire observation covariance matrix is [[1,3],[3,13]].
- Independence and centering of ε give E(Y|X)=3X for the observational law. The two equations therefore make identical observational predictions, including this regression line and covariance. Gaussianity additionally makes the joint normal law the same.
- Under an intervention that replaces only the equation for X, Model A now gives Y=3·2+ε. Its expected value is 6 and its variance is 4. In Model B the output equation continues to use U, so its expected value stays zero and its variance remains 13.
- The intervention is a premise about what fixing X changes. Treating a naturally observed X=2 via the conditional law would give mean 6 in both models, even though the active setting gives different predictions. The same observational evidence cannot select the required mechanism by itself.
Both observational laws have Cov(X,Y)=3, Var(Y)=13 and E(Y|X)=3X. Setting X to 2 gives mean 6 in A and mean 0 in B.
Write a revision decision with numbers
A 96 L tank has stable constant q=8 L/min, starts at 6 g/L and is flushed by pure water. A verified prediction for t=12 has absolute numerical error at most 0.03 g/L relative to the stated model. The actual reported reading 2.46 g/L has a known absolute instrument error at most 0.04 g/L. Independently measured initial concentration and exchange rate are as stated. Compute the permitted residual bound, use the exact model to adjudicate that reading, and say what a second outlet or mixed sample would test.
- The declared exchange is k=q/V=8/96=1/12 min⁻¹, so the exact concentration at 12 min is 6e^{−1}≈2.2073 g/L. Let n be the verified numerical prediction and y=2.46 g/L. If the true state equaled this model, the combined discrepancy would satisfy |y−n|≤0.04+0.03=0.07 g/L.
- The observed difference from the exact state is 2.46−6/e≈0.2527 g/L, which already exceeds the instrument bound alone. Moreover every n within 0.03 of the exact state has |y−n|≥0.2527−0.03≈0.2227 g/L, still greater than 0.07. The result does not depend on an unreported numerical point value.
- Thus the verified numerical precision and calibrated instrument tolerance cannot account for this reading under the stated input, initial state and exact well-mixed law. It rejects the joint assumptions at this particular test. Identifying exactly which assumption failed needs more than the sum of bounds.
- A simultaneous adequately calibrated reading at the outlet and at an independent bulk location tests the equality assigned to them by the mixing model. Checking for a measured uncounted inflow or loss would test a different premise. Keep the time and calibration conditions so the next comparison is informative.
The joint instrument and numerical residual bound is 0.07 g/L. The exact predicted state is 6/e≈2.2073 g/L and its gap from the reading is about 0.2527 g/L, which violates the stated assumptions.
Try it yourself
A threshold trigger fires if the true nonnegative output is greater than 5 units. Compare model A with constant output 4, and model B with equal chances of 0 and 8. Compute both means and standard deviations, and state the trigger rates and the modelling target.
Show the answer and reasoning
Both means are 4 units. Model A has standard deviation zero and trigger probability zero. Model B has standard deviation 4 units and trigger probability one half.
Model A is concentrated at a single value, so its expectation is 4 and its deviation from that mean is zero. The value 4 is at most 5, so its strict trigger never fires. For model B the equally weighted mean of 0 and 8 is 4. The two deviations from that mean are −4 and 4. The mean of their squares is 16 in squared units, giving standard deviation 4 units. Exactly the value 8 exceeds 5 under B, giving probability one half for the strict trigger. No equality case occurs for these two laws. Equal mean is insufficient to determine this probability. The modelling target is the probability of the decision event for a new observation of the true output under its declared law. A threshold on the model's mean would be a different target and would suppress the difference between these two possible outputs.
A cell initially holds 100 g of a tracked solute. Hourly inflow, external outflow and internal production rates are 5, 2 and 1 g/h for three hours. Compute the final mass, and predict how a sensor that sums only external net flow changes its apparent residual. Assume no other flux.
Show the answer and reasoning
Final mass is 112 g. The external-flow-only account predicts a gain of 9 g while the true gain is 12 g, so its measured-minus-counted residual is +3 g.
Take the cell boundary as the system. The incoming external rate is +5 g/h, outgoing external rate contributes −2 g/h, and production inside contributes +1 g/h. The rate of change is their sum 4 g/h. For three hours at these exact rates, the accumulated change is 4·3=12 g and the final amount is 100+12=112 g. If production converts material from another inventory, its contribution must still be counted in the specified solute balance. A sensor or ledger using external flows alone gets accumulated external gain (5−2)·3=9 g. Its predicted final amount on that incomplete balance is 109 g, leaving residual 112−109=+3 g in the measured-minus-predicted convention. This example declares the internal production as the missing term. In data where the cause is unknown, an unmeasured input could yield the same positive residual. Only the stated complete premise identifies the explanation here.
Start with a well-mixed volume of 50 L, no inflow, outflow 2 L/min and initial solute 25 g. Calculate volume, concentration and solute at 10 min. Explain why applying the model at 25 min requires changing the domain.
Show the answer and reasoning
At 10 min volume is 30 L, concentration is 0.5 g/L and solute is 15 g. At 25 min the model reaches zero volume and the concentration quotient is undefined.
The stated model has no inflow and removes 2 L/min. Until it dries, V(t)=50−2t. Initially the solute concentration is 25/50=0.5 g/L, and the equal outlet-to-bulk assumption makes exiting solute rate 2c g/min. Applying M=Vc gives Vc′+cV′=−2c. Since V′=−2 the two terms in c cancel and Vc′=0. On the positive-volume interval, c remains 0.5 g/L despite continued loss of liquid and solute. At t=10, V=30 L and M=0.5·30=15 g. As a balance check the solute rate is −1 g/min, yielding 25−10=15 g over those ten minutes. The dry time is 25 min, at which M and V both reach zero under the pre-boundary formulas for amount and volume. The concentration formula as a quotient cannot be used there. Future removal or refilling requires an equation that changes at this boundary.
Two volumes of 40 L hold a total of 80 g. Compare distribution A of 40 g in each volume to B of 70 g in the inlet-side volume and 10 g in the outlet-side volume. With outlet rate 4 L/min, separate pure feed at the same rate and no instantaneous exchange other than the connecting through flow, find the two instantaneous mass derivatives of the full system. Can known total mass and volume pick between them?
Show the answer and reasoning
The total mass derivatives are −4 g/min in arrangement A and −1 g/min in B. Known total mass and volume do not determine which derivative occurs.
In both arrangements the full system contains 80 g in two 40 L compartments. The only initial outward transfer of solute is at the outlet, because the incoming replacement fluid is pure. Transfers between compartments contribute with opposite signs in the total. The outlet-side concentration in A is 40/40=1 g/L. An outflow of 4 L/min therefore carries out 4 g/min, producing total mass derivative −4 g/min. The outlet-side concentration in B is 10/40=0.25 g/L. The same volume rate now carries 1 g/min, producing −1 g/min. The extra stored solute on the inlet side cannot be assumed to appear at the outlet instantaneously. Using aggregate concentration 80/80=1 g/L predicts the A rate for both arrangements. Distinguishing them needs a state variable for distribution, or an adequate independent justification of instantaneous mixing across the two volumes.
A periodic variable is f(t)=3+2 sin(2πt/10) units. A sensor samples at t=2.5+10n hours. Find the expected noiseless sample mean, the true period mean, and the average on the symmetric window [0,5]. Give a sampling plan whose deterministic samples recover the period mean for this exact waveform.
Show the answer and reasoning
The noiseless point-sample mean is 5 units, the period mean is 3 units and the mean over [0,5] is 3+4/π units. An equal number of samples paired at phases 2.5 and 7.5 hours modulo 10 recovers the period mean.
At the specified times the sine's argument is π/2+2πn, so every reading sees the positive peak and returns 3+2=5. Repeating the same time modulo 10 creates no phase coverage. Across one complete ten-hour period the sine term integrates to zero. Its constant part contributes 30 output-unit hours and division by 10 hours returns the time mean 3 output units. On [0,5] the mean is 3+(2/5)∫_0^5 sin(πt/5)dt. Substituting the antiderivative −(5/π)cos(πt/5) gives 3+(2/5)(10/π)=3+4/π, approximately 4.273 units. At phase 7.5 hours the sine is −1, so that reading is 1. Averaging 5 and 1 in each complete pair gives 3. This works for the specified harmonic. A different waveform could need broader phase coverage or an actual integrating measurement.
Two independent concentration readings are 8 and 11 mg/L with known independent Gaussian noise variances 1 and 4 (mg/L)². Derive the maximum-likelihood common concentration, its repeated-sample variance and compare with the arithmetic-mean variance. Convert both estimates to g/L.
Show the answer and reasoning
The likelihood estimate is 8.6 mg/L with variance 0.8 (mg/L)². The arithmetic mean is 9.5 mg/L with variance 1.25 (mg/L)². The point estimates in g/L are 0.0086 and 0.0095.
Under the shared Gaussian mean, minimize (8−c)²/1+(11−c)²/4. Its derivative vanishes at c=(8+11/4)/(1+1/4)=8.6 mg/L. The sum is strictly convex because both inverse variances are positive. The estimator weights the first readout by 1/(1+1/4)=0.8 and the second by 0.2. Their independent variances combine as 0.8²·1+0.2²·4=0.64+0.16=0.8 (mg/L)². The arithmetic mean gives (8+11)/2=9.5 mg/L. Equal weights give variance (1+4)/4=1.25 (mg/L)², so in this stated model it is less precise. They both target the same common mean because the errors are centered. Divide both point values by 1000 for g/L, yielding 0.0086 and 0.0095. The corresponding variances are divided by 1000² when expressed in (g/L)². The inverse-variance objective is invariant under this consistent unit conversion.
A stable additive instrument gives 8.5 g/L on an unknown sample and 4.1 g/L on a reference whose true concentration is 3.8 g/L. Determine the estimated unknown sample, assuming exact readings. Give two true sample/offset pairs consistent with the unknown reading if the offset may differ across samples.
Show the answer and reasoning
The stable-offset estimate is 8.2 g/L, because the offset is +0.3 g/L. With an unconstrained target-specific offset, pairs (7.5,1.0) and (9.0,−0.5) in g/L also match the 8.5 g/L reading.
With a stable offset b, the reference gives 4.1=3.8+b and hence b=+0.3 g/L. This is a positive offset because the reported value exceeds the true reference. For the sample, solve 8.5=c+b. Subtracting the previously learned b gives c=8.2 g/L. It is the exact result under the noiseless and common-offset conditions. If the sample has its own unconstrained offset, the equation 8.5=c+b_sample leaves one degree of freedom. For example 7.5+1.0=8.5 and 9.0−0.5=8.5. The specified reference still matches when its distinct offset remains +0.3. The reference tests the offset under its acquisition conditions. If the instrument has drifted, transfer of that calibration needs a time or condition stability premise. Multiple exact repetitions of the same unknown sample would not by themselves identify a persistent unknown offset.
An equilibrium measurement fits y=a+b u. At u=2, y=10. At u=5, y=19. Compare with collecting another exact reading at u=2. Derive a,b for the two distinct settings and the slope variance when both readings at u=2,5 have independent centered errors of variance 0.36.
Show the answer and reasoning
The distinct settings identify a=4 and b=3. A repeated u=2 only retains a+2b=10. The two-setting slope variance is 0.08 in squared slope units.
The first exact constraint is a+2b=10. Another identical exact observation at u=2 is the same equation. If it gives a different exact y under unchanged conditions, the deterministic affine assumption cannot satisfy both, rather than providing an independent row. At u=5 the equation is a+5b=19. Subtracting the first from the second gives 3b=9 and b=3. Then a=10−6=4. Substitution yields both exact responses. With independent centered errors in the two observations, the noisy slope differs from 3 by (ε_5−ε_2)/3. Each measurement has variance 0.36, so the difference has variance 0.72. Divide by 3² to obtain slope variance 0.08. Distinct settings supply rank, whereas their separation affects precision. This numerical variance assumes the same affine response and noise law at both settings. Repeats can be combined to improve accuracy at a setting, but do not change the central rank argument.
A number n starts at 10. Logistic rate r=0.4 h⁻¹ with capacity 50 has the same initial derivative as an exponential law with a chosen rate. Find that rate, compute both second derivatives at zero and the leading small-time difference n_exp(t)−n_log(t). Explain why the initial slope alone cannot distinguish them.
Show the answer and reasoning
The matching exponential rate is 0.32 h⁻¹. The exponential and logistic second derivatives at zero are 1.024 and 0.768 individuals per hour squared, respectively. The difference starts as 0.128t²+o(t²).
At n=10 the logistic derivative is 0.4·10·(1−10/50)=3.2 individuals per hour. The exponential derivative is 10a at that state. Matching gives a=3.2/10=0.32 h⁻¹. For the exponential, differentiating at zero gives n_E″(0)=a n_E′(0)=0.32·3.2=1.024. For the logistic, the derivative of the rate function at the initial state is 0.4(1−2·10/50)=0.24 h⁻¹. Hence n_L″(0)=0.24·3.2=0.768. The starting values and first derivatives cancel in n_E−n_L. The Taylor coefficient of t² is the second-derivative difference divided by two, (1.024−0.768)/2=0.128 in units of individuals per hour squared. The initial slopes are identical by the choice of a. Accurate observations at a nonzero interval or observations at another controlled starting state can expose the different curvature or growth law. Two short-window readings that estimate only the common slope cannot establish one dynamic mechanism.
A well-mixed tank has V=60 L, q=6 L/min, initial concentration 7 g/L and feed 1 g/L. Compute the concentration after one deviation half-life, the limiting concentration at long time, and the solution when q=0 with the same initial value.
Show the answer and reasoning
The deviation half-life is 10 log 2 min. At that time the concentration is 4 g/L. The long-time limit for q=6 is 1 g/L, and q=0 makes c(t)=7 g/L.
Equal inflow and outflow with V=60 L produce k=q/V=6/60=0.1 min⁻¹. The decay solution is c(t)=1+(7−1)e^{−t/10}=1+6e^{−t/10} g/L. The concentration difference from the feed is initially 6 g/L. Solve e^{−t/10}=1/2, giving t=10 log 2 min, and put half of 6 back on top of the feed. The result is 4 g/L, not half of 7. As t→∞ with k=0.1 the exponential factor approaches zero and the concentration approaches 1 g/L. It remains greater than 1 for any finite positive time under the positive starting deviation. When q=0 no transfer occurs under this stated model, so k=0, e^{−kt}=1 and c remains 7. In that case a deviation half-life is not finite. The long-time limit at exactly zero flow is therefore different from the limit for any fixed positive flow.
For c′=k(C−c) with k=0.15 min⁻¹ and C=2 g/L, use h=10 min and c0=8. Calculate forward Euler c1,c2 and the deviation multiplier. Does the discrete solution stay between initial and feed? Does its deviation decay in magnitude? Compare h=20 min and the exact physical solution.
Show the answer and reasoning
For h=10 min the deviation multiplier is −0.5, with c_1=−1 and c_2=3.5 g/L. The Euler deviation shrinks but violates the physical interval. For h=20 min the multiplier is −2 and the deviation grows.
Write the physical rate as k=0.15 min⁻¹ and the feed as 2 g/L. Euler gives d_{n+1}=(1−kh)d_n for d_n=c_n−2, with d_0=6 g/L. For h=10 min the multiplier is 1−1.5=−0.5. The first two deviations are −3 and 1.5 g/L, giving concentrations −1 and 3.5 g/L. The first violates both nonnegativity and the physical interval [2,8] g/L. Nevertheless its subsequent absolute deviation decays by a factor of one half in each step. For h=20 min the multiplier is 1−3=−2. The first deviation is −12 and the next 24, giving concentrations −10 and 26 g/L. The magnitude doubles each step, so this scheme is unstable even as a recurrence for the deviation. The exact trajectory is 2+6e^{−0.15t} g/L with t in minutes, strictly between 2 and 8 for t>0 and monotonically decreasing. The comparison separates the described physical solution from the qualitative and quantitative properties of a chosen discretization.
With c(t)=2+6 exp(−kt) g/L, let k∈[0.08,0.12] min⁻¹ and t=10 min. Compute a tight range for c, a derivative bound with respect to k over the interval, and which of the statements c>4 or c<4 is forced by the range.
Show the answer and reasoning
The state is in [2+6e^{−1.2},2+6e^{−0.8}]≈[3.807,4.696] g/L. The absolute rate derivative is at most 60e^{−0.8}≈26.96 g·min/L. Neither strict inequality relative to 4 is forced.
At t=10 the map of the rate is f(k)=2+6e^{−10k}, with the numerical k in min⁻¹. Its derivative is −60e^{−10k}, strictly negative as a function of k. The extrema occur at the largest and smallest allowed k, giving the stated exact endpoints. Using t=10 min in the derivative, its magnitude is 6 g/L times 10 min times e^{−10k}. On the interval the largest value occurs at k=0.08, giving 60e^{−0.8} g·min/L. Multiplication by a rate change in min⁻¹ yields a concentration change bound. The two exponentials are approximately 0.301 and 0.449. Thus the lower endpoint is about 3.807 g/L and the upper about 4.696 g/L. Both are attainable since the rate interval is closed and the model continuous. The threshold 4 g/L lies inside the range. Neither c>4 nor c<4 holds for every admitted rate. A more precise rate estimate, a different horizon or a declared probability model would address a different question about this uncertainty.
A true state must be strictly below 10 units for the specified decision. The reading has error at most 0.6 units. Classify readings 9.3, 9.4, 10.6 and 10.7 as certainly below, certainly at least threshold, or inconclusive, handling equality explicitly.
Show the answer and reasoning
Reading 9.3 is certainly below 10. Reading 9.4 is inconclusive. Readings 10.6 and 10.7 are certainly at least 10.
For reading 9.3 the compatible true interval is [8.7,9.9]. Its upper endpoint 9.9 is strictly below 10, so the decision condition is certified. For reading 9.4 the interval is [8.8,10]. The value 10 is compatible and fails the strict condition, while lower values pass. Thus it is inconclusive even though the reading is below 10. For reading 10.6 the interval is [10,11.2], and for 10.7 it is [10.1,11.3]. Each lower endpoint is at least 10, so the condition of strictly below fails in every compatible case for both. The exact cutoff must be checked against the bound rather than rounding around the boundary. Without a stochastic description of the error, none of these intervals yields a numerical probability for the inconclusive case.
A concentration decreases toward 5 g/L from 11 under exact constant-rate relaxation with k=0.2 min⁻¹. Derive the time it first reaches 8 and show whether it reaches 5 at finite time. Find the model readings at 3 and 4 min. If these were the exact observed readings, state the first-crossing bracket that follows from them and known monotonic continuity alone.
Show the answer and reasoning
The first time at 8 g/L is 5 log 2≈3.466 min. It never reaches 5 g/L in finite time. The two exact observations give a first-crossing bracket (3,4] min under the stated monotonicity.
The state is c(t)=5+6e^{−0.2t}. Setting c=8 gives e^{−0.2t}=3/6=1/2. Solving yields t=(log 2)/0.2=5 log 2 min. Continuity and strict decrease make this the first time. The exponential term is strictly positive at every finite t. Thus c(t)>5 at every finite t, though c(t) tends to 5 as t grows indefinitely. Being a limiting equilibrium does not guarantee finite arrival at its exact value. At t=3 the deviation is 6e^{−0.6}≈3.293 g/L, so c(3) is above 8. At t=4 the deviation is 6e^{−0.8}≈2.696 g/L, so c(4) is below 8. If those were known as exact observations and the path was already known to be monotone continuous, they would bracket the first crossing. A precise time within the bracket is supplied by the validated clock law and exponential response rather than by the two samples alone. A mere pair of observations without monotonicity could permit a previously missed crossing.
Observation models f(x)=2x and g(x)=2x+3(max(0,x−1))² are identical for 0≤x≤1. Calculate both at x=1.5, give their right derivatives at 1, and explain whether matching validity and derivative at the boundary imply a guarantee outside the observed range.
Show the answer and reasoning
At x=1.5 the responses are f=3 and g=3.75 units. Both right derivatives at x=1 are 2. The fit and boundary derivative do not guarantee agreement beyond 1.
For 0≤x≤1 the positive part (x−1)_+ is zero, so every value of g equals f. At x=1.5, the positive part is 0.5, whose square is 0.25. Adding three times that to 3 gives 3.75. For x>1 the derivative of g is 2+6(x−1). The right derivative at 1 is therefore 2, equal to f′(1). The common boundary slope permits different curvature for inputs immediately above 1. An exact discrepancy of 0.75 units at 1.5 coexists with perfect agreement in the observed range. A test confined to [0,1] under the same noise law cannot decide between the two extrapolations. A justified physical limit on extrapolation, or an independent observation at an allowed input above 1, can constrain the difference. The mere match of value and first derivative at the boundary does not give such a restriction.
An output is deterministically 3 units in one declared scenario and 9 units in another, with weights 0.75 and 0.25. Calculate mean, variance and P(output>6). Compare with using the mean output as though it were the certain output and state the information the model would need to justify the scenario weights.
Show the answer and reasoning
The mean is 4.5 units, variance 6.75 units² and exceedance probability at 6 units is 0.25. Replacing the law by its mean gives a misleading exceedance probability of zero.
The mean is 0.75·3+0.25·9=2.25+2.25=4.5 units. Conditional on each scenario there is no within-scenario variance. The deviations from 4.5 are −1.5 and 4.5 units. Their weighted squared sum is 0.75·2.25+0.25·20.25=1.6875+5.0625=6.75 units². Equivalently the variance comes entirely from the separation of the two scenario outputs. Exactly the scenario returning 9 exceeds 6, so the model's exceedance probability is 0.25. A deterministic prediction of 4.5 never exceeds 6. Applying the threshold before averaging and after averaging answers different questions. The weights could come from independently justified frequencies or a probability model of the scenario conditions. If the problem only declares the two values possible, neither of these weights follows. In that case one would report one scenario above and one below with no assigned probabilities.
Training pairs are (0,0) and (1,2). Predict with a fitted constant and with a fitted affine model under squared loss. Held-out pairs are (0.5,1) and (2,1). Compute training and held-out summed squared errors, compare average errors, and define the risk target this tiny test can and cannot support.
Show the answer and reasoning
The constant fit is 1 and the affine fit is 2x. Training sums of squares are 2 and 0. Held-out sums of squares are 0 and 9, respectively.
The optimal constant is the mean (0+2)/2=1. Its training residuals are 1 and −1, summing to 2 after squaring. With two distinct inputs, the affine solution passing through (0,0) and (1,2) is the unique least-squares line 2x, with zero training residuals. The held-out outputs are both 1 at inputs 0.5 and 2. The constant predicts both exactly. The affine line predicts 1 and 4, so its squared errors are 0 and 9. Dividing by two in each set gives training mean-square errors 1 and 0, and held-out mean-square errors 0 and 4.5. These comparisons preserve the squared loss and do not recompute the fits on the held-out observations. The two tests evaluate separate empirical targets. A future distribution of inputs and outcomes would need a representative validation design before the held-out average could estimate its prediction risk. In particular, the input at 2 lies beyond the training interval and that transfer premise belongs in the test report.
In a pure-water flush of a well-mixed tank, c0=12 g/L and k lies in [0.06,0.1] min⁻¹. Give the prediction interval for first reaching 3 g/L. An exact independent concentration after 10 min is 12 exp(−0.8) g/L. Infer k under the same assumptions, calculate the revised crossing time and name two reasons not to replace external validation with this one calibration datum.
Show the answer and reasoning
The original arrival interval is [log(4)/0.1,log(4)/0.06]≈[13.86,23.10] min. The transient observation implies k=0.08 min⁻¹ and revised model arrival log(4)/0.08≈17.33 min.
Pure-water flushing gives c(t)=12e^{−kt} for a fixed positive k. Reaching 3 requires the dimensionless ratio 3/12=1/4, so the first time is log(4)/k. This strictly decreases with k. Among possible rates the maximum 0.1 min⁻¹ gives the earliest time and 0.06 min⁻¹ the latest. The endpoints are approximately 13.86 and 23.10 min, and all intermediate times occur under the admitted rate interval. The exact transient at 10 min gives c(10)/12=e^{−0.8}, hence k=0.8/10=0.08 min⁻¹ if the same equation applies. This lies in the original range and gives log(4)/0.08≈17.33 min. The result is a model-dependent calibration with one observation, not an independent check of the law's shape after it has been fit to that observation. Also, a changed volume, flow regime or mixing at the outlet could invalidate transfer to another run. Independent later or spatial measurements can test those assumptions.
What to carry forward
- A model answers a specified question. Different observations or decisions can require different models of the same process.
- Label the system boundary, units, state variables and observed quantities before applying a balance.
- More readings at one condition can reduce readout noise while leaving the underlying mechanism unidentified.
- An exact solution checks what the assumed equations imply. Measurements are needed to test how well those assumptions describe the process.
- A result for a seen site, range or instrument condition has a declared scope of use.
- A mechanism that predicts observed associations also needs explicit assumptions before it can predict an intervention.
- Bounded uncertainty gives a set of possible outcomes. Scenario probabilities require their own evidence.
- A good revision records what changed and plans a new check that distinguishes its effect.
References
Sources for the concepts and teaching approaches in this article.
- The modelling process and iterationSol Garfunkel and Michelle Montgomery, editorsPrimary · PDF
- Define the measurand and specify its observation lawJoint Committee for Guides in MetrologyPrimary
- ES.1803 Differential Equations, Spring 2024, Topic 1, Introduction to differential equations, pp. 1 and 3–5Jeremy Orloff, MIT OpenCourseWarePrimary · PDFBuild and check simple rate modelsAmount and concentration in a mixing tank
- Validation when observations share groups or rangesDavid R. Roberts and colleaguesPrimary
- Structural equations and the effect of setting an inputJudea PearlPrimary · PDF
- Verify a calculation against its stated equationsNASA Glenn Research Center, NPARC AlliancePrimary
- Validate against relevant observed conditionsNational Aeronautics and Space AdministrationPrimary · PDF
- Weight unequal measurement variancesNIST and SEMATECHPrimary