Shunya / Probability & Statistics
Shunya · Maths lab
Probability & statistics
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.
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
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