Statistics and estimators

Choose Numeric operations for statistical summaries, quantiles, and estimators, and check options for weights and nonfinite values.

Numerical computing, models, statistics, and Datasets with Python

Define the observed population

Declare ordering, the effective sample, weights, and the policy for nonfinite values. Population and sample standard deviations use different denominators. Frequency weights, relative weights, and inverse-variance weights have distinct interpretations. Distinguish the mean, SEM, quantiles, and measures of spread before comparing groups. PCA returns variance along principal directions according to the declared scaling and shape.

Operation reference

Jump to an operation

residual_sequence

Access
Registered in the Python Job
Arguments
residual vector, exact ordering keys (empty for input positions), explicit ordering options
Units
Units follow NUMERIC_API_v1 operation contract
Result
bounded sequence facts and input/order fingerprints; CORE owns interpretation and no p values are computed
Effect
Explicit-order residual sequence facts; CORE owns interpretation
Types
vector
Declared shape
same_length
Options
ordering=input,ascending;max_lag=1..64;nonfinite=error,omit
Nonfinite values
error,omit
Units rule
dimensionless
gxtxt_api_call("NUMERIC_API_v1", "residual_sequence", args)
Recorded result · residual_sequence

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      5
    ],
    "dtype": "float64",
    "values": [
      -1.0,
      2.0,
      -1.0,
      1.0,
      -1.0
    ]
  },
  {
    "shape": [
      5
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  {
    "ordering": "input"
  }
]

Result, preview

{
  "numeric_api": "NUMERIC_API_v1",
  "operation": "residual_sequence",
  "schema": "gxtxt.residual_sequence_numeric.v1",
  "input_count": 5.0,
  "n": 5.0,
  "omitted_count": 0.0,
  "nonfinite_policy": "error",
  "ordering": "input",
  "key_storage_class": "double",
  "generated_input_positions": false,
  "tie_count": 0.0,
  "tie_policy": "stable_input_order",
  "input_residual_sha256": "8b33ba939a6a3272f8a2e93dd9ed4c8e9c50a87daf7e331039f967250688cf41",
  "input_order_sha256": "5a5af3993435cef7c2014d4561400dcb5a46e73e2b257a9178642ec688e821e1",
  "ordered_residual_sha256": "8b33ba939a6a3272f8a2e93dd9ed4c8e9c50a87daf7e331039f967250688cf41",
  "ordered_keys_sha256": "5a5af3993435cef7c2014d4561400dcb5a46e73e2b257a9178642ec688e821e1",
  "positive_count": 2.0,
  "negative_count": 3.0
}
Negative test or attempted call · residual_sequence

Download the example script (ZIP).

Result, preview

"GXTXT:Numeric:Sequence: Declare ordering=input or ascending explicitly"

event_period

Access
Registered in the Python Job
Arguments
crossing vector and optional empty options
Units
Units follow NUMERIC_API_v1 operation contract
Result
bounded period and frequency facts
Effect
Arithmetic reference crossing periods without inferred sampling uncertainty
Types
vector
Declared shape
finite_nondecreasing
Nonfinite values
error
Units rule
seconds
gxtxt_api_call("NUMERIC_API_v1", "event_period", args)
Recorded result · event_period

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  }
]

Result, preview

{
  "n": 3.0,
  "crossing_count": 4.0,
  "period_count": 3.0,
  "method": "arithmetic_intercrossing_intervals",
  "period": 1.0,
  "frequency_hz": 1.0
}

pulse_timing

Access
Registered in the Python Job
Arguments
rising and falling vectors and optional empty options
Units
Units follow NUMERIC_API_v1 operation contract
Result
bounded period width duty and sample spread facts
Effect
Complete pulse widths mean period and sample period spread
Types
vector
Declared shape
finite_nondecreasing
Nonfinite values
error
Units rule
seconds
gxtxt_api_call("NUMERIC_API_v1", "pulse_timing", args)
Recorded result · pulse_timing

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.25,
      2.25,
      3.25,
      4.25
    ]
  }
]

Result, preview

{
  "n": 3.0,
  "crossing_count": 4.0,
  "period_count": 3.0,
  "method": "complete_pulse_intervals",
  "width_count": 3.0,
  "period_seconds": 1.0,
  "frequency_hz": 1.0,
  "pulse_width_seconds": 0.25,
  "duty_cycle": 0.25,
  "jitter_std_seconds": 0.0
}

replicate_summary

Access
Registered in the Python Job
Arguments
values matrix, source IDs, optional mode/sampling/local_dispersion options
Units
Units follow NUMERIC_API_v1 operation contract
Result
Per-coordinate statistics, envelopes and eligibility facts
Effect
Aligned replicate summaries with explicit source grouping and sampling assumptions
Types
matrix,vector
Declared shape
coordinate_rows_and_curve_columns
Options
mode=labelled_traces_anova,unlabelled_point_cloud;sampling_model=unspecified,independent_traces;local_dispersion=matrix;local_available=matrix
Nonfinite values
error
Units rule
caller_owned
Catalog token
replicate_summary
gxtxt_api_call("NUMERIC_API_v1", "replicate_summary", args)
Recorded result · replicate_summary

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      3,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0,
      6.0,
      2.0,
      4.0,
      9.0
    ]
  },
  [
    1,
    2
  ]
]

Result, preview

{
  "y_mean": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      1.5,
      3.5,
      7.5
    ]
  },
  "y_median": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      1.5,
      3.5,
      7.5
    ]
  },
  "y_std": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.7071067811865476,
      0.7071067811865476,
      2.1213203435596424
    ]
  },
  "y_sem": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      NaN,
      NaN,
      NaN
    ]
  },
  "sigma_within": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      NaN,
      NaN,
      NaN
    ]
  },
  "sigma_between": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      NaN,
      NaN,
      NaN
    ]
  },
  "sigma_total": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      NaN,
      NaN,
      NaN
    ]
  },
  "n": 2.0,
  "n_sources": 2.0,
  "within_df": 0.0,
  "component_coefficient": 1.0,
  "components_identifiable": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.0,
      0.0
    ]
  },
  "between_clamped": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      NaN,
      NaN,
      NaN
    ]
  },
  "lower_std": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.7928932188134524,
      2.7928932188134525,
      5.378679656440358
    ]
  },
  "upper_std": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      2.2071067811865475,
      4.207106781186548,
      9.621320343559642
    ]
  },
  "lower_sem": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      NaN,
      NaN,
      NaN
    ]
  },
  "upper_sem": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      NaN,
      NaN,
      NaN
    ]
  },
  "lower_total": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      NaN,
      NaN,
      NaN
    ]
  }
}
Contract query · expression-name:replicate_summary

Download the example script (ZIP).

Example operands, preview

[
  "replicate_summary"
]

Result, preview

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

welch_aggregate

