{"uid":"cap_LgmhJes2k2LdR71F4TGN8","slug":"trade-observations-two-measure-correlation-and-keyed-dataset-comparison-885c482d","name":"Trade Observations Two-Measure Correlation and Keyed Dataset Comparison","description":"Trade observations — Two-measure correlation + Keyed dataset comparison: Two-measure correlation + Keyed dataset comparison for supplied trade observations records (export_amount, import_amount). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.","url":"https://market.datapackvibe.com/x402/assistant-ib26-economics-06-183?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","region","date","export_amount","import_amount"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"region":{"type":"string","default":"","maxLength":80},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"export_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"import_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","region":"group-a","row_id":"row-1","export_amount":10,"import_amount":1},{"date":"2026-10-02","region":"group-b","row_id":"row-2","export_amount":20,"import_amount":2},{"date":"2026-10-03","region":"group-a","row_id":"row-3","export_amount":15,"import_amount":3},{"date":"2026-10-04","region":"group-b","row_id":"row-4","export_amount":30,"import_amount":4}],"maxItems":200,"minItems":1},"other":{"type":"array","items":{"type":"object","required":["row_id","region","date","export_amount","import_amount"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"region":{"type":"string","default":"","maxLength":80},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"export_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"import_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","region":"group-a","row_id":"row-1","export_amount":10,"import_amount":1},{"date":"2026-10-02","region":"group-b","row_id":"row-2","export_amount":21,"import_amount":2},{"date":"2026-10-03","region":"group-a","row_id":"row-3","export_amount":17,"import_amount":3},{"date":"2026-10-04","region":"group-b","row_id":"row-4","export_amount":33,"import_amount":4}],"maxItems":200,"minItems":0}}},"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_qZ6trFoCsYR_uLARdJ1EL","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":"Computes Pearson correlation between export_amount and import_amount, and performs a keyed row-by-row dataset comparison, for up to 200 trade observation records.","exampleAgentPrompt":"Can you run a correlation analysis between export_amount and import_amount on my trade data, and also compare it row-by-row against a second version of the dataset? I have about 50 rows with fields like row_id, region, date, export_amount, and import_amount.","exampleUseCases":[{"title":"Export-import correlation for regional trade data","prompt":"I have a table of 80 trade observations with export and import amounts by region and date — can you calculate the correlation between exports and imports and tell me how strongly they move together?"},{"title":"Comparing original vs revised trade figures","prompt":"I've got two versions of our quarterly trade dataset, each with around 60 rows keyed by row_id — can you compare them side by side to show me which rows changed and by how much?"},{"title":"Validating trade data consistency across periods","prompt":"We updated our import figures for 40 trade records and I need to both measure the correlation between export_amount and import_amount in the new set, and compare the new set against the old one by row key to spot discrepancies."}],"resultDescription":"Returns two independent analytical reports: (1) a two-measure correlation report showing the statistical relationship (e.g. Pearson r) between export_amount and import_amount across the supplied rows, and (2) a keyed dataset comparison report identifying matching and differing rows between the primary and secondary datasets based on row_id.","failureModes":["Fewer than 1 row supplied — validation error","More than 200 rows submitted — exceeds limit, request rejected","Missing required fields (row_id, region, date, export_amount, import_amount) — schema validation failure","Date field does not match YYYY-MM-DD format — pattern validation error","Numeric values outside allowed range (-1e12 to 1e12) — validation rejection","All export_amount or import_amount values are null — correlation cannot be computed","row_id values not unique across datasets — keyed comparison may produce unexpected matches"],"whenToPreferThis":"Choose this endpoint when you need both a statistical correlation between export and import amounts AND a row-level comparison of two trade datasets in a single $0.01 call. It is ideal for offline/batch analytical workflows on pre-collected trade observation data (up to 200 rows) where no live data lookup, forecasting, or external action is needed. Prefer alternatives if you need more than 200 rows, real-time data, or more than these two specific analytical operations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T13:06:50.136Z","isFirstParty":false,"canonicalSlug":"trade-observations-two-measure-correlation-and-keyed-dataset-comparison-885c482d"}