Uncertainty, bootstrap, and prediction

Find the Numeric contracts for uncertainty propagation, bootstrap resampling, predictions, and intervals.

Numerical computing, models, statistics, and Datasets with Python

Bootstrap by refitting

The numeric_inference.py script interprets the fit with CORE, obtains the bootstrap_plan plan, and runs fit_bootstrap on the original data. The example uses pairs, 24 replicates, and seed 193. The Job recorded 24 successful attempts. For each retained position, read replicate_status: 0 not attempted, 1 successful, 2 rank loss, 3 nonconvergence, 4 nonfinite result or changed fixed constraint, 5 error, 6 solution at the bound, 7 budget exhausted. At least two valid results are enough to describe spread. Nominal intervals require all attempts to succeed. The residual and parametric_gaussian modes assume the declared error models. The simpler foundation.statistics.bootstrap_ci uses at least 100 replicates and resamples observations under a separate contract.

Statistical question and reproducibility

Choose the interval type and target variable. For linear propagation, use the Jacobian and covariance matrix in the parameter units. For a bootstrap, retain the model, data, CORE policy, seed, and each refit’s convergence status. Uncertainty in the mean and uncertainty in a future observation answer different questions. Rank, domain, or numerical validity limits may prevent an interval from being reported.

Operation reference

Jump to an operation

propagate_uncertainty

Access
Registered in the Python Job
Arguments
Jacobian, standard uncertainties or covariance, optional options
Units
Units follow NUMERIC_API_v1 operation contract
Result
Numeric output covariance, standard uncertainties and propagation provenance for CORE interpretation
Effect
Propagate linearized measurement uncertainty with explicit input kind and dimensions for CORE interpretation
Types
matrix,vector
Declared shape
compatible_matrix
Options
input_kind=standard_uncertainty,covariance
Nonfinite values
error
Units rule
caller_owned
Catalog token
propagate_uncertainty
gxtxt_api_call("NUMERIC_API_v1", "propagate_uncertainty", args)
Recorded result · propagate_uncertainty

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      0.0,
      0.0,
      1.0
    ]
  },
  {
    "shape": [
      2
    ],
    "dtype": "float64",
    "values": [
      0.1,
      0.2
    ]
  }
]

Result, preview

{
  "covariance": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.010000000000000002,
      0.0,
      0.0,
      0.04000000000000001
    ]
  },
  "standard_uncertainty": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.1,
      0.2
    ]
  },
  "jacobian": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      0.0,
      0.0,
      1.0
    ]
  },
  "input_covariance": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.010000000000000002,
      0.0,
      0.0,
      0.04000000000000001
    ]
  },
  "method": "first_order_linear_propagation",
  "input_kind": "standard_uncertainty",
  "input_count": 2.0,
  "output_count": 2.0
}
Contract query · expression-name:propagate_uncertainty

Download the example script (ZIP).

Example operands, preview

[
  "propagate_uncertainty"
]

Result, preview

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/operationByExpressionName: math.numeric API v1: unknown or ambiguous expression operation 'propagate_uncertainty'"

digitization_uncertainty

Access
Registered in the Python Job
Arguments
physical linearization, explicit distribution and calibration standard uncertainties
Units
Units follow NUMERIC_API_v1 operation contract
Result
physical sigma arrays, covariance blocks and retained shared factors
Effect
Propagate independent pixel and shared calibration inputs once through the existing uncertainty owner
Types
struct,struct
Declared shape
one_to_4096_original_points
Nonfinite values
error
Units rule
explicit_pixel_distribution_and_physical_units
gxtxt_api_call("NUMERIC_API_v1", "digitization_uncertainty", args)
Recorded result · digitization_uncertainty

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.digitization_linearization.v1",
    "coordinates": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        1.0,
        3.0,
        2.0,
        4.0
      ]
    },
    "point_jacobian": {
      "shape": [
        4,
        2
      ],
      "dtype": "float64",
      "values": [
        1.0,
        0.0,
        1.0,
        0.0,
        0.0,
        1.0,
        0.0,
        1.0
      ]
    },
    "calibration_jacobian": {
      "shape": [
        4,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        1.0,
        1.0,
        1.0
      ]
    },
    "coordinate_units": [
      "m",
      "m"
    ],
    "calibration_ids": [
      "scale"
    ],
    "calibration_units": [
      "1"
    ],
    "mapping": "affine_control",
    "jacobian_method": "analytic",
    "condition_number": 1.0
  },
  {
    "mode": "pixel_calibration",
    "pixel_distribution": "rectangular_full_width",
    "pixel_scale": [
      1.0,
      1.0
    ],
    "calibration_standard_uncertainty": [
      0.1
    ],
    "rationale": "Synthetic controls."
  }
]

Result, preview

{
  "schema": "gxtxt.digitization_uncertainty.v1",
  "numeric_api": "NUMERIC_API_v1",
  "operation": "digitization_uncertainty",
  "coordinates": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0,
      2.0,
      4.0
    ]
  },
  "coordinate_units": [
    "m",
    "m"
  ],
  "point_count": 2.0,
  "calibration_ids": [
    "scale"
  ],
  "calibration_units": [
    "1"
  ],
  "standard_uncertainty": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.3055050463303894,
      0.3055050463303894,
      0.3055050463303894,
      0.3055050463303894
    ]
  },
  "independent_standard_uncertainty": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.2886751345948129,
      0.2886751345948129,
      0.2886751345948129,
      0.2886751345948129
    ]
  },
  "covariance_blocks": {
    "shape": [
      2,
      3
    ],
    "dtype": "float64",
    "values": [
      0.09333333333333335,
      0.09333333333333335,
      0.010000000000000002,
      0.010000000000000002,
      0.09333333333333335,
      0.09333333333333335
    ]
  },
  "independent_factor": {
    "shape": [
      4,
      2
    ],
    "dtype": "float64",
    "values": [
      0.2886751345948129,
      0.0,
      0.2886751345948129,
      0.0,
      0.0,
      0.2886751345948129,
      0.0,
      0.2886751345948129
    ]
  },
  "shared_factor": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      0.1,
      0.1,
      0.1,
      0.1
    ]
  },
  "declaration": {
    "mode": "pixel_calibration",
    "pixel_distribution": "rectangular_full_width",
    "pixel_scale": {
      "shape": [
        1,
        2
      ],
      "dtype": "float64",
      "values": [
        1.0,
        1.0
      ]
    },
    "pixel_standard_uncertainty": {
      "shape": [
        1,
        2
      ],
      "dtype": "float64",
      "values": [
        0.2886751345948129,
        0.2886751345948129
      ]
    },
    "calibration_standard_uncertainty": 0.1,
    "rationale": "Synthetic controls."
  },
  "source_linearization_sha256": "9bae7f437a7b33c3374d22adc78b0656bdb0668053fb65930a443f3475f152ff",
  "summary": {
    "schema": "gxtxt.digitization_uncertainty_summary.v1",
    "numeric_api": "NUMERIC_API_v1",
    "operation": "digitization_uncertainty",
    "point_count": 2.0,
    "calibration_input_count": 1.0,
    "coordinate_units": [
      "m",
      "m"
    ],
    "mode": "pixel_calibration",
    "pixel_distribution": "rectangular_full_width",
    "propagation": "first_order_linear_propagation",
    "has_shared_calibration": true,
    "has_xy_correlation": true,
    "maximum_absolute_xy_correlation": 0.10714285714285712,
    "correlation_roundoff_tolerance": 1.4210854715202004e-14,
    "source_linearization_sha256": "9bae7f437a7b33c3374d22adc78b0656bdb0668053fb65930a443f3475f152ff",
    "rationale": "Synthetic controls.",
    "state_sha256": "16be2f89fe6ef20e2f91a45401f014e7933341b32915d89534425ed26aebf2c6"
  },
  "state_sha256": "16be2f89fe6ef20e2f91a45401f014e7933341b32915d89534425ed26aebf2c6"
}

