{
  "capability_id": "engineering.uncertainty.weighted_mean",
  "tool_id": "weighted-mean",
  "engine": "weighted-mean",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-15T23:38:12.902Z",
  "engine_build": "2026-09-15",
  "test_count": 8,
  "passed": 8,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 0,
      "passed": 0
    },
    "boundary": {
      "total": 5,
      "passed": 5
    },
    "property": {
      "total": 3,
      "passed": 3
    }
  },
  "engine_tested": true,
  "expert_reviewed": false,
  "internally_reviewed": false,
  "review_kind": null,
  "source_checked": true,
  "reviewed_by": null,
  "reviewer_role": null,
  "last_reviewed": null,
  "expert_review": {
    "status": "optional_not_performed",
    "reviewer": null,
    "scope": [
      "formula",
      "input semantics",
      "assumptions",
      "limitations",
      "sources",
      "tests"
    ],
    "note": "Domain expert review is optional under CVP (CVP-EXP-01). Absence does not block CVP Verified. See Review policy for supplemental domain assurance."
  },
  "internal_review": {
    "status": "not_applicable",
    "reviewer": null
  },
  "page": "https://www.calculatorx.com/calc/engineering/weighted-mean",
  "api": "https://www.calculatorx.com/api/v1/calc/weighted-mean",
  "schema_input": "https://www.calculatorx.com/schemas/engineering.uncertainty.weighted_mean.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/engineering.uncertainty.weighted_mean.output.json",
  "assumptions": [
    "JCGM 100:2008 H.3 inverse-variance weighted mean of independent uncorrelated results of the same measurand",
    "Each u_i is a standard uncertainty greater than zero",
    "Not combined RSS, not Type A u_A = s/√n, and not GUM propagate",
    "χ² / Birge are diagnostics, not a pass/fail"
  ],
  "limitations": [
    "Independent uncorrelated results of the same measurand — not RSS of a measurement model",
    "Does not compute Type A u_A = s/√n from repeats without individual u_i",
    "Does not compute expanded U = k·u_w",
    "χ² / Birge are diagnostics, not a pass/fail verdict"
  ],
  "boundary_conditions": [
    "missing x or u → MISSING_REQUIRED_INPUT",
    "length mismatch → INVALID_INPUT",
    "any u_i ≤ 0 → VALUE_MUST_BE_POSITIVE"
  ],
  "sources": [
    {
      "title": "JCGM 100:2008 — Evaluation of measurement data — Guide to the expression of uncertainty in measurement (GUM)",
      "section": "H.3 Measurements sampled from a distribution: weighted mean",
      "url": "https://www.bipm.org/en/publications/guides/gum.html",
      "supports": "x_w = Σ(x_i/u²(x_i))/Σ(1/u²(x_i)); u²(x_w) = 1/Σ(1/u²(x_i)) for independent uncorrelated results of the same measurand",
      "kind": "standard"
    },
    {
      "title": "JCGM 100:2008 — Combined standard uncertainty (RSS of a measurement model)",
      "section": "5.1.2 uncorrelated input quantities",
      "supports": "RSS u_c = √Σ (c_i u_i)² is a different contract; this page does not combine a measurement model",
      "kind": "standard"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:690bac2d8e20a93e8cca32e4fecdacc18c8113953b2d45d189c09a8967be26a1",
  "tests": [
    {
      "id": "boundary-wm",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x": [
          2,
          4,
          6,
          8
        ],
        "u": [
          1,
          1,
          1,
          1
        ]
      },
      "expect": {
        "x_w": 5,
        "u_w": 0.5,
        "chi2": 20,
        "n": 4
      },
      "expectWarning": null,
      "actual": {
        "x_w": 5,
        "u_w": 0.5,
        "chi2": 20,
        "nu": 3,
        "birge": 2.581988897471611,
        "n": 4,
        "x": [
          2,
          4,
          6,
          8
        ],
        "u": [
          1,
          1,
          1,
          1
        ]
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-wm-one",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x": [
          5
        ],
        "u": [
          2
        ]
      },
      "expect": {
        "x_w": 5,
        "u_w": 2,
        "chi2": 0,
        "birge": null
      },
      "expectWarning": null,
      "actual": {
        "x_w": 5,
        "u_w": 2,
        "chi2": 0,
        "nu": 0,
        "birge": null,
        "n": 1,
        "x": [
          5
        ],
        "u": [
          2
        ]
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-wm-len",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x": [
          2,
          4
        ],
        "u": [
          1
        ]
      },
      "expectError": "INVALID_INPUT",
      "code": "INVALID_INPUT",
      "error": "x and u must have the same length"
    },
    {
      "id": "boundary-wm-missing",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x": [
          2,
          4
        ]
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "u is required"
    },
    {
      "id": "boundary-wm-zero",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x": [
          2,
          4
        ],
        "u": [
          1,
          0
        ]
      },
      "expectError": "VALUE_MUST_BE_POSITIVE",
      "code": "VALUE_MUST_BE_POSITIVE",
      "error": "u[1] must be greater than zero"
    },
    {
      "id": "property-wm",
      "ok": true,
      "kind": "property",
      "detail": "5",
      "expect": 5,
      "actual": 5
    },
    {
      "id": "property-wm-not-rss",
      "ok": true,
      "kind": "property",
      "detail": "0.5≠2",
      "expect": 0.5,
      "actual": 0.5
    },
    {
      "id": "property-wm-one",
      "ok": true,
      "kind": "property",
      "detail": "5",
      "expect": 5,
      "actual": 5
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 8,
      "total": 8,
      "golden": 0,
      "boundary": 5,
      "property": 3
    },
    "contract_checks": {
      "passed": 4,
      "total": 4
    }
  },
  "evidence_core_generated_at": "2026-09-15T21:59:41.132Z",
  "rendered_at": "2026-09-15T23:38:12.902Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.0.0",
    "artifacts": {
      "engine": "1.0.0",
      "page": "1.0.0",
      "capability": "1.0.0",
      "evidence": "1.0.0",
      "input_schema": "1.0.0",
      "output_schema": "1.0.0",
      "mcp_contract": "1.0.0"
    },
    "digests": {
      "input_schema_sha256": "594f95e5eb164d2294ae9facc1072431a206ee924de5f9c36e597b7d0967a28a",
      "output_schema_sha256": "3a0ccab6b8ecc7c51ed5199973a1566503dba446a09912e3441d5f4791e867ae",
      "evidence_sha256": "8c7e116e1b9a8d5916617378258110d62a863ac824083ed377388b9ba3ecab92",
      "evidence_core_sha256": "8c7e116e1b9a8d5916617378258110d62a863ac824083ed377388b9ba3ecab92",
      "capability_sha256": "924ed4bdb5513c6a4297bde3b528e5d89515528831a179bf6ed3b313f929094c",
      "engine_sha256": "9265836b6b06f498f3f985320eab21319806f5471a924aead2cf954a9b6ffd8f",
      "mcp_contract_sha256": "ef59a935293be4e8212bcd43a3fc15993093aab9a9136fa56d3a8d267774178c"
    },
    "contract_checks": {
      "total": 4,
      "passed": 4,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.0.0"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "engine-success-output-validates-schema",
          "status": "pass"
        },
        {
          "id": "schema-rejects-incomplete-input",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
