Probability 7 of 11
On this page

Probability

8.6 Continuous Probabilistic Models

Chapter 6 of 10 63 min read

Below we present the main continuous probabilistic models, their properties and applications.

These continuous distributions can be found in more detail in the book by Barry R. James and Murray R. Spiegel, A. N. Shiryaev, Philip E. Protter, Howard M. Taylor & Samuel Karlin and Sheldon Ross.

8.6.1 Uniform distribution

The uniform distribution is the simplest continuous distribution, however one of the most important and used within probability theory. The uniform distribution has an important characteristic: the probability of a phenomenon of the same length occurring is the same.

Definition 6.1.1

A random variable $ X $ has uniform distribution in the interval $ [a,b] $ if your probability density function is given by:

Screenshot_180

The graph below illustrates the uniform distribution density function with parameters a=0 and b=1.

uniforme

Example 6.1.1

The occurrence of breakdowns at any point in a telephone network $ 7 $ km was modeled by a Uniform distribution in the interval $ [0, 7] $. What is the probability that a breakdown will occur within the first $ 800 $ meters? And what is the probability that it will occur in $ 3 $ central km of the network?

The density function of the Uniform distribution is given by $ f(x)=\frac{1}{7} $ if $ 0\leq x\leq 7 $ and zero otherwise. Thus, the probability of a breakdown occurring in the first 800 meters is

$$\mathbb{P}\left(X\leq 0,8\right)=\int_0^{0,8} f(x)dx=\frac{0,8-0}{7}=0,1142.$$

and the probability of a breakdown occurring in the central 3 km of the network is

$$\mathbb{P}\left(2\leq X\leq 5\right)=\int_2^5f(x)dx=\mathbb{P}\left(X\leq 5\right)-\mathbb{P}\left(X\leq 2\right)=5/7-2/7\approx 0,4285.$$

Example 6.1.2

Suppose $ Y ~\sim ~U[0,5] $. What is the probability that the equation $ 4x^2+4Yx+4=0 $, have both real roots?

Firstly, let us observe that for a quadratic equation to have real roots, the discriminant of the quadratic equation must be greater than or equal to zero, that is, the formula below must be greater than or equal to zero.

$$\Delta = 16Y^2-64\geq 0 \Rightarrow Y^2 \geq 4.$$

So we want to find $ \mathbb{P}(Y^2\geq 4) $. So let’s find the probability density function for $ Y^2 $, using theorem 2.8.3, we have that

$$F(t)=\mathbb{P}(Y^2\leq t)=\mathbb{P}(-\sqrt{t}\leq Y \leq \sqrt{t})=\mathbb{P}(0\leq Y \sqrt{t})=\int_{0}^{\sqrt{t}}f_Y(x)dx=\int_{0}^{\sqrt{t}}\frac{1}{5}dx=\frac{\sqrt{t}}{5}.$$

Therefore, the probability density function of $ Y^2 $ is given by

Screenshot_181

With this in hand, now we just need to find $ \mathbb{P}(Y^2 \geq 4) $, which is given by

$$\mathbb{P}(Y^2\geq 4)=1-\mathbb{P}(Y^2< 4)=1-F(2)=1-\frac{\sqrt{4}}{5}=\frac{3}{5}.$$

So the probability that both roots are real is $ 3/5 $.

Example 6.1.3

Suppose that a couple plans to meet at a pizzeria at 8:30 pm, and that the arrival time is uniformly distributed for both, but the distribution for the man is uniform between 8:15 pm and 8:45 pm and for the woman between 8:00 pm and 9:00 pm. So be it $ X $ the probability distribution of the man’s arrival time. So $ X \sim \ U(-15,15) $ and $ Y $ the probability distribution of the woman’s arrival time, that is, $ Y \sim \ U(-30,30) $. What is the probability that neither of them will wait for the other for more than $ 5 $ minutes?

So that neither of you waits for more than $ 5 $ minutes it is necessary that $ |X-Y|\leq 5 $, so we have to

$$\mathbb{P}(|X-Y|\leq 5)=\mathbb{P}(-5\leq X-Y \leq 5)=\mathbb{P}(Y-5\leq X \leq Y+5).$$

So

$$\mathbb{P}(|X-Y|\leq 5)=\int_{-15}^{15}\int_{y-5}^{y+5}f_Y(t)f_X(s)dsdt =\int_{-15}^{15}\int_{y-5}^{y+5} \frac{1}{1800}dsdt=\int_{-15}^{15}\frac{1}{180}dt=\frac{1}{6}.$$

Therefore the probability that neither of them waits longer than $ 5 $ minutes is $ 1/6 $.

Example 6.1.4

Be $ X $ and $ Y $ independent random variables with common distribution given by

Screenshot_182

Find the cumulative distribution function of $ Z=X+Y $ ?

$$F(z)=\mathbb{P}(X+Y\leq z)=\int \int_{B_z}f(x,y)dx dy.$$

For $ 0\leq z \leq 1 $

$$F(z)= \int_{0}^{z}\int_{0}^{z-x}1 dy dx=\frac{z^2}{2}.$$

For $ 0 < z \leq 2 $,

$$F(z)=\displaystyle \int_{0}^{z-1}\int_{0}^{1}1 dydx+\int_{z-1}{1}\int_{0}^{z-x}1dydx=z-1 + \frac{2z-z^2}{2}=\frac{4z-z^2-2}{2}.$$

Therefore, the cumulative distribution function of $ Z $ is given by

Screenshot_183

Example 6.1.5

Be $ X $ and $ Y $ random variables with uniform distribution in $ [0,1] $ and independent. What is the joint density of $ Z=X-Y $?

$$F(z)=\mathbb{P}(X-Y\leq z)=\int \int_{B_z}f(x,y)dx dy.$$

For $ -1\leq z \leq 0 $

$$F(z)\displaystyle \int_{-z}^{1}\int_{0}^{x-z}1 dx dy=\frac{1-3z^2-2z}{2}$$

For $ 0 < z \leq 1 $

$$F(z)=1-\displaystyle \int_{0}^{1-z}\int_{x-z}^{1}1 dydx=1-\frac{(1-z^2)^2}{2}$$

Therefore, the cumulative distribution function of $ Z $ is given by

Screenshot_185

Generating Function of Moments, Expected Value and Variance

Be $ X $ a continuous variable with uniform distribution then its moment generating function is given by:

Screenshot_184

The expected value of a random variable $ X $ with uniform distribution is given by

$$\mathbb{E}(X)=\int_a^b x\frac{1}{b-a}dx=\frac{a+b}{2}$$

Another way to calculate it is using the moment generating function.

$$M^\prime_X(t)=\frac{e^{at}(at-1)+e^{bt}(1-bt)}{t^2(a-b)}$$

whence it follows that

$$\mathbb{E}(X) = M^\prime_X(0)=\lim_{t\rightarrow 0}\frac{e^{at}(at-1)+e^{bt}(1-bt)}{t^2(a-b)}.$$

