{"uid":"cap_v0WU4d3TLXc1PtQjWo0M1","slug":"numora-statistics-sampling-api-a0f067af","name":"Numora Statistics Sampling API","description":"100 pure math computation endpoints for AI agents. Statistics, financial math, linear algebra, equation solving, calculus, number theory, sequence generation, and unit conversions. Zero external dependencies. x402 micropayments on Base.","url":"https://numomo.vercel.app/api/statistics/sampling","method":"POST","headers":{},"bodySchema":{"type":"object","required":["n","data"],"properties":{"n":{"type":"integer"},"data":{"type":"array"},"method":{"type":"string"}}},"responseSchema":{"type":"object","required":["success","result","computation"],"properties":{"result":{"type":"object","description":"Computation result varies by endpoint"},"success":{"type":"boolean","description":"Always true on success"},"computation":{"type":"string","description":"Human-readable description of what was computed"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xSUy22KvwzUjAd3-JD_Ml","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Draws a random sample of n items from a dataset using a specified sampling method (e.g. random, stratified)","exampleAgentPrompt":"Draw a random sample of 30 items from this dataset [1, 4, 7, 2, 9, 3, 6, 8, 5, 10, ...] using the 'random' method — I need it for a stats experiment.","exampleUseCases":[{"title":"Random survey respondent selection","prompt":"I have a list of 500 customer IDs and I need to randomly select 50 of them for a survey. Can you draw a random sample of size 50 from this array using the random method?"},{"title":"A/B test holdout group sampling","prompt":"I'm setting up an A/B test and need to randomly pick 100 user IDs from my pool of 2000 to form the control group. Sample 100 items from this list using random sampling."},{"title":"Statistical bootstrap sample generation","prompt":"For my bootstrap analysis I need a sample of 200 data points drawn from this numeric array of 1000 measurements. Use the random method and give me the sampled values."}],"resultDescription":"Returns a JSON object with success:true, a result object containing the sampled subset of the input data, and a computation string describing what was computed (e.g. 'Random sample of 30 drawn from 500 elements').","failureModes":["n larger than dataset size with without-replacement method — returns error or unexpected result","Missing required fields 'n' or 'data' — validation error","Invalid method string not recognized by the API — may default or error","Empty data array — returns empty or error result","Payment failure via x402 micropayment — request rejected before computation"],"whenToPreferThis":"Choose this endpoint when you need a pure-math, serverless sampling computation with no external data dependencies and deterministic billing via x402 micropayments on Base. Ideal for AI agents that need lightweight statistical sampling without spinning up a full data-science environment or calling a heavyweight analytics platform.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:39:51.465Z","isFirstParty":false}