- Home
- Skills
- Research & Analysis
- medeval: Stats for LLM Medical Question Evals
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.
Free
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.
| Model | Questions | Correct | Accuracy | 95% CI (Wilson) |
|---|---|---|---|---|
| simulated:0.8 | 24 | 19 | 79.2% | 59.5% to 90.8% |
| random:1 | 24 | 10 | 41.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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
Python
Git
Permissions
What's inside
Creator
Mohamed Basuny
Frequently Asked Questions
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.