{"uid":"cap_m36Au3nbWZ4i-pHOrDPkS","slug":"tourism-observations-two-measure-correlation-explicit-missing-value-5183f8cb","name":"Tourism Observations — Two-Measure Correlation + Explicit Missing-Value Fill","description":"Tourism observations — Two-measure correlation + Explicit missing-value fill: Two-measure correlation + Explicit missing-value fill for supplied tourism observations records (visitor_count, overnight_stays). 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-14-184?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","region","date","visitor_count","overnight_stays"],"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},"visitor_count":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"overnight_stays":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","region":"group-a","row_id":"row-1","visitor_count":10,"overnight_stays":1},{"date":"2026-10-02","region":"group-b","row_id":"row-2","visitor_count":20,"overnight_stays":2},{"date":"2026-10-03","region":"group-a","row_id":"row-3","visitor_count":15,"overnight_stays":3},{"date":"2026-10-04","region":"group-b","row_id":"row-4","visitor_count":30,"overnight_stays":4}],"maxItems":200,"minItems":1},"field":{"enum":["visitor_count","overnight_stays"],"type":"string","default":"visitor_count"},"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_fEWO22_l7QzDmEmnwhkfr","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 Pearson/rank correlation between visitor_count and overnight_stays, and fills missing values in a chosen field using zero, mean, or median imputation — for up to 200 tourism observation rows.","exampleAgentPrompt":"I have 150 rows of tourism data with visitor_count and overnight_stays fields — some overnight_stays values are null. Can you fill the missing overnight_stays using median imputation and also compute the correlation between visitor_count and overnight_stays across all rows?","exampleUseCases":[{"title":"Regional tourism KPI correlation analysis","prompt":"I've got daily tourism records for 12 regions over the past quarter — each row has visitor_count and overnight_stays. Can you compute the correlation between those two measures across all 180 rows?"},{"title":"Missing visitor count imputation for reporting","prompt":"My tourism dataset has about 200 rows but visitor_count is null for maybe 20 of them. Can you fill in those missing visitor_count values using the mean of the existing ones and also show me how visitor_count correlates with overnight_stays?"},{"title":"Zero-fill overnight stays for data pipeline","prompt":"I need to prep my tourism observations for a downstream pipeline — replace any null overnight_stays values with zero, and while you're at it give me the correlation between overnight_stays and visitor_count across the dataset."}],"resultDescription":"Two independent analytical reports: (1) a correlation report showing the statistical relationship (e.g. Pearson r) between visitor_count and overnight_stays across the supplied rows; (2) a missing-value fill report showing which rows had nulls in the chosen field and what values were substituted using the selected method (zero, mean, or median). No external data is fetched; all computation is performed locally on the supplied rows.","failureModes":["Fewer than 1 row supplied — validation error","More than 200 rows submitted — rejected with maxItems error","Invalid date format (not YYYY-MM-DD) — schema validation failure","Unknown imputation method enum value — rejected","Insufficient non-null values for mean/median computation — may return degenerate or error result","Both measures entirely null — correlation computation undefined"],"whenToPreferThis":"Choose this endpoint when you have a small-to-medium tourism dataset (up to 200 rows) with visitor_count and overnight_stays fields and need both a correlation analysis and missing-value imputation in a single API call. Ideal for lightweight, offline analytical pipelines that don't require real-time lookups, forecasting, or external data enrichment. Prefer this over general statistics APIs when you specifically work with tourism observation records and want bundled reports at low cost ($0.01 per call covers both reports).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T12:30:52.936Z","isFirstParty":false,"canonicalSlug":"tourism-observations-two-measure-correlation-explicit-missing-value-5183f8cb"}