Uniform Distribution PDF/PMF Value Calculator

Advanced calculator for uniform distributions covering continuous density and discrete mass with interval aware logic clear error messaging endpoint inclusion options inline equations numeric precision controls sample scenarios and responsive design to deliver accurate values fast for students analysts engineers researchers and data practitioners across diverse use cases simulations teaching quality control finance logistics

Enter Inputs

Uniform · PDF / PMF

For \( \mathcal{U}(a,b) \), the density is \( f(x)=\frac{1}{b-a} \) when \( x \in [a,b] \) and \( 0 \) otherwise.

Reset

Result

Submit the form to compute the density or mass value at your specified point.

Formulas

Continuous uniform:

\[ f(x) = \begin{cases} \dfrac{1}{b-a}, & a \le x \le b \\[4pt] 0, & \text{otherwise} \end{cases} \]

Discrete uniform:

\[ P(X=x) = \begin{cases} \dfrac{1}{m-k+1}, & x \in \{k,\ldots,m\} \\[4pt] 0, & \text{otherwise} \end{cases} \]

FAQs

Density refers to the continuous uniform case \( \mathcal{U}(a,b) \) where values are real numbers. Mass refers to the discrete uniform case over integers where probabilities are assigned to distinct outcomes.
By definition of the uniform distribution, all values in the support are equally likely in the sense of density. The normalization condition forces \( f(x)=1/(b-a) \) across the entire interval.
Including or excluding endpoints does not change probabilities in the continuous case because single points have probability zero. The density value at endpoints equals \( 1/(b-a) \) when the point is considered within the support.
k and m are integers defining the inclusive range of outcomes. The number of outcomes is \( n=m-k+1 \). Each support value has equal mass \( 1/n \).
Precision does not change the true value. It only controls the number of displayed decimal places. Choose a setting that matches your reporting or comparison needs.
This page focuses on the density or mass at a point. For cumulative probabilities, use a CDF calculator specific to the uniform distribution.

Related Calculators


Uniform Distribution PDF/PMF Value Calculator
Pareto Distribution Quantile Percent Point Calculator
Cauchy Distribution CDF Value Calculator
Laplace Distribution CDF Value Calculator
Geometric Distribution Moments Mean Variance Calculator
Negative Binomial Distribution PDF/PMF Value Calculator
Square Area Calculator
Rectangle Perimeter Calculator
Rectangle Circumradius Calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.