# SignalDesk AI Weighted Mean Calculator

> SignalDesk AI Weighted Mean Calculator is a paid API for AI agents from x402-agent.kariguetoazul.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-13).

Computes the weighted mean of a list of numeric observations given corresponding non-negative weights

## Facts

- Endpoint: POST https://x402-agent.kariguetoazul.workers.dev/api/stats/weighted-mean?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signaldesk-ai-weighted-mean-calculator-baa33d63
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rqUALc6aV7FPxzK7FstuY

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 signaldesk-ai-weighted-mean-calculator-baa33d63 -d '<json body>'
```

Example prompt: Calculate the weighted mean of these values [10, 20, 30] with weights [1, 2, 3] — so more weight on the higher numbers.

## When to prefer this

Choose this endpoint when you need a simple, fast, paid-per-call weighted mean computation without setting up your own math library or data pipeline. It is ideal for lightweight agent workflows that already use x402 micropayments and need bounded, stateless numerical aggregation at $0.001 per call. Prefer alternatives if you need full descriptive statistics suites, variance/std-dev alongside the mean, or free unlimited computation.

## Known failure modes

- Mismatched array lengths between values and weights returns an error
- Empty values or weights arrays are rejected (minItems: 1)
- Values or weights exceeding 1e15 in magnitude are rejected
- Non-numeric or negative weight values are rejected
- More than 1000 items in either array returns a validation error

## How this service works

Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.

## Output

Returns a JSON object with a single field 'mean' containing the computed weighted mean as a number (e.g. {"mean": 17.5}).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "values": {
   "type": "array",
   "items": {
    "type": "number",
    "maximum": 1000000000000000,
    "minimum": -1000000000000000
   },
   "maxItems": 1000,
   "minItems": 1,
   "description": "Up to 1000 finite observations."
  },
  "weights": {
   "type": "array",
   "items": {
    "type": "number",
    "maximum": 1000000000000000,
    "minimum": 0,
    "description": "Weight."
   },
   "maxItems": 1000,
   "minItems": 1,
   "description": "Non-negative weights."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mean": 17.5
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signaldesk-ai-weighted-mean-calculator-baa33d63/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent.kariguetoazul.workers.dev](https://www.zero.xyz/host/x402-agent.kariguetoazul.workers.dev/llms.txt)
