# Cumulative Distribution Function
The **cumulative distribution function**, $F_X(x)$ of a random variable $X$ is a function, $\mathbb{R} \rightarrow \mathbb{R}$ , defined by:
$F_X(x) = P \{ \omega \in \Omega : X(\omega) \leq x\}$
The argument $\omega$ is often omitted for brevity:
$F_X(x) = P \{ X \leq x\}$

### Key Idea
Notice what we have done. We have started with a [Sample Space](Sample%20Space.md) that is a *set* comprised of specific outcomes. Note that in no way does this set need to consist of numbers, it could just as easily consist of, say, people. We then create a [Random Variable](Random%20Variable.md) that maps elements from this sample space, to the real numbers. At that point, we can ask the question: what are the *properties* of this resulting set of real numbers? In other words, what are the properties of this random variable?
If we want to investigate these properties, what tools do we have at our disposal? Calculus can almost always come to mind, in addition to the idea of *ordering*.
Let us start by visualizing how the random variable maps events elements from our sample space to the number line:

We can see that certain areas end up with higher density than others!

Now, something we may like to do is *characterize* or *describe* this mathematically. In other words, what areas of $\mathbb{R}$ end up with a greater density (where we note that this implies a greater probability of observation)? How can we characterize how dense a given area is? For this we use a [Probability Density Function](Probability%20Density%20Function.md).

What is beautiful is that there is another way to characterize our random variable. We can also ask: "what is the probability of observing a specific value less than or equal to some $x$?". Again, this is a specific relationship about the structure of a mapping against a sample space, but via the tools of analytic geometry we can actually visualize this! If we create function (the cumulative distribution function) that captures the probability of the random variable being less than or equal to a given $x$, we can then visualize the curve below:

What is fantastic about this is that our curve nicely captures *density*! How does it capture density? Via the *slope* of the curve, i.e. the *derivative*. In areas where our random variable maps $\omega