Understanding the Uniform Distribution: A Beginner’s Guide


The uniform distribution, sometimes known as the rectangular distribution, is a foundational concept in statistics. It describes a specific type of probability distribution where every single outcome within a defined range, set by a minimum value (a) and a maximum value (b), is equally likely to occur. This inherent simplicity makes the continuous uniform distribution an invaluable tool for modeling processes where randomness is evenly spread, such as in generating random numbers for simulations.

When we utilize the uniform distribution to model a random variable X, calculating the probability of X falling within a specific sub-interval—say, between two points x1 and x2—becomes highly intuitive. Since the density is constant across the entire distribution, the probability is simply determined by finding the ratio of the length of the desired sub-interval to the total length of the distribution interval.

The general mathematical formula used to calculate the probability of an outcome occurring between x1 and x2 is expressed as follows:

P(x1 < X < x2) = (x2 – x1) / (b – a)

Defining the Parameters of the Distribution

To apply the uniform distribution formula accurately, it is crucial to properly identify and define the four primary parameters involved. These values establish the absolute boundaries of the statistical model as well as the specific boundaries of the event we are attempting to analyze.

The parameters a and b define the limits of the entire population being studied, while x1 and x2 define the specific event range within those limits. Understanding this distinction is key to setting up any probability calculation correctly.

The variables utilized in the probability calculation are defined as follows:

  • x1: Represents the lower boundary of the specific range or event of interest. This value must be greater than or equal to a.
  • x2: Represents the upper boundary of the specific range or event of interest. This value must be less than or equal to b.
  • a: Defines the absolute minimum possible value (the lower bound) for the entire distribution.
  • b: Defines the absolute maximum possible value (the upper bound) for the entire distribution.

Calculating Probability: A Practical Example

To illustrate how the formula is applied, consider a scenario involving a population of dolphins. Suppose the weight of these dolphins is uniformly distributed between 100 pounds (the minimum, a) and 150 pounds (the maximum, b). Because all weights within this 50-pound range are equally probable, we can easily determine the probability of selecting a dolphin within any smaller, defined weight category.

Let’s assume we randomly select a dolphin and wish to calculate the chance that its weight falls between 120 pounds (x1) and 130 pounds (x2). We must calculate the ratio of the 10-pound range of interest (130 – 120) to the total 50-pound range of the distribution (150 – 100).

Applying the formula directly yields the following steps:

  • P(120 < X < 130) = (130 – 120) / (150 – 100)
  • P(120 < X < 130) = 10 / 50
  • P(120 < X < 130) = 0.2

The final result shows that the probability that the chosen dolphin will weigh between 120 and 130 pounds is 0.2, or 20%. This example confirms how the geometry of the uniform distribution simplifies otherwise complex probability calculations into straightforward area ratios.

Visualizing the Uniform Distribution Function

Visualizing a probability distribution provides deep insight into the principle of equal likelihood. When the continuous uniform distribution is plotted as a probability density function (PDF), the graph takes the shape of a perfect rectangle, which is why it is often called the rectangular distribution.

The height of this rectangle represents the constant probability density across the entire defined interval [a, b]. The total area under this curve must always equal 1, which represents 100% of all possible outcomes. The figure below illustrates this general shape, highlighting that all values between the bounds a and b share the same density, while any value outside this range has a probability density of zero.

Uniform distribution

Applying this visualization to our dolphin weight example (where a=100 and b=150), the distribution is clearly defined by the range of 50 pounds. The following graph displays the constant density across the interval of 100 to 150 pounds, defining the population model.

Furthermore, the specific probability we calculated—the 20% chance of a dolphin weighing between 120 and 130 pounds—corresponds directly to the area of a shaded sub-rectangle within the main distribution plot. This visual representation powerfully reinforces the concept that probability under the uniform distribution is simply the ratio of areas.

Key Statistical Properties and Metrics

In addition to calculating interval probabilities, statisticians often require measures of central tendency and dispersion to fully characterize the uniform distribution. Specific formulas are used to determine these key statistical metrics based solely on the bounds a and b.

