← Back to directory

Linear regression API: fit a least-squares line through paired x/y data and get ...

https://x402.forgemesh.io/linear-regression

Overview

Linear regression API: fit a least-squares line through paired x/y data and get slope, intercept, R-squared goodness-of-fit, and the line equation. For trend analysis, forecasting inputs, and data-science agents. Exact and deterministic.

Protocol x402 (POST)
Price $0.0050
Payment Asset USD Coin
Payment Network eip155:8453
Category real-time-data/weather
Provider x402
Source bazaar
Indexed 2026-07-16 01:10:25

Health

Status healthy
Latency (p50) 209ms
Uptime (30d) 100.0%
Reliability Score 95/100
Last Checked 2026-10-28 07:01:14
Last Healthy 2026-10-28 07:01:14
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "body": { "x": [ 1, 2, 3, 4 ], "y": [ 2, 4, 5, 8 ] }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "equation": "y = 1.9x + -0.5", "intercept": -0.5, "r_squared": 0.966, "slope": 1.9 }, "type": "json" }