# medeval: Stats for LLM Medical Question Evals

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

medeval: Stats for LLM Medical Question Evals is a free AI agent skill on Agensi by Mohamed Basuny, in Research & Analysis. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Mohamed Basuny](https://www.agensi.io/creators/mohamed-basuny)
- Category: [Research & Analysis](https://www.agensi.io/skills/research-analysis)
- Version: 1.1
- Last updated: 2026-12-03
- Security: scan passed (2026-12-03); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/medeval-stats-for-llm-medical-question-evals
- Tags: research, medical-eval, statistics, testing

## 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: "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: "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: "Check if my medical question file is formatted correctly."

## 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.

## Requires

- Python
- Git

## Known limitations

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

## Technical details

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the medeval: Stats for LLM Medical Question Evals skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Why should I use this skill instead of just looking at an AI's accuracy score?

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.

### What do I need to provide to start a medical AI evaluation?

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.

### What kind of results does the report show?

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.

### Can I use these reports to prove an AI is safe for clinical use?

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.

### How do I tell my AI agent to begin the evaluation process?

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.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
