{"uid":"cap_BTkgA11U3SN7mnMG0MwQC","slug":"sampling-observations-equal-width-histogram-secondary-measure-9cd16b17","name":"Sampling Observations — Equal-Width Histogram + Secondary-Measure Weighted Mean","description":"Sampling observations — Equal-width histogram + Secondary-measure weighted mean: Equal-width histogram + Secondary-measure weighted mean for supplied sampling observations records (sample_value, sample_weight). 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-analytics-15-172?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","dataset_group","date","sample_value","sample_weight"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"sample_value":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"dataset_group":{"type":"string","default":"","maxLength":80},"sample_weight":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","sample_value":10,"dataset_group":"group-a","sample_weight":1},{"date":"2026-10-02","row_id":"row-2","sample_value":20,"dataset_group":"group-b","sample_weight":2},{"date":"2026-10-03","row_id":"row-3","sample_value":15,"dataset_group":"group-a","sample_weight":3},{"date":"2026-10-04","row_id":"row-4","sample_value":30,"dataset_group":"group-b","sample_weight":4}],"maxItems":200,"minItems":1},"field":{"enum":["sample_value","sample_weight"],"type":"string","default":"sample_value"}}},"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_AmFER64c3JJa4aPoQs-8R","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 and a secondary-measure weighted mean over up to 200 supplied sampling observation records (sample_value, sample_weight).","exampleAgentPrompt":"Can you analyze these 50 sampling observations — each has a sample_value and sample_weight — using 10 equal-width histogram bins on the sample_value field, and also give me the weighted mean? I'll paste the rows as row_id, dataset_group, date, sample_value, sample_weight.","exampleUseCases":[{"title":"Survey response distribution analysis","prompt":"I have 120 survey response scores with weights reflecting respondent importance — can you bucket the sample_value field into 8 equal-width histogram bins and compute the weighted mean of those scores using the sample_weight column?"},{"title":"Lab measurement quality check","prompt":"Here are 80 lab measurement records with dates and group labels — please run a histogram with 5 bins on the sample_value field and give me the secondary-measure weighted mean so I can see how measurements are distributed across the range."},{"title":"Sales sample data summarization","prompt":"I've got 200 daily sales sample rows tagged by region and date — run an equal-width histogram with 15 bins on sample_value and compute the weighted mean using sample_weight, so I can understand the distribution and central tendency."}],"resultDescription":"Returns two analytical reports: (1) an equal-width histogram breaking the selected field (sample_value or sample_weight) into up to 30 bins with bin boundaries and counts, and (2) a secondary-measure weighted mean computed from the sample_value and sample_weight columns across the supplied rows. Both reports are computed locally with no external lookups.","failureModes":["More than 200 rows submitted — exceeds maximum row limit","Missing required fields (row_id, dataset_group, date, sample_value, sample_weight) in any row","Bins parameter outside 1–30 range","All sample_weight values are null or zero — weighted mean undefined","Malformed date strings not matching YYYY-MM-DD pattern","sample_value or sample_weight values outside ±1,000,000,000,000 range"],"whenToPreferThis":"Choose this endpoint when you need two complementary statistical summaries — a frequency distribution (histogram) and a weighted average — computed together over a single batch of up to 200 sampling observations. It is ideal for offline or already-collected datasets where no live data fetch, prediction, or external enrichment is needed. Prefer this over separate analytics calls when you want both reports for a flat $0.01 USDC fee.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T12:39:15.112Z","isFirstParty":false,"canonicalSlug":"sampling-observations-equal-width-histogram-secondary-measure-9cd16b17"}