Access
Registered in the Python Job
Arguments
sum_psd, sum_amplitude, required window_count/frequency_step_hz/enbw_sum_hz options
Units
Units follow NUMERIC_API_v1 operation contract
Result
Spectral vectors and bounded descriptive facts
Effect
Aggregate normalized one-sided periodogram sums without FFT recomputation
Types
vector
Declared shape
matched_vectors_min_2
Options
window_count=positive_integer;frequency_step_hz=positive_scalar;enbw_sum_hz=positive_scalar
Nonfinite values
error
Units rule
caller_owned
Expression function
welch_aggregate
gxtxt_api_call("NUMERIC_API_v1", "welch_aggregate", args)
Recorded result · welch_aggregate

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      2.0,
      2.0
    ]
  },
  {
    "window_count": 2,
    "frequency_step_hz": 1.0,
    "enbw_sum_hz": 3.0
  }
]

Result, preview

{
  "psd": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      1.0,
      1.5,
      2.0
    ]
  },
  "asd": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      0.7071067811865476,
      1.0,
      1.224744871391589,
      1.4142135623730951
    ]
  },
  "mean_amplitude": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      0.5,
      0.5,
      1.0,
      1.0
    ]
  },
  "psd_db": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      -3.010299956639812,
      0.0,
      1.7609125905568124,
      3.010299956639812
    ]
  },
  "frequency": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      2.0,
      3.0
    ]
  },
  "window_count": 2.0,
  "bin_count": 4.0,
  "df": 1.0,
  "mean_enbw_hz": 1.5,
  "integrated_power": 5.0,
  "peak_frequency": 3.0,
  "peak_psd": 2.0,
  "peak_index": 4.0,
  "zero_level_bins": 0.0,
  "zero_policy": "undefined_finite_logarithmic_level",
  "averaging": "arithmetic_periodogram_mean",
  "peak_policy": "first_positive_maximum_excluding_dc"
}

power_level

Access
Registered in the Python Job
Arguments
power, optional reference_rms options
Units
Units follow NUMERIC_API_v1 operation contract
Result
Power, RMS, finite level or undefined zero marker
Effect
RMS and logarithmic level of finite nonnegative integrated spectral band powers
Types
scalar,vector,matrix
Declared shape
same_as_input
Options
reference_rms=positive_scalar
Nonfinite values
error
Units rule
caller_owned
Expression function
power_level
gxtxt_api_call("NUMERIC_API_v1", "power_level", args)
Recorded result · power_level

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  }
]

Result, preview

{
  "power": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  "root_power": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.4142135623730951,
      1.7320508075688772,
      2.0
    ]
  },
  "level_db": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      3.010299956639812,
      4.771212547196624,
      6.020599913279624
    ]
  },
  "reference_rms": 1.0,
  "zero_policy": "undefined_finite_logarithmic_level"
}

spectral_features

Access
Registered in the Python Job
Arguments
frequency, values, optional options
Units
Units follow NUMERIC_API_v1 operation contract
Result
Captured scalar descriptors and distribution vectors
Effect
Descriptive uniformly spaced spectral distribution; no new FFT
Types
vector
Declared shape
matched_vectors_min_3
Options
input_semantics=amplitude,power,psd;exclude_dc=boolean
Nonfinite values
error
Units rule
caller_owned
Expression function
spectral_features
gxtxt_api_call("NUMERIC_API_v1", "spectral_features", args)
Recorded result · spectral_features

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      2.0,
      2.0
    ]
  }
]

Result, preview

{
  "frequency": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  "source_value": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      2.0,
      2.0
    ]
  },
  "power_equivalent": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      4.0,
      4.0
    ]
  },
  "normalized_power": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      0.1,
      0.1,
      0.4,
      0.4
    ]
  },
  "cumulative_power": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      0.1,
      0.2,
      0.6000000000000001,
      1.0
    ]
  },
  "relative_power_db": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      -6.020599913279624,
      -6.020599913279624,
      0.0,
      0.0
    ]
  },
  "quantile_definition": "weighted empirical CDF inverse",
  "input_semantics": "amplitude",
  "exclude_dc": true,
  "df": 1.0,
  "spacing_relative_deviation": 0.0,
  "bin_count": 4.0,
  "dominant_frequency": 3.0,
  "spectral_centroid": 3.1,
  "rms_frequency": 3.24037034920393,
  "spectral_bandwidth": 0.9433981132056604,
  "frequency_05": 1.0,
  "frequency_50": 3.0
}

statistics

Access
Registered in the Python Job
Arguments
values, optional options
Units
Units follow NUMERIC_API_v1 operation contract
Result
Raw Numeric summary for CORE interpretation
Effect
Descriptive statistics with explicit input and valid counts
Types
vector
Declared shape
vector
Options
nonfinite=error,omit;empty_policy=error,undefined
Nonfinite values
error,omit
Units rule
field_specific
Catalog token
statistics
gxtxt_api_call("NUMERIC_API_v1", "statistics", args)
Recorded result · statistics

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  }
]

Result, preview

{
  "n": 4.0,
  "n_input": 4.0,
  "n_valid": 4.0,
  "n_nonfinite": 0.0,
  "min": 1.0,
  "max": 4.0,
  "max_absolute": 4.0,
  "range": 3.0,
  "sum": 10.0,
  "mean": 2.5,
  "median": 2.5,
  "q25": 1.75,
  "q75": 3.25,
  "iqr": 1.5,
  "variance_population": 1.25,
  "std_population": 1.118033988749895,
  "variance_sample": 1.6666666666666667,
  "std_sample": 1.2909944487358056
}
Negative test or attempted call · statistics:inexact-list

Download the example script (ZIP).

Example operands, preview

[
  [
    9007199254740993
  ]
]

Result, preview

"GXTXT:Numeric:Arguments: Integer vector values outside the exact binary64 range require an explicit scientific conversion or typed array"

statistics_summary

Access
Registered in the Python Job
Arguments
typed values, optional contract_version1 options
Units
Units follow NUMERIC_API_v1 operation contract
Result
gxtxt.numeric.statistics_summary.v1
Effect
Versioned selected population facts with faithful float mean and public residual RMS
Types
vector
Declared shape
vector
Options
contract_version=1
Nonfinite values
exclude_and_count
Units rule
field_specific
gxtxt_api_call("NUMERIC_API_v1", "statistics_summary", args)
Recorded result · statistics_summary:float32

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      65
    ],
    "dtype": "float32",
    "values": [
      0.0,
      1.0,
      2.0,
      3.0,
      4.0,
      5.0,
      6.0,
      7.0,
      8.0,
      9.0,
      10.0,
      11.0
    ]
  },
  {
    "contract_version": 1
  }
]

Result, preview

{
  "total_count": 65.0,
  "finite_count": 65.0,
  "nan_count": 0.0,
  "positive_inf_count": 0.0,
  "negative_inf_count": 0.0,
  "schema": "gxtxt.numeric.statistics_summary.v1",
  "minimum": 0.0,
  "maximum": 64.0,
  "mean": 32.0,
  "stddev": 18.76166303929372,
  "availability": "available",
  "variance": "population",
  "nonfinite_policy": "exclude_and_count",
  "arithmetic": "numeric.faithful_expansion_mean_residual_rms"
}

histogram_summary