Applying L’Hospital’s rule (since, in the limit, both the numerator and the numerator go to zero, we have

$$M^\prime_X(0)=\lim_{t\rightarrow 0}\frac{t(e^{at}a^2-e^{bt}b^2)}{2t(a-b)}=\frac{(a-b)(a+b)}{2(a-b)}=\frac{a+b}{2}$$

and therefore

$$\mathbb{E}(X) = \frac{a+b}{2}.$$

Let’s calculate now $ E[X^2] $ from the moment generating function.

$$M^{\prime\prime}_X(t)=\frac{e^{at}(a^2t^2-2at+2)-e^{bt}(b^2 t^2-2bt+2)}{t^3(a-b)}.$$

And then,

Screenshot_186

In this way, we have that the variance $ \text{Var}(X) $ is given by

$$\text{Var}\left(X\right)=\mathbb{E}\left(X^2\right)-\mathbb{E}^2\left(X\right)=M^{\prime\prime}_X(0)-(M^\prime_X(0))^2=\frac{(a^2+ab+b^2)}{3}-\left(\frac{(a+b)}{2}\right)^2=\frac{b^2-2ab+a^2}{12}.$$

So

$$\text{Var}(X)=\mathbb{E}(X^2)-\mathbb{E}^2(X)=\frac{(b-a)^2}{12}.$$

8.6.2 Normal Distribution

The normal distribution, also known as Gaussian distribution, is undoubtedly the most important continuous distribution. Its importance is due to several factors, among them we can mention the central limit theorem, which is a fundamental result in practical and theoretical applications, as it guarantees that even if the data are not distributed according to a normal, the average of the data converges to a normal distribution as the number of data increases. Furthermore, several practical studies have resulted in a normal distribution. We can cite as an example the height of a given population in general follows a normal distribution. Among other physical and social characteristics, it has Gaussian behavior, that is, it follows a normal distribution.

Definition 6.2.1

A continuous random variable $X$ has a Normal distribution if its probability density function is given by:

$$f(x)=\frac{1}{\sqrt{2\pi\sigma^2}}\exp\left[-\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^2\right], \quad x\in(-\infty,\infty).$$

We use the notation $X\sim N(\mu,\sigma^2).$

The natural variation of many industrial processes is truly random. Although the distributions of many processes can take a variety of forms, many observed variables have a frequency distribution that is approximately a Normal probability distribution.

Probability is the real chance of a certain event occurring, that is, the chance of a measurement occurring within a certain interval. For example, the relative frequency of this interval, observed from a sample of measurements, is an approximation of the probability. And the frequency distribution is the approximation of the probability distribution.

The distribution is normal when it has a “bell” shape:

normal

To find the area under the normal curve we must know two numerical values, the average $\mu$ and the standard deviation $\sigma$. The following Figure shows some important areas:

normal3

When $\mu$ and $\sigma$ are unknown (most common case), these values will be estimated by $\overline{X}$ and $s$, respectively, from the sample, in which $\overline{X}=\displaystyle\frac{1}{n}\sum_{i=1}^{n}x_i$ and $s=\sqrt{\displaystyle\frac{1}{n-1}\sum_{i=1}^{n}(x_i-\overline{X})^2}$

For each value of $\mu$ and/or $\sigma$ we have a probability distribution curve. However, to calculate specific areas, a particular distribution is used: the “standardized normal distribution”, also called Standardized or reduced, which is the normal distribution with $\mu=0$ and $\sigma=1$. To obtain such a distribution, that is, when we have a variable $X$ with normal distribution with mean $\mu$ different from $0$ (zero) and/or standard deviation $\sigma$ different from $1$ (one), we must reduce it to a variable $Z$, carrying out the following calculation

$$Z=\frac{x-\mu}{\sigma}.$$

Thus, the distribution has a mean $\mu=0$ and standard deviation $\sigma= 1$. Because the distribution is symmetrical in relation to the mean $\mu= 0$, the area to the right is equal to the area to the left of $\mu$. As it is a widely used distribution, there are tables in which we find the resolution of its integrals. Thus, the table provides areas above non-negative values ranging from $0,00$ until $4,09$. See the standardized Normal curve graph in the Figure below.

normal_padrao

Example 6.2.1

Calculate the area under the curve for $Z$ greater than $2,75$.

The area under the normal curve for $Z$ bigger than $2,75$ is given by

$$\mathbb{P}(Z\geq 2,75)= \int_{2,75}^{\infty}\frac{1}{\sqrt{2\pi}}\exp\left[-\frac{x^2}{2}\right]=1-0,9970=0,003;$$

That is, the probability of $Z$ be greater than $2,75$ is $0,3(porcentagem)%$.

Example 6.2.2

Determine the area under the curve of a standardized normal for $z$ between $-0,204$ and $1,93$.

For this calculation, we need to determine:

$$\mathbb{P}(-0,20 \leq Z\leq 1,93)=\mathbb{P}(Z\leq 1,93)-\mathbb{P}(Z\leq -0,2)=0,9732-0,4207=0,5525.$$

So the area we are looking for is $0,5525$.

Example 6.2.3

Suppose that the average thickness of washers produced in a factory has a normal distribution with mean $11,15$mm and standard deviation $2,238$mm. What percentage of washers have a thickness between $8,70$mm and $14,70$mm?

To find the percentage of washers with the desired thickness, we must find the area below the normal curve, between the points $8,70$ and $14,70$mm.

To do this, we have to find two points of the standardized normal distribution.

The first point is

$$Z_1 = \frac{8,70 - 11,15 }{2,238} = -1,09.$$

The area for values greater than $-1,09$ is $0,8621$, that is, $86,21(porcentagem)%$. Therefore, the area for values smaller than $-1,09$ is from $0,1379$.

The second point is:

$$Z_2 = \frac{14,70 - 11,15 }{2,238} = 1,58.$$

The area for values greater than $1,58$ is $0,0571$, that is, $5,71(porcentagem)%$. Therefore, what we are looking for is the area between $Z_1$ and $Z_2$, which is given by

$$1 - (0,1379 + 0,0571) = 1 - 0,195 = 0,8050.$$

normal_padrao2

Therefore, the percentage of washers with a thickness between $8,70$ and $14,70$ (specification tolerance limits) is $80,50(porcentagem)%$.

Example 6.2.4

Suppose the average weight of $800$ pigs from a certain farm is $64$kg, and the standard deviation is $15$kg. Assuming that this weight is distributed normally, how many pigs will weigh between $42$kg and $73$kg.

To solve this problem, we must first standardize it, that is,

$$Z=\frac{x-64}{15} \sim N(0,1).$$

Then the standardized value of $42$kg is $\frac{42-64}{15}\approx -1,47$ and of $73$kg is $0,6$.

So the probability is

$$\mathbb{P}(-1,47 \leq Z\leq 0,6)=\mathbb{P}(Z\leq 0,6)-\mathbb{P}(Z\leq -1,47)=0,7257-0,0708=0,6549.$$

Therefore, the approximate number of pigs expected between $42$kg and $73$kg is $800\cdot 0,6549\approx 524$.

Example 6.2.5

Suppose $X$ follow a normal distribution with mean $0$ and variance $1$, that is, $X~ \sim ~N(0,1)$. So $Y=\sigma X+\mu~\sim ~N(\mu,\sigma^2)$.

In fact,

$$F_Y(y)=\mathbb{P}(Y\leq y)=\mathbb{P}(\sigma X + \mu \leq y)=\mathbb{P}\left(X\leq \frac{y-\mu}{\sigma}\right)=\int_{-\infty}^{y}\frac{1}{\sqrt{2\pi\sigma^2}}exp(\frac{-(t-\mu)^2}{2\sigma^2})dt.$$

And therefore, we conclude that $Y~\sim ~N(\mu,\sigma)$.

Example 6.2.6

Suppose $X$ be a random variable such that $X~\sim ~N(\mu;\sigma^2)$. Be $Y=aX+b$, we show that $Y$ also has a normal distribution, knowing that a and b are real constants.

In fact,

$$F_Y(y)=\mathbb{P}(Y\leq y)=\mathbb{P}(aX+b\leq y)=\mathbb{P}\left(X\leq\displaystyle \frac{y-b}{a}\right)=\int_{-\infty}^{\frac{y-b}{a}}f_{X}(t)dt$$

Making a variable change; s=at+b we have that $\frac{dt}{ds}=\frac{1}{a}$ and then

$$F_Y(y)=\int_{-\infty}^{y}\frac{1}{|a|}f_{X}\left(\frac{s-b}{a}\right)ds=\int_{-\infty}^{y}\frac{1}{|a|}\frac{1}{\sqrt{2\pi\sigma^2}}\exp\left[-\frac{1}{2}\left(\frac{\frac{s-b}{a}-\mu}{\sigma}\right)^2\right]ds$$

from which we conclude that

$$F_Y(y)=\int_{-\infty}^{y}\frac{1}{\sqrt{a^2}}\frac{1}{\sqrt{2\pi\sigma^2}}\exp\left[-\frac{1}{2}\left(\frac{s-(a\mu+b)}{a\sigma}\right)^2\right]=\int_{-\infty}^{y}\frac{1}{\sqrt{2\pi a^2\sigma^2}}\exp\left[-\frac{1}{2}\left(\frac{s-(a\mu+b)}{a\sigma}\right)^2\right]$$

and therefore $Y~\sim ~N[a\mu+b;(a\sigma)^2].$

8.6.2.1 Properties of normal distribution

Let’s calculate the moment generating function for a random variable with normal distribution. Initially, we will deal with the case in which the variable $X$ has a standardized distribution to handle the general case later. Therefore, initially consider that $X\sim N(0,1)$. Then its moment generating function is given by

$$M_{X}(t)=\mathbb{E}\left(e^{tX}\right)=\frac{1}{\sqrt{2\pi}}\int_{-\infty}^{\infty}e^{tx}e^{-x^2/2}dx=\frac{1}{\sqrt{2\pi}}\int_{-\infty}^{\infty}e^{(x^2-2tx)/2}=\frac{e^{t^2/2}}{\sqrt{2\pi}}\int_{-\infty}^{\infty}e^{-(x-t)^2/2}dx$$

from which we conclude that

$$M_X(t) = e^{t^2/2}.$$

Now let’s calculate the moment generating function for a random variable Z, such that $Z\sim N(\mu,\sigma)$. Let us remember that $Z=\sigma X +\mu$ with $X\sim N(0,1)$. So

$$M_Z(t)=\mathbb{E}\left(e^{tZ}\right)=\mathbb{E}\left(e^{t(\sigma X+ \mu)}\right)=e^{t\mu}\mathbb{E}\left(e^{t\sigma X}\right)=e^{t\mu}e^{\frac{(t\sigma)^2}{2}}=\exp\left(\frac{\sigma^2 t^2}{2}+ \mu t\right).$$

Se $X$ has a Normal distribution, we can calculate the expected value of $X$ from the moment generating function.

$$M^\prime_X(t)=\frac{d}{dt}\exp\left(\frac{\sigma^2t^2}{2}+ \mu t\right)=(\mu+t\sigma^2)\exp\left(\frac{\sigma^2t^2}{2}+ \mu t\right)$$

and so

$$\mathbb{E}\left(X\right)=M^\prime_X(0)=(\mu+0\sigma^2)e^{\frac{\sigma^20}{2}+\mu 0}=\mu$$

Now we will calculate the variance of $X$ using the moment generating function.

$$M^{\prime\prime}_X(t)=\frac{d^2}{dt^2}\exp\left(\frac{\sigma^2t^2}{2}+ \mu t\right)=(\mu+ t\sigma^2)^2 \exp\left(\frac{\sigma^2t^2}{2}+ \mu t\right)+ \sigma^2 \exp\left(\frac{\sigma^2t^2}{2}+ \mu t\right)$$

In this way we have to

$$\mathbb{E}\left(X^2\right)=M^{\prime\prime}_X(0)=(\mu+ 0\sigma^2)^2 \exp\left(\frac{\sigma^20^2}{2}+ \mu 0\right)+ \sigma^2 \exp\left(\frac{\sigma^20^2}{2}+\mu 0\right)=\mu^2+\sigma^2$$

and therefore

$$\text{Var}\left(X\right)=\mathbb{E}\left(X^2\right)-\mathbb{E}^2\left(X\right)=\mu^2+\sigma^2-\mu_2=\sigma^2.$$

8.6.3 Chi-square distribution

The chi-square distribution can be interpreted in two ways, as a particular case of the gamma distribution, which will be analyzed later, or as the sum of squared standardized normals. Take $X_i\sim N(0,1)$ then

$$\sum_{j=1}^{r}X^2_j=\chi^{2}_{r}.$$

This fact will be demonstrated in theorem 6.3.1.

Definition 6.3.1

A continuous random variable $X$ has a chi-square distribution with $\nu$ degrees of freedom if its density function is given by:

$$f(x)=\frac{1}{2^{\nu/2}\Gamma(\nu/2)}x^{(v/2)-1}\exp\left(-\frac{x}{2}\right); \ \nu \ > \ 0, \ x \ > \ 0$$

being $\Gamma(\omega)=\displaystyle\int_0^{\infty}x^{\omega-1}e^{-x}dx, \ \omega \ > \ 0$. We denote $X\sim \chi_{\nu}^2$.

The graph below shows the chi-square function with 2 degrees of freedom.

Dchiquadrado

Let us note from the chi-square distribution graph that it is asymmetric and positive, this applies to any degree of freedom. Its positivity is easy to check, as it is the sum of squared normals, therefore it can only be positive. The chi-square distribution has several applications in statistical inference.

To understand the idea of ​​degrees of freedom, let’s consider any set of data. Degrees of freedom is the number of values ​​in this data set that can vary after certain restrictions have been imposed on all values. For example, let us consider that $10$ students obtained an average $8,0$. Thus, the sum of the $10$ notes should be $80$ (restriction). Therefore, in this case, we have a degree of freedom of $10-1=9$, as the first nine notes can be chosen randomly, however the $10$th note must be equal to [$80$ - (sum of $9$ first)].

Note 6.3.1

Se $X~\sim ~\chi^{2}_{\nu}$, then we have to $X~\sim ~Gamma(\frac{\nu}{2},\frac{1}{2})$, that is, the chi-square distribution is a particular case of the Gamma distribution. The Gamma distribution will be presented in topic 6.9.

Example 6.3.1

Suppose $y_1, \ldots,y_n$ are independent and identically distributed normal random variables with mean $\mu$ and standard deviation $\sigma$. So, we have the statistic

$$Q_n=\frac{\displaystyle \sum_{i=1}^n(y_i-\overline{y})^2}{\sigma^2}=\frac{(n-1)s^2}{\sigma^2}$$

has a chi-square distribution with $(n-1)$ degrees of freedom, where $s$ is the sample standard deviation.

The number of degrees of freedom in a sum of squares corresponds to the number of independent elements in the sum of squares. Considering again $y_1,\ldots,y_n$ independent and identically distributed normal random variables with mean $\mu$ and standard deviation $\sigma$, we have that the elements of the sum of squares $y_1-\overline{y},y_2-\overline{y},\ldots,y_n-\overline{y}$ they are not all independent. In reality, only $(n - 1)$ of these elements are independent, implying that $s$ has $(n - 1)$ degrees of freedom. We can find more details about this in the inference handbook.

Example 6.3.2

Suppose now that $X$ follows a chi-square distribution with $17$ degrees of freedom and we want to find $x_1$ and $x_2$ such that $P(x_1 \leq X \leq x_2)=0,95$. For this we note that

$$\mathbb{P}(x_1 \leq X \leq x_2)=\mathbb{P}(X \leq x_2)-P(X \leq x_1)=0,95$$

which implies that

$$\mathbb{P}(x_1\leq X\leq x_2) = 0,975-0,025=\mathbb{P}(X\leq 30,191)-\mathbb{P}(X\leq 7,564).$$

So $x_1=7,564$ and $x_2=30,191$.

Note 6.3.1

We observed that we could have found other values of $x_1$ and $x_2$ for which $\mathbb{P}(x_1\leq X\leq x_2) = 0,95$, however, in practice, we always look for values so that the probability $\mathbb{P}(X \ < \ x_1) =\mathbb{P}(X \ > \ x_2)$.

Example 6.3.3

Be $X$ a random variable with a standardized normal distribution. We will show that $X^2$, follows a distribution $\chi^2$ with one degree of freedom.

Be $Y=X^2$, then

$$\mathbb{P}(Y\leq y)=\mathbb{P}(-\sqrt{y}\leq X \leq \sqrt{y})=\displaystyle\frac{1}{\sqrt{2\pi}}\int_{-\sqrt{y}}^{\sqrt{y}}e^{-\frac{x^2}{2}}dx=\frac{2}{\sqrt{2\pi}}\int_{0}^{\sqrt{y}}e^{-\frac{x^2}{2}}dx.$$

Note that in the last equality the fact that the standardized normal function is symmetric around zero was used. Now we just need to change the variable by taking $t=\sqrt{y}$, then $\displaystyle \frac{dt}{dx}=\displaystyle \frac{t^{-\frac{1}{2}}}{2}$, so we obtain that:

$$\mathbb{P}(Y\leq y)=\frac{1}{\sqrt{2}\sqrt{\pi}}\int_{0}^{y}t^{-\frac{1}{2}}e^{-\frac{t}{2}}dt.$$

Here it is worth an observation, to show that $Y$ follows a chi-square distribution, we need to use the fact that $\Gamma\left(\frac{1}{2}\right)=\sqrt{\pi}$, and therefore the distribution above is a $\chi^2_1$.

Theorem 6.3.1

Be $X_i~\sim ~N(0,1)$ independent random variables, with $i=1, \cdots , \nu$ and $\nu \in \Bbb{N}$. So $Z=\displaystyle \sum_{i=1}^{\nu}(X_i)^2$ follows a chi-square distribution with $\nu$ degrees of freedom.

We will demonstrate this theorem via the moment generating function. How do random variables $X_1 , \cdots , X_n$ are independent, we have to

$$M_Z(t)=\mathbb{E}[e^{tZ}]=\mathbb{E}\left(e^{t\left(\sum_{i=1}^{\nu}(X_i)\right)}\right)=\mathbb{E}\left(\prod_{i=1}^{\nu}e^{t(X_i)^2}\right)= \prod_{i=1}^{\nu}\mathbb{E}\left(e^{t(X_i)^2}\right).$$

But

$$\mathbb{E}\left(e^{t(X_i)^2}\right)=\int e^{tx_i^2}\left(\frac{1}{\sqrt{2\pi}}\right)e^{-(1/2)x_i^2}dx_i=\int \frac{1}{\sqrt{2\pi}}e^{-(1/2)(1-2t)x_i^2}dx_i$$

and therefore

$$\mathbb{E}\left(e^{t(X_i)^2}\right)=\frac{1}{\sqrt{1-2t}}\int\frac{\sqrt{1-2t}}{\sqrt{2\pi}}e^{-(1/2)(1-2t)x_i^2}dx_i=\left(\frac{1}{1-2t}\right)^{\frac{1}{2}}$$

where the last integral is equal to 1, as it is precisely a normal with zero mean and variance $1/(1-2t)$. Therefore,

$$\mathbb{E}\left(e^{tZ}\right)\prod_{i=1}^{\nu}\mathbb{E}\left(e^{tX_i}\right)= \prod_{i=1}^{\nu}\frac{1}{\sqrt{1-2t}}=\left(\frac{1}{1-2t}\right)^{\nu/2}.$$

corresponds to the moment generating function of the chi-square distribution with $\nu$ degrees of freedom. And the result follows.

Generating Function of Moments, Expected Value and Variance

As seen in Theorem 6.3.1, if $X$ is a random variable with chi-square distribution with $\nu$ degrees of freedom, its moment generating function is given by:

$$M_X(t)=\mathbb{E}\left(e^{tX}\right)=\left(\frac{1}{1-2t}\right)^{\frac{\nu}{2}}.$$

In this way, we have to

$$M^\prime_X(t)=\nu\left(\frac{1}{1-2t}\right)^{\frac{\nu+2}{2}}$$

and

$$M^{\prime\prime}_X(t)=(\nu^2+2\nu)\left(\frac{1}{1-2t}\right)^{\frac{\nu+4}{2}}.$$

Therefore, we can calculate the expected value and variance of the variable $X$. In fact, we have to

$$\mathbb{E}\left(X\right)=M^\prime_X(0)=\nu\left(\frac{1}{1}\right)^{\frac{\nu+2}{2}}=\nu$$

and

$$\text{Var}\left(X\right)=\mathbb{E}\left(X^2\right)-\mathbb{E}^2\left(X\right)=M^{\prime\prime}_X(0)-(M^\prime_X(0))^2$$

from which we conclude that

$$\text{Var}\left(X\right)=(\nu^2+2\nu)\left(\frac{1}{1}\right)^{\frac{\nu+4}{2}}-\nu^2=\nu^2+2\nu-\nu^2=2\nu.$$

8.6.4 Student’s t Distribution

The Student’s t distribution is one of the most used distributions in statistics, with applications ranging from statistical modeling to hypothesis testing.

Definition 6.4.1

A continuous random variable $X$ has distribution $t$ of Student with $\nu$ degrees of freedom if its probability density function is given by

$$f(x)=\frac{\Gamma\left(\frac{\nu+1}{2}\right)}{\sqrt{\nu\pi}\Gamma\left(\frac{\nu}{2}\right)}\left(1+\frac{x^2}{\nu}\right)^{-\left(\frac{\nu+1}{2}\right)}\qquad x \in(-\infty,\infty).$$

We use the notation $X\sim t_\nu$.

Properties of the Student’s t-distribution

  • The density function of the Student’s t distribution has the same bell shape as the Normal distribution, but reflects the greater variability (with broader curves) that is to be expected in small samples.
  • The greater the degree of freedom, the closer the Student’s t distribution approaches the Normal distribution.

Below we have a graph of the density function of a Student’s t with 10 degrees of freedom.

Dtstud

Example 6.4.1

Consider $X_1 , \ldots , X_n$ independent random variables with normal distribution with mean $\mu$ and standard deviation $\sigma$. So, the variable

$$t=\frac{\overline{X}-\mu}{s/\sqrt{n}}$$

where $s$ is the sample standard deviation, has distribution $t$ of Student with $n-1$ degrees of freedom. This fact follows from the following theorem.

Theorem 6.4.1

Consider $Z$ and $V$ two independent random variables such that $Z\sim N(0,1)$ and $V\sim\chi_k^2$. Define $X$ as a random variable such that

$$X=\frac{Z}{\sqrt{V/k}}.$$

We have the random variable $X$ has distribution $t$ of Student with $k$ degrees of freedom.

Demo

The joint probability density function of $Z$ and $V$ is given by

$$f_{Z,V}(z,v) = \frac{1}{\sqrt{2\pi}}\frac{1}{\Gamma(k/2)}\left(\frac{1}{2}\right)^{k/2} u^{(k/2)-1}e^{-v/2}e^{-z^2/2}1!!1_{(0,\infty)}(v).$$

Considering the transformation

$$X = \frac{Z}{\sqrt{V/k}} \quad \hbox{e} \quad Y = V$$

the Jacobian is $\sqrt{y/k}$ and then

$$f_{X,Y}(x,y) = \sqrt{\frac{y}{k}}\frac{1}{\sqrt{2\pi}}\frac{1}{\Gamma(k/2)}\left(\frac{1}{2}\right)^{k/2}y^{(k/2)-1}e^{-y/2}e^{-x^2y/2k}1!!1_{(0,\infty)}(y)$$

and

$$f_X(x) = \int_{-\infty}^{\infty}f_{X,Y}(x,y)dy=\frac{1}{\sqrt{2k\pi}}\frac{1}{\Gamma(k/2)}\left( \frac{1}{2}\right)^{k/2}\int_0^\infty y^{k/2-1+1/2}e^{-1/2(1+x^2/k)y}dy.$$

Next, when we change the variable

$$w = y \frac{1}{2} \left( 1 + \frac{x^2}{k} \right),$$

we get that

$$f_X(x) = \frac{\Gamma[(k+1)/2]}{\Gamma(k/2)}\frac{1}{\sqrt{k\pi}}\frac{1}{(1+x^2/k)^{(k+1)/2}}$$

which is the probability density function of a distribution $t$ with $k$ degrees of freedom.

Moment generating function, Expected value and Variance

The moment generating function of the $t$ Student’s function is not defined for all degrees of freedom, however we can find the moments of Student’s t function for some degrees of freedom.

In this way, be $X \sim t_{\nu}$, then

Screenshot_187

The expected value of $t$ of student, is zero if $\nu \ > \ 1$ otherwise it is not defined. We just have to observe that $\mathbb{E}\left(X\right)=\mathbb{E}\left(X^1\right)$, that is, using the moments formula we have $k$ is odd and thus, it is defined only if $\nu \ > k=1$.

Using the distribution moments formula $t$ of Student we can calculate the variance of $X$.

Screenshot_188

8.6.5 Non-central Student t distribution

In probability and statistics, the distribution $t$ non-central generalizes distribution $t$ of Student. Just like the distribution $t$ central, distribution $t$ non-central is initially used in statistical inference, especially in power analysis.

Definition 6.5.1

Be $Z\sim N(\lambda,1)$ and $U\sim\chi_n^2$, with Z and U independent. So

$$t_{n,\lambda}\sim\frac{Z}{\sqrt{\frac{U}{n}}}$$

has distribution $t$ non-central with non-centrality parameter $\lambda$.

The graph below shows the density function of a $t$ of Student with $6$ non-centralized degrees of freedom where the non-centrality parameter is $10$. Note that the graph of its density function is just a $t$ student com $6$ translated degrees of freedom.

Dtstudncp

8.6.6 Snedecor F Distribution

Snedecor’s F distribution also known as Fisher’s distribution is often used in statistical inference for analysis of variance, more details can be found in the inference booklet.

Definition 6.6.1

A continuous random variable $X$ has distribution $F$ from Snedecor with $n$ degrees of freedom in the numerator and $m$ degrees of freedom in the denominator if its probability density function is defined by

$$f(x)=\frac{\Gamma\left[\frac{m+n}{2}\right]\left(\frac{m}{n}\right)^{\frac{m}{2}}x^{\frac{m}{2}-1}}{\Gamma\left[\frac{m}{2}\right]\Gamma\left[\frac{n}{2}\right]\left[\left(\frac{m}{n}\right)x+1\right]^{\frac{m+n}{2}}}\qquad x\in [0,\infty)$$

In this case, we use the notation $X\sim F(m,n)$.

The graph below illustrates the distribution density function $F$ of Snedecor with parameters $m=3$ and $n=2$.

fsnedecor

Example 6.6.1

An important example of the distribution $F$ of Snedecor corresponds to statistics $F$. Suppose we have two independent populations having normal distributions with variances equal to $\sigma^2$. Consider $Y_{11},\ldots,Y_{1n}$ a random sample of the first population with $n$ observations and $Y_{21},\ldots,Y_{2m}$ a random sample from the second population with $m$ observations. So, the statistics

$$F=\frac{\frac{(n-1)s_1}{(n-1)\sigma^2}}{\frac{(m-1)s_2}{(m-1)\sigma^2}}$$

has distribution $F$ from Snedecor with $(n-1)$ degrees of freedom in the numerator and $(m-1)$ degrees of freedom in the denominator, where $s_1$ and $s_2$ are the sample standard deviations of the first and second samples, respectively.

Theorem 6.6.1

Consider $Q_n$ and $Q_m$ random variables with chi-square distribution with $n$ and $m$ degrees of freedom, respectively. Furthermore, assume that these random variables are independent. Then the random variable

$$F=\frac{Q_m/m}{Q_n/n}$$

has distribution $F$ from Snedecor with $m$ degrees of freedom in the numerator and $n$ degrees of freedom in the denominator.

Demo

Be $X$ a positive random variable with probability density function $f_X$ and $Y$ a random variable with density function $f_Y$. Suppose the random variables $X$ and $Y$ are independent. In this case, the joint probability density function is given by $f_{XY} = f_X f_Y$. Consider the fraction $Z=\frac{Y}{X}$. In this case, the joint density function of the quotient $Z$ is given by

$$\mathbb{P}\left(Z\leq z\right)=\mathbb{P}\left(\frac{Y}{X}\leq z\right)=\mathbb{P}\left((X,Y) \in B_z \right),$$

in which $B_z = ((x,y) \in [0, \infty) \times \Bbb{R} : y \leq zx )$. So we have to

$$F_{Z}(z)= \mathbb{P}\left((X,Y) \in B_z\right) = \int_{0}^{\infty}\int_{-\infty}^{zx}f_{XY}(x,y)dydx$$

Considering variable change $y=xw$; we have to:

$$F_{Z}(z)=\int_{0}^{\infty}\int_{-\infty}^{z}xf_{XY}(x,xw)dwdx=\int_{-\infty}^{z}\int_{0}^{\infty}xf_{XY}(x,xw)dxdw.$$

Thus, the probability density function of $Z$ is given by

$$f_{Z}(z)=\int_{0}^{\infty}xf_{XY}(x,xz)dx.$$

How $X$ and $Y$ are independent, the joint distribution of the quotient is given by

$$f_{Z}(z)=\int_{0}^{\infty}xf_{X}(x)f_{Y}(xz)$$

Therefore, the distribution of the quotient $Z=\frac{Y}{X}$, with $Y\sim \chi^2_m$ and $X\sim \chi^2_n$ is given by:

$$f_Z(z)=\int_{0}^{\infty}x\frac{x^{(n/2)-1}e^{-x/2}}{\Gamma\left(\frac{n}{2}\right)2^{n/2}}\frac{(xz)^{(m/2)-1}e^{-xz/2}}{\Gamma\left(\frac{m}{2}\right)2^{m/2}}dx$$

from which we conclude that

$$f_Z(z)=\frac{z^{(m/2)-1}}{\Gamma\left(\frac{m}{2}\right)\Gamma\left(\frac{n}{2}\right)2^{(m+n)/2}}\int_{0}^{\infty}x^{(m+n)/2-1}e^{-x(z+1)/2}dx$$

remembering that $\displaystyle\Gamma(x)=\int_{0}^{\infty}t^{x-1}e^{-t}dt$. Making the substitution $\displaystyle t=x\left(\frac{z+1}{2}\right)$ and rearranging the integral above we have:

$$f_Z(z)=\frac{z^{(m/2)-1}}{\Gamma\left(\frac{m}{2}\right)\Gamma\left(\frac{n}{2}\right)2^{(m+n)/2}} \frac{1}{\left(\frac{z+1}{2}^{(m+n)/2}\right)}\int_{0}^{\infty}t^{(m+n)/2 - 1}e^{-t}dt=\frac{\Gamma{\left(\frac{m+n}{2}\right)}z^{(m/2)-1}}{\Gamma{\left(\frac{m}{2}\right)}\Gamma{\left(\frac{n}{2}\right)}(z+1)^{(m+n)/2}}.$$

To finish, we take $W=\frac{Y/m}{X/n}$ and in this case we have to

$$\mathbb{P}\left(W \leq w\right)=\mathbb{P}\left(\frac{Y/m}{X/m} \leq w \right)=\mathbb{P}\left(\frac{Y}{X} \leq \frac{m}{n} w \right)= \int_{0}^{\frac{m}{n}w} f_{Z}(z)dz.$$

When performing the transformation of variables $t=(n/m)z$, we conclude that

$$\mathbb{P}\left(W \leq w\right)= \int_{0}^w f_Z (tm/n) (m/n) dt$$

By substituting, we conclude that $W$ follows a distribution $F$ with $m$ degrees of freedom in the numerator and $n$ degrees of freedom in the denominator.

By construction, the square of the t-Student distribution with $\nu$ degrees of freedom has an F distribution with $1$ degree of freedom in the numerator and $\nu$ degrees of freedom in the denominator.

Generating Function of Moments, Expected Value and Variance

There is no moment generating function for the distribution $F$ from Snedecor.

So we will calculate the expected value of X with $X\sim F(m,n)$.

$$\mathbb{E}\left(X\right)=\int_{0}^{\infty}x\frac{\Gamma{\left(\frac{m+n}{2}\right)}\left(\frac{m}{n}\right)^{(m/2)-1}x^{(m/2)-1}}{\Gamma\left(\frac{m}{2}\right)\Gamma\left(\frac{n}{2}\right)\left(1+\frac{m}{n}x\right)^{(m+n)/2}}=\frac{\Gamma{\left(\frac{m+n}{2}\right)}\left(\frac{m}{n}\right)^{(m/2)-1}}{\Gamma\left(\frac{m}{2}\right)\Gamma\left(\frac{n}{2}\right)} \int_{0}^{\infty}\displaystyle \frac{x^{(m/2)}}{\left(1+\frac{m}{n}x\right)^{(m+n)/2}}$$

and therefore

$$\mathbb{E}\left(X\right)=\frac{n}{(n-2)}, \ \text{se} \ n \ > \ 2.$$

The variance of the distribution $X\sim F(m,n)$ is given by

$$\text{Var}\left(X\right)=\mathbb{E}\left(X^2\right)-\mathbb{E}^2\left(X\right)=\frac{2n^2(m+n-2)}{m(n-2)^2(m-4)}, \ \text{se} \ n \ > \ 4.$$

8.6.7 Non-central F Distribution

In probability theory and statistics, the distribution $F$ noncentral is a continuous probability distribution that is a generalization of the distribution $F$ common. It describes the distribution of the quotient $\frac{X/n_1}{Y/n_2}$, where the numerator $X$ has a non-central chi-square distribution with $n_1$ degrees of freedom and the denominator $Y$ has a chi-square distribution with $n_2$ degrees of freedom. Furthermore, $X$ and $Y$ are independent.

Definition 6.7.1

Se $X\sim\chi_{n_1}^2(\lambda)$ and $Y\sim\chi_{n_2}^2$, and yet, $X$ and $Y$ are independent, then:

$$\frac{\frac{X}{n_1}}{\frac{Y}{n_2}}\sim F_{n_1,n_2}(\lambda)$$

with $\lambda=\frac{1}{2}\mu$ (non-centrality parameter). In this case, we say that $F$ has a distribution $F$ not central.

The graph below illustrates the distribution density function $F$ of Snedecor with parameters $n_1=3$, $n_2=2$ and non-centrality parameter $\lambda=4$.

fsnedecor-ncp

8.6.8 Cauchy Distribution

The Cauchy distribution can be considered a pathological distribution, as it does not present mean and variance. However, the Cauchy distribution has its importance in several areas of scientific knowledge in physics, for example, this distribution is the solution of a differential equation that describes a certain type of oscillator, in mathematics it is one of the solutions to the Laplace equation, among many other purposes. The Cauchy distribution, named after the famous mathematician Augustin-Louis Cauchy, despite its particularities, has several important properties that we will analyze below.

Definition 6.8.1

A continuous random variable $X$ has a Cauchy distribution with parameters $\alpha$ and $\beta$ if its probability density function and its distribution function are defined, respectively, by

$$f(x)=\frac{1}{\pi\beta\left[1+\left[\frac{x-\alpha}{\beta}\right]^2\right]}\qquad x\in(-\infty,\infty)$$

$$F(x)=\frac{1}{2}+\pi^{-1}\arctan\left(\frac{x-\alpha}{\beta}\right), \ -\infty \ < \ x \ < \ \infty$$

where $\alpha$ and $\beta$ are location and scale parameters, respectively.

DensCauchy

Figure 6.8.1: Graph of the density function of the Cauchy distribution.

FDACauchy

Figure 6.8.2: Graph of the cumulative distribution function of the Cauchy distribution for different values ​​of α and β.

The Cauchy distribution satisfies the following properties:

  • The median of the distribution is $ \alpha^4 $ and the first and third quartiles are equal $ \alpha-\beta $ and $ \alpha+\beta $, respectively;
  • Its mean is not defined, so it also does not have a standard deviation;
  • The Cauchy distribution can be simulated as the ratio between two independent normals;
  • The standard form of the Cauchy distribution is obtained by doing $ \alpha=0 $ and $ \beta = 1 $

$$f(x)=\frac{1}{\pi}~\cdot ~\left(\frac{1}{1+x^2}\right), \ -\infty \ < \ x \ < \ \infty;$$

  • Establishing some comparisons, we can mention that both Normal and Cauchy distributions are symmetric. The main difference between them is that in the Cauchy distribution the flaps are more elongated and flatter.

Example 6.8.1

Be $X$ a continuous random variable with uniform distribution over the interval $\left[\displaystyle \frac{-\pi}{2};\frac{\pi}{2}\right]$. Prove that $Y=a \tan{(X)}$, $a \ > \ 0$ follows a Cauchy distribution with parameters $\alpha=0$ and $\beta=a$.

First we must find the probability density function of $X$. How $X$ follows a uniform distribution we have that:

$$f(x)=\frac{1}{b-a}=\frac{1}{\frac{\pi}{2}-\frac{-\pi}{2}}=\frac{1}{\pi}$$

and then

$$\mathbb{P}(Y\leq y)=\mathbb{P}(a\tan{(X)}\leq y)=\mathbb{P}\left(\tan{(X)}\leq \frac{y}{a}\right)=\mathbb{P}\left(X\leq \tan^{-1}{\left(\frac{y}{a}\right)}\right)=\int_{-\infty}^{\tan^{-1}{\left(\frac{y}{a}\right)}}\frac{1}{\pi}dx.$$

Thus making a change of variable $t=\tan^{-1}{\left(\frac{y}{a}\right)}$, we will have $\displaystyle \frac{dt}{dy}=\frac{a}{y^2+a^2}$. And therefore by the change of variable theorem we have that:

$$\int_{0}^{\tan^{-1}{\left(\frac{y}{a}\right)}}\frac{1}{\pi}dx=\int_{-\infty}^{t}\frac{1}{\pi}\left(\frac{a}{y^2+a^2}\right)dy.$$

Therefore $Y$ follows a Cauchy distribution with $\alpha=0$ and $\beta=a$.

Generating Function of Moments, Expected Value and Variance

The Cauchy distribution does not present a moment generating function, its expectation is also not defined and as a consequence its variance is not defined either.

8.6.9 Gamma Distribution

The gamma distribution is one of the most general distributions, as several distributions are a particular case of it, such as exponential, chi-square, among others. This distribution has as its main applications the analysis of product lifetime.

Definition 6.9.1

A random variable $X$ has Gamma distribution with parameters $\alpha \ > \ 0$ (also called shape parameter) and $\beta \ > \ 0$ (rate parameter), denoting $X \sim \ \text{Gama}(\alpha,\beta)$, if its density function is given by

Screenshot_189

The approximate graphs of the distribution and density functions for $\alpha = 2$ and $\beta = 0,5$ are presented, respectively, in the following figures

funcoes_gamma

Note 6.9.1

In some references, a scale parameter is used $\theta \ > \ 0$ equivalent to the inverse of the rate parameter, that is, $\beta=\frac{1}{\theta}$. And the previous density function is written as

Screenshot_190

Theorem 6.9.1

Suppose $(X_i)_i$ is a sequence of independent random variables, such that $X_i\sim \ \text{Gama}(\alpha_i,\beta)$. So

$$\sum_{i=1}^{k}X_i\sim \ \text{Gama}\left(\sum_{i=1}^{k}\alpha_i,\beta\right).$$

To demonstrate this fact we will use the moment generating function, but first we will find the gamma distribution generating function.

$$M_X(t)=E[e^{tX}]=\int_{0}^{\infty}e^{tx}x^{\alpha-1}e^{-\beta x}\frac{\beta^\alpha}{\Gamma(\alpha)}=\frac{\beta^{\alpha}}{\Gamma(\alpha)}\int_{0}^{\infty}x^{\alpha-1}e^{-(\beta-t)x}dx=\frac{\beta^\alpha}{\Gamma(\alpha)}\frac{\Gamma(\alpha)}{(\beta-t)^{\alpha}}.$$

Therefore,

$$M_X(t) =\left(\frac{\beta}{\beta-t}\right)^{\alpha}.$$

Thus we show that $\displaystyle \sum_{i=1}^{k}X_i\sim \ \text{Gama}(\sum_{i=1}^{k}\alpha_i,\beta)$. In fact,

$$M_{\sum_{i=1}^{k}X_i}(t)=\mathbb{E}\left(e^{t(\sum_{i=1}^{k}x_i)}\right)= \mathbb{E}\left(\prod_{i=1}^{k}e^{tx_i}\right)=\prod_{i=1}^{k}\mathbb{E}\left(e^{tx_i}\right) =\prod_{i=1}^{k}\left(\frac{\beta}{\beta-t}\right)^{\alpha_i}=\left(\frac{\beta}{\beta-t}\right)^{\sum_{i=1}^{k}\alpha_i}.$$

Therefore $\displaystyle \sum_{i=1}^{k}X_i\sim \ \text{Gama}(\sum_{i=1}^{k}\alpha_i,\beta)$.

With the demonstration of this theorem, we also show that the sum of independent chi-square distributions has a chi-square distribution, with the sum of the degrees of freedom.

Generating Function of Moments, Expected Value and Variance

We will use the moment generating function to calculate the mean and variance of the gamma distribution. So be it $X$ a random variable, such that $X\sim \ \text{Gama}(\alpha,\beta)$, then its moment generating function is given by:

$$M_X(t)=\mathbb{E}\left(e^{tX}\right)=\int_{0}^{\infty}e^{tx}x^{\alpha-1}e^{-\beta x}\frac{\beta^\alpha}{\Gamma(\alpha)}=\frac{\beta^{\alpha}}{\Gamma(\alpha)}\int_{0}^{\infty}x^{\alpha-1}e^{-(\beta-t)x}dx=\frac{\beta^\alpha}{\Gamma(\alpha)}\frac{\Gamma(\alpha)}{(\beta-t)^{\alpha}}$$

Therefore, we conclude that

$$M_X(t) =\left(\frac{\beta}{\beta-t}\right)^{\alpha}.$$

To calculate the expected value and variance we will need the first and second moments, so we simply derive the moment generating function.

$$M^\prime_X(t)=\frac{\alpha}{\beta-t}\left(\frac{\beta}{\beta-t}\right)^\alpha$$

and

$$M^{\prime\prime}_X(t)=\frac{\alpha(\alpha+1)}{(\beta-t)^2}\left(\frac{\beta}{\beta-t}\right)^\alpha.$$

In this way, the expected value of $X$ is given by:

$$\mathbb{E}(X)= M^{\prime}_X(0)=\frac{\alpha}{\beta}\left(\frac{\beta}{\beta}\right)^\alpha=\frac{\alpha}{\beta}$$

and its variance is given by

$$\text{Var}(X)=\mathbb{E}\left(X^2\right)-\mathbb{E}^2\left(X\right)=M^{\prime\prime}_X(0)-(M^\prime_X(0))^2=\frac{\alpha(\alpha+1)}{\beta^2}-\left(\frac{\alpha}{\beta}\right)^2\displaystyle =\frac{\alpha}{\beta^2}.$$

Note 6.9.2

It is important to note that, in the case where we use the Gamma distribution with the scale parameter $\theta = \frac{1}{\beta} \ > \ 0$ for the random variable $X$, we have to

$$\mathbb{E}\left(X\right) = \alpha\theta \quad \text{e} \quad \text{Var}\left(X\right) = \alpha\theta^2$$

Example 6.9.1

Be $ X\sim Gamma(\alpha,\beta) $, then $ cX\sim Gamma(\alpha,\beta/c) $.

In fact, by the moment generating function we have

$$M_{cX}(t)=\mathbb{E}(e^{tcx})=\int_0^\infty e^{tcx}x^{\alpha-1}e^{-\beta x} \frac{\beta^\alpha}{\Gamma(\alpha)} dx$$

$$=\frac{\beta^\alpha}{\Gamma(\alpha)} \int_0^\infty x^{\alpha-1}e^{-(\beta-ct) x} \frac{\beta^\alpha}{\Gamma(\alpha)} dx=\left(\frac{\beta}{(\beta-ct)}\right)^\alpha$$

$$=\left(\frac{\beta/c}{\frac{1}{c}(\beta-ct)}\right)^\alpha=\left(\frac{\beta/c}{(\beta/c-t)}\right)^\alpha$$

Therefore the result follows.

8.6.10 Beta Distribution

The Beta distribution is often used to model the proportion, or modeling of objects that belong to the range $(0,1)$, as this distribution is defined in this range. Due to the great versatility of a random variable $X$ with beta distribution to model probability density functions on the interval $(0,1)$ and the possibility of generalizing this versatility to any random variable $Y$ restricted to a finite range $(m,n)$, simply using the relation $Y = (n - m)X + m$, the beta model has numerous applications to represent physical quantities whose values are restricted to an identifiable range.

Definition 6.10.1

The Beta distribution is a continuous probability distribution, with two parameters $\alpha$ and $\beta$ whose density function for values $0 \ < \ x \ < \ 1$ is

$$f(x)=\frac{\Gamma(\alpha+\beta)}{\Gamma(\alpha)\Gamma(\beta)}x^{\alpha-1}(1-x)^{\beta-1}\quad x\in(0,1) \ \text{e} \ \alpha,\beta \ > \ 0$$

In the model, the parameters $\alpha$ and $\beta$ define the shape of the distribution. Se $\alpha = \beta$, the distribution is symmetric, if $\alpha \ > \ \beta$, the asymmetry is negative and, in the case of $\alpha \ < \ \beta$, its asymmetry is positive.

Note 6.10.1

The beta distribution does not have a closed form for its cumulative distribution function.

  • Note that if α = β = 1, the Beta density reduces to Uniform in the interval (0,1).
  • Beta density is appropriate for modeling proportions, because of its domain (the range (0,1)) and also because of the variety of forms that the density can take, given the specified values ​​of α and β.

densidade_beta

Generating Function of Moments, Expected Value and Variance

The moment generating function of the beta distribution is complicated and involves the so-called confluent hypergeometric function, which is the solution of a differential equation called the confluent hypergeometric differential equation, also known as the Whittaker function. However, we can find its moment function, given as follows:

$$\mathbb{E}\left(X^k\right)=\frac{\Gamma(\alpha+\beta)}{\Gamma(\alpha)\Gamma(\beta)}\int_{0}^{1}x^{\alpha +k-1}(1-x)^{\beta-1}dx=\displaystyle \frac{\Gamma(\alpha+\beta)\Gamma(\alpha+k)}{\Gamma(\alpha+\beta+k)\Gamma(\alpha)}.$$

With the moment function in hand we can find the expected value and variance.

$$\mathbb{E}(X)=\frac{\Gamma(\alpha+\beta)\Gamma(\alpha+1)}{\Gamma(\alpha+\beta+1)\Gamma(\alpha)}=\displaystyle \frac{\Gamma(\alpha+\beta)\alpha\Gamma(\alpha)}{(\alpha+\beta)\Gamma(\alpha+\beta)\Gamma(\alpha)}=\displaystyle \frac{\alpha}{\alpha+\beta}$$

To calculate the variance we need $\mathbb{E}\left(X^2\right)$, which is given by

$$\mathbb{E}\left(X^2\right)=\frac{\Gamma(\alpha+\beta)\Gamma(\alpha+2)}{\Gamma(\alpha+\beta+2)\Gamma(\alpha)}=\frac{\Gamma(\alpha+\beta)(\alpha+1)\alpha\Gamma(\alpha)}{(\alpha+\beta+1)(\alpha+\beta)\Gamma(\alpha+\beta)\Gamma(\alpha)}=\frac{(\alpha+1)\alpha}{(\alpha+\beta+1)(\alpha+\beta)}.$$

Therefore, we have to

$$\text{Var}(X)=\mathbb{E}\left(X^2\right)-\mathbb{E}^2\left(X\right)=\frac{(\alpha+1)\alpha}{(\alpha+\beta+1)(\alpha+\beta)}-\frac{\alpha^2}{(\alpha+\beta)^2}\displaystyle =\frac{\alpha\beta}{(\alpha+\beta+1)(\alpha+\beta)^2}.$$

8.6.11 Non-central Beta Distribution

Distribution 6.11.1

The non-central Beta distribution is a generalization of the Beta distribution. Be $Z_1\sim\chi_m^2(\lambda)$ and $Z_2\sim\chi_n^2$. Then, the non-central beta distribution is defined by the ratio

$$\frac{Z_1}{Z_1+Z_2}\sim \ \text{Beta}(\alpha,\beta,\lambda).$$

The graph below shows the non-central beta distribution with $\alpha=2$, $\beta=7$ and $\lambda=3$.

beta-ncp

8.6.12 Exponential Distribution

This is a distribution that is characterized by having a constant failure rate function. The exponential distribution is the only one with this property. It is considered one of the simplest in mathematical terms. This distribution has been used extensively as a model for the lifespan of certain products and materials. It adequately describes the lifespan of insulating and dielectric oils, among others.

Definition 6.12.1

The random variable $X$ has an exponential distribution with parameter $\lambda$, $\lambda \ > \ 0$, if it has a probability density function given by:

Screenshot_191

in which $\lambda$ is the rate parameter of the distribution and must satisfy $\lambda \ > \ 0$. In this case, $\lambda$ is the average lifespan and $x$ It is a time of failure. The parameter must have the same unit as the failure time $x$. That is, if $x$ is measured in hours, $\lambda$ will also be measured in hours.

The cumulative distribution function $F(x)$ is given by

Screenshot_192

We use the notation $X\sim \ \text{Exp}(\lambda)$.

Note 6.12.1

The Exponential distribution can be parameterized in an alternative way according to the probability density function given by

Screenshot_193

In this case, we say that $\beta \ > 0$ is the scale parameter of the distribution and is the inverse of the rate parameter in the definition above. In this alternative definition, the random variable $X$ can be interpreted as the length of time that a mechanical or biological system survives. For this case, we denote $X\sim \ \text{Exp}(\beta)$ and, unfortunately, this alternative definition becomes ambiguous. In this case, we must check which of the two specifications is being used when we write $X\sim \ \text{Exp}(\lambda)$. In other words, we must always check whether $\lambda$ is referring to the rate parameter or the scale parameter of the distribution.

We make it clear here that, unless we specify otherwise, whenever we write $X\sim \ \text{Exp}(\lambda)$ we are referring to the parameterization in which $\lambda$ is the rate parameter.

Note 6.12.2

Note that the exponential function, in fact, is a particular case of the Gamma function, as if $X\sim \ \text{Exp}(\lambda)$, then $X\sim \ \text{Gama}(1,\lambda)$

The graph below shows the exponential distribution with parameters $\lambda=1/2, 1$ and $3/2$.

DensExp

Figure 6.12.1: Graph of the density function for Exponential distribution.

Example 6.12.1

The time until diesel engine fan failure has an exponential distribution with parameter $\lambda = \frac{1}{28700}$ hours. What is the probability of one of these fans failing within the first 24000 hours of operation?

$$\mathbb{P}[0\leq X\leq 24000]=\int_0^{24000}f(x)dx=\int_0^{24000}\frac{1}{28700}\exp\left(-\frac{x}{28.700}\right)=0,567.$$

In other words, the probability of one of these fans failing in the first $24000$ operating hours is approximately 56.7%.

Example 6.12.2

Suppose that the lifespan of a given insect species has an exponential parameter distribution $\lambda=1/12$ day. Suppose also that these insects reach sexual maturity after $3$ days of his birth. What is the probability density function, in days, of insects being able to reproduce? And what is the probability that a breeding insect will live longer than $24$ days?

Be $X$ the distribution of insect lifespans, and $Y$ the distribution of the lifespan of insects that reach reproduction. Note that $Y=X+3$, so

$$F_Y(y)=\mathbb{P}(Y\leq y)=\mathbb{P}(X+3\leq y)=\mathbb{P}(X\leq y-3)=F_X(y-3).$$

Therefore, the probability density function of $Y$ is given by

Screenshot_194

Now we need to find out what is the probability that the breeding insect lasts more than 24 days. Using the above density we have

$$\mathbb{P}(Y \ > \ 24)=1-\mathbb{P}(Y\leq 24)=1-F_Y(24)=1-\int_{-\infty}^{24}f_Y(y)dy=1-\int_{3}^{24}\frac{1}{12}e^{-\frac{(y-3)}{12}}\approx 0,1738.$$

Example 6.12.3

A factory uses two methods to produce light bulbs. 70% of lamps are produced using the method $A$ and the others by the method $B$. The duration of the lamp depends on the method by which it was produced, and those produced by the method $A$ follow an exponential distribution with parameter $1/80$ and those of the method $B$ follow an exponential parameter $1/100$. What is the probability that, if we choose a light bulb at random, it will last longer than $100$ hours?

Be $X_A\sim \ \text{Exp}(1/80)$ and $X_B\sim \text{Exp}(1/100)$ and consider the events C={A lamp lasts more than 100 hours}, A={The lamp was manufactured using method A} and B={The lamp was manufactured using method B}. So using theorem 1.4.2 we obtain that

$$\mathbb{P}(C)=\mathbb{P}(C|A)\mathbb{P}(A)+\mathbb{P}(C|B)\mathbb{P}(B)=\mathbb{P}(X_A\geq 100)0,7+\mathbb{P}(X_B\geq 100)0,3$$

and therefore

$$\mathbb{P}(C)=0,7\int_{100}^{\infty}\frac{1}{80}e^{-\frac{x}{80}}dx+0,3\int_{100}^{\infty}\frac{1}{100}e^{-\frac{x}{100}}dx\approx 0,2+0,11=0,31.$$

Therefore, the probability that a bulb chosen at random will last more than 100 hours is 31%.

Example 6.12.4

Knowing that $X \ \sim \ \text{Exp}(1)$, what is the probability density function of $Y=e^{-X}$.

We know that the density of $X$ is given by

Screenshot_195

So

$$F_Y(y)=P(Y\leq y)=P(e^{-X}\leq y)=P(X\geq -\ln{y})=1-P(X\leq -\ln{y})=1-F_X(-\ln{y})$$

and therefore we conclude that

$$f_Y(y)=\displaystyle \frac{d F_Y(y)}{dy}=\frac{d[1-F_X(-\ln{y})]}{dy}=-f_X(-\ln{y})\left(-\frac{1}{y}\right)=\frac{f_X(-\ln{y})}{y}=\frac{e^{-(-\ln{y})}}{y}=1.$$

Therefore $Y$ follows a uniform distribution in (0,1).

Generating Function of Moments, Expected Value and Variance

Be $X$ a random variable with exponential distribution with parameter $\lambda$. Then its moment generating function is given by:

$$M_X(t)=\mathbb{E}\left(e^{tX}\right)=\int_{0}^{\infty}\lambda e^{-\lambda x}dx=\int_{0}^{\infty}\lambda e^{(t-\lambda)x}=\left|^{\infty}_0\frac{\lambda}{t-\lambda}\right.=\frac{\lambda}{\lambda-t}.$$

We have that the expected value and variance of a random variable X with exponential distribution with parameter λ are given, respectively, by

$$\mathbb{E}(X)=\int_{-\infty}^{\infty}xf(x) dx=\int_{0}^{\infty}x\lambda e^{-\lambda x}dx=\lambda\int_{0}^{\infty}xe^{-\frac{1}{\lambda} x}dx$$

and, solving this integral by parts we conclude that

$$\mathbb{E}(X)= \frac{1}{\lambda}$$

Therefore, the expected value of $X$ is $\frac{1}{\lambda}$. To find the variance of $X$, let us first calculate the expected value of $X^2$.

$$\mathbb{E}(X^2)=\int_{-\infty}^{\infty}g(x)f(x)dx=\int_{0}^{\infty}x^2\lambda e^{-\lambda x}dx$$

and, solving the integral by parts, we obtain that

$$\mathbb{E}(X^2) = \frac{2}{\lambda^2}.$$

Therefore, the variance of $X$ is given by

$$\text{Var}(X)=\mathbb{E}(X^2 )-\mathbb{E}^2(X)=\frac{2}{\lambda^2}-\frac{1}{\lambda^2}=\frac{1}{\lambda^2}.$$

Thus, the expected value and variance of $X$ are given, respectively, by:

$$\mathbb{E}(X)=\frac{1}{\lambda} ~~~ Var(X)=\frac{1}{\lambda^2}.$$

We can also calculate the expected value and variance using the moment generating function

$$M^\prime_X(t)=\frac{\lambda}{(\lambda -t )^2}$$

and

$$M^{\prime\prime}_X(t)=\frac{2\lambda}{(\lambda-t)^3}.$$

Therefore, the expected value and variance can be calculated by

$$\mathbb{E}\left(X\right)=M^\prime_X(0)=\frac{1}{\lambda}$$

and

$$\text{Var}\left(X\right)=\mathbb{E}\left(X^2\right)-\mathbb{E}^2\left(X\right)=M^{\prime\prime}_X(0)-(M^\prime_X(0))=\frac{2}{\lambda^2}-\frac{1}{\lambda^2}=\frac{1}{\lambda^2}.$$

Note 6.12.3

When we are working with the exponential distribution parameterized with the scale parameter $\beta \ > \ 0$ we have to

$$\mathbb{E}\left(X\right) = \beta \quad \text{e} \quad \text{Var}\left(X\right) = \beta^2.$$

We will not demonstrate these properties, but we emphasize that they are immediate from the fact that $\beta = \frac{1}{\lambda}$ in which $\lambda$ is a rate parameter.

8.6.13 Weibull Distribution

The Weibull distribution was originally proposed by W. Weibull (1954) in studies related to failure time due to metal fatigue. It is often used to describe the lifespan of industrial products. Its popularity in practical applications is due to the fact that it comes in a wide variety of forms, all with one basic property: its failure rate function is monotonous. That is, it is either increasing or decreasing or constant. It adequately describes the life of springs, electronic components, ceramics, capacitors and dielectrics. We can find more details about the Weibull distribution in the reliability booklet.

Definition 6.13.1

A random variable $X$ has a Weibull distribution if it has a probability density function given by:

Screenshot_196

The graph below shows the Weibull distribution fixing the parameter $\alpha=2$ and varying the parameter β=0.5, 1.5 and 3.

DensWeibull

Figure 6.13.1: Graph of the density function of the Weibull distribution.

Generating Function of Moments, Expected Value and Variance

The moment generating function of the Weibull function does not have a closed form, however we can find it.

$$\mathbb{E}\left(X^{k}\right)=\int_{0}^{\infty}x^k\frac{\alpha}{\beta^{\alpha}}x^{\alpha-1}e^{-(x/\beta)^{\alpha}}$$

So making a substitution $t=\displaystyle \left(\frac{x}{\beta}\right)^\alpha$, we have to

$$t=\left(\frac{x}{\beta}\right)^\alpha, \quad dt=\frac{\alpha}{\beta^\alpha}x^{\alpha-1}dx \quad \text{e} \quad x^{k}=(t\beta^\alpha)^{k/\alpha}=t^{k/\alpha}\beta^{k}$$

and in this way

$$\mathbb{E}\left(X^k\right)=\int_{0}^{\infty}t^{k/\alpha}\beta^{k}e^{-t}dt=\beta^{k}\Gamma\left(\frac{k}{\alpha}+1\right).$$

Thus, being $X$ a random variable with Weibull distribution, the expected value of $X$ is given by

$$\mathbb{E}(X)=\beta\Gamma\left[1+\left(\frac{1}{\alpha}\right)\right]$$

and the variance is given by

$$\text{Var}(X)=\mathbb{E}\left(X^2\right)-\mathbb{E}^2\left(X\right)=\beta^{2}\Gamma\left(\frac{2}{\alpha}+1\right)-\left(\beta\Gamma\left(\frac{1}{\alpha}+1\right)\right)^2$$

from which we conclude that

$$\text{Var}(X)=\beta^2\left(\Gamma\left[1+\left(\frac{2}{\alpha}\right)\right]-\Gamma[1+(1+\alpha)]^2\right)$$

8.6.14 Gumbel Distribution (or extreme value)

The Gumbel or extreme value distribution arises when taking the logarithm of a variable with the Weibull distribution. That is, if the variable $X$ has a Weibull distribution, so the variable $Y = \log(X)$ has a Gumbel distribution. We can find more details about this distribution in the reliability booklet.

Definition 6.14.1

A variable $Y$ has a Gumbel distribution if it has a probability density function given by

$$f(x)=\frac{1}{\sigma}\exp\left[\frac{x-\mu}{\sigma}-\exp\left(\frac{x-\mu}{\sigma}\right)\right]\qquad x\in (-\infty,\infty)$$

in which $\sigma=1/\delta$ and $\mu=\log(\alpha)$.

The graph below shows the gumbel distribution with parameters $\mu=0.5$ and $\sigma=2$.

DensGumbel_0

Figure 6.14.1: Graph of the density function of the Gumbel distribution.

Distributions of extreme values ​​were obtained as bounds of the distributions of larger (or smaller) values ​​in random samples of increasing sample size. To obtain a non-degenerate limiting distribution it is necessary to “reduce” the largest real value by applying a linear transformation with coefficients that depend on the sample size. This process is analogous to normalization although not limited to this particular sequence of linear transformations.

Se $X_1,\dots,X_n$ are independent random variables with common probability density function

$$p_{X_j}(x)=f(x),\quad j=1,\dots, n$$

then the cumulative distribution function of $\widetilde{X}_n=\max(X_1,\dots,X_n)$ is given by

$$F_{\widetilde{X}_n}(x)=[F(x)]^n=\left[\int^x_{-\infty}f(s)ds\right]^n$$

When n tends to infinity, we have that for any fixed value of x

Screenshot_198

which is a degenerate distribution.

There is a limiting distribution of interest, which we find as the limiting distribution of a sequence of “reduced” transformed values, e.g. $(a_n \widetilde{X}_n+b_n)$ in which $a_n$ and $b_n$ may depend on n, but not on x.

To distinguish the limiting accumulated distribution function from the “reduced” highest value of $F(x),$ we denote by $G(x).$ So, since the largest of the values $Nn$ of $X_1,\dots, X_{Nm}$ is also the largest of $N$ values

$$\max(X_{(j-1)n+1},X_{(j-1)n+2},\dots, X_{(j)n}),\quad j=1,\dots,N$$

With this, it follows that $G(x)$ satisfies the following equation

$$[G(x)]^N=G(a_N x+b_N)\quad(6.14.1)$$

The Gumbel distribution is obtained by taking $a_N=1.$ So, we have to

$$[G(x)]^N=G(x+b_N)$$

since $G(x+b_N)$ is satisfied, we have to

$$[G(x)]^{NM}=[G(x+b_N)]^M=G(x+b_N+b_M)$$

With this, we have to $b_N+b_M=b_{NM}.$ So,

$$b_n=\sigma\log N,\quad \text{com}~\sigma~\text{constante} $$

Taking the logarithm twice in (6.14.1) and substituting the value of $b_n$ we get

$$\log N+\log(-\log G(x))=\log(-\log G(x+\sigma \log N))\quad (6.14.2)$$

Now, we denote

$$h(x)=\log(-\log G(x))$$

Therefore, from (6.14.2) we obtain that

$$h(x)=h(0)-\frac{x}{\sigma}$$

Since $h(x)$ decreases as x increases, for $\sigma> 0.$ From the previous equation we obtain that

$$-\log G(x)=\exp\left(-\frac{x-\sigma h(0)}{\sigma}\right)=\exp\left(-\frac{x-\mu}{\sigma}\right)$$

in which $\mu=\sigma \log(-\log G(0)).$ Therefore

$$G(x)=\exp\left(-\exp\left(-\frac{x-\mu}{\sigma}\right)\right).$$

At the very least we have to

$$H(x)=\mathbb{P}[\min(X_1,\dots,X_n)> x]=1-G(x)=1-\exp\left(-\exp\left(-\frac{x-\mu}{\sigma}\right)\right).$$

It is worth remembering that there are 3 types of Extreme Value distributions. The type covered in this section is the type 1 Extreme Value distribution or Gumbel distribution. Next, we will present the standardized forms for the distribution of the maximum and minimum.

For the maximum we have:

Screenshot_199

For the minimum we have:

Screenshot_200

Below, we summarize the forms of limiting distributions for maxima and minima of seven most used continuous distributions.

Screenshot_197

Generating Function of Moments, Expected Value and Variance

Be $X$ a random variable with Gumbel distribution, we observe that if $\mu=0$ and $\sigma=1,$ the distribution of $Y=\dfrac{X-\mu}{\sigma},$ we get the standard form

$$f(y)=\exp(-y-e^{-y})$$

Thus, the variable $Z=\exp(-(X-\mu)/\sigma)=e^{-Y}$ has exponential distribution

$$f(z)=e^{-z},\quad z\geq 0$$

From this, it follows that

$$\mathbb{E}[\exp\left(\frac{t(X-\mu)}{\sigma}\right)]=\mathbb{E}[Z^{-t}]=\Gamma(1-t),\quad \text{para}~t< 1.$$

Therefore, the moment generating function of X is given by

$$M_X(t)=\mathbb{E}[e^{tX}]=e^{t\mu}\Gamma(1-\sigma t), \quad \sigma|t|< 1$$

and the accumulated generating function is given by

$$\kappa(t)=\mu t-\log \Gamma(1-\sigma t)$$

Therefore, the expected value of X is given by

$$\kappa_1(t)=\mathbb{E}[X]=\mu -\sigma\psi(1)=\mu-\gamma \sigma$$

in which $\gamma\approx 0,5772$ Euler’s constant is known.

The higher order generating functions are given by:

$$\kappa_i(t)=(-\sigma)^i\psi^{(i-1)}(1),\quad i\geq 2$$

in which $\psi(.)$ is the dizma function.

Therefore, the variance is given by

$$\text{Var}(X)=\dfrac{1}{6}\pi^2\sigma^2$$

8.6.15 Log-normal distribution

Like the Weibull distribution, the Log-Normal distribution is widely used to characterize the lifetime of products and materials. This includes fatigue of metal, semiconductors, diodes and electrical insulation. We can find more details about this distribution in the reliability booklet.

Definition 6.15.1

A random variable $X$ has a Log-Normal distribution if its probability density function is given by:

Screenshot_201

in which $\mu\in\mathbb{R}$ is the average of the logarithm of the failure time and $\sigma \ > \ 0$ is the standard deviation.

There is a relationship between the Log-Normal and Normal distributions similar to the relationship between the Weibull and Extreme Value distributions. As the name suggests the logarithm of a variable with Log-Normal distribution with parameters $\mu$ and $\sigma$ has a Normal distribution with mean $\mu$ and standard deviation $\sigma$. This relationship means that data from a Log-Normal distribution can be analyzed according to a Normal distribution if we work with the logarithm of the data instead of the original values.

DensLogNormal

Figure 6.15.1: Graph of the density function of the Log-normal distribution.

Example 6.15.1

Se $X$ follows a standardized normal distribution then, $Y=e^X$ has log-normal distribution with parameters $\mu=0$ and $\sigma=1$.

In fact if $X$ follows a standard normal distribution, so we have

$$F_Y(y)=\mathbb{P}(Y\leq y)=\mathbb{P}(e^X\leq y)=\mathbb{P}(X\leq \ln{y})=\int_{-\infty}^{\ln{y}}f_X(x)dx=\int_{\infty}^{\ln{y}}\frac{1}{\sqrt{2\pi}}e^{-\frac{x^2}{2}}dx.$$

Making a change of variable we have

$$\int_{\infty}^{\ln{y}}\frac{1}{\sqrt{2\pi}}e^{-\frac{x^2}{2}}dx=\int_{0}^{y}\frac{1}{x}\frac{1}{\sqrt{2\pi}}e^{-\frac{\ln{x}^2}{2}}dx$$

and therefore the probability density function of $Y$ is a log-normal with the parameters mentioned above.

Generating Function of Moments, Expected Value and Variance

The moment-generating function of the log-normal is not defined in real numbers. The expected value and variance of the Log-Normal distribution are respectively given by:

$$\mathbb{E}(X)=\exp\left(\mu+\frac{\sigma^2}{2}\right) \qquad \text{e} \qquad \text{Var}(X)=\exp(2\mu+\sigma^2)(\exp(\sigma^2)-1).$$

8.6.16 Logistics Distribution

The logistic growth function was initially proposed for demographic studies, that is, for studies of human population growth. In Balakrishnan’s book, he also mentions applications such as agricultural production data and mortality growth. Below we present the definition.

Definition 6.16.1

Let X be a continuous random variable, we say that X has a Logistic distribution with location parameters μ and scale s, if the probability density function (f.d.p.) is given by:

$$f(x)=\frac{\exp\left(\frac{x-\mu}{s}\right)}{s\left(1+\exp\left(\frac{x-\mu}{s}\right)\right)^2},\quad x,\mu\in \mathbb{R},~~\sigma> 0.$$

and its corresponding accumulated distribution function (F.D.A.) is given by:

$$F(x)=\frac{1}{1+\exp\left(-\frac{x-\mu}{s}\right)},\quad x,\mu\in \mathbb{R},~~\sigma> 0.$$

Notation

$X\sim L\left(\mu,s\right)$.

Sometimes, to facilitate calculations, we work with the random variable

$$Z=\frac{X-\mu}{s}$$

with f.d.p. given by:

$$f(x)=\frac{e^{-z}}{(1+e^{-z})^2},\quad z\in \mathbb{R}.$$

and with F.D.A. given by:

$$F(z)=\frac{1}{1+e^{-z}},\quad z\in\mathbb{R}.$$

DensLogistica

Figure 6.16.1: Probability density function of the distribution L(0,1).

AcumLogistica

Figure 6.16.2: Cumulative Distribution Function of the L(0,1) distribution.

Moment Generating Function, expected value, variance

Now, let’s study the moment generating function of the Logistics distribution, for this, in order to facilitate the calculations, we will study the characteristic bases and their properties of the logistic population through the random variable Z. Therefore, the moment generating function of Z is:

$$M_Z(t)=\mathbb{E}(e^{tZ})=\int^\infty_{-\infty}\frac{e^{-(1-t)z}}{(1+e^{-z})^2}dz\quad (6.16.1)$$

We now make a variable change as follows:

Screenshot_202

Returning to (6.16.1) we have that

$$=\int^1_0 u^t(1-u)^t du= B(1+t,1-t)=\Gamma(1+t)\Gamma(1-t)$$

Now, we define accumulated generating function of Z is obtained when

$$K_Z(t)=\ln M_Z(t)=\ln \Gamma(1+t)+\ln \Gamma(1-t)$$

Taking the derivative with respect to t and applying it to t=0 we have

$$\mathbb{E}[Z]=\frac{\Gamma^\prime(1)}{\Gamma(1)}-\frac{\Gamma^\prime(1)}{\Gamma(1)}=\psi^\prime(1)-\psi^\prime(1)=0$$

and

$$\text{Var}(Z)=2[\psi^{\prime\prime}(1)-(\psi^\prime(1))^2]=\frac{\pi^2}{3}$$

Applying expected value and variance on both sides in $Z=\frac{\pi(X-\mu)}{\sigma \sqrt{3}}$ we get that

$$\mathbb{E}(X)=\mu+\frac{\sigma\sqrt{3}}{\pi}\mathbb{E}(Z)=\mu$$

and

$$\text{Var}(X)=\frac{3\sigma^2}{\pi^2}\text{Var}(Z)=\sigma^2.$$

Example 6.16.1

Let X be a continuous random variable with f.d.p. $f_{X}$(x). So V.A. $Y=-\ln\left(\frac{e^{-x}}{1-e^{-x}}\right)$ is v.a. with logistic distribution if, and only if, X has an exponential distribution with parameter λ=1.

In fact, let us suppose that X has an exponential distribution, i.e., for λ=1 we have that

$$f_X(x)=e^{-x}, \quad x\in (0,\infty)$$

Since $Y=-\ln\left(\frac{e^{-x}}{1-e^{-x}}\right)$ for $y\in (0,\infty).$

So,

$$x=\ln\left(\frac{1+e^{-y}}{e^{-y}}\right)\quad \text{e}\quad |J|=\frac{1}{1+e^{-y}}$$

With this, we have to

$$f_Y(y)=|J|f_X(y)=\frac{e^{-y}}{(1+e^{-y})^2},\quad y\in\mathbb{R}$$

On the other hand, suppose that Y is a v.a. with logistic distribution, then the distribution function of X is given by:

$$F_X(x)=\mathbb{P}[X\leq x]=\mathbb{P}\left[\ln\left(\frac{1+e^{-y}}{e^{-y}}\right)\leq x\right]= \mathbb{P}[y\leq \ln(e^{x}-1)]=1-e^{-x}$$

which is the distribution function of the exponential distribution with parameter λ=1.

Example 6.16.2

In an experiment carried out by a laboratory, it was determined that the concentration of strotitium-90 present in a sample of milk should not exceed 9.22 micromicrocuries per liter. Assuming that the strotitium-90 concentration has a logistic distribution with a location parameter μ=8.2 and a scale of σ=1, what is the probability of the milk sample meeting the specification?

The probability is given by:

$$\mathbb{P}[X\leq 9,22]=\frac{1}{1+\exp\left(-\frac{\pi(x-8,2)}{1\sqrt{3}}\right)}=0,8641$$

Therefore, the probability of the milk sample meeting the specification is 86.4%.

Note 6.16.1

It is worth remembering that the parameterization of the Action software is given by:

$$f(x)=\frac{\exp\left(-\frac{(x-\mu)}{\sigma}\right)}{\left(1+\exp\left(-\frac{(x-\mu)}{\sigma}\right)\right)^2},\quad x,\mu\in \mathbb{R},~~\sigma> 0.$$

Therefore, the resolution of the previous exercise is given by

$$\mathbb{P}[X\leq 9,22]=\dfrac{1}{1+\exp\left(-\frac{(x-8,2)}{1}\right)}=0,731.$$

8.6.17 Truncated distributions

A truncated probability distribution is a conditional distribution resulting from restricting the domain of some other probability distribution. For example, when examining the birth dates of children at a school, it is intuitive to expect the ages of these children to fall within a range because the school only enrolls children within some specified age range.

Definition

Be $Y$ a random variable with probability density function $g(y)$ and distribution function $G(y), y \in \Re$. The probability distribution of the random variable $X$, which represents the distribution of $Y$ at halftime $[a, b]$, with $-\infty \ < \ a \ < \ b \ < \ \infty$, is a truncated probability distribution

The probability density function is given by:

Screenshot_203

(1)

Demo

We have to,

$$P(X=x)=P(Y=y|\ a\leq x\leq b)=\dfrac{P(Y=y;\ a\leq x\leq b)}{P(\ a\leq x\leq b)}=\dfrac{P(Y=y)}{P(\ a\leq x\leq b)}=\dfrac{g(y)}{G(b)-G(a)}$$

The distribution function is given by

$$F(x)=\dfrac{G(max[min(x,b),a])-G(a)}{G(b)-G(a)};\ a\leq x\leq b.$$

In this case, the truncation is called interval or double truncation, as we restrict the distribution to a closed interval $[a, b]$. When the restriction occurs on only one side, we have the simple truncation, simple to the right for $(-\infty, b]$ or simple left to $[a, \infty)$

8.6.17.1 Truncated normal distribution

The truncated normal distribution is a probability distribution of a normal random variable bounded either bottom, top, or both. This distribution has wide application in statistics and econometrics, for example, it is used to model binary outputs in the probit model and to model censored data in the tobit model. For details of examples in econometrics see Greene, William H. (2003).

Definition

Be $Y$ a random variable $N(\mu,\sigma^2)$ with probability density function

$$g(y)=\frac{1}{\sigma\sqrt{2\pi}}\exp\left\lbrace-\frac{(y-\mu)^2}{2\sigma^2}\right\rbrace, y \in \Re$$

and distribution function

$$G(y) = \int_{-\infty}^y g(z) dz.$$

The continuous random variable $X$ has a truncated normal distribution in $[a,b]$ with the parameters $\mu, \sigma^2$ if your probability density function is given by

Screenshot_204

Notation

$$X \sim NT(\mu,\sigma^2;a,b)$$

Demo

The demonstration occurs directly from equation (1).

Note that

$$g(x) = \dfrac{1}{\sigma \sqrt{2\pi} } \exp \left\lbrace -\dfrac{1}{2} \left( \dfrac{x-\mu}{\sigma} \right)^2 \right\rbrace = \dfrac{1}{\sigma}\dfrac{1}{\sqrt{2\pi} } \exp \left\lbrace -\dfrac{1}{2} \left( \dfrac{x-\mu}{\sigma} \right)^2 \right\rbrace = \dfrac{1}{\sigma} \phi \left( \dfrac{x-\mu}{\sigma} \right)$$

In the case where the truncation is simple to the right, we have

$$f(x) = P( X = x) = P( Y=y | y \leq b) = \dfrac { P( Y=y ; y \leq b ) }{ P( y \leq b) } = \dfrac{P(Y=y)}{ P( y \leq b) } = \dfrac{ g(y) }{G(b)}$$

In the case where the truncation is simple to the left, we have

$$f(x) = P( X = x) = P( Y=y | y \geq a) = \dfrac { P( Y=y ; y \geq a ) }{ P( y \geq a) } = \dfrac{P(Y=y)}{ P( y \geq a) } = \dfrac{ g(y) }{1-G(a)}$$

The distribution function is given by:

$$F(x) = \dfrac{ G(x) - G(a) }{ G(b) - G(a) } = \dfrac{ \Phi( \frac{x-\mu}{\sigma} ) - \Phi( \frac{a-\mu}{\sigma} ) }{ \Phi( \frac{b-\mu}{\sigma} ) - \Phi( \frac{a-\mu}{\sigma} ) },$$

where $\Phi(\cdot)$ is the standard normal distribution function.

Demo

$$F(x) = \int_a^x f(x)dx = \int_a^x \dfrac{ g(x) }{ G(b) - G(a) } dx = \dfrac{1}{G(b) - G(a)} \int_a^x g(x) dx = \dfrac{ G(x) - G(a) }{ G(b) - G(a) }$$

Hope is given by:

$$E(X) = \mu + \dfrac{ \phi \left( \frac{a-\mu}{\sigma} \right) - \phi \left( \frac{b-\mu}{\sigma} \right) }{ \Phi \left( \frac{b-\mu}{\sigma} \right) - \Phi \left( \frac{a-\mu}{\sigma} \right) } \sigma,$$

in which $\phi(\cdot)$ It’s the f.d.p. and $\Phi(\cdot)$ is the distribution function of the standard normal distribution.

  • When the truncation is simple to the right, we have,

$$E(X) = E(Y | Y \leq b) = \mu -\sigma \dfrac{\phi \left( \frac{b-\mu}{\sigma} \right) }{ G(b) }$$

  • When the truncation is simple on the left, we have,

$$E(X) = E(Y | Y \geq a) = \mu +\sigma \lambda( \alpha ),$$

in which $\alpha = \dfrac{ a-\mu }{ \sigma }$ and $\lambda( \alpha ) = \dfrac{ \phi( \alpha )}{ 1 - G(a) }$

The variance is given by:

$$Var(X) = \left[ 1 + \dfrac{ \left( \dfrac{a - \mu}{\sigma } \right) \phi \left( \dfrac{a - \mu}{\sigma } \right) - \left( \dfrac{b - \mu}{\sigma } \right) \phi \left( \dfrac{b - \mu}{\sigma } \right) }{ G(b) - G(a) } \right] \sigma^2 - \left[ \dfrac{ \phi \left( \dfrac{a - \mu}{\sigma } \right) - \phi \left( \dfrac{b - \mu}{\sigma } \right) } { G(b) - G(a) } \right]^2 \sigma^2,$$

in which $\phi(\cdot)$ is the probability density function of the standard normal distribution.

  • When the truncation is simple to the right, we have,

$$Var(X) = Var( Y | Y \leq b) = \sigma^2 \left[ 1 - \beta \dfrac{ \phi(\beta) }{ G(b) } - \left( \dfrac{ \phi( \beta) }{ G(b) } \right)^2 \right],$$

in which $\beta = \dfrac{b - \mu}{ \sigma }$

  • When the truncation is simple on the left, we have,

$$Var(X) = Var( Y | Y \geq a) = \sigma^2 [ 1 - \delta( \alpha ) ],$$

in which $\alpha = \dfrac{ a-\mu }{ \sigma }, \delta( \alpha ) = \lambda(\alpha) [ \lambda(\alpha) - \alpha ]$ and $\lambda( \alpha ) = \dfrac{ \phi( \alpha )}{ 1 - G(a) }$

Curvas-NT

Figure 1: Examples of truncated normal distribution curves

Example 6.17.1.1

Consider Example 6.2.4 in which the average weight of 800 pigs on a farm is 64kg and the standard deviation is 15kg. Assume that this weight is normally distributed. However, due to its breed, each pig weighs a minimum of 30kg and a maximum of 120kg. How many pigs will weigh between 42kg and 73kg?

Be $ X_i $ the random variable representing the weight of a pig.

As admitted in the statement, $ X_i \sim NT(64, 15^2; 30, 120), i=1, \ldots, 800. $ Thus, the probability of a pig $ i $ being between 42kg and 73kg is

$$P( 42 \leq X_i \leq 73) = P( X_i \leq 73) - P(X_i \leq 42) = F(73) - F(42),$$

in which $ F(\cdot) $ is the distribution function of $ X $.

Using the distribution function formula, we have,

$$P( 42 \leq X_i \leq 73) = F(73) - F(42) =$$

$$= \dfrac{ \Phi\left( \dfrac{73-64}{15} \right) - \Phi\left( \dfrac{30-64}{15} \right) }{ \Phi\left( \dfrac{120-64}{15} \right) - \Phi\left( \dfrac{30-64}{15} \right) } - \dfrac{ \Phi\left( \dfrac{42-64}{15} \right) - \Phi\left( \dfrac{30-64}{15} \right) }{ \Phi\left( \dfrac{120-64}{15} \right) - \Phi\left( \dfrac{30-64}{15} \right) } =$$

$$=\dfrac{ 0,7257 - 0,0117 }{0,999 - 0,0117} - \dfrac{ 0,0712 - 0,0117 }{ 0,999 - 0,0117 } =$$

$$= \dfrac{0,714}{0,9882} - \dfrac{0,0595}{0,9882} =$$

$$= 0,7225 - 0,0602 = 0,6623 (66,23(porcentagem))$$

Therefore, the expected quantity of pigs between 42kg and 73kg is $ 800 \times 0,6623 = 529,8523 \approx 530 $

The hatched area in the graph in Figure 2 represents the probability of the pig weighing between 42kg and 73kg, as calculated above.

exemplo1-nt

Figure 2: Normal distribution graph with mean 64, standard deviation 15, truncated from 30 to 120, highlighting the area between 42 and 73.

Example 6.17.1.2

Suppose the weight of a watermelon is normally distributed with a mean of 7 kg and a standard deviation of 2.5 kg. Watermelons weighing less than 3kg are discarded by the producer and are not passed on to the market.

a) Calculate the expected average weight and standard deviation of a watermelon on the market.

