# minia2a R-Squared Calculator

> minia2a R-Squared Calculator is a paid API for AI agents from minia2a.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-16).

Computes the R-squared (coefficient of determination) statistical measure for a given dataset

## Facts

- Endpoint: GET https://minia2a.uk/x402/rSquared?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/minia2a-r-squared-calculator-0c3457e2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QxXtywv7K06pcc8puVfGn

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 minia2a-r-squared-calculator-0c3457e2
```

Example prompt: Can you calculate the R-squared value to see how well my regression model fits the data? I have observed values [1, 2, 3, 4, 5] and predicted values [1.1, 1.9, 3.2, 3.8, 5.1].

## When to prefer this

Use this endpoint when you need a quick, pay-per-call R-squared computation without setting up a local statistical library or data science environment. Ideal for lightweight agent workflows that need a single statistical metric on demand.

## Known failure modes

- Missing or malformed input data arrays returns an error
- Mismatched lengths between observed and predicted arrays may cause a computation error
- Non-numeric values in input arrays will likely result in a failure response
- Empty input arrays may return an error or undefined result

## How this service works

R Squared

## Output

Returns the R-squared (coefficient of determination) value, a number between 0 and 1 (or negative if the model is worse than a horizontal baseline) indicating how well the model explains variance in the dependent variable.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "method": {
     "type": "string"
    },
    "bodyType": {
     "type": "string"
    },
    "queryParams": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 },
 "answerAt": "result"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/minia2a-r-squared-calculator-0c3457e2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from minia2a.uk](https://www.zero.xyz/host/minia2a.uk/llms.txt)
