Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Continuous Probability Distribution Visualizer


Interactive visualization of fundamental continuous distributions

Continuous Uniform

Constant probability over an interval

Explanation

The continuous uniform distribution has constant probability density over the interval [a,b][a, b]. The probability density function is f(x)=1baf(x) = \frac{1}{b-a} for axba \leq x \leq b, and 00 otherwise. The expected value is E[X]=a+b2E[X] = \frac{a+b}{2} and the variance is Var(X)=(ba)212\text{Var}(X) = \frac{(b-a)^2}{12}. This distribution models situations where all values in an interval are equally likely, such as the position of a randomly thrown dart on a board, random arrival times within a time window, or measurement errors uniformly distributed within tolerances.








Selecting a Distribution Type

Click the distribution tabs at the top to switch between three continuous distributions: Uniform, Normal (Gaussian), and Exponential. The selected distribution appears highlighted in blue. Each distribution has a brief description explaining its key characteristics. The Uniform distribution shows constant density over an interval. The Normal distribution displays the classic bell curve shape, symmetric around its mean. The Exponential distribution models waiting times with exponential decay. The tool maintains your previous parameter settings when switching between distributions, making it easy to compare how different distributions behave with similar parameter ranges.

Using the PDF vs CDF Toggle

Toggle between PDF (Probability Density Function) and CDF (Cumulative Distribution Function) views using the buttons above the chart. The PDF view shows the density curve, indicating relative likelihood at each point. Higher curves mean greater density, though the height itself is not a probability. The CDF view shows cumulative probability, displaying P(Xx)P(X \leq x) at each point. The CDF always increases from 0 to 1, creating an S-shaped curve for most distributions. Switch between views to understand how density accumulates into probability. The PDF shows where probability is concentrated, while the CDF shows total probability up to any point. Both views use the same parameters, so changes in one immediately reflect in the other.

Adjusting Distribution Parameters

Use the sliders to adjust parameters specific to each distribution. For the Uniform distribution, set the lower bound aa and upper bound bb to define the interval. The Normal distribution uses mean μ\mu to shift the curve left or right, and standard deviation σ\sigma to control spread. Larger σ\sigma creates wider, flatter curves; smaller σ\sigma creates taller, narrower curves. The Exponential distribution uses rate parameter λ\lambda, where larger values create steeper decay and smaller expected values. Drag sliders smoothly or click to jump to specific values. Parameter values display next to each label. The curve updates instantly as you adjust parameters, providing immediate visual feedback on how parameters affect distribution shape.

Reading the Curve

The horizontal axis shows the random variable's values, while the vertical axis shows either density (PDF) or cumulative probability (CDF). For PDF views, curve height indicates relative likelihood. Higher sections correspond to more probable regions, but remember that height is density, not probability. Probability requires integrating the PDF over an interval. For CDF views, the curve height directly gives P(Xx)P(X \leq x). At any point xx, read up to the curve and across to the vertical axis to find the cumulative probability. Hover over the curve to see exact values in a tooltip. The tooltip displays both the xx value and the corresponding function value (density or cumulative probability) to four decimal places.

Understanding Density vs Probability

Probability density is not the same as probability. Density can exceed 1, especially for narrow distributions concentrated in small intervals. The Normal distribution with small standard deviation can have peak densities much greater than 1. Probability is the area under the PDF curve over an interval, not the height. For any single point, probability equals zero in continuous distributions. To find probability for an interval [a,b][a, b], integrate the PDF: P(aXb)=abf(x)dxP(a \leq X \leq b) = \int_a^b f(x)dx. The CDF provides this directly: P(aXb)=F(b)F(a)P(a \leq X \leq b) = F(b) - F(a). The total area under any PDF always equals 1, ensuring all possible outcomes have probability 1 collectively.

Comparing Distribution Shapes

Each distribution has distinctive shape characteristics. The Uniform distribution shows a flat, rectangular shape in PDF view, with constant density across the interval and zero outside. Its CDF is a straight diagonal line within the interval. The Normal distribution creates the famous bell curve in PDF view, symmetric and smooth with a single peak at the mean. Its CDF is an S-curve, transitioning smoothly from 0 to 1. The Exponential distribution shows exponential decay in PDF view, starting at its maximum and decreasing rapidly. Its CDF rises quickly then gradually approaches 1. Switch between distributions and adjust parameters to see how shapes transform. Understanding these shape patterns helps identify which distribution best models your data.