digitization_covariance

Access
Registered in the Python Job
Arguments
retained uncertainty state, x|y|xy
Units
Units follow NUMERIC_API_v1 operation contract
Result
bounded full covariance preserving cross-point dependencies
Effect
Materialize retained x y or interleaved xy covariance with shared calibration dependencies
Types
struct,string
Declared shape
one_to_512_original_points
Nonfinite values
error
Units rule
physical_axis_units
gxtxt_api_call("NUMERIC_API_v1", "digitization_covariance", args)
Recorded result · digitization_covariance:xy

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.digitization_uncertainty.v1",
    "numeric_api": "NUMERIC_API_v1",
    "operation": "digitization_uncertainty",
    "coordinates": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        1.0,
        3.0,
        2.0,
        4.0
      ]
    },
    "coordinate_units": [
      "m",
      "m"
    ],
    "point_count": 2.0,
    "calibration_ids": [
      "scale"
    ],
    "calibration_units": [
      "1"
    ],
    "standard_uncertainty": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        0.3055050463303894,
        0.3055050463303894,
        0.3055050463303894,
        0.3055050463303894
      ]
    },
    "independent_standard_uncertainty": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        0.2886751345948129,
        0.2886751345948129,
        0.2886751345948129,
        0.2886751345948129
      ]
    },
    "covariance_blocks": {
      "shape": [
        2,
        3
      ],
      "dtype": "float64",
      "values": [
        0.09333333333333335,
        0.09333333333333335,
        0.010000000000000002,
        0.010000000000000002,
        0.09333333333333335,
        0.09333333333333335
      ]
    },
    "independent_factor": {
      "shape": [
        4,
        2
      ],
      "dtype": "float64",
      "values": [
        0.2886751345948129,
        0.0,
        0.2886751345948129,
        0.0,
        0.0,
        0.2886751345948129,
        0.0,
        0.2886751345948129
      ]
    },
    "shared_factor": {
      "shape": [
        4,
        1
      ],
      "dtype": "float64",
      "values": [
        0.1,
        0.1,
        0.1,
        0.1
      ]
    },
    "declaration": {
      "mode": "pixel_calibration",
      "pixel_distribution": "rectangular_full_width",
      "pixel_scale": {
        "shape": [
          1,
          2
        ],
        "dtype": "float64",
        "values": [
          1.0,
          1.0
        ]
      },
      "pixel_standard_uncertainty": {
        "shape": [
          1,
          2
        ],
        "dtype": "float64",
        "values": [
          0.2886751345948129,
          0.2886751345948129
        ]
      },
      "calibration_standard_uncertainty": 0.1,
      "rationale": "Synthetic controls."
    },
    "source_linearization_sha256": "9bae7f437a7b33c3374d22adc78b0656bdb0668053fb65930a443f3475f152ff",
    "summary": {
      
[…]

Result, preview

{
  "schema": "gxtxt.digitization_covariance.v1",
  "numeric_api": "NUMERIC_API_v1",
  "operation": "digitization_covariance",
  "axis": "xy",
  "point_count": 2.0,
  "coordinate_units": [
    "m",
    "m"
  ],
  "covariance": {
    "shape": [
      4,
      4
    ],
    "dtype": "float64",
    "values": [
      0.09333333333333335,
      0.010000000000000002,
      0.010000000000000002,
      0.010000000000000002,
      0.010000000000000002,
      0.09333333333333335,
      0.010000000000000002,
      0.010000000000000002,
      0.010000000000000002,
      0.010000000000000002,
      0.09333333333333335,
      0.010000000000000002
    ]
  },
  "standard_uncertainty": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      0.3055050463303894,
      0.3055050463303894,
      0.3055050463303894,
      0.3055050463303894
    ]
  },
  "source_state_sha256": "16be2f89fe6ef20e2f91a45401f014e7933341b32915d89534425ed26aebf2c6",
  "row_order": "original_points_interleaved_xy_or_selected_axis",
  "method": "first_order_linear_propagation"
}

parameter_uncertainty

Access
Registered in the Python Job
Arguments
CORE parameter inference plan
Units
Units follow NUMERIC_API_v1 operation contract
Result
Numeric uncertainty receipt for CORE interpretation
Effect
Normalize covariance and calculate marginal intervals from the public CORE inference plan without refitting
Types
struct
Declared shape
free_parameter_covariance_1_to_256
Nonfinite values
error
Units rule
explicit_CORE_plan
gxtxt_api_call("NUMERIC_API_v1", "parameter_uncertainty", args)
Recorded result · parameter_uncertainty

Download the example script (ZIP).

Example operands, preview

[
  {
    "api_id": "STATISTICAL_PARAMETER_INFERENCE_PLAN_v1",
    "api_version": 1,
    "status": "value",
    "reason": "",
    "confidence": 0.95,
    "source_model_id": "math.numeric.nonlinear",
    "coefficient_space": "original_physical",
    "parameter_ids": [
      "a",
      "b"
    ],
    "parameter_units": [
      "1",
      "1"
    ],
    "source_parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "source_covariance": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        0.00027298018465493444,
        -0.0009554306462922706,
        -0.0009554306462922706,
        0.003966878715104643
      ]
    },
    "degrees_of_freedom": 20.0,
    "distribution": "student_t",
    "approximation": "local_linearization",
    "interval_status": "value",
    "interval_reason": ""
  }
]

