{"uid":"cap_b_INu7d6imyLtO3EYvFmN","slug":"signaldesk-ai-pearson-correlation-9a3eedd0","name":"SignalDesk AI – Pearson Correlation","description":"Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.","url":"https://x402-agent.kariguetoazul.workers.dev/api/stats/correlation?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"x":{"type":"array","items":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000},"maxItems":1000,"minItems":2,"description":"At least two observations."},"y":{"type":"array","items":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000},"maxItems":1000,"minItems":2,"description":"At least two observations."}}},"responseSchema":{"type":"json","example":{"pearson_r":1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iiQ71kwPrhHM12zxxbMnn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the Pearson correlation coefficient between two numeric arrays","exampleAgentPrompt":"Can you calculate the Pearson correlation between these two datasets: X = [1, 2, 3, 4, 5] and Y = [2.1, 4.0, 5.9, 8.1, 10.0]?","exampleUseCases":[{"title":"Sales vs. advertising spend analysis","prompt":"I have monthly sales figures [12000, 15000, 13500, 17000, 19000] and the corresponding ad spend [1000, 1400, 1200, 1600, 2000] — can you calculate the Pearson correlation to see how tightly they move together?"},{"title":"Climate vs. energy consumption study","prompt":"Here are average daily temperatures for the past week: [32, 35, 28, 40, 45, 38, 42], and the corresponding energy usage in kWh: [210, 225, 195, 260, 290, 240, 275]. What's the Pearson r between them?"},{"title":"Student test score correlation","prompt":"I want to know if study hours correlate with exam scores — hours: [2, 4, 6, 8, 10, 12] and scores: [55, 65, 70, 80, 88, 95]. Can you run a Pearson correlation on those?"}],"resultDescription":"Returns a JSON object containing the Pearson r value (a float between -1 and 1), where 1 indicates perfect positive linear correlation, -1 perfect negative, and 0 no linear relationship.","failureModes":["Arrays of unequal length may cause an error or undefined behavior","Arrays with fewer than 2 items will be rejected (minItems: 2)","Arrays with values exceeding ±1e15 will be rejected by schema validation","Zero-variance arrays (all identical values) may produce NaN or division-by-zero","Payment failure (x402) will block execution if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need a quick, paid, serverless Pearson r computation without running your own statistical library — particularly useful in agent pipelines where you want an auditable, bounded-cost statistic call on two numeric series of up to 1000 observations each.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:41:47.252Z","isFirstParty":false,"canonicalSlug":"signaldesk-ai-pearson-correlation-9a3eedd0"}