What is a Probability Density Function?

The probability density function (PDF) describes the relative likelihood of a continuous random variable taking values near each point. Written as f(x)f(x), the PDF must be non-negative everywhere and integrate to 1 over its entire range. Unlike discrete PMFs that give exact probabilities, PDFs give density. Probability comes from integration: P(aXb)=abf(x)dxP(a \leq X \leq b) = \int_a^b f(x)dx. The height f(x)f(x) indicates relative likelihood but is not itself a probability. Regions with higher PDF have greater probability per unit width. For comprehensive theory on continuous random variables, integration, and cumulative distribution functions, see our detailed probability density function page.

Normal Distribution Fundamentals

The Normal distribution, also called Gaussian, is the most important continuous distribution. Its PDF is f(x)=1σ2πe(xμ)22σ2f(x) = \frac{1}{\sigma\sqrt{2\pi}} e^{-\frac{(x-\mu)^2}{2\sigma^2}}. The parameters μ\mu (mean) and σ\sigma (standard deviation) determine location and spread. The distribution is perfectly symmetric around μ\mu. The 68-95-99.7 rule states that approximately 68% of values fall within one standard deviation of the mean, 95% within two, and 99.7% within three. The Central Limit Theorem explains why Normal distributions appear throughout nature and statistics. For detailed coverage of z-scores, standardization, and applications in statistical inference, see our Normal distribution theory page.

Exponential Distribution Basics

The Exponential distribution models the time between events in a Poisson process. Its PDF is f(x)=λeλxf(x) = \lambda e^{-\lambda x} for x0x \geq 0, where λ\lambda is the rate parameter. Both the expected value and standard deviation equal 1/λ1/\lambda. The distribution has the memoryless property: the probability of an event in the next interval doesn't depend on how much time has passed. This makes it unique among continuous distributions. Common applications include modeling equipment lifetimes, waiting times, and radioactive decay. For comprehensive coverage of the Poisson process, memoryless property, and connections to reliability theory, see our Exponential distribution page.

Understanding Integration and Area

Integration calculates the area under the PDF curve, converting density into probability. The definite integral abf(x)dx\int_a^b f(x)dx gives P(aXb)P(a \leq X \leq b), the probability that XX falls between aa and bb. For the entire range, f(x)dx=1\int_{-\infty}^{\infty} f(x)dx = 1, ensuring probabilities sum to certainty. The CDF is the integral of the PDF from negative infinity to xx: F(x)=xf(t)dtF(x) = \int_{-\infty}^{x} f(t)dt. Most continuous distributions lack simple closed-form solutions for these integrals, requiring numerical methods. For detailed coverage of integration techniques, numerical integration, and CDF properties, see our comprehensive probability theory pages.

When to Use Each Distribution

Choose the Uniform distribution when all values in an interval are equally likely, such as random positions on a board or random timestamps within a window. Use the Normal distribution for measurements affected by many small independent factors, including heights, weights, test scores, and measurement errors. The Central Limit Theorem justifies Normal assumptions for sample means. Select the Exponential distribution for time until an event occurs, especially in memoryless scenarios like equipment failure or radioactive decay. If data shows decay that depends on history, consider other distributions like Weibull. For symmetric data with heavier tails than Normal, consider Student's t-distribution. Match your distribution choice to your data's shape and the process generating it.

Related Probability Concepts

Cumulative Distribution Function - The CDF gives accumulated probability, calculated by integrating the PDF from negative infinity to any point.

Discrete Probability Distributions - For countable outcomes, use probability mass functions rather than density functions.

Standard Normal Distribution - The special case of Normal with mean 0 and standard deviation 1, used for z-score transformations.

Central Limit Theorem - Explains why sample means follow Normal distributions regardless of the population distribution.

Expected Value and Variance - Learn to calculate these summary statistics by integrating with the PDF.

Statistical Inference - Apply continuous distributions to confidence intervals, hypothesis testing, and estimation.