Due to the perfectly symmetrical nature of the rectangular distribution, the mean (average) and the median (middle value) are always identical and located precisely in the center point of the interval [a, b]. The formulas governing these fundamental properties are straightforward, while measures of spread, such as variance and standard deviation, are slightly more complex.

Let’s revisit the dolphin example, where weights are uniformly distributed between 100 pounds (a) and 150 pounds (b). We can now apply these formulas to calculate the expected center and spread of the data set, providing a complete descriptive statistical profile:

  • Calculated Mean weight: (150 + 100) / 2 = 125 pounds.
  • Median weight: (150 + 100) / 2 = 125 pounds.
  • Calculated Standard Deviation of weight: √(150 – 100)2 / 12 = 14.43 pounds.
  • Calculated Variance of weight: (150 – 100)2 / 12 = 208.33 pounds squared.

Uniform Distribution Practice Problems

Test your command of the continuous uniform distribution by working through the following real-world application problems. For each scenario, the first step is always to clearly define the overall bounds (a and b) and the specific interval of interest (x1 and x2) before applying the ratio formula.

Question 1: Bus Arrival Time A local public transit service guarantees that a bus arrives at a specific stop every 20 minutes. Assuming a uniform distribution of arrival times, if a passenger arrives randomly at the bus stop, what is the probability that the bus will show up in 8 minutes or less?

Solution 1: The total possible waiting time interval is [0, 20] minutes. Therefore, the bounds are a=0 and b=20. The event of interest is waiting 8 minutes or less, which corresponds to the interval [0, 8] minutes, meaning x1=0 and x2=8.

P(0 < X < 8) = (8 – 0) / (20 – 0) = 8/20 = 0.4.


Question 2: NBA Game Duration The length of a professional NBA game, including stoppages and overtime, is uniformly distributed between 120 minutes and 170 minutes. What is the probability that a randomly selected NBA game lasts more than 155 minutes?

Solution 2: The distribution bounds are a=120 and b=170. Since we are interested in the duration lasting more than 155 minutes, the interval of interest spans from 155 minutes up to the maximum duration of 170 minutes. Thus, the interval is [155, 170], where x1=155 and x2=170.

P(155 < X < 170) = (170 – 155) / (170 – 120) = 15/50 = 0.3.


Question 3: Frog Weight Range The weight of a certain species of frog is uniformly distributed between 15 grams and 25 grams. If you randomly select a frog, what is the probability that the frog weighs between 17 and 19 grams?

Solution 3: The overall distribution interval is [15, 25] grams (a=15, b=25). The specific measurement interval is [17, 19] grams (x1=17, x2=19).

P(17 < X < 19) = (19 – 17) / (25 – 15) = 2/10 = 0.2.

Note: While manual calculations are demonstrated here for clarity, statistical software or dedicated calculators are recommended for verifying complex probability problems quickly and accurately.

Cite this article

Mohammed looti (2025). Understanding the Uniform Distribution: A Beginner’s Guide. PSYCHOLOGICAL STATISTICS. Retrieved from https://statistics.arabpsychology.com/an-introduction-to-the-uniform-distribution/

Mohammed looti. "Understanding the Uniform Distribution: A Beginner’s Guide." PSYCHOLOGICAL STATISTICS, 5 Nov. 2025, https://statistics.arabpsychology.com/an-introduction-to-the-uniform-distribution/.

Mohammed looti. "Understanding the Uniform Distribution: A Beginner’s Guide." PSYCHOLOGICAL STATISTICS, 2025. https://statistics.arabpsychology.com/an-introduction-to-the-uniform-distribution/.

Mohammed looti (2025) 'Understanding the Uniform Distribution: A Beginner’s Guide', PSYCHOLOGICAL STATISTICS. Available at: https://statistics.arabpsychology.com/an-introduction-to-the-uniform-distribution/.

[1] Mohammed looti, "Understanding the Uniform Distribution: A Beginner’s Guide," PSYCHOLOGICAL STATISTICS, vol. X, no. Y, ص Z-Z, November, 2025.

Mohammed looti. Understanding the Uniform Distribution: A Beginner’s Guide. PSYCHOLOGICAL STATISTICS. 2025;vol(issue):pages.

Download Post (.PDF)
Scroll to Top