ELEC · Practical Guide 08 — Run a linear fit and inspect the residuals

by Giux Electrochemistry, GX-TXT 2 min read

Fit a line to six unweighted nitrogen observations at 0 rpm. Inspect the statistical assumptions and use residuals to assess the descriptive fit.

ELEC project · Practical GX-TXT guide 8 of 16.

Reproduction target: GX-TXT DEV112-P013. The original screenshots and recorded results document the historical ELEC session. A rerun on P013 has yet to be verified.

Module: Curve Fitter

Learning objective: Run a linear fit and read residuals

Prerequisites / input: Six unweighted 0 rpm N centres

Expected output: Accepted descriptive fit and residual inspection

Scientific background and reference results

Linear fitting is an initial exercise in choosing a source, model and interval before using richer models. It is descriptive and does not demonstrate a linear chemical process.

Step-by-step procedure

  1. Open Dataset Curve Fit 0.46.2 in the Session copy. In the Dataset panel choose hal_fig3a_0rpm_six_interior_unweighted.measurement_1.curves, X Time (min) and Y Reported ammonia response (N basis); press Add Dataset curve and verify six centres.
  2. Select orientation Y = f(X), model linear, Fit points all and Output domain source. Under Fit → Measurements and uncertainty → Input translation / shift positive disable both translations. Under Statistical assumptions and intervals select Unspecified — no interval claim, No measurement weighting, No measurement column and No response interval.
  3. Press Preview fit. Compare points with the estimated line and check that the interval matches actual times rather than extrapolating beyond the data.
Linear fit preview
Historical preview on the six 0 rpm points: the displayed result concerns the linear model, rather than S2. · Retained original GX-TXT/ELEC documentation image; source and hash in metadata. Atrashkevich et al. (2025), DOI 10.1016/j.watres.2025.123732 for any publication pixels. View at full resolution
Statistical assumptions
No measurement weighting and no interval claim in the historical configuration. · Retained original GX-TXT/ELEC documentation image; source and hash in metadata. Atrashkevich et al. (2025), DOI 10.1016/j.watres.2025.123732 for any publication pixels. View at full resolution
  1. Open Residuals and look for systematic structure as well as a summary goodness-of-fit measure. Examine Parameters & Statistics together with axis units and the limited point count.
  2. If the configuration matches the purpose, use Fit → Accept fit (F6), select its row under Accepted fits and choose Results → Publish accepted Dataset… with a new ID. Historical Dataset is hal_fig3a_0rpm_global_six_unweighted_linear_fit; save using Workspace → Save; retain the source and settings to reconstruct the comparison.
Accepted fit reopened
Historical reopened Fitter: acceptance is separate from preview. · Retained original GX-TXT/ELEC documentation image; source and hash in metadata. Atrashkevich et al. (2025), DOI 10.1016/j.watres.2025.123732 for any publication pixels. View at full resolution

Digitized centres do not automatically include experimental uncertainties. Describe an unweighted fit accordingly; future P013 reproduction is NOT_RUN.

Working materials

Figure 3 digitized datasets (CSV) · Model and constraint datasets (CSV)

#Curve Fitter #Electrochemistry #GX-TXT #linear regression #residual analysis

Other steps of this project