ToolAssay

Ordinary-least-squares linear regression of y on x

Ordinary-least-squares linear regression of y on x: slope, intercept, correlation r and coefficient of determination r². Pass predictAt to also evaluate the fitted line at a given x. Rejected as a clean 400 if lengths differ or x has zero variance.

Answeringour last check, 2026-09-24
1 of 1checks answered this week
446 msmedian answer time
$0.004listed price per call
$0.004price it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

POST https://stats.openverbs.com/v1/regression

CategoryEverything else
Provider hoststats.openverbs.com
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days3 from 1 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-09-24 valid payment request 402$0.004 446 ms

Example input (from the provider)

{
  "body": {
    "predictAt": 1,
    "x": [
      1,
      1
    ],
    "y": [
      1,
      1
    ]
  },
  "bodyType": "json",
  "method": "POST",
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "additionalProperties": false,
          "properties": {
            "predictAt": {
              "description": "Optional x at which to evaluate the fitted line.",
              "type": "number"
            },
            "x": {
              "description": "Independent variable.",
              "items": {
                "type": "number"
              },
              "maxItems": 100000,
              "minItems": 2,
              "type": "array"
            },
            "y": {
              "description": "Dependent variable (same length as x).",
              "items": {
                "type": "number"
              },
              "maxItems": 100000,
              "minItems": 2,
              "type": "array"
            }
          },
          "required": [
            "x",
            "y"
          ],
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON