{"uid":"cap_zzL1vShuJkXXvZqt8FIN0","slug":"numora-statistics-regression-endpoint-3a4ddbc1","name":"Numora Statistics Regression Endpoint","description":"100 pure math computation endpoints for AI agents. Statistics, financial math, linear algebra, equation solving, calculus, number theory, sequence generation, and unit conversions. Zero external dependencies. x402 micropayments on Base.","url":"https://numomo.vercel.app/api/statistics/regression","method":"POST","headers":{},"bodySchema":{"type":"object","required":["x","y"],"properties":{"x":{"type":"array"},"y":{"type":"array"},"degree":{"type":"integer"}}},"responseSchema":{"type":"object","required":["success","result","computation"],"properties":{"result":{"type":"object","description":"Computation result varies by endpoint"},"success":{"type":"boolean","description":"Always true on success"},"computation":{"type":"string","description":"Human-readable description of what was computed"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JI3ovdtGAvsHgr5gOFv7s","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fits a polynomial regression model to paired x/y data arrays and returns the regression coefficients and fit statistics","exampleAgentPrompt":"Run a degree-2 polynomial regression on these x values [1, 2, 3, 4, 5] and y values [2.1, 4.0, 9.2, 16.1, 25.3] and give me the regression coefficients.","exampleUseCases":[{"title":"Trend line for sales data","prompt":"I have monthly sales figures — x is [1,2,3,4,5,6] and y is [120,135,160,195,240,295]. Can you fit a degree-2 polynomial regression and tell me the coefficients so I can project next month?"},{"title":"Physics experiment curve fitting","prompt":"I collected experimental data: x positions are [0,1,2,3,4] and y measurements are [0.0,0.48,1.92,4.32,7.68]. Fit a quadratic (degree 2) regression to find the best-fit coefficients."},{"title":"Linear model for grade prediction","prompt":"Given student study hours x = [1,2,3,4,5,6,7] and their test scores y = [55,60,65,70,75,80,85], fit a linear regression (degree 1) and return the slope and intercept."}],"resultDescription":"Returns a JSON object with a 'success' boolean, a 'computation' string describing what was computed, and a 'result' object containing the polynomial regression coefficients (and potentially R-squared or other fit metrics) for the specified degree fit to the input x/y arrays.","failureModes":["x and y arrays of different lengths — mismatched input sizes will cause an error","degree parameter too high relative to number of data points — underdetermined system","non-numeric values in x or y arrays — type validation failure","missing required x or y fields — 400 bad request","degree not provided defaults to linear (degree 1) — may not suit higher-order needs","payment failure via x402 micropayment protocol — 402 response if USDC balance insufficient"],"whenToPreferThis":"Choose this endpoint when you need pure server-side polynomial regression computation with no external dependencies, paid per-call via USDC micropayment. Ideal for AI agents that need deterministic, reproducible curve fitting on arbitrary numeric arrays without setting up a statistics library. Prefer over general-purpose code execution endpoints when you want a single clean regression result with no environment setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:46:04.015Z","isFirstParty":false}