What problem does it solve?
Scientific calculations silently produce wrong results when units are stripped mid-computation, correlations between inputs are discarded, or uncertainty is propagated through a linearization that was never validated. This Skill enforces correct unit handling and GUM-compliant uncertainty propagation so reported numbers carry defensible error bars.
Core Features & Use Cases
- Uncertainty Propagation: Runs both the GUM linear framework and Monte Carlo simulation on the same measurement model, applying the JCGM 101 clause 8 validation test to decide which result may be reported.
- GUM Uncertainty Budgets: Combines Type A and Type B components with correct distribution divisors, Welch-Satterthwaite effective degrees of freedom, and t-distribution coverage factors.
- Unit Conversion with Context: Converts between units including spectroscopy and chemistry contexts (wavelength to photon energy, mass to moles), carrying uncertainty through reciprocal conversions.
- Static Code Auditing: Scans Python analysis code for silent defects like stripped
.magnitude calls, curve_fit without absolute_sigma=True, and destroyed correlations.
- Physical Plausibility Checks: Evaluates 14 dimensionless groups (Reynolds, Peclet, Biot, Womersley) and compares quantities against curated observed magnitude bands.
- Use Case: A researcher measuring density from mass, diameter, and height inputs gets a full uncertainty budget with sensitivity coefficients, effective degrees of freedom, coverage factor, and a Monte Carlo cross-check in one command.
Quick Start
Ask the agent to propagate uncertainty for a density calculation with mass 250.0 ± 0.05 g, diameter 20.0 ± 0.02 mm, and height 40.0 ± 0.05 mm, and report the result with a 95% expanded uncertainty.