{"uid":"cap_eRKR40pchEnwpC3LjS1el","slug":"sampling-observations-secondary-measure-weighted-mean-explicit-70cc01ab","name":"Sampling Observations — Secondary-Measure Weighted Mean + Explicit Missing-Value Fill","description":"Sampling observations — Secondary-measure weighted mean + Explicit missing-value fill: Secondary-measure weighted mean + Explicit missing-value fill 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-187?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"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"},"method":{"enum":["zero","mean","median"],"type":"string","default":"median"}}},"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_QPae1HGQ-s0eWdaInnIwo","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 a secondary-measure weighted mean and fills missing values (zero, mean, or median) for up to 200 sampling observation records, returning two analytical reports per call.","exampleAgentPrompt":"I have 4 sampling observation rows with sample_value and sample_weight fields — some sample_values are null — can you compute the weighted mean and fill the missing values using median imputation?","exampleUseCases":[{"title":"Survey data weighted aggregation","prompt":"I have 150 survey response rows, each with a sample_value score and a sample_weight, and some values are missing. Can you fill the missing sample_values using the mean method and compute the weighted mean across all rows?"},{"title":"Lab sample quality fill and average","prompt":"I've got a batch of 80 lab sample records with sample_value and sample_weight columns — about 10 of the sample_values are null. Please fill them with zeros and give me the weighted mean for the sample_value field."},{"title":"Group-segmented weighted mean report","prompt":"Here are 200 sampling observations across two dataset groups (group-a and group-b) — can you fill any missing sample_weights using median imputation and compute the secondary-measure weighted mean so I can compare the groups?"}],"resultDescription":"Returns two analytical reports: (1) the secondary-measure weighted mean computed across all supplied rows using sample_weight as the weight factor, and (2) the dataset with missing values explicitly filled using the chosen method (zero, mean, or median) for the specified field (sample_value or sample_weight). Up to 200 rows processed per call.","failureModes":["Exceeds 200 row limit — request will be rejected or truncated","Missing required fields (row_id, date, sample_value, sample_weight, dataset_group) cause validation errors","Date values not matching YYYY-MM-DD pattern will fail schema validation","All weights are zero or null, making weighted mean undefined","Enum values for method or field outside allowed set cause rejection","Extremely large or small values near ±1,000,000,000,000 boundary may cause computation edge cases"],"whenToPreferThis":"Choose this endpoint when you need both a weighted mean computation and explicit missing-value imputation on sampling observation data in a single call. It is especially suitable for survey, scientific, or statistical datasets with up to 200 rows where sample_weight varies by record and nulls must be handled before aggregation. Prefer this over generic computation tools when you need two bundled analytical reports at low cost ($0.01 USDC) without needing live lookups, predictions, or external data sources.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T12:39:06.759Z","isFirstParty":false,"canonicalSlug":"sampling-observations-secondary-measure-weighted-mean-explicit-70cc01ab"}