# Bayes theorem visualizer

- Human page: https://happytails.ai/en/calculators/bayes-theorem-visualizer/
- Markdown: https://happytails.ai/en/calculators/bayes-theorem-visualizer.md
- Structured JSON: https://happytails.ai/agents/en/calculators/bayes-theorem-visualizer/index.json
- Visibility: public

## Tool capabilities

| Property | Value |
| --- | --- |
| Tool ID | `bayes-theorem-visualizer` |
| Category | calculators |
| Implementation | Registered implementation. Registration alone is not a production-quality guarantee. |
| Browser execution | Automatic updates after valid input or file selection. |
| Browser processing | Browser; see tool notes for network behavior. |
| HTTP API | Not callable through HTTP. |
| Browser-agent interface | run_current_tool |

### Implementation notes

State a prior and two likelihoods. The tree shows expected frequencies for your reference total; these are not real observations. A zero-probability conditioning event has no defined posterior.

### Inputs and settings

No free-text input is required. Use the file inputs and/or settings below.

| Setting | Meaning | Control type | Default | Constraints |
| --- | --- | --- | --- | --- |
| `prior` | Prior probability of A (%) | number | 10 | min=0 max=100 step=any |
| `likelihood` | Probability of evidence given A (%) | number | 80 | min=0 max=100 step=any |
| `alternative` | Probability of evidence given not A (%) | number | 20 | min=0 max=100 step=any |
| `total` | Reference total for expected counts | number | 1000 | min=1 max=1000000000 step=1 |

### Browser-agent workflow

1. Open the human page in a browser that supports WebMCP.
2. Discover the interface exposed by that page; use its actual schema.
3. Select files on the page first when the tool requires files.
4. Call `run_current_tool` with valid input and settings.
5. Inspect the returned result or error and the displayed output. Retrieve files from the displayed download links.

Calls do not automatically copy or download results. Browser permissions still apply. Interface availability alone is not proof of successful execution.

### Planning specification

Two mutually exclusive, exhaustive hypotheses. Enter probabilities from 0 to 100% and a reference total from 1 to one billion. Counts are expectations, not observations or rounded people. A posterior is undefined when its conditioning event has probability zero. This is a calculation from supplied assumptions, not a diagnosis or inferred likelihood.

This describes intended requirements. Use the implementation notes, interface schema and observed output to determine current support.

### Complete machine-readable capability record

```json
{
  "id": "bayes-theorem-visualizer",
  "category": "calculators",
  "built": true,
  "requirements": "Two mutually exclusive, exhaustive hypotheses. Enter probabilities from 0 to 100% and a reference total from 1 to one billion. Counts are expectations, not observations or rounded people. A posterior is undefined when its conditioning event has probability zero. This is a calculation from supplied assumptions, not a diagnosis or inferred likelihood.",
  "implementation": {
    "fields": [
      {
        "key": "prior",
        "label": "Prior probability of A (%)",
        "value": 10,
        "type": "number",
        "min": 0,
        "max": 100,
        "step": "any"
      },
      {
        "key": "likelihood",
        "label": "Probability of evidence given A (%)",
        "value": 80,
        "type": "number",
        "min": 0,
        "max": 100,
        "step": "any"
      },
      {
        "key": "alternative",
        "label": "Probability of evidence given not A (%)",
        "value": 20,
        "type": "number",
        "min": 0,
        "max": 100,
        "step": "any"
      },
      {
        "key": "total",
        "label": "Reference total for expected counts",
        "value": 1000,
        "type": "number",
        "min": 1,
        "max": 1000000000,
        "step": 1
      }
    ],
    "input": false,
    "live": true,
    "presentation": "metrics",
    "note": "State a prior and two likelihoods. The tree shows expected frequencies for your reference total; these are not real observations. A zero-probability conditioning event has no defined posterior.",
    "experience": {
      "automatic": true,
      "single": false,
      "inputMaxLength": 1000000,
      "inputMode": "text",
      "label": "Your text",
      "placeholder": "Type or paste your input…",
      "help": "Change the input or settings to update your result. Results update as you type. Up to 1,000,000 characters.",
      "action": null
    },
    "mode": "automatic",
    "interactive": false
  },
  "execution": "Browser interface",
  "api": null,
  "browser_agent": {
    "supported": true,
    "name": "run_current_tool",
    "discovery": "WebMCP on the human page in a supporting browser",
    "verification": "See audit/API-AUDIT.md; availability is not verification"
  }
}
```

## Page guide

Update a prior from stated likelihoods and see every branch of the expected-frequency tree.

How can we improve this tool?

Report a problem or share an idea.

Please leave out private information. Your message and the tool name go to our team via PostHog.

### How to use Bayes theorem visualizer

1. Enter the prior probability and the likelihood of the evidence under each hypothesis.
2. Choose a reference total to see expected frequencies.
3. Read the evidence denominator before using the posterior, and download the full tree.

## Useful next steps

- [Probability calculator](https://happytails.ai/en/calculators/probability-calculator/) ([Markdown](https://happytails.ai/en/calculators/probability-calculator.md))

- [Empirical distribution viewer](https://happytails.ai/en/calculators/empirical-distribution-viewer/) ([Markdown](https://happytails.ai/en/calculators/empirical-distribution-viewer.md))

## Read the model

Update a prior from stated likelihoods and see every branch of the expected-frequency tree.

### Check the definition

Two mutually exclusive, exhaustive hypotheses. Enter probabilities from 0 to 100% and a reference total from 1 to one billion. Counts are expectations, not observations or rounded people. A posterior is undefined when its conditioning event has probability zero. This is a calculation from supplied assumptions, not a diagnosis or inferred likelihood.

### Keep the calculation

Download SVG for the chart, JSON for unrounded values, CSV for the table and the assumptions note. Your input stays on your device.
