BRAINIAC A/B Testing & Experimentation Statistics

Paid A/B Testing & Experimentation Statistics API via x402. Unpaid tool calls return 402.

使うべきか

品質と安全性

A
説明の品質
100%
スキーマの完全性
98%
命名の品質
37%
ポイズニングのリスク
100%
権限の一致
100%
プロトコルへの準拠
100%

検出事項(25)

  • LOWTool 'experimentation_ab-test-frequentist' doesn't follow camelCase/snake_caseexperimentation_ab-test-frequentist 内
  • LOWTool 'experimentation_ab-test-frequentist' name length outside 3-30 rangeexperimentation_ab-test-frequentist 内
  • LOWTool 'experimentation_bayesian-ab' doesn't follow camelCase/snake_caseexperimentation_bayesian-ab 内
  • LOWTool 'experimentation_sequential-test' doesn't follow camelCase/snake_caseexperimentation_sequential-test 内
  • LOWTool 'experimentation_sequential-test' name length outside 3-30 rangeexperimentation_sequential-test 内
  • LOWTool 'experimentation_cuped-adjust' doesn't follow camelCase/snake_caseexperimentation_cuped-adjust 内
  • LOWTool 'experimentation_sample-ratio-mismatch' doesn't follow camelCase/snake_caseexperimentation_sample-ratio-mismatch 内
  • LOWTool 'experimentation_sample-ratio-mismatch' name length outside 3-30 rangeexperimentation_sample-ratio-mismatch 内
  • LOWTool 'experimentation_sample-size-mde' doesn't follow camelCase/snake_caseexperimentation_sample-size-mde 内
  • LOWTool 'experimentation_sample-size-mde' name length outside 3-30 rangeexperimentation_sample-size-mde 内

ツール定義とプロトコルへの準拠に関する自動分析に基づいています。

コンテキストコスト

~12,335トークン数(ツール定義)
~8.1 KB一般的なレスポンスサイズ
注意への影響は大きい(128k コンテキストの 9.64%)

これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。

インストール

ワンクリックインストール

これを `claude_desktop_config.json` ファイルに追加してください:

{
  "mcpServers": {
    "experimentation": {
      "url": "https://www.brainiac.software/mcp/experimentation"
    }
  }
}

リモートエンドポイント

https://www.brainiac.software/mcp/experimentationstreamable-http

できること

ツール一覧

ツール(15)

🟢 読み取り専用🟡 書き込み🔴 削除⚪ 不明
🟢experimentation_ab-test-frequentist(metricType, alpha, alternative, control, treatment)

Two-arm A/B scorecard for conversion (two-proportion z) or continuous (Welch t) metrics: absolute and relative lift, confidence intervals, p-value and significance. Docs: https://www.brainiac.software/api/experimentation/ab-test-frequentist Keywords: when designing or analysing an A/B test, metricType, control, treatment, alpha, alternative, controlRate, treatmentRate, absoluteLift, absoluteCi, relativeLift, relativeCi, statistic, pValue, significant.

入力スキーマ

{
  "type": "object",
  "properties": {
    "metricType": {
      "type": "string",
      "enum": [
        "proportion",
        "mean"
      ],
      "description": "metricType, string, one of proportion, mean. Required."
    },
    "alpha": {
      "default": 0.05,
      "description": "alpha, number. Required.",
      "type": "number",
      "exclusiveMinimum": 0,
      "exclusiveMaximum": 0.5
    },
    "alternative": {
      "default": "two-sided",
      "description": "alternative, string, one of two-sided, greater, less. Required.",
      "type": "string",
      "enum": [
        "two-sided",
        "greater",
        "less"
      ]
    },
    "control": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "users": {
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991
            },
            "conversions": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "users",
            "conversions"
          ]
        },
        {
          "type": "object",
          "properties": {
            "n": {
              "type": "integer",
              "minimum": 2,
              "maximum": 9007199254740991
            },
            "mean": {
              "type": "number"
            },
            "sd": {
              "type": "number",
              "minimum": 0
            }
          },
          "required": [
            "n",
            "mean",
            "sd"
          ]
        }
      ],
      "description": "control, value. Required."
    },
    "treatment": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "users": {
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991
            },
            "conversions": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "users",
            "conversions"
          ]
        },
        {
          "type": "object",
          "properties": {
            "n": {
              "type": "integer",
              "minimum": 2,
              "maximum": 9007199254740991
            },
            "mean": {
              "type": "number"
            },
            "sd": {
              "type": "number",
              "minimum": 0
            }
          },
          "required": [
            "n",
            "mean",
            "sd"
          ]
        }
      ],
      "description": "control, value. Required."
    }
  },
  "required": [
    "metricType",
    "control",
    "treatment"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "controlRate": {
      "type": "number",
      "description": "controlRate. Number."
    },
    "treatmentRate": {
      "type": "number",
      "description": "treatmentRate. Number."
    },
    "absoluteLift": {
      "type": "number",
      "description": "absoluteLift. Number."
    },
    "absoluteCi": {
      "type": "array",
      "items": {
        "type": "number",
        "description": "item. Number."
      },
      "description": "absoluteCi. Array."
    },
    "relativeLift": {
      "type": "number",
      "description": "relativeLift. Number."
    },
    "relativeCi": {
      "type": "array",
      "items": {
        "type": "number",
        "description": "item. Number."
      },
      "description": "relativeCi. Array."
    },
    "statistic": {
      "type": "number",
      "description": "statistic. Number."
    },
    "pValue": {
      "type": "number",
      "description": "pValue. Number."
    },
    "significant": {
      "type": "boolean",
      "description": "significant. Boolean."
    },
    "test": {
      "type": "string",
      "description": "test. String."
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "source. String."
          },
          "url": {
            "type": "string",
            "description": "url. String."
          },
          "retrievedAt": {
            "type": "string",
            "description": "retrievedAt. String."
          },
          "status": {
            "type": "string",
            "description": "status. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "sources. Array."
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "item. String."
      },
      "description": "limitations. Array."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {}
}
🟢experimentation_bayesian-ab(prior, arms, credibleLevel)

