Shunya / Probability & Statistics
Shunya · Maths lab
Probability & statistics
Build a sample space, tap together an event, and watch P(E) update live. Flip coins and roll dice thousands of times and watch chance settle onto the theory. Draw balls from a bag with and without replacement, drag data points to see the mean, median and mode react, work with grouped data and the ogive, then explore how binomial and normal distributions take shape.
The maths behind it
What each mode covers
Coins & dice — flip one or two coins (fair or biased) or roll one or two dice up to 100,000 times. Bars show what happened, orange marks show the theory, and the running-frequency graph shows the law of large numbers. Class 9 and 10 probability.
Bag of balls — draw two balls from a bag you fill, with or without replacement. A tree of every outcome shows the exact fractions, and a simulation checks them. Conditional probability and the multiplication rule, class 12.
Bayes' theorem — a tree of 10,000 people (or items, or draws) for a medical test, three machines or three urns. Change the priors and likelihoods and see the total probability and the posterior P(cause | evidence) update, then check it by simulation. In Probability, a second event B gives conditional probability and the independence test. Class 12.
Random variable — a probability distribution as a bar chart (a die, two dice, coin tosses, a game, or your own weights) with its mean, variance and standard deviation, and a Y = aX + b change of variable. Class 12.
Poisson — the number of rare, independent events in an interval at an average rate λ, with the probabilities, the cumulative shading, a simulation and a comparison with the binomial it is the limit of. Class 12.
Mean, median, mode — type your own numbers or drag dots to see the mean, median, mode, range, quartiles, variance and standard deviation react, with a box plot. Class 9 and class 11 statistics.
Grouped data — a histogram whose bars you drag, with the mean, median and mode from the class formulas, a frequency polygon and the less-than ogive. Class 10 statistics.
Binomial — choose n and p, read P(X = k), the cumulative probability, the mean and variance, and compare simulated experiments and the normal curve. Class 12 probability distributions.
Normal curve — set the mean and standard deviation, drag two points to shade the area between them, see the 68–95–99.7 rule and draw random samples. A first look beyond the core class 12 syllabus.
Part of Shunya. See the syllabus map for the chapters these modes map to. Also try the Function & Graph Explorer. Random experiments use your browser's random number generator, so every run is different.
Formulas used in this lab
Experimental probability Class 9
- Experimental probability
- Expected number of times in n trials
- Difference from the theoretical value
- Law of large numbers
Probability of an event Class 10
- Equally likely outcomes
- Range of a probability
- Complement
- All outcomes together
- Two dice, sum s (out of 36 pairs)
- Two tosses of a coin with P(H) = p
Mean, median and mode Class 9
- Mean
- Median, n odd (the middle value of the sorted list)
- Median, n even
- Mode (there can be more than one, or none)
- Range
Grouped data Class 10
- Class mark and class width
- Mean (direct method)
- Median
- Mode
- Empirical relation
- Median class (the first class with cumulative frequency at least n/2)
Spread: quartiles, variance and standard deviation Class 11
- First quartile (median of the lower half)
- Third quartile (median of the upper half)
- Interquartile range
- Variance
- Standard deviation
Conditional probability and independent events Class 12
- Multiplication rule
- Conditional probability
- Independent events
- Two draws with replacement
- Two draws without replacement
- Same colour, and its complement
Total probability and Bayes' theorem Class 12
- Multiplication rule
- Addition rule
- Independent events
- Partition
- Total probability
- Bayes' theorem
Binomial distribution Class 12
- Probability of k successes in n trials
- Binomial coefficient
- At most k successes
- At least k successes
- Mean, variance and standard deviation
- Most likely value
- Normal curve fits well when
Normal distribution Class 12
- Density of the normal curve
- Standardising (z-score)
- Probability between a and b
- The 68 – 95 – 99.7 rule
- Total area under the curve
Random variables and the Poisson distribution Class 12
- Probability distribution
- Mean (expected value)
- Variance and standard deviation
- Linear change of variable
- Poisson probability
- Mean and variance of Poisson
- Poisson as a limit of the binomial