Member-only story

Statistics interview question: What are the parameters of the uniform distribution?

Crystal X
2 min readJan 21, 2025

--

In order to get a grasp of statistics, it is important to understand the different distributions. There are quite a few distributions that are used in statistics, such as the normal, binomial, and Poisson, but the distribution that is going to be discussed in the blog post is the uniform distribution.

The discrete uniform distribution, or rectangle, is a symmetric probability distribution wherein a finite number of values are equally likely to be observed, with every one of n values having equal probability 1/n. In short, every event from a to b is equally likely to occur.

The parameters of the uniform distribution are a and b, which represent the minimum and maximum values of a random variable X. A is the lower endpoint of the distribution, while b is the upper endpoint, such that a <= X <= b.

The formula for the discrete uniform distribution is:-

A uniform distribution can be created in Python by using numpy random function, as seen below:-

In summary, the parameters of the uniform distribution are a and b, where a <= X <= b.

--

--

Crystal X
Crystal X

Written by Crystal X

I have over five decades experience in the world of work, being in fast food, the military, business, non-profits, and the healthcare sector.

No responses yet