Posterior, probability to beat control, probability of being best, expected loss and equal-tailed credible intervals for 2-10 conversion arms. Docs: https://www.brainiac.software/api/experimentation/bayesian-ab Keywords: when designing or analysing an A/B test, arms, prior, credibleLevel, control, method, bayesian ab, A/B Testing & Experimentation Statistics.

入力スキーマ

{
  "type": "object",
  "properties": {
    "prior": {
      "default": {
        "alpha": 1,
        "beta": 1
      },
      "description": "prior, object. Required.",
      "type": "object",
      "properties": {
        "alpha": {
          "default": 1,
          "description": "alpha, number. Required.",
          "type": "number",
          "exclusiveMinimum": 0
        },
        "beta": {
          "default": 1,
          "description": "beta, number. Required.",
          "type": "number",
          "exclusiveMinimum": 0
        }
      }
    },
    "arms": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "name, string, length 1 to 64. Required."
          },
          "control": {
            "description": "control, boolean. Optional.",
            "type": "boolean"
          },
          "users": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "users, integer, from 0 to 9007199254740991. Required."
          },
          "conversions": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "conversions, integer, from 0 to 9007199254740991. Required."
          }
        },
        "required": [
          "name",
          "users",
          "conversions"
        ],
        "description": "item, object. Required."
      },
      "description": "arms, array. Required."
    },
    "credibleLevel": {
      "default": 0.95,
      "description": "credibleLevel, number. Required.",
      "type": "number",
      "exclusiveMinimum": 0.5,
      "exclusiveMaximum": 0.999
    }
  },
  "required": [
    "arms"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "arms": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "name. String."
          },
          "posterior": {
            "type": "object",
            "properties": {
              "alpha": {
                "type": "number",
                "description": "alpha. Number."
              },
              "beta": {
                "type": "number",
                "description": "beta. Number."
              }
            },
            "additionalProperties": {},
            "description": "posterior. Object."
          },
          "mean": {
            "type": "number",
            "description": "mean. Number."
          },
          "credible": {
            "type": "array",
            "items": {
              "type": "number",
              "description": "item. Number."
            },
            "description": "credible. Array."
          },
          "probBeatControl": {
            "type": "null",
            "description": "probBeatControl. Null."
          },
          "probBest": {
            "type": "number",
            "description": "probBest. Number."
          },
          "expectedLoss": {
            "type": "number",
            "description": "expectedLoss. Number."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "arms. Array."
    },
    "control": {
      "type": "string",
      "description": "control. String."
    },
    "credibleLevel": {
      "type": "number",
      "description": "credibleLevel. Number."
    },
    "method": {
      "type": "object",
      "properties": {
        "probBeatControl": {
          "type": "string",
          "description": "probBeatControl. String."
        },
        "probBest": {
          "type": "string",
          "description": "probBest. String."
        },
        "expectedLoss": {
          "type": "string",
          "description": "expectedLoss. String."
        }
      },
      "additionalProperties": {},
      "description": "method. Object."
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "source. String."
          },
          "url": {
            "type": "string",
            "description": "url. String."
          },
          "retrievedAt": {
            "type": "string",
            "description": "retrievedAt. String."
          },
          "status": {
            "type": "string",
            "description": "status. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "sources. Array."
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "item. String."
      },
      "description": "limitations. Array."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {}
}
🟢experimentation_sequential-test(mode, alpha, spending, informationFractions, observedZ, ...)

Lan-DeMets group-sequential boundaries (O'Brien-Fleming or Pocock spending) for planned looks with a stop/continue decision, or an always-valid mSPRT p-value for continuous monitoring. Docs: https://www.brainiac.software/api/experimentation/sequential-test Keywords: when designing or analysing an A/B test, mode, alpha, spending, informationFractions, observedZ, estimate, variance, tau2, boundaries, cumulativeAlpha, decision, sequential test.

入力スキーマ

{
  "type": "object",
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "group_sequential",
        "msprt"
      ],
      "description": "mode, string, one of group_sequential, msprt. Required."
    },
    "alpha": {
      "default": 0.05,
      "description": "alpha, number. Required.",
      "type": "number",
      "exclusiveMinimum": 0,
      "exclusiveMaximum": 0.5
    },
    "spending": {
      "default": "obrien_fleming",
      "description": "spending, string, one of obrien_fleming, pocock. Required.",
      "type": "string",
      "enum": [
        "obrien_fleming",
        "pocock"
      ]
    },
    "informationFractions": {
      "description": "informationFractions, array. Optional.",
      "type": "array",
      "items": {
        "type": "number",
        "exclusiveMinimum": 0,
        "maximum": 1,
        "description": "item, number, from any to 1. Required."
      }
    },
    "observedZ": {
      "description": "observedZ, array. Optional.",
      "type": "array",
      "items": {
        "description": "item, number. Required.",
        "type": [
          "number",
          "null"
        ]
      }
    },
    "estimate": {
      "description": "estimate, number. Optional.",
      "type": "number"
    },
    "variance": {
      "description": "variance, number. Optional.",
      "type": "number",
      "exclusiveMinimum": 0
    },
    "tau2": {
      "description": "tau2, number. Optional.",
      "type": "number",
      "exclusiveMinimum": 0
    }
  },
  "required": [
    "mode"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "boundaries": {
      "type": "array",
      "items": {
        "type": "number",
        "description": "item. Number."
      },
      "description": "boundaries. Array."
    },
    "cumulativeAlpha": {
      "type": "array",
      "items": {
        "type": "number",
        "description": "item. Number."
      },
      "description": "cumulativeAlpha. Array."
    },
    "decision": {
      "type": "object",
      "properties": {
        "look": {
          "type": "number",
          "description": "look. Number."
        },
        "crossed": {
          "type": "boolean",
          "description": "crossed. Boolean."
        },
        "boundary": {
          "type": "number",
          "description": "boundary. Number."
        },
        "observedZ": {
          "type": "number",
          "description": "observedZ. Number."
        }
      },
      "additionalProperties": {},
      "description": "decision. Object."
    },
    "spending": {
      "type": "string",
      "description": "spending. String."
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "source. String."
          },
          "url": {
            "type": "string",
            "description": "url. String."
          },
          "retrievedAt": {
            "type": "string",
            "description": "retrievedAt. String."
          },
          "status": {
            "type": "string",
            "description": "status. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "sources. Array."
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "item. String."
      },
      "description": "limitations. Array."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {}
}
🟢experimentation_cuped-adjust(units, alpha)