Access
Registered in the Python Job
Arguments
typed values, optional native or explicit bounded domain options
Units
Units follow NUMERIC_API_v1 operation contract
Result
gxtxt.numeric.histogram_summary.v1 with typed uint64 counts
Effect
Versioned native or bounded histogram composed from existing Numeric operations
Types
vector
Declared shape
vector
Options
contract_version=1;mode=native,bounded;bins=1..4096;domain_low=finite;domain_high=finite
Nonfinite values
exclude_and_count
Units rule
preserve_edges
gxtxt_api_call("NUMERIC_API_v1", "histogram_summary", args)
Recorded result · histogram_summary

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  {
    "contract_version": 1,
    "mode": "bounded",
    "bins": 3,
    "domain_low": 1.0,
    "domain_high": 4.0
  }
]

Result, preview

{
  "total_count": 4.0,
  "finite_count": 4.0,
  "nan_count": 0.0,
  "positive_inf_count": 0.0,
  "negative_inf_count": 0.0,
  "schema": "gxtxt.numeric.histogram_summary.v1",
  "counts": {
    "shape": [
      3,
      1
    ],
    "dtype": "uint64",
    "values": [
      1,
      1,
      2
    ]
  },
  "mode": "bounded",
  "dtype": "float64",
  "bins": 3.0,
  "lower": 1.0,
  "upper": 4.0,
  "width": 1.0,
  "last_inclusive": true,
  "edge_rule": "lower_plus_width_times_index",
  "count_dtype": "uint64",
  "in_range_count": 4.0,
  "underflow_count": 0.0
}

histogram

Access
Registered in the Python Job
Arguments
values, optional edges and options
Units
Units follow NUMERIC_API_v1 operation contract
Result
Existing Numeric histogram fields
Effect
Reproducible histogram with counts and frequencies
Types
vector
Declared shape
vector
Options
nonfinite=error,omit;bin_mode=auto,count,width,edges;bin_count=positive_integer;bin_width=positive_number
Nonfinite values
error,omit
Units rule
preserve_edges
Catalog token
histogram
gxtxt_api_call("NUMERIC_API_v1", "histogram", args)
Recorded result · histogram

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      0.0,
      2.0,
      4.0,
      6.0
    ]
  },
  {
    "bin_mode": "edges"
  }
]

Result, preview

{
  "edges": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      2.0,
      4.0,
      6.0
    ]
  },
  "centers": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0,
      5.0
    ]
  },
  "counts": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      1.0
    ]
  },
  "relative_frequency": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.25,
      0.5,
      0.25
    ]
  },
  "cumulative_frequency": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.25,
      0.75,
      1.0
    ]
  },
  "bin_mode": "edges",
  "n_input": 4.0,
  "n_valid": 4.0,
  "n_nonfinite": 0.0,
  "n_inside": 4.0,
  "n_outside": 0.0
}
Contract query · expression-name:histogram

Download the example script (ZIP).

Example operands, preview

[
  "histogram"
]

Result, preview

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

weighted_statistics

Access
Registered in the Python Job
Arguments
values, weights, optional options
Units
Units follow NUMERIC_API_v1 operation contract
Result
Raw Numeric summary for CORE interpretation
Effect
Weighted descriptive statistics with explicit count semantics
Types
vector
Declared shape
same_length
Options
nonfinite=error,omit;weight_semantics=relative,inverse_variance
Nonfinite values
error,omit
Units rule
field_specific
Catalog token
weighted_statistics
gxtxt_api_call("NUMERIC_API_v1", "weighted_statistics", args)
Recorded result · weighted_statistics

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      2.0,
      2.0
    ]
  }
]

Result, preview

{
  "n_total": 4.0,
  "n_input": 4.0,
  "n_valid": 4.0,
  "n_nonfinite": 0.0,
  "n_zero_weight": 0.0,
  "n_positive_weight": 4.0,
  "n_positive": 4.0,
  "sum_weights": 6.0,
  "effective_n": 3.6,
  "min": 1.0,
  "max": 4.0,
  "range": 3.0,
  "weighted_sum": 17.0,
  "mean": 2.8333333333333335,
  "median": 3.0,
  "q25": 2.0,
  "q75": 4.0,
  "iqr": 2.0
}
Contract query · expression-name:weighted_statistics

Download the example script (ZIP).

Example operands, preview

[
  "weighted_statistics"
]

Result, preview

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

quantiles

Access
Registered in the Python Job
Arguments
values, probabilities, optional options
Units
Units follow NUMERIC_API_v1 operation contract
Result
Values with exact probability order and estimator definition
Effect
Compute type-7 quantiles
Types
vector
Declared shape
value_and_probability_vectors
Options
nonfinite=error,omit
Nonfinite values
error,omit
Units rule
preserve
Catalog token
quantiles
gxtxt_api_call("NUMERIC_API_v1", "quantiles", args)
Recorded result · quantiles

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  {
    "shape": [
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.5,
      1.0
    ]
  }
]

Result, preview

{
  "probabilities": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.5,
      1.0
    ]
  },
  "quantiles": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.5,
      4.0
    ]
  },
  "n": 4.0,
  "definition": "Hyndman-Fan type 7 linear interpolation"
}
Contract query · expression-name:quantiles

Download the example script (ZIP).

Example operands, preview

[
  "quantiles"
]

Result, preview

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

weighted_quantiles

Access
Registered in the Python Job
Arguments
values, weights, probabilities, optional options
Units
Units follow NUMERIC_API_v1 operation contract
Result
Values with exact probability order and estimator definition
Effect
Weighted empirical quantiles with explicit counts
Types
vector
Declared shape
same_length_values_weights
Options
nonfinite=error,omit
Nonfinite values
error,omit
Units rule
preserve
Catalog token
weighted_quantiles
gxtxt_api_call("NUMERIC_API_v1", "weighted_quantiles", args)
Recorded result · weighted_quantiles

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      2.0,
      2.0
    ]
  },
  {
    "shape": [
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.5,
      1.0
    ]
  }
]

Result, preview

{
  "probabilities": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.5,
      1.0
    ]
  },
  "quantiles": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0,
      4.0
    ]
  },
  "n_total": 4.0,
  "n_input": 4.0,
  "n_valid": 4.0,
  "n_nonfinite": 0.0,
  "n_zero_weight": 0.0,
  "n_positive_weight": 4.0,
  "n_positive": 4.0,
  "sum_weights": 6.0,
  "definition": "weighted empirical CDF inverse"
}
Contract query · expression-name:weighted_quantiles

Download the example script (ZIP).

Example operands, preview

[
  "weighted_quantiles"
]

Result, preview

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

resampling_summary

Access
Registered in the Python Job
Arguments
distribution, observed statistic, optional options
Units
Units follow NUMERIC_API_v1 operation contract
Result
Numeric interval or corrected probability facts for CORE interpretation
Effect
Existing-replicate percentile interval or plus-one permutation probability
Types
vector,scalar
Declared shape
observations
Options
method=bootstrap,permutation_independent,permutation_paired;alternative=two_sided,greater,less;confidence=probability;n_x=integer;n_y=integer
Nonfinite values
error
Units rule
field_specific
gxtxt_api_call("NUMERIC_API_v1", "resampling_summary", args)
Recorded result · resampling_summary

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  2.0,
  {
    "method": "bootstrap"
  }
]

Result, preview

