Binomial distribution lab: probabilities and hypothesis tests

Set the number of trials and the chance of success, see the bar chart of probabilities and test a claim with a one-tailed binomial hypothesis test.

Keep it one tap away for everyday use.

Bookmark Binomial lab?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

Or install fibub as an app: every tool you open then works offline.

  1. Set
  2. Chart
  3. Test
Nothing is uploadedWorks offline once open

B(n, p) probabilities

One-tailed hypothesis test

Null hypothesis H0: the chance of success is p (the value above).

Check yourself

What it does

A binomial distribution counts the number of successes in a fixed number of independent trials, each with the same chance of success. It is written B(n, p). This lab draws the chart of probabilities for any n up to 50 and any p, and gives P(X = k), P(X ≤ k) and P(X ≥ k) for the k you choose.

The second half runs a one-tailed hypothesis test. You say what chance of success is claimed (the null hypothesis), enter how many successes you observed, choose the direction and a significance level, and the lab gives the probability of a result at least that extreme, the critical region, and whether you would reject the claim. For tests on means and other data, use hypothesis tests, and for building probabilities step by step see probability tree and random variable builder. When n is large, the normal lab shows how the shape becomes bell-shaped.

How to use it

  1. Set the number of trials n and the probability p.
  2. Pick a k to see P(X = k), P(X ≤ k) and P(X ≥ k), with the matching bars highlighted.
  3. In the test box, enter the number of successes you observed, choose whether you suspect p is higher or lower, and pick a significance level.
  4. Read the probability, the critical region and the conclusion.
  5. Answer the questions at the bottom.

What each setting does

  • n: the number of trials.
  • p: the chance of success on each trial.
  • k: the number of successes you are asking about.
  • Observed successes: what happened in the test.
  • Direction: whether the test is for p higher than claimed, or lower.
  • Significance level: how unlikely a result must be before you doubt the claim, usually 5%.

Worked example

A fair coin is flipped 20 times, so X ~ B(20, 0.5). P(X = 10) = 0.1762 and P(X ≤ 7) = 0.1316. Suppose someone claims a coin is fair, but you suspect it favours heads, and you see 15 heads. P(X ≥ 15) = 0.0207, which is below 5%, so you reject the claim of fairness. The critical region at 5% is X ≥ 15: any result of 15 or more would lead you to reject.

FAQs

What are the conditions for a binomial model? There is a fixed number of trials, each is independent, each has only two outcomes and the chance of success is the same every time.

Why do we use P(X ≥ 15) and not P(X = 15)? In a test, we ask how likely a result at least as extreme as the one seen is, under the claim being tested.

Does rejecting the claim prove it is false? No. It only says a result this extreme would be unlikely if the claim were true. There is always a small chance of being wrong, which is what the significance level controls.

What if no value reaches the significance level? Then the critical region is empty: even the most extreme result is not unlikely enough, and the lab says so.

Where the numbers come from

  • Binomial probabilities P(X = k) = nCk × p^k × (1 − p)^(n − k): standard A-level statistics, the same values as printed binomial tables. Drawings are fibub's own.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-16.

Change log for Binomial lab

  1. Renumber UK tools to L327-L329, L338, L339 (gapless) Details on GitHub
  2. UK curriculum: England KS3, GCSE and A-level topic map, pages and 5 gap tools Details on GitHub

Every change to fibub

Related tools

Hypothesis tests #T388 Answer three questions and the right test is picked for you, then run it on your pasted data: t tests (one-sample, Welch, Student, paired), ANOVA with Tukey HSD, chi-square, Fisher's exact, Mann-Whitney, Wilcoxon, Kruskal-Wallis and Shapiro-Wilk. Plain-English results, effect sizes and assumption checks. Matches scipy. Probability tree #L94 Set P(A), P(B | A) and P(B | A′) with sliders and see the tree, the four path probabilities, P(B) by total probability, P(A | B) by Bayes' theorem and an independence check. 1000 dots show the same numbers as people, which makes it clear why a positive result on a test for something rare is often a false alarm. Random variable builder #L311 Build a probability distribution table (or pick coins, dice, drawing without replacement or a binomial with sliders) and get the mean, E(X²), variance and standard deviation with every step, a bar chart with μ and μ ± σ, and a simulation that runs the experiment 10 to 10 000 times so you can watch the average settle on the mean. Normal lab #L338 Set the mean and standard deviation, shade the area you want and read the probability. Also works backwards to find the value for a given probability. Quadratic explorer #L68 Slide a, b and c and watch the parabola move: vertex, roots and the discriminant update live, completing the square is drawn with tiles, and the middle term is split for you. With fresh practice questions. Pythagoras proof playground #L69 Drag a right triangle and watch the squares on its sides add up. Slide through four visual proofs (rearrangement, Bhaskara, similar triangles, Baudhayana) with your own side lengths, and list Pythagorean triples.