Result, preview

{
  "numeric_api": "NUMERIC_API_v1",
  "operation": "parameter_uncertainty",
  "plan": {
    "api_id": "STATISTICAL_PARAMETER_INFERENCE_PLAN_v1",
    "api_version": 1.0,
    "status": "value",
    "reason": "",
    "confidence": 0.95,
    "source_model_id": "math.numeric.nonlinear",
    "coefficient_space": "original_physical",
    "parameter_ids": [
      "a",
      "b"
    ],
    "parameter_units": [
      "1",
      "1"
    ],
    "source_parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "source_covariance": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        0.00027298018465493444,
        -0.0009554306462922706,
        -0.0009554306462922706,
        0.003966878715104643
      ]
    },
    "degrees_of_freedom": 20.0,
    "distribution": "student_t",
    "approximation": "local_linearization",
    "interval_status": "value",
    "interval_reason": ""
  },
  "correlation": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      -0.918140499630484,
      -0.918140499630484,
      1.0
    ]
  },
  "lower": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.9641163796498413,
      0.8552859932838964
    ]
  },
  "upper": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0330454230210475,
      1.1180471413830344
    ]
  },
  "critical_value": 2.0859634472658612
}

fit_bootstrap_prepare

Access
Registered in the Python Job
Arguments
model, X, y, CORE plan, options
Units
Units follow NUMERIC_API_v1 operation contract
Result
data-only bootstrap state, draw or captured numerical receipt
Effect
Validate and prepare exact bootstrap inputs without refitting or sampling
Types
struct,matrix,vector,struct,struct
Declared shape
bounded_bootstrap_inputs
Options
weights=original
Nonfinite values
error
Units rule
explicit_CORE_plan
gxtxt_api_call("NUMERIC_API_v1", "fit_bootstrap_prepare", args)
Recorded result · fit_bootstrap_prepare

Download the example script (ZIP).

Example operands, preview

[
  {
    "kind": "expression",
    "expression": [
      "a*x+b"
    ],
    "parameter_ids": [
      "a",
      "b"
    ],
    "parameter_units": [
      "1",
      "1"
    ],
    "predictor_ids": [
      "x"
    ],
    "response_units": [
      "1"
    ],
    "initial_parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        0.25
      ]
    },
    "parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "expression_grammar": "CORE controlled expression v1",
    "compiler_version": 1.0,
    "source_sha256": "b9a68d125273d2307d90c95175d7c74497835878c6f2e330a4823f555dec9dc5",
    "binding_sha256": "91ac60511ddacd6749eae8c7f09449a6e458f7db4291f25f06ca6a4a2b551f4f",
    "parameter_constraints": {
      "initial_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          1.0,
          0.25
        ]
      },
      "lower_bounds": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          -100.0,
          -100.0
        ]
      },
      "upper_bounds": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          100.0,
          100.0
        ]
      },
      "fixed_mask": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          0.0,
          0.0
        ]
      }
    },
    "input_constraints": {
      "domain": "finite_real",
      "translation_policy": "forbid_translation",
      "required_x_unit": "1",
      "required_y_unit": "1"
    },
    "formula_declaration": {
      "schema": "gxtxt.fit_formula_declaration.v1",
      "recipe": {
        "expression": "a*x+b",
        "predictor_ids": [
          "x"
        ],
        "predictor_units": [
          "1"
        ],
        "response_unit": "1",
        "parameters": [
          {
            "id": "a",
            "unit": "1",
            "initial": 1.0,
            "lower": -100.0,
            "upper": 100.0
          },
          {
            "id": "b",
            "unit": "1",
            "initial": 0.25,
            "lower": -100.0,
            "upper": 100.0
          }
        ]
      },
      "original_expression": "a*x+b",
      "effective_expression": "a*x+b",
      "d
[…]

Result, preview

{
  "schema": "gxtxt.fit_bootstrap_state.v1",
  "plan": {
    "api_id": "STATISTICAL_FIT_BOOTSTRAP_PLAN_v1",
    "api_version": 1.0,
    "status": "value",
    "reason": "",
    "interval_method": "percentile",
    "interval_policy": "all_requested_regular_converged",
    "source_operation": "nonlinear_fit",
    "source_model_id": "math.numeric.nonlinear",
    "coefficient_space": "original_physical",
    "response_unit": "1",
    "coordinate_space": "original_physical",
    "weight_semantics": "unweighted",
    "noise_model": "independent_gaussian_estimated_variance",
    "parameter_ids": [
      "a",
      "b"
    ],
    "parameter_units": [
      "1",
      "1"
    ],
    "parameter_roles": [
      "free",
      "free"
    ],
    "source_parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "solver_policy": {
      "lower_bounds": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          -100.0,
          -100.0
        ]
      },
      "upper_bounds": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          100.0,
          100.0
        ]
      },
      "fixed_mask": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          0.0,
          0.0
        ]
      },
      "parameter_scales": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          1.0,
          0.25
        ]
      },
      "loss": "linear",
      "loss_scale": 1.0,
      "strategy": "levenberg_marquardt",
      "function_tolerance": 1e-12,
      "gradient_tolerance": 1e-12,
      "parameter_tolerance": 1e-12,
      "max_iterations": 400.0
    }
  },
  "model": {
    "kind": "expression",
    "expression": [
      "a*x+b"
    ],
    "parameter_ids": [
      "a",
      "b"
    ],
    "parameter_units": [
      "1",
      "1"
    ],
    "predictor_ids": [
      "x"
    ],
    "response_units": [
      "1"
    ],
    "initial_parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        0.25
      ]
    },
    "parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "expression_grammar": "CORE controlled expression v1",
    "compiler_version": 1.0,
    "source_sha256": "b9a68d125273d2307d90c95175d7c74497835878c6f2e330a4823f555dec9dc5",
    "binding_sha256": "91ac60511ddacd6749eae8c7f09449a6e458f7db4291f25f06ca6a4a2b551f4f",
    "parameter_constraints": {
      "initial_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          1.0,
          0.25
        ]
      },
      "lower_bounds": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          -100.0,
          -100.0
        ]
      },
      "upper_bounds": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          100.0,
          100.0
        ]
      },
      "fixed_mask": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          0.0,
          0.0

[…]

fit_bootstrap_draw