{
  "method": "bootstrap",
  "replicates": 4.0,
  "estimate": 2.0,
  "confidence": 0.95,
  "alternative": "two_sided",
  "ci_lower": 1.0750000000000002,
  "ci_upper": 3.925,
  "p_value": NaN,
  "extreme_count": 0.0,
  "bootstrap_standard_error": 1.2909944487358056,
  "distribution_variance": 1.6666666666666667,
  "inference": "percentile_confidence_interval",
  "quantile_definition": "Hyndman-Fan type 7 linear interpolation",
  "tail_tolerance": NaN
}

one_way_anova

Access
Registered in the Python Job
Arguments
values, group labels, optional options
Units
Units follow NUMERIC_API_v1 operation contract
Result
Numeric grouped and test results for CORE interpretation
Effect
One-way ANOVA or Welch heteroscedastic group comparison
Types
vector
Declared shape
same_length
Options
method=ordinary,welch;nonfinite=error,omit
Nonfinite values
error,omit
Units rule
field_specific
gxtxt_api_call("NUMERIC_API_v1", "one_way_anova", args)
Recorded result · one_way_anova

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      6
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      5.0,
      6.0,
      7.0
    ]
  },
  {
    "shape": [
      6
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      1.0,
      2.0,
      2.0,
      2.0
    ]
  }
]

Result, preview

{
  "method": "ordinary",
  "n_input": 6.0,
  "n_valid": 6.0,
  "n_nonfinite": 0.0,
  "group_count": 2.0,
  "group_names": [
    "1",
    "2"
  ],
  "group_counts": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      3.0,
      3.0
    ]
  },
  "group_means": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      2.0,
      6.0
    ]
  },
  "group_variances": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0
    ]
  },
  "group_standard_deviations": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0
    ]
  },
  "overall_mean": 4.0,
  "ss_between": 24.0,
  "ss_within": 4.0,
  "ss_total": 28.0,
  "df_between": 1.0,
  "df_within": 4.0,
  "ms_between": 24.0,
  "ms_within": 1.0
}

hypothesis_test

Access
Registered in the Python Job
Arguments
method, first values, second values, optional options
Units
Units follow NUMERIC_API_v1 operation contract
Result
Raw Numeric test result for CORE interpretation
Effect
Common t and rank-based hypothesis tests with explicit semantics
Types
scalar,vector
Declared shape
method_specific
Options
alternative=two_sided,greater,less;confidence=probability;mu0=number;nonfinite=error,omit
Nonfinite values
error,omit
Units rule
field_specific
gxtxt_api_call("NUMERIC_API_v1", "hypothesis_test", args)
Recorded result · hypothesis_test

Download the example script (ZIP).

Example operands, preview

[
  "paired_t",
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      2.0,
      2.0
    ]
  }
]

Result, preview

{
  "method": "paired_t",
  "statistic": 2.449489742783178,
  "degrees_of_freedom": 3.0,
  "n_input_x": 4.0,
  "n_input_y": 4.0,
  "n_x": 4.0,
  "n_y": 4.0,
  "p_value": 0.09172111331157191,
  "alternative": "two_sided",
  "confidence": 0.95,
  "null_value": 0.0,
  "estimate": 1.0,
  "ci_lower": -0.2992282636251098,
  "ci_upper": 2.2992282636251096,
  "ci_status": "defined",
  "standard_error": 0.408248290463863,
  "test_standard_deviation": 0.816496580927726,
  "interval_margin": 1.2992282636251098
}

mad

Access
Registered in the Python Job
Arguments
values, optional options
Units
Units follow NUMERIC_API_v1 operation contract
Result
Median and raw/scaled MAD facts for CORE interpretation
Effect
Median absolute deviation with explicit scaling
Types
vector
Declared shape
vector
Options
nonfinite=error,omit;scale=raw,normal_consistency
Nonfinite values
error,omit
Units rule
preserve
Expression function
mad
gxtxt_api_call("NUMERIC_API_v1", "mad", args)
Recorded result · mad

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  }
]

Result, preview

{
  "mad": 1.0,
  "raw_mad": 1.0,
  "median": 2.5,
  "scale": "raw",
  "scale_factor": 1.0,
  "n_input": 4.0,
  "n_valid": 4.0,
  "n_nonfinite": 0.0
}

matrix_statistics

Access
Registered in the Python Job
Arguments
matrix, optional dimension option
Units
Units follow NUMERIC_API_v1 operation contract
Result
Numeric count and indexed moment vectors
Effect
Descriptive statistics by matrix dimension
Types
matrix
Declared shape
axis_reduction
Options
dimension=1,2
Nonfinite values
error
Units rule
field_specific
Catalog token
matrix_statistics
gxtxt_api_call("NUMERIC_API_v1", "matrix_statistics", args)
Recorded result · matrix_statistics

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      3,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0,
      6.0,
      2.0,
      4.0,
      9.0
    ]
  }
]

Result, preview

{
  "n": 3.0,
  "mean": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      3.3333333333333335,
      5.0
    ]
  },
  "median": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      3.0,
      4.0
    ]
  },
  "variance_population": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      4.222222222222222,
      8.666666666666666
    ]
  },
  "std_population": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      2.0548046676563256,
      2.943920288775949
    ]
  },
  "variance_sample": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      6.333333333333334,
      13.0
    ]
  },
  "std_sample": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      2.5166114784235836,
      3.605551275463989
    ]
  },
  "min": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0
    ]
  },
  "max": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      6.0,
      9.0
    ]
  },
  "requested_dimension": 1.0,
  "input_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      3.0,
      2.0
    ]
  },
  "output_shape": {
    "shape": [
      1,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0
    ]
  }
}
Contract query · expression-name:matrix_statistics

Download the example script (ZIP).

Example operands, preview

[
  "matrix_statistics"
]

Result, preview

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

pca_summary

Access
Registered in the Python Job
Arguments
singular values, observation count, optional centered flag
Units
Units follow NUMERIC_API_v1 operation contract
Result
Ordered component fact columns for CORE interpretation
Effect
PCA component moments and ratios from existing SVD magnitudes without recomputing SVD
Types
vector,scalar
Declared shape
descending_svd_components
Options
centered=true,false
Nonfinite values
error
Units rule
source_or_standardized_units
gxtxt_api_call("NUMERIC_API_v1", "pca_summary", args)
Recorded result · pca_summary

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      2
    ],
    "dtype": "float64",
    "values": [
      3.0,
      2.0
    ]
  },
  6
]

Result, preview

{
  "n": 6.0,
  "singular_value": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      3.0,
      2.0
    ]
  },
  "component_variance": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.8,
      0.8
    ]
  },
  "explained_ratio": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.6923076923076923,
      0.3076923076923077
    ]
  },
  "cumulative_ratio": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      0.6923076923076923,
      1.0
    ]
  },
  "component_index": {
    "shape": [
      2,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0
    ]
  },
  "component_count": 2.0,
  "total_component_variance": 2.6,
  "method": "centered_sample_covariance"
}

derived_properties

Access
Registered in the Python Job
Arguments
public CORE derived-properties plan
Units
Units follow NUMERIC_API_v1 operation contract
Result
values, analytic derivative availability and propagated covariance; no refit
Effect
Evaluate physical parameter expressions with existing unit validation and analytic derivatives then propagate full covariance once
Types
struct
Declared shape
CORE_derived_properties_1_to_32
Nonfinite values
error
Units rule
explicit_CORE_plan
gxtxt_api_call("NUMERIC_API_v1", "derived_properties", args)
Recorded result · derived_properties

