Often one would like to model a situation where you have one, and only one, probability assigned to a specific event, such as a dice roll. In these situations, there is a probability of success (p) and the probability of failure (1 - p). In a number of trials (n), one might have a certain number of successes (x), with the rest being failures. In our dice example, you might be playing a game where you lose automatically if you roll two ones with two dice. Maybe you desire to know the probability of rolling this amount just once after, say, 10 attempts. Or maybe you want to know the probabilty of rolling that amount fewer than 3 times in 20 attempts. Or maybe you want to know the probability of rolling that amount between 5 and 8 times in 30 attempts. In any case, the variable number of successes has a binomial distribution if
Under these conditions, the probability of observing x successes in n trials is represented by the probability density function (pdf) P(X = x) = (nCx) px(1 - p)n - x.
The mean of such a distribution is np. The variance is np(1 - p). You can interpret the mean of this distribution as the expected number of successes in n trials.
You can use the calculator below to calculate probabilities under your own scenario using the assumptions you input. The probability density function yields probabilities for a specified number of successes, whereas the cumulative density function yields probabilities for each and every number of successes up to a specified number. The graphs generated are shaped in accordance with the assumptions you enter.
If you've found a bug, or would like to contact us please click here.
Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.
© 2019–2025 Calculate.co.nz. All rights reserved.
All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.
All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.
Calculate.co.nz is part of the
realtor.co.nz,
GST Calculator,
GST.co.nz, and
PAYE Calculator group.
Calculate.co.nz is also partnered with
Health Based Building and
Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.