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 is given by
We write . This pdf for two different sets of parameter values is illustrated on Figure 7.1.
We find 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 .
Possible examples of Uniform random variables are: completely random numbers, the time of births in a 24 hour period, and the times of goals in a football match (Or are they?).
Find the cdf, expected value and variance of the distribution.
The cdf is given by
The expectation is
To calculate the variance, we first calculate
So 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.
Find the upper quartile of the random variable .
Note that lies in .
If , use R to calculate the probability that (a) , (b) , (c) , (d) , (e) .
punif(3,min=0,max=10) 1-punif(6,0,10) punif(8,0,10)-punif(3,0,10) punif(10,0,10)-punif(8,0,10) punif(13,0,10)-punif(8,0,10)
Suppose that you know the score in your favourite team’s football league match was 1-0. You video the game. Assuming a Uniform distribution for the time of goals (and no half-time gap), what is the expected waiting time until the goal? What is the probability the goal is in the first half of the match?
Let model the time to the goal. If then mins and .