{"uid":"cap_DrhItbTHRz3-PXmYsE3yD","slug":"trade-balance-benchmark-correlation-calculator-9e70798f","name":"Trade Balance Benchmark Correlation Calculator","description":"Trade balance - Benchmark correlation: Calculate Pearson correlation against aligned supplied benchmarks; no causal or predictive claim. Metric: Trade balance. 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 benchmark correlation report.","url":"https://market.datapackvibe.com/x402/assistant-finance-trade-balance-correlation?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["exports","imports"],"properties":{"exports":{"type":"number","default":250,"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"}},"additionalProperties":false},"default":[{"exports":250,"imports":200},{"exports":275,"imports":220.00000000000003},{"exports":250,"imports":200},{"exports":275,"imports":220.00000000000003}],"maxItems":200,"minItems":2},"benchmarks":{"type":"array","items":{"type":"number","default":1,"maximum":1000000000000000000,"minimum":-1000000000000000000},"default":[10,20,30,40],"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_wMJpzU5YpqLgL8nn2gNgU","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 the Pearson correlation coefficient between a time series of trade balance values and user-supplied benchmark figures, returning formula, units, and limitations.","exampleAgentPrompt":"Can you calculate the Pearson correlation between our quarterly trade balance figures — exports of 250, 275, 300 and imports of 200, 220, 240 — against benchmark values of 10, 20, 30? I want to see the formula, units, and any stated limitations.","exampleUseCases":[{"title":"Quarterly trade balance vs GDP benchmark","prompt":"I have four quarters of trade data: exports were 500, 520, 480, 510 and imports were 420, 440, 400, 430 each quarter. My benchmark series is 80, 85, 75, 82. Can you run the Pearson correlation between the trade balances and those benchmarks and show me the formula and limitations?"},{"title":"Bilateral trade alignment with commodity index","prompt":"I want to check how closely our annual bilateral trade balance aligns with a commodity price index. Exports were 1200, 1350, 1100 and imports were 900, 1000, 850 for three years, and the benchmark index values are 110, 125, 95. Calculate the Pearson correlation and tell me the formula and any caveats."},{"title":"Export surplus correlation with peer country benchmark","prompt":"We're comparing our monthly trade surplus against a peer country benchmark series. Our exports were 300, 320, 310 and imports were 250, 260, 255, and the benchmarks are 40, 55, 48. Run the Pearson correlation for me and include the units and limitations in the output."}],"resultDescription":"A JSON object containing the computed Pearson correlation coefficient between the derived trade balance series (exports minus imports) and the supplied benchmark values, along with the mathematical formula used, measurement units, and explicit limitations noting no causal or predictive claims are made.","failureModes":["Mismatched array lengths between rows and benchmarks returns an error","Fewer than 2 data points provided causes a validation failure","Exports or imports values outside the allowed range (0 to 1e12) are rejected","Benchmarks outside the allowed range cause validation errors","Constant series (zero variance) causes undefined Pearson correlation"],"whenToPreferThis":"Use this endpoint when you have your own historical trade balance data (exports and imports per period) and a corresponding benchmark series and need a rigorous Pearson correlation statistic with documented formula and limitations — particularly when you want a bounded, non-predictive statistical report rather than live market data or forecasting.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T19:43:07.881Z","isFirstParty":false,"canonicalSlug":"trade-balance-benchmark-correlation-calculator-9e70798f"}