Probability Density Function Plotter screenshot

Probability Density Function Plotter

Draw f(x) for the normal, exponential, uniform, t or chi-square distribution.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Runs in this tab
No signup

What this page computes

Choose a distribution and fill in its parameters: mean and standard deviation for the normal, the rate for the exponential, the two bounds for the uniform, or the degrees of freedom for t and chi-square. The page draws f(x) as 240 sampled points, with axis labels, a grid and the peak density printed above the plot. The output pane holds the SVG source, which you can copy or download.

A density is not a probability: the height can exceed 1 for a narrow distribution, and only the area under the curve is a probability. The page says so and plots the peak rather than clamping it. A parameter the family cannot accept, such as an upper bound equal to the lower one, is refused by name.

The curve comes from the same incomplete gamma and beta functions the test pages use, computed in this tab, so identical parameters always draw the same curve.

The page plots the density f(x) for one of five families — normal, exponential, uniform, Student t and chi-square — over the range where the function is non-negligible, with the peak height printed in the note. The normal spans μ ± 4σ, the exponential 0 to 6/λ, and the t and chi-square their own quantile range. A density is a height, not a probability: the area under the curve is 1 and the height at one point can exceed 1 for a narrow distribution.

Plot a probability density for five common families. The vertical range comes from the peak, not from a fixed scale.

How to use it

Choose the family and give its parameters: mean and standard deviation for the normal, the rate λ for the exponential, the two bounds for the uniform, and degrees of freedom for the t and chi-square. The second parameter box is ignored by the two one-parameter families. A parameter set that makes the density zero across the whole plotted range is refused rather than drawn as an empty axis.

Why the vertical axis rescales

The vertical axis runs from 0 to 1.1 times the peak, so a flat distribution and a spiked one both fill the plot; comparing heights between two screenshots is therefore meaningless, and the printed peak is what makes the numbers comparable. This page and the cumulative page share one parameter map, so the same inputs describe the same distribution on both and cannot drift apart. The curve is 240 sampled points of the closed-form density, not a histogram of simulated draws.

What to Expect

Best for

  • Seeing the shape of a density before quoting probabilities

What this tool keeps

  • Nothing leaves this tab: the arithmetic runs in the page you are reading, and a reload discards both the input and the result.

Frequently asked questions

Is the height a probability?

No. A density is a height, so it can exceed 1 for a narrow distribution; the area under the curve is what integrates to 1. For a probability use the cumulative page or one of the distribution calculators.

Why do two plots look equally tall?

Because the vertical axis rescales to 1.1 times each curve’s own peak. Heights are not comparable between two screenshots — the printed peak value is what makes them comparable.

Is anything uploaded?

No. The density is evaluated and the SVG built in this page, so it works offline after load and no parameter is stored.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.