{
  "title": "Probability calculator",
  "human_url": "https://happytails.ai/en/calculators/probability-calculator/",
  "agent_url": "https://happytails.ai/agents/en/calculators/probability-calculator/",
  "language": "en",
  "markdown_url": "https://happytails.ai/en/calculators/probability-calculator.md",
  "content": "Probability calculator\nCalculate intersections, unions, complements and conditional probabilities for two events.\nHow can we improve this tool?\nReport a problem or share an idea.\nPlease leave out private information. Your message and the tool name go to our team via PostHog.\nHow to use Probability calculator\nEnter the observations or summary values.\nChoose the method and check its assumptions.\nReview the result and download the calculation.\nUseful next steps\nMultiple testing correction\nPooled summary statistics\nChoose the model before reading the result\nCalculate intersections, unions, complements and conditional probabilities for two events.\nCheck the assumptions\nEnter probabilities from 0 to 100%. The supplied intersection must satisfy the Fréchet bounds. Independence is used only when explicitly selected. Conditional probabilities with a zero denominator are undefined, not zero.\nKeep the calculation\nDownload the JSON for unrounded results and settings, CSV for the table, and the separate assumptions note. The calculation runs in your browser.",
  "content_format": "text/plain",
  "visibility": "public",
  "links": [
    {
      "name": "Multiple testing correction",
      "url": "https://happytails.ai/en/calculators/multiple-testing-correction/"
    },
    {
      "name": "Pooled summary statistics",
      "url": "https://happytails.ai/en/calculators/pooled-summary-statistics/"
    }
  ],
  "tool": {
    "id": "probability-calculator",
    "category": "calculators",
    "built": true,
    "requirements": "Enter probabilities from 0 to 100%. The supplied intersection must satisfy the Fréchet bounds. Independence is used only when explicitly selected. Conditional probabilities with a zero denominator are undefined, not zero.",
    "implementation": {
      "fields": [
        {
          "key": "a",
          "label": "Probability of A (%)",
          "value": 30,
          "type": "number",
          "min": 0,
          "max": 100,
          "step": "any"
        },
        {
          "key": "b",
          "label": "Probability of B (%)",
          "value": 40,
          "type": "number",
          "min": 0,
          "max": 100,
          "step": "any"
        },
        {
          "key": "method",
          "label": "Relationship between events",
          "value": "Assume independence",
          "type": "select",
          "values": [
            "Assume independence",
            "Supply intersection"
          ]
        },
        {
          "key": "intersection",
          "label": "Probability of both A and B (%)",
          "value": 12,
          "type": "number",
          "min": 0,
          "max": 100,
          "step": "any",
          "showWhen": {
            "method": [
              "Supply intersection"
            ]
          }
        }
      ],
      "note": "Calculate complements, unions, intersections and conditional probabilities. Independence is an explicit assumption. A conditional probability is undefined if its conditioning event has probability zero.",
      "input": false,
      "live": true,
      "presentation": "metrics",
      "background": false,
      "inputMaxLength": 1000000,
      "inputErrorCode": "STAT_SIZE",
      "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"
    }
  },
  "markdown": "# Probability calculator\n\n- Human page: https://happytails.ai/en/calculators/probability-calculator/\n- Markdown: https://happytails.ai/en/calculators/probability-calculator.md\n- Structured JSON: https://happytails.ai/agents/en/calculators/probability-calculator/index.json\n- Visibility: public\n\n## Tool capabilities\n\n| Property | Value |\n| --- | --- |\n| Tool ID | `probability-calculator` |\n| Category | calculators |\n| Implementation | Registered implementation. Registration alone is not a production-quality guarantee. |\n| Browser execution | Automatic updates after valid input or file selection. |\n| Browser processing | Browser; see tool notes for network behavior. |\n| HTTP API | Not callable through HTTP. |\n| Browser-agent interface | run_current_tool |\n\n### Implementation notes\n\nCalculate complements, unions, intersections and conditional probabilities. Independence is an explicit assumption. A conditional probability is undefined if its conditioning event has probability zero.\n\n### Inputs and settings\n\nNo free-text input is required. Use the file inputs and/or settings below.\n\n| Setting | Meaning | Control type | Default | Constraints |\n| --- | --- | --- | --- | --- |\n| `a` | Probability of A (%) | number | 30 | min=0 max=100 step=any |\n| `b` | Probability of B (%) | number | 40 | min=0 max=100 step=any |\n| `method` | Relationship between events | select | \"Assume independence\" | Allowed: Assume independence, Supply intersection |\n| `intersection` | Probability of both A and B (%) | number | 12 | min=0 max=100 step=any |\n\n### Browser-agent workflow\n\n1. Open the human page in a browser that supports WebMCP.\n2. Discover the interface exposed by that page; use its actual schema.\n3. Select files on the page first when the tool requires files.\n4. Call `run_current_tool` with valid input and settings.\n5. Inspect the returned result or error and the displayed output. Retrieve files from the displayed download links.\n\nCalls do not automatically copy or download results. Browser permissions still apply. Interface availability alone is not proof of successful execution.\n\n### Planning specification\n\nEnter probabilities from 0 to 100%. The supplied intersection must satisfy the Fréchet bounds. Independence is used only when explicitly selected. Conditional probabilities with a zero denominator are undefined, not zero.\n\nThis describes intended requirements. Use the implementation notes, interface schema and observed output to determine current support.\n\n### Complete machine-readable capability record\n\n```json\n{\n  \"id\": \"probability-calculator\",\n  \"category\": \"calculators\",\n  \"built\": true,\n  \"requirements\": \"Enter probabilities from 0 to 100%. The supplied intersection must satisfy the Fréchet bounds. Independence is used only when explicitly selected. Conditional probabilities with a zero denominator are undefined, not zero.\",\n  \"implementation\": {\n    \"fields\": [\n      {\n        \"key\": \"a\",\n        \"label\": \"Probability of A (%)\",\n        \"value\": 30,\n        \"type\": \"number\",\n        \"min\": 0,\n        \"max\": 100,\n        \"step\": \"any\"\n      },\n      {\n        \"key\": \"b\",\n        \"label\": \"Probability of B (%)\",\n        \"value\": 40,\n        \"type\": \"number\",\n        \"min\": 0,\n        \"max\": 100,\n        \"step\": \"any\"\n      },\n      {\n        \"key\": \"method\",\n        \"label\": \"Relationship between events\",\n        \"value\": \"Assume independence\",\n        \"type\": \"select\",\n        \"values\": [\n          \"Assume independence\",\n          \"Supply intersection\"\n        ]\n      },\n      {\n        \"key\": \"intersection\",\n        \"label\": \"Probability of both A and B (%)\",\n        \"value\": 12,\n        \"type\": \"number\",\n        \"min\": 0,\n        \"max\": 100,\n        \"step\": \"any\",\n        \"showWhen\": {\n          \"method\": [\n            \"Supply intersection\"\n          ]\n        }\n      }\n    ],\n    \"note\": \"Calculate complements, unions, intersections and conditional probabilities. Independence is an explicit assumption. A conditional probability is undefined if its conditioning event has probability zero.\",\n    \"input\": false,\n    \"live\": true,\n    \"presentation\": \"metrics\",\n    \"background\": false,\n    \"inputMaxLength\": 1000000,\n    \"inputErrorCode\": \"STAT_SIZE\",\n    \"experience\": {\n      \"automatic\": true,\n      \"single\": false,\n      \"inputMaxLength\": 1000000,\n      \"inputMode\": \"text\",\n      \"label\": \"Your text\",\n      \"placeholder\": \"Type or paste your input…\",\n      \"help\": \"Change the input or settings to update your result. Results update as you type. Up to 1,000,000 characters.\",\n      \"action\": null\n    },\n    \"mode\": \"automatic\",\n    \"interactive\": false\n  },\n  \"execution\": \"Browser interface\",\n  \"api\": null,\n  \"browser_agent\": {\n    \"supported\": true,\n    \"name\": \"run_current_tool\",\n    \"discovery\": \"WebMCP on the human page in a supporting browser\",\n    \"verification\": \"See audit/API-AUDIT.md; availability is not verification\"\n  }\n}\n```\n\n## Page guide\n\nCalculate intersections, unions, complements and conditional probabilities for two events.\n\nHow can we improve this tool?\n\nReport a problem or share an idea.\n\nPlease leave out private information. Your message and the tool name go to our team via PostHog.\n\n### How to use Probability calculator\n\n1. Enter the observations or summary values.\n2. Choose the method and check its assumptions.\n3. Review the result and download the calculation.\n\n## Useful next steps\n\n- [Multiple testing correction](https://happytails.ai/en/calculators/multiple-testing-correction/) ([Markdown](https://happytails.ai/en/calculators/multiple-testing-correction.md))\n\n- [Pooled summary statistics](https://happytails.ai/en/calculators/pooled-summary-statistics/) ([Markdown](https://happytails.ai/en/calculators/pooled-summary-statistics.md))\n\n## Choose the model before reading the result\n\nCalculate intersections, unions, complements and conditional probabilities for two events.\n\n### Check the assumptions\n\nEnter probabilities from 0 to 100%. The supplied intersection must satisfy the Fréchet bounds. Independence is used only when explicitly selected. Conditional probabilities with a zero denominator are undefined, not zero.\n\n### Keep the calculation\n\nDownload the JSON for unrounded results and settings, CSV for the table, and the separate assumptions note. The calculation runs in your browser.\n"
}