Download the example script (ZIP).

Example operands, preview

[
  {
    "api_id": "STATISTICAL_DERIVED_PROPERTIES_PLAN_v1",
    "api_version": 1,
    "source_model_id": "math.numeric.nonlinear",
    "coefficient_space": "original_physical",
    "parameter_ids": [
      "a",
      "b"
    ],
    "parameter_aliases": [
      "p0",
      "p1"
    ],
    "parameter_units": [
      "1",
      "1"
    ],
    "parameter_roles": [
      "free",
      "free"
    ],
    "parameter_values": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "free_indices": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        2.0
      ]
    },
    "source_covariance": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        0.00027298018465493444,
        -0.0009554306462922706,
        -0.0009554306462922706,
        0.003966878715104643
      ]
    },
    "definitions": [
      {
        "id": "sum",
        "label": "sum",
        "expression": "p0+p1",
        "unit": "1",
        "constants": []
      }
    ],
    "status": "value",
    "reason": ""
  }
]

Result, preview

{
  "numeric_api": "NUMERIC_API_v1",
  "operation": "derived_properties",
  "plan": {
    "api_id": "STATISTICAL_DERIVED_PROPERTIES_PLAN_v1",
    "api_version": 1.0,
    "source_model_id": "math.numeric.nonlinear",
    "coefficient_space": "original_physical",
    "parameter_ids": [
      "a",
      "b"
    ],
    "parameter_aliases": [
      "p0",
      "p1"
    ],
    "parameter_units": [
      "1",
      "1"
    ],
    "parameter_roles": [
      "free",
      "free"
    ],
    "parameter_values": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "free_indices": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        2.0
      ]
    },
    "source_covariance": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        0.00027298018465493444,
        -0.0009554306462922706,
        -0.0009554306462922706,
        0.003966878715104643
      ]
    },
    "definitions": [
      {
        "id": "sum",
        "label": "sum",
        "expression": "p0+p1",
        "unit": "1",
        "constants": {
          "shape": [
            0,
            1
          ],
          "dtype": "float64",
          "values": []
        }
      }
    ],
    "status": "value",
    "reason": ""
  },
  "properties": [
    {
      "id": "sum",
      "value_status": "value",
      "value": 2.98524746866891,
      "reason": "",
      "derivative_valid": true,
      "source_sha256": "9711efe3d20f7754ff89a14b919ec2ffdfe00e48f68b0d5d6cfd3ab60a3b2a65",
      "binding_sha256": "495168708db4c8918f14582d2d1ee2b699807fc94d29375392226b77e46fed6a"
    }
  ],
  "propagation_indices": 1.0,
  "propagation": {
    "covariance": 0.002328997607175036,
    "standard_uncertainty": 0.04825968925692577,
    "jacobian": {
      "shape": [
        1,
        2
      ],
      "dtype": "float64",
      "values": [
        1.0,
        1.0
      ]
    },
    "input_covariance": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        0.00027298018465493444,
        -0.0009554306462922706,
        -0.0009554306462922706,
        0.003966878715104643
      ]
    },
    "method": "first_order_linear_propagation",
    "input_kind": "covariance",
    "input_count": 2.0,
    "output_count": 1.0
  },
  "derivative_method": "two_sided_automatic_differentiation",
  "fit_performed": false
}
Negative test or attempted call · derived_properties

Download the example script (ZIP).

Example operands, preview

[
  {
    "api_id": "STATISTICAL_DERIVED_PROPERTIES_PLAN_v1",
    "api_version": 1,
    "source_model_id": "math.numeric.nonlinear",
    "coefficient_space": "original_physical",
    "parameter_ids": [
      "a",
      "b"
    ],
    "parameter_aliases": [
      "p0",
      "p1"
    ],
    "parameter_units": [
      "1",
      "1"
    ],
    "parameter_roles": [
      "free",
      "free"
    ],
    "parameter_values": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "free_indices": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        2.0
      ]
    },
    "source_covariance": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        0.00027298018465493444,
        -0.0009554306462922706,
        -0.0009554306462922706,
        0.003966878715104643
      ]
    },
    "definitions": [
      {
        "id": "sum",
        "label": "sum",
        "expression": "a+b",
        "unit": "1",
        "constants": []
      }
    ],
    "status": "value",
    "reason": ""
  }
]

Result, preview

"GXTXT:Numeric:DerivedProperties: A derived property must depend on at least one captured parameter alias"

residual_metrics

Access
Registered in the Python Job
Arguments
observed, predicted, optional options
Units
Units follow NUMERIC_API_v1 operation contract
Result
Raw Numeric metrics for CORE interpretation
Effect
Compute residual error metrics
Types
vector
Declared shape
same_length
Options
relative_floor=nonnegative
Nonfinite values
error
Units rule
field_specific
Catalog token
residual_metrics
gxtxt_api_call("NUMERIC_API_v1", "residual_metrics", args)
Recorded result · residual_metrics

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      6
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      2.0,
      3.0,
      4.0,
      5.0
    ]
  },
  {
    "shape": [
      6
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0,
      5.0,
      6.0
    ]
  }
]

Result, preview

{
  "n": 6.0,
  "sse": 6.0,
  "mse": 1.0,
  "rmse": 1.0,
  "mae": 1.0,
  "max_abs_error": 1.0,
  "r2": 0.6571428571428571,
  "response_variance": 2.9166666666666665,
  "max_relative_error": 1.0,
  "rms_relative_error": 0.5410380968307336,
  "relative_n": 5.0,
  "relative_floor": 0.0
}
Contract query · expression-name:residual_metrics

Download the example script (ZIP).

Example operands, preview

[
  "residual_metrics"
]

Result, preview

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

replicate_xy_summary

Access
Registered in the Python Job
Arguments
[{“name”: “X”, “kind”: “numeric array or options”, “required”: true}, {“name”: “Y”, “kind”: “numeric array or options”, “required”: true}, {“name”: “source_ids”, “kind”: “numeric array or options”, “required”: true}, {“name”: “options”, “kind”: “numeric array or options”, “required”: false}]
Result
x/y replicate_summary and sample covariance_xy
Function
Coordinate profiles and sample cross covariance through the existing Numeric reducers
gxtxt_api_call("NUMERIC_API_v1", "replicate_xy_summary", args)
Recorded result · replicate_xy_summary

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      3,
      2
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0,
      6.0,
      2.0,
      4.0,
      9.0
    ]
  },
  {
    "shape": [
      3,
      2
    ],
    "dtype": "float64",
    "values": [
      3.0,
      5.0,
      8.0,
      4.0,
      6.0,
      11.0
    ]
  },
  [
    1,
    2
  ],
  {}
]

Result, preview