Access
Registered in the Python Job
Arguments
prepared state, seed
Units
Units follow NUMERIC_API_v1 operation contract
Result
data-only bootstrap state, draw or captured numerical receipt
Effect
Draw one aligned replicate through the shared resampling owner
Types
struct,scalar
Declared shape
bounded_bootstrap_draw
Nonfinite values
error
Units rule
explicit_CORE_plan
gxtxt_api_call("NUMERIC_API_v1", "fit_bootstrap_draw", args)
Recorded result · fit_bootstrap_draw

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.fit_bootstrap_state.v1",
    "plan": {
      "api_id": "STATISTICAL_FIT_BOOTSTRAP_PLAN_v1",
      "api_version": 1.0,
      "status": "value",
      "reason": "",
      "interval_method": "percentile",
      "interval_policy": "all_requested_regular_converged",
      "source_operation": "nonlinear_fit",
      "source_model_id": "math.numeric.nonlinear",
      "coefficient_space": "original_physical",
      "response_unit": "1",
      "coordinate_space": "original_physical",
      "weight_semantics": "unweighted",
      "noise_model": "independent_gaussian_estimated_variance",
      "parameter_ids": [
        "a",
        "b"
      ],
      "parameter_units": [
        "1",
        "1"
      ],
      "parameter_roles": [
        "free",
        "free"
      ],
      "source_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          1.9985809013354445,
          0.9866665673334654
        ]
      },
      "solver_policy": {
        "lower_bounds": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            -100.0,
            -100.0
          ]
        },
        "upper_bounds": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            100.0,
            100.0
          ]
        },
        "fixed_mask": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            0.0,
            0.0
          ]
        },
        "parameter_scales": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            1.0,
            0.25
          ]
        },
        "loss": "linear",
        "loss_scale": 1.0,
        "strategy": "levenberg_marquardt",
        "function_tolerance": 1e-12,
        "gradient_tolerance": 1e-12,
        "parameter_tolerance": 1e-12,
        "max_iterations": 400.0
      }
    },
    "model": {
      "kind": "expression",
      "expression": [
        "a*x+b"
      ],
      "parameter_ids": [
        "a",
        "b"
      ],
      "parameter_units": [
        "1",
        "1"
      ],
      "predictor_ids": [
        "x"
      ],
      "response_units": [
        "1"
      ],
      "initial_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float6
[…]

Result, preview

{
  "predictors": {
    "shape": [
      22,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.9047619047619047,
      5.285714285714286,
      3.619047619047619,
      5.285714285714286,
      2.1904761904761907,
      1.2380952380952381,
      1.0,
      1.4761904761904763,
      2.9047619047619047,
      1.0,
      2.1904761904761907
    ]
  },
  "response": {
    "shape": [
      22,
      1
    ],
    "dtype": "float64",
    "values": [
      3.0225792012895787,
      6.913876928404042,
      11.547648270021204,
      8.07962585232904,
      11.547648270021204,
      5.426435325505179,
      3.3894868954609714,
      3.0225792012895787,
      3.7987820026518593,
      6.913876928404042,
      3.0225792012895787,
      5.426435325505179
    ]
  },
  "weights": {
    "shape": [
      22,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0,
      1.0
    ]
  },
  "seed": 193.0,
  "next_seed": 1174960213.0
}

fit_bootstrap_summarize

Access
Registered in the Python Job
Arguments
prepared state, samples, statuses, seeds, execution
Units
Units follow NUMERIC_API_v1 operation contract
Result
data-only bootstrap state, draw or captured numerical receipt
Effect
Summarize the actual refit ledger through existing covariance and quantile owners
Types
struct,matrix,vector,vector,struct
Declared shape
bounded_bootstrap_ledger
Nonfinite values
error
Units rule
explicit_CORE_plan
gxtxt_api_call("NUMERIC_API_v1", "fit_bootstrap_summarize", args)
Recorded result · fit_bootstrap_summarize

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.fit_bootstrap_state.v1",
    "plan": {
      "api_id": "STATISTICAL_FIT_BOOTSTRAP_PLAN_v1",
      "api_version": 1.0,
      "status": "value",
      "reason": "",
      "interval_method": "percentile",
      "interval_policy": "all_requested_regular_converged",
      "source_operation": "nonlinear_fit",
      "source_model_id": "math.numeric.nonlinear",
      "coefficient_space": "original_physical",
      "response_unit": "1",
      "coordinate_space": "original_physical",
      "weight_semantics": "unweighted",
      "noise_model": "independent_gaussian_estimated_variance",
      "parameter_ids": [
        "a",
        "b"
      ],
      "parameter_units": [
        "1",
        "1"
      ],
      "parameter_roles": [
        "free",
        "free"
      ],
      "source_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          1.9985809013354445,
          0.9866665673334654
        ]
      },
      "solver_policy": {
        "lower_bounds": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            -100.0,
            -100.0
          ]
        },
        "upper_bounds": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            100.0,
            100.0
          ]
        },
        "fixed_mask": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            0.0,
            0.0
          ]
        },
        "parameter_scales": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            1.0,
            0.25
          ]
        },
        "loss": "linear",
        "loss_scale": 1.0,
        "strategy": "levenberg_marquardt",
        "function_tolerance": 1e-12,
        "gradient_tolerance": 1e-12,
        "parameter_tolerance": 1e-12,
        "max_iterations": 400.0
      }
    },
    "model": {
      "kind": "expression",
      "expression": [
        "a*x+b"
      ],
      "parameter_ids": [
        "a",
        "b"
      ],
      "parameter_units": [
        "1",
        "1"
      ],
      "predictor_ids": [
        "x"
      ],
      "response_units": [
        "1"
      ],
      "initial_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float6
[…]

Result, preview

{
  "schema": "gxtxt.fit_bootstrap_numeric.v1",
  "method": "pairs",
  "source_operation": "nonlinear_fit",
  "n": 22.0,
  "p": 2.0,
  "free_parameter_count": 2.0,
  "replicates": 24.0,
  "attempted_count": 24.0,
  "successful_count": 24.0,
  "regular_count": 24.0,
  "boundary_count": 0.0,
  "rank_failure_count": 0.0,
  "nonconverged_count": 0.0,
  "nonfinite_count": 0.0,
  "solver_error_count": 0.0,
  "not_completed_count": 0.0,
  "confidence": 0.95,
  "seed": 193.0
}
Negative test or attempted call · fit_bootstrap_summarize

Download the example script (ZIP).

Example operands, preview

[
  {
    "schema": "gxtxt.fit_bootstrap_state.v1",
    "plan": {
      "api_id": "STATISTICAL_FIT_BOOTSTRAP_PLAN_v1",
      "api_version": 1.0,
      "status": "value",
      "reason": "",
      "interval_method": "percentile",
      "interval_policy": "all_requested_regular_converged",
      "source_operation": "nonlinear_fit",
      "source_model_id": "math.numeric.nonlinear",
      "coefficient_space": "original_physical",
      "response_unit": "1",
      "coordinate_space": "original_physical",
      "weight_semantics": "unweighted",
      "noise_model": "independent_gaussian_estimated_variance",
      "parameter_ids": [
        "a",
        "b"
      ],
      "parameter_units": [
        "1",
        "1"
      ],
      "parameter_roles": [
        "free",
        "free"
      ],
      "source_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          1.9985809013354445,
          0.9866665673334654
        ]
      },
      "solver_policy": {
        "lower_bounds": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            -Infinity,
            -Infinity
          ]
        },
        "upper_bounds": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            Infinity,
            Infinity
          ]
        },
        "fixed_mask": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            0.0,
            0.0
          ]
        },
        "parameter_scales": {
          "shape": [
            2,
            1
          ],
          "dtype": "float64",
          "values": [
            1.0,
            0.25
          ]
        },
        "loss": "linear",
        "loss_scale": 1.0,
        "strategy": "levenberg_marquardt",
        "function_tolerance": 1e-12,
        "gradient_tolerance": 1e-12,
        "parameter_tolerance": 1e-12,
        "max_iterations": 400.0
      }
    },
    "model": {
      "kind": "expression",
      "expression": [
        "a*x+b"
      ],
      "parameter_ids": [
        "a",
        "b"
      ],
      "parameter_units": [
        "1",
        "1"
      ],
      "predictor_ids": [
        "x"
      ],
      "response_units": [
        "1"
      ],
      "initial_parameters": {
        "shape": [
          2,
          1
        ],
        "dty
[…]

Result, preview

"Octave:invalid-indexing: structure has no member 'messages'"

fit_bootstrap

Access
Registered in the Python Job
Arguments
fitted model, original predictors/response, public CORE plan, optional original weights
Units
Units follow NUMERIC_API_v1 operation contract
Result
Typed parameter draws/status/seeds and bounded actual refit receipt
Effect
Reproducible parameter-refit bootstrap with recorded failures and bounded sequential execution
Types
struct,matrix,vector,struct
Declared shape
captured_fitted_model_and_CORE_bootstrap_plan
Options
weights=original_positive_precision_vector
Nonfinite values
error
Units rule
explicit_CORE_plan
Catalog token
bootstrap_refits
gxtxt_api_call("NUMERIC_API_v1", "fit_bootstrap", args)
Recorded result · fit_bootstrap

Download the example script (ZIP).

Example operands, preview

[
  {
    "kind": "expression",
    "expression": [
      "a*x+b"
    ],
    "parameter_ids": [
      "a",
      "b"
    ],
    "parameter_units": [
      "1",
      "1"
    ],
    "predictor_ids": [
      "x"
    ],
    "response_units": [
      "1"
    ],
    "initial_parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        0.25
      ]
    },
    "parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "expression_grammar": "CORE controlled expression v1",
    "compiler_version": 1.0,
    "source_sha256": "b9a68d125273d2307d90c95175d7c74497835878c6f2e330a4823f555dec9dc5",
    "binding_sha256": "91ac60511ddacd6749eae8c7f09449a6e458f7db4291f25f06ca6a4a2b551f4f",
    "parameter_constraints": {
      "initial_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          1.0,
          0.25
        ]
      },
      "lower_bounds": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          -100.0,
          -100.0
        ]
      },
      "upper_bounds": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          100.0,
          100.0
        ]
      },
      "fixed_mask": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          0.0,
          0.0
        ]
      }
    },
    "input_constraints": {
      "domain": "finite_real",
      "translation_policy": "forbid_translation",
      "required_x_unit": "1",
      "required_y_unit": "1"
    },
    "formula_declaration": {
      "schema": "gxtxt.fit_formula_declaration.v1",
      "recipe": {
        "expression": "a*x+b",
        "predictor_ids": [
          "x"
        ],
        "predictor_units": [
          "1"
        ],
        "response_unit": "1",
        "parameters": [
          {
            "id": "a",
            "unit": "1",
            "initial": 1.0,
            "lower": -100.0,
            "upper": 100.0
          },
          {
            "id": "b",
            "unit": "1",
            "initial": 0.25,
            "lower": -100.0,
            "upper": 100.0
          }
        ]
      },
      "original_expression": "a*x+b",
      "effective_expression": "a*x+b",
      "d
[…]

Result, preview

{
  "schema": "gxtxt.fit_bootstrap_numeric.v1",
  "method": "pairs",
  "source_operation": "nonlinear_fit",
  "n": 22.0,
  "p": 2.0,
  "free_parameter_count": 2.0,
  "replicates": 24.0,
  "attempted_count": 24.0,
  "successful_count": 24.0,
  "regular_count": 24.0,
  "boundary_count": 0.0,
  "rank_failure_count": 0.0,
  "nonconverged_count": 0.0,
  "nonfinite_count": 0.0,
  "solver_error_count": 0.0,
  "not_completed_count": 0.0,
  "confidence": 0.95,
  "seed": 193.0
}
Contract query · expression-name:fit_bootstrap

Download the example script (ZIP).

Example operands, preview

[
  "bootstrap_refits"
]

Result, preview

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/operationByExpressionName: math.numeric API v1: unknown or ambiguous expression operation 'bootstrap_refits'"

prediction_uncertainty

Access
Registered in the Python Job
Arguments
model, predictors, CORE prediction plan, optional future observation noise
Units
Units follow NUMERIC_API_v1 operation contract
Result
Binary per-query predictions, interval bounds and availability with bounded inference receipt
Effect
Propagate captured covariance through the native model Jacobian for distinct pointwise mean or future-observation intervals
Types
struct,matrix,struct
Declared shape
captured_model_and_CORE_prediction_plan
Options
prediction_sigma=positive_scalar_or_vector;prediction_weights=positive_scalar_or_vector
Nonfinite values
error
Units rule
explicit_CORE_plan
gxtxt_api_call("NUMERIC_API_v1", "prediction_uncertainty", args)
Recorded result · prediction_uncertainty

Download the example script (ZIP).

Example operands, preview

[
  {
    "kind": "expression",
    "expression": [
      "a*x+b"
    ],
    "parameter_ids": [
      "a",
      "b"
    ],
    "parameter_units": [
      "1",
      "1"
    ],
    "predictor_ids": [
      "x"
    ],
    "response_units": [
      "1"
    ],
    "initial_parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        0.25
      ]
    },
    "parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "expression_grammar": "CORE controlled expression v1",
    "compiler_version": 1.0,
    "source_sha256": "b9a68d125273d2307d90c95175d7c74497835878c6f2e330a4823f555dec9dc5",
    "binding_sha256": "91ac60511ddacd6749eae8c7f09449a6e458f7db4291f25f06ca6a4a2b551f4f",
    "parameter_constraints": {
      "initial_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          1.0,
          0.25
        ]
      },
      "lower_bounds": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          -100.0,
          -100.0
        ]
      },
      "upper_bounds": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          100.0,
          100.0
        ]
      },
      "fixed_mask": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          0.0,
          0.0
        ]
      }
    },
    "input_constraints": {
      "domain": "finite_real",
      "translation_policy": "forbid_translation",
      "required_x_unit": "1",
      "required_y_unit": "1"
    },
    "formula_declaration": {
      "schema": "gxtxt.fit_formula_declaration.v1",
      "recipe": {
        "expression": "a*x+b",
        "predictor_ids": [
          "x"
        ],
        "predictor_units": [
          "1"
        ],
        "response_unit": "1",
        "parameters": [
          {
            "id": "a",
            "unit": "1",
            "initial": 1.0,
            "lower": -100.0,
            "upper": 100.0
          },
          {
            "id": "b",
            "unit": "1",
            "initial": 0.25,
            "lower": -100.0,
            "upper": 100.0
          }
        ]
      },
      "original_expression": "a*x+b",
      "effective_expression": "a*x+b",
      "d
[…]

Result, preview

{
  "numeric_api": "NUMERIC_API_v1",
  "operation": "prediction_uncertainty",
  "plan": {
    "api_id": "STATISTICAL_PREDICTION_INFERENCE_PLAN_v1",
    "api_version": 1.0,
    "kind": "mean_confidence",
    "status": "value",
    "reason": "",
    "parameter_plan": {
      "api_id": "STATISTICAL_PARAMETER_INFERENCE_PLAN_v1",
      "api_version": 1.0,
      "status": "value",
      "reason": "",
      "confidence": 0.95,
      "source_model_id": "math.numeric.nonlinear",
      "coefficient_space": "original_physical",
      "parameter_ids": [
        "a",
        "b"
      ],
      "parameter_units": [
        "1",
        "1"
      ],
      "source_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          1.9985809013354445,
          0.9866665673334654
        ]
      },
      "source_covariance": {
        "shape": [
          2,
          2
        ],
        "dtype": "float64",
        "values": [
          0.00027298018465493444,
          -0.0009554306462922706,
          -0.0009554306462922706,
          0.003966878715104643
        ]
      },
      "degrees_of_freedom": 20.0,
      "distribution": "student_t",
      "approximation": "local_linearization",
      "interval_status": "value",
      "interval_reason": ""
    },
    "all_parameter_ids": [
      "a",
      "b"
    ],
    "all_parameter_values": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "free_parameter_indices": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        2.0
      ]
    },
    "response_unit": "1",
    "orientation": "y_of_x",
    "source_operation": "nonlinear_fit",
    "model_source_sha256": "b9a68d125273d2307d90c95175d7c74497835878c6f2e330a4823f555dec9dc5",
    "model_binding_sha256": "91ac60511ddacd6749eae8c7f09449a6e458f7db4291f25f06ca6a4a2b551f4f",
    "observation_noise_policy": "none",
    "observation_scale": "",
    "critical_value": "",
    "coverage": "pointwise"
  },
  "predicted": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      4.983828370004354,
      8.980990172675243
    ]
  },
  "mean_standard_error": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.03517210355601862,
      0.026289094682879984
    ]
  },
  "observation_standard_deviation": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  },
  "standard_error": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.03517210355601862,
      0.026289094682879984
    ]
  },
  "lower": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      4.91046064762305,
      8.926152082105045
    ]
  },
  "upper": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      5.0571960923856585,
      9.035828263245442
    ]
  },
  "bounds_available": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0
    ]
  },
  "query_index": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0
    ]
  },
  "query_count": 2.0,
  "available_count": 2.0,
  "unavailable_count": 0.0,
  "critical_value": 2.0859634472658612,
  "critical_value_reused": f
