Worked example: linear calibration with uncertainty
Fit a straight line to eleven synthetic measurements, verify the coefficients, and keep the confidence interval for the mean response.
GX-TXT DEV112 P011-bis
Download the data and set the units
Download calibrazione_lineare.csv and unzip the archive. Time runs from 0 to 10 s. The synthetic voltage values combine U(t) = 0.25 V + (0.15 V/s)t with deterministic perturbations that leave the regression coefficients unchanged. In the Session, open Acquisition → Generic CSV, add the file, and use the table.generic contract and the c27_calibration ID. Click Variables and assign the units s and V. Return to Acquisition and use Import current.
Open Viewers → Curve Fitter. Choose the Dataset, set X to time_s and Y to voltage_v, then click Add Dataset curve.
Set up the regression and confidence interval
Set the orientation to Y = f(X), the model to linear, the fit points to all, and the output domain to source. Under Fit → Measurements and uncertainty → Statistical assumptions and intervals…, select Independent Gaussian — estimated variance, set Confidence level to 0.95, leave weighting off, and choose Pointwise mean confidence interval. Click Apply, then Preview fit. To eliminate even the minimal automatic shift at time 0, explicitly choose physical coordinates as shown in Covariance, correlation, and the limits of uncertainty estimates.
Compare estimates, residuals, and intervals
In Parameters & Statistics, the test returned an intercept of 0.25 V and a slope of 0.15 V/s. The residual RMSE is 0.014460 V and R² is 0.999072. There are 9 residual degrees of freedom. The standard errors are 0.009017 V and 0.001524 V/s. The marginal 95% confidence interval for the intercept is approximately 0.229601–0.270399 V.
For an independent check, calculate b by dividing Σ(t−t̄)(U−Ū) by Σ(t−t̄)². Then use a = Ū−bt̄. The sum of squared residuals for the file is 0.0023 V². Divide it by 9 to estimate the residual variance. Divide it by 11 and take the square root to obtain RMSE. At the mean time of 5 s, the predicted voltage is 1 V and the standard error of the mean response is approximately 0.004820 V.
The report shows that the pointwise band is available for 11 of 11 rows. The mean-response band quantifies uncertainty in the expected mean response at each point. Pointwise future-observation prediction interval also accounts for the expected variability of a future measurement. Interpret pointwise confidence at a fixed X. Use Results → Response interval details… to check the assumptions and band availability.
Keep the calibration
Check the plot and residuals, click Accept, enter 95 percent calibration, and click Accept named curves. Save your work with Workspace → Save. To create a table in the Session, follow the steps in the publishing procedure. To repeat the same setup, see the rerun from the data.