CUPED adjustment with a pre-experiment covariate on unit-level data: theta, variance reduction, and Welch tests on raw and adjusted values. Docs: https://www.brainiac.software/api/experimentation/cuped-adjust Keywords: when designing or analysing an A/B test, units, alpha, theta, varianceReduction, raw, adjusted, groups, unitsWithoutCovariate, cuped adjust.

入力スキーマ

{
  "type": "object",
  "properties": {
    "units": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "group": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "group, string, length 1 to 64. Required."
          },
          "y": {
            "type": "number",
            "description": "y, number. Required."
          },
          "x": {
            "description": "x, number. Optional.",
            "type": [
              "number",
              "null"
            ]
          }
        },
        "required": [
          "group",
          "y"
        ],
        "description": "item, object. Required."
      },
      "description": "units, array. Required."
    },
    "alpha": {
      "default": 0.05,
      "description": "alpha, number. Required.",
      "type": "number",
      "exclusiveMinimum": 0,
      "exclusiveMaximum": 0.5
    }
  },
  "required": [
    "units"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "theta": {
      "type": "number",
      "description": "theta. Number."
    },
    "varianceReduction": {
      "type": "number",
      "description": "varianceReduction. Number."
    },
    "raw": {
      "type": "object",
      "properties": {
        "diff": {
          "type": "number",
          "description": "diff. Number."
        },
        "se": {
          "type": "number",
          "description": "se. Number."
        },
        "pValue": {
          "type": "number",
          "description": "pValue. Number."
        },
        "ci": {
          "type": "array",
          "items": {
            "type": "number",
            "description": "item. Number."
          },
          "description": "ci. Array."
        },
        "significant": {
          "type": "boolean",
          "description": "significant. Boolean."
        }
      },
      "additionalProperties": {},
      "description": "raw. Object."
    },
    "adjusted": {
      "type": "object",
      "properties": {
        "controlMean": {
          "type": "number",
          "description": "controlMean. Number."
        },
        "treatmentMean": {
          "type": "number",
          "description": "treatmentMean. Number."
        },
        "diff": {
          "type": "number",
          "description": "diff. Number."
        },
        "se": {
          "type": "number",
          "description": "se. Number."
        },
        "pValue": {
          "type": "number",
          "description": "pValue. Number."
        },
        "ci": {
          "type": "array",
          "items": {
            "type": "number",
            "description": "item. Number."
          },
          "description": "ci. Array."
        },
        "significant": {
          "type": "boolean",
          "description": "significant. Boolean."
        }
      },
      "additionalProperties": {},
      "description": "adjusted. Object."
    },
    "groups": {
      "type": "object",
      "properties": {
        "control": {
          "type": "string",
          "description": "control. String."
        },
        "treatment": {
          "type": "string",
          "description": "treatment. String."
        }
      },
      "additionalProperties": {},
      "description": "groups. Object."
    },
    "unitsWithoutCovariate": {
      "type": "number",
      "description": "unitsWithoutCovariate. Number."
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "source. String."
          },
          "url": {
            "type": "string",
            "description": "url. String."
          },
          "retrievedAt": {
            "type": "string",
            "description": "retrievedAt. String."
          },
          "status": {
            "type": "string",
            "description": "status. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "sources. Array."
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "item. String."
      },
      "description": "limitations. Array."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {}
}
🟢experimentation_sample-ratio-mismatch(arms, threshold)

Chi-square goodness-of-fit test of observed arm counts against expected traffic shares, with an exact binomial p-value for tiny two-arm counts and generic causes when a mismatch is flagged. Docs: https://www.brainiac.software/api/experimentation/sample-ratio-mismatch Keywords: when designing or analysing an A/B test, arms, threshold, chiSquare, pValue, srm, hints, Detect A/B sample ratio mismatch, sample ratio mismatch.

入力スキーマ

{
  "type": "object",
  "properties": {
    "arms": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "name, string, length 1 to 64. Required."
          },
          "observed": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "observed, integer, from 0 to 9007199254740991. Required."
          },
          "expectedShare": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 1,
            "description": "expectedShare, number, from any to 1. Required."
          }
        },
        "required": [
          "name",
          "observed",
          "expectedShare"
        ],
        "description": "item, object. Required."
      },
      "description": "arms, array. Required."
    },
    "threshold": {
      "default": 0.0005,
      "description": "threshold, number. Required.",
      "type": "number",
      "exclusiveMinimum": 0,
      "exclusiveMaximum": 1
    }
  },
  "required": [
    "arms"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "chiSquare": {
      "type": "number",
      "description": "chiSquare. Number."
    },
    "df": {
      "type": "number",
      "description": "df. Number."
    },
    "pValue": {
      "type": "number",
      "description": "pValue. Number."
    },
    "srm": {
      "type": "boolean",
      "description": "srm. Boolean."
    },
    "threshold": {
      "type": "number",
      "description": "threshold. Number."
    },
    "arms": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "name. String."
          },
          "observed": {
            "type": "number",
            "description": "observed. Number."
          },
          "expected": {
            "type": "number",
            "description": "expected. Number."
          },
          "deviationPct": {
            "type": "number",
            "description": "deviationPct. Number."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "arms. Array."
    },
    "hints": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "Item. String."
      },
      "description": "hints. Array."
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "source. String."
          },
          "url": {
            "type": "string",
            "description": "url. String."
          },
          "retrievedAt": {
            "type": "string",
            "description": "retrievedAt. String."
          },
          "status": {
            "type": "string",
            "description": "status. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "sources. Array."
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "item. String."
      },
      "description": "limitations. Array."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {}
}
🟢experimentation_sample-size-mde(metricType, baseline, baselineSd, baselineMean, mde, ...)

Required users per arm and duration for a target minimum detectable effect, or the MDE for a fixed sample, for proportion or mean metrics with power, multi-arm Bonferroni and unequal allocation. Docs: https://www.brainiac.software/api/experimentation/sample-size-mde Keywords: when designing or analysing an A/B test, metricType, baseline, baselineSd, baselineMean, mde, mdeType, nPerArm, alpha, alternative, power, arms, allocation, dailyUsers, correction.

入力スキーマ