[…]

parameterUncertainty

Access
Registered in the Python Job
Arguments
plan
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Function
Exact original Numeric parameterUncertainty
gxtxt_api_call("NUMERIC_API_v1", "parameterUncertainty", args)
Recorded result · parameterUncertainty

Download the example script (ZIP).

Example operands, preview

[
  {
    "api_id": "STATISTICAL_PARAMETER_INFERENCE_PLAN_v1",
    "api_version": 1,
    "status": "value",
    "reason": "",
    "confidence": 0.95,
    "source_model_id": "math.numeric.nonlinear",
    "coefficient_space": "original_physical",
    "parameter_ids": [
      "a",
      "b"
    ],
    "parameter_units": [
      "1",
      "1"
    ],
    "source_parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "source_covariance": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        0.00027298018465493444,
        -0.0009554306462922706,
        -0.0009554306462922706,
        0.003966878715104643
      ]
    },
    "degrees_of_freedom": 20.0,
    "distribution": "student_t",
    "approximation": "local_linearization",
    "interval_status": "value",
    "interval_reason": ""
  }
]

Result, preview

{
  "numeric_api": "NUMERIC_API_v1",
  "operation": "parameter_uncertainty",
  "plan": {
    "api_id": "STATISTICAL_PARAMETER_INFERENCE_PLAN_v1",
    "api_version": 1.0,
    "status": "value",
    "reason": "",
    "confidence": 0.95,
    "source_model_id": "math.numeric.nonlinear",
    "coefficient_space": "original_physical",
    "parameter_ids": [
      "a",
      "b"
    ],
    "parameter_units": [
      "1",
      "1"
    ],
    "source_parameters": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "source_covariance": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        0.00027298018465493444,
        -0.0009554306462922706,
        -0.0009554306462922706,
        0.003966878715104643
      ]
    },
    "degrees_of_freedom": 20.0,
    "distribution": "student_t",
    "approximation": "local_linearization",
    "interval_status": "value",
    "interval_reason": ""
  },
  "correlation": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      -0.918140499630484,
      -0.918140499630484,
      1.0
    ]
  },
  "lower": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.9641163796498413,
      0.8552859932838964
    ]
  },
  "upper": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0330454230210475,
      1.1180471413830344
    ]
  },
  "critical_value": 2.0859634472658612
}

