Uniform Distribution (original) (raw)

Last Updated : 10 Dec, 2025

A Uniform Distribution is a type of probability distribution in which every outcome in a given range is equally likely to occur. That means there is no bias—no outcome is more likely than another within the specified set.

The graph represents a continuous uniform distribution on the interval [a, b].

uniform-distribution

Types of Uniform Distribution

**Discrete Uniform Distribution

**Continuous Uniform Distribution

Discrete Uniform Distribution

Discrete uniform distribution is a probability distribution that describes the likelihood of outcomes when each outcome in a finite set is **equally likely. It's characterized by a constant probability mass function (PMF) over a finite range of values.

Its properties and applications extend across various disciplines, making it a versatile tool in data analysis and decision-making processes.

P(X=x_i) = \frac{1}{n}, for \: i=1,2,…,n

**Example: Rolling fair dice or flipping fair coins, where each outcome has an equal probability.

**Estimation of Maximum

In statistics, the estimation of the maximum refers to methods used to estimate the largest value or the maximum observation in a dataset. Techniques such as order statistics and maximum likelihood estimation are commonly employed for this purpose.

**Random Permutation

A random permutation is a random arrangement of a set of items or elements. It's often used in various fields such as cryptography, statistics, and computer science. Generating random permutations is essential in algorithms, simulations, and experimental designs.

**Graph of Discrete Uniform Distribution

**Rolling a Fair Die

**Graph: Probability Mass Function (PMF) of Rolling a Fair Die

Uniform-Distribution-1

Graph of Uniform Distribution

The graph for this example will show each possible outcome (1 through 6) on the x-axis and the probability (1/6) on the y-axis.

**Properties of Discrete Uniform Distribution

**Applications of Discrete Uniform Distribution

Continuous Uniform Distributions

Continuous uniform distributions, also known as rectangular distributions, are probability distributions where the probability density function (PDF) is constant within a certain interval and zero elsewhere. This means that all outcomes within the interval are equally likely.

Continuous uniform distributions provide a simple yet powerful framework for understanding and modeling randomness within defined intervals, making them essential tools in probability theory and applied statistics.

**Example: Generating a random number between 0 and 1.

**Note: The density is constant and non-zero over an interval. The probability at a particular point is always zero.

P(a ≤ X ≤ b) = 1 (entire interval).
P(X = x) = 0 for any exact value of x.

**Probability Density Function (PDF)

The probability density function (PDF) of a continuous uniform distribution defines the probability of a random variable falling within a particular interval. For a continuous uniform distribution over the interval [a, b], the PDF is given by:

f(x) = \frac{1}{(b - a)} for a ≤ x ≤ b and f(x) = 0 otherwise.

The height of the PDF is **constant between a and b.

**Cumulative Distribution Function (CDF)

The cumulative distribution function (CDF) of a continuous uniform distribution gives the probability that a random variable is less than or equal to a certain value. For the continuous uniform distribution over [a, b], the CDF is defined as:

F(x) = (x - a) / (b - a) for a ≤ x ≤ b and F(x) = 0 for x < a, F(x) = 1 for x > b.

This function is a rising straight line between a and b, showing how probability accumulates across the interval.

**Generating Functions

Generating functions provide a way to represent sequences of numbers as power series. In probability theory, generating functions are often used to manipulate sequences of random variables. They can simplify calculations and help derive important properties of random variables and distributions.

**Standard Uniform Distribution

The standard uniform distribution is a special case of the continuous uniform distribution where the interval is [0, 1]. It is widely used in simulations, random number generation, and various statistical applications.

**Graph of Continuous Uniform Distribution

**Random Number Generation: Suppose a random number generator is programmed to produce a real number between 0 and 1, with each number in this range being equally likely. This is an example of a continuous uniform distribution.

**Graph: Probability Density Function (PDF) of Random Number Generation

Uniform-Distribution-2

Graph of PDF of Random Number Generation

The graph will show the range [0, 1] on the x-axis, with a constant probability density of 1 across this interval.

**Properties of Continuous Uniform Distributions

**Applications of Continuous Uniform Distributions

Uniform Distribution Formula

A random variable X is said to be uniformly distributed over the interval -∞ < a < b < ∞. Formulae for uniform distribution:

Probability density function(pdf) f(x) = \frac{1}{( b - a)}, a ≤ x ≤ b
Mean(μ) \int_{a}^{b} x.f(x) \,dx =\frac{1}{b-a}[\frac{x^2}{2}]_a^b = \frac{(a + b)}{2}
Variance (σ2 ) \int_{a}^{b} x.f(x) \,dx =\frac{1}{b-a}[\frac{x^2}{2}]_a^b = μ2' - μ2 = \int_{a}^{b}x^2.\frac{1}{b-a}dx \hspace{0.1cm}-(\frac{a+b}{2})^2 = \frac{(b - a)^2 }{12}
Standard Deviation (σ) = \sqrt {\frac{(b - a)^2}{12}}
Cumulative Distribution function (CDF) = \frac{(x - a)}{(b - a) } for x ∈ [a , b]
Median = \frac {(a + b)}{2}
For the conditional probability = P( c < x < d ) = (d - c ) × f(x)= \frac{(d - c)}{(b - a)}

Discrete vs Continuous Uniform Distribution

The following table shows the difference between Continuous and Discrete Uniform Distribution:

**Discrete Uniform Distribution **Continuous Uniform Distribution
Finite or countable number of possible outcomes An infinite number of possible outcomes within a continuous interval
Each outcome has a specific, equal probability of occurring.P(X = xi​) = 1/n ​,for i=1,2,…,n The probability density function (PDF) is constant over the given interval [a,b].P(a≤X≤b) = 1 (entire interval)But zero at a specific point, i.e. P(X = x) = 0 for any exact value of x.
- Rolling a fair die (6 possible outcomes) - Drawing a card from a deck (52 possible outcomes) - Generating a random number between 0 and 1 - Time of arrival at a bus stop (between 0 and 10 minutes)
Probability Mass Function (PMF) with individual bars representing each outcome with equal height Probability Density Function (PDF) with a flat, continuous line over the interval indicating equal likelihood across all points

Sample Questions on Uniform Distribution

**Question 1: A random variable X has a uniform distribution over(-2, 2),

(i) Find k for which P(X>k) = 1/2 (ii) Evaluate P(X<1) (iii) P[|X-1|<1]

**Solution:

****(i)** X =f(x) = 1/(b-a) =1/(2-(-2)) = 1/4

We want the value of k such that the probability to the right of k is 1/2.
In a uniform distribution, probability is proportional to length, so we find k such that:
2-k/2-(-2) = 1/2
2-k/4 = 1/2
2-k = 2
k = 0

By solving we get k = 0

****(ii)** Evaluate P(X < 1)
We find the proportion of the interval [−2,2] that is less than 1:
P(X < 1) = 1 - (-2)/4 = 3/4

****(iii)** Evaluate P( ∣X − 1∣ < 1 )
This is equivalent to:
P (−1 < X − 1 <1 )⇒P (0 < X < 2)
Now compute:
P( 0 < X < 2 ) = 2 − 0/4 = 2/4 = 1/2

**Question 2: If X is uniformly distributed in (-1,, 4) then

(i) Its mean is ______________.

(ii) Its variance is ______________.

(iii) Spade's standard deviation is ___________.

(iv) Its median is ______________.

**Solution:

Here, a = -1 and b = 4

****(i)** Mean (μ) = (4-1)/2 = 1.5

****(ii)** Variance(σ2) = (4+1)2 /12 = 2.08

****(iii)** Standard deviation(σ) =√2.08 = 1.443

****(iv)** Median = (4-1)/2 = 1.5

**Question 3: If there are 52 cards in the traditional deck of cards with four suits: hearts, a clubs, and diamonds. Each suite contains 13 cards of which 3 cards are face cards. The new deck is formed by excluding a . Then what is the probability of getting a heart card from the modified deck?

**Solution:

In the question, the given number of cards is finite so it is a discrete uniform distribution.
Given:

Modified Deck Composition:

4 cards/suit × 4 suits=16 cards

Formula for the probability in discrete uniform distribution is P(X) = 1/n

Probability of getting heart in the modified deck P(Heart) = 4/16 ​= 1/4 = 0.25

**Question 4: Using the uniform distribution probability density function for random variable X. in (0, 20), find P(3< X < 16).

**Solution:

Here, a = 0, b =20

f(x) = 1/(20 - 0) = 1/20

P(3< X < 16) = (16 - 3) × (1/20) = 13/20

**Question 5: A random variable X has a uniform distribution over (-5 , 6), find cumulative distribution function for x = 3.

**Solution:

Here, a = -5, b = 6, x = 3

CDF = (3 - (-5))/(6 - (-5)) = 8/11

Practice Problems on Uniform Distribution

**Question 1. A random variable X follows a uniform distribution over the interval [2,10]. Find the probability that X lies between 4 and 8.

**Question 2. Suppose a continuous random variable Y is uniformly distributed over the interval [0, 5]

**Question 3. A random variable Z is uniformly distributed over [3,15]. Spade's Derive the CDF of Z and use it to find the probability that Z is less than or equal to 9.