Using the expectation formula for simple left truncation we have,

$$\alpha = \dfrac{ a-\mu }{ \sigma } = \frac{3-7}{2,5} = -1,6$$

and

$$\lambda( \alpha ) = \lambda( -1,6 ) = \dfrac{ \phi( -1,6 )}{ 1 - \Phi \left( \dfrac{3-7}{2,5} \right) } =\dfrac{ \phi( -1,6 )}{ 1 - \Phi \left( -1,6 \right) } = \dfrac{0,1109}{0,9452} = 0,1173$$

So,

$$E(X) = \mu + \sigma \lambda(\alpha) = 7 + 2,5 \times 0,1173 = 7,2933Kg \approx 7,3Kg$$

Variance and standard deviation:

Now,

$$\delta(\alpha) = \lambda(\alpha)[ \lambda(\alpha)-1 ] = 0,1173(0,1173-1) = -0,1035$$

So,

$$\text{Var}(X) = \sigma^2 (1 - \delta(\alpha) ) = 2,5^2 (1 -(-0,1035)) = 6,8971$$

Extracting the square root of the variance we arrive at the standard deviation

$$s = \sqrt{\text{Var}(X)} = \sqrt{6,8971} = 2,6262kg \approx 2,6kg$$

8.6.18 Mixed distributions

