{"openapi":"3.1.0","info":{"title":"Math and Statistics","version":"1.0.0","description":"Descriptive statistics, correlation, probability distributions, confidence intervals, t-tests, A/B tests, sample sizes, combinatorics and number theory. One call, one computed answer, no accounts or API keys. Machine-payable over x402.","x-guidance":"Math and Statistics: Descriptive statistics, correlation, probability distributions, confidence intervals, t-tests, A/B tests, sample sizes, combinatorics and number theory. Math and Statistics does calculations an agent should not do in its head: descriptive statistics with outliers (/stats-describe), correlation and linear regression (/correlation), probability distributions normal, binomial, Poisson and t (/distribution), confidence intervals for a mean or proportion (/confidence-interval), a Welch or one-sample t-test (/t-test), an A/B conversion test (/ab-test), sample sizes for surveys and experiments (/sample-size), counting problems (/combinatorics), primality and prime factorization up to 10^18 (/prime-factor) and gcd, lcm and Bezout coefficients (/gcd-lcm). Each paid GET returns a computed verdict with the reasons, the source and what was NOT checked. A verdict of UNVERIFIED means a lookup failed: treat it as unknown. No account or key: pay per call in USDC over x402."},"servers":[{"url":"https://math-stats.x402tookit.com"}],"paths":{"/ab-test":{"get":{"operationId":"ab_test","summary":"A/B conversion test: rates, relative lift, two-proportion z-test p-value, confidence interval and a significance verdict.","description":"A/B conversion test: rates, relative lift, two-proportion z-test p-value, confidence interval and a significance verdict.","tags":["ab-test","conversion","experiment","statistics"],"parameters":[{"name":"visitorsA","in":"query","required":true,"description":"Visitors in A (control)","schema":{"type":"number"}},{"name":"conversionsA","in":"query","required":true,"description":"Conversions in A","schema":{"type":"number"}},{"name":"visitorsB","in":"query","required":true,"description":"Visitors in B (variant)","schema":{"type":"number"}},{"name":"conversionsB","in":"query","required":true,"description":"Conversions in B","schema":{"type":"number"}},{"name":"alpha","in":"query","required":false,"description":"Significance level 0.001 to 0.2 (default 0.05)","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"rateA":{"type":["null","number"]},"rateB":{"type":["null","number"]},"differencePoints":{"type":["null","number"]},"relativeLiftPct":{"type":["null","number"]},"zStatistic":{"type":["null","number"]},"pValueTwoSided":{"type":["null","number"]},"alpha":{"type":["null","number"]},"significant":{"type":["boolean","null"]},"confidenceIntervalPoints":{"type":["null","object"],"properties":{"lower":{"type":["null","number"]},"upper":{"type":["null","number"]},"level":{"type":["null","number"]}}},"pooledRate":{"type":["null","number"]},"enoughConversions":{"type":["boolean","null"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"B_WINS_SIGNIFICANT","summary":"A 20% (200/1000) vs B 25% (250/1000): +5 points (+25% relative), z = 2.677, p = 0.0074 -> significant at alpha 0.05.","reasons":["Enough conversions for the normal approximation.","Pooled two-proportion z-test, two-sided. Do not stop the moment p dips below alpha: decide the sample size in advance.","…1 more"],"rateA":0.2,"rateB":0.25,"differencePoints":5,"relativeLiftPct":25,"zStatistic":2.677397763,"pValueTwoSided":0.0074196493,"alpha":0.05,"significant":true,"confidenceIntervalPoints":{"lower":1.346362169,"upper":8.653637831,"level":0.95},"pooledRate":0.225,"enoughConversions":true,"degraded":false,"notChecked":["whether the test ran long enough or was stopped early after peeking (peeking inflates false positives)","whether users were randomly assigned and counted once","…3 more"],"source":"computed locally","asOf":"2026-10-11T06:26:05.559Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/ab-test"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/ab-test"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/ab-test"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/ab-test"}}]}}},"/combinatorics":{"get":{"operationId":"combinatorics","summary":"Exact counts: factorial, combinations, permutations, with repetition, derangements and Catalan numbers, as big integers.","description":"Exact counts: factorial, combinations, permutations, with repetition, derangements and Catalan numbers, as big integers.","tags":["combinatorics","factorial","permutations","combinations"],"parameters":[{"name":"n","in":"query","required":true,"description":"n, 0 to 2000","schema":{"type":"integer"}},{"name":"k","in":"query","required":false,"description":"k for combinations and permutations (0 to n, or any k for repetition)","schema":{"type":"integer"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"n":{"type":["null","string"]},"factorial":{"type":["null","string"]},"factorialDigits":{"type":["null","number"]},"factorialScientific":{"type":["null","string"]},"derangements":{"type":["null","string"]},"catalan":{"type":["null","string"]},"k":{"type":["null","string"]},"combinations":{"type":["null","string"]},"permutations":{"type":["null","string"]},"combinationsWithRepetition":{"type":["null","string"]},"permutationsWithRepetition":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"COUNTED","summary":"C(52,5) = 2598960; P(52,5) = 311875200.","reasons":["Exact big-integer arithmetic. Derangements: permutations with no fixed point. Catalan(n) = C(2n,n)/(n+1).","Order matters for permutations, not for combinations."],"n":"52","factorial":"80658175170943878571660636856403766975289505440883277824000000000000","factorialDigits":68,"factorialScientific":"8.06581e+67","derangements":"29672484407795138298279444403649511427278111361911893663894333196201","catalan":"29869166945772625950142417512","k":"5","combinations":"2598960","permutations":"311875200","combinationsWithRepetition":"3819816","permutationsWithRepetition":"380204032","degraded":false,"notChecked":["problems that need the inclusion-exclusion or Stirling-number setups beyond these standard counts","results are exact; very large values are also given in scientific notation (approximate)"],"source":"computed locally","asOf":"2026-10-11T06:26:05.813Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/combinatorics"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/combinatorics"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/combinatorics"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/combinatorics"}}]}}},"/confidence-interval":{"get":{"operationId":"confidence_interval","summary":"Confidence interval for a mean (t interval from a list) or a proportion (Wilson and Wald from successes and trials).","description":"Confidence interval for a mean (t interval from a list) or a proportion (Wilson and Wald from successes and trials).","tags":["statistics","confidence-interval","proportion","mean"],"parameters":[{"name":"kind","in":"query","required":true,"description":"mean or proportion","schema":{"type":"string"}},{"name":"values","in":"query","required":false,"description":"For mean: the sample values","schema":{"type":"string"}},{"name":"successes","in":"query","required":false,"description":"For proportion: number of successes","schema":{"type":"number"}},{"name":"trials","in":"query","required":false,"description":"For proportion: number of trials","schema":{"type":"number"}},{"name":"confidence","in":"query","required":false,"description":"0.80 to 0.999 (default 0.95)","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"trials":{"type":["null","number"]},"successes":{"type":["null","number"]},"proportion":{"type":["null","number"]},"confidence":{"type":["null","number"]},"zCritical":{"type":["null","number"]},"wilson":{"type":["null","object"],"properties":{"lower":{"type":["null","number"]},"upper":{"type":["null","number"]}}},"wald":{"type":["null","object"],"properties":{"lower":{"type":["null","number"]},"upper":{"type":["null","number"]}}},"marginOfErrorWald":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"PROPORTION_INTERVAL","summary":"50 of 100 = 50%: 95% Wilson CI 40.383% to 59.617%.","reasons":["Wilson score interval: reliable for small samples and proportions near 0 or 1.","The Wald interval is shown for comparison and misbehaves near 0 or 1.","…1 more"],"trials":100,"successes":50,"proportion":0.5,"confidence":0.95,"zCritical":1.959963985,"wilson":{"lower":0.403831530366,"upper":0.596168469634},"wald":{"lower":0.402001800773,"upper":0.597998199227},"marginOfErrorWald":0.09799819923,"degraded":false,"notChecked":["whether the sample is random or representative","normality for small samples when estimating a mean","…2 more"],"source":"computed locally","asOf":"2026-10-11T06:26:06.064Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/confidence-interval"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/confidence-interval"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/confidence-interval"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/confidence-interval"}}]}}},"/correlation":{"get":{"operationId":"correlation","summary":"Pearson and Spearman correlation of two lists with p-values, plus the least-squares line, R squared and an optional prediction.","description":"Pearson and Spearman correlation of two lists with p-values, plus the least-squares line, R squared and an optional prediction.","tags":["statistics","correlation","regression"],"parameters":[{"name":"x","in":"query","required":true,"description":"First list of numbers","schema":{"type":"string"}},{"name":"y","in":"query","required":true,"description":"Second list, same length","schema":{"type":"string"}},{"name":"predictAt","in":"query","required":false,"description":"Optional x value to predict y for","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"n":{"type":["null","number"]},"pearsonR":{"type":["null","number"]},"pearsonP":{"type":["null","number"]},"spearmanRho":{"type":["null","number"]},"spearmanP":{"type":["null","number"]},"slope":{"type":["null","number"]},"intercept":{"type":["null","number"]},"rSquared":{"type":["null","number"]},"residualStandardError":{"type":["null","number"]},"meanX":{"type":["null","number"]},"meanY":{"type":["null","number"]},"prediction":{"type":["null","object"],"properties":{"x":{"type":["null","number"]},"y":{"type":["null","number"]},"extrapolating":{"type":["boolean","null"]}}},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"STRONG_POSITIVE","summary":"n=5: Pearson r = 0.7746 (strong positive, p = 0.124), Spearman rho = 0.7379; y = 0.6x + 2.2, R squared 0.6; at x = 6, y is about 5.8.","reasons":["Strength bands (0.2, 0.4, 0.6, 0.8) are a common convention, not a law.","Correlation does not show cause.","…1 more"],"n":5,"pearsonR":0.774596669241,"pearsonP":0.12402706,"spearmanRho":0.737864787373,"spearmanP":0.15461852,"slope":0.6,"intercept":2.2,"rSquared":0.6,"residualStandardError":0.894427191,"meanX":3,"meanY":4,"prediction":{"x":6,"y":5.8,"extrapolating":true},"degraded":false,"notChecked":["causation (correlation never shows cause)","non-linear relationships (a correlation near 0 can hide a strong curve)","…2 more"],"source":"computed locally","asOf":"2026-10-11T06:26:06.329Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/correlation"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/correlation"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/correlation"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/correlation"}}]}}},"/distribution":{"get":{"operationId":"distribution","summary":"Probability density or mass, cumulative probability and quantiles for normal, binomial, Poisson and Student t distributions.","description":"Probability density or mass, cumulative probability and quantiles for normal, binomial, Poisson and Student t distributions.","tags":["probability","distribution","normal","binomial","poisson"],"parameters":[{"name":"dist","in":"query","required":true,"description":"normal, binomial, poisson or t","schema":{"type":"string"}},{"name":"x","in":"query","required":false,"description":"Value (k for binomial and poisson)","schema":{"type":"number"}},{"name":"p","in":"query","required":false,"description":"Probability for a quantile (normal and t only), 0 to 1","schema":{"type":"number"}},{"name":"mean","in":"query","required":false,"description":"Normal mean (default 0)","schema":{"type":"number"}},{"name":"sd","in":"query","required":false,"description":"Normal standard deviation (default 1)","schema":{"type":"number"}},{"name":"n","in":"query","required":false,"description":"Binomial trials","schema":{"type":"number"}},{"name":"prob","in":"query","required":false,"description":"Binomial success probability","schema":{"type":"number"}},{"name":"lambda","in":"query","required":false,"description":"Poisson rate","schema":{"type":"number"}},{"name":"df","in":"query","required":false,"description":"t degrees of freedom","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"distribution":{"type":["null","string"]},"parameters":{"type":["null","object"],"properties":{"mean":{"type":["null","number"]},"sd":{"type":["null","number"]}}},"x":{"type":["null","number"]},"zScore":{"type":["null","number"]},"pdf":{"type":["null","number"]},"cdf":{"type":["null","number"]},"survival":{"type":["null","number"]},"twoSidedTailProbability":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"COMPUTED","summary":"normal: P(X <= 1.96) = 0.975002104852, density/mass 0.0584409443335.","reasons":["Computed with regularised incomplete gamma and beta functions (about 10 digits)."],"distribution":"normal","parameters":{"mean":0,"sd":1},"x":1.96,"zScore":1.96,"pdf":0.0584409443335,"cdf":0.975002104852,"survival":0.0249978951482,"twoSidedTailProbability":0.0499957902964,"degraded":false,"notChecked":["whether the distribution fits your data","binomial and Poisson quantiles (only normal and t)","…1 more"],"source":"computed locally","asOf":"2026-10-11T06:26:06.592Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/distribution"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/distribution"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/distribution"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/distribution"}}]}}},"/gcd-lcm":{"get":{"operationId":"gcd_lcm","summary":"Greatest common divisor, least common multiple, Bezout coefficients and modular inverse for integers of any size.","description":"Greatest common divisor, least common multiple, Bezout coefficients and modular inverse for integers of any size.","tags":["number-theory","gcd","lcm","modular-inverse"],"parameters":[{"name":"numbers","in":"query","required":true,"description":"2 to 20 integers separated by commas or spaces","schema":{"type":"string"}},{"name":"modulus","in":"query","required":false,"description":"Optional modulus m to find the modular inverse of the first number","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"numbers":{"type":["array","null"],"items":{"type":"string"}},"gcd":{"type":["null","string"]},"lcm":{"type":["null","string"]},"pairwiseCoprime":{"type":["boolean","null"]},"bezout":{"type":["null","object"],"properties":{"x":{"type":["null","string"]},"y":{"type":["null","string"]},"identity":{"type":["null","string"]}}},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"COMMON_FACTOR","summary":"gcd 6, lcm 144; Bezout 48 x -1 + 18 x 3 = 6.","reasons":["Euclid's algorithm on exact big integers."],"numbers":["48","18"],"gcd":"6","lcm":"144","pairwiseCoprime":false,"bezout":{"x":"-1","y":"3","identity":"48 x -1 + 18 x 3 = 6"},"degraded":false,"notChecked":["negative-number conventions (results use absolute values for gcd and lcm)","numbers beyond 60 digits"],"source":"computed locally","asOf":"2026-10-11T06:26:06.857Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/gcd-lcm"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/gcd-lcm"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/gcd-lcm"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/gcd-lcm"}}]}}},"/prime-factor":{"get":{"operationId":"prime_factor","summary":"Primality test and prime factorization of integers up to 10^19, with divisor count, divisor sum, Euler totient and number type.","description":"Primality test and prime factorization of integers up to 10^19, with divisor count, divisor sum, Euler totient and number type.","tags":["number-theory","prime","factorization","totient"],"parameters":[{"name":"n","in":"query","required":true,"description":"Integer from 2 to 10^19","schema":{"type":"integer"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"n":{"type":["null","string"]},"isPrime":{"type":["boolean","null"]},"factors":{"type":["array","null"],"items":{"type":"object","properties":{"prime":{"type":["null","string"]},"exponent":{"type":["null","number"]}}}},"factorization":{"type":["null","string"]},"distinctPrimes":{"type":["null","number"]},"divisorCount":{"type":["null","string"]},"divisorSum":{"type":["null","string"]},"totient":{"type":["null","string"]},"aliquotSum":{"type":["null","string"]},"numberType":{"type":["null","string"]},"squareFree":{"type":["boolean","null"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"COMPOSITE","summary":"600851475143 = 71 x 839 x 1471 x 6857; 16 divisors, sum 610544148480, totient 591194251200, deficient.","reasons":["Square-free (no repeated prime factor).","Aliquot sum 9692673337 versus 600851475143: deficient."],"n":"600851475143","isPrime":false,"factors":[{"prime":"71","exponent":1},{"prime":"839","exponent":1}],"factorization":"71 x 839 x 1471 x 6857","distinctPrimes":4,"divisorCount":"16","divisorSum":"610544148480","totient":"591194251200","aliquotSum":"9692673337","numberType":"deficient","squareFree":true,"degraded":false,"notChecked":["numbers above 10^19","this does not give a primality certificate, but the Miller-Rabin test with 12 fixed bases is deterministic (proven correct) below 3.3 x 10^24","…1 more"],"source":"computed locally","asOf":"2026-10-11T06:26:07.115Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/prime-factor"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/prime-factor"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/prime-factor"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/prime-factor"}}]}}},"/sample-size":{"get":{"operationId":"sample_size","summary":"Required sample size for a survey (margin of error, optional finite population) or an A/B test (baseline, lift, power).","description":"Required sample size for a survey (margin of error, optional finite population) or an A/B test (baseline, lift, power).","tags":["statistics","sample-size","power","survey","ab-test"],"parameters":[{"name":"mode","in":"query","required":true,"description":"survey or ab","schema":{"type":"string"}},{"name":"margin","in":"query","required":false,"description":"Survey margin of error as a fraction, e.g. 0.05","schema":{"type":"number"}},{"name":"population","in":"query","required":false,"description":"Survey population size (optional, for finite correction)","schema":{"type":"number"}},{"name":"proportion","in":"query","required":false,"description":"Expected proportion for a survey (default 0.5)","schema":{"type":"number"}},{"name":"baseline","in":"query","required":false,"description":"A/B baseline conversion rate, e.g. 0.10","schema":{"type":"number"}},{"name":"target","in":"query","required":false,"description":"A/B rate you want to detect, e.g. 0.12","schema":{"type":"number"}},{"name":"confidence","in":"query","required":false,"description":"0.80 to 0.999 (default 0.95)","schema":{"type":"number"}},{"name":"power","in":"query","required":false,"description":"A/B power 0.5 to 0.99 (default 0.8)","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"required":{"type":["null","number"]},"unroundedInfinitePopulation":{"type":["null","number"]},"finitePopulationApplied":{"type":["boolean","null"]},"z":{"type":["null","number"]},"margin":{"type":["null","number"]},"proportion":{"type":["null","number"]},"confidence":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"SURVEY_SIZE","summary":"Survey for +/-5 points at 95% confidence (p=0.5): 385 respondents.","reasons":["Uses n = z squared times p(1-p) over margin squared; p = 0.5 is the worst case.","Divide by your expected response rate to know how many people to invite."],"required":385,"unroundedInfinitePopulation":384.146,"finitePopulationApplied":false,"z":1.959964,"margin":0.05,"proportion":0.5,"confidence":0.95,"degraded":false,"notChecked":["non-response (inflate the survey size by 1 / expected response rate)","design effects from clustering or weighting","…2 more"],"source":"computed locally","asOf":"2026-10-11T06:26:07.367Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/sample-size"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/sample-size"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/sample-size"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/sample-size"}}]}}},"/stats-describe":{"get":{"operationId":"stats_describe","summary":"Descriptive statistics for a list of numbers: mean, median, mode, spread, quartiles, outliers, skewness and kurtosis.","description":"Descriptive statistics for a list of numbers: mean, median, mode, spread, quartiles, outliers, skewness and kurtosis.","tags":["statistics","descriptive","outliers"],"parameters":[{"name":"values","in":"query","required":true,"description":"Numbers separated by commas, spaces or semicolons (2 to 500)","schema":{"type":"string"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"count":{"type":["null","number"]},"sum":{"type":["null","number"]},"mean":{"type":["null","number"]},"median":{"type":["null","number"]},"modes":{"type":["array","null"],"items":{"type":"number"}},"min":{"type":["null","number"]},"max":{"type":["null","number"]},"range":{"type":["null","number"]},"q1":{"type":["null","number"]},"q3":{"type":["null","number"]},"iqr":{"type":["null","number"]},"varianceSample":{"type":["null","number"]},"sdSample":{"type":["null","number"]},"variancePopulation":{"type":["null","number"]},"sdPopulation":{"type":["null","number"]},"standardErrorMean":{"type":["null","number"]},"coefficientOfVariationPct":{"type":["null","number"]},"skewnessSample":{"type":["null","number"]},"excessKurtosisSample":{"type":["null","number"]},"outlierFences":{"type":["null","object"],"properties":{"low":{"type":["null","number"]},"high":{"type":["null","number"]}}},"outliers":{"type":["array","null"],"items":{"type":"number"}},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"OUTLIERS_PRESENT","summary":"n=8: mean 5, median 4.5, sample SD 2.13809, range 2 to 9; 1 outlier(s) by the 1.5 IQR rule: 9.","reasons":["Quartiles use linear interpolation (Excel QUARTILE.INC, NumPy default).","Outliers are values beyond 1.5 times the interquartile range from the quartiles."],"count":8,"sum":40,"mean":5,"median":4.5,"modes":[4],"min":2,"max":9,"range":7,"q1":4,"q3":5.5,"iqr":1.5,"varianceSample":4.57142857143,"sdSample":2.1380899353,"variancePopulation":4,"sdPopulation":2,"standardErrorMean":0.755928946018,"coefficientOfVariationPct":42.7618,"skewnessSample":0.818488,"excessKurtosisSample":0.940625,"outlierFences":{"low":1.75,"high":7.75},"outliers":[9],"degraded":false,"notChecked":["whether the data are a sample or the whole population (both spreads are shown)","distribution shape beyond skewness and kurtosis","…1 more"],"source":"computed locally","asOf":"2026-10-11T06:26:07.630Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/stats-describe"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/stats-describe"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/stats-describe"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/stats-describe"}}]}}},"/t-test":{"get":{"operationId":"t_test","summary":"Welch two-sample or one-sample t-test: t statistic, degrees of freedom, p-value, confidence interval and Cohen's d.","description":"Welch two-sample or one-sample t-test: t statistic, degrees of freedom, p-value, confidence interval and Cohen's d.","tags":["statistics","t-test","hypothesis-test","p-value"],"parameters":[{"name":"a","in":"query","required":true,"description":"Sample A values","schema":{"type":"string"}},{"name":"b","in":"query","required":false,"description":"Sample B values (two-sample test)","schema":{"type":"string"}},{"name":"mu","in":"query","required":false,"description":"Hypothesised mean for a one-sample test (use instead of b)","schema":{"type":"number"}},{"name":"alpha","in":"query","required":false,"description":"Significance level 0.001 to 0.2 (default 0.05)","schema":{"type":"number"}}],"responses":{"200":{"description":"The answer.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":["null","string"]},"summary":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"test":{"type":["null","string"]},"meanA":{"type":["null","number"]},"meanB":{"type":["null","number"]},"nA":{"type":["null","number"]},"nB":{"type":["null","number"]},"cohensD":{"type":["null","number"]},"tStatistic":{"type":["null","number"]},"degreesOfFreedom":{"type":["null","number"]},"pValueTwoSided":{"type":["null","number"]},"alpha":{"type":["null","number"]},"difference":{"type":["null","number"]},"standardError":{"type":["null","number"]},"confidenceInterval":{"type":["null","object"],"properties":{"lower":{"type":["null","number"]},"upper":{"type":["null","number"]},"level":{"type":["null","number"]}}},"significant":{"type":["boolean","null"]},"degraded":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"source":{"type":["null","string"]},"asOf":{"type":["null","string"]},"disclaimer":{"type":["null","string"]}}},"example":{"verdict":"SIGNIFICANT","summary":"Welch two-sample t-test (unequal variances): t = -2.455, df = 24.99, two-sided p = 0.0214 -> significant at alpha 0.05; difference -2.16667 (95% CI -3.9841 to -0.349237).","reasons":["Two-sided test. 'Not significant' means the data do not rule out no difference, not that there is none.","Significance is not importance: check the effect size (Cohen's d: about 0.2 small, 0.5 medium, 0.8 large)."],"test":"Welch two-sample t-test (unequal variances)","meanA":20.82,"meanB":22.98666667,"nA":15,"nB":15,"cohensD":-0.89656939,"tStatistic":-2.455356398,"degreesOfFreedom":24.98852929,"pValueTwoSided":0.021378001,"alpha":0.05,"difference":-2.16666666667,"standardError":0.882424510014,"confidenceInterval":{"lower":-3.98409626714,"upper":-0.349237066192,"level":0.95},"significant":true,"degraded":false,"notChecked":["the assumptions: independent observations and roughly normal data (or large samples)","practical importance (a tiny effect can be 'significant' with enough data)","…2 more"],"source":"computed locally","asOf":"2026-10-11T06:26:07.896Z","disclaimer":"Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting."}}}},"400":{"description":"A parameter was missing or out of range."},"402":{"description":"Payment Required"},"502":{"description":"The upstream source failed or timed out."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.0200"},"protocols":[{"x402":{"network":"eip155:8453","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/t-test"}},{"x402":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/t-test"}},{"x402":{"network":"eip155:137","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/t-test"}},{"x402":{"network":"eip155:42161","scheme":"exact","currency":"USDC","endpoint":"https://math-stats.x402tookit.com/t-test"}}]}}}}}