Advanced diagnostics: bootstrap, profile, and influence

Set up diagnostics consistent with the fit assumptions and recognize the calculation status in P011-bis.

GX-TXT DEV112 P011-bis

Prepare the two examples

Download the linear calibration with a perturbed last point (unzip the archive first) and the Gaussian curve (unzip the archive first). These are synthetic tables. Import each one into a Test Session with Acquisition → Generic CSV, table.generic contract, time_s axis in s and voltage_v in V. In Curve Fitter choose X and Y, press Add Dataset curve, set Fit orientation to Y = f(X) and Fit points to all. Try the three paths in separate sessions. For an ordinary calibration check you can follow the procedure with covariance and correlation.

Linear influence

In a fit that is linear in the coefficients, influence measures how strongly individual observations condition the result. A point far from the center of X can have high leverage. A large residual indicates distance from the curve. Examine both when you evaluate an observation, and do not remove it before verifying its origin and role.

  1. Open the eleven-row synthetic calibration and choose linear. The last point contains a deliberate perturbation of +0.20 V.
  2. From Fit → Measurements and uncertainty → Statistical assumptions and intervals… choose Independent Gaussian — estimated variance and 0.95 level. Keep No measurement weighting and No response interval in the example. Activate Exact linear influence diagnostics (linear/polynomial response fits).
  3. Press Apply. The Finish or cancel the active operation before navigating History dialog already opens in the tested P011-bis. The Results → Model comparison and diagnostics → Linear influence… table requires the diagnostics returned by a completed fit. This case stops at Apply.
Gaussiane hypotheses and Exact linear influence diagnostics for synthetic calibration.
Gaussian assumptions and Exact linear influence diagnostics for the synthetic calibration.
Message History observed by pressing Apply in the influence settings.
Message History observed after pressing Apply in the influence settings.

Parameter bootstrap

The bootstrap repeats the parameter estimate on simulated or resampled samples. In Fit → Measurements and uncertainty → Parameter bootstrap settings…, the first control selects the method. The choice Off — no parameter bootstrap excludes refits. Resample observation tuples treats the rows as independent observations. Resample standardized residuals resamples the standardized residuals on a fixed design. Simulate declared Gaussian errors generates perturbations according to the declared Gaussian errors and keeps the observation grid. Use the assumption that is consistent with the observations. A fixed seed lets you repeat the same resampling sequence with the same data and settings.

Requested refits
From 20 to 10,000 refits. 120 in the test.
Random seed
Integer from 1 to 2,147,483,646. Use 17 to repeat the case.
Marginal confidence level
Level between 0 and 1 for marginal intervals. Set 0.95.
Shared time budget in seconds
Computation budget shared among the refits. Use 90 s. The GUI may withhold the intervals when incomplete refits, rank problems or active constraints make the sample inadequate.

On the linear Dataset select Resample observation tuples, keep Exact linear influence diagnostics disabled and press Apply. In the previous run, Preview fit produced no receipt until the external timeout of 180 s. In the isolated repeat of 22 November, after Preview fit the following appeared: Finish or cancel the active operation before navigating History. The result to check after a fix is the Results → Measurement and uncertainty results → Parameter bootstrap… table, with the refit count, the summary and the intervals actually returned.

Bootstrap set with tuple resamping, 120 refit and budget of 90 s.
Bootstrap set up with tuple resampling, 120 refits and a 90 s budget.
Dialogue History after Preview fit in the replay of the bootstrap of the 22 November.
History dialog after Preview fit in the bootstrap repeat of 22 November.

Profile likelihood

The profile likelihood varies one parameter and refits the others, respecting the constraints and assumptions of the model. It is used to check asymmetric limits and poor identifiability. In the Gaussian example, choose gaussian, initialize amplitude=1.55, center=4.8, width=1.25, offset=0.1 in Initial parameters and manual curves… and apply the independent Gaussian assumption with estimated variance and 0.95 level.

Open Fit → Measurements and uncertainty → Profile likelihood settings…. Select Off to leave the profile inactive. For the test choose On the and center as Canonical parameter. Set the marginal confidence 0.95, 4.75 and 5.25 s, initial physical step 0.02 s, absolute tolerance on the limits 0.0001 s, Maximum constrained refits 56 and Shared search time budget in seconds 90. The step controls how the search starts and the tolerance controls the accuracy of the limits. Fits limited by the budget or by a too narrow domain require you to read the refit status.

Apply stored the configuration. In P011-bis, the History block appears at the next Preview fit. The Results → Measurement and uncertainty results → Profile likelihood… view is to be repeated after the fix, together with the refit status, the limits reached and the units.

Configuration of the bound profile of the Gaussian center in the range 4,75 – 5,25 s.
Configuration of the bounded profile of the Gaussian center in the range 4.75 – 5.25 s.
Native Message History after Preview fit for the profile of verasimiglianza.
Native Message History after Preview fit for the profile likelihood.

Continue with the regular fitting workflow

To continue, start from a fit with these three diagnostics disabled and use Preview fit to check plots, residuals and ordinary intervals when the assumptions allow it. The block is reproduced in GX-TXT DEV112 P011-bis and concerns the return of the diagnostic result in the GUI. Repeat Apply, Preview and the opening of the three results when a fix becomes available.