Worked examples and Numeric materials
Reproduce the Misra1a adsorption fit and the Longley multiple regression with the scripts, data, and checks in the manual.
Numerical computing, models, statistics, and Datasets with Python
NIST Misra1a adsorption
Start with an empty Session and import Misra1a.csv as nist_misra1a. Assign pressure to X and volume to Y using the scales documented by the source. Import Longley.csv as nist_longley, with the response in the first column. Open the numeric_publication.py Job. The Misra1a check reads 14 observations and fits b1·(1−exp(−b2·x)). In P011-bis the observed parameters are 238.94212594 and 0.0005501564406, with SSE 0.124551388944. The Job compares these with the certified values and records the fit, residuals, and original data window as separate series.
Longley multiple regression
The script reads 16 rows and six regressors. It centers and scales each column with moments computed from the CSV, adds an intercept, and uses least_squares. The NumPy comparison uses the standardized coordinates. To recover coefficients in the original scale, divide the regressor coefficients by their standard deviations and subtract the sum of the rescaled coefficients times their corresponding means from the intercept. The check reproduced an SSE of 836,424.055506 and a condition number of 110.544 for the standardized matrix.
Materials for reproducing the examples
- Misra1a, 14 NIST observations · Source
SHA-256066f10f65a37a2ee096b9a9f4fb8d061b4d2c3ee6456bb134f028dc4562e1c61 - Longley, 16 NIST observations · Source
SHA-256db76783bf91332620b74601515251612a84f3c3a25f17128f9157eb30f140b71 - job_cancel.py (extract the ZIP first)
- job_failure.py (extract the ZIP first)
- numeric_catalog_dataset.py (extract the ZIP first)
- numeric_core.py (extract the ZIP first)
- numeric_dataset.py (extract the ZIP first)
- numeric_document_selection.py (extract the ZIP first)
- numeric_facades.py (extract the ZIP first)
- numeric_fit_selection.py (extract the ZIP first)
- numeric_foundation.py (extract the ZIP first)
- numeric_inference.py (extract the ZIP first)
- numeric_linear_actions.py (extract the ZIP first)
- numeric_models.py (extract the ZIP first)
- numeric_publication.py (extract the ZIP first)
- numeric_selection_transport.py (extract the ZIP first)
- numeric_selectors.py (extract the ZIP first)
Data credit: National Institute of Standards and Technology, Statistical Reference Datasets. The CSVs transcribe the reference rows. The Misra1a values retain the scales of the original ASCII table. See the certified values and reuse terms. Misra1a certified values · NIST terms







