Skip to main content
Statistics LibreTexts

6.2: Uniform Distribution

  • Page ID
    24044
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    The continuous uniform distribution models the probability that is the same on an interval from a to b. We use the following probability density function (PDF) to graph a straight line.

    f(x)= \(\begin{cases}\frac{1}{b-a}, & \text { for } a \leq x \leq b \\ 0, & \text { elsewhere }\end{cases}\)

    The probability is found by taking the area between two points within the rectangle formed from the x-axis, between the endpoints a and b, the length, and f(x) = 1/(b-a), the height. When working with continuous distributions it is helpful to draw a picture of the distribution, then shade in the area of the probability that you are trying to find. See Figure 6-5.

    clipboard_e6f411fb037b14eb5c7fdff9029cc0477.png

    Figure 6-5

    If a continuous random variable X has a uniform distribution with starting point a and ending point b then the distribution is denoted as X~U(a,b).

    Area of a Rectangle = length*height

    To find the probability (area) under the uniform distribution, use the following formulas.

    • \(\mathrm{P}(X \geq x)=\mathrm{P}(X>x)=\left(\frac{1}{b-a}\right) \cdot(b-x)\)
    • \(\mathrm{P}(X \leq x)=\mathrm{P}(X<x)=\left(\frac{1}{b-a}\right) \cdot(x-a)\)
    • \(\mathrm{P}\left(x_{1} \leq X \leq x_{2}\right)=\mathrm{P}\left(x_{1}<X<x_{2}\right)=\left(\frac{1}{b-a}\right) \cdot\left(x_{2}-x_{1}\right)\)

    The arrival time between trains at a train stop is uniformly distributed between 0 and 15 minutes. A student does not check the schedule and has arrived at the train stop.

    1. Compute the probability they wait more than 10 minutes.
    2. Compute the probability of waiting between 2 and 8 minutes.
    3. Solution

      a) First plug in the endpoints a = 0 and b = 15 into the PDF to get the height of the rectangle. The height is f(x)= \(\frac{1}{15-0}=\frac{1}{15}\). Draw and label the distribution with the a, b and the height as in Figure 6- 6. The probability is the area of the shaded rectangle P(X > 10). Draw a vertical line at x = 10. We want x values that are greater than 10, so shade the area to the right of 10, stopping at b = 15. To find the area of the shaded rectangle in Figure 6-6, we can take the length times the height. The length would be b – a = 15 – 10 = 5 and the height is f(x) = 1/15.

      clipboard_e705e3685937f403bc5eb4f975a978151.png

      Figure 6-6

      The area of the shaded rectangle is 5 (\(\frac{1}{15}\)) = \(\frac{1}{3}\) = 0.3333 or P(X > 10) = 0.3333, which is the probability of waiting more than 10 minutes. Note that this would be the same if we asked P(X ≥ 10) = 0.3333 since there is no area at the line X = 10.

      b) The area will be length times height. Draw the picture and shade the rectangle between 2 and 8, see Figure 6-7. The length is b – a = 8 – 2 = 6 and the height is still f(x) = 1/15. P(2 ≤ X ≤ 8) = 6(\(\frac{1}{15}\)) = 0.4

      clipboard_ead23711f18185a5210a913885b7cd15a.png

      Figure 6-7


    This page titled 6.2: Uniform Distribution is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Rachel Webb via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.