{"uid":"cap_Jw_L3NDwrbZItnUR9lik-","slug":"trade-observations-equal-width-histogram-and-two-measure-correlation-d7bbac2a","name":"Trade Observations Equal-Width Histogram and Two-Measure Correlation","description":"Trade observations — Equal-width histogram + Two-measure correlation: Equal-width histogram + Two-measure correlation 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-171?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"bins":{"type":"integer","default":5,"maximum":30,"minimum":1},"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},"field":{"enum":["export_amount","import_amount"],"type":"string","default":"export_amount"}}},"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_Zn6Y9iNcZNDKhHG7AJWae","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 an equal-width histogram for a selected trade measure and a Pearson/two-measure correlation between export_amount and import_amount across up to 200 trade observation rows.","exampleAgentPrompt":"Can you run a histogram and correlation analysis on my trade data? Here are 150 rows with export_amount and import_amount fields — use 10 bins and compute the histogram on export_amount, then also show me the correlation between export and import amounts.","exampleUseCases":[{"title":"Regional export distribution analysis","prompt":"I have 80 trade records across several regions with export_amount and import_amount values. Can you bucket the export_amount into 8 equal-width bins and also tell me how correlated exports and imports are across all those records?"},{"title":"Import volume spread check for quarterly data","prompt":"Here are 200 rows of quarterly trade observations. Please run an equal-width histogram on import_amount using 5 bins and compute the two-measure correlation between export_amount and import_amount so I can see if they track each other."},{"title":"Trade balance correlation for policy briefing","prompt":"I need a quick statistical summary for a policy briefing — I've got 60 trade observation rows covering different dates and regions. Run a 10-bin histogram on export_amount and show me the correlation coefficient between exports and imports."}],"resultDescription":"Returns two analytical reports: (1) an equal-width histogram breaking the selected field (export_amount or import_amount) into the specified number of bins with frequency counts per bin, and (2) a two-measure correlation report quantifying the statistical relationship between export_amount and import_amount across all supplied rows. Both reports are computed locally with no external data lookups.","failureModes":["Fewer than 1 row supplied — validation error","More than 200 rows supplied — exceeds maximum, request rejected","Invalid date format (not YYYY-MM-DD) — schema validation failure","Bins parameter outside 1–30 range — rejected by schema","Null values in both numeric fields for all rows — correlation cannot be computed","Field enum value not matching 'export_amount' or 'import_amount' — validation error","Missing required row_id field — schema validation failure","Payment not completed (x402) — endpoint returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need both a histogram distribution report and a pairwise correlation between export and import trade amounts in a single $0.01 call, without needing live data lookups, predictions, or external enrichment. Ideal for offline or batch analytical workflows on pre-collected trade observation datasets of up to 200 rows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T12:31:22.987Z","isFirstParty":false,"canonicalSlug":"trade-observations-equal-width-histogram-and-two-measure-correlation-d7bbac2a"}