# Probability Density Function: Definition, Formula & Examples

## Background on Probability Models

Probability models, which quantify the chances of a random event occurring, are common in everyday life. Take, for example, flipping a fair coin. We believe that if a fair coin is flipped, it has equal chances of landing on heads or on tails. What this means in practice is that if we flip the coin a large number of times, half of the time the coin will show heads and the other half the coin will show tails. Therefore, we assign probability ½ to the outcome heads and ½ to the outcome tails. This is an example of a **probability model**.

However, assignment of probabilities to certain events does not always work. An example is a game of darts. What is the difference between flipping coins and darts? In particular, a game of darts is a situation where the outcome (the final position of the dart) can take on a continuous range of values.

More specifically, suppose you are throwing darts at a dartboard, and you want to determine the probability of hitting a point that is exactly on the vertical axis, two inches above the center. Like in the coin-flipping example we went over at the outset, the probability we would assign to this outcome is the fraction of darts that hit this precise point after throwing a large number of darts.

However, it's unlikely that any dart hits that exact point, and so even in the limit of an infinite number of throws, the probability of hitting a single point is vanishingly small. Although this issue seems to complicate building a probability model, it isn't consequential to the game of darts in practice because determining the score depends on finding the dart within certain finite regions of the board. So, how can we relate the nearly zero probability of hitting any particular point to the probability of a dart hitting a certain scoring region of the board? A probability density function addresses this problem.

## Probability Density Functions

In order to make a probability model for a scenario where outcomes of random events are numerically valued on a continuous range, like in the dartboard example, a **probability density function f(x)** must be given. This function provides a way to assign probabilities not to single outcomes, but to ranges of outcomes -- like scoring regions of a dartboard. Scientists and engineers often make an educated guess about the exact form of this function. The independent variable

*x*of this, the probability density function, takes on values within the continuous range of possible outcomes of a random process. Consequently,

*x*is called a

**continuous random variable**. The location of a dart thrown at a dartboard is a continuous random variable because between any two possible locations, you can find another possible outcome.

If we had a probability density function *f(x)* for darts hitting a dartboard, or any other random process involving a continuous random variable, how would we calculate a probability for an event, such as hitting the bullseye on a dartboard? According to probability theory, the probability of measuring an outcome within a finite range can be calculated by integrating the probability density function over the interval of interest:

*Pr[Aâ‰¤ x â‰¤B]* stands for the probability of an outcome within the interval from *A* to *B*. For example, foot size in centimeters is a continuous random variable. If you want to know the probability of picking someone with a foot length between 21 and 22 centimeters from a random sample, and you believe the probability density function describing the distribution of foot lengths in centimeters is *f(x)*, then you would integrate *f(x)* from *x* = 21 cm to *x* = 22 cm.

## Important General Properties

This prescription for obtaining probabilities from density functions implies two important properties that a probability density function must have in order to model an actual outcome of a random process. First, a probability density function must be non-negative (i.e., *f(x) > 0* for all values *x*). Second, a probability density function that must obey a rule is called the normalization condition. The normalization condition says:

The integration range 'all x' means over every possible outcome (even the most unlikely outcomes) of the measurement. In the dartboard example, 'all x' would mean over the entire board, the wall nearby, and the floor, since some inexperienced dart throwers miss the board entirely. Translated into everyday language, the **normalization condition** means that we expect all possible outcomes will fall somewhere within the range of possible, if unlikely, values.

## Some Examples

When probability density functions are used to describe real-world scenarios, scientists often have to make educated guesses about the mathematical form of the probability density function. In this section, we introduce the two most common probability density functions.

The first is the **uniform probability density**. It is a constant function: *f(x) = C* where *C* is a constant. This probability density means all possible outcomes are equally likely within the range of possible outcomes. When might this be a good guess? If we consider darts again, someone who has never played darts before and who has been blindfolded in a position facing the board would produce a distribution of darts that is likely uniform over the dartboard, the wall, and the floor nearby. All points on the wall, the floor, and the board are equally likely to be hit by inexperienced dart players.

In practice, how do we know what the constant is equal to? This is where the normalization condition is useful: the constant is equal to whatever produces a normalized probability density function. Specifically, if the range of possible outcomes is from *x = X 1* to

*x = X*, then the uniform probability density function is

`2`

because integrating this constant over the range *X 1* to

*X*is equal to 1.

`2`Another probability density function is the **normal probability density**, sometimes called the **normal distribution**. This probability density is useful when random outcomes are clustered around a central point. Using the darts example again, someone who is experienced playing darts produces a distribution of darts described by a normal density, centered on the bull's eye.

## Lesson Summary

**Probability density functions** are used to describe scenarios where a random outcome can take on a continuous range of values, and this continuous range of outcomes makes it always a zero chance that predicting an exact outcome is possible. Integrating a probability density function allows one to calculate a probability of measuring a value within a given interval of possible outcomes.

We discussed two properties of probability density functions: non-negativity and the **normalization condition**, which means that we expect all possible outcomes will fall somewhere within the range of possible, if unlikely, values. Two common probability density functions are the **uniform probability density**, which means all possible outcomes are equally likely within the range of possible outcomes (such as between 0 and 1), and **normal probability density**, also known as the normal distribution, and is useful when random outcomes are clustered around a central point.

To unlock this lesson you must be a Study.com Member.

Create your account

## Probability Density Function Defined

A discrete probability model will have countable outcomes. For example: a coin toss has exactly two outcomes. What are some other probability models with countable outcomes?

A continuous probability model will have infinitely many possible outcomes within a given range. You cannot count the precise locations where a dart might land, but you can limit it to a particular area. What are some other probability models with infinitely many outcomes within a given range? What would the range of possible outcomes be? (In other words, what would A and B be for your example?)

#### Check Your Thinking

Some discrete probability models include:

- rolling a die or several dice
- finding the probability that a person's birthday falls on a particular date
- counting the number of cars that go through an intersection in a given amount of time

Some continuous probability models include:

- rolling a marble and measure the distance it travels (where the range would be from 0 to the farthest possible distance that it could roll)
- the amount of rainfall in a year (where the range would be from 0 to the maximum rainfall possible in a year)

## Probability Density Function Properties

Given what you already know about probability:

- Why must a probability function be non-negative?
- Why must a probability function obey the normalization condition?

#### Check Your Thinking

- When calculating probability, the possible probabilities are always between 0% and 100% (between 0 and 1). Therefore, no probability may be negative.
- In any experiment, the sum of the probability of all possible different outcomes must add up to 100% (or, expressed as a decimal, the sum of the outcomes must add up to 1). If we integrate a probability density function over the range of all possible outcomes, we are effectively calculating the sum of all of the probabilities, which must equal 1.

### Register to view this lesson

### Unlock Your Education

#### See for yourself why 30 million people use Study.com

##### Become a Study.com member and start learning now.

Become a MemberAlready a member? Log In

Back