medeval: Stats for LLM Medical Question Evals

    by Mohamed Basuny

    1

    Evaluate LLM answers on medical question sets with confidence intervals, paired significance tests and inter-rater agreement, not just a bare accuracy number.

    Free

    Security scanned

    Works with the AI Agents you already use

    What it does

    • Validates medical question files to ensure they are ready for testing
    • Calculates accuracy with confidence intervals to show result reliability
    • Compares two AI models using exact statistical tests to find significant differences
    • Breaks down performance by medical specialty and difficulty level
    • Measures how often two different raters or models agree on the same questions
    • Resumes long tests from checkpoints so no progress is lost if a run stops

    Who it's for

    Medical researchers testing AI models

    Get statistically sound reports on how different AI models handle medical exams.

    Try asking: “Compare model A and model B on my medical exam dataset and show the p-value.”

    Healthcare tech founders building clinical apps

    Prove your AI performance with confidence intervals and specialty breakdowns.

    Try asking: “Run a report on these model results for the anatomy specialty questions.”

    Educators creating medical exams for AI training

    Check for errors in your question files and measure how often raters agree.

    Try asking: “Check if my medical question file is formatted correctly.”

    medeval: Stats for LLM Medical Question Evals

    Example session with this skill installed

    Compare the results from run_a.json and run_b.json on my medical questions and tell me if the difference is significant.

    • Read your context and instructions
    • Compiled the medeval

    Summary

    Compared a simulated model (80% chance of knowing each answer) against a random guesser on the bundled 24-question demo set.

    ModelQuestionsCorrectAccuracy95% CI (Wilson)
    simulated:0.8241979.2%59.5% to 90.8%
    random:1241041.7%not shown here
    • Both correct: 9, both wrong: 4, only A correct: 10, only B correct: 1
    • Exact McNemar p-value: 0.0117 (significant at 0.05)
    • Percent agreement 37.5%, Cohen's kappa 0.113 (slight)

    Next steps

    • 24 questions is too few to rank real models. Use a larger set.
    • Have a clinician review the medical content of any dataset before relying on it.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Medical test sets are small, so "model A scored 82%, model B scored 79%" tells you almost nothing. This skill teaches your agent to run medeval, a dependency-free Python toolkit, and report results you can defend:

    • 95% confidence intervals on every accuracy (Wilson, or bootstrap on request)
    • Paired comparison of two models with an exact McNemar test on the questions both answered
    • Breakdown by specialty and difficulty, with the missed questions listed
    • Cohen's kappa (plain or weighted) between two models or a model and a human rater
    • Resumable, concurrent runs, plus a transparent weighted-checklist rubric scorer for free-text answers

    Zero dependencies, strict typing, 144 tests, Python 3.10+. Open source under the MIT license (on GitHub as mobasunyayed-cell/medeval).

    Research and evaluation tooling only. It is not a medical device and says nothing about clinical safety.

    This is for research only and is not a medical device. Small datasets are not enough to rank real-world models.

    This skill uses the medeval Python package (MIT license) to process JSONL datasets. It supports McNemar paired tests, Cohen's kappa for agreement, and Wilson or bootstrap confidence intervals. It can run models via the Anthropic API (requires user API key) or use replay files for answers collected elsewhere. Results are saved as JSON files for reporting and comparison.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 1 day ago

    • Free with an Agensi account

    Software
    PythonGit

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Network Access
    Environment Variables
    Listed1 day ago

    What's inside

    Creator

    M

    Mohamed Basuny

    Frequently Asked Questions

    This skill helps you move beyond basic percentage scores when testing AI on medical questions. It uses statistical tests to tell you if one AI model is truly better than another or if the difference in their scores happened by chance.

    You need a file of medical multiple-choice questions in a specific text format where each line is a JSON object. This file should include the question, the possible options, the correct answer, and the medical specialty.

    You will receive a detailed report that includes accuracy percentages along with 95% confidence intervals and specialty-by-specialty results. If you compare two models, the report will include a specific statistical value called a p-value to show if the performance gap is significant.

    This skill is for research and evaluation only and is not a medical device. It measures how well an AI answers questions but does not measure clinical safety or actual clinical competence.

    You can start by asking your AI agent to check your question list for errors using the validate command. Once validated, you can tell the agent to run a specific model against those questions and then request a report with statistical confidence levels.

    New in Research & Analysis

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Research & Analysis.

    Free