A mixed probability distribution is a mixture of two or more probability distributions, for example a distribution $N(\mu, \sigma^2)$ and a $\exp(\lambda)$. These distributions are called mixed components.

The mixed distribution is continuous when all components are also mixed and its probability density function can be called Mixed Density. The cumulative distribution function of the mixed distribution (or probability density function if it exists) can be expressed as a linear combination of other distribution functions (or density functions), that is, a weighted sum, with non-negative weights that sum to 1. The associated weights for each component are called mixed weights or just weights. The number of components can be finite, infinite and enumerable, or infinite and non-counterable. The mixed components are called composite distributions when they are enumerable or infinite and not enumerable.

Finite and Infinite Countable Set

Given a finite set of probability density functions $p_1(x), p_2(x), \ldots, p_n(x)$, or distribution functions $P_1(x), P_2(x), \ldots, P_n(x)$ and their respective weights $w_1, w_2, \ldots, w_n$ with $w_i \geq 0$ and $\displaystyle\sum_{i=1}^n w_i = 1, i=1, \ldots\ n$, the density function of the mixed distribution, $f$, or its distribution function, $F$, are given, respectively, by,

$$ f(x) = \sum_{i=1}^n w_i p_i(x) $$ $$ F(x) = \sum_{i=1}^n w_i P_i(x).$$

