{"uid":"cap_bX9_54hWvj2U24zpxbBda","slug":"tourism-observations-two-measure-correlation-secondary-measure-d0bddac4","name":"Tourism Observations — Two-Measure Correlation + Secondary-Measure Weighted Mean","description":"Tourism observations — Two-measure correlation + Secondary-measure weighted mean: Two-measure correlation + Secondary-measure weighted mean 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-181?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"}}},"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_GVINEAMSpJfxTCNRCUwpH","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 correlation between visitor_count and overnight_stays, plus a weighted mean for the secondary measure, across up to 200 tourism observation rows.","exampleAgentPrompt":"I have a dataset of tourism observations with visitor_count and overnight_stays across multiple regions and dates — can you run the two-measure correlation between those fields plus compute the weighted mean for overnight_stays across all my rows?","exampleUseCases":[{"title":"Regional tourism seasonality analysis","prompt":"I've got 150 rows of monthly tourism data by region with visitor_count and overnight_stays — can you compute the correlation between those two measures and give me the weighted mean for overnight_stays so I can understand seasonal patterns?"},{"title":"Hotel occupancy vs visitor volume check","prompt":"I want to see how strongly visitor arrivals correlate with overnight stays across my 80 observation records — please run the two-measure correlation with visitor_count as the primary field and include the weighted mean for overnight_stays."},{"title":"Tourism KPI report for regional board","prompt":"Can you analyze this set of tourism records covering 4 regions over the past year — I need the Pearson correlation between visitor_count and overnight_stays, plus the weighted mean of overnight_stays, so I can put together a KPI summary for the regional board?"}],"resultDescription":"Returns two analytical reports: (1) a correlation result quantifying the linear relationship between visitor_count and overnight_stays across the submitted rows, and (2) a weighted mean value for the secondary measure (overnight_stays), computed locally using shared analytical engines with no external data access.","failureModes":["Fewer than 1 row submitted — request rejected","Row missing required fields (row_id, region, date, visitor_count, overnight_stays) — validation error","More than 200 rows submitted — rejected with max-items error","Invalid date format (not YYYY-MM-DD) — schema validation failure","Numeric values out of allowed range (±1,000,000,000,000) — rejected","Payment not provided or insufficient USDC — 402 payment required error","All values for one measure are null — correlation cannot be computed"],"whenToPreferThis":"Choose this endpoint when you have a structured tourism dataset (up to 200 rows) with visitor_count and overnight_stays fields and need both a correlation coefficient between the two measures and a weighted mean for the secondary measure in a single API call. It is purpose-built for tourism/hospitality observation data and bundles two reports for $0.01 USDC. Prefer it over general-purpose statistics APIs when you want a low-cost, no-setup, payload-in/result-out statistical summary with no external data dependencies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T12:31:17.196Z","isFirstParty":false,"canonicalSlug":"tourism-observations-two-measure-correlation-secondary-measure-d0bddac4"}