{"uid":"cap_34GpyFYOol10isfXPGtgw","slug":"gdp-expenditure-identity-weighted-result-mean-86b9f8d4","name":"GDP Expenditure Identity – Weighted Result Mean","description":"GDP expenditure identity - Weighted result mean: Calculate a mean of up to 200 results using supplied nonnegative weights; not a pooled accounting ratio. Metric: GDP expenditure identity. 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-gdp-expenditure-weighted-mean?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["consumption","investment","government_purchases","exports","imports"],"properties":{"exports":{"type":"number","default":150,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period"},"imports":{"type":"number","default":200,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period"},"investment":{"type":"number","default":200,"maximum":1000000000000,"minimum":-1000000000000,"description":"Amount in a consistent supplied currency and reporting period"},"consumption":{"type":"number","default":600,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period"},"government_purchases":{"type":"number","default":250,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period"}},"additionalProperties":false},"default":[{"exports":150,"imports":200,"investment":200,"consumption":600,"government_purchases":250},{"exports":165,"imports":220.00000000000003,"investment":220.00000000000003,"consumption":660,"government_purchases":275},{"exports":150,"imports":200,"investment":200,"consumption":600,"government_purchases":250},{"exports":165,"imports":220.00000000000003,"investment":220.00000000000003,"consumption":660,"government_purchases":275}],"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_OCP7qMx5z5-bXVvOdZ_Bq","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 GDP expenditure identity values across up to 200 supplied data rows using user-specified nonnegative weights.","exampleAgentPrompt":"Can you calculate a weighted mean of the GDP expenditure identity across these 4 periods — consumption 600, investment 200, government purchases 250, exports 150, imports 200 for periods 1 and 3, and consumption 660, investment 220, government purchases 275, exports 165, imports 220 for periods 2 and 4 — using weights of 1, 2, 1, 2?","exampleUseCases":[{"title":"Quarterly GDP weighted average for a country","prompt":"I have quarterly GDP component figures for four quarters — C, I, G, exports, and imports for each — and I want to weight Q2 and Q4 twice as heavily as Q1 and Q3. Can you compute the weighted mean GDP using the expenditure identity?"},{"title":"Multi-country GDP comparison with size weights","prompt":"I have GDP expenditure breakdown data for five countries and want to compute a weighted mean where each country's weight reflects its population size. Can you calculate the weighted mean GDP across all five using weights 10, 25, 8, 40, 17?"},{"title":"Scenario blend for GDP forecast","prompt":"I've run three GDP forecast scenarios with different C, I, G, exports, and imports assumptions. Can you compute a probability-weighted mean GDP across the three scenarios using weights 0.2, 0.5, and 0.3?"}],"resultDescription":"A JSON object containing the weighted mean GDP value computed via the expenditure identity (C + I + G + NX), along with the formula used, units, and stated limitations of the calculation. No live data, financial advice, or projections are included.","failureModes":["Mismatched array lengths between rows and weights returns an error","Weights containing negative values are rejected","Fewer than 2 rows or weights provided causes validation failure","Component values exceeding maximum bounds (1e12) are rejected","Non-numeric values in rows or weights fields cause schema validation errors"],"whenToPreferThis":"Choose this endpoint when you need to compute a weighted mean of GDP expenditure identity values across multiple observations (countries, periods, scenarios) and require a structured JSON response with formula and units. Prefer this over a single-calculation endpoint when aggregating more than one GDP data point with differential weighting.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T00:56:08.898Z","isFirstParty":false,"canonicalSlug":"gdp-expenditure-identity-weighted-result-mean-86b9f8d4"}