In the case where the set of components is finite, we have $n$ is finite and in cases where this set is infinitely countable, we have $n = \infty$.

Infinite Uncountable Set

Cases in which the set of components is infinite and cannot be enumerated are called composite probability distributions. Consider the probability density function of the component $a$ given by $p(x;a), a \in A$ and their respective weight $w(a)$ such that $\int_A w(a) da = 1, w(a) \geq 0$. So,

A probability density function mixed is given by

$$ f(x) = \int_A w(a) p(x;a) da $$

and the distribution function is given by,

$$ F(x) = \int_A w(a) P(x;a) da, $$

in which $P(x;a)$ is the distribution function of the component $a$.

Mixed distribution of families of parametric distributions

The mixed components are part of the same parametric distribution family, for example the normal distribution, with different values ​​for the parameters. In this case, the probability density function can be written as,

$$f(x; a_1, \ldots, a_n) = \sum_{i=1}^n w_i p(x;a_i) \text{ no caso uniparamétrico,}$$

$$ f(x; a_1, \ldots, a_n, b_1, \ldots, b_n) = \sum_{i=1}^n w_i p(x;a_i,b_i) \text{ para dois parâmetros, e assim por diante.}$$

Moments

Be $X_1, \ldots, X_n$ random variables of $n$ composite distributions and be $X$ the random variable of the mixed distribution. Thus, for any function $H(.)$, as long as $E[H(X_i)]$ exists, and assuming that the densities of the component distributions $p_i(x)$ exist,