{
  "x": {
    "y_mean": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        1.5,
        3.5,
        7.5
      ]
    },
    "y_median": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        1.5,
        3.5,
        7.5
      ]
    },
    "y_std": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        0.7071067811865476,
        0.7071067811865476,
        2.1213203435596424
      ]
    },
    "y_sem": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        NaN,
        NaN,
        NaN
      ]
    },
    "sigma_within": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        NaN,
        NaN,
        NaN
      ]
    },
    "sigma_between": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        NaN,
        NaN,
        NaN
      ]
    },
    "sigma_total": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        NaN,
        NaN,
        NaN
      ]
    },
    "n": 2.0,
    "n_sources": 2.0,
    "within_df": 0.0,
    "component_coefficient": 1.0,
    "components_identifiable": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        0.0,
        0.0,
        0.0
      ]
    },
    "between_clamped": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        NaN,
        NaN,
        NaN
      ]
    },
    "lower_std": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        0.7928932188134524,
        2.7928932188134525,
        5.378679656440358
      ]
    },
    "upper_std": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        2.2071067811865475,
        4.207106781186548,
        9.621320343559642
      ]
    },
    "lower_sem": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        NaN,
        NaN,
        NaN
      ]
    },
    "upper_sem": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        NaN,
        NaN,
        NaN
      ]
    },
    "lower_total": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        NaN,
        NaN,
        NaN
      ]
    }
  },
  "y": {
    "y_mean": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        3.5,
        5.5,
        9.5
      ]
    },
    "y_median": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        3.5,
        5.5,
        9.5
      ]
    },
    "y_std": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        0.7071067811865476,
        0.7071067811865476,
        2.1213203435596424
      ]
    },
    "y_sem": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        NaN,
        NaN,
        NaN
      ]
    },
    "sigma_within": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
      "values": [
        NaN,
        NaN,
        NaN
      ]
    },
    "sigma_between": {
      "shape": [
        3,
        1
      ],
      "dtype": "float64",
    
[…]
Negative test or attempted call · replicate_xy_summary

Download the example script (ZIP).

Result, preview

"GXTXT:Numeric: Each curve needs one positive integer source ID"

statisticsSummary

Access
Registered in the Python Job
Arguments
values {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 statisticsSummary
gxtxt_api_call("NUMERIC_API_v1", "statisticsSummary", args)
Recorded result · statisticsSummary

Download the example script (ZIP).

Example operands, preview

[
  {
    "kind": "array",
    "shape": [
      4,
      1
    ],
    "real": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  }
]

Result, preview

{
  "total_count": 4.0,
  "finite_count": 4.0,
  "nan_count": 0.0,
  "positive_inf_count": 0.0,
  "negative_inf_count": 0.0,
  "schema": "gxtxt.numeric.statistics_summary.v1",
  "minimum": 1.0,
  "maximum": 4.0,
  "mean": 2.5,
  "stddev": 1.118033988749895,
  "availability": "available",
  "variance": "population",
  "nonfinite_policy": "exclude_and_count",
  "arithmetic": "numeric.faithful_expansion_mean_residual_rms"
}
Negative test or attempted call · statisticsSummary

Download the example script (ZIP).

Result, preview

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/statisticsSummary: math.numeric API v1: operation 'statistics_summary' operands must be typed nodes"

histogramSummary

Access
Registered in the Python Job
Arguments
values {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 histogramSummary
gxtxt_api_call("NUMERIC_API_v1", "histogramSummary", args)
Recorded result · histogramSummary

Download the example script (ZIP).

Example operands, preview

[
  {
    "kind": "array",
    "shape": [
      4,
      1
    ],
    "real": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  {
    "kind": "struct",
    "fields": {
      "mode": {
        "kind": "text",
        "value": "bounded"
      },
      "bins": {
        "kind": "array",
        "shape": [
          1,
          1
        ],
        "real": [
          3
        ]
      },
      "domain_low": {
        "kind": "array",
        "shape": [
          1,
          1
        ],
        "real": [
          1.0
        ]
      },
      "domain_high": {
        "kind": "array",
        "shape": [
          1,
          1
        ],
        "real": [
          4.0
        ]
      }
    }
  }
]

Result, preview

{
  "total_count": 4.0,
  "finite_count": 4.0,
  "nan_count": 0.0,
  "positive_inf_count": 0.0,
  "negative_inf_count": 0.0,
  "schema": "gxtxt.numeric.histogram_summary.v1",
  "counts": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      2.0
    ]
  },
  "mode": "bounded",
  "dtype": "float64",
  "bins": 3.0,
  "lower": 1.0,
  "upper": 4.0,
  "width": 1.0,
  "last_inclusive": true,
  "edge_rule": "lower_plus_width_times_index",
  "count_dtype": "uint64",
  "in_range_count": 4.0,
  "underflow_count": 0.0
}
Negative test or attempted call · histogramSummary

Download the example script (ZIP).

Example operands, preview

[
  {
    "kind": "array",
    "shape": [
      4,
      1
    ],
    "real": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  }
]

Result, preview

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/histogramSummary: Native histogram requires original uint8/uint16/int16 dtype"

statisticsResponsive

Access
Registered in the Python Job
Arguments
values {options {}} {progress {}}
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 statisticsResponsive
gxtxt_api_call("NUMERIC_API_v1", "statisticsResponsive", args)
Recorded result · statisticsResponsive

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  }
]

Result, preview

{
  "n": 4.0,
  "n_input": 4.0,
  "n_valid": 4.0,
  "n_nonfinite": 0.0,
  "min": 1.0,
  "max": 4.0,
  "max_absolute": 4.0,
  "range": 3.0,
  "sum": 10.0,
  "mean": 2.5,
  "median": 2.5,
  "q25": 1.75,
  "q75": 3.25,
  "iqr": 1.5,
  "variance_population": 1.25,
  "std_population": 1.118033988749895,
  "variance_sample": 1.6666666666666667,
  "std_sample": 1.2909944487358056
}

rank

Access
Registered in the Python Job
Arguments
values {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
Effect
Rank values with deterministic tie handling
Types
vector
Declared shape
vector
Options
nonfinite=error,omit;ties=average,min,max,dense
Nonfinite values
error,omit
Units rule
dimensionless_output
Expression function
rank
gxtxt_api_call("NUMERIC_API_v1", "rank", args)
Recorded result · rank

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  }
]

Result, preview

{
  "ranks": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  "n_input": 4.0,
  "n_valid": 4.0,
  "n_nonfinite": 0.0,
  "ties": "average"
}

correlation

Access
Registered in the Python Job
Arguments
x y {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
Effect
Pearson or Spearman correlation with paired counts
Types
vector
Declared shape
same_length
Options
nonfinite=error,omit;method=pearson,spearman
Nonfinite values
error,omit
Units rule
dimensionless_output
Expression function
correlation
gxtxt_api_call("NUMERIC_API_v1", "correlation", args)
Recorded result · correlation

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      2.0,
      2.0
    ]
  }
]

Result, preview

{
  "correlation": 0.8944271909999159,
  "method": "pearson",
  "status": "ok",
  "n_input": 4.0,
  "n_valid": 4.0,
  "n_nonfinite": 0.0,
  "missing_pair_policy": "pairwise",
  "tie_method": "average"
}

ecdf

