{"uid":"cap_7JnF_xRyHO0c5LwxICJa7","slug":"numora-statistics-correlation-endpoint-70993e78","name":"Numora Statistics Correlation 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://numorapoi.orbonomy.xyz/api/statistics/correlation","method":"POST","headers":{},"bodySchema":{"type":"object","required":["x","y"],"properties":{"x":{"type":"array"},"y":{"type":"array"}}},"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":"probe","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Zg4VrgESTYuq5-QWze75h","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the statistical correlation coefficient between two numeric arrays","exampleAgentPrompt":"What's the correlation between these two datasets — x: [10, 20, 30, 40, 50] and y: [12, 24, 28, 41, 55]? Use Numora's pure math API to get the exact correlation coefficient.","exampleUseCases":[{"title":"Correlation between sales and marketing spend","prompt":"I have monthly sales figures and marketing spend for the past year — can you check how correlated those two series are using Numora? I want to know if there's a strong linear relationship before I make budget decisions."},{"title":"Check if temperature affects energy usage","prompt":"Here are daily average temperatures and our building's energy consumption readings for the last 30 days. Run a correlation on them using Numora's math API so I can see how strongly temperature is driving our power usage."},{"title":"Measure stock price co-movement","prompt":"I've got daily closing prices for two stocks over the past quarter. Use Numora to compute the correlation coefficient between them — I want to know how closely they move together before I consider them as a hedge pair."}],"resultDescription":"Returns a JSON object with a boolean success flag, a result object containing the computed correlation coefficient between the two input arrays, and a human-readable computation description string explaining what was calculated.","failureModes":["Mismatched array lengths — x and y must have the same number of elements","Empty arrays provided — computation requires at least two data points","Non-numeric values in arrays causing type errors","Arrays with zero variance (all identical values) causing division-by-zero in correlation formula","Payment failure via x402 micropayment protocol blocks the request","HTTP 402 returned if USDC payment is not completed before processing"],"whenToPreferThis":"Choose this endpoint when you need a fast, dependency-free, server-side statistical correlation computation without setting up a local math library. Ideal for AI agents that need pure math results on-demand, especially when processing two parallel numeric datasets to measure their linear relationship. Prefer over general-purpose compute services when you want a simple, paid-per-call micropayment model with no API key management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:31:37.340Z","isFirstParty":false}