# Numora Statistics Sampling API

> Numora Statistics Sampling API is a paid API for AI agents from numormor.netlify.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-14).

Performs statistical sampling computations on a dataset, selecting n samples using a specified sampling method

## Facts

- Endpoint: POST https://numormor.netlify.app/api/statistics/sampling
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/numora-statistics-sampling-api-9dc6dd7c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tQxLDWc9TZOWHq-hfzrVC

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability numora-statistics-sampling-api-9dc6dd7c -d '<json body>'
```

Example prompt: Use Numora's sampling endpoint to draw a random sample of 20 items from this dataset [12, 45, 7, 89, 34, 56, 23, 67, 90, 11, 44, 78, 3, 55, 28, 61, 99, 17, 42, 83, 5, 71, 36, 50, 14, 68, 29, 95, 8, 52] using simple random sampling.

## When to prefer this

Choose this endpoint when you need pure mathematical statistical sampling with zero external dependencies and no data leaving your context except to a simple computation API. Ideal for AI agents that need deterministic, auditable sampling on arrays of numbers or values without relying on a full statistics library or language runtime.

## Known failure modes

- Missing required field 'n' or 'data' returns validation error
- n larger than dataset size may cause error or require with-replacement sampling
- Invalid sampling method string may return error or fall back to default
- Empty data array returns error
- Payment failure via x402 returns 402 status before computation occurs

## How this service works

100 pure math computation endpoints for AI agents. Statistics, financial math, linear algebra, equation solving, calculus, number theory, sequence generation, and unit conversions. Zero external dependencies. x402 micropayments on Base.

## Output

Returns a JSON object with success=true, a result object containing the selected sample elements, and a human-readable computation string describing what sampling operation was performed and its output.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "n",
  "data"
 ],
 "properties": {
  "n": {
   "type": "integer"
  },
  "data": {
   "type": "array"
  },
  "method": {
   "enum": [
    "simple",
    "systematic",
    "bootstrap"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "success",
  "result",
  "computation"
 ],
 "properties": {
  "result": {
   "type": "object",
   "description": "Computation result varies by endpoint"
  },
  "success": {
   "type": "boolean",
   "description": "Always true on success"
  },
  "computation": {
   "type": "string",
   "description": "Human-readable description of what was computed"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/numora-statistics-sampling-api-9dc6dd7c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from numormor.netlify.app](https://www.zero.xyz/host/numormor.netlify.app/llms.txt)