$$E[H(X)] = \int_{-\infty}^\infty H(x) \sum_{i=1}^n w_i p_i(x) dx = \sum_{i=1}^n \int_{-\infty}^\infty p_i(x)H(x)dx = \sum_{i=1}^n w_i E[H(X_i)] $$

For $H(X) = X^j$, we have that the j-th moment of $X$ is simply the weighted average of the j-th moments of the components, that is,

$$ E[X^j] = \sum_{i=1}^n w_i E[X_i^j] $$.

The central moment $H(X) = (X - \mu)^j$ involves a binomial expansion,

$$ E[(X-\mu)^j] = \sum_{i=1}^n w_i E[(X_i - \mu)^j] = \sum_{i=1}^n w_i E[(X_i - \mu_i + \mu_i - \mu)^j] = \sum_{i=1}^n \sum_{k=0}^j \binom{j}{k} (\mu_i - \mu)^{j-k} w_i E[ (X_i-\mu_i)^k ], $$

in which $\mu_i$ denotes the mean of the ith component.

8.6.18.1 Mixed Normal Distribution

The mixed normal distribution is the mixture of two or more normal distributions, that is, composite distributions are normal. This distribution is generally used to model data whose peak and trough are greater than the normal. Figure 6.18.1 represents the histogram of a set of simulated data and the normal curve with the same mean and variance used in the simulation. Note that the empirical distribution is taller and has longer tails compared to the normal distribution. For more details on the mixed normal distribution see Sylvia Frühwirth-Schnatter (2006)

