probability.bayes
Computes posterior probability P(A|B) from prior, likelihood, and non-zero marginal values using Bayes' theorem with 50-digit decimal precision for statistical and financial analysis.
Instructions
베이즈 정리로 사후확률 P(A|B) = P(A)P(B|A)/P(B)를 구한다. prior, likelihood, marginal 은 [0, 1] 구간 십진 문자열이고 marginal 은 0 이 될 수 없으며 Decimal 50자리 정밀도로 계산한다. 입력 간 정합성(P(B) ≥ P(A)P(B|A))은 검사하지 않으므로 marginal 은 전체 확률 법칙으로 먼저 구해야 한다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prior | Yes | ||
| marginal | Yes | ||
| likelihood | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| trace | Yes | 계산 근거(tool, formula, inputs, steps, output) | |
| posterior | Yes |