{"slug":"saylorinnovations-com-api-stats-bayes-7405fc","title":"Bayes calculator for a diagnostic test","host":"saylorinnovations.com","method":"GET","resource":"https://saylorinnovations.com/api/stats/bayes","category":"other","description":"Bayes calculator for a diagnostic test - positive and negative predictive value, likelihood ratios and a confusion matrix from prevalence, sensitivity and specificity","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":281,"reported_calls_30d":0,"reported_payers_30d":0,"networks":["eip155:137","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"prevalence_percent":"1","sensitivity_percent":"95","specificity_percent":"90"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"prevalence_percent":{"description":"How common the condition is, percent","type":"string"},"sensitivity_percent":{"description":"True positive rate, percent","type":"string"},"specificity_percent":{"description":"True negative rate, percent","type":"string"}},"required":["prevalence_percent","sensitivity_percent","specificity_percent"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"confusion_matrix":{"description":"Confusion matrix","type":"object"},"false_discovery_percent":{"description":"False discovery, as a percentage","type":["number","null"]},"inputs":{"description":"Inputs after validation, as percentages and the population size","properties":{"population":{"description":"Population size used for the confusion matrix","type":["number","null"]},"prevalence_percent":{"description":"Prevalence, as a percentage","type":["number","null"]},"sensitivity_percent":{"description":"Sensitivity, as a percentage","type":["number","null"]},"specificity_percent":{"description":"Specificity, as a percentage","type":["number","null"]}},"type":"object"},"negative_likelihood_ratio":{"description":"Negative likelihood ratio","type":["number","null"]},"negative_predictive_value_percent":{"description":"Negative predictive value, as a percentage","type":["number","null"]},"note":{"description":"Caveat or context for reading the result","type":"string"},"plain_language":{"description":"Plain language","type":["string","null"]},"positive_likelihood_ratio":{"description":"Positive likelihood ratio","type":["number","null"]},"positive_predictive_value_percent":{"description":"Positive predictive value, as a percentage","type":["number","null"]},"probability_disease_given_negative_percent":{"description":"Probability disease given negative, as a percentage","type":["number","null"]},"probability_of_positive_test_percent":{"description":"Probability of positive test, as a percentage","type":"number"},"source":{"description":"Data source the values come from","type":"string"}},"required":["inputs","positive_predictive_value_percent"],"type":"object"},"type":{"const":"json","type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":281,"error":null}],"description_full":"Bayes calculator for a diagnostic test - positive and negative predictive value, likelihood ratios and a confusion matrix from prevalence, sensitivity and specificity","last_updated":"2026-10-20T14:51:40.097Z","schemes":["exact"]}