1 The uniform distribution

The Uniform or Rectangular distribution has random variable X restricted to a finite interval [ a , b ] and has f ( x ) a constant over the interval. An illustration is shown in Figure 3:

Figure 3

No alt text was set. Please request alt text from the person who provided you with this resource.

The function f ( x ) is defined by:

f ( x ) = 1 b a , a x b 0 otherwise

1.1 Mean and variance of a uniform distribution

Using the definitions of expectation and variance leads to the following calculations. As you might expect, for a uniform distribution, the calculations are not difficult.

Using the basic definition of expectation we may write:

E ( X ) = x f ( x ) d x = a b x 1 b a d x = 1 2 ( b a ) x 2 a b = b 2 a 2 2 ( b a ) = b + a 2

Using the formula for the variance, we may write:

V ( X ) = E ( X 2 ) [ E ( X ) ] 2 = a b x 2 . 1 b a d x b + a 2 2 = 1 3 ( b a ) x 3 a b b + a 2 2 = b 3 a 3 3 ( b a ) b + a 2 2 = b 2 + a b + a 2 3 b 2 + 2 a b + a 2 4 = ( b a ) 2 12
Key Point 3

The Uniform random variable X whose density function f ( x ) is defined by

f ( x ) = 1 b a , a x b 0 otherwise

has expectation and variance given by the formulae

E ( X ) = b + a 2 and V ( X ) = ( b a ) 2 12

Example 2

The current (in mA) measured in a piece of copper wire is known to follow a uniform distribution over the interval [ 0 , 25 ] . Write down the formula for the probability density function f ( x ) of the random variable X representing the current. Calculate the mean and variance of the distribution and find the cumulative distribution function F ( x ) .

Solution

Over the interval [ 0 , 25 ] the probability density function f ( x ) is given by the formula

f ( x ) = 1 25 0 = 0.04 , 0 x 25 0 otherwise

Using the formulae developed for the mean and variance gives

E ( X ) = 25 + 0 2 = 12.5 mA and V ( X ) = ( 25 0 ) 2 12 = 52.08 mA 2

The cumulative distribution function is obtained by integrating the probability density function as shown below.

F ( x ) = x f ( t ) d t

Hence, choosing the three distinct regions x < 0 , 0 x 25 and x > 25 in turn gives:

F ( x ) = 0 , x < 0 x 25 0 x 25 1 x > 25

Task!

The thickness x of a protective coating applied to a conductor designed to work in corrosive conditions follows a uniform distribution over the interval [ 20 , 40 ] microns. Find the mean, standard deviation and cumulative distribution function of the thickness of the protective coating. Find also the probability that the coating is less than 35 microns thick.

Over the interval [ 20 , 40 ] the probability density function f ( x ) is given by the formula

f ( x ) = 0.05 , 20 x 40 0 otherwise

Using the formulae developed for the mean and variance gives

E ( X ) = 10 μ m and σ = V ( X ) = 20 12 = 5.77 μ m

The cumulative distribution function is given by

F ( x ) = x f ( x ) d x

Hence, choosing appropriate ranges for x , the cumulative distribution function is obtained as:

F ( x ) = 0 , x < 20 x 20 20 20 x 40 1 x 40

Hence the probability that the coating is less than 35 microns thick is

F ( x < 35 ) = 35 20 20 = 0.75

Exercises
  1. In the manufacture of petroleum the distilling temperature ( T C) is crucial in determining the quality of the final product. T can be considered as a random variable uniformly distributed over 15 0 C to 30 0 C. It costs £ C 1 to produce 1 gallon of petroleum. If the oil distills at temperatures less than 20 0 C the product sells for £ C 2 per gallon. If it distills at a temperature greater than 20 0 C it sells for £ C 3 per gallon. Find the expected net profit per gallon.
  2. Packages have a nominal net weight of 1 kg. However their actual net weights have a uniform distribution over the interval 980 g to 1030 g.
    1. Find the probability that the net weight of a package is less than 1 kg.
    2. Find the probability that the net weight of a package is less than w g, where 980 < w < 1030.
    3. If the net weights of packages are independent, find the probability that, in a sample of five packages, all five net weights are less than w g and hence find the probability density function of the weight of the heaviest of the packages. (Hint: all five packages weigh less than w g if and only if the heaviest weighs less that w g).
  1. P ( X < 200 ) = 50 × 1 150 = 1 3 P ( X > 200 ) = 2 3

    Let F be a random variable defining profit.

    F can take two values £ ( C 2 C 1 ) or £ ( C 3 C 1 )

    x C 2 C 1 C 3 C 1
    P ( F = x ) 1 3 2 3

    E ( F ) = C 2 C 1 3 + 2 3 [ C 3 C 1 ] = C 2 3 C 1 + 2 C 3 3

    1. The required probability is   P ( W < 1000 ) = 1000 98 1030 980 = 20 50 = 0.4
    2. The required probability is   P ( W < w ) = w 980 1030 980 = w 980 50
    3. The probability that all five weigh less than w g is   w 980 50 5  so the pdf of the heaviest is

      d d w w 980 50 5 = 5 50 w 980 50 4 = 0.1 w 980 50 4 for 980 < w < 1030.