Math & Numbers
Estime la puissance statistique de tests a un echantillon pour moyenne ou proportion avec taille dechantillon, alpha et effet attendu
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/api/tools/statistical-power-calculator' \
-H 'Content-Type: application/json' \
-d '{"testType":"mean","alternative":"two-sided","alpha":0.05,"sampleSize":64,"nullMean":100,"alternativeMean":105,"standardDeviation":15,"nullProportion":0.5,"alternativeProportion":0.6,"decimalPlaces":4}'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/statistical-power-calculator| Nom | Type | Requis | Description |
|---|---|---|---|
| testType | select | Non | — |
| alternative | select | Non | — |
| alpha | number | Non | — |
| sampleSize | number | Non | — |
| nullMean | number | Non | — |
| alternativeMean |
Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-statistical-power-calculator": {
"name": "statistical-power-calculator",
"description": "Estime la puissance statistique de tests a un echantillon pour moyenne ou proportion avec taille dechantillon, alpha et effet attendu",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=statistical-power-calculator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "statistical-power-calculator",
"arguments": {
"testType": "mean",
"alternative": "two-sided",
"alpha": 0.05,
"sampleSize": 64,
"nullMean": 100,
"alternativeMean": 105,
"standardDeviation": 15,
"nullProportion": 0.5,
"alternativeProportion": 0.6,
"decimalPlaces": 4
}
}
}| number |
| Non |
| — |
| standardDeviation | number | Non | — |
| nullProportion | number | Non | — |
| alternativeProportion | number | Non | — |
| decimalPlaces | number | Non | — |
Résultat JSON
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Des questions ou un problème ? Contactez [email protected]