Continuous Uniform Distribution Calculator

Estimate density, cumulative probability, quantiles, and moments fast. Visualize interval probabilities with clean formulas and example tables. Explore results with graph exports and guided usage notes.

Calculator Inputs

Minimum possible value of the distribution.
Maximum possible value of the distribution.
Used for single-point PDF and CDF evaluation.
First value for interval probability.
Second value for interval probability.
Choose a probability between 0 and 1.
Controls plotted resolution for the graph.

Distribution Graph

The graph shows both the density function and cumulative distribution.

Example Data Table

This example uses default values when no submission exists.

x value PDF f(x) CDF F(x)
2.0000.1250.000
4.0000.1250.250
6.0000.1250.500
8.0000.1250.750
10.0000.1251.000

Formula Used

For a continuous uniform random variable on the interval [a, b], every value inside the range is equally likely.

Probability density function: f(x) = 1 / (b − a), for a ≤ x ≤ b, otherwise 0.

Cumulative distribution function: F(x) = 0 for x ≤ a, F(x) = (x − a)/(b − a) for a < x < b, and F(x) = 1 for x ≥ b.

Mean: μ = (a + b) / 2

Variance: σ² = (b − a)² / 12

Standard deviation: σ = √[(b − a)² / 12]

Interval probability: P(c ≤ X ≤ d) = F(d) − F(c)

Quantile: Q(p) = a + p(b − a)

How to Use This Calculator

  1. Enter the lower bound a and upper bound b.
  2. Provide a point x for PDF and CDF evaluation.
  3. Enter x1 and x2 to measure interval probability.
  4. Type a probability p between 0 and 1.
  5. Set graph points for smoother or lighter plotting.
  6. Click Calculate to display results above the form.
  7. Review the graph, summary metrics, and example table.
  8. Use CSV or PDF buttons to export results.

Frequently Asked Questions

1. What does a continuous uniform distribution represent?

It represents a variable that can take any value between two limits, where each equal-length interval has the same probability.

2. Why is the PDF constant inside the interval?

Because the distribution assumes equal likelihood across the entire range, the density stays flat from the lower bound to the upper bound.

3. Can x be outside the interval [a, b]?

Yes. The PDF becomes zero outside the interval. The CDF becomes zero below a and one above b.

4. How is interval probability calculated?

It is calculated by subtracting the cumulative probability at the lower interval value from the cumulative probability at the upper interval value.

5. What does the quantile output mean?

The quantile returns the x-value where the chosen cumulative probability is reached within the distribution range.

6. Why must b be greater than a?

The interval width must be positive. Otherwise, the density formula divides by zero or produces an invalid distribution.

7. What are common applications of this distribution?

It is used in simulation, random sampling, modeling uncertain measurements, timing problems, and simple probability examples.

8. Do single points have probability in continuous models?

No. A single exact point has probability zero, even though the density at that point can still be positive.

Related Calculators

negative binomial calculatordistribution curve calculatorf distribution calculatorgeometric distribution calculatorcontinuous distribution calculatorrandom number generator calculatornormal probability calculatorbernoulli distribution calculatormaximum likelihood calculatordiscrete distribution 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.