{
  "schema": "scorecompute.engine-examples.v1",
  "recorded_on": "2026-11-23",
  "endpoint": "https://scorecompute.com/mcp",
  "service_release": "0.18.0",
  "note": "Each published example called once through the public MCP endpoint. response_sha256 covers the response serialized as sorted-key compact UTF-8 JSON. Elapsed times vary between runs. A recorded response shows what the tool returned for these inputs; it does not certify the model or other inputs.",
  "engines": {
    "evaluate_ab_test": {
      "tool": "evaluate_ab_test",
      "arguments": {
        "observed": {
          "control": {
            "conversions": 48,
            "visitors": 80
          },
          "variant": {
            "conversions": 56,
            "visitors": 70
          }
        },
        "planning": {
          "baseline_rate": 0.05,
          "minimum_detectable_effect": 0.1,
          "effect_type": "relative",
          "alpha": 0.05,
          "power": 0.8
        }
      },
      "response_sha256": "f8e9c6478bd2199f7207deb10adffa6722254c712fd42cffcc508e5dd118ed0a",
      "response": {
        "contract_version": "0.1.0",
        "engine": "rust-cpu",
        "method": "Two-sided pooled two-proportion z-test (normal approximation); Newcombe hybrid score interval (method 10, Wilson limits, no continuity correction) for variant minus control; equal-allocation sample size of the same pooled z-test without continuity correction. Deterministic float64 closed forms.",
        "observed": {
          "control": {
            "conversions": 48,
            "visitors": 80,
            "rate": 0.6
          },
          "variant": {
            "conversions": 56,
            "visitors": 70,
            "rate": 0.8
          },
          "absolute_difference": 0.2,
          "relative_difference": 0.3333333333333333,
          "z_test": {
            "status": "computed",
            "pooled_rate": 0.6933333333333334,
            "standard_error": 0.07546680127869536,
            "z": 2.6501719512585327,
            "p_value": 0.00804508136819659,
            "p_value_below_1e_300": false
          },
          "difference_interval": {
            "method": "newcombe_hybrid_score",
            "confidence_level": 0.95,
            "z_critical": 1.959963984540054,
            "lower": 0.0524314724023649,
            "upper": 0.333872654036906
          },
          "small_expected_counts": false
        },
        "planning": {
          "baseline_rate": 0.05,
          "target_rate": 0.05500000000000001,
          "absolute_effect": 0.005000000000000001,
          "relative_effect": 0.10000000000000002,
          "alpha": 0.05,
          "power": 0.8,
          "z_alpha": 1.9599639845400543,
          "z_beta": 0.8416212335729146,
          "n_per_group_unrounded": 31233.437940130003,
          "n_per_group": 31234,
          "total_n": 62468
        },
        "assumptions": [
          "Two independent groups; each visitor is counted once and converts or not (binomial outcomes with a constant rate per group).",
          "Fixed-horizon analysis: the sample sizes were fixed before looking at the data and the test is evaluated once.",
          "Differences are variant minus control; relative_difference is that difference divided by the control rate.",
          "The z-test uses the pooled rate under the null hypothesis of equal rates and a two-sided alternative.",
          "Planning assumes equal group sizes, the stated baseline as the true control rate and the stated effect as the true difference."
        ],
        "limits": [
          "No correction for peeking, sequential monitoring, early stopping or multiple variants and metrics; repeated looks inflate the false-positive rate above alpha.",
          "Normal approximation: unreliable for small expected counts (see small_expected_counts); no exact Fisher or Barnard test and no continuity correction.",
          "The p-value and the interval come from different methods and can disagree near the significance boundary; neither is a probability that the variant is better.",
          "The planned sample size is that of the approximate z-test; it neglects the rejection probability in the opposite tail and is not adjusted for attrition, clustering or unequal allocation.",
          "Counts are taken as given: no check of randomisation, sample-ratio mismatch, tracking quality, novelty effects or practical relevance.",
          "Not a business recommendation: the result does not say whether to ship, stop or continue a test."
        ],
        "references": [
          "Newcombe RG (1998). Interval estimation for the difference between independent proportions: comparison of eleven methods. Statistics in Medicine 17:873-890 (method 10).",
          "Wilson EB (1927). Probable inference, the law of succession, and statistical inference. Journal of the American Statistical Association 22:209-212.",
          "Fleiss JL, Levin B, Paik MC (2003). Statistical Methods for Rates and Proportions, 3rd ed., Wiley (pooled two-proportion test and sample size without continuity correction).",
          "Abramowitz M, Stegun IA (1964). Handbook of Mathematical Functions: 7.1.6 and 7.1.14 (error function), 26.2.23 (normal quantile starting value)."
        ],
        "notes": [
          "observed and planning are computed independently: planning uses only the stated baseline, effect, alpha and power, never the observed counts."
        ],
        "elapsed_ms": 0.030225,
        "provenance": {
          "tool": "evaluate_ab_test",
          "server": "scorecompute",
          "client": {
            "name": "scorecompute-docs-recording",
            "version": "1.0"
          },
          "identity_source": "MCP clientInfo (self-reported)",
          "model": null
        }
      }
    },
    "compute_cashflow_metrics": {
      "tool": "compute_cashflow_metrics",
      "arguments": {
        "flows": [
          {
            "date": "2008-01-01",
            "amount": -10000
          },
          {
            "date": "2008-03-01",
            "amount": 2750
          },
          {
            "date": "2008-10-30",
            "amount": 4250
          },
          {
            "date": "2009-02-15",
            "amount": 3250
          },
          {
            "date": "2009-04-01",
            "amount": 2750
          }
        ],
        "discount_rate": 0.09
      },
      "response_sha256": "def45541856e51d575b1980d4e9877887b7299188576a7ff9eb23a816a66f31f",
      "response": {
        "contract_version": "0.1.0",
        "engine": "rust-cpu",
        "method": "NPV(r) = sum_i c_i / (1 + r)^((d_i - d_0) / 365) with d_0 the earliest date, summed with Neumaier compensation. Internal rate of return: zeros of NPV in x = ln(1 + r), bracketed (range end points for one sign change, 4096-interval grid for several) and refined by Brent's method with at most 200 iterations per bracket.",
        "day_count": "act_365_fixed",
        "flow_count": 5,
        "distinct_dates": 5,
        "first_date": "2008-01-01",
        "last_date": "2009-04-01",
        "span_days": 456,
        "net_total": 3000,
        "sign_changes": 1,
        "discount_rate": 0.09,
        "npv": 2086.6476020315367,
        "irr_status": "unique_root",
        "irr": 0.3733625335188314,
        "roots": [
          {
            "rate": 0.3733625335188314,
            "relative_residual": 4.5474735088646414e-17
          }
        ],
        "roots_truncated": false,
        "search": {
          "rate_min": -0.9999,
          "rate_max": 9999,
          "scan_intervals": 4096,
          "max_iterations": 200,
          "function_evaluations": 13
        },
        "assumptions": [
          "Day count is Actual/365 Fixed: actual calendar days between proleptic Gregorian dates divided by 365, leap years included, as documented for spreadsheet XNPV and XIRR.",
          "Rates are annual effective rates with compounding (1 + r)^t; they are not nominal, periodic or continuously compounded rates.",
          "Flows are discounted to the earliest date. Amounts are plain numbers in one unstated currency; negative means paid out, positive means received.",
          "The sign-change count uses the net amount per date in date order; dates with a zero net amount are ignored.",
          "By Descartes' rule of signs extended to real exponents, the number of rates above -100 % is at most the sign-change count and has the same parity."
        ],
        "limits": [
          "Arithmetic only: not financial advice, no currency conversion, no tax, fee or inflation rule, no amortization schedule.",
          "Rates are searched from -99.99 % to +999 900 % per year; a rate outside this range is reported as outside, not approximated.",
          "With several sign changes, two rates closer than one grid step in ln(1 + r) (about 0.0045) or a double root without a sign change of the NPV can be missed.",
          "Binary64 arithmetic: amounts are not rounded to cents and results carry floating-point rounding, typically below 1e-12 relative.",
          "Other day counts (Actual/360, 30/360, Actual/Actual) are not supported and give different figures.",
          "Amounts written with more than 15 significant digits can be moved by one unit in the last place when the JSON request is decoded."
        ],
        "notes": [],
        "statement": "5 dated flows over 456 days, Actual/365 Fixed: NPV at an annual rate of 0.09 is 2086.6476020315367; the internal rate of return is 0.3733625335188314 per year and is the only rate above -100 %. This is arithmetic on the supplied figures, not financial advice.",
        "elapsed_ms": 0.022142,
        "provenance": {
          "tool": "compute_cashflow_metrics",
          "server": "scorecompute",
          "client": {
            "name": "scorecompute-docs-recording",
            "version": "1.0"
          },
          "identity_source": "MCP clientInfo (self-reported)",
          "model": null
        }
      }
    }
  }
}
