{"uid":"cap_rqUALc6aV7FPxzK7FstuY","slug":"signaldesk-ai-weighted-mean-calculator-baa33d63","name":"SignalDesk AI Weighted Mean Calculator","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/weighted-mean?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"values":{"type":"array","items":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000},"maxItems":1000,"minItems":1,"description":"Up to 1000 finite observations."},"weights":{"type":"array","items":{"type":"number","maximum":1000000000000000,"minimum":0,"description":"Weight."},"maxItems":1000,"minItems":1,"description":"Non-negative weights."}}},"responseSchema":{"type":"json","example":{"mean":17.5}},"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_HGdZkLvVLDrUbz23Exsu8","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 weighted mean of a list of numeric observations given corresponding non-negative weights","exampleAgentPrompt":"Calculate the weighted mean of these values [10, 20, 30] with weights [1, 2, 3] — so more weight on the higher numbers.","exampleUseCases":[{"title":"Weighted grade average calculation","prompt":"I have exam scores [72, 85, 90, 60] with weights [0.1, 0.3, 0.4, 0.2] reflecting each exam's contribution to the final grade — what's the weighted mean?"},{"title":"Portfolio return aggregation","prompt":"Compute the weighted average return across my holdings: returns are [0.05, 0.12, -0.03, 0.08] and the portfolio weights are [0.4, 0.25, 0.2, 0.15]."},{"title":"Survey response importance weighting","prompt":"I have survey satisfaction scores [3, 4, 5, 2, 4] from respondents with reliability weights [10, 5, 8, 2, 6] — give me the weighted mean so higher-reliability respondents count more."}],"resultDescription":"Returns a JSON object with a single field 'mean' containing the computed weighted mean as a number (e.g. {\"mean\": 17.5}).","failureModes":["Mismatched array lengths between values and weights returns an error","Empty values or weights arrays are rejected (minItems: 1)","Values or weights exceeding 1e15 in magnitude are rejected","Non-numeric or negative weight values are rejected","More than 1000 items in either array returns a validation error"],"whenToPreferThis":"Choose this endpoint when you need a simple, fast, paid-per-call weighted mean computation without setting up your own math library or data pipeline. It is ideal for lightweight agent workflows that already use x402 micropayments and need bounded, stateless numerical aggregation at $0.001 per call. Prefer alternatives if you need full descriptive statistics suites, variance/std-dev alongside the mean, or free unlimited computation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:42:17.097Z","isFirstParty":false,"canonicalSlug":"signaldesk-ai-weighted-mean-calculator-baa33d63"}