Overview
- Category
- Math
- API mode
not_available- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/p-value-calculator
Execute availability
This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.
POST /api/v1/tools/p-value-calculator/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
z_score· number · required- Enter the z test statistic used by this tool.
tail· string · required-
Enter the test tail used by this tool. Accepted values:
left, right, two_tailed. significance_level· number · required- Enter the significance level used by this tool.
{
"type": "object",
"properties": {
"z_score": {
"type": "number",
"description": "Enter the z test statistic used by this tool."
},
"tail": {
"type": "string",
"description": "Enter the test tail used by this tool.",
"enum": [
"left",
"right",
"two_tailed"
]
},
"significance_level": {
"type": "number",
"description": "Enter the significance level used by this tool."
}
},
"required": [
"z_score",
"tail",
"significance_level"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
p_value· number- p-value produced by the tool.
p_value_percent· number- p-value percentage produced by the tool.
decision· string- Significance decision produced by the tool.
left_tail· number- Left-tail probability produced by the tool.
right_tail· number- Right-tail probability produced by the tool.
{
"type": "object",
"properties": {
"p_value": {
"type": "number",
"description": "p-value produced by the tool."
},
"p_value_percent": {
"type": "number",
"description": "p-value percentage produced by the tool."
},
"decision": {
"type": "string",
"description": "Significance decision produced by the tool."
},
"left_tail": {
"type": "number",
"description": "Left-tail probability produced by the tool."
},
"right_tail": {
"type": "number",
"description": "Right-tail probability produced by the tool."
}
},
"additionalProperties": false
}
P-value Calculator example
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/p-value-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"z_score": 2.149999999999999911182158029987476766109466552734375,
"tail": "two_tailed",
"significance_level": 5
}'
{
"ok": true,
"data": {
"slug": "p-value-calculator",
"result": {
"values": {
"p_value": 0.03155510261799999993659326946726650930941104888916015625,
"p_value_percent": 3.155510261799999938148175715468823909759521484375,
"decision": "Statistically significant at α = 0.05",
"left_tail": 0.98422244869099995145944603791576810181140899658203125,
"right_tail": 0.015777551308999999968296634733633254654705524444580078125
},
"display": {
"display": "0.031555102618"
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.