fitBootstrap

Access
Registered in the Python Job
Arguments
model predictors response plan {options {kind struct fields {}}}
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Function
Exact original Numeric fitBootstrap
gxtxt_api_call("NUMERIC_API_v1", "fitBootstrap", args)
Recorded result · fitBootstrap

Download the example script (ZIP).

Example operands, preview

[
  {
    "kind": "struct",
    "fields": {
      "kind": {
        "kind": "text",
        "value": "expression"
      },
      "expression": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "a*x+b"
          }
        ]
      },
      "parameter_ids": {
        "kind": "cell",
        "shape": [
          1,
          2
        ],
        "items": [
          {
            "kind": "text",
            "value": "a"
          },
          {
            "kind": "text",
            "value": "b"
          }
        ]
      },
      "parameter_units": {
        "kind": "cell",
        "shape": [
          1,
          2
        ],
        "items": [
          {
            "kind": "text",
            "value": "1"
          },
          {
            "kind": "text",
            "value": "1"
          }
        ]
      },
      "predictor_ids": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "x"
          }
        ]
      },
      "response_units": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "1"
          }
        ]
      },
      "initial_parameters": {
        "kind": "array",
        "shape": [
          2,
          1
        ],
        "real": [
          1.0,
          0.25
        ]
      },
      "parameters": {
        "kind": "array",
        "shape": [
          2,
          1
        ],
        "real": [
          1.9985809013354445,
          0.9866665673334654
        ]
      },
      "expression_grammar": {
        "kind": "text",
        "value": "CORE controlled expression v1"
      },
      "compiler_version": {
        "kind": "array",
        "shape": [
          1,
          1
        ],
        "real": [
          1.0
        ]
      },
      "source_sha256": {
        "kind": "text",
        "value": "b9a68d125273d2307d90c95175d7c74497835878c6f2e330a4823f555dec9dc5"
      },
      "binding_sha256": {
        "kind": "text",
        "value": "91ac60511ddacd6749eae8c7f09449a6e458f7db4291f25f06ca6a4a2b551f4f"
      },
      "parameter_constraints": {
        "kind": "struct",
        "fields": {
          "initial_parameters": {
            "kind": "array",
            "shape": [
              2,
         
[…]

Result, preview

{
  "schema": "gxtxt.fit_bootstrap_numeric.v1",
  "method": "pairs",
  "source_operation": "nonlinear_fit",
  "n": 22.0,
  "p": 2.0,
  "free_parameter_count": 2.0,
  "replicates": 24.0,
  "attempted_count": 24.0,
  "successful_count": 24.0,
  "regular_count": 24.0,
  "boundary_count": 0.0,
  "rank_failure_count": 0.0,
  "nonconverged_count": 0.0,
  "nonfinite_count": 0.0,
  "solver_error_count": 0.0,
  "not_completed_count": 0.0,
  "confidence": 0.95,
  "seed": 193.0
}
Negative test or attempted call · fitBootstrap

Download the example script (ZIP).

Example operands, preview

[
  {
    "kind": "struct",
    "fields": {
      "kind": {
        "kind": "text",
        "value": "expression"
      },
      "expression": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "a*x+b"
          }
        ]
      },
      "parameter_ids": {
        "kind": "cell",
        "shape": [
          1,
          2
        ],
        "items": [
          {
            "kind": "text",
            "value": "a"
          },
          {
            "kind": "text",
            "value": "b"
          }
        ]
      },
      "parameter_units": {
        "kind": "cell",
        "shape": [
          1,
          2
        ],
        "items": [
          {
            "kind": "text",
            "value": "1"
          },
          {
            "kind": "text",
            "value": "1"
          }
        ]
      },
      "predictor_ids": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "x"
          }
        ]
      },
      "response_units": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "1"
          }
        ]
      },
      "initial_parameters": {
        "kind": "array",
        "shape": [
          2,
          1
        ],
        "real": [
          1.0,
          0.25
        ]
      },
      "parameters": {
        "kind": "array",
        "shape": [
          2,
          1
        ],
        "real": [
          1.9985809013354445,
          0.9866665673334654
        ]
      },
      "expression_grammar": {
        "kind": "text",
        "value": "CORE controlled expression v1"
      },
      "compiler_version": {
        "kind": "array",
        "shape": [
          1,
          1
        ],
        "real": [
          1.0
        ]
      },
      "source_sha256": {
        "kind": "text",
        "value": "b9a68d125273d2307d90c95175d7c74497835878c6f2e330a4823f555dec9dc5"
      },
      "binding_sha256": {
        "kind": "text",
        "value": "91ac60511ddacd6749eae8c7f09449a6e458f7db4291f25f06ca6a4a2b551f4f"
      },
      "parameter_constraints": {
        "kind": "struct",
        "fields": {
          "initial_parameters": {
            "kind": "array",
            "shape": [
              2,
         
[…]

Result, preview

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/fitBootstrap: nonfinite input is not accepted"

predictionUncertainty

Access
Registered in the Python Job
Arguments
model predictors plan {options {kind struct fields {}}}
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Function
Exact original Numeric predictionUncertainty
gxtxt_api_call("NUMERIC_API_v1", "predictionUncertainty", args)
Recorded result · predictionUncertainty

Download the example script (ZIP).

Example operands, preview

[
  {
    "kind": "struct",
    "fields": {
      "kind": {
        "kind": "text",
        "value": "expression"
      },
      "expression": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "a*x+b"
          }
        ]
      },
      "parameter_ids": {
        "kind": "cell",
        "shape": [
          1,
          2
        ],
        "items": [
          {
            "kind": "text",
            "value": "a"
          },
          {
            "kind": "text",
            "value": "b"
          }
        ]
      },
      "parameter_units": {
        "kind": "cell",
        "shape": [
          1,
          2
        ],
        "items": [
          {
            "kind": "text",
            "value": "1"
          },
          {
            "kind": "text",
            "value": "1"
          }
        ]
      },
      "predictor_ids": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "x"
          }
        ]
      },
      "response_units": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "1"
          }
        ]
      },
      "initial_parameters": {
        "kind": "array",
        "shape": [
          2,
          1
        ],
        "real": [
          1.0,
          0.25
        ]
      },
      "parameters": {
        "kind": "array",
        "shape": [
          2,
          1
        ],
        "real": [
          1.9985809013354445,
          0.9866665673334654
        ]
      },
      "expression_grammar": {
        "kind": "text",
        "value": "CORE controlled expression v1"
      },
      "compiler_version": {
        "kind": "array",
        "shape": [
          1,
          1
        ],
        "real": [
          1.0
        ]
      },
      "source_sha256": {
        "kind": "text",
        "value": "b9a68d125273d2307d90c95175d7c74497835878c6f2e330a4823f555dec9dc5"
      },
      "binding_sha256": {
        "kind": "text",
        "value": "91ac60511ddacd6749eae8c7f09449a6e458f7db4291f25f06ca6a4a2b551f4f"
      },
      "parameter_constraints": {
        "kind": "struct",
        "fields": {
          "initial_parameters": {
            "kind": "array",
            "shape": [
              2,
         
[…]

Result, preview

{
  "numeric_api": "NUMERIC_API_v1",
  "operation": "prediction_uncertainty",
  "plan": {
    "api_id": "STATISTICAL_PREDICTION_INFERENCE_PLAN_v1",
    "api_version": 1.0,
    "kind": "mean_confidence",
    "status": "value",
    "reason": "",
    "parameter_plan": {
      "api_id": "STATISTICAL_PARAMETER_INFERENCE_PLAN_v1",
      "api_version": 1.0,
      "status": "value",
      "reason": "",
      "confidence": 0.95,
      "source_model_id": "math.numeric.nonlinear",
      "coefficient_space": "original_physical",
      "parameter_ids": [
        "a",
        "b"
      ],
      "parameter_units": [
        "1",
        "1"
      ],
      "source_parameters": {
        "shape": [
          2,
          1
        ],
        "dtype": "float64",
        "values": [
          1.9985809013354445,
          0.9866665673334654
        ]
      },
      "source_covariance": {
        "shape": [
          2,
          2
        ],
        "dtype": "float64",
        "values": [
          0.00027298018465493444,
          -0.0009554306462922706,
          -0.0009554306462922706,
          0.003966878715104643
        ]
      },
      "degrees_of_freedom": 20.0,
      "distribution": "student_t",
      "approximation": "local_linearization",
      "interval_status": "value",
      "interval_reason": ""
    },
    "all_parameter_ids": [
      "a",
      "b"
    ],
    "all_parameter_values": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "free_parameter_indices": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        2.0
      ]
    },
    "response_unit": "1",
    "orientation": "y_of_x",
    "source_operation": "nonlinear_fit",
    "model_source_sha256": "b9a68d125273d2307d90c95175d7c74497835878c6f2e330a4823f555dec9dc5",
    "model_binding_sha256": "91ac60511ddacd6749eae8c7f09449a6e458f7db4291f25f06ca6a4a2b551f4f",
    "observation_noise_policy": "none",
    "observation_scale": "",
    "critical_value": "",
    "coverage": "pointwise"
  },
  "predicted": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      4.983828370004354,
      8.980990172675243
    ]
  },
  "mean_standard_error": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.03517210355601862,
      0.026289094682879984
    ]
  },
  "observation_standard_deviation": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0
    ]
  },
  "standard_error": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.03517210355601862,
      0.026289094682879984
    ]
  },
  "lower": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      4.91046064762305,
      8.926152082105045
    ]
  },
  "upper": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      5.0571960923856585,
      9.035828263245442
    ]
  },
  "bounds_available": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0
    ]
  },
  "query_index": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0
    ]
  },
  "query_count": 2.0,
  "available_count": 2.0,
  "unavailable_count": 0.0,
  "critical_value": 2.0859634472658612,
  "critical_value_reused": f