dist_normal-mista

Figure 6.18.1: Histogram of a mixed normal distribution with the normal distribution curve.

Definition

Be $X_1, X_2, \ldots, X_n$ random variables with normal distribution in which their probability density functions are given, respectively, by $p_1, p_2, \ldots, p_n$, in which $p_i \sim N(\mu_i,\sigma^2_i), i=1,\ldots,n.$

The probability density function of the mixed normal distribution is given by,

$$ f(x) = \sum_{i=1}^n w_i p_i(x) = \sum_{i=1}^n w_i \dfrac{1}{\sigma_i \sqrt{2\pi}} \exp \left\lbrace \dfrac{ -(x-\mu_i)^2}{ 2 \sigma^2_i } \right\rbrace, $$

in which, $\sum_{i=1}^n w_i = 1$

The distribution function is given by,

$$F(x) = \sum_{i=1}^n w_i \Phi \left( \dfrac{x-\mu_i}{\sigma_i} \right),$$

in which $\Phi(\cdot)$ is the distribution function of $N(0,1)$

Notation: $X\sim\text{Normal Mista}(\boldsymbol\mu, \boldsymbol\sigma^2, \mathbf{w})$

in which $\boldsymbol\mu= (\mu_1, \mu_2, \cdots, \mu_n)$, $\boldsymbol\sigma^2=(\sigma^2_1, \sigma^2_2, \cdots, \sigma^2_n)$ and $\mathbf{w} = (w_1, w_2, \cdots, w_n)$

normal_mista_densidade2-600x450

Figure 6.18.2: Probability density function curve of the mixed normal distribution

normal_mista_acumulada2-600x450

Figure 6.18.3: Mixed normal distribution function curve

Hope and Variance

As we saw in section 8.6.18 Mixed Distributions, the expectation and variance of the mixed normal distribution are given by,

$$E(X) = \sum_{i=1}^n w_i E[X_i] = \sum_{i=1}^n w_i \mu_i$$

$$Var(X) = E[(X-\mu)^2] = \sum_{i=1}^n w_i( (\mu_i-\mu)^2 + \sigma^2_i )$$

Example 6.18.1.1

Equal means and different variances}

Consider two populations such that $X_1 \sim N(0,1)$ and $X_2 \sim N(0,25)$. Calculating the expectation and variance, considering $w_1=w_2=1/2$ we have,

$$E(X) = \left(\frac{1}{2} \times 0 \right) + \left( \frac{1}{2} \times 0 \right) = 0$$

$$Var(X) = \frac{1}{2} \left[ (0-0)^2 + 1 \right] + \frac{1}{2} \left[ (0-0)^2 + 25 \right] = \frac{1}{2} ( 1 + 25 ) = 26 \times \frac{1}{2} = 13$$

Generally, when the means are equal, the density resembles that of a normal distribution, however with longer tails and a higher peak. The graph in Figure 6.18.4 shows the histogram of these simulated data and the curves of the normal and mixed normal distributions.

dist_normal_vs_mista2

Figure 6.18.4: Mixed normal distribution. Mixed components with equal means and different variances

Example 6.18.1.2

Different averages

Consider two populations such that $X_1 \sim N(0,1)$ and $X_2 \sim N(5,1)$. Calculating the expectation and variance, considering $w_1=w_2=1/2$ we have,

$$ E(X) = (\frac{1}{2} \times 0) + (\frac{1}{2} \times 5) = 0 + \frac{5}{2} = \frac{5}{2}$$

$$ Var(X) = \frac{1}{2} \left[ (0-5/2)^2 + 1 \right] + \frac{1}{2} \left[ (5-5/2)^2 + 1 \right] = \frac{1}{2} \left[ 25/4 + 1 + 25/4 + 1 \right] = \frac{1}{2} \times \frac{29}{2} = \frac{29}{4}$$

Generally, when the means are different, the density of the mixed distribution presents peaks corresponding to the means. $\mu_i$ of the components. The graph in Figure 6.18.5 shows the histogram of these simulated data and the curves of the normal and mixed normal distributions.

normal_vs_mista_media_dif2

Figure 6.18.5: Mixed normal distribution. Mixed components with different means

8.6.19 Rayleigh Distribution

The Rayleigh distribution, named after the English physicist and mathematician John William Strutt known as the third baron of Rayleigh, is a continuous probability distribution for positive values. Generally, this distribution is observed when the global magnitude of a vector is related to its direction components. For example, when wind speed is analyzed in two directions, that is, a two-dimensional vector of components. Assuming that the components are independent and normally distributed with zero mean and equal variances, then the overall wind speed has a Rayleigh distribution. See Siddiqui, M. M. (1964) for more details.

Theorem

Be $ U \sim N(0, \sigma^2) $ and $ V \sim N(0, \sigma^2) $ independent random variables. So, $ X = \sqrt{ U^2 + V^2 } $ follows a Rayleigh distribution.

Notation: $ R \sim \text{Rayleigh}(\sigma) $

In this way, the probability density function $ f $ and the distribution function $ F $ are given, respectively, by,

$$f(x;\sigma) = \dfrac{x}{\sigma^2} \exp \left\lbrace \dfrac{-x^2}{2 \sigma^2} \right\rbrace$$

$$F(x) = 1 - \exp \left\lbrace \dfrac{-x^2}{2 \sigma^2} \right\rbrace; x \geq 0; \sigma > 0$$

The graphs of the probability density function and the distribution function for $ \sigma = 1, 2, 3, 4, 5 $ are presented in Figure 1.

fdp_fda_rayleigh

Figure 1: Probability density function curves (left graph) and distribution function curves (right graph) for $ \sigma = 1, 2, 3, 4, 5 $

Demo

Be $ U \sim N(0, \sigma^2) $ and $ V \sim N(0, \sigma^2) $. The joint probability density function of $ U $ and $ V $ is

$$f(u,v)=f(u)f(v)=\left[ \dfrac{1}{\sigma \sqrt{2\pi}} \exp\left\lbrace \dfrac{-u^2}{2\sigma^2} \right\rbrace \right] \times \left[ \dfrac{1}{\sigma \sqrt{2\pi}} \exp\left\lbrace \dfrac{-v^2}{2\sigma^2} \right\rbrace \right] =$$

$$=\dfrac{1}{2 \pi \sigma^2 } \exp\left\lbrace \dfrac{-(u^2 + v^2)}{ 2\sigma^2 } \right\rbrace =$$

$$=\dfrac{1}{2\pi\sigma^2} \exp \left\lbrace \frac{-1}{2} \left( \frac{u^2}{\sigma^2} + \frac{v^2}{\sigma^2} \right) \right\rbrace$$

$$= \dfrac{1}{2\pi\sigma^2} \exp \left\lbrace \frac{-1}{2} \left( \dfrac{u^2 + v^2}{ \sigma^2 } \right) \right\rbrace, (u,v) \in \Re^2$$

Now the distribution function is

$$F(x)=P(X \leq x)=\int_{A_x} f(u,v) d(u,v) = \int_{A_x} \dfrac{1}{2\pi\sigma^2} \exp \left\lbrace \frac{-1}{2} \left( \dfrac{u^2 + v^2}{ \sigma^2 } \right) \right\rbrace d(u,v)$$

in which $ A_x = ((u,v) \in \Re^2 : u^2 + v^2 \leq x^2) $

Switching to polar coordinates, we have

$$u = r \cos(\theta)$$

$$v = r \text{sen}(\theta)$$

So,

$$u^2 + v^2 = r^2 \cos^2(\theta) + r^2 \text{sen}^2(\theta) = r^2 ( \cos^2(\theta) + \text{sen}^2(\theta)) = r^2.$$

Therefore,

$$F(x)=\int_0^{2\pi} \int_0^x \dfrac{1}{2 \pi \sigma^2} \exp \left\lbrace -\dfrac{r^2}{2 \sigma^2} \right\rbrace r dr d\theta$$

$$=\dfrac{1}{2 \pi \sigma^2} \int_0^{2\pi} d\theta \int_0^x \exp \left\lbrace -\dfrac{r^2}{2 \sigma^2} \right\rbrace r dr$$

$$=\dfrac{1}{\sigma^2} \int_0^x \exp \left\lbrace -\dfrac{r^2}{2 \sigma^2} \right\rbrace r dr$$

$$=\int_0^x \dfrac{r}{\sigma^2} \exp \left\lbrace -\dfrac{r^2}{2 \sigma^2} \right\rbrace dr$$

$$=\int_0^x f(r) dr$$

Therefore, the probability density function of $ X $ is,

$$f(x)=\dfrac{x}{\sigma^2} \exp \left\lbrace -\dfrac{x^2}{2 \sigma^2} \right\rbrace, x \geq 0$$

To show the distribution function, simply solve,

$$F(x)=\int_0^x f(r)dr = \int_0^x \dfrac{r}{\sigma^2} \exp \left( -\dfrac{r^2}{2\sigma^2} \right) dr$$

Replacing $ z=r^2 $ and $ dz = 2r dr $ in (2), we have,

$$F(x) = \int_0^{x^2} \dfrac{1}{2\sigma^2} e^{-z / 2\sigma^2} dz = -\exp \left( -\dfrac{z}{2\sigma^2} \right)_0^{x^2} = 1 - \exp \left( -\dfrac{x^2}{2\sigma^2} \right) \square$$

The expectation and variance are given, respectively, by,

$$E(X)=\sigma \sqrt{\dfrac{\pi}{2}} \approx 1,253 \sigma \qquad \qquad (3)$$

$$Var(X)=\dfrac{4-\pi}{2} \sigma^2 \approx 0,429 \sigma^2 \qquad \qquad (4)$$

Example

Be $ U $ and $ V $ continuous and independent random variables with $ U \sim N(0, 1) $ and $ V \sim N(0, 1) $. Be $ X = \sqrt{U^2 + V^2} $

a) Calculate the expectation and variance of the distribution of $ X $

We know that $ X \sim \text{Rayleigh}(1) $. Therefore, by equation 3, hope is given by,

$$E(X) = \sqrt{\dfrac{\pi}{2}}\sigma \approx 1,253 \sigma \approx 1,253$$

And by equation 4 the variance of $ X $ is given by,

$$ Var(X) = \dfrac{4-\pi}{2} \sigma^2 = 0,429$$

In this case where $ \sigma = 1 $ the distribution of $ X $ is called \emph{Standard Rayleigh}

b) Calculate the area under the curve of $ X $ greater than $ 1 $.

The area under the distribution curve $ X $ greater than $ 1 $ is given by

$$P( X > 1 ) = 1 - P( X \leq 1 ) = 1 - F(1) = 1 - \left[ 1 - \exp\left( -\dfrac{1}{2} \right) \right] = e^{-1/2} \approx 0,6065 \text{ ou } 60,65(porcentagem)%$$

rayleigh-ex1-b

Figure 2: Rayleigh distribution curve for $ \sigma =1 $. The hatched area represents $ P(X > 1) $

8.6.20 Folded normal distribution

The folded normal distribution is the distribution of absolute values of a normally distributed random variable. The name comes from the fact that the normal distribution values in the interval $ \mathbf{(-\infty, 0]} $ “overlap” the values in the range $ \mathbf{ [0, \infty) } $, that is, the negative values of the normal distribution double in the positive part (see Figure 1). One of the first examples, according to \emph{Tsagris, 2014}, in the 1960s, was the use of the folded normal distribution to study the magnitude of deviation of an automobile strut alignment. See TSAGRIS, Michail; at al. (2014) for more details.

normal_vs_normal_dobrada

Figure 6.20.1: Normal Distribution vs Folded Normal Distribution

Definition

Be $ Y \sim N( \mu, \sigma^2 ) $ with probability density function given by

$$f(y) = \dfrac{1}{\sqrt{2 \pi \sigma^2}} e^{ -\frac{(y-\mu)^2}{ 2 \sigma^2 } }, -\infty < y < \infty$$

So, $ X = |Y| $ has a folded normal distribution with the parameters $ (\mu, \sigma^2) $ and its probability density function is given by

$$f(x) = \dfrac{1}{\sqrt{2 \pi \sigma^2}} \left[ e^{ -\frac{(x-\mu)^2}{ 2 \sigma^2 } } + e^{ -\frac{(x+\mu)^2}{ 2 \sigma^2 } } \right], x \geq 0$$

Notation:$ X \sim ND( \mu, \sigma^2 ) $

Property

Be $ Z \sim N(0,1) $. So, $ X = |\mu + \sigma Z| \sim ND( \mu, \sigma^2 ) $.

The distribution function of $ X $ is given by

$$F_X(x)=\Phi \left( \dfrac{x-\mu}{\sigma} \right) - \Phi \left( \frac{-x - \mu}{\sigma} \right)=\Phi \left( \dfrac{x-\mu}{\sigma} \right) + \left[ \Phi \left( \frac{x + \mu}{\sigma} \right) -1 \right]$$

$$=\dfrac{1}{\sqrt{2\pi\sigma^2}} \left\lbrace \exp \left[ -\dfrac{(y+\mu)^2}{2\sigma^2} \right] + \exp \left[ -\dfrac{(y-\mu)^2}{2\sigma^2} \right] \right\rbrace dy \qquad \qquad (1)$$

Demo:

$$F_X(x) = P(X \leq x) = P (|Y| \leq x ) = P(|\mu + Z\sigma| \leq x) = P(-x \leq \mu + Z\sigma \leq x) $$ $$ = P \left( \dfrac{-x-\mu}{\sigma} \leq Z \leq \dfrac{x-\mu}{\sigma} \right) = \Phi \left( \dfrac{x-\mu}{\sigma} \right) - \Phi \left( \frac{-x - \mu}{\sigma} \right) \square$$

We can also write the distribution function of $ X $ in terms of the error function (erf),

$$F_X(x; \mu, \sigma) = \dfrac{1}{2} \left[ erf \left( \dfrac{x + \mu}{\sigma\sqrt{2}} \right) + erf \left( \dfrac{x - \mu}{\sigma\sqrt{2}} \right) \right],$$

where the error function (erf) is defined by,

$$erf(x) = \dfrac{2}{ \sqrt{\pi} } \int_0^x e^{-t^2} dt$$

Hope is given by,

$$E(X) = \mu \left[ 1 - 2\Phi \left( \dfrac{-\mu}{\sigma} \right) \right] + \sigma \sqrt{ \dfrac{2}{\pi} } \exp \left( -\dfrac{ \mu^2 }{ 2\sigma^2} \right)$$

Demo:

$$E(X) = E( |\mu + \sigma Z| )$$

Note that $ |\mu + \sigma Z| \geq 0 \Leftrightarrow Z lt; -\dfrac{\mu}{\sigma} $ or $ Z \geq -\dfrac{\mu}{\sigma} $.

So,

$$E( |\mu + \sigma Z| )=E( \mu + \sigma Z | Z \geq -\frac{\mu}{\sigma} ) + E( -\mu - \sigma Z | Z lt;-\frac{\mu}{\sigma} )$$

$$=E( \mu + \sigma Z | Z \geq -\frac{\mu}{\sigma} ) - E( \mu + \sigma Z | Z lt;-\frac{\mu}{\sigma} )$$

$$=E( \mu + \sigma Z ) - E( \mu + \sigma Z | Z lt;-\frac{\mu}{\sigma} )- E( \mu + \sigma Z | Z lt;-\frac{\mu}{\sigma} )$$

$$=E( \mu + \sigma Z ) - 2E( \mu + \sigma Z | Z lt;-\frac{\mu}{\sigma} )$$

$$=\mu -2\mu \Phi(-\mu/\sigma) - 2\sigma E(Z | Z \leq - \dfrac{\mu}{\sigma})$$

$$=\mu \left[ 1 -2\Phi(-\mu/\sigma) \right] - 2\sigma E(Z | Z \leq - \dfrac{\mu}{\sigma}) \qquad (1)$$

