# Return on Average Assets – Weighted Mean Calculator

> Return on Average Assets – Weighted Mean Calculator is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-15).

Calculates a weighted mean of Return on Average Assets (ROAA) across up to 200 supplied data rows using user-provided nonnegative weights.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-return-assets-weighted-mean?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/return-on-average-assets-weighted-mean-calculator-a8a07005
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_twVQNIgsS9w9zyyUlqeTg

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 return-on-average-assets-weighted-mean-calculator-a8a07005 -d '<json body>'
```

Example prompt: Calculate the weighted mean return on average assets for these 4 periods: net incomes of 3000, 3300, 2800, 3100 with average assets of 40000, 44000, 38000, 42000 — use weights of 1, 2, 1, 3 to give more importance to the recent quarters.

## When to prefer this

Choose this endpoint when you need a statistically weighted mean of ROAA across multiple discrete observations (periods, entities, or scenarios) and want to assign custom importance weights to each row. It is not a pooled accounting ratio and does not fetch live financial data — use it when you already have net income and average assets figures and need a weighted aggregation with formula and units returned in a structured JSON report.

## Known failure modes

- Fewer than 2 rows supplied — minimum of 2 rows required
- More than 200 rows supplied — exceeds maximum item limit
- average_assets value of zero or negative — field requires exclusive minimum > 0
- Weights array length does not match rows array length — mismatch causes validation error
- Net income or average assets outside allowed range of ±1 trillion — values rejected
- Negative weight supplied — weights must be nonnegative
- Payment not included or insufficient — x402 payment of 0.01 USDC required per call

## How this service works

Return on average assets - Weighted result mean: Calculate a mean of up to 200 results using supplied nonnegative weights; not a pooled accounting ratio. Metric: Return on average assets. Supplied figures only; returns JSON with formula, units and limitations. One of 50 calculators with 20 analysis modes. No live feed, financial advice or trade execution. 0.01 USDC includes one bounded weighted result mean report.

## Output

A JSON object containing the weighted mean ROAA value computed from the supplied rows, along with the formula used, units, and a limitations notice clarifying this is a statistical weighted mean rather than a pooled accounting ratio.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "net_income",
     "average_assets"
    ],
    "properties": {
     "net_income": {
      "type": "number",
      "default": 3000,
      "maximum": 1000000000000,
      "minimum": -1000000000000,
      "description": "Amount in a consistent supplied currency and reporting period"
     },
     "average_assets": {
      "type": "number",
      "default": 40000,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period",
      "exclusiveMinimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "net_income": 3000,
     "average_assets": 40000
    },
    {
     "net_income": 3300.0000000000005,
     "average_assets": 44000
    },
    {
     "net_income": 3000,
     "average_assets": 40000
    },
    {
     "net_income": 3300.0000000000005,
     "average_assets": 44000
    }
   ],
   "maxItems": 200,
   "minItems": 2
  },
  "weights": {
   "type": "array",
   "items": {
    "type": "number",
    "default": 1,
    "maximum": 1000000000000,
    "minimum": 0
   },
   "default": [
    1,
    2,
    1,
    2
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/return-on-average-assets-weighted-mean-calculator-a8a07005/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