{
  "type": "object",
  "properties": {
    "metricType": {
      "type": "string",
      "enum": [
        "proportion",
        "mean"
      ],
      "description": "metricType, string, one of proportion, mean. Required."
    },
    "baseline": {
      "description": "baseline, number. Optional.",
      "type": "number",
      "exclusiveMinimum": 0,
      "exclusiveMaximum": 1
    },
    "baselineSd": {
      "description": "baselineSd, number. Optional.",
      "type": "number",
      "exclusiveMinimum": 0
    },
    "baselineMean": {
      "description": "baselineMean, number. Optional.",
      "type": "number"
    },
    "mde": {
      "description": "mde, number. Optional.",
      "type": "number",
      "exclusiveMinimum": 0
    },
    "mdeType": {
      "default": "relative",
      "description": "mdeType, string, one of relative, absolute. Required.",
      "type": "string",
      "enum": [
        "relative",
        "absolute"
      ]
    },
    "nPerArm": {
      "description": "nPerArm, integer, from 2 to 9007199254740991. Optional.",
      "type": "integer",
      "minimum": 2,
      "maximum": 9007199254740991
    },
    "alpha": {
      "default": 0.05,
      "description": "alpha, number. Required.",
      "type": "number",
      "exclusiveMinimum": 0,
      "exclusiveMaximum": 0.5
    },
    "alternative": {
      "default": "two-sided",
      "description": "alternative, string, one of two-sided, greater, less. Required.",
      "type": "string",
      "enum": [
        "two-sided",
        "greater",
        "less"
      ]
    },
    "power": {
      "default": 0.8,
      "description": "power, number. Required.",
      "type": "number",
      "exclusiveMinimum": 0.5,
      "exclusiveMaximum": 0.999
    },
    "arms": {
      "default": 2,
      "description": "arms, integer, from 2 to 10. Required.",
      "type": "integer",
      "minimum": 2,
      "maximum": 10
    },
    "allocation": {
      "description": "allocation, array. Optional.",
      "type": "array",
      "items": {
        "type": "number",
        "exclusiveMinimum": 0,
        "exclusiveMaximum": 1,
        "description": "item, number. Required."
      }
    },
    "dailyUsers": {
      "description": "dailyUsers, number. Optional.",
      "type": "number",
      "exclusiveMinimum": 0
    },
    "correction": {
      "default": "none",
      "description": "correction, string, one of bonferroni, none. Required.",
      "type": "string",
      "enum": [
        "bonferroni",
        "none"
      ]
    }
  },
  "required": [
    "metricType"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "nPerArm": {
      "type": "number",
      "description": "nPerArm. Number."
    },
    "nByArm": {
      "type": "array",
      "items": {
        "type": "number",
        "description": "item. Number."
      },
      "description": "nByArm. Array."
    },
    "totalN": {
      "type": "number",
      "description": "totalN. Number."
    },
    "days": {
      "type": "number",
      "description": "days. Number."
    },
    "alphaPerComparison": {
      "type": "number",
      "description": "alphaPerComparison. Number."
    },
    "formula": {
      "type": "string",
      "description": "formula. String."
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "source. String."
          },
          "url": {
            "type": "string",
            "description": "url. String."
          },
          "retrievedAt": {
            "type": "string",
            "description": "retrievedAt. String."
          },
          "status": {
            "type": "string",
            "description": "status. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "sources. Array."
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "item. String."
      },
      "description": "limitations. Array."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {}
}
🟢experimentation_multiple-testing-correct(pValues, methods, alpha)

Bonferroni, Holm and Benjamini-Hochberg adjusted p-values and reject decisions across metrics or arms, returned in input order. Docs: https://www.brainiac.software/api/experimentation/multiple-testing-correct Keywords: when designing or analysing an A/B test, pValues, methods, alpha, results, Adjust p-values for multiple testing, multiple testing correct, A/B Testing & Experimentation Statistics.

入力スキーマ

{
  "type": "object",
  "properties": {
    "pValues": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "id, string, length 1 to 64. Required."
          },
          "p": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "description": "p, number, from 0 to 1. Required."
          }
        },
        "required": [
          "id",
          "p"
        ],
        "description": "item, object. Required."
      },
      "description": "pValues, array. Required."
    },
    "methods": {
      "default": [
        "bonferroni",
        "holm",
        "benjamini_hochberg"
      ],
      "description": "methods, array. Required.",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "bonferroni",
          "holm",
          "benjamini_hochberg"
        ],
        "description": "item, string, one of bonferroni, holm, benjamini_hochberg. Required."
      }
    },
    "alpha": {
      "default": 0.05,
      "description": "alpha, number. Required.",
      "type": "number",
      "exclusiveMinimum": 0,
      "exclusiveMaximum": 0.5
    }
  },
  "required": [
    "pValues"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "id. String."
          },
          "p": {
            "type": "number",
            "description": "p. Number."
          },
          "bonferroni": {
            "type": "number",
            "description": "bonferroni. Number."
          },
          "holm": {
            "type": "number",
            "description": "holm. Number."
          },
          "benjamini_hochberg": {
            "type": "number",
            "description": "benjamini_hochberg. Number."
          },
          "rejected": {
            "type": "object",
            "properties": {
              "bonferroni": {
                "type": "boolean",
                "description": "bonferroni. Boolean."
              },
              "holm": {
                "type": "boolean",
                "description": "holm. Boolean."
              },
              "benjamini_hochberg": {
                "type": "boolean",
                "description": "benjamini_hochberg. Boolean."
              }
            },
            "additionalProperties": {},
            "description": "rejected. Object."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "results. Array."
    },
    "alpha": {
      "type": "number",
      "description": "alpha. Number."
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "source. String."
          },
          "url": {
            "type": "string",
            "description": "url. String."
          },
          "retrievedAt": {
            "type": "string",
            "description": "retrievedAt. String."
          },
          "status": {
            "type": "string",
            "description": "status. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "sources. Array."
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "item. String."
      },
      "description": "limitations. Array."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {}
}
🟢experimentation_delta-method-ratio(arms, alpha)

Confidence interval for a ratio metric whose analysis unit differs from the randomisation unit, plus the treatment-vs-control difference and relative lift. Docs: https://www.brainiac.software/api/experimentation/delta-method-ratio Keywords: when designing or analysing an A/B test, arms, alpha, difference, relativeLift, relativeCi, Estimate a ratio metric with the delta method, delta method ratio.

