Explain the discrete uniform distribution and its characteristics

Quick Overview

Asks for a description of the discrete uniform distribution, including its probability mass function, mean, variance and shape. Tests basic probability skills such as deriving moments, telling the discrete case from the continuous one, and knowing where equal-likelihood models apply.

Explain the discrete uniform distribution and its characteristics

Role: Data Scientist

Category: Statistics & Math

Difficulty: easy

Interview Round: Other

Explain the discrete uniform distribution and its characteristics. ```hint Start from a fair die Work out the mean and variance of a fair six-sided die first, then generalize to the integers from $a$ to $b$ with a shift. ``` ### What a Strong Answer Covers - The probability mass function on a finite set and on the integers from $a$ to $b$, including the count of possible values - The mean and variance, with a derivation or a check on a familiar case - Shape properties such as symmetry, the flat PMF, the step-shaped CDF and maximum entropy - Where the distribution is used and how it differs from the continuous uniform ### Follow-up Questions - Derive the variance of the discrete uniform distribution on the integers 1 to $n$. - You observe a few draws without replacement from the integers 1 to $N$ with $N$ unknown. How would you estimate $N$? - How would you generate a uniform integer in $[0, n)$ from a random 32-bit integer without bias? - What is the distribution of the sum of two fair dice, and why is it no longer uniform?

Overview: Asks for a description of the discrete uniform distribution, including its probability mass function, mean, variance and shape. Tests basic probability skills such as deriving moments, telling the discrete case from the continuous one, and knowing where equal-likelihood models apply.

General logo
General
Nov 24, 2026
easyData ScientistOtherStatistics & Math
0
0

Explain the discrete uniform distribution and its characteristics.

What a Strong Answer Covers Guidance

  • The probability mass function on a finite set and on the integers from aa to bb , including the count of possible values
  • The mean and variance, with a derivation or a check on a familiar case
  • Shape properties such as symmetry, the flat PMF, the step-shaped CDF and maximum entropy
  • Where the distribution is used and how it differs from the continuous uniform

Follow-up Questions Guidance

  • Derive the variance of the discrete uniform distribution on the integers 1 to nn .
  • You observe a few draws without replacement from the integers 1 to NN with NN unknown. How would you estimate NN ?
  • How would you generate a uniform integer in [0,n)[0, n) from a random 32-bit integer without bias?
  • What is the distribution of the sum of two fair dice, and why is it no longer uniform?