A continuous random variable for which all outcomes in a given range have equal chance of occurring is said to be uniformly distributed. Specifically, a random variable has a Uniform distribution over the interval if the pdf and cdf are given by
where , which we write or sometimes . This pdf for two different sets of parameter values is illustrated on Figure 3.1 (First Link, Second Link).
The reason that this pdf is appropriate for such random outcomes is that for all and such that
so the probability of falling in any interval of length in the range is the same for all , i.e. independent of the position and proportional to the interval length .
The -th moment of the distribution is
Hence the expectation (taking in the result above) is
and the variance is
These results seem logical as if all values in the interval are equally likely then the expected value should be the average of the endpoints. Similarly the wider the interval the more variable the outcomes, hence the larger variance.
You leave your room and walk around campus for 20 minutes. On arriving back at your room you notice some chewing gum on the sole of your shoe, which was not there when you set out. Assuming a Uniform distribution for the time when you trod on the gum, what is the probability that you trod on it within 2 minutes of leaving your room? What about in the final 2 minutes as you returned to your room?
Solution. Let model the time to stepping on the gum. If then and .