{"uid":"cap_cN8hesxIzncui0bqOgmQh","slug":"unit-contribution-distribution-histogram-5a587c2f","name":"Unit Contribution Distribution Histogram","description":"Unit contribution - Distribution histogram: Bin up to 200 calculated observations into equal-width bins, including edge definitions. Metric: Unit contribution. 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 distribution histogram report.","url":"https://market.datapackvibe.com/x402/assistant-finance-unit-contribution-histogram?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":["unit_price","variable_cost_per_unit"],"properties":{"unit_price":{"type":"number","default":20,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period"},"variable_cost_per_unit":{"type":"number","default":12,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period"}},"additionalProperties":false},"default":[{"unit_price":20,"variable_cost_per_unit":12},{"unit_price":22,"variable_cost_per_unit":13.200000000000001},{"unit_price":20,"variable_cost_per_unit":12},{"unit_price":22,"variable_cost_per_unit":13.200000000000001}],"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_PNFx4Yil1FYaXVxmHmhlf","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":"Bins up to 200 unit contribution observations (unit price minus variable cost per unit) into equal-width histogram bins, returning bin edges, counts, and formula metadata.","exampleAgentPrompt":"I have 12 products with their unit prices and variable costs — can you bin those unit contribution values into 8 equal-width histogram buckets and show me the distribution with bin edges and counts? Here are the pairs: [20,12], [25,14], [30,18], [22,13], [28,16], [35,20], [18,11], [24,15], [32,19], [27,17], [21,12], [29,16].","exampleUseCases":[{"title":"Retail SKU margin distribution analysis","prompt":"I have unit prices and variable costs for 40 retail SKUs and want to see how unit contributions are distributed — can you split them into 10 equal-width bins and tell me how many SKUs fall into each range?"},{"title":"Manufacturing batch contribution spread","prompt":"We ran 80 production batches last quarter each with a different unit price and variable cost. Bin the resulting unit contributions into 6 histogram buckets so I can see where most of our margins cluster."},{"title":"Pricing scenario comparison histogram","prompt":"I'm modelling 15 different pricing scenarios, each with a unit price and variable cost per unit. Can you show me a 5-bin distribution histogram of the unit contributions so I can see how spread out the outcomes are?"}],"resultDescription":"Returns a JSON object containing the histogram bin edges, observation counts per bin, the unit contribution formula (unit price minus variable cost per unit), units description, and any noted limitations — covering up to 200 observations split into up to 30 equal-width bins.","failureModes":["Fewer than 2 rows provided — minimum observation count not met","More than 200 rows supplied — exceeds maximum item limit","Bins value outside 1–30 range — validation error returned","Non-numeric values in unit_price or variable_cost_per_unit fields — schema rejection","All observations identical — zero-width bins may produce degenerate histogram"],"whenToPreferThis":"Choose this endpoint when you have a set of discrete unit price and variable cost observations and need to understand the frequency distribution of resulting contribution margins across equal-width buckets. It is ideal for exploratory profitability analysis, pricing scenario comparison, or quality-checking margin data spread. Prefer this over raw summary statistics when the shape and spread of the distribution matters, not just the mean or total.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T00:58:41.046Z","isFirstParty":false,"canonicalSlug":"unit-contribution-distribution-histogram-5a587c2f"}