{"uid":"cap_YR7TtShmjSeCDjcWvDvmd","slug":"marketing-contribution-return-weighted-result-mean-a99b4239","name":"Marketing Contribution Return – Weighted Result Mean","description":"Marketing contribution return - Weighted result mean: Calculate a mean of up to 200 results using supplied nonnegative weights; not a pooled accounting ratio. Metric: Marketing contribution return. Supplied figures only; returns JSON with formula, units and limitations. One of 50 calculators with 20 analysis modes. No live feed, financial advice or trade execution. 0.01 USDC includes one bounded weighted result mean report.","url":"https://market.datapackvibe.com/x402/assistant-finance-marketing-return-weighted-mean?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["attributed_contribution","marketing_spend"],"properties":{"marketing_spend":{"type":"number","default":5000,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period","exclusiveMinimum":0},"attributed_contribution":{"type":"number","default":8000,"maximum":1000000000000,"minimum":-1000000000000,"description":"Amount in a consistent supplied currency and reporting period"}},"additionalProperties":false},"default":[{"marketing_spend":5000,"attributed_contribution":8000},{"marketing_spend":5500,"attributed_contribution":8800},{"marketing_spend":5000,"attributed_contribution":8000},{"marketing_spend":5500,"attributed_contribution":8800}],"maxItems":200,"minItems":2},"weights":{"type":"array","items":{"type":"number","default":1,"maximum":1000000000000,"minimum":0},"default":[1,2,1,2],"maxItems":200,"minItems":2}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jW-yrFssBP8Kv-_xAPjhk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates a weighted mean of marketing contribution return (attributed contribution / marketing spend) across up to 200 data rows using supplied non-negative weights.","exampleAgentPrompt":"Calculate a weighted mean of our marketing contribution return across four campaigns: spend of $5,000 with $8,000 attributed contribution (weight 1), spend of $5,500 with $8,800 attributed contribution (weight 2), spend of $5,000 with $8,000 contribution (weight 1), and spend of $5,500 with $8,800 contribution (weight 2) — give me the formula, units, and any limitations.","exampleUseCases":[{"title":"Blended campaign performance summary","prompt":"I have five marketing campaigns with different spend and revenue attribution — can you calculate the weighted mean marketing contribution return using weights 1, 3, 2, 3, 1 for campaigns with spends of $4,000, $6,000, $5,500, $7,000, $4,500 and attributed contributions of $6,500, $10,200, $8,800, $12,000, $7,100? I need the formula and units too."},{"title":"Quarterly channel performance aggregation","prompt":"Aggregate our Q3 marketing contribution return across three channels — digital ($20,000 spend, $34,000 attributed; weight 3), print ($8,000 spend, $11,000 attributed; weight 1), and events ($15,000 spend, $27,000 attributed; weight 2) — and give me the weighted mean with limitations noted."},{"title":"Year-over-year weighted return comparison","prompt":"Can you compute the weighted mean marketing contribution return for two consecutive years? Year 1: $50,000 spend with $80,000 attributed (weight 1), Year 2: $55,000 spend with $95,000 attributed (weight 2). Include the formula and any caveats in the output."}],"resultDescription":"A JSON object containing the weighted mean of marketing contribution return across the supplied rows, along with the formula used, measurement units, and a note of limitations. Does not include live data, financial advice, or trade execution.","failureModes":["Weights array length does not match rows array length — mismatch error returned","Fewer than 2 rows supplied — minimum items validation failure","Marketing spend of zero or negative — excluded by exclusiveMinimum constraint","Weight values are negative — validation error since weights must be non-negative","More than 200 rows submitted — maxItems constraint violation","Non-numeric values in spend, contribution, or weight fields — schema type error"],"whenToPreferThis":"Choose this endpoint when you need a statistically weighted aggregate of marketing contribution return across multiple campaigns, periods, or channels, and you want to assign non-equal importance weights to each data point. It is ideal for blended reporting where different campaigns have different sample sizes or strategic priorities. Prefer it over a simple mean when equal weighting would misrepresent your data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T19:03:22.020Z","isFirstParty":false,"canonicalSlug":"marketing-contribution-return-weighted-result-mean-a99b4239"}