{"uid":"cap_jO4HwqOtYqjkpa757YhGF","slug":"streak-probability-calculator-edb0e0b3","name":"Streak Probability Calculator","description":"Chance of a run: r successes in a row (or r identical outcomes) somewhere in n independent trials, like coin flips.","url":"https://probability-calc.x402tookit.com/streak-odds?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["n","r"],"properties":{"n":{"type":"integer","description":"Number of trials, 1 to 5000"},"p":{"type":"number","description":"Probability of success on each trial (default 0.5)"},"r":{"type":"integer","description":"Streak length wanted, 1 to n"},"kind":{"type":"string","description":"heads (a run of successes, default) or either (a run of identical outcomes, both kinds)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"p":{"type":["null","number"]},"asOf":{"type":["null","string"]},"kind":{"type":["null","string"]},"oneIn":{"type":["null","number"]},"source":{"type":["null","string"]},"trials":{"type":["null","number"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"probability":{"type":["null","number"]},"streakLength":{"type":["null","number"]},"roughTypicalLongestRun":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0w3IvBF_Vp9g_avTk4Fte","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the probability of getting a run of r consecutive identical outcomes somewhere within n independent trials (e.g. coin flips).","exampleAgentPrompt":"What's the probability of getting heads 7 times in a row somewhere in 200 coin flips? Use a fair coin (p=0.5) and check for a run of successes.","exampleUseCases":[{"title":"Coin flip streak analysis","prompt":"If I flip a fair coin 500 times, what's the chance I'll see at least 10 heads in a row at some point?"},{"title":"Sports winning streak odds","prompt":"A team wins each game with 60% probability and plays 82 games in a season — what are the odds they go on a winning streak of 8 or more games in a row somewhere during the season?"},{"title":"Identical outcome run in 50/50 game","prompt":"In a game with a 50/50 outcome, if I play 100 rounds, what's the probability of seeing the same result 6 times in a row — either 6 wins or 6 losses back to back — using the 'either' kind?"}],"resultDescription":"Returns the calculated probability (0–1) of a streak of length r occurring in n trials, a one-in-N representation of those odds, the typical longest expected run, a plain-English summary and verdict, and optionally a disclaimer and degraded flag if the computation was approximate.","failureModes":["Missing required parameters n or r returns an error","r greater than n is invalid and returns an error","n out of range (above 5000 or below 1) returns a validation error","p outside [0,1] returns an error","Invalid kind value (not 'heads' or 'either') returns an error"],"whenToPreferThis":"Use this endpoint when you need to compute the probability that a consecutive run of r identical or successful outcomes occurs at least once within n independent trials — particularly for coin-flip-style binary experiments. Prefer this over general binomial calculators when the user cares about streaks or consecutive sequences rather than total counts of successes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:34:53.857Z","isFirstParty":false,"canonicalSlug":"streak-probability-calculator-edb0e0b3"}