{"uid":"cap_iJ-VpTe67EooeFGo-Bp4x","slug":"inventory-counts-two-measure-correlation-970b29a2","name":"Inventory Counts Two-Measure Correlation","description":"Inventory counts - Two-measure correlation: Two-measure correlation for Inventory counts. Up to 200 supplied typed records. Local numeric and data-quality processing; no external enrichment or forecasting. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded two-measure correlation deliverable.","url":"https://market.datapackvibe.com/x402/assistant-sector-analytics-inventory-counts-correlation?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","warehouse","date","book_units","counted_units"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"warehouse":{"type":"string","default":"","maxLength":80},"book_units":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"counted_units":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","warehouse":"group-a","book_units":10,"counted_units":1},{"date":"2026-10-02","row_id":"row-2","warehouse":"group-b","book_units":20,"counted_units":2},{"date":"2026-10-03","row_id":"row-3","warehouse":"group-a","book_units":15,"counted_units":3},{"date":"2026-10-04","row_id":"row-4","warehouse":"group-b","book_units":30,"counted_units":4}],"maxItems":200,"minItems":1}}},"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_tk_djRX6ra5nTLRy5cWCY","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 the statistical correlation between book_units and counted_units across up to 200 inventory count records, returning a local numeric analysis with no external dependencies.","exampleAgentPrompt":"Can you run a two-measure correlation on my inventory count data — I have 50 rows with row IDs, warehouse names, dates, book units, and counted units, and I want to see how tightly the physical counts correlate with the book values?","exampleUseCases":[{"title":"Warehouse shrinkage correlation audit","prompt":"I have 120 inventory records from our two warehouses — group-a and group-b — spanning last quarter. Can you correlate the book_units against the counted_units to see how well they track each other and flag any weak relationship?"},{"title":"Inventory accuracy check before year-end close","prompt":"Before we finalize our year-end books, can you run a correlation analysis on these 80 inventory count rows to measure whether what we physically counted aligns statistically with what the books say we should have?"},{"title":"Cross-warehouse count consistency review","prompt":"We ran physical counts across three warehouses last month and have 150 rows of data. Can you compute the two-measure correlation between book units and counted units so we know which warehouses have the most reliable counting process?"}],"resultDescription":"Returns a bounded correlation deliverable containing the two-measure correlation coefficient (and associated statistics) computed from the submitted inventory count rows, along with any data-quality indicators derived locally from the input records.","failureModes":["Empty or malformed rows array returns a validation error","rows exceeding 200 items are rejected with a max-items constraint error","Missing required fields (row_id, warehouse, date, book_units, counted_units) cause schema validation failure","Date strings not matching YYYY-MM-DD pattern are rejected","Null values in both measures for a row may reduce effective sample size or return a data-quality warning","Payment of 0.01 USDC not provided or rejected results in a 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need a fast, self-contained statistical correlation between two inventory measures (book vs. counted units) without external enrichment or forecasting. It is ideal for data quality validation, shrinkage analysis, or audit workflows where you have up to 200 typed inventory records and need a numeric correlation result immediately.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T19:09:14.969Z","isFirstParty":false,"canonicalSlug":"inventory-counts-two-measure-correlation-970b29a2"}