{"uid":"cap_mUXp-gzVrWFl4fxGsEiED","slug":"travel-administration-two-measure-correlation-secondary-measure-0a50a88c","name":"Travel Administration — Two-Measure Correlation + Secondary-Measure Weighted Mean","description":"Travel administration — Two-measure correlation + Secondary-measure weighted mean: Two-measure correlation + Secondary-measure weighted mean for supplied travel administration records (trip_count, recorded_cost). 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-operations-14-181?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","team_group","date","trip_count","recorded_cost"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"team_group":{"type":"string","default":"","maxLength":80},"trip_count":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"recorded_cost":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","team_group":"group-a","trip_count":10,"recorded_cost":1},{"date":"2026-10-02","row_id":"row-2","team_group":"group-b","trip_count":20,"recorded_cost":2},{"date":"2026-10-03","row_id":"row-3","team_group":"group-a","trip_count":15,"recorded_cost":3},{"date":"2026-10-04","row_id":"row-4","team_group":"group-b","trip_count":30,"recorded_cost":4}],"maxItems":200,"minItems":1},"field":{"enum":["trip_count","recorded_cost"],"type":"string","default":"trip_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_O2j4QuBgQr2KB6X_kEai6","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 trip_count and recorded_cost, plus a weighted mean of a selected secondary measure, across up to 200 travel administration records.","exampleAgentPrompt":"Can you run a correlation analysis between trip_count and recorded_cost, plus compute the weighted mean of trip_count, for these travel records: team-a had 10 trips costing $500 on 2024-01-01, team-b had 20 trips costing $800 on 2024-01-02, and team-a had 15 trips costing $620 on 2024-01-03?","exampleUseCases":[{"title":"Team travel cost-volume relationship","prompt":"I have travel records for three teams over the past quarter — each row has a date, team name, number of trips, and the recorded cost. Can you compute the Pearson correlation between trip_count and recorded_cost, and also give me the weighted mean of trip_count? Here are the rows: team-alpha had 12 trips at $600 on 2024-03-01, team-beta had 25 trips at $1100 on 2024-03-02, team-gamma had 8 trips at $420 on 2024-03-03."},{"title":"Department spend weighted average check","prompt":"I want to understand the weighted mean of recorded_cost across our department travel logs from last month. I also want to know how strongly trip volume correlates with cost. Here are my rows: dept-ops took 30 trips costing $1500 on 2024-02-10, dept-sales took 45 trips costing $2200 on 2024-02-11, dept-eng took 20 trips costing $950 on 2024-02-12. Use recorded_cost as the secondary measure field."},{"title":"Quarterly travel analytics summary","prompt":"Can you calculate the correlation between the number of trips and travel costs for our quarterly data, and also give me the weighted mean of trip_count? Rows: row-1 group-a 2024-01-15 50 trips $2500, row-2 group-b 2024-01-16 35 trips $1800, row-3 group-a 2024-01-17 60 trips $3100, row-4 group-b 2024-01-18 28 trips $1400."}],"resultDescription":"Returns two analytical reports: (1) a Pearson correlation coefficient between the trip_count and recorded_cost columns across all supplied rows, and (2) a weighted mean for the selected secondary measure field (trip_count or recorded_cost). All computation is local with no external lookups or predictions.","failureModes":["More than 200 rows submitted — request rejected or truncated","Missing required fields (row_id, date, trip_count, recorded_cost) cause validation errors","Null values in both measure columns may produce undefined correlation","Invalid date format (not YYYY-MM-DD) causes schema validation failure","Insufficient variance in one measure may yield correlation of NaN or undefined","Invalid enum value for 'field' parameter causes rejection"],"whenToPreferThis":"Choose this endpoint when you have up to 200 travel administration records with trip counts and costs and need both a correlation coefficient and a weighted mean in a single cheap ($0.01 USDC) call, with no need for live data, predictions, or external enrichment. It is ideal for lightweight, self-contained statistical reporting on local datasets where you want two distinct analytical outputs in one request.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:54:44.526Z","isFirstParty":false,"canonicalSlug":"travel-administration-two-measure-correlation-secondary-measure-0a50a88c"}