Welcome to the power of Continuous Random Variables
Discrete Random Variables were our entry into the real world of probability. They enabled us to model a random variable and to do our first real calculations. We learned how to summarise a distribution in just one number, the mean, and how we can improve our summary if we also include the variance or standard deviation. Nonetheless there is a huge problem with discrete random variables. They just allow us to have a discrete set of outcomes. What can we do if the set isn’t discrete? If the set isn’t discrete, like time, we use continuous random variables.
A continuous random variable can have a continuous number of outcomes. Time is continuous and therefore a random variable that models the early arrival of someone in minutes is also continuous.
Ranges like [0, 1], [a, b,], [0, ) or () describe the range of values a continuous random variable can take.
A random variable is continuous if it has a function f(x) such that for any c d we have:
f(x) is here the probability density function (PDF) and is not to be confused with the probability mass function (PMF), as the PDF doesn’t give any probability. The probability of X is defined by the integral of the PDF and is therefore the probability that X is in the range of c, d if c d.
Probability Density Function (PDF)
The PDF follows three basic rules:
- f(x) is not the probability, it’s the density
- 0 f(x)
- where is the lower end of the defined range and is the upper end of the defined range.
Cumulative Distribution Function (CDF)
The CDF is here the same as for discrete random variables.
A special case is that:
If X is a continuous random variable on range [a, b] and f(x) is PDF, the expected Value of X is then:
We basically just replace the sum from discrete random variables with an integral.
The expected value for continuous random variables has the same properties as for discrete random variables.
The Variance is the same as for discrete random variables.
Manipulating Continuous Random Variables
We sometimes have to manipulate continuous random variables to get what we want. We do this by changing variables. The trick here is that f(x)dx gives the probability and not f(x).
Example: X ~ U(0,2); “X follows a uniform distribution on range [0,2]”; f(x)=; ;