From grimoire
Calculates measurement uncertainty for physical measurements using GUM methodology (Type A/B, combined, expanded). For scientific and metrological reporting.
How this skill is triggered — by the user, by Claude, or both
Slash command
/grimoire:calculate-measurement-uncertaintyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Evaluate and report measurement uncertainty using Type A (statistical) and Type B (non-statistical) components following GUM methodology.
Evaluate and report measurement uncertainty using Type A (statistical) and Type B (non-statistical) components following GUM methodology.
Adopted by: BIPM (Bureau International des Poids et Mesures), NIST, ISO 17025 accredited laboratories worldwide, European Accreditation EA-4/02, FDA analytical method validation guidelines.
Impact: ISO/IEC 17025 requires GUM-compliant uncertainty reporting for accredited test results; without uncertainty quantification, measurement results cannot be compared across laboratories — a fundamental requirement for scientific reproducibility and trade metrological equivalence.
Why best: GUM provides a universal, internally consistent framework that covers both random and systematic contributions, replacing the obsolete "probable error" and "maximum error" methods.
Sources: JCGM 100:2008 (GUM); Taylor & Kuyatt NIST TN1297 (1994); Taylor "Introduction to Error Analysis" 2nd ed. (1997).
Identify all uncertainty sources — list every factor that can affect the result: instrument resolution, calibration, repeatability, environmental conditions (temperature, humidity), operator, sampling.
Evaluate Type A uncertainties (statistical) — take n repeated measurements under the same conditions; calculate standard deviation s; Type A standard uncertainty: u_A = s / √n. Use n ≥ 10 for reliable Type A evaluation.
Evaluate Type B uncertainties (non-statistical) — for each remaining source, determine the standard uncertainty from: calibration certificate (divide expanded uncertainty by coverage factor k), instrument specification (divide half-range by √3 for rectangular distribution), or expert judgment.
Convert all components to standard uncertainties — ensure all u_i are expressed as standard uncertainties (k=1, approximately 68% confidence level).
Combine using the law of propagation of uncertainty — for y = f(x₁, x₂, ..., xₙ):
u_c(y) = √[Σᵢ (∂f/∂xᵢ)² · u(xᵢ)²]
For uncorrelated inputs with equal sensitivity (∂f/∂xᵢ = 1): u_c = √[Σ u_i²].
Check for dominant contributions — if one component u_i² > 0.9 × u_c², focus improvement effort on that source; further reducing small contributions yields negligible benefit.
Calculate expanded uncertainty — multiply combined standard uncertainty by coverage factor k: U = k × u_c. Use k=2 for ~95% confidence (normal distribution); use k from t-table if effective degrees of freedom ν_eff < 30 (Welch-Satterthwaite formula).
Report the result — state: "y = (result ± U) [unit], where U = k × u_c with k=2 (approximately 95% confidence level)." Example: "L = (23.47 ± 0.05) mm, k=2."
npx claudepluginhub jeffreytse/grimoire --plugin grimoireCalculates how measurement uncertainties propagate through mathematical operations using partial derivative or Monte Carlo methods. For computing combined uncertainty in sums, products, powers, and general functions.
Breaks down unknown quantities into estimable factors for order-of-magnitude answers. Use for capacity planning, cost estimation, or sanity-checking when real data is unavailable.
Decomposes complex unknowns into estimable components for rapid order-of-magnitude estimates with bounded uncertainty. Useful for market sizing, resource planning, feasibility checks.