[…]
Negative test or attempted call · predictionUncertainty

Download the example script (ZIP).

Example operands, preview

[
  {
    "kind": "struct",
    "fields": {
      "kind": {
        "kind": "text",
        "value": "expression"
      },
      "expression": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "a*x+b"
          }
        ]
      },
      "parameter_ids": {
        "kind": "cell",
        "shape": [
          1,
          2
        ],
        "items": [
          {
            "kind": "text",
            "value": "a"
          },
          {
            "kind": "text",
            "value": "b"
          }
        ]
      },
      "parameter_units": {
        "kind": "cell",
        "shape": [
          1,
          2
        ],
        "items": [
          {
            "kind": "text",
            "value": "1"
          },
          {
            "kind": "text",
            "value": "1"
          }
        ]
      },
      "predictor_ids": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "x"
          }
        ]
      },
      "response_units": {
        "kind": "cell",
        "shape": [
          1,
          1
        ],
        "items": [
          {
            "kind": "text",
            "value": "1"
          }
        ]
      },
      "initial_parameters": {
        "kind": "array",
        "shape": [
          2,
          1
        ],
        "real": [
          1.0,
          0.25
        ]
      },
      "parameters": {
        "kind": "array",
        "shape": [
          2,
          1
        ],
        "real": [
          1.9985809013354445,
          0.9866665673334654
        ]
      },
      "expression_grammar": {
        "kind": "text",
        "value": "CORE controlled expression v1"
      },
      "compiler_version": {
        "kind": "array",
        "shape": [
          1,
          1
        ],
        "real": [
          1.0
        ]
      },
      "source_sha256": {
        "kind": "text",
        "value": "b9a68d125273d2307d90c95175d7c74497835878c6f2e330a4823f555dec9dc5"
      },
      "binding_sha256": {
        "kind": "text",
        "value": "91ac60511ddacd6749eae8c7f09449a6e458f7db4291f25f06ca6a4a2b551f4f"
      },
      "parameter_constraints": {
        "kind": "struct",
        "fields": {
          "initial_parameters": {
            "kind": "array",
            "shape": [
              2,
         
[…]

Result, preview

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/predictionUncertainty: nonfinite input is not accepted"

propagateIndependentUncertainty

Access
Registered in the Python Job
Arguments
jacobian standardUncertainty {options {}}
Units
Exact original owner units and interpretation; no relabelling
Result
Complete original result with number/boolean/string/vector/matrix/tensor/struct/cell types from owner resultTypes immediately after call
Function
Exact original Numeric propagateIndependentUncertainty
gxtxt_api_call("NUMERIC_API_v1", "propagateIndependentUncertainty", args)
Recorded result · propagateIndependentUncertainty

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      0.0,
      0.0,
      1.0
    ]
  },
  {
    "shape": [
      2
    ],
    "dtype": "float64",
    "values": [
      0.1,
      0.2
    ]
  }
]

Result, preview

{
  "covariance": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.010000000000000002,
      0.0,
      0.0,
      0.04000000000000001
    ]
  },
  "standard_uncertainty": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.1,
      0.2
    ]
  },
  "jacobian": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      0.0,
      0.0,
      1.0
    ]
  },
  "input_covariance": {
    "shape": [
      2,
      2
    ],
    "dtype": "float64",
    "values": [
      0.010000000000000002,
      0.0,
      0.0,
      0.04000000000000001
    ]
  },
  "method": "first_order_linear_propagation",
  "input_kind": "standard_uncertainty",
  "input_count": 2.0,
  "output_count": 2.0
}