We call X a continuous random variable if X can take any value on an interval, which is often the entire set of real numbers ℝ.
Every continuous random variable X has a probability density function (PDF) written f (x), that satisfies the following conditions:
f (x) ≥ 0 for all x, and
\(\int\limits_{ - \infty }^\infty {f\left( x \right)dx} = 1.\)
The probability that a random variable \(X\) takes on values in the interval \(a \le X \le b\) is defined as
\[P\left( {a \le X \le b} \right) = \int\limits_a^b {f\left( x \right)dx} ,\]
which is the area under the curve \(f\left( x \right)\) from \(x = a\) to \(x = b.\)
Mean and Median
If a random variable \(X\) has a density function \({f\left( x \right)},\) then we define the mean value (also known as the average value or the expectation) of \(X\) as
\[\mu = \int\limits_{ - \infty }^\infty {xf\left( x \right)dx}. \]
The median of a continuous probability distribution \(f\left( x \right)\) is the value of \(x = m\) that splits the probability distribution into two portions whose areas are identical and equal to \(\frac{1}{2}:\)
\[\int\limits_{ - \infty }^m {f\left( x \right)dx} = \int\limits_m^\infty {f\left( x \right)dx} = \frac{1}{2}.\]
Note that not all \(PDFs\) have mean values. For example, the Cauchy distribution is an example of a probability distribution which has no mean.
Variance
The variance of a continuous random variable is defined by the integral
where \(\mu\) is the mean of the random variable \(X.\)
Uniform Distribution
The simplest \(PDF\) is the uniform distribution. The density of the uniform distribution is defined by
\[f\left( x \right) = \frac{1}{{b - a}}\;\;\text{for}\;\;a \le x \le b.\]
The mean value of the uniform distribution across the interval \(\left[ {a,b} \right]\) is
\[\mu = \int\limits_a^b {xf\left( x \right)dx} = \frac{{a + b}}{2}.\]
If a random variable \(X\) is distributed uniformly in the interval \(\left[ {a,b} \right],\) the probability to fall within a range \(\left[ {c,d} \right] \in \left[ {a,b} \right]\) is expressed by the formula
The exponential distribution is a continuous distribution that is commonly used to describe the waiting time until some specific event occurs. For example, the amount of time until a hurricane or other dangerous weather event occurs obeys an exponential distribution law.
The one-parameter exponential distribution of the probability density function \(PDF\) is described as follows:
where the rate \(\lambda\) represents the average amount of events per unit of time.
The mean value (or the average waiting for the next event) is \(\mu = \frac{1}{\lambda }.\) The median of the exponential distribution is \(m = \frac{{\ln 2}}{\lambda }, \) and the variance is given by \({\sigma ^2} = \frac{1}{{{\lambda ^2}}}.\)
Normal Distribution
The normal distribution is the most widely known probability distribution since it describes many natural phenomena.
The \(PDF\) of the normal distribution is given by the formula
where \(\mu\) is the mean of the distribution, and \({\sigma^2}\) is the variance.
The two parameters \(\mu\) and \({\sigma}\) entirely define the shape and all other properties of the normal distribution function.
If a random variable \(X\) follows the normal distribution with the parameters \(\mu\) and \(\sigma,\) we write \(X \sim N\left( {\mu ,\sigma } \right).\)
The normal distribution is said to be standard when \(\mu = 0\) and \(\sigma = 1.\) In this special case, the normal random variable \(X\) is called a standard score or a \(Z-\)score. Thus, by definition, \(Z \sim N\left( {0 ,1} \right).\)
Every normal random variable \(X\) can be transformed into a \(Z-\)score by using the substitution
\[z = \frac{{x - \mu }}{\sigma }.\]
Pay attention to the notations: \(X, Z\) denote the random variables, and \(x,z\) denote the possible values of the variables.
To compute probabilities for \(Z,\) we use a standard normal table (\(Z-\)table) or a software tool.
To find the probability that a normally distributed random variable \(X\) falls within a range \(\left[ {a,b } \right],\) we rely on the \(Z-\)score and use the formula
Calculate the mean value \(\mu\) and the variance \({\sigma^2}\) of the uniform distribution \[f\left( x \right) = \frac{1}{{b - a}}\] for \(a \le x \le b.\)
Let \(X\) be a random variable distributed uniformly in the interval \(\left[ {{x_0} - L,{x_0} + L} \right].\) Find the mean \(\mu\) and variance \({\sigma^2}\) of the random variable \(X.\)
Solution.
Make sure that the mean value coincides with the middle of the interval:
Assume that the waiting time for your next email is described by the exponential density function with rate \(\lambda = 3\) (emails per hour). Determine the probability that you receive no email during the next hour.
Let's calculate the probability that you receive an email during the hour. Integrating the exponential density function from \(t = 0\) to \(t = 1,\) we have