We can guess what might happen. 
Imagine you are watching tiny germs. 
Imagine you are watching tiny bacteria. 
To show this, we use a probability density function. This is a special curve. The curve shows how likely an event is to happen. A tall part of the curve means things are very likely to happen there. A low part means they are less likely.
We use the area under the curve to find the chance of something happening. For example, we can find the chance a bacterium dies between five and six hours. We do this by measuring the area in that range. The total area under the whole curve is always equal to one. This means there is a 100% chance that something will happen.
Imagine you are watching a group of tiny bacteria. 
A probability density function is a special kind of curve. The value of the curve at any point tells us the relative likelihood of an event. A tall part of the curve means the event is more likely to happen near that value. A low part means it is less likely. To find the actual probability of an event, we look at the area under the curve.
There are different ways to talk about these math ideas. Some people use the term probability distribution function. Others might use the term probability function. However, these names can be confusing because they are not always used the same way. In many books, a probability mass function is used for discrete things that can be counted. A probability density function is used for continuous things like time or length. This distinction helps scientists and statisticians keep their work clear and organized.
Math experts use specific rules to define these functions. For example, the density must always be a non-negative number. This means the curve can never go below the bottom line of a graph. In some cases, the density value can actually be larger than one. This happens in a continuous uniform distribution. The standard normal distribution is another famous example used in math. These different shapes help us model many different things in the real world.
We can even use these tools to study many things at once. If we have two different variables, we can use a joint probability density function. This shows how two things might relate to each other. We can also find a marginal density to look at just one variable. This is like looking at one piece of a larger puzzle. Whether we study one thing or many, these curves help us understand the patterns of life.
A probability density function (PDF) is a mathematical tool used to describe continuous random variables. In probability theory, a continuous variable can take on an infinite set of possible values. Because there are infinite values, the absolute likelihood of a variable equaling one exact, specific point is zero. Instead, the PDF provides a way to understand relative likelihood. It tells us how much more likely a variable is to fall near one value compared to another. 
The mechanism of a PDF relies on the concept of density per unit. You can think of the value of the PDF at a specific point as the probability per unit length. To find the actual probability of an event, you must look at a range of values rather than a single point. This is done by calculating the integral of the function over that specific range. The resulting probability is represented by the non-negative area under the curve between the lowest and highest values of the range.
There are distinct types of functions used depending on the nature of the data. A probability mass function (PMF) is used for discrete random variables. These are variables that take values on a countable set, like counting individual objects. In contrast, the PDF is used for continuous random variables, such as time or height. While some sources use the term "probability distribution function" to refer to a PDF, this can be confusing. In many contexts, that term might instead refer to a cumulative distribution function (CDF) or a PMF.
Historically and mathematically, the relationship between these functions is very precise. If a distribution has a density, the probability of every one-point set is zero. This is because the probability is tied to the area under the curve, and a single point has no width. A distribution has a density function if its cumulative distribution function is absolutely continuous. In these cases, the PDF is the derivative of the cumulative distribution function. This mathematical connection allows scientists to move between total accumulated probability and local density.
Specific numbers and properties define how these functions behave in the real world. The PDF must be non-negative everywhere, meaning the curve never drops below the horizontal axis. The total area under the entire curve must always equal exactly one. This represents a 100% probability that the variable will fall within the set of all possible values. Interestingly, the value of the PDF itself can be greater than one. For example, a continuous uniform distribution can have a density value higher than one if the interval is very small.
Consider the example of bacteria life spans to deepen your understanding. If a species of bacteria typically lives between 20 and 30 hours, the probability of one dying at exactly 5 hours is zero. However, the probability of it dying between 5 and 5.01 hours might be 0.02, or 2%. If you shorten that window to 5 to 5.001 hours, the probability drops to 0.002. The ratio of the probability to the duration of the interval remains constant. In this case, the density is 2 per hour. 
Probability density functions also connect to broader, more complex systems. When studying multiple variables at once, mathematicians use a joint probability density function. This describes the probability of a set of variables falling within a specific multi-dimensional domain. From a joint density, you can derive a marginal density function. This is done by integrating over the values of the other variables to focus on just one. This allows researchers to study how different parts of a complex system relate to one another or act independently.
🖼️ Images & Media (3)
More to explore
✨ What else?
Related topics you might enjoy
🔬 Go deeper
More advanced topics to explore
🪜 Step back
Simpler topics to build understanding
What is Nepedia?
A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.