If we repeat an experiment many times, we can calculate the sample histogram, which is a bar chart showing the number of times each value of X was observed. This should give us an idea of the probability histogram.
In the following applet, the sample histogram for the random variable X, the sum of the values showing on the dice, is plotted. The red plot shows the expected number of occurences of X, calculated as (number of rolls) times P(X=x), where P(X=x) is the probability that X takes on the value x
Other applets related to probability.
Please send comments on this applet to