入力スキーマ

{
  "type": "object",
  "properties": {
    "arms": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "name, string, length 1 to 64. Required."
          },
          "control": {
            "description": "control, boolean. Optional.",
            "type": "boolean"
          },
          "units": {
            "description": "units, array. Optional.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "num": {
                  "type": "number",
                  "description": "num, number. Required."
                },
                "den": {
                  "type": "number",
                  "minimum": 0,
                  "description": "den, number, from 0 to any. Required."
                }
              },
              "required": [
                "num",
                "den"
              ],
              "description": "item, object. Required."
            }
          },
          "n": {
            "description": "n, integer, from 2 to 9007199254740991. Optional.",
            "type": "integer",
            "minimum": 2,
            "maximum": 9007199254740991
          },
          "sumNum": {
            "description": "sumNum, number. Optional.",
            "type": "number"
          },
          "sumDen": {
            "description": "sumDen, number, from 0 to any. Optional.",
            "type": "number",
            "minimum": 0
          },
          "sumNum2": {
            "description": "sumNum2, number, from 0 to any. Optional.",
            "type": "number",
            "minimum": 0
          },
          "sumDen2": {
            "description": "sumDen2, number, from 0 to any. Optional.",
            "type": "number",
            "minimum": 0
          },
          "sumNumDen": {
            "description": "sumNumDen, number. Optional.",
            "type": "number"
          }
        },
        "required": [
          "name"
        ],
        "description": "item, object. Required."
      },
      "description": "arms, array. Required."
    },
    "alpha": {
      "default": 0.05,
      "description": "alpha, number. Required.",
      "type": "number",
      "exclusiveMinimum": 0,
      "exclusiveMaximum": 0.5
    }
  },
  "required": [
    "arms"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "arms": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "name. String."
          },
          "ratio": {
            "type": "number",
            "description": "ratio. Number."
          },
          "se": {
            "type": "number",
            "description": "se. Number."
          },
          "ci": {
            "type": "array",
            "items": {
              "type": "number",
              "description": "item. Number."
            },
            "description": "ci. Array."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "arms. Array."
    },
    "difference": {
      "type": "object",
      "properties": {
        "estimate": {
          "type": "null",
          "description": "estimate. Null."
        },
        "se": {
          "type": "null",
          "description": "se. Null."
        },
        "ci": {
          "type": "null",
          "description": "ci. Null."
        },
        "pValue": {
          "type": "null",
          "description": "pValue. Null."
        }
      },
      "additionalProperties": {},
      "description": "difference. Object."
    },
    "relativeLift": {
      "type": "null",
      "description": "relativeLift. Null."
    },
    "relativeCi": {
      "type": "null",
      "description": "relativeCi. Null."
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "source. String."
          },
          "url": {
            "type": "string",
            "description": "url. String."
          },
          "retrievedAt": {
            "type": "string",
            "description": "retrievedAt. String."
          },
          "status": {
            "type": "string",
            "description": "status. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "sources. Array."
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "item. String."
      },
      "description": "limitations. Array."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {}
}
🟢experimentation_bandit-allocate(policy, arms, prior, minShare)

Next-period traffic weights from arm outcomes: Thompson-sampling probabilities by deterministic quadrature, or UCB1 indices, with an exploration floor. Docs: https://www.brainiac.software/api/experimentation/bandit-allocate Keywords: when designing or analysing an A/B test, policy, arms, prior, minShare, weights, Compute multi-armed bandit traffic weights, bandit allocate.

入力スキーマ

{
  "type": "object",
  "properties": {
    "policy": {
      "type": "string",
      "enum": [
        "thompson",
        "ucb1"
      ],
      "description": "policy, string, one of thompson, ucb1. Required."
    },
    "arms": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "name, string, length 1 to 64. Required."
          },
          "successes": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "successes, integer, from 0 to 9007199254740991. Required."
          },
          "failures": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "successes, integer, from 0 to 9007199254740991. Required."
          }
        },
        "required": [
          "name",
          "successes",
          "failures"
        ],
        "description": "item, object. Required."
      },
      "description": "arms, array. Required."
    },
    "prior": {
      "default": {
        "alpha": 1,
        "beta": 1
      },
      "description": "prior, object. Required.",
      "type": "object",
      "properties": {
        "alpha": {
          "default": 1,
          "description": "alpha, number. Required.",
          "type": "number",
          "exclusiveMinimum": 0
        },
        "beta": {
          "default": 1,
          "description": "beta, number. Required.",
          "type": "number",
          "exclusiveMinimum": 0
        }
      }
    },
    "minShare": {
      "default": 0,
      "description": "minShare, number, from 0 to 0.5. Required.",
      "type": "number",
      "minimum": 0,
      "maximum": 0.5
    }
  },
  "required": [
    "policy",
    "arms"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "policy": {
      "type": "string",
      "description": "policy. String."
    },
    "weights": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "name. String."
          },
          "probBest": {
            "type": "number",
            "description": "probBest. Number."
          },
          "weight": {
            "type": "number",
            "description": "weight. Number."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "weights. Array."
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "source. String."
          },
          "url": {
            "type": "string",
            "description": "url. String."
          },
          "retrievedAt": {
            "type": "string",
            "description": "retrievedAt. String."
          },
          "status": {
            "type": "string",
            "description": "status. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "sources. Array."
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "item. String."
      },
      "description": "limitations. Array."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {}
}
🟢experimentation_bucket-assign(unitIds, experiment, layer)

Stateless SHA-256 bucketing of unit ids into an experiment with traffic gating, ordered group shares and an optional layer, documented so any SDK can reproduce it. Docs: https://www.brainiac.software/api/experimentation/bucket-assign Keywords: when designing or analysing an A/B test, unitIds, experiment, layer, assignments, algorithm, bucket assign, A/B Testing & Experimentation Statistics.

入力スキーマ

