Request
POST /api/distribution/normal
{
"mean": 100,
"stdDev": 15,
"samples": 1000
}
{
"mean": 100,
"stdDev": 15,
"samples": 1000
}
Response
{
"success": true,
"distribution": {
"min": 62.34,
"max": 137.86,
"mean": 99.84,
"stdDev": 14.92
}
}
"success": true,
"distribution": {
"min": 62.34,
"max": 137.86,
"mean": 99.84,
"stdDev": 14.92
}
}
API Overview
hwaklyul provides statistically rigorous probability calculations with financial-grade precision. Each endpoint returns validated results with confidence metrics and execution timing.
Uptime
99.99%
Authentication
All API requests require Bearer token authentication. Include your token in the Authorization header:
Authorization: Bearer sk_live_1a2b3c4d5e6f7g8h9i0j
Rate Limiting
Standard tier accounts are limited to 10,000 requests per minute. Each response includes rate limit headers:
X-RateLimit-Remaining: 9847
X-RateLimit-Reset: 1682592000
X-RateLimit-Reset: 1682592000
Error Handling
The API returns standard HTTP status codes and detailed error messages:
{
"error": {
"code": "INVALID_PARAMETER",
"message": "Parameter 'mean' must be a number"
}
}
"error": {
"code": "INVALID_PARAMETER",
"message": "Parameter 'mean' must be a number"
}
}
Endpoint Reference
POST
/api/distribution/normal
Generate samples from a normal distribution with specified mean and standard deviation.
mean
number
Mean of the distribution
stdDev
number
Standard deviation
samples
integer
Number of samples to generate
POST
/api/distribution/uniform
Generate samples from a uniform distribution between specified bounds.
min
number
Lower bound
max
number
Upper bound
samples
integer
Number of samples to generate
POST
/api/test/ttest
Perform an independent samples t-test comparing two groups.
group1
array
First sample array
group2
array
Second sample array
alpha
number
Significance level (default: 0.05)