{"uid":"cap_fVh-i0wnZvqkfx03IKY2N","slug":"numora-statistics-sampling-api-3a3bfb66","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://numormo.vercel.app/api/statistics/sampling","method":"POST","headers":{},"bodySchema":{"type":"object","required":["n","data"],"properties":{"n":{"type":"integer"},"data":{"type":"array"},"method":{"enum":["simple","systematic","bootstrap"],"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_UxGb3sB2ogwL0WTrH-QN0","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":"Performs statistical sampling on a dataset using simple random, systematic, or bootstrap sampling methods","exampleAgentPrompt":"Draw a simple random sample of 30 items from this dataset [12, 45, 7, 88, 23, 56, 91, 34, 67, 10, 5, 78, 43, 29, 61, 82, 15, 39, 72, 54, 18, 63, 47, 95, 31, 84, 22, 58, 76, 40, 9, 66, 51, 87, 25, 70, 38, 93, 17, 62] using simple random sampling.","exampleUseCases":[{"title":"Bootstrap resampling for confidence intervals","prompt":"I have this list of 100 sales figures and I need to bootstrap resample 80 of them to estimate a confidence interval — can you draw a bootstrap sample for me? Here's the data: [234, 187, 445, 312, 567, 289, 178, 423, 345, 512, 267, 389, 156, 478, 321, 234, 567, 412, 289, 178, 445, 323, 512, 267, 389, 156, 478, 321, 234, 567, 412, 289, 178, 445, 323, 512, 267, 389, 156, 478, 321, 234, 567, 412, 289, 178, 445, 323, 512, 267, 389, 156, 478, 321, 234, 567, 412, 289, 178, 445, 323, 512, 267, 389, 156, 478, 321, 234, 567, 412, 289, 178, 445, 323, 512, 267, 389, 156, 478, 321, 234, 567, 412, 289, 178, 445, 323, 512, 267, 389, 156, 478, 321, 234, 567, 412, 289, 178, 445, 323]"},{"title":"Systematic sampling from survey responses","prompt":"I have 500 survey response scores and need to take a systematic sample of 50 of them evenly spaced across the dataset. The data starts: [82, 74, 91, 55, 63, 78, 88, 47, 95, 60 ...] — please use systematic sampling to pick 50 values."},{"title":"Simple random sample for A/B testing","prompt":"Can you randomly draw 20 user IDs from this list of 150 candidates to assign to the treatment group? Use simple random sampling. The IDs are: [1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1040, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1049, 1050]"}],"resultDescription":"Returns a JSON object with a success boolean, a result object containing the sampled subset of the input data, and a human-readable computation string describing what was computed. The result reflects the selected sample indices or values depending on the sampling method chosen.","failureModes":["n exceeds dataset length for non-bootstrap methods — returns error or unexpected behavior","invalid method enum value — request rejected or defaults used","empty data array — computation fails with no items to sample","n is zero or negative — invalid sample size error","data array contains non-numeric values when numeric computation is expected"],"whenToPreferThis":"Choose this endpoint when you need a pure math, dependency-free statistical sampling computation on a known dataset and do not need database access, external data fetching, or ML-based sample generation. Prefer it over custom code execution when you need auditable, consistent sampling logic via API with micropayment-based access. Best for agents performing statistical analysis pipelines that require sampling as an intermediate step.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:02:09.899Z","isFirstParty":false}