Toolbox

A formula sheet plus reference tools for calculator, equation solver, units, elements, graphs and molecules.

Toolbox · Probability lab

Probability lab

Coins, dice, spinners and urns: compare theoretical probability with a random simulation and watch the frequency curve approach it.

Formula
P(A)=mn,P(A)≈nAnP(A) = \frac{m}{n},\quad P(A) \approx \frac{n_A}{n}
Classical probability is m favourable outcomes over n equally likely ones; an experiment estimates it by the frequency n_A / n, where n_A counts how often A happened.

The random numbers come from a fixed seed, so the same input always gives the same run; change the seed to repeat the experiment.

Presets
Most likely outcome1 heads
Theoretical probability0.5
Observed frequency0.515
n1000
Theoretical probability0.5
Observed frequency0.515
Observed mean0.971
Theoretical mean1
0200400600800100000.20.40.60.81TrialsPTheoretical probability
Frequency settling towards the probability
OutcomeCountFrequencyTheory
0 heads2570.2570.25
1 heads5150.5150.5
2 heads2280.2280.25
Equally likely outcomes
4
Most likely outcome
1 heads
Favourable outcomes
515
Frequency minus probability
0.015
Steps
4 / 4
  1. 1Formula
    P=mnP = \frac{m}{n}

    Start from the definition of classical probability.

  2. 2Substitute
    n=4n = 4

    Count all equally likely outcomes.

  3. 3Solve
    P(1)=0.5P(\text{1}) = 0.5

    Divide the favourable count by the total.

  4. 4Conclusion
    f1000=0.515f_{1000} = 0.515

    Then run the experiment and compare frequency with theory.

Concept

Probability measures how likely an event is and always lies between 0 and 1. A certain event has probability 1 and an impossible one 0.

Frequency is what happened; probability is the theoretical value. With few trials the frequency jumps around, and with many it settles near the probability.

Going further

Counting needs equal likelihood
Dividing favourable by total only works when every basic outcome is equally likely. A loaded die or an unbalanced coin breaks the method.

Common mistakes

  • List all equally likely outcomes first, then pick the favourable ones, instead of reaching for a formula.
  • Two runs giving different frequencies is normal; compare the trend, not a single number.
Page keywordsprobability calculatorclassical probabilityfrequency and probabilitysimulationclassical probability methodfrequency versus probabilitysum of two dicedrawing balls probabilityprobability simulationcoin toss probability
AI DO LEARN

Science, made explorable.

5 Disciplines·6 Levels·647 Knowledge points

© 2026 AI DO LEARN. All rights reserved.

Original explanations, diagrams and code may not be republished without permission; please credit the source when quoting.