But,

$$E(Z | Z \leq - \dfrac{\mu}{\sigma}) = \int_{-\infty}^{\mu/\sigma} z \dfrac{1}{ \sqrt{2 \pi} } e^{-z^2/2} dz$$

Making the variable change $ u = z^2/2 $, we have

$$E(Z | Z \leq - \dfrac{\mu}{\sigma}) = \int_{\infty}^{\mu^2/2\sigma^2} \dfrac{1}{ \sqrt{2 \pi} } e^{-u} du = - \int_{\mu^2/2\sigma^2}^{\infty} \dfrac{1}{ \sqrt{2 \pi} } e^{-u} du = - \dfrac{1}{ \sqrt{2\pi} } e^{-\mu^2/2\sigma^2} \qquad (2)$$

Substituting (2) into (1), we have

$$\mu \left[ 1 -2\Phi(-\mu/\sigma) \right] + 2\sigma \dfrac{1}{ \sqrt{2\pi} } e^{-\mu^2/2\sigma^2} = \mu \left[ 1 - 2\Phi(-\mu/\sigma) \right] + \sigma \sqrt{ \dfrac{2}{\pi} } e^{-\mu^2/2\sigma^2} \square$$

The variance is given by,

$$Var(X) = \mu^2 + \sigma^2 - \left\lbrace \mu \left[ 1 - 2\Phi \left( \dfrac{-\mu}{\sigma} \right) \right] + \sigma \sqrt{ \dfrac{2}{\pi} } \exp \left( -\dfrac{ \mu^2 }{ 2\sigma^2} \right) \right\rbrace^2$$

Demo:

Note that,

$$E(X^2) = E(Y^2) = Var(Y) + [E(Y)]^2 = \sigma^2 + \mu^2$$

So,

$$ Var(X) = E(X^2) - [E(X)]^2 $$ $$ Var(X) = \mu^2 + \sigma^2 - \left\lbrace \mu \left[ 1 - 2\Phi \left( \dfrac{-\mu}{\sigma} \right) \right] + \sigma \sqrt{ \dfrac{2}{\pi} } \exp \left( -\dfrac{ \mu^2 }{ 2\sigma^2} \right) \right\rbrace^2 $$

Property:

Be $ W = |\sigma Z| = \sigma |Z| $, in which $ Z \sim N(0,1) $, the distribution of $ W $ is a \textbf{seminormal distribution} with the scale parameter $ \sigma $. The distribution function, $ F(w) $, and the probability density function $ f(w) $, are given, respectively, by,

$$F(w) = 2 \Phi \left( \dfrac{y}{\sigma} \right) - 1, y \in [0, \infty),$$

in which $\Phi(\cdot)$ is the distribution function of the standard normal distribution.

$$ f(w) = \dfrac{2}{\sigma} \phi \left( \dfrac{y}{\sigma} \right), y \in [0, \infty),$$

in which $\phi(\cdot)$ is the density function of the standard normal distribution.

Example 1

To exemplify the calculation of the expectation and variance of the folded normal distribution, consider $ Y \sim N(0,1) $. We know that $ X = |Y| \sim ND(0,1) $. Thus, the expectation and variance of $ X $ are given by,TeX Embedding failed!

$$ E(X) = \mu \left[ 1 - 2\Phi \left( \dfrac{-\mu}{\sigma} \right) \right] + \sigma \sqrt{ \dfrac{2}{\pi} } \exp \left( -\dfrac{ \mu^2 }{ 2\sigma^2} \right) = 0 \left[ 1 - 2\Phi \left( \dfrac{-0}{1} \right) \right] + 1 \sqrt{ \dfrac{2}{\pi} } \exp \left( -\dfrac{ 0^2 }{ 2*1^2} \right) $$ $$=0 + \sqrt{\dfrac{2}{\pi}} e^0 = \sqrt{\dfrac{2}{\pi}} * 1 = \sqrt{\dfrac{2}{\pi}} = 0, 798 $$

$$ Var(X) = E(X^2) - [E(X)]^2 = \mu^2 + \sigma^2 - [E(X)]^2 = 0 + 1 - 0,798^2 = 1 - 0,637 = 0,363 $$

Therefore, $ E(X) = 0,798 $ and $ Var(X)= 0,363 $.

We can notice that the parameters $ \mu $ and $ \sigma^2 $ represent, respectively, the expectation and variance only of v.a. $ Y $ and not from v.a. $ X $.

Example 2

Be $ X $ a continuous random variable with folded normal distribution with $ \mu=0 $ and $ \sigma^2 = 4 $, that is, $ X \sim ND(0,4) $. Calculate the probability of $ X \leq 2 $.

We know that $ X = |Y| $, in which $ Y \sim N(0,4) $. Thus, the probability of $ X \leq 2 $ is given by,

$$ P( X \leq 2 ) = P( -2 \leq Y \leq 2 ) = P( \frac{-2 - 0}{ 2 } \leq \frac{Y- 0}{2} \leq \frac{2 - 0}{2} ) = P( -1 \leq Z \leq 1 ), $$

in which $ Z \sim N(0,1) $.

So,

$$ P( X \leq 2 ) = \Phi(1) - \Phi(-1) = 0,8413 - 0,1587 = 0,6826, $$

That is, $ 68,26(porcentagem)% $

Example 3

Suppose that a factory produces a cylindrical part whose diameter measurement has a normal distribution folded with the parameters $ \mu=0,04 $cm and $ \sigma^2 = 0,02^2 = 0,0004 $cm. Be $ X $ the random variable that represents this measurement. Like this, $ X \sim ND(0,04 ; 0,0004) $. Assume also that the engineering limits are $ LIE = 0,01 $cm and $ LSE = 0,07 $cm. What is the probability that the factory will produce a part outside the specified limits?

We want to know,

$$ P[ (X < 0,01) \cup (X > 0,07)] $$

We have,

$$ P[ (X < 0,01) \cup (X > 0,07)] = P(X < 0,01) + P(X > 0,07) - P[ (X < 0,01) \cap (X > 0,07)] = $$

$$ = P(X < 0,01) + P(X > 0,07), $$

because $ P[ (X < 0,01) \cap (X > 0,07)] = 0 $

In this way,

$$ P(X < 0,01) + P(X > 0,07) = P(X < 0,01) + 1 - P(X \leq 0,07) $$

$$ = 1 + F_X(0,01) - F_X(0,07), $$

in which $ F_X(\cdot) $ It’s the F.D.A. of $ X. $

By equation 1, we have

$$F_X(0,01)=\Phi \left( \dfrac{ x - \mu }{ \sigma } \right) - \Phi \left( \dfrac{ -x - \mu }{ \sigma } \right) = \Phi \left( \dfrac{ 0,01 - 0,04 }{ 0,02 } \right) - \Phi \left( \dfrac{ -0,01 - 0,04 }{ 0,02 } \right)=$$

$$=\Phi \left( -1,5 \right) - \Phi \left( -2,5 \right) = 0,0668 - 0 = 0,0606$$

$$F_X(0,07)=\Phi \left( \dfrac{ x - \mu }{ \sigma } \right) - \Phi \left( \dfrac{ -x - \mu }{ \sigma } \right) = \Phi \left( \dfrac{0,07 - 0,04 }{ 0,02 } \right) - \Phi \left( \dfrac{ -0,07 - 0,04 }{ 0,02 } \right)=$$

$$= \Phi \left( 1 \right) - \Phi \left( -5 \right) = 0,8413 - 0 = 0,8413$$

Finally,

$$ P[ (X < 0,01) \cup (X > 0,07)] = 1 + F_X(0,01) - F_X(0,07) = 1 + 0,0606 - 0,8413 = 0,2193 $$

Therefore, the probability of the factory producing a part outside the specified limits is $ 21,93(porcentagem)% $.

normal-dobra-ex3

Figure 6.20.2: Normal distribution curve folded with $ \mu=0,04 $ and $ \sigma^2=0,02^2 $. The hatched area on the left is the probability of producing a part below the lower engineering limit and the hatched area on the right is the probability of producing a part above the upper engineering limit

8.6.21 Rice Distribution

The Rice distribution is a continuous probability distribution for positive values. Generally, this distribution is observed when the global magnitude of a vector is related to its direction components. For example, when wind speed is analyzed in two directions, that is, a two-dimensional vector of components. Assuming that the components are independent and normally distributed with equal variances, then the overall wind speed has a Rice distribution. See Sijbers, Jan, et al. (1998) for more details.

Note

Definition

Be $X$ a continuous random variable with Rice distribution with mean $v$ and variance $\sigma^2$. The probability density function $f(\cdot)$ is given by,

$$f( x | v, \sigma^2) = \dfrac{x}{\sigma^2} \exp \left( \dfrac{ -(x^2 + v^2) }{2\sigma^2} \right) I_0 \left( \dfrac{xv}{\sigma^2} \right); x,v \in \Re; \sigma^2 > 0$$

in which,

$$I_{\alpha}(z) = \sum_{m=0}^\infty \dfrac{1}{ m! \Gamma(m + \alpha + 1) } \left( \dfrac{z}{2} \right)^{2m+\alpha}, \alpha \in \Re,$$

is the modified Bessel function of the first order type $\alpha$.

Screenshot_206

is the Gamma function.

The distribution function $F(\cdot)$ is given by

$$F(x | v, \sigma) = 1- Q_1 \left( \dfrac{v}{\sigma}, \dfrac{x}{\sigma} \right),$$

in which,

$$Q_M(a,b) = \int_a^\infty x \left( \dfrac{x}{a} \right)^{M-1} \exp \left( - \dfrac{x^2 + a^2}{2} \right) I_{M-1}(ax) dx$$

called Marcum Q-Function (Marcum Q-Function)

The graph in Figure 6.21.1 illustrates the form of the probability density function and the Rice distribution function for some values of $v$ and $\sigma$

rice-comparacao

Figure 6.21.1: Probability density function (left) and the distribution function (right) of the Rice distribution

Moments

The moments of order 1, $m_1$, and of order 2, $m_2$, are given by,

$$m_1 = \sigma \sqrt{ \dfrac{\pi}{2}} L_{1/2} \left( \dfrac{-v^2}{2 \sigma^2} \right)$$

$$m_2 = 2\sigma^2 + v^2$$

Thus, the hope of $X$ is given by,

$$E(X) = m_1 = \sigma \sqrt{ \dfrac{\pi}{2}} L_{1/2} \left( \dfrac{-v^2}{2 \sigma^2} \right),$$

or it can be written in the reduced form as,

$$L_n(x) = \sum_{k=0}^n \binom{n}{k} \dfrac{ (-1)^k }{k!} x^k$$

It is worth remembering that $L_n$ is the Laguerre polynomial of order n.

The variance of $X$ is given by,

$$Var(X) = m_2 - m_1^2 = 2\sigma^2 + v^2 - \dfrac{\pi \sigma^2}{2} L^2_{1/2} \left( \dfrac{-v^2}{2\sigma^2} \right)$$

Example 6.21.1

$$f(x| 0, \sigma^2) = \dfrac{x}{\sigma^2} \exp{ \left[ \dfrac{-(x^2+0^2)}{2\sigma^2} \right] } I_0( \frac{x*0}{\sigma^2} ) = \dfrac{x}{\sigma^2} \exp{ \left[ \dfrac{-(x^2)}{2\sigma^2} \right] } I_0( 0 ),$$

But,

Screenshot_207

So,

$$f(x| 0, \sigma^2) = \dfrac{x}{\sigma^2} \exp{ \left[ \dfrac{-(x^2)}{2\sigma^2} \right] }, x \in \Re.$$

8.6.22 Extended normal distribution

The extended normal distribution results from the superposition of normal distributions with the same standard deviation and which present systematic location changes (trends and cycles). The Figure below exemplifies the extended normal distribution. The extended normal distribution defined here was based on the Volkswagen AG VW 101 31 manual.

normal_estendida_-_resultante-572x418

Figure 6.22.1

Definition

Be $X$ a continuous random variable with an extended normal distribution. Then, your probability density function is:

Screenshot_208

In which,

  • μ1 and μ2 are the means of the normal distributions that limit the extended normal distribution (as can be seen in the graph in Figure 6.22.1)
  • σ is the standard deviation of the normal distributions that bound the extended normal distribution.

ne-densidade

Figure 6.22.2: Graph of the density function of the extended normal distribution

ne-acumulada-604x453

6.22.3: Graph of the extended normal cumulative distribution function.

Notation: $X \sim NE(\mu_1, \mu_2, \sigma)$

The expectation of X is given by:

$$ E[X] = \int_{-\infty}^{\infty} x f(x) dx$$

$$E[X] = \dfrac{1}{\sqrt{2\pi}\sigma+\mu_2 - \mu_1} \times \left\lbrace \int_{-\infty}^{\mu_1} x \exp{ \left[ -\dfrac{1}{2} \left(\dfrac{x-\mu_1}{\sigma}\right)^2 \right]}+\int_{\mu_1}^{\mu_2} x dx + \int_{\mu_2}^{\infty} x \exp{\left[-\dfrac{1}{2}\left(\dfrac{x-\mu_2}{\sigma}\right)^2\right]}\right\rbrace$$

The variance of X is given by:

$$Var(X) = E[X^2] - (E[X])^2$$

in which,

$$E[X^2] = \int_{-\infty}^\infty x^2 f(x) dx$$

Example 6.22.1

Let X be a continuous random variable with extended normal distribution with $\mu_1=1, \mu_2=3$ and $\sigma=1$. Calculate:

  • The density of X at point X = 2

Be $f(x)$ the probability density function of X at the point X = 2. Using the probability density function of the extended normal distribution above, note that $\mu_1 < 2 < \mu_2$. So, we have to

$$f(2)=\dfrac{1}{\sqrt{2\pi}\times 1 + 3 - 1}=\dfrac{1}{\sqrt{2\pi} + 2} \approx 0,2219$$

Note

Note that the density of $X$ will always be worth $0,2219$ for any value of $x$ at halftime $(1,3)$

  • The area under the curve of X such that $ P(X < 1) $

We know that

$$P(X<1)=\int_{-\infty}^{1} f(x) dx = \dfrac{1}{\sigma*\sqrt{2\pi}+\mu_2 -\mu_1}\int_{-\infty}^{1}\exp{\left[-\dfrac{1}{2}\left(\dfrac{x-\mu_1}{\sigma}\right)^2\right]}dx$$

Replacing $z = \dfrac{x-\mu_1}{\sigma}$, we have to $dz=\dfrac{1}{\sigma}dx$.

For $x=-\infty$ we have $z=-\infty$ and for $x=1$ we have $z=\dfrac{1-\mu_1}{\sigma}=\dfrac{1-1}{1}=0$. So,

$$P(X<1)=\dfrac{\sigma}{\sigma*\sqrt{2\pi}+\mu_2-\mu_1}\int_{-\infty}^0\exp\left( -\dfrac{z^2}{2}\right)dz$$

Now, multiplying the above equation by $\dfrac{\sqrt{2\pi}}{\sqrt{2\pi}}$, we have,

$$P(X<1)=\dfrac{\sigma\sqrt{2\pi}}{\sigma*\sqrt{2\pi}+\mu_2-\mu_1}\int_{-\infty}^0\dfrac{1}{\sqrt{2\pi}}\exp\left(-\dfrac{z^2}{2}\right)dz$$

$$P(X<1)=\dfrac{\sigma\sqrt{2\pi}}{\sigma*\sqrt{2\pi}+\mu_2-\mu_1}\Phi(0),$$

in which $\Phi(\cdot)$ is the standard normal distribution function.

Looking at the standard normal distribution table or calculating in Action, we have $\Phi(0) = 1/2$. Therefore,

$$P(X<1)=\dfrac{1*\sqrt{2\pi}}{1*\sqrt{2\pi}+3-1}*\dfrac{1}{2}=\dfrac{\sqrt{2\pi}}{2(\sqrt{2\pi}+2)}\approx 0,2781$$

↑