{
  "type": "object",
  "properties": {
    "unitIds": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 256,
        "description": "item, string, length 1 to 256. Required."
      },
      "description": "unitIds, array. Required."
    },
    "experiment": {
      "type": "object",
      "properties": {
        "name": {
          "description": "name, string, length 1 to 128. Optional.",
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "salt": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "description": "salt, string, length 1 to 128. Required."
        },
        "trafficShare": {
          "default": 1,
          "description": "trafficShare, number, from any to 1. Required.",
          "type": "number",
          "exclusiveMinimum": 0,
          "maximum": 1
        },
        "groups": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64,
                "description": "name, string, length 1 to 64. Required."
              },
              "share": {
                "type": "number",
                "exclusiveMinimum": 0,
                "maximum": 1,
                "description": "share, number, from any to 1. Required."
              }
            },
            "required": [
              "name",
              "share"
            ],
            "description": "item, object. Required."
          },
          "description": "groups, array. Required."
        }
      },
      "required": [
        "salt",
        "groups"
      ],
      "description": "experiment, object. Required."
    },
    "layer": {
      "description": "layer, value. Optional.",
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "salt": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "description": "salt, string, length 1 to 128. Required."
            },
            "segments": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "experiment": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "description": "experiment, string, length 1 to 128. Required."
                  },
                  "from": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9999,
                    "description": "from, integer, from 0 to 9999. Required."
                  },
                  "to": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 10000,
                    "description": "to, integer, from 1 to 10000. Required."
                  }
                },
                "required": [
                  "experiment",
                  "from",
                  "to"
                ],
                "description": "item, object. Required."
              },
              "description": "segments, array. Required."
            }
          },
          "required": [
            "salt",
            "segments"
          ]
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "unitIds",
    "experiment"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "assignments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "unitId": {
            "type": "string",
            "description": "unitId. String."
          },
          "bucket": {
            "type": "number",
            "description": "bucket. Number."
          },
          "groupBucket": {
            "type": "number",
            "description": "groupBucket. Number."
          },
          "inExperiment": {
            "type": "boolean",
            "description": "inExperiment. Boolean."
          },
          "group": {
            "type": "string",
            "description": "group. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "assignments. Array."
    },
    "algorithm": {
      "type": "string",
      "description": "algorithm. String."
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "source. String."
          },
          "url": {
            "type": "string",
            "description": "url. String."
          },
          "retrievedAt": {
            "type": "string",
            "description": "retrievedAt. String."
          },
          "status": {
            "type": "string",
            "description": "status. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "sources. Array."
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "item. String."
      },
      "description": "limitations. Array."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {}
}
🟢experimentation_flag-rule-evaluate(flag, context)

Evaluate ordered feature-flag rules (attribute operators, semver comparison, deterministic percentage rollout) for one user context and explain which rule matched. Docs: https://www.brainiac.software/api/experimentation/flag-rule-evaluate Keywords: when designing or analysing an A/B test, flag, context, value, matchedRule, trace, reason, Evaluate a feature-flag rule set, flag rule evaluate.

入力スキーマ

{
  "type": "object",
  "properties": {
    "flag": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "description": "key, string, length 1 to 128. Required."
        },
        "salt": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "description": "salt, string, length 1 to 128. Required."
        },
        "default": {
          "description": "default, string or number or boolean. Required.",
          "type": [
            "string",
            "number",
            "boolean"
          ]
        },
        "rules": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64,
                "description": "id, string, length 1 to 64. Required."
              },
              "conditions": {
                "default": [],
                "description": "conditions, array. Required.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "attribute": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "description": "attribute, string, length 1 to 128. Required."
                    },
                    "op": {
                      "type": "string",
                      "enum": [
                        "eq",
                        "neq",
                        "in",
                        "not_in",
                        "contains",
                        "starts_with",
                        "ends_with",
                        "regex",
                        "gt",
                        "gte",
                        "lt",
                        "lte",
                        "semver_gt",
                        "semver_gte",
                        "semver_lt",
                        "semver_lte",
                        "exists"
                      ],
                      "description": "op, string, one of eq, neq, in, not_in, contains, starts_with. Required."
                    },
                    "value": {
                      "description": "value, value. Optional.",
                      "anyOf": [
                        {
                          "type": [
                            "string",
                            "number",
                            "boolean"
                          ]
                        },
                        {
                          "maxItems": 1000,
                          "type": "array",
                          "items": {
                            "type": [
                              "string",
                              "number"
                            ]
                          }
                        }
                      ]
                    }
                  },
                  "required": [
                    "attribute",
                    "op"
                  ],
                  "description": "item, object. Required."
                }
              },
              "rollout": {
                "description": "rollout, number, from 0 to 1. Optional.",
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "serve": {
                "description": "default, string or number or boolean. Required.",
                "type": [
                  "string",
                  "number",
                  "boolean"
                ]
              }
            },
            "required": [
              "id",
              "serve"
            ],
            "description": "item, object. Required."
          },
          "description": "rules, array. Required."
        }
      },
      "required": [
        "key",
        "salt",
        "default",
        "rules"
      ],
      "description": "flag, object. Required."
    },
    "context": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "number"
          },
          {
            "type": "boolean"
          },
          {
            "type": "null"
          },
          {
            "maxItems": 1000,
            "type": "array",
            "items": {
              "type": [
                "string",
                "number"
              ]
            }
          }
        ]
      },
      "description": "context, object. Required."
    }
  },
  "required": [
    "flag",
    "context"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "value": {
      "type": "boolean",
      "description": "value. Boolean."
    },
    "matchedRule": {
      "type": "null",
      "description": "matchedRule. Null."
    },
    "trace": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "rule": {
            "type": "string",
            "description": "rule. String."
          },
          "matched": {
            "type": "boolean",
            "description": "matched. Boolean."
          },
          "failedCondition": {
            "type": "number",
            "description": "failedCondition. Number."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "trace. Array."
    },
    "reason": {
      "type": "string",
      "description": "reason. String."
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "source. String."
          },
          "url": {
            "type": "string",
            "description": "url. String."
          },
          "retrievedAt": {
            "type": "string",
            "description": "retrievedAt. String."
          },
          "status": {
            "type": "string",
            "description": "status. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "sources. Array."
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "item. String."
      },
      "description": "limitations. Array."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {}
}
🟢experimentation_novelty-effect-detect(daily, liftType, earlyDays, alpha)

