Data Analysis
Friedman and Iman-Davenport tests with exact p-values, average ranks, the Nemenyi critical difference and the classic CD diagram with cliques — plus an optional Bonferroni-Dunn overlay against a control model.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/nemenyi-critical-difference-friedman-rank-plotter' \
-H 'Content-Type: application/json' \
-d '{"matrix":"dataset, AdaBoost, SVM, kNN, C4.5\nd1, 0.95, 0.83, 0.76, 0.69\nd2, 0.96, 0.77, 0.84, 0.70\nd3, 0.94, 0.82, 0.75, 0.68\nd4, 0.95, 0.76, 0.83, 0.69\nd5, 0.96, 0.84, 0.77, 0.70\nd6, 0.94, 0.75, 0.82, 0.68\nd7, 0.95, 0.83, 0.76, 0.69\nd8, 0.96, 0.77, 0.84, 0.70\nd9, 0.94, 0.82, 0.75, 0.68\nd10, 0.95, 0.76, 0.83, 0.69\nd11, 0.96, 0.84, 0.77, 0.70\nd12, 0.94, 0.75, 0.82, 0.68","direction":"higher","alpha":"0.05","posthoc":"nemenyi","control":"exact column name of the baseline model"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST http://127.0.0.1:3003/en/api/tools/nemenyi-critical-difference-friedman-rank-plotter| Name | Type | Required | Description |
|---|---|---|---|
| matrix | textarea | Yes | — |
| direction | select | Yes | — |
| alpha | select | Yes | — |
| posthoc | select | Yes | — |
| control | text | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-nemenyi-critical-difference-friedman-rank-plotter": {
"name": "nemenyi-critical-difference-friedman-rank-plotter",
"description": "Friedman and Iman-Davenport tests with exact p-values, average ranks, the Nemenyi critical difference and the classic CD diagram with cliques — plus an optional Bonferroni-Dunn overlay against a control model.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=nemenyi-critical-difference-friedman-rank-plotter",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "nemenyi-critical-difference-friedman-rank-plotter",
"arguments": {
"matrix": "dataset, AdaBoost, SVM, kNN, C4.5\nd1, 0.95, 0.83, 0.76, 0.69\nd2, 0.96, 0.77, 0.84, 0.70\nd3, 0.94, 0.82, 0.75, 0.68\nd4, 0.95, 0.76, 0.83, 0.69\nd5, 0.96, 0.84, 0.77, 0.70\nd6, 0.94, 0.75, 0.82, 0.68\nd7, 0.95, 0.83, 0.76, 0.69\nd8, 0.96, 0.77, 0.84, 0.70\nd9, 0.94, 0.82, 0.75, 0.68\nd10, 0.95, 0.76, 0.83, 0.69\nd11, 0.96, 0.84, 0.77, 0.70\nd12, 0.94, 0.75, 0.82, 0.68",
"direction": "higher",
"alpha": "0.05",
"posthoc": "nemenyi",
"control": "exact column name of the baseline model"
}
}
}Questions or issues? Contact [email protected]