Math & Numbers
Run an independent two-sample t test with pooled variance from raw data or summary statistics
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/two-sample-t-test-calculator' \
-H 'Content-Type: application/json' \
-d '{"group1Values":"102, 98, 101, 105, 100","group2Values":"95, 97, 94, 99, 96","group1Mean":0,"group2Mean":0,"group1StandardDeviation":1,"group2StandardDeviation":1,"group1Size":0,"group2Size":0,"hypothesizedDifference":0,"alternative":"two-sided","alpha":0.05,"decimalPlaces":4}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/two-sample-t-test-calculator| Name | Type | Required | Description |
|---|---|---|---|
| group1Values | textarea | No | — |
| group2Values | textarea | No | — |
| group1Mean | number | No | — |
| group2Mean | number | No | — |
| group1StandardDeviation | number | No | — |
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-two-sample-t-test-calculator": {
"name": "two-sample-t-test-calculator",
"description": "Run an independent two-sample t test with pooled variance from raw data or summary statistics",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=two-sample-t-test-calculator",
"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": "two-sample-t-test-calculator",
"arguments": {
"group1Values": "102, 98, 101, 105, 100",
"group2Values": "95, 97, 94, 99, 96",
"group1Mean": 0,
"group2Mean": 0,
"group1StandardDeviation": 1,
"group2StandardDeviation": 1,
"group1Size": 0,
"group2Size": 0,
"hypothesizedDifference": 0,
"alternative": "two-sided",
"alpha": 0.05,
"decimalPlaces": 4
}
}
}| group2StandardDeviation |
| number |
| No |
| — |
| group1Size | number | No | — |
| group2Size | number | No | — |
| hypothesizedDifference | number | No | — |
| alternative | select | No | — |
| alpha | number | No | — |
| decimalPlaces | number | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Questions or issues? Contact [email protected]