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)=1b−af(x) = \frac{1}{b-a} for a≤x≤ba \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)=(b−a)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. Learn more about the continuous uniform density








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(X≤x)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.

Continuous Uniform: a Flat Density and a Straight CDF

With a=0a = 0 and b=10b = 10 the PDF view is a flat plateau at f(x)=1b−a=0.1f(x) = \frac{1}{b-a} = 0.1 between the bounds and zero outside. Switch the toggle and the CDF view is a straight line of slope 0.10.1 rising from 00 to 11.

The two stills below are the same distribution under the two toggle positions.
0.000.020.040.060.080.10-2-0.31.53.25.06.78.410.211.9xf(x)0.000.200.400.600.801.00-2-0.31.53.25.06.78.410.211.9xF(x)
Continuous uniform on [0, 10]: PDF above, CDF below

A flat density of 0.1 and a straight-line CDF of slope 0.1. The CDF slope IS the PDF height, and its two corners are where the density jumps from 0 to 0.1 and back.

Seeing them together makes the relationship concrete: the CDF's slope *is* the PDF's height. A flat density gives a straight-line CDF, and the two corners in the CDF are exactly where the density jumps from 00 to 0.10.1 and back.

Notice that the density value 0.10.1 is not a probability. P(X=3)=0P(X = 3) = 0 here, as it is for any continuous variable. What 0.10.1 means is probability per unit of xx, so the probability of landing in an interval of width 22 is 0.20.2 — you have to multiply by a width before you get a probability at all.

Normal: the Bell and the Sigmoid

At μ=0\mu = 0 and σ=1\sigma = 1 the PDF view peaks at f(0)=12π=0.3989f(0) = \frac{1}{\sqrt{2\pi}} = 0.3989, and the CDF view is the symmetric S-curve crossing 0.50.5 at the mean.

The tool plots the window μ±4σ\mu \pm 4\sigma.
0.000.080.160.240.320.40-4-3.0-2.0-1.0-0.01.02.03.04.0xf(x)0.000.200.400.600.801.00-4-3.0-2.0-1.0-0.01.02.03.04.0xF(x)
Normal, mean 0, sigma 1: PDF above, CDF below

The bell peaks at 1/sqrt(2 pi) = 0.3989 and the sigmoid crosses 0.5 at the mean. Shrink sigma and the peak rises without limit - a density may exceed 1, a probability may not.

The peak height is worth reading carefully, because it is the clearest illustration that a density can exceed any bound. Here it is 0.3990.399, comfortably under 1 — but shrink σ\sigma and the peak rises without limit, since the area must stay at 1. A density above 1 is perfectly legal; a probability above 1 is not.

The two views also locate σ\sigma differently. On the PDF it is the distance from the peak to the inflection points; on the CDF it is where the curve stops steepening. Same number, two quite different visual cues, which is the reason for having the toggle at all.

Exponential: Peak at Zero, Tail Without End

At λ=1\lambda = 1 the PDF view starts at its maximum, f(0)=λ=1f(0) = \lambda = 1, and decays; the CDF view rises steeply then flattens toward 11.

The tool plots xx from 00 out to 5/λ5/\lambda.
0.000.200.400.600.801.0000.61.21.92.53.13.74.45.0xf(x)0.000.200.400.600.801.0000.61.21.92.53.13.74.45.0xF(x)
Exponential, lambda = 1: PDF above, CDF below

Density is largest at the very edge of the support, f(0) = 1, with no interior peak. The plotted CDF ends at 0.9931 - the remaining 0.69% lies past the right edge of the window.

The exponential is the one distribution here whose density is largest at the very edge of its support. There is no interior peak: the most probable region is always immediately after zero, whatever λ\lambda is.

The right edge of the window is the detail to carry away. The plotted CDF ends at about 0.99310.9931, not 11, and the missing 0.69%0.69\% is spread over the infinite tail beyond. The PDF view makes the same point differently — the curve is visibly still above zero when the plot stops, so there is clearly more distribution to the right than the window shows.

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(X≤x)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(a≤X≤b)=∫abf(x)dxP(a \leq X \leq b) = \int_a^b f(x)dx. The CDF provides this directly: P(a≤X≤b)=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(a≤X≤b)=∫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 x≥0x \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(a≤X≤b)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.