Access
Registered in the Python Job
Arguments
values {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
Effect
Empirical cumulative distribution with unique support
Types
vector
Declared shape
vector
Options
nonfinite=error,omit
Nonfinite values
error,omit
Units rule
preserve_support
Catalog token
ecdf
gxtxt_api_call("NUMERIC_API_v1", "ecdf", args)
Recorded result · ecdf

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  }
]

Result, preview

{
  "support": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  "counts": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      1.0,
      1.0
    ]
  },
  "probability": {
    "shape": [
      4,
      1
    ],
    "dtype": "float64",
    "values": [
      0.25,
      0.5,
      0.75,
      1.0
    ]
  },
  "n_input": 4.0,
  "n_valid": 4.0,
  "n_nonfinite": 0.0
}
Contract query · expression-name:ecdf

Download the example script (ZIP).

Example operands, preview

[
  "ecdf"
]

Result, preview

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

normalCdf

Access
Registered in the Python Job
Arguments
x mu sigma {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 normalCdf
gxtxt_api_call("NUMERIC_API_v1", "normalCdf", args)
Recorded result · normalCdf

Download the example script (ZIP).

Example operands, preview

[
  {
    "kind": "scalar",
    "value": 0.0
  },
  {
    "kind": "scalar",
    "value": 0.0
  },
  {
    "kind": "scalar",
    "value": 1.0
  }
]

Result, preview

{
  "values": 0.5
}
Negative test or attempted call · normalCdf

Download the example script (ZIP).

Result, preview

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/normalCdf: math.numeric API v1: array operand requires kind and value"

fCdf

Access
Registered in the Python Job
Arguments
f df1 df2 {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 fCdf
gxtxt_api_call("NUMERIC_API_v1", "fCdf", args)
Recorded result · fCdf

Download the example script (ZIP).

Example operands, preview

[
  {
    "kind": "scalar",
    "value": 1.0
  },
  {
    "kind": "scalar",
    "value": 4.0
  },
  {
    "kind": "scalar",
    "value": 4.0
  }
]

Result, preview

{
  "values": 0.49999999999999994
}
Negative test or attempted call · fCdf

Download the example script (ZIP).

Result, preview

"GXTXT:ScriptBridge:RemoteError: NUMERIC_API_v1/fCdf: math.numeric API v1: array operand requires kind and value"

resampleIndices

Access
Registered in the Python Job
Arguments
populationSize drawCount replicates seed {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 resampleIndices
gxtxt_api_call("NUMERIC_API_v1", "resampleIndices", args)
Recorded result · resampleIndices

Download the example script (ZIP).

Example operands, preview

[
  8,
  4,
  3,
  8126
]

Result, preview

{
  "indices": {
    "shape": [
      3,
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0,
      8.0,
      8.0,
      3.0,
      3.0,
      1.0,
      3.0,
      3.0,
      8.0,
      4.0,
      7.0
    ]
  },
  "population_size": 8.0,
  "draw_count": 4.0,
  "replicates": 3.0,
  "seed": 8126.0,
  "next_seed": 1669538450.0,
  "replace": true,
  "generator": "park_miller_16807_v1"
}

residualMetrics

Access
Registered in the Python Job
Arguments
observed predicted {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 residualMetrics
gxtxt_api_call("NUMERIC_API_v1", "residualMetrics", args)
Recorded result · residualMetrics

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      6
    ],
    "dtype": "float64",
    "values": [
      0.0,
      1.0,
      2.0,
      3.0,
      4.0,
      5.0
    ]
  },
  {
    "shape": [
      6
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0,
      5.0,
      6.0
    ]
  }
]

Result, preview

{
  "n": 6.0,
  "sse": 6.0,
  "mse": 1.0,
  "rmse": 1.0,
  "mae": 1.0,
  "max_abs_error": 1.0,
  "r2": 0.6571428571428571,
  "response_variance": 2.9166666666666665,
  "max_relative_error": 1.0,
  "rms_relative_error": 0.5410380968307336,
  "relative_n": 5.0,
  "relative_floor": 0.0
}

weightedQuantiles

Access
Registered in the Python Job
Arguments
values weights probabilities {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 weightedQuantiles
gxtxt_api_call("NUMERIC_API_v1", "weightedQuantiles", args)
Recorded result · weightedQuantiles

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      2.0,
      2.0
    ]
  },
  {
    "shape": [
      3
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.5,
      1.0
    ]
  }
]

Result, preview

{
  "probabilities": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      0.0,
      0.5,
      1.0
    ]
  },
  "quantiles": {
    "shape": [
      3,
      1
    ],
    "dtype": "float64",
    "values": [
      1.0,
      3.0,
      4.0
    ]
  },
  "n_total": 4.0,
  "n_input": 4.0,
  "n_valid": 4.0,
  "n_nonfinite": 0.0,
  "n_zero_weight": 0.0,
  "n_positive_weight": 4.0,
  "n_positive": 4.0,
  "sum_weights": 6.0,
  "definition": "weighted empirical CDF inverse"
}

weightedStatistics

Access
Registered in the Python Job
Arguments
values weights {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 weightedStatistics
gxtxt_api_call("NUMERIC_API_v1", "weightedStatistics", args)
Recorded result · weightedStatistics

Download the example script (ZIP).

Example operands, preview

[
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      2.0,
      3.0,
      4.0
    ]
  },
  {
    "shape": [
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      1.0,
      2.0,
      2.0
    ]
  }
]

Result, preview

{
  "n_total": 4.0,
  "n_input": 4.0,
  "n_valid": 4.0,
  "n_nonfinite": 0.0,
  "n_zero_weight": 0.0,
  "n_positive_weight": 4.0,
  "n_positive": 4.0,
  "sum_weights": 6.0,
  "effective_n": 3.6,
  "min": 1.0,
  "max": 4.0,
  "range": 3.0,
  "weighted_sum": 17.0,
  "mean": 2.8333333333333335,
  "median": 3.0,
  "q25": 2.0,
  "q75": 4.0,
  "iqr": 2.0
}

derivedProperties

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 derivedProperties
gxtxt_api_call("NUMERIC_API_v1", "derivedProperties", args)
Recorded result · derivedProperties

Download the example script (ZIP).

Example operands, preview

[
  {
    "api_id": "STATISTICAL_DERIVED_PROPERTIES_PLAN_v1",
    "api_version": 1,
    "source_model_id": "math.numeric.nonlinear",
    "coefficient_space": "original_physical",
    "parameter_ids": [
      "a",
      "b"
    ],
    "parameter_aliases": [
      "p0",
      "p1"
    ],
    "parameter_units": [
      "1",
      "1"
    ],
    "parameter_roles": [
      "free",
      "free"
    ],
    "parameter_values": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "free_indices": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        2.0
      ]
    },
    "source_covariance": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        0.00027298018465493444,
        -0.0009554306462922706,
        -0.0009554306462922706,
        0.003966878715104643
      ]
    },
    "definitions": [
      {
        "id": "sum",
        "label": "sum",
        "expression": "p0+p1",
        "unit": "1",
        "constants": []
      }
    ],
    "status": "value",
    "reason": ""
  }
]

Result, preview

