Can a probability density function take values greater than 1?

Probability and statistics, Random variables
Level L1 Beginner. Length One-liner. Nature Th Theoretical.

What's being asked

Whether you know the difference between a density and a probability.

Key idea

Yes. A density p(x) is probability per unit length, not a probability. The only rule is that the total area is 1, ∫p(x) dx=1, and probabilities are areas: P(a≤X≤b)=∫abp(x) dx. For example, Uniform(0,0.5) has p(x)=2 on its range.

Steps

  1. Answer yes, and give the reason: a density is not a probability; only its area over an interval is.
  2. Give an example. Uniform(0,0.5) has height 2, because 2×0.5=1. A normal distribution with standard deviation 0.1 peaks at 1/(0.12π)≈3.99.
  3. If asked why it matters in ML: the log-likelihood of continuous data can be positive. Also, a Gaussian fitted to a single point has a likelihood that grows without limit as σ→0.

Common mistakes

How long your answer should be

One sentence plus an example.

Last checked on 4 December 2026.

Read this

Previous in Probability and statistics: In statistics and machine learning, what is the difference between probability and likelihood, and what is the idea behind maximum likelihood estimation (MLE)? If you toss a coin 10 times and get 7 heads, what is the MLE of its heads probability?
Next in Probability and statistics: What are the mean and variance of a Poisson(λ) random variable, and what kind of data is it used to model?