# Saylor Innovations Data Desk – Bayesian Diagnostic Test Calculator

> Saylor Innovations Data Desk – Bayesian Diagnostic Test Calculator is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-21).

Calculates positive/negative predictive values, likelihood ratios, false discovery rate, and a confusion matrix for a diagnostic test given prevalence, sensitivity, and specificity

## Facts

- Endpoint: GET https://saylorinnovations.com/api/stats/bayes?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-data-desk-bayesian-diagnostic-test-calculator-8d8c9a27
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8K4XwQnAq8tRZBAFFeQym

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability saylor-innovations-data-desk-bayesian-diagnostic-test-calculator-8d8c9a27
```

Example prompt: Run a Bayes diagnostic calculator for a test with 5% prevalence, 90% sensitivity, and 95% specificity — I want the positive and negative predictive values, likelihood ratios, and false discovery rate.

## When to prefer this

Choose this endpoint when you need fast, structured Bayesian diagnostic test statistics — PPV, NPV, likelihood ratios, and confusion matrix — given known prevalence, sensitivity, and specificity. It is ideal for medical informatics, epidemiology agents, clinical decision support, or any workflow evaluating the real-world accuracy of a binary diagnostic test. Prefer it over generic statistics libraries when you need a single API call with plain-language output included.

## Known failure modes

- Missing required query parameters (prevalence_percent, sensitivity_percent, specificity_percent) returns an error
- Values outside valid range (e.g. >100 or negative percentages) may return validation errors or null fields
- Extreme edge cases (0% prevalence or 100% specificity) may produce undefined likelihood ratios
- Non-numeric string values for percent fields will cause parsing failures

## How this service works

Bayes calculator for a diagnostic test - positive and negative predictive value, likelihood ratios and a confusion matrix from prevalence, sensitivity and specificity

## Output

Returns a JSON object with validated inputs, positive predictive value (percent), negative predictive value (percent), positive and negative likelihood ratios, false discovery rate (percent), a confusion matrix showing true/false positives and negatives, a plain-language summary, and optional notes providing clinical context.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "prevalence_percent",
      "sensitivity_percent",
      "specificity_percent"
     ],
     "properties": {
      "prevalence_percent": {
       "type": "string",
       "description": "How common the condition is, percent"
      },
      "sensitivity_percent": {
       "type": "string",
       "description": "True positive rate, percent"
      },
      "specificity_percent": {
       "type": "string",
       "description": "True negative rate, percent"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "inputs",
      "positive_predictive_value_percent"
     ],
     "properties": {
      "note": {
       "type": "string",
       "description": "Caveat or context for reading the result"
      },
      "inputs": {
       "type": "object",
       "properties": {
        "population": {
         "type": [
          "number",
          "null"
         ],
         "description": "Population size used for the confusion matrix"
        },
        "prevalence_percent": {
         "type": [
          "number",
          "null"
         ],
         "description": "Prevalence, as a percentage"
        },
        "sensitivity_percent": {
         "type": [
          "number",
          "null"
         ],
         "description": "Sensitivity, as a percentage"
        },
        "specificity_percent": {
         "type": [
          "number",
          "null"
         ],
         "description": "Specificity, as a percentage"
        }
       },
       "description": "Inputs after validation, as percentages and the population size"
      },
      "source": {
       "type": "string",
       "description": "Data source the values come from"
      },
      "plain_language": {
       "type": [
        "string",
        "null"
       ],
       "description": "Plain language"
      },
      "confusion_matrix": {
    
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-data-desk-bayesian-diagnostic-test-calculator-8d8c9a27/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