{
  "numeric_api": "NUMERIC_API_v1",
  "operation": "derived_properties",
  "plan": {
    "api_id": "STATISTICAL_DERIVED_PROPERTIES_PLAN_v1",
    "api_version": 1.0,
    "source_model_id": "math.numeric.nonlinear",
    "coefficient_space": "original_physical",
    "parameter_ids": [
      "a",
      "b"
    ],
    "parameter_aliases": [
      "p0",
      "p1"
    ],
    "parameter_units": [
      "1",
      "1"
    ],
    "parameter_roles": [
      "free",
      "free"
    ],
    "parameter_values": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.9985809013354445,
        0.9866665673334654
      ]
    },
    "free_indices": {
      "shape": [
        2,
        1
      ],
      "dtype": "float64",
      "values": [
        1.0,
        2.0
      ]
    },
    "source_covariance": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        0.00027298018465493444,
        -0.0009554306462922706,
        -0.0009554306462922706,
        0.003966878715104643
      ]
    },
    "definitions": [
      {
        "id": "sum",
        "label": "sum",
        "expression": "p0+p1",
        "unit": "1",
        "constants": []
      }
    ],
    "status": "value",
    "reason": ""
  },
  "properties": [
    {
      "id": "sum",
      "value_status": "value",
      "value": 2.98524746866891,
      "reason": "",
      "derivative_valid": true,
      "source_sha256": "9711efe3d20f7754ff89a14b919ec2ffdfe00e48f68b0d5d6cfd3ab60a3b2a65",
      "binding_sha256": "495168708db4c8918f14582d2d1ee2b699807fc94d29375392226b77e46fed6a"
    }
  ],
  "propagation_indices": 1.0,
  "propagation": {
    "covariance": 0.002328997607175036,
    "standard_uncertainty": 0.04825968925692577,
    "jacobian": {
      "shape": [
        1,
        2
      ],
      "dtype": "float64",
      "values": [
        1.0,
        1.0
      ]
    },
    "input_covariance": {
      "shape": [
        2,
        2
      ],
      "dtype": "float64",
      "values": [
        0.00027298018465493444,
        -0.0009554306462922706,
        -0.0009554306462922706,
        0.003966878715104643
      ]
    },
    "method": "first_order_linear_propagation",
    "input_kind": "covariance",
    "input_count": 2.0,
    "output_count": 1.0
  },
  "derivative_method": "two_sided_automatic_differentiation",
  "fit_performed": false
}

normal_cdf

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
x,mean,scale
Shape
equal_shape_or_scalar
Units
dimensionless_output
Result
common_shape
Effect
Normal cumulative probability with explicit location and scale
Types
scalar,vector,matrix
Declared shape
equal_shape_or_scalar
Expansion
scalar_expansion
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
dimensionless_output
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["normal_cdf", operands])
Recorded result · call:normal_cdf

Download the example script (ZIP).

Example operands, preview

[
  "normal_cdf",
  [
    {
      "kind": "array",
      "shape": [
        1,
        1
      ],
      "real": [
        0.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        1,
        1
      ],
      "real": [
        0.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        1,
        1
      ],
      "real": [
        1.0
      ]
    }
  ]
]

Result, preview

{
  "values": 0.5
}

student_t_cdf

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
t,degrees_of_freedom
Shape
equal_shape_or_scalar
Units
dimensionless_output
Result
common_shape
Effect
Student-t cumulative probability with positive degrees of freedom
Types
scalar,vector,matrix
Declared shape
equal_shape_or_scalar
Expansion
scalar_expansion
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
dimensionless_output
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["student_t_cdf", operands])
Recorded result · call:student_t_cdf

Download the example script (ZIP).

Example operands, preview

[
  "student_t_cdf",
  [
    {
      "kind": "array",
      "shape": [
        1,
        1
      ],
      "real": [
        0.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        1,
        1
      ],
      "real": [
        9.0
      ]
    }
  ]
]

Result, preview

{
  "values": 0.5
}

student_t_quantile

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
probability,degrees_of_freedom
Shape
scalar_parameters
Units
dimensionless_output
Result
scalar
Effect
Student-t inverse cumulative probability for confidence intervals
Types
scalar
Declared shape
scalar_parameters
Nonfinite values
error
Units rule
dimensionless_output
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["student_t_quantile", operands])
Recorded result · call:student_t_quantile

Download the example script (ZIP).

Example operands, preview

[
  "student_t_quantile",
  [
    {
      "kind": "array",
      "shape": [
        1,
        1
      ],
      "real": [
        0.975
      ]
    },
    {
      "kind": "array",
      "shape": [
        1,
        1
      ],
      "real": [
        9.0
      ]
    }
  ]
]

Result, preview

{
  "values": 2.2621571627982036,
  "probability": 0.975,
  "degrees_of_freedom": 9.0
}

f_cdf

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
f,numerator_df,denominator_df
Shape
equal_shape_or_scalar
Units
dimensionless_output
Result
common_shape
Effect
F cumulative probability with positive degrees of freedom
Types
scalar,vector,matrix
Declared shape
equal_shape_or_scalar
Expansion
scalar_expansion
Options
nonfinite=error,ieee
Nonfinite values
error,ieee
Units rule
dimensionless_output
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["f_cdf", operands])
Recorded result · call:f_cdf

Download the example script (ZIP).

Example operands, preview

[
  "f_cdf",
  [
    {
      "kind": "array",
      "shape": [
        1,
        1
      ],
      "real": [
        1.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        1,
        1
      ],
      "real": [
        4.0
      ]
    },
    {
      "kind": "array",
      "shape": [
        1,
        1
      ],
      "real": [
        4.0
      ]
    }
  ]
]

Result, preview

{
  "values": 0.49999999999999994
}

resample_indices

Access
Listed in the service catalog. Check the selector and whether the call matches or is rejected.
Arguments
population_size,draw_count,replicates,seed
Shape
scalar_parameters
Units
dimensionless_output
Result
replicates_by_draw_count
Effect
Reproducible one-based sampling indices with isolated Park-Miller generator
Types
scalar
Declared shape
scalar_parameters
Options
replace=true,false
Nonfinite values
error
Units rule
dimensionless_output
gxtxt_api_call("NUMERIC_API_v1", "callOperation", ["resample_indices", operands])
Recorded result · call:resample_indices

Download the example script (ZIP).

Example operands, preview

[
  "resample_indices",
  [
    {
      "kind": "array",
      "shape": [
        1,
        1
      ],
      "real": [
        8
      ]
    },
    {
      "kind": "array",
      "shape": [
        1,
        1
      ],
      "real": [
        4
      ]
    },
    {
      "kind": "array",
      "shape": [
        1,
        1
      ],
      "real": [
        2
      ]
    },
    {
      "kind": "array",
      "shape": [
        1,
        1
      ],
      "real": [
        193
      ]
    }
  ]
]

Result, preview

{
  "indices": {
    "shape": [
      2,
      4
    ],
    "dtype": "float64",
    "values": [
      1.0,
      7.0,
      4.0,
      3.0,
      7.0,
      1.0,
      5.0,
      1.0
    ]
  },
  "population_size": 8.0,
  "draw_count": 4.0,
  "replicates": 2.0,
  "seed": 193.0,
  "next_seed": 44861697.0,
  "replace": true,
  "generator": "park_miller_16807_v1"
}