OLS trend test on daily lift with early-versus-late means, classifying the pattern as novelty, primacy or stable. Docs: https://www.brainiac.software/api/experimentation/novelty-effect-detect Keywords: when designing or analysing an A/B test, daily, liftType, earlyDays, alpha, slopePerDay, slopeSe, pValue, earlyMean, lateMean, pattern, Detect novelty or primacy effects in daily lift, novelty effect detect.

入力スキーマ

{
  "type": "object",
  "properties": {
    "daily": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "day": {
            "type": "number",
            "description": "day, number. Required."
          },
          "lift": {
            "type": "number",
            "description": "lift, number. Required."
          }
        },
        "required": [
          "day",
          "lift"
        ],
        "description": "item, object. Required."
      },
      "description": "daily, array. Required."
    },
    "liftType": {
      "description": "liftType, string, one of relative, absolute. Optional.",
      "type": "string",
      "enum": [
        "relative",
        "absolute"
      ]
    },
    "earlyDays": {
      "description": "earlyDays, integer, from 1 to 9007199254740991. Optional.",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "alpha": {
      "default": 0.05,
      "description": "alpha, number. Required.",
      "type": "number",
      "exclusiveMinimum": 0,
      "exclusiveMaximum": 0.5
    }
  },
  "required": [
    "daily"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "slopePerDay": {
      "type": "number",
      "description": "slopePerDay. Number."
    },
    "slopeSe": {
      "type": "number",
      "description": "slopeSe. Number."
    },
    "t": {
      "type": "number",
      "description": "t. Number."
    },
    "pValue": {
      "type": "number",
      "description": "pValue. Number."
    },
    "earlyMean": {
      "type": "number",
      "description": "earlyMean. Number."
    },
    "lateMean": {
      "type": "number",
      "description": "lateMean. Number."
    },
    "earlyDays": {
      "type": "number",
      "description": "earlyDays. Number."
    },
    "liftType": {
      "type": "string",
      "description": "liftType. String."
    },
    "pattern": {
      "type": "string",
      "description": "pattern. String."
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "source. String."
          },
          "url": {
            "type": "string",
            "description": "url. String."
          },
          "retrievedAt": {
            "type": "string",
            "description": "retrievedAt. String."
          },
          "status": {
            "type": "string",
            "description": "status. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "sources. Array."
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "item. String."
      },
      "description": "limitations. Array."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {}
}
🟢experimentation_segment-lift(segments, minUsersPerArm, alpha)

Per-segment conversion lift with Benjamini-Hochberg adjusted p-values, a Cochran Q heterogeneity test and suppression of small segments. Docs: https://www.brainiac.software/api/experimentation/segment-lift Keywords: when designing or analysing an A/B test, segments, minUsersPerArm, alpha, heterogeneity, suppressed, Measure A/B lift per segment with FDR control, segment lift.

入力スキーマ

{
  "type": "object",
  "properties": {
    "segments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "name, string, length 1 to 64. Required."
          },
          "control": {
            "type": "object",
            "properties": {
              "users": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991,
                "description": "users, integer, from 1 to 9007199254740991. Required."
              },
              "conversions": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991,
                "description": "conversions, integer, from 0 to 9007199254740991. Required."
              }
            },
            "required": [
              "users",
              "conversions"
            ],
            "description": "control, object. Required."
          },
          "treatment": {
            "type": "object",
            "properties": {
              "users": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991,
                "description": "users, integer, from 1 to 9007199254740991. Required."
              },
              "conversions": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991,
                "description": "conversions, integer, from 0 to 9007199254740991. Required."
              }
            },
            "required": [
              "users",
              "conversions"
            ],
            "description": "control, object. Required."
          }
        },
        "required": [
          "name",
          "control",
          "treatment"
        ],
        "description": "item, object. Required."
      },
      "description": "segments, array. Required."
    },
    "minUsersPerArm": {
      "default": 100,
      "description": "minUsersPerArm, integer, from 0 to 9007199254740991. Required.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "alpha": {
      "default": 0.05,
      "description": "alpha, number. Required.",
      "type": "number",
      "exclusiveMinimum": 0,
      "exclusiveMaximum": 0.5
    }
  },
  "required": [
    "segments"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "segments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "name. String."
          },
          "absoluteLift": {
            "type": "number",
            "description": "absoluteLift. Number."
          },
          "ci": {
            "type": "array",
            "items": {
              "type": "number",
              "description": "item. Number."
            },
            "description": "ci. Array."
          },
          "z": {
            "type": "number",
            "description": "z. Number."
          },
          "pValue": {
            "type": "number",
            "description": "pValue. Number."
          },
          "pAdjustedBH": {
            "type": "number",
            "description": "pAdjustedBH. Number."
          },
          "significant": {
            "type": "boolean",
            "description": "significant. Boolean."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "segments. Array."
    },
    "heterogeneity": {
      "type": "object",
      "properties": {
        "pooledLift": {
          "type": "number",
          "description": "pooledLift. Number."
        },
        "Q": {
          "type": "number",
          "description": "Q. Number."
        },
        "df": {
          "type": "number",
          "description": "df. Number."
        },
        "pValue": {
          "type": "number",
          "description": "pValue. Number."
        },
        "I2": {
          "type": "number",
          "description": "I2. Number."
        }
      },
      "additionalProperties": {},
      "description": "heterogeneity. Object."
    },
    "suppressed": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "Item. String."
      },
      "description": "suppressed. Array."
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "source. String."
          },
          "url": {
            "type": "string",
            "description": "url. String."
          },
          "retrievedAt": {
            "type": "string",
            "description": "retrievedAt. String."
          },
          "status": {
            "type": "string",
            "description": "status. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "sources. Array."
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "item. String."
      },
      "description": "limitations. Array."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {}
}
🟢experimentation_guardrail-check(alpha, metrics)

One-sided non-inferiority tests of guardrail metrics against caller-supplied relative or absolute margins, with bounds and an overall pass flag. Docs: https://www.brainiac.software/api/experimentation/guardrail-check Keywords: when designing or analysing an A/B test, metrics, alpha, allPass, Check A/B guardrail metrics for non-inferiority, guardrail check, A/B Testing & Experimentation Statistics, experimentation.

入力スキーマ

{
  "type": "object",
  "properties": {
    "alpha": {
      "default": 0.05,
      "description": "alpha, number. Required.",
      "type": "number",
      "exclusiveMinimum": 0,
      "exclusiveMaximum": 0.5
    },
    "metrics": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "name, string, length 1 to 64. Required."
          },
          "type": {
            "type": "string",
            "enum": [
              "mean",
              "proportion"
            ],
            "description": "type, string, one of mean, proportion. Required."
          },
          "higherIsBetter": {
            "default": true,
            "description": "higherIsBetter, boolean. Required.",
            "type": "boolean"
          },
          "marginType": {
            "type": "string",
            "enum": [
              "relative",
              "absolute"
            ],
            "description": "marginType, string, one of relative, absolute. Required."
          },
          "margin": {
            "type": "number",
            "exclusiveMinimum": 0,
            "description": "margin, number. Required."
          },
          "control": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "users": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  "conversions": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "users",
                  "conversions"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "n": {
                    "type": "integer",
                    "minimum": 2,
                    "maximum": 9007199254740991
                  },
                  "mean": {
                    "type": "number"
                  },
                  "sd": {
                    "type": "number",
                    "minimum": 0
                  }
                },
                "required": [
                  "n",
                  "mean",
                  "sd"
                ]
              }
            ],
            "description": "control, value. Required."
          },
          "treatment": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "users": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  "conversions": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "users",
                  "conversions"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "n": {
                    "type": "integer",
                    "minimum": 2,
                    "maximum": 9007199254740991
                  },
                  "mean": {
                    "type": "number"
                  },
                  "sd": {
                    "type": "number",
                    "minimum": 0
                  }
                },
                "required": [
                  "n",
                  "mean",
                  "sd"
                ]
              }
            ],
            "description": "control, value. Required."
          }
        },
        "required": [
          "name",
          "type",
          "marginType",
          "margin",
          "control",
          "treatment"
        ],
        "description": "item, object. Required."
      },
      "description": "metrics, array. Required."
    }
  },
  "required": [
    "metrics"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "metrics": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "name. String."
          },
          "difference": {
            "type": "number",
            "description": "difference. Number."
          },
          "se": {
            "type": "number",
            "description": "se. Number."
          },
          "margin": {
            "type": "number",
            "description": "margin. Number."
          },
          "z": {
            "type": "number",
            "description": "z. Number."
          },
          "pValue": {
            "type": "number",
            "description": "pValue. Number."
          },
          "upperBound": {
            "type": "number",
            "description": "upperBound. Number."
          },
          "pass": {
            "type": "boolean",
            "description": "pass. Boolean."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "metrics. Array."
    },
    "allPass": {
      "type": "boolean",
      "description": "allPass. Boolean."
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "source. String."
          },
          "url": {
            "type": "string",
            "description": "url. String."
          },
          "retrievedAt": {
            "type": "string",
            "description": "retrievedAt. String."
          },
          "status": {
            "type": "string",
            "description": "status. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "sources. Array."
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "item. String."
      },
      "description": "limitations. Array."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {}
}
🟢experimentation_holdout-impact(metricType, holdout, exposed, exposureRate, alpha)

Exposed-versus-holdout impact with confidence interval and p-value, plus diluted population-level impact for partial exposure. Docs: https://www.brainiac.software/api/experimentation/holdout-impact Keywords: when designing or analysing an A/B test, metricType, holdout, exposed, exposureRate, alpha, absoluteImpact, relativeImpact, pValue, dilutedImpact, dilutedCi, significant, holdout impact.

入力スキーマ

{
  "type": "object",
  "properties": {
    "metricType": {
      "type": "string",
      "enum": [
        "proportion",
        "mean"
      ],
      "description": "metricType, string, one of proportion, mean. Required."
    },
    "holdout": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "users": {
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991
            },
            "conversions": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "users",
            "conversions"
          ]
        },
        {
          "type": "object",
          "properties": {
            "n": {
              "type": "integer",
              "minimum": 2,
              "maximum": 9007199254740991
            },
            "mean": {
              "type": "number"
            },
            "sd": {
              "type": "number",
              "minimum": 0
            }
          },
          "required": [
            "n",
            "mean",
            "sd"
          ]
        }
      ],
      "description": "holdout, value. Required."
    },
    "exposed": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "users": {
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991
            },
            "conversions": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "users",
            "conversions"
          ]
        },
        {
          "type": "object",
          "properties": {
            "n": {
              "type": "integer",
              "minimum": 2,
              "maximum": 9007199254740991
            },
            "mean": {
              "type": "number"
            },
            "sd": {
              "type": "number",
              "minimum": 0
            }
          },
          "required": [
            "n",
            "mean",
            "sd"
          ]
        }
      ],
      "description": "holdout, value. Required."
    },
    "exposureRate": {
      "description": "exposureRate, number, from any to 1. Optional.",
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 1
    },
    "alpha": {
      "default": 0.05,
      "description": "alpha, number. Required.",
      "type": "number",
      "exclusiveMinimum": 0,
      "exclusiveMaximum": 0.5
    }
  },
  "required": [
    "metricType",
    "holdout",
    "exposed"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

出力スキーマ

{
  "type": "object",
  "properties": {
    "absoluteImpact": {
      "type": "number",
      "description": "absoluteImpact. Number."
    },
    "ci": {
      "type": "array",
      "items": {
        "type": "number",
        "description": "item. Number."
      },
      "description": "ci. Array."
    },
    "relativeImpact": {
      "type": "number",
      "description": "relativeImpact. Number."
    },
    "pValue": {
      "type": "number",
      "description": "pValue. Number."
    },
    "dilutedImpact": {
      "type": "number",
      "description": "dilutedImpact. Number."
    },
    "dilutedCi": {
      "type": "array",
      "items": {
        "type": "number",
        "description": "item. Number."
      },
      "description": "dilutedCi. Array."
    },
    "significant": {
      "type": "boolean",
      "description": "significant. Boolean."
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "source. String."
          },
          "url": {
            "type": "string",
            "description": "url. String."
          },
          "retrievedAt": {
            "type": "string",
            "description": "retrievedAt. String."
          },
          "status": {
            "type": "string",
            "description": "status. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "sources. Array."
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "item. String."
      },
      "description": "limitations. Array."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {}
}

コミュニティ

このサーバーを評価する

エビデンス

最近の観測

検証済みバージョンは記録されていませんツール 15 件