Probability 3 of 11
On this page

Probability

8.2 Random Variables

Chapter 2 of 10 120 min read

Given any random phenomenon, with a certain sample space, we wish to study the probabilistic structure of quantities associated with this phenomenon. For example, when describing a manufactured part we can employ two classifications: “defective” or “non-defective”. To facilitate analysis, we will assign a real number to each experiment result. Thus, we can assign the value 0 to non-defective parts and 1 to defective ones. We can understand a random variable as a function that associates each element of the sample space (in this example the elements are “defective”, “non-defective”) with a real number. We will denote random variables by capital letters.

Definition 2.1

Let us consider an experiment and $ \Omega $ the sample space associated with this experiment. A function X, which associates with each element $ \omega \in \Omega $ a real number, $ X(\omega) $, is called random variable (v.a.). In other words, a random variable is a numerical characteristic of the result of an experiment.

Random variables are fundamental for applications, as they represent the characteristics of interest in a population. For example, in a parts machining line we are interested in controlling the diameter of the parts produced. In this case, the result of the diameter measurement is the random variable of interest. In a clinical trial, we are interested in evaluating the lifespan of patients and in this case, lifespan corresponds to the random variable.

Example 2.1

Consider three independent tosses of a balanced coin. Be $C$ face and $K$ crown. The sample space of this experiment is $S={(C,C,C); (C,C,K); (C,K,C); (K,C,C); (C,K,K); (K,C,K); (K,K,C); (K,K,K)}$. We can define the random variable $X$: “number of heads obtained in the three throws”. For example, we have to $X((C,C,C)) = 3$ and $X((K,C,C))=2$.

Example 2.2

Choose a point at random in the unit square, that is, choose an ordered pair $ (x,y) \in [0,1] \times [0,1] $. So $ \Omega=[0,1]\times [0,1] $ and as an example of a random variable the product of the two coordinates $ X(\omega)= x y $., for all $ w =(x,y) \in \Omega $.

In general, not any function with domain in the sample space and image on the line is a random variable. For infinite non-countable sample spaces, we say that the function $ X: \Omega \rightarrow \Bbb{R} $ is a random variable if the set $ \lbrace w \in \Omega : X(w) \leq x \rbrace $ is an event (belongs to $ \sigma $-event algebra in $ \Omega $), for all $ x \in \Bbb{R} $

8.2.1 Accumulated distribution function

The cumulative distribution function describes how probabilities are associated with the values or ranges of values of a random variable. It represents the probability of a random variable being less than or equal to a real value $ x $. In the straight line probability distribution section, we showed that random variable and cumulative distribution function are synonymous. In this way, we can define random variables through their cumulative distribution function. Next, we will define and study properties of the cumulative distribution function. To do this, we take the probability space $ (\Omega , {\cal F} , \mathbb{P}) $.

Definition 2.1.1

The cumulative distribution function of a random variable $ X $ defined about $ (\Omega , \mathcal{F} , \mathbb{P}) $ is a function that for each real number $ x \in \mathbb{R} $ associates the value

$$F(x)=\mathbb{P}\left(X\leq x\right) \in [0,1].$$

The notation $ (X \leq x) $ is used to designate the set $ \lbrace \omega\in \Omega : X(\omega) \leq x\rbrace $, that is, it denotes the inverse image of the interval $ (-\infty,x] $ by the random variable X. With this, we can observe that the accumulated distribution function $ F $ has real numbers as its domain $ (\Bbb{R}) $ and image the range $ [0,1] $.

Knowledge of the cumulative distribution function is sufficient to understand the behavior of a random variable. Even if the variable takes on values ​​only in a subset of the real ones, the distribution function is defined across the entire line. It is called the cumulative distribution function, as it accumulates the probabilities of values less than or equal to $x$.

Example 2.1.1

Let us consider Example 2.1. Let’s find the cumulative distribution function of $ X $: “number of heads obtained in the three throws”.

The values that $ X $ can assume are $ 0,1,2 $ and $ 3 $. Therefore,

$$\mathbb{P}(X=0)=\mathbb{P}((KKK))=\frac{1}{2}\times\frac{1}{2}\times\frac{1}{2}=\frac{1}{8}.$$

$$\mathbb{P}(X=1)=\mathbb{P}((CKK))+\mathbb{P}((KCK))+\mathbb{P}((KKC))=\frac{3}{8}.$$

$$\mathbb{P}(X=2)=\mathbb{P}((CCK))+\mathbb{P}((CKC))+\mathbb{P}((KCC))=\frac{3}{8}.$$

$$\mathbb{P}(X=3)=\mathbb{P}((CCC))=\frac{1}{8}.$$

Therefore,

$$\text{se} \ x \ < \ 0 \Rightarrow \mathbb{P}(X\leq x) = 0,$$

$$\text{se} \ 0\leq x \ < \ 1 \Rightarrow \mathbb{P}(X\leq x) = \mathbb{P}(X = 0) = \frac{1}{8},$$

$$\text{se} \ 1\leq x \ < \ 2 \Rightarrow \mathbb{P}(X\leq x) = \mathbb{P}(X = 0) + \mathbb{P}(X = 1) = \frac{1}{8} + \frac{3}{8} = \frac{1}{2},$$

$$\text{se} \ 2\leq x \ < \ 3 \Rightarrow \mathbb{P}(X\leq x) = \mathbb{P}(X = 0) + \mathbb{P}(X = 1) + \mathbb{P}(X = 2) = \frac{1}{8} + \frac{3}{8} + \frac{3}{8} = \frac{7}{8} \ \text{e}$$

$$\text{se} \ x\geq 3, \Rightarrow \mathbb{P}(X\leq x) = \mathbb{P}(X = 0) + \mathbb{P}(X = 1) + \mathbb{P}(X = 2) + \mathbb{P}(X = 3) = 1.$$

In this way, we have that the cumulative distribution function of $ X $ is given by

$$\displaystyle F(x) = \begin{cases} 0, \ \hbox{se} \ x \ < \ 0; \cr 1/8, \ \hbox{se} \ 0 \leq x \ < \ 1; \cr 1/2, \ \hbox{se} \ 1 \leq x \ < \ 2;\cr 7/8, \ \hbox{se} \ 2\leq x \ < \ 3; \cr 1, \ \hbox{se} \ x \geq 3.\end{cases}$$

Example 2.1.2

The shelf life, in months, of a lubricating oil in certain equipment is being studied. It is $ \Omega = \lbrace \omega\in \Bbb{R} : 6 \ < \ \omega \leq 8\rbrace $. A variable of interest is the expiration time itself and, in this case, we define $ X(\omega) = \omega; \ \forall \ \omega\in \Omega $. For example, we can take the following cumulative distribution function of $ X $:

$$F(x) = \begin{cases} 0, \ \hbox{se} \ x \ < \ 6;\cr (x - 6)/2, \ \hbox{se} \ 6 \leq x \ < \ 8;\cr 1, \ \hbox{se} \ x \geq 8.\cr \end{cases}$$

Figura 8.2.1

Figure 8.2.1: Cumulative probability distribution function

Note that in this example, we directly define the Cumulative Distribution Function (ADF) instead of the probability. In most applications, we start from the FDA to define the probabilistic model.

The cumulative distribution function of a random variable $ X $ have three basic properties:

  1. $ 0\leq F(x)\leq 1 $, $ \lim_{x \rightarrow -\infty} F(x) =0 $ and $ \lim_{x \rightarrow \infty} F(x)=1 $;

  2. $ F $ is non-decreasing.

  3. $ F $ is a right-continuous function and has a left limit.

Demo

(1) If $ x \rightarrow - \infty $, then $ (X\leq x)\downarrow \emptyset $ and so $ F(x)=\mathbb{P}(X\leq x)\downarrow 0 $. Se $ x \rightarrow + \infty $, then $ (X\leq x)\uparrow \Omega $ and so $ F(x)=\mathbb{P}(X\leq x)\uparrow 1 $.

(2) $ F $ non-decreasing is equivalent to $ x\leq y\Rightarrow (X\leq x)\subset (X\leq y) \Rightarrow F(x)=\mathbb{P}(X\leq x)\leq \mathbb{P}(X\leq y)=F(y) $

(3) $ F $ is continuous to the right is equivalent to if $ x_n\downarrow x $, then $ (X\leq x_n) $ is a decreasing sequence of random events and $ \displaystyle \bigcap_{n\geq 1}[X\leq x_n]= ([X\leq x) $, because $ X\leq x $ if, and only if, $ X\leq x_n{ }\forall n $. Thus, we conclude that

$$F(x_n)=\mathbb{P}(X\leq x_n)\downarrow \mathbb{P}(X\leq x)=F(x)$$

Example 2.1.3

To flip a coin, we have to $ \Omega = (\text{cara}, \text{coroa}) $ and that $ \mathbb{P}(\text{cara}) = \mathbb{P}(\text{coroa}) = \frac{1}{2} $. We define a random variable $ X:\Omega\rightarrow\mathbb{R} $ as follows:

$$X(\omega) = \begin{cases}1, \ \hbox{se} \ \omega = \ \hbox{cara}; \cr 0, \ \hbox{se} \ \omega = \ \hbox{coroa}\cr \end{cases}$$

To obtain the cumulative distribution function of the random variable $ X $, it is convenient to separate the various cases, according to the variable values.

For $ x \ < \ 0 $, $ \mathbb{P}(X \leq x) = 0 $, since the smallest value assumed by the variable $ X $ is $ 0 $. At halftime $ 0 \leq x \ < \ 1 $, we have to $ \mathbb{P}(X \leq x) = \mathbb{P}(X = 0) = 1/2 $. And, for $ x \geq 1 $, we have to $ \mathbb{P}(X \leq x) = \mathbb{P}(X = 0) + \mathbb{P}(X = 1) = 1 $. In this way, $ F(x) = \mathbb{P}(X \leq x) $ was defined for all $ x $ real. So, we have

$$F(x) = \begin{cases} 0, \ \hbox{se} \ x \ < \ 0; \cr 1/2, \ \hbox{se} \ 0 \leq x \ < \ 1;\cr 1, \ \hbox{se} \ x \geq 1.\cr \end{cases}$$

The following result tells us that any function $ F $ that satisfies the basic properties (1, 2 and 3) is the cumulative distribution function of some random variable on the line. The demonstration of this result is in the section probability distribution on the line.

Theorem 2.1.1

All function $ F $ satisfying the basic properties is a cumulative distribution function of some random variable.

From this result, we can define random variables through their respective accumulated distribution function.

Example 2.1.4

Be $ X $ is a random variable with exponential parameter distribution $ \lambda > 0 $, what is the distribution of the random variable $ Y=\min(\lambda,X) $? Carry out the decomposition of $ F_Y $.

a) Distribution of Y is given by

(a1) $ Y< \lambda $ and $ \mathbb{P}(Y\leq y)=0 $

(a2) $ Y=\lambda $ we have to

$$\mathbb{P}(Y\leq y)=\mathbb{P}(Y=\lambda)=\mathbb{P}(X\leq \lambda)=1-e^{-\lambda^2}$$

(a3) $ Y> \lambda $

$$\mathbb{P}(Y\leq y)=\mathbb{P}(X\leq x)=1-e^{-\lambda x}$$

b) Decomposition of $ F_Y $

(b1) $ F_{Y_d}: $

$$\mathbb{P}(Y_{d}=y)=F_Y(y)-F_Y(y^-)=\begin{cases} \displaystyle 0, \text { se } y\neq c\cr \cr 1-e^{-\lambda ^2}, y=\lambda \end{cases}$$

(b2) $ F_{Y_{ab}}(y)=\int_{-\infty}^y f(y)dy $. So,

$$f(y)=\begin{cases} \displaystyle 0, \text { se } y\neq \lambda\cr \cr \lambda e^{-\lambda y}, y> \lambda \end{cases}$$

So,

$$F_{Y_{ab}}(y)=\begin{cases} \displaystyle 0, \text { se } y\neq \lambda\cr \cr e^{-\lambda^2}-e^{-\lambda y}, y> \lambda \end{cases}$$

and then, $ F_Y(y)=F_{Y_d}(y)+F_{Y_{ab}}(y), \forall y \in \mathbb{R} $ which implies that $ F_{Y_s}=0 $ for any $ y\in \mathbb{R} $.

Example 2.1.5

Five points are chosen, independently and at random, from the interval $ [0,1] $. Be $ X $ the number of points that belong to the interval $ [0,c] $ in which $ 0< c< 1 $. What is the distribution $X$? X It is the repetition of tests with the same probability of success as $ p $ and independent, in which

$$p=\frac{comp[0,c]}{comp[0,1]}=c.$$

So, $ X $ has binomial distribution with parameter $ 5 $ and $ p $.

Example 2.1.6

Determine the distribution of waiting time until the second success in a sequence of Bernoulli trials with probability $ p $ of success.

Be $ X $ the random variable that designates the waiting time until the second success. Note that the probability of occurring 2 successes in $ k(k\geq 2) $ is $ p^2(1-p)^{k-2} $. Now the last trial occurs in the last position so the first trial can occur in any of the previous positions. So,

$$\mathbb{P}(X=k)=(k-1)p^2(1-p)^{k-2}, k=2,3,\dots$$

Example 2.1.7

A radioactive mass emits particles according to a Poisson process at an average rate of 10 particles per second. A counter is placed next to the dough. Suppose that each emitted particle hits the counter with probability $ 1/10 $, that the counter records all particles that hit it, and that there is no iteration between particles (they move independently).

(a) What is the distribution of $ X_i= $ number of particles emitted over time $ t,t> 0 $?

We have $ (X_t)_{t> 0} $ is the Poisson probability then

$$\mathbb{P}(X_t=n)=\mathbb{P}(A^n_{0,t})=\begin{cases} \displaystyle \frac{(\lambda t)^n}{n!}e^{-\lambda t}, \text { se } n=0,1,2,\dots \cr \cr 0, \text{ caso contrário }.\end{cases}$$

(b) Prove that $ Y_t $ has Poisson distributions, where $ Y_t $ is the number of particles recorded (counted) up to time t, $ t> 0 $. What is the parameter?

$$Y_t=\text{número de partículas registradas.}$$

Now

$$[Y_t=n]=\bigcup_{k=n}^\infty \left([Y_t=n]\cap [X_t=k]\right)$$

which implies that

$$\mathbb{P}(Y_t=n)=\sum_{k=n}^\infty \mathbb{P}(Y_t=n,X_t=k)=\sum_{k=n}{\infty}\mathbb{P}(Y_t=n|X_t=n)\mathbb{P}(X_t=k)$$

Now,

$$\begin{cases} \displaystyle Y_t|X_t=k\sim \hbox{Binom}\left(k,\frac{1}{10}\right)\Rightarrow \mathbb{P}\left(Y_t=n|X_t=k\right)=\frac{k!}{(n-k)!n!} \left(\frac{1}{10}^k\right)\left(\frac{9}{10}^k\right)^{k-n} \cr \cr X_t\sim \hbox{Poisson}(\lambda t) \Rightarrow \mathbb{P}(X_t=k)=\frac{(\lambda t)^k}{k!}e^{-\lambda}\end{cases}$$

So

$$\mathbb{P}(Y_t=n)=\sum_{k=n}^\infty \frac{k!}{(n-k)!n!}\left(\frac{1}{10}\right)^n \left(\frac{9}{10}\right)^{k-n}\frac{(\lambda t)^k}{n!} c^{\lambda t}= \frac{(\lambda t)^n \left(\frac{1}{10}\right)^n}{n!}e^{-\lambda t}\sum_{k=n}^\infty \frac{\left(\frac{9}{10}\lambda t\right)^{k-n}}{(k-n)!}$$

$$=\frac{\left(\frac{\lambda t}{10}\right)^n e^{-\lambda t}}{10} $$

So, $ Y_t\sim \hbox{Poisson} \left(\frac{\lambda}{10}t\right) $

8.2.1.1 Probability distribution on the straight line

In order to construct the probability on the real line $ \mathbb{R} $, we will initially construct the Borel sets of the line. In this sense, consider the class of intervals open to the left and closed to the right of the form

$$(a,b] = \lbrace x\in\mathbb{R}: a \ < \ x\leq b \rbrace$$

for any $ a $ and $ b $ such that $ -\infty\leq a \ < \ b \ < \ \infty $.

Note 2.1.1.1

We consider the range $ (a,\infty] $ as the open interval $ (a,\infty) $. This consideration is important so that the complement of an interval $ (-\infty,b] $ given by $ (\infty,b]^c = (b,\infty) = (b,\infty] $ be an element of the class.

Be $ \mathcal{A} $ the class of subsets of $ \mathbb{R} $ composed of the empty set $ \varnothing $ and of sets that can be written as a finite union of disjoint intervals of the form $ (a,b] $, that is,

$$A\in\mathcal{A} \ \text{se} \ A = \varnothing \ \text{ou} \ A = \bigcup_{i=1}^n(a_i,b_i], \ \text{com} \ (a_i,b_i]\cap (a_j,b_j] = \varnothing \ \text{se} \ i\neq j \ \text{e} \ n \ < \ \infty.$$

Proposition 2.1.1.1

The class $ \mathcal{A} $ is an algebra.

Demo

In fact, so that $ \mathcal{A} $ is an algebra, just check the following conditions:

  1. $ \varnothing\in\mathcal{A} $;

  2. Se $ A,B\in\mathcal{A} $ then $ A\cap B\in\mathcal{A} $.

  3. Se $ A\in\mathcal{A} $, then $ A^c\in\mathcal{A} $.

Item 1) is immediate from the class definition $ \mathcal{A} $. To check item 2), either $ A,B\in\mathcal{A} $ and we observe that, if or $ A = \varnothing $ or $ B = \varnothing $, then $ A\cap B = \varnothing \in\mathcal{A} $. Suppose

$$A = \bigcup_{i=1}^n(a_i,b_i] \ \text{com} \ (a_i,b_i]\cap(a_j,b_j] = \varnothing \ \text{se} \ i\neq j \ \text{e} \ B = \bigcup_{k=1}^m(c_k,d_k] \ \text{com} \ (c_k,d_k]\cap(c_l,d_l] = \varnothing \ \text{se} \ k\neq l.$$

It then follows that

$$A\cap B = \left(\bigcup_{i=1}^n(a_i,b_i]\right)\bigcap\left(\bigcup_{k=1}^m(c_k,d_k]\right) = \bigcup_{i=1}^n\bigcup_{k=1}^m\left((a_i,b_i]\cap(c_k,d_k]\right).$$

But, for $ i = 1,\ldots,n $ and $ k = 1,\ldots, m $ we have to

$$(a_i,b_i]\cap(c_k,d_k] = \begin{cases} \varnothing \ \text{se} \ a_i \ < \ b_i \ < \ c_k \ < \ d_k \ \ \text{ou} \ c_k \ < \ d_k \ < \ a_i \ < \ b_i \ \text{ou substituindo} \ < \ \text{por} \ \leq\cr (c_k,b_i] \ \text{se} \ a_i \ < \ c_k \ < \ b_i \ < \ d_k \ \text{ou substituindo} \ < \ \text{por} \ \leq\cr (a_i,d_k] \ \text{se} \ c_k \ < \ a_i \ < \ d_k \ < \ b_i \ \text{ou substituindo} \ < \ \text{por} \ \leq\cr (a_i,b_i] \ \text{se} \ c_k \ < \ a_i \ < \ b_i \ < \ d_k \ \text{ou substituindo} \ < \ \text{por} \ \leq\cr (c_k,d_k] \ \text{se} \ a_i \ < \ c_k \ < \ d_k \ < \ b_i \ \text{ou substituindo} \ < \ \text{por} \ \leq\end{cases}$$

so that $ A\cap B $ can be written as a finite union of elements of the form $ (a,b] $. Therefore, $ A\cap B \in\mathcal{A} $. Now just check item 3). Se $ A = \varnothing $, then $ A^c = \mathbb{R} = (-\infty,\infty) $ which can be written in the form

$$\mathbb{R} = (-\infty,\infty) = (-\infty,0]\cup(0,\infty]\in\mathcal{A}.$$

For the case in which $ A = \cup_{i=1}^n(a_i,b_i] $, with $ (a_i,b_i]\cap(a_j,b_j] = \varnothing $ if $ i\neq j $, we can rewrite $ A $ in the form

$$A = \bigcup_{j=1}^n(a_{i_j},b_{i_j}]$$

so that

$$-\infty \leq a_{i_1} \ < b_{i_1} \leq a_{i_2} \ < \ b_{i_2} \leq \ldots \leq a_{i_n} \ < \ b_{i_n} \leq \infty$$

and then, we have to

$$A^c = \left(\bigcup_{j=1}^n(a_{i_j},b_{i_j}]\right)^c = (-\infty,a_{i_1}]\cup (b_{i_1},a_{i_2}] \cup \ldots \cup (b_{i_{n-1}},a_{i_n}] \cup (b_{i_n},\infty] \in \mathcal{A}.$$

completing the demonstration.

It is important to note that, despite the class $ \mathcal{A} $ be an algebra, as demonstrated by Proposition 2.1.1.1, it is not an $ \sigma $-algebra. In fact, the property $ \sigma $-additive is not satisfied. Just take the sets $ A_n\in\mathcal{A} $ given by $ A_n = (0,1-\frac{1}{n}] $. In this way we have to

$$\bigcup_{n=1}^{\infty}A_n = (0,1)\notin \mathcal{A}.$$

Definition 2.1.1.1

Be $ \sigma(\mathcal{A}) $ to $ \sigma $-algebra generated by the event class $ \mathcal{A} $. This $ \sigma $-algebra plays a fundamental role in analysis and is called $ \sigma $- Borel algebra of straight line subset $ \mathbb{R} $, denoted by $ \mathfrak{B}(\mathbb{R}) $. Its sets are called Borel sets of the line or Borel sets of the line.

Note 2.1.1.2

Se $ \mathcal{I} $ is the class of intervals of the form $ (a,b] $ and $ \sigma(\mathcal{I}) $ is the smallest $ \sigma $-algebra of sets that contains $ \mathcal{I} $, we can verify that $ \sigma(\mathcal{I}) $ is the $ \sigma $-Borel algebra. In other words, we can get the $ \sigma $-Borel algebra from $ \mathcal{I} $ without algebra $ \mathcal{A} $, since $ \sigma(\mathcal{I}) = \sigma(\alpha(\mathcal{I})) $.

A $ \sigma $-Borel algebra does not contain only the intervals of the form $ (a,b] $, but also unitary sets of the form $ (a) $ and the intervals of the form $ (a,b) $, $ [a,b] $, $ [a,b) $, $ (-\infty,b) $ and $ (a,\infty) $. In fact, we have to

$$(a,b) = \bigcup_{n=1}^{\infty}\left(a,b-\frac{1}{n}\right], \ a \ < \ b,$$

$$[a,b] = \bigcap_{n=1}^{\infty}\left(a-\frac{1}{n},b\right], \ a \ < \ b,$$

$$(a)=\bigcap_{n=1}^{\infty}\left(a-\frac{1}{n},a\right]$$

and all other elements are built from these three.

We also emphasize that $ \mathfrak{B}(\mathbb{R}) $ can be constructed from any classes of intervals of the forms mentioned above instead of intervals of the type $ (a,b] $, since all $ \sigma $-minimal algebras generated by these classes of intervals are the same, that is, $ \mathfrak{B}(\mathbb{R}) $.

Note 2.1.1.3

The measurable space $ (\mathbb{R},\mathfrak{B}(\mathbb{R})) $ can also be denoted by $ (\mathbb{R},\mathfrak{B}) $.

Next, we demonstrate Theorem 2.1.1 stated in Section 8.2.1.

Theorem 2.1.1.1

All function $ F $ satisfying the basic properties is a cumulative distribution function of some random variable.

Demo

Let us suppose that the function $ F $ satisfy the basic properties. Let’s build a random variable $ X $ so that the cumulative distribution function $ F_X $ be equal to $ F $, that is, $ F_X=F $. Be $ \mathbb{P} $ a probability defined in the Borelians of the straight line $ \mathfrak{B}(\mathbb{R}) $ in such a way that $ \mathbb{P}[(-\infty,x)]=F(x) $ for any $ x $ in the set of real numbers. In this way, we simply define $ X(\omega)=\omega $ for any $ \omega $ percentage to the set of real numbers. So the result follows, we just need to construct the probability as follows

$$F_X(x) = \mathbb{P}\left(X(\omega)\leq x\right) = \mathbb{P}\left((-\infty,x]\right)=F\left(x\right),$$

$$1 - F_X(x) = 1-\mathbb{P}\left(X(\omega)\leq x\right) = \mathbb{P}\left((x,\infty)\right)=1-F\left(x\right),$$

$$F_X(b) - F_X(a) = \mathbb{P}\left(a \ < \ X\leq b\right) = \mathbb{P}\left((a,b]\right)=F\left(b\right)-F\left(a\right)$$

and define $ \mathbb{P} $ in algebra $ \mathcal{A} $ in the form

$$\mathbb{P}\left((a,b]\cup (c,d]\right)=F(b)-F(a)+F(d)-F(c),$$

for the breaks $ (a,b], (c, d] $ such that $ (a,b]\cap (c,d] = \varnothing $. Now we just need to use the Carathéodory Extension Theorem (which will be stated and demonstrated below for this case). So, after constructing the probability, we have to $ F $ will be a cumulative distribution function of the random variable $ X $ defined above.

An alternative proof for Theorem 2.1.1.1 can be given as follows.

Be $ \Omega=(0,1) $, $ \mathcal{F} $ the borel sigma-algebra and $ \mathbb{P} $ the Lebesgue measure or uniform distribution. For $ \omega \in (0,1) $, consider

$$X(\omega)=\sup\lbrace (y:F(y) \ < \ \omega)\rbrace.$$

If we show that

$$\lbrace (\omega : X(\omega)\leq x)\rbrace=\lbrace (\omega:\omega \leq F(x))\rbrace,$$

then the result follows immediately since $ \mathbb{P}(\omega:\omega\leq F(x))=F(x) $. In fact, we have to, if $ \omega\leq F(x) $ then $ X(\omega)\leq x $, since $ x \notin \lbrace y:F(y) \ < \ \omega\rbrace $. On the other hand, we have to, if $ \omega \ < \ F(x) $, then how $ F $ is continued to the right we have that there is a $ \epsilon \ > \ 0 $ such that

$$F(x+\epsilon) \ < \ \omega \ \text{e} \ X(\omega)\geq x+\epsilon \ > \ x.$$

So we have to $\mathbb{P}(\lbrace \omega : X(\omega)\leq x\rbrace)=\mathbb{P}(\lbrace \omega:\omega \leq F(x)\rbrace)=F(x)$. To prove the carathéodory extension theorem we will need some results, stated in the following lemmas.

Lemma 2.1.1.1

Be $ \mathbb{P} $ a probability defined in an algebra $ \mathcal{F}_0 $ of subsets of $ \Omega $. Suppose $ A_1,A_2,\cdots\in \mathcal{F}_0 $ with $ A_1\subset A_2 \subset \ldots $ with limit $ A $ and the sets $ A^{\prime}_1,A^{\prime}_2,\cdots\in \mathcal{F}_0 $ with $ A^{\prime}_1\subset A^{\prime}_2 \subset \cdots $ with limit $ A^{\prime} $ (with $ A $ and $ A^{\prime} $ not necessarily in $ \mathcal{F}_0 $). Se $ A\subset A^{\prime} $ then

$$\lim_{m\rightarrow \infty}\mathbb{P}(A_m)\leq \lim_{n\rightarrow \infty}\mathbb{P}(A^{\prime}_n).$$

Se $ A=A^{\prime} $ we immediately have to

$$\lim_{m\rightarrow \infty}\mathbb{P}(A_m)= \lim_{n\rightarrow \infty}\mathbb{P}(A^{\prime}_n).$$

Demo

Be $ m $ fixed, then $ A_m\cap A^{\prime}_n \uparrow A_m\cap A^{\prime}=A_m $ and therefore

$$\mathbb{P}\left(A_m\cap A^{\prime}_n\right)\rightarrow \mathbb{P}\left(A_m\right).$$

How $ \mathbb{P}\left(A_m\cap A^{\prime}_n\right)\leq \mathbb{P}\left(A^{\prime}_n\right) $ then

$$\mathbb{P}\left(A_m\right)=\lim_{n\rightarrow \infty}\mathbb{P}\left(A_m\cap A^{\prime}_n\right)\leq\lim_{n\rightarrow \infty}\mathbb{P}(A^{\prime}_n).$$

So, we just need to take the limits $ m $ and we will have to

$$\lim_{m\rightarrow \infty}\mathbb{P}\left(A_m\right)\leq\lim_{n\rightarrow \infty}\mathbb{P}\left(A^{\prime}_n\right)$$

and the result follows.

Lemma 2.1.1.2

Be $ \mathbb{P} $ a probability measure defined in an algebra $ \mathcal{F}_0 $ of subsets of $ \Omega $. Be $ \mathcal{G} $ the collection of all sets that are limits of increasing sequences of sets of $ \mathcal{F}_0 $. So $ \mathbb{P}^{\ast} $ defined in $ \mathcal{G} $ in such a way that

$$\mathbb{P}^{\ast}(A)=\lim_{n\rightarrow \infty}\mathbb{P}(A_n)$$

is an extension of $ \mathbb{P} $ in $ \mathcal{G} $ and $ \mathbb{P}^{\ast}(B)=\mathbb{P}(B) \ \forall \ B\in \mathcal{F}_0 $. Furthermore $ \mathbb{P}^{\ast} $ is a probability.

Demo

It is immediate to see that $ \mathbb{P}^{\ast}=\mathbb{P} $ in $ \mathcal{F}_0 $. So we just show that $ \mathbb{P}^{\ast} $ is a probability, that is, that

  1. $ \mathbb{P}^{\ast}(\emptyset)=0 $, $ \mathbb{P}^{\ast}(\Omega)=1 $ and that $ 0\leq \mathbb{P}^{\ast}(A)\leq 1\forall A\in \mathcal{G} $.

  2. Se $ G_1, G_2\in \mathcal{G} $ then $ G_1\cup G_2 $ and $ G_1\cap G_2 \in \mathcal{G} $ and yet $ \mathbb{P}^{\ast}(G_1\cup G_2)+\mathbb{P}^{\ast}(G_1\cap G_2)=\mathbb{P}^{\ast}(G_1)+\mathbb{P}^{\ast}(G_2) $.

  3. Se $ G_1,G_2\in \mathcal{G} $ then $ G_1\subset G_2 $ then $ \mathbb{P}^{\ast}(G_1)\leq \mathbb{P}^{\ast}(G_2) $.

  4. Se $ G_n \in \mathcal{G} $, with $ n\in\mathbb{N} $ and $ G_n\uparrow G $ then $ G\in \mathcal{G} $ and $ \mathbb{P}^{\ast}(G_n)\rightarrow \mathbb{P}^{\ast}(G) $.

(1.) It is immediate from the fact that $ \mathbb{P}^{\ast}=\mathbb{P} $ in $ \mathcal{F}_0. $

(2.) Be $ A_{n_1}\in \mathcal{F}_0 $ and $ A_{n_2}\in \mathcal{F}_0 $, such that $ A_{n_1}\uparrow G_1 $ and $ A_{n_2}\uparrow G_2 $ so, how $ \mathbb{P}(A_{n_1}\cup A_{n_2})+\mathbb{P}(A_{n_1}\cap A_{n_2})=\mathbb{P}(A_{n_1})+\mathbb{P}(A_{n_2}) $, we just take the limit in $ n $ and the result follows.

(3.) The result immediately follows from Lemma 2.1.1.1.

(4.) How $ G $ is a countable union of sets of $ \mathcal{F_0} $ then $ G\in \mathcal{G} $. Because for each $ n $ we can find sets $ A_{n_m}\in \mathcal{F}_0 $ with $ A_{n_m}\uparrow G_n $. In this way, be

$$D_m=A_1\cup A_2\cup\cdots\cup A_{n_m}.$$

So $ D_m $ is an increasing sequence of sets of $ \mathcal{F}_0 $ and in addition

$$A_{n_m}\subset D_m \subset G_m, \ \forall \ n\leq m. \ \text{(1)}$$

and therefore

$$\mathbb{P}(A_{n_m})\leq \mathbb{P}(D_m)\leq \mathbb{P}^{\ast}(G_m), \ \forall \ n \leq m. \ \text{(2)}$$

Se $ m\rightarrow \infty $, we obtain from (1) that

$$G_n\subset\displaystyle \bigcup_{m=1}^{\infty}D_m\subset G,$$

so taking $ n\rightarrow \infty $ we conclude that $ D_m\uparrow G $ and therefore

$$\mathbb{P}(D_m)\rightarrow \mathbb{P}^{\ast}(G)$$

taking the limit in $ m $ we obtain by (2) that

$$\mathbb{P}^{\ast}(G_n)\leq\lim_{m\rightarrow \infty}\mathbb{P}(D_m)\leq \lim_{m\rightarrow\infty}\mathbb{P}^{\ast}(G_m).$$

Therefore, taking the limit in $ n $ we conclude that

$$\lim_{n\rightarrow}\mathbb{P}^{\ast}(G_n)=\lim_{m\rightarrow \infty}\mathbb{P}(D_m)=\mathbb{P}^{\ast}(G)$$

and therefore the result follows.

Lemma 2.1.1.3

Be $ \mathcal{G} $ a class of subsets of the set $ \Omega $, $ \mathbb{P} $ a probability defined in $ \mathcal{G} $ such that, $ \mathbb{P} $ and $ \mathcal{G} $ satisfies the conditions of Lemma 2.1.1.2. In this way we define for each $ A\in \Omega $,

$$\mathbb{P}^{\ast}(A)=\inf\lbrace (\mathbb{P}(G):G\in\mathcal{G}, G\supset A)\rbrace.$$

So $ \mathbb{P}^{\ast}=\mathbb{P} $ in $ \mathcal{G} $ and $ \mathbb{P}^{\ast} $ is a probability.

Demo

It is immediate to see that $ \mathbb{P}^{\ast}=\mathbb{P} $ in $ \mathcal{G} $. So we just show that $ \mathbb{P}^{\ast} $ is a probability, that is, that

  1. $ \mathbb{P}^{\ast}(\emptyset)=0 $, $ \mathbb{P}^{\ast}(\Omega)=1 $ and that $ 0\leq \mathbb{P}^{\ast}(A)\leq 1 \ \forall \ A\in \Omega $.

  2. $ \mathbb{P}^{\ast}(G_1\cup G_2)+\mathbb{P}^{\ast}(G_1\cap G_2)=\mathbb{P}^{\ast}(G_1)+\mathbb{P}^{\ast}(G_2) $

  3. Se $ A\subset B $ then $ \mathbb{P}^{\ast}(A)\leq \mathbb{P}^{\ast}(B) $

  4. Se $ A_n\uparrow A $, then $ \mathbb{P}^{\ast}(A_n)\rightarrow \mathbb{P}^{\ast}(A) $.

(1.) It is immediate from the fact that $ \mathbb{P}^{\ast}=\mathbb{P} $ in $ \mathcal{G} $.

(2.) If $ \epsilon \ > \ 0 $, choose $ G_1,G_2\in \mathcal{G} $, such that $ G_1\supset A $, $ G_2\supset B $ such that $ \mathbb{P}(G_1)\leq \mathbb{P}^{\ast}(A)+\epsilon/2 $, $ \mathbb{P}(G_2)\leq \mathbb{P}^{\ast}(B)+\epsilon/2 $ and, by Lemma 2.1.2 we have that

$$\mathbb{P}^{\ast}(A)+\mathbb{P}^{\ast}(B)+\epsilon\geq \mathbb{P}(G_1)+\mathbb{P}(G_2)=\mathbb{P}(G_1\cup G_2)+\mathbb{P}(G_1\cap G_2)\geq \mathbb{P}^{\ast}(A\cup B)+\mathbb{P}^{\ast}(A\cap B).$$

How $ \epsilon $ is arbitrary, we have that the result follows.

(3.) It follows from the definition of $ \mathbb{P}^{\ast} $.

(4.) From the previous item we have that $ \mathbb{P}^{\ast}(A)\geq \displaystyle \lim_{n\rightarrow \infty}\mathbb{P}^{\ast}(A_n) $. Se $ \epsilon \ > \ 0 $ for each $ n $ we can choose $ G_n\in\mathcal{G} $, $ G_n\supset A $, such that

$$\mathbb{P}(G_n)\leq \mathbb{P}^{\ast}(A_n)+\epsilon2^{-n}.$$

Now let’s take

$$A=\displaystyle \bigcup_{n=1}^{\infty}A_n\subset \bigcup_{n=1}^{\infty}G_n\in \mathcal{G}.$$

Therefore

$$\mathbb{P}^{\ast}(A)\stackrel{item 3.}{\leq} \mathbb{P}^{\ast}\left(\bigcup_{n=1}^{\infty}G_n\right)\stackrel{item 1.}{=}\mathbb{P}\left(\bigcup_{n=1}^{\infty}G_n\right)=\lim_{n\rightarrow \infty}\mathbb{P}\left(\bigcup_{k=1}^{n}G_n\right)$$

by Lemma 2.1.1.2(4.). So we just need to prove that

$$\mathbb{P}\left(\bigcup_{i=1}^{n}G_i\right)\leq \mathbb{P}^{\ast}(A_n)+\epsilon\sum_{i=1}^{n}2^{-i}.$$

Let us show this fact by induction. For $ n=1 $ It’s true for the way we choose $ G_1 $. Assume valid for $ n $, applying Lemma 2.1.1.2(2.) to the set $ \bigcup_{i=1}^{n}G_i $ and $ G_{n+1} $ we get

$$\mathbb{P}\left(\bigcup_{i=1}^{n+1}G_i\right)=\mathbb{P}\left(\bigcup_{i=1}^{n}G_i\right)+\mathbb{P}(G_{n+1})-\mathbb{P}\left(\left(\bigcup_{i=1}^{n}G_i\right)\cap G_{n+1}\right).$$

Now how $ \bigcup_{i=1}^{n}G_i\cap G_{n+1}\supset G_n\cap G_{n+1}\supset A_n\cap A_{n+1}=A_n $, then, using the induction hypothesis, we have

$$\mathbb{P}\left(\bigcup_{i=1}^{n+1}G_i\right)\leq \mathbb{P}^{\ast}(A_n)+\epsilon\sum_{i=1}^{n}2^{-i}+\mathbb{P}^{\ast}(A_{n+1})+\epsilon 2^{-(n+1)}-\mathbb{P}^{\ast}(A_n)\leq \mathbb{P}^{\ast}(A_{n+1})+\epsilon\sum_{i=1}^{n+1}2^{-i}$$

therefore, the result follows.

Lemma 2.1.1.4

About the hypotheses of Lemma 2.1.1.2 with $ \mathbb{P} $ defined in Lemma 2.1.1.3. Be $ \mathcal{H}=\lbrace H\subset \Omega : \mathbb{P}(H)+\mathbb{P}(H^c)\leq 1\rbrace $ then $ \mathcal{H} $ is a $ \sigma $-algebra and $ \mathbb{P} $ is a probability in $ \mathcal{H} $.

Theorem 2.1.2 (Carathéodory Extension Theorem)

Be $ \mathbb{P} $ a probability measure defined in an algebra $ \mathcal{F}_0 $ of subsets of $ \Omega $. So $ \mathbb{P} $ has a single extension to the smallest $ \sigma $-algebra ($ \mathcal{F} $) generated by $ \mathcal{F}_0 $.

Demo

How $ \mathbb{P} $ is a finite measure, it follows immediately from the previous lemmas that $ \mathbb{P} $ can be extended to $ \sigma(\mathcal{F}_0) $.

8.2.2 Discrete random variable

Definition 2.2.1

Be $ X $ a random variable (v.a.). If the number of possible values of $ X $ is enumerable (finite or infinite), we say that $ X $ is a discrete random variable. That is, the possible values of $ X $ can be listed as $ x_1,x_2,\ldots $. In the finite case, the list has a final value $ x_n $, and in the infinite case, the list continues indefinitely.

Example 2.2.1

Suppose that, after a medical examination, people are diagnosed as having diabetes (D) and not having diabetes (N). Assume that three people are chosen at random and classified according to this scheme.

The sample space is given by

$ \Omega=(DDD, DDN, DND, NDD, NND, NDN, DNN, NNN) $

Our interest is to know how many people with diabetes were found, regardless of the order in which they were selected. That is, we wish to study the random variable $ X $, which assigns to each result $ \omega \in \Omega $ the number of people with diabetes. Consequently, the set of possible values of $ X $ is $ (0, 1, 2, 3) $, that is, $ X $ is a discrete random variable.

Definition 2.2.2

Be $ X $ a discrete random variable. For each possible outcome $ x_i $ we will associate a number $ p(x_i) = \mathbb{P}\left(X = x_i\right) $, called the probability of $ x_i $. The numbers $ p(x_i) $, $ i = 1, 2, \ldots $ must satisfy the following conditions:

  1. $ p(x_i) \geq 0 $ for everyone $ i $;

  2. $ \displaystyle \sum_{i=1}^\infty p(x_i)=1 $.

The function $ p $ is called the probability function of the random variable $ X $.

Definition 2.2.3

The Pairs Collection $ (x_i, p(x_i)) $; $ i = 1, 2, \ldots $ is sometimes called the probability distribution of $ X $. Thus, we can say that the probability distribution of a discrete random variable $ X $, defined in a sample space $ \Omega $, is a table that associates each value of $ X $ its probability.

Example 2.2.2

Consider that a coin is tossed twice. Be $ X $ the function defined in the sample space that is equal to the number of heads in the two tosses ($ C $ - Face and $ K $ - Crown).

In the following table we have the probability distribution for the random variable X.

X Values Sample points Probability
0 KK 1/4
1 K.C., C.K. 1/2
2 CC 1/4

Table 8.2.1: Probability values

The probability values in the table above are obtained as follows:

$$\mathbb{P}\left(X=0\right) = \mathbb{P}((KK)) = \frac{1}{4}.$$

$$\mathbb{P}\left(X=1\right) = \mathbb{P}((CK)) + \mathbb{P}((KC)) = \frac{1}{2}.$$

$$\mathbb{P}\left(X=2\right) = \mathbb{P}((CC)) = \frac{1}{4}.$$

Definition 2.2.4

The quantile $ q100\char37 $ ($ 0 \leq q \leq 1 $) of a discrete random variable $ X $ is the smallest value of $ x $ for which

$$F(x)=\mathbb{P}(X\leq x)\geq q.$$

The percentile $ p100\char37 $ of a value $ x $ is the value of the accumulated distribution in $ x $, that is,

$$p=F(x)=\mathbb{P}(X\leq x).$$

Relationship Between Cumulative Distribution Function and Discrete Probability Distribution

Be $ X $ a discrete random variable whose probability distribution associates the values $ x_1,x_2,\ldots $ the respective probabilities $ \mathbb{P}(X=x_1),\mathbb{P}(X=x_2),\ldots $.

As the values of $ X $ are mutually exclusive, we have that the cumulative distribution function is given by

$$F(x)=\sum_{i\in A_x}\mathbb{P}(X=x_i), \ \text{com} \ A_x=(i: x_i\leq x).$$

Thus, given the probability distribution of a discrete random variable, we can determine its cumulative distribution function, or even, given the cumulative distribution function, we can determine its probability distribution.

Example 2.2.3

Consider two independent tosses of a balanced coin. With the usual probability space, define $ X $ as being the number of heads in the two throws. Determine the cumulative distribution function of $ X $.

The variable $ X $ is discrete and its probability distribution will be given by

$ x_i $ $ 0 $ $ 1 $ $ 2 $
$ P(X = x_i) $ $ \frac{1}{4} $ $ \frac{1}{2} $ $ \frac{1}{4} $

Table 8.2.2: Probability distribution

The corresponding cumulative distribution function will be:

$$F(x) = \begin{cases} 0, \ \hbox{se} \ x \ < \ 0; \cr 1/4, \ \hbox{se} \ 0 \leq x \ < \ 1;\cr 3/4, \ \hbox{se} \ 1 \leq x \ < \ 2;\cr 1, \ \hbox{se} \ x \geq 2.\cr \end{cases}$$

Figura 8.2.2

Figure 8.2.2: Cumulative Distribution Function

8.2.3 Continuous random variable

Definition 2.3.1

Be $ X $ a random variable. Suppose that the range ($ \mathbb{R}_x $) of $ X $ be it a range or a collection of ranges. So we will say that $ X $ is a continuous random variable.

The examples below help illustrate this concept.

Example 2.3.1

An electronic valve is installed in a circuit, either $ X $ the length of time the valve operates.

In this case, $ X $ is a continuous random variable that can take values in positive real numbers, that is, the subset of real numbers $ [0,\infty) $.

Example 2.3.2

An oil tanker suffers an accident in which its hull is ruptured and oil is spilled. Be $ Y $ the random variable that determines the area hit by the ship’s oil.

In this case, we have that the variable $ Y $ is a continuous variable which also takes on values in the subset of real numbers $ [0,\infty) $.

Definition 2.3.2

We say that $ X $ is an absolutely continuous random variable if there is a function $ f_X:\mathbb{R}\rightarrow[0,+\infty) $ called probability density function and abbreviated as f.d.p, which satisfies the following properties:

  1. $ f(x)\geq 0 $, for all $ x \in\mathbb{R}_x $

  2. $ \displaystyle\int_{-\infty}^\infty f(x)dx=1 $

Furthermore, we define for any $ c, d \in \mathbb{R}_x $, with $ c \ < \ d $ that

$$\mathbb{P}(c \ < \ X \ < \ d)=\int_c^d f(x)dx.$$

It is worth noting that, the way probability was defined, the probability of an isolated point is always zero, that is, $ \mathbb{P}(X=c)=\displaystyle \int_{c}^{c} f(x)dx=0 $. In this way, we can conclude that, when $ X $ is a continuous random variable, the probability of a specific value occurring is zero.

Note

Se $ X $ is an absolutely continuous random variable, then

$$\frac{\partial }{\partial x}F_X(x)=f_X(x)$$

Example 2.3.3

Suppose we choose a number at random from the range $ [0,1] $. What is the probability of choosing the number $ 0,54 $?

It is zero precisely because of what was said above, every isolated point in a continuous variable has zero probability.

Example 2.3.4

Be $ A=\lbrace (x: -1 \ < \ x \ < \ 5)\rbrace $ and be $ X $ a random variable such that its probability density function is $ f(x) $ defined below, with $ c $ being a constant. What should be the value of the constant $ c $?

$$f(x) = \begin{cases} c, \ \hbox{se} \ x \ \in \ A; \cr 0, \ \hbox{caso contrário}.\end{cases}$$

How $ f $ is a probability density function it must satisfy the condition that

$$\int_{- \infty}^{\infty}f(x)dx=1 \Rightarrow \int_{-1}^{5}c dx = c \cdot (5-(-1))=6c=1 \Rightarrow c=\frac{1}{6}.$$

Example 2.3.5

Let us consider a random variable $ X $ with density below:

$$f(x) = \begin{cases} c(x^2+x), \ \hbox{se} \ 0\leq x \leq 1; \cr 0, \ \hbox{caso contrário}.\end{cases}$$

Determine the value of c.

To do this, we simply integrate the function f(x) throughout its domain, remembering that this integral must have a value of 1. Thus

$$\int_{-\infty}^{\infty} f(x)=1 \Rightarrow \int_{0}^{1}c[x^2 + x]=c \int_{0}^{1}x^2+x=c\left[\frac{x^3}{3}+\frac{x^2}{2} \right]^{1}_{0}=c\left(\frac{1}{3}+\frac{1}{2} \right)=\frac{5c}{6}=1 \Rightarrow c=\frac{6}{5}.$$

Example 2.3.6

Be $ X $ a continuous variable with f.d.p.

$$f(x) = \begin{cases} 2x, \ 0 \ < \ x \ < \ 1; \cr 0, \ \hbox{para quaisquer outros valores}.\cr \end{cases}$$

Therefore, the cumulative distribution function is given by

$$F(x) = \begin{cases} 0, \ \hbox{se} \ x \leq 0;\cr \int_{0}^{x}2s~ds = x^2, \ \hbox{se} \ 0 \ < \ x \ \leq 1;\cr 1, \ \hbox{se} \ x \ > \ 1. \end{cases}$$

Example 2.3.7

Suppose that the Net Profit ($ LL $) of a company for the future year is between $ a = 12.000 $ and $ b = 20.000 $. Furthermore, we have enough information to assume that the $ LL $ is concentrated around the average value of the range, that is, around $ (a+b)/2 = 16.000. $ With this, we can model the distribution of $ LL $ via a triangular shape, as in the following figure.

Figura 8.2.3

Figure 8.2.3: Distribution of $LL$ in triangular shape

Note that the probability distribution function is constructed so that the total area under the curve is equal to 1, also note that it is concentrated around the midpoint of the interval (16,000) and is distributed linearly from the midpoint to the extremes of the range. In general, the probability distribution function of a triangular distribution is given by:

$$f(x)=\begin{cases} \frac{x-a}{\frac{b-a}{2}^2}; \ \hbox{para todo} \ a \leq x \leq\frac{a+b}{2}\cr \frac{b-x}{\frac{b-a}{2}^2}; \ \hbox{para todo} \ \frac{a+b}{2}\leq x\leq b\cr 0; \ \hbox{para os demais pontos} \ \end{cases}$$

Example 2.3.8

Be $ X:\Omega\rightarrow \mathbb{R} $ an absolutely continuous random variable with probability distribution function (f.d.p.) given by

$$f_X(x)=\frac{1}{\sqrt{2~\pi}}~e^{\frac{-x^2}{2}}, \ \infty \ < \ x \ < \ \infty.$$

In this case, we say that $ X $ has a Normal distribution.

Resolution

So that $ f_X $ is an f.d.p, we just need to show that

$$\int^{\infty}_{-\infty}f_X(s)ds=1.$$

So we take

$$\left[\int^{\infty}_{-\infty} f_X(s)ds \right]^2 = \int^{\infty}_{-\infty} f_X(x)dx \int^{\infty}_{-\infty} f_X(s)ds \overset{\text{Teo Fubinni}}{=} \frac{2}{2~\pi} \int^{\infty}_{0} \int^{\infty}_{0} e^{\frac{x^2+y^2}{2}}dx~dy$$

and, from the change of variables $ x = r\cos\theta $ and $ y = r\text{sen}\theta $, we have to

$$\left[\int^{\infty}_{-\infty}f_X(s)ds\right]^2=\frac{1}{\pi}\int^{\infty}_{0}\int^{\pi}_{0}e^{-\frac{r^2}{2}}r~d\theta~dr=\frac{1}{\pi}\int^{\infty}_{0}\left[e^{-\frac{r^2}{2}}r~\theta~\right]^{\pi}_{0} dr\overset{(**)}{=}\int^{\infty}_{0}e^{-u}du=1.$$

Example 2.3.9

Let X be a random variable with density

$$f(x)=\begin{cases} \displaystyle cx^2, \text { se } -1\leq x\leq 1\cr \cr 0, \text{ caso contrário } \end{cases}$$

(a) Determine the value of the constant c.

$$1=\int_{-\infty}^\infty f(x)dx=\int_{-1}^1 cx^2dx=c\frac{x^3}{3}\bigg|_{-1}^1= c\frac{2}{3}\Rightarrow c=\frac{3}{2}$$

(b) Find the value $ \alpha $ such that $ F_X(\alpha)=\frac{1}{4} $.($ \alpha $ is the first quartile of the distribution of X.)

$$\frac{1}{4}=F_X(\alpha)=\int_{-\infty}^\alpha f(x)dx=\int_{-1}^\alpha \frac{3}{2}x^2 dx=\frac{x^3}{2}\bigg|_{-1}^\alpha=\frac{\alpha^3}{2}+\frac{1}{2}\Rightarrow \frac{\alpha^3}{2}=-\frac{1}{4}\Rightarrow \alpha=-\frac{1}{\sqrt[3]{2}}.$$

Example 2.3.10

A random variable X has a distribution function

$$F(x)=\begin{cases} \displaystyle 1, \text { se } x> 1 \cr x^3, \text{ se } 0\leq x\leq 1\cr 0\text{ se } x< 0. \end{cases}$$

What is the density of X?

$$f(x)=\frac{dF(x)}{dx}$$

when F is differentiable in $ x $ then

$$f(x)=\begin{cases} \displaystyle 3x^2, \text { se } 0\leq x\leq 1\cr \cr 0, \text{ caso contrário } \end{cases}$$

Example 2.3.11

Let X be a random variable with density

$$f(x)=\begin{cases} \displaystyle \frac{1}{(1+x)^2}, \text { se } x> 1\cr \cr 0, \text{ caso contrário } \end{cases}$$

Be $ Y=\max (X,c) $, in which $ c $ is a constant $ c > 0 $.

(a) Find the distribution function of Y.

Let’s divide it into three steps first

(a1) $ y< c $ this implies that $ \mathbb{P}(Y\leq y)=0 $

(a2) $ y=c $ which implies that

$$\mathbb{P}(Y\leq y)=\mathbb{P}(X\leq c)=\int_0^c \frac{1}{(1+x)^2}dx=-\frac{1}{1+x}\bigg|_0^c=1-\frac{1}{1+c}=\frac{c}{1+c}$$

(a3) $ y> 0 $ which implies that

$$\mathbb{P}(Y\leq y)=\mathbb{P}(Y< y)=\int_0^y \frac{1}{(1+x)^2}dx=-\frac{1}{1+x}\bigg|_0^y=\frac{y}{1+y}$$

So,

$$F_Y(y)=\begin{cases} \displaystyle 0, \text { se } y> c\cr \cr \frac{y}{(1+y)}, y\geq c \end{cases}$$

(b) Decompose $ F_Y $ in its parts discrete, absolutely continuous and singular.

(b1) Discrete part $ F_{Y_d} $, we have to

$$\mathbb{P}(Y_d\leq y)=F_Y(y)-F_Y(y^-)=\begin{cases} \displaystyle 0, \text { se } y\neq c\cr \cr \frac{c}{(1+c)}, y=c \end{cases}$$

(b2) $ F_{Y_{ab}} $ such that

$$F_{Y_{ab}}=\int_{-\infty}^y f_Y(x) dx,$$

$$f_Y(y)=\frac{dF_y}{dy}=\begin{cases} \displaystyle 0, \text { se } y\leq c\cr \cr \frac{1}{(1+y)^2}, y> c \end{cases}$$

then

$$F_{Y_{ab}}(y)=\begin{cases} \displaystyle 0, \text { se } y\leq c\cr \cr \displaystyle \displaystyle\int_c^y \frac{1}{(1+y)^2}dy=\frac{y}{1+y}-\frac{c}{1+c}, y\geq c \end{cases}$$

(b3) Now how $ F_Y(y)=F_{Y_d}(y)+F_{Y_{ab}}(y)+F_{Y_s}(y), \forall y \in \mathbb{R} $, we have

$$F_{Y_s}(y)=F_Y(y)-F_{Y_d}(y)-F_{Y_{ab}}(y)=\begin{cases} \displaystyle 0, \text { se } y< c\cr \cr \frac{c}{1+c}-\frac{c}{1+c}=0, y= c \cr \frac{y}{1+y}-\frac{c}{1+c}-\left(\frac{y}{1+y}-\frac{c}{1+c}\right)=0, y> c \end{cases}$$

then $ F_{Y_s}(y)=0, \forall y\in \mathbb{R} $.

Example 2.3.12

Determine the density of $ Y=(b-a)X+a $, in which $ X\sim U[0,1] $. It is the density of the uniform distribution in $ [a,b] $, and we write $ Y\sim U[a,b] $. Graph the Y distribution function.

Now

$$X\sim U[0,1]\Rightarrow \mathbb{P}(X\leq x)=\begin{cases} \displaystyle 0, \text { se } x> 0 \cr \cr x, \text{ se } 0\leq x< 1 \cr 1, x \geq 1.\end{cases}$$

Now $ Y=(b-a)X+a $, then

$$\mathbb{P}(Y\leq y)=\mathbb{P}((b-a)X+a\leq y)=\mathbb{P}\left(X\leq \frac{y-a}{(b-a)}\right)=\begin{cases} \displaystyle 0, \text { se } y< a \cr \frac{y-a}{b-a}, \text{ se } a\leq y< b \cr 1, y \geq b.\end{cases}$$

and then

$$f_Y(y)=\begin{cases} \displaystyle 0, \text { se } y> a \cr \cr \frac{1}{b-a}, \text{ se } a\leq y< b \cr 0, y \geq b.\end{cases}$$

Example 2.3.13

If X has density $ f(x)= \frac{e^{-|x|}}{2} $, $ -\infty< x< \infty $, what is the distribution of $ Y=|X| $?

$$\mathbb{P}(Y\leq y)=\mathbb{P}(|X|< y)=\mathbb{P}(-y\leq X \leq y)=\int_{-y}^y \frac{e^{-|x|}}{2}dx=\int_0^y e^{-x}dx=-e^{-x}\bigg|_0^y=1-e^{-y}$$

So we have to $ Y\sim \hbox{Exp}(1) $.

8.2.4 Random Vectors

In this section, we will introduce the concept of a random vector and study its main characteristics. For ease of notation, we will only consider two-dimensional vectors. Thus, we say that the ordered pair $ (X,Y) $ is a random vector if its components $ X $ and $ Y $ are random variables.

Example 2.4.1

Consider the experiment of selecting a point at random in the unit square.

$$\mathcal{R}=(0 \ < \ x \ < \ 1 \ \text{e} \ 0 \ < \ y \ < \ 1).$$

We denote by $ X $ and $ Y $ the first and second coordinates of the selected point, respectively. With this, we have a vector $ (X,Y) $ that corresponds to the selected point.

In this context, we define for two random variables $ X $ and $ Y $ the joint cumulative distribution function as follows:

Definition 2.4.1

a) A vector $ Z=(X,Y) $ whose components $ X $ and $ Y $ are random variables is called a random vector.

b) The cumulative distribution function of $ Z $ is defined as a function $ F_Z=F_{X,Y}: \mathbb{R}^2 \rightarrow [0,1] $ such that

$$F_{X,Y}(x,y) = \mathbb{P}\left((X \leq x) \cap (Y \leq y)\right) = \mathbb{P}\left(X \leq x , Y \leq y\right); \ \forall(x,y) \ \in \mathbb{R}^2.$$

The accumulated distribution of $ X $ can be obtained from the accumulated distribution of $ Z $ as follows:

$$F_{X}(a) = \mathbb{P}(X \leq a)=\mathbb{P}(X \leq a, Y < \infty) = \mathbb{P}(\lim_{b\to \infty}(X\leq a,Y \leq b))=\lim_{b\to \infty}\mathbb{P}(X \leq a, Y \leq b)$$

from which we conclude that

$$F_X(a) = \lim_{b \to \infty}F(a,b).$$

Similarly, we can obtain the marginal distribution of $ Y $.

Properties of the cumulative distribution function

P1. The cumulative distribution function $ F_Z $ is non-decreasing in each variable, that is, if $ x_1 \leq x_2 $, then

$$F_Z(x_1,y) \leq F_Z(x_2,y) \ \forall \ y \in \mathbb{R}$$

P2. $ F_Z $ is continuous on the right and has a limit on the left in each variable, that is, if $ x_n \downarrow x $ then

$$F_X(x_n,y) \downarrow F_X(x,y) \ \forall \ y \in \mathbb{R}.$$

P3. We have to

$$\lim_{x \rightarrow -\infty}F_Z(x,y)=0.$$

Given a function $ g:\mathbb{R}^2\rightarrow \mathbb{R} $ any function, the difference operator is defined by

$$\Delta_{a_1,b_1} g(x,y)=g(b_1,y)-g(a_1,y) \quad \text{e} \quad \Delta_{a_2,b_2} g(x,y)=g(x,b_2)-g(x,a_2),$$

in which $ -\infty < a_i< b_i< \infty $ for $ i=1,2 $. So, we have to

$$\Delta_{a_1,b_1}\Delta_{a_2,b_2}g(x,y)=\Delta_{a_1,b_1}\left[g(x,b_2)-g(x,a_1)\right]=g(b_1,b_2)-g(a_1,b_2)-g(b_2,a_1)+g(a_1,a_2).$$

With this, we have the following property.

P4. We have to $ \Delta_{a_1,b_1}\Delta_{a_2,b_2}F(x,y) \geq 1. $

This fourth property is of fundamental importance, because without it we can find a function that satisfies P1, P2 and P3 but has a negative probability as we can see in the example below. This property applies to each component of the vector.

Example 2.4.2

Be $ \mathbb{R}^2\rightarrow \mathbb{R} $ that satisfies P1, P2, P3 define as follows

$$F(x,y)=\begin{cases} 1, \quad x\geq 0, \quad y\geq 0 \text{ e } x+y\geq 1\cr0, \quad c.c \end{cases}$$

Figura8.2.4

Figure 8.2.4: Distribution Function

The region in red represents $ F(x,y)=0 $. Note that F satisfies the three properties, but it is not a distribution function, as

$$0\leq \mathbb{P}[0< X\leq 1,0< Y \leq 1]=\mathbb{P}[X\leq 1, 0< Y\leq 1]-\mathbb{P}[X\leq 0,0< Y\leq 1]=$$

$$\mathbb{P}[X\leq 1, Y\leq 1]-\mathbb{P}[X\leq 1, Y\leq 0]-\mathbb{P}(X\leq 0,Y\leq 1)+\mathbb{P}[X\leq 0,Y\leq 0]=$$

$$F(1,1)-F(1,0)-F(0,1)+F(0,0)=1-1-1+0=-1$$

which is absurd.

Theorem 2.4.1

Given a function $ F $ satisfying properties P1, P2, P3 and P4, then there exists a random vector $ (X_1,X_2) $ in $ (\mathbb{R}^2,\mathfrak{B}(\mathbb{R}^2),\mathbb{P}) $ such that

$$\mathbb{P}(X_1\leq x_1, X_2\leq x_2)=F(x_1,x_2)$$

that is, P1, P2, P3 and P4 are sufficient to characterize a distribution function

Proof: This theorem can be seen in its general form in probability distribution in $ \mathbb{R}^n $.

We say that a random vector $ Z=(X,Y) $ is discrete if the random variables $ X $ and $ Y $ are discreet.

Definition 2.4.2

Se $ Z=(X,Y) $ is a discrete random vector, we define the joint probability function of X and Y by

$$p(x,y)=\mathbb{P}(X=x,Y=y).$$

The marginal probability function of $ X $ can be obtained from $ p(x,y) $ by

$$p_X(x)=\mathbb{P}(X=x)=\sum_{y} p(x,y).$$

And, similarly, the marginal probability function of $ Y $ can be obtained from $ p(x,y) $ by

$$p_Y(y)=\mathbb{P}(Y=y)=\sum_{x} p(x,y).$$

Example 2.4.3

Consider an urn containing $ 3 $ red balls, $ 4 $ white and $ 5 $ blue ones from where they are selected $ 3 $ balls at random and without replacement. Se $ X $ and $ Y $ denote, respectively, the number of red and white balls chosen, then the joint probability function of $ X $ and $ Y $, $ p(i,j) = \mathbb{P}(X=i,Y=j) $, is given by

$$p(0,0)=\left(\begin{array}{c}5\cr3\end{array}\right)/\left(\begin{array}{c}12\cr3\end{array}\right)=\frac{10}{220}$$

$$p(0,1)=\left(\begin{array}{c}4\cr1\end{array}\right)\left(\begin{array}{c}5\cr2\end{array}\right)/\left(\begin{array}{c}12\cr3\end{array}\right)=\frac{40}{220}$$

$$p(0,2)=\left(\begin{array}{c}4\cr2\end{array}\right)\left(\begin{array}{c}5\cr1\end{array}\right)/\left(\begin{array}{c}12\cr3\end{array}\right)=\frac{30}{220}$$

$$p(0,3)=\left(\begin{array}{c}4\cr3\end{array}\right)/\left(\begin{array}{c}12\cr3\end{array}\right)=\frac{4}{220}$$

$$p(1,0)=\left(\begin{array}{c}3\cr1\end{array}\right)\left(\begin{array}{c}5\cr2\end{array}\right)/\left(\begin{array}{c}12\cr3\end{array}\right)=\frac{30}{220}$$

$$p(1,1)=\left(\begin{array}{c}3\cr1\end{array}\right)\left(\begin{array}{c}4\cr1\end{array}\right)\left(\begin{array}{c}5\cr1\end{array}\right)/\left(\begin{array}{c}12\cr3\end{array}\right)=\frac{60}{220}$$

$$p(1,2)=\left(\begin{array}{c}3\cr1\end{array}\right)\left(\begin{array}{c}4\cr2\end{array}\right)/\left(\begin{array}{c}12\cr3\end{array}\right)=\frac{18}{220}$$

$$p(2,0)=\left(\begin{array}{c}3\cr2\end{array}\right)\left(\begin{array}{c}5\cr1\end{array}\right)/\left(\begin{array}{c}12\cr3\end{array}\right)=\frac{15}{220}$$

$$p(2,1)=\left(\begin{array}{c}3\cr2\end{array}\right)\left(\begin{array}{c}4\cr1\end{array}\right)/\left(\begin{array}{c}12\cr3\end{array}\right)=\frac{12}{220}$$

$$p(3,0)=\left(\begin{array}{c}3\cr3\end{array}\right)/\left(\begin{array}{c}12\cr3\end{array}\right)=\frac{1}{220}$$

These probabilities can be expressed in table form, as shown below. Note that the probability function of $ X $ is obtained by calculating the sums of the lines, while the probability function of $ Y $ is obtained by calculating the sums of the columns. As the individual probability functions of $ X $ and $ Y $ appear in the margin of the table, they are called marginal probability functions of $ X $ and $ Y $ respectively.

$i$ \ $j$ 0 1 2 3 $ \mathbb{P}(X=i) $
0 $ \frac{10}{220} $ $ \frac{40}{220} $ $ \frac{30}{220} $ $ \frac{4}{220} $ $ \frac{84}{220} $
1 $ \frac{30}{220} $ $ \frac{60}{220} $ $ \frac{18}{220} $ 0 $ \frac{108}{220} $
2 $ \frac{15}{220} $ $ \frac{12}{220} $ 0 0 $ \frac{27}{220} $
3 $ \frac{1}{220} $ 0 0 0 $ \frac{1}{220} $
$ \mathbb{P}(Y=j) $ $ \frac{56}{220} $ $ \frac{112}{220} $ $ \frac{48}{220} $ $ \frac{4}{220} $

Table 8.2.3: Calculated marginal functions

Definition 2.4.3

We say that $ X $ and $ Y $ are jointly continuous if there is a function $ f(x,y) $ defined for all real $ x $ and $ y $, such that

$$\mathbb{P}\left((X,Y)\in (a_1 , b_1) \times (a_2 , b_2)\right)=\int_{a_2}^{b_2}\int_{a_1}^{b_1} f(x,y)dxdy.$$

for everyone $ -\infty \ < \ a_i \ < \ b_i \ < \ \infty $ with $ i=1,2 $. The function $ f(x,y) $ is called the joint probability density function of $ X $ and $ Y $.

Se $ X $ and $ Y $ are jointly continuous, then they are individually continuous and their probability density functions can be obtained as follows

$$\mathbb{P}\left(X\in A\right)=\mathbb{P}\left(X\in A,Y\in(-\infty,\infty)\right)=\int_A\int_{-\infty}^{\infty} f(x,y) dydx=\int_A f_X(x)dx$$

in which $ f_X(x)=\displaystyle \int_{-\infty}^{\infty} f(x,y)dy $ is the probability density function of $ X $. Similarly, the probability density function of $ Y $ is given by

$$f_Y(y)=\int_{-\infty}^{\infty} f(x,y)dx$$

Example 2.4.3

The joint density function of $ X $ and $ Y $ is given by

$$f(x,y)=\begin{cases} 2e^{-x}e^{-2y} \ \hbox{se} \ 0 \ < \ x \ < \ \infty, \ 0 \ < \ y \ < \ \infty\cr 0 \ \hbox{caso contrário}\end{cases}$$

Calculate

(a) $ \mathbb{P}\left(X \ > \ 1, Y \ < \ 1\right) $, (b) $ \mathbb{P}\left(X \ < \ Y\right) $ and (c) $ \mathbb{P}\left(X \ < \ a\right) $.

(a) We have to

$$\mathbb{P}\left(X \ > \ 1, Y \ < \ 1\right)=\int_0^1\int_1^{\infty} 2e^{-x}e^{-2y}dxdy = e^{-1}(1-e^{-2}).$$

(b) We have to

$$\mathbb{P}\left(X \ < \ Y\right)=\int\int_{\lbrace (x,y):x \ < \ y\rbrace}2e^{-x}e^{-2y}dxdy=\int_{0}^{\infty}\int_0^y 2e^{-x}e^{-2y}dxdy=\int_0^\infty 2e^{-3y}(e^y-1)dy=\frac{1}{3}.$$

(c) We have to

$$\mathbb{P}\left(X \ < \ a\right)=\int_0^a\int_0^{\infty}2e^{-2y}e^{-x}dydx=1-e^{-a}.$$

Example 2.4.4

Be $ A \lbrace (x,y)\in \mathbb{R}^2 | 1\leq x \leq 3; 1\leq y \leq 5 \rbrace $. Let us consider the random vector $ (X,Y) $ such that its probability density function is defined below.

$$f(x) = \begin{cases} c, \ \hbox{se} \ x \ \in \ A; \cr 0, \ \hbox{caso contrário}.\end{cases}$$

Determine the value of $ c $ and find the marginal distributions of $ X $ and $ Y $.

As the probability density function integrated throughout its domain must have a value equal to 1, we have

$$\int^{-\infty}_{\infty} \int^{-\infty}_{\infty}f(x,y)dx dy = \int^{3}_{1} \int^{5}_{1}c dx dy = c \int^{3}_{1} \int^{5}_{1}1 dx dy =c \int^{3}_{1}4 dy=8c=1 \Rightarrow c=\frac{1}{8}.$$

Now to find the marginal pdf of $ X $, we simply integrate the joint density over its entire domain $ Y $, that is,

$$f_X(x)= \displaystyle \int_{-\infty}^{\infty}f(x,y)dy = \int_{1}^{5}\frac{1}{8} = \frac{4}{8}=\frac{1}{2}.$$

Thus the marginal distribution of $ X $ is

$$f(x) = \begin{cases} \frac{1}{2}, \ \hbox{se} \ 1\leq x \leq 3; \cr 0, \ \hbox{caso contrário}.\end{cases}$$

Let us now calculate the marginal of $Y$

$$f_Y(y)= \int_{-\infty}^{\infty}f(x,y)dx = \int_{1}^{3}\frac{1}{8} = \frac{2}{8}=\frac{1}{4}.$$

Therefore, the marginal of Y is given by

$$f(y) = \begin{cases} \frac{1}{4}, \ \hbox{se} \ 1\leq y \leq 5; \cr 0, \ \hbox{caso contrário}.\end{cases}$$

Example 2.4.5

Suppose an urn contains $ 6 $ numbered balls $ 1,2,3,4,5 $ and $ 6 $. Two balls are drawn at random and without replacement. Be $ X $ the number of the first ball and $ Y $ that of the second ball. What is the joint distribution of $ X $ and $ Y $?

Note that, as the balls are removed without replacement, there is no possibility of removing the same balls, that is, with the same number in both withdrawals, therefore $ \mathbb{P}(X=i,Y=i)=0 $. Furthermore, as the balls are drawn at random, there is no preference for any of the balls. So $ \mathbb{P}(X=i,Y=j) $ for $ i\neq j $ is given by

$$\mathbb{P}(X=i,Y=j)=\mathbb{P}(Y = j|X=i)\mathbb{P}(X=i) = \frac{1}{5}\cdot \frac{1}{6}=\frac{1}{30}.$$

Example 2.4.6

(a) Show that the function

$$F(x,y)=\begin{cases} 1-e^{-x-y}, \text{ se } x\geq 0 \quad e \quad y\geq 0 \cr 0, \text{ caso contrário } \end{cases}$$

is not a distribution function of a random vector.

Be $ I_X=(0,1] $ and $ I_Y=(0,1] $ then

$$F(x,y)=F(1,1)-F(1,0)-F(0,1)+F(0,0)=1-e^{-2}-1+e^{-1}+0=2e^{-1}-e^{-2}-1=-0,3995 $$

Therefore $ F $ It is not a distribution function because it is not valid.

$ F(x,y)\geq 0 $, all $ I_X $ and $ I_Y $ range of real numbers.

(b) Show that the following function is a distribution function of some $ (X,Y) $

$$F(x,y)= \begin{cases} (1-e^{-x})(1-e^{-y}), \text{ se } y\geq 0 \cr \cr 0, \text{ caso contrário } \end{cases}$$

Screenshot_61

Be $ \bar{X}\sim \hbox{Exp}(1) $ and $ \bar{Y}\sim \hbox{Exp}(1) $ and $ \bar{X} $ independent $ \bar{Y} $ then

Screenshot_62

So $ F_{\bar{X},\bar{Y}}(x,y)=F(x,y) $, $ \forall x,\forall y \in \mathbb{R} $. So $ (X,Y) $ is a function of some particular $ (X,Y) $ because it is a function of each $ (\bar{x},\bar{y}) $

Example 2.4.7

An urn contains three balls numbered 1,2 and 3. Two balls are drawn successively from the urn, at random and without replacement. Be $ X $ the number of the first ball drawn and Y the number of the second.

(a) Describe the joint distribution of X and Y.

All possible outcomes of the experiment are equiprobable, so the probability function is given by

$$\mathbb{P}(X=1,Y=1)=\mathbb{P}(1,1)=0$$

$$\mathbb{P}(1,2)=\frac{1}{6}$$

$$\mathbb{P}(1,3)=\frac{1}{6}$$

$$\mathbb{P}(2,1)=\frac{1}{6}$$

$$\mathbb{P}(2,2)=0$$

$$\mathbb{P}(2,3)=\frac{1}{6}$$

$$\mathbb{P}(3,1)=\frac{1}{6}$$

$$\mathbb{P}(3,2)=\frac{1}{6}$$

$$\mathbb{P}(3,3)=0$$

(b) Calculate $ \mathbb{P}(X< Y). $

Based on the above probabilities, we have

$$\mathbb{P}(X< Y)=\mathbb{P}(1,2)+\mathbb{P}(1,3)+\mathbb{P}(2,3)=3\frac{1}{6}=\frac{1}{2}=\mathbb{P}(X> Y).$$

Example 2.4.8

We say that the joint distribution of $ X_1,\dots, X_n $ is permutation invariant if every permutation of $ X_i $ has the same distribution, i.e., if

$$X_{\pi_1},X_{\pi_2},\dots, X_{\pi_n}\sim (X_1,\dots, X_n)$$

for every permutation $ (\pi_1,\dots, \pi_n) $ of the vector $ (1,\dots,n) $.

(a) Show that if $ (X,Y)\sim (Y,X) $ and X and Y have joint density $ f(x,y) $, then

$$\mathbb{P}(X< Y)=\mathbb{P}(X> Y)=1/2$$

with $ \mathbb{P}(X=Y)=0 $.

We have to

$$\mathbb{P}(X< Y)=\int_{-\infty}^\infty \int_x^\infty f_{XY}(x,y)dxdy$$

changing the variables $ x^\prime=y $ and $ y^\prime=x $ and

$$\int_{-\infty}^\infty \int_{y^\prime}^\infty f_{X,Y}(y^\prime, x^\prime)dx^\prime dy^\prime=\int_{-\infty}^\infty \int_{y^\prime}^\infty f(y^\prime, x^\prime)dxdy=\int_{-\infty}^\infty \int_{y^\prime}^\infty f(x^\prime,y^\prime)dxdy=\mathbb{P}(Y< X)$$

Now $ \mathbb{P}(X=Y)=0 $, since F is absolutely continuous and $ \lambda^2(B)=0 $ in which

$$B=(\lbrace (x,y): x=y\rbrace)$$

then

$$\mathbb{P}(\Omega)=\mathbb{P}\left([X> Y]\bigcup [Y> X]\bigcup [X=Y]\right)$$

implies that

$$1=\mathbb{P}(X> Y)+\mathbb{P}(Y> X)+\mathbb{P}(X=Y)=2\mathbb{P}(X> Y)$$

then, we obtain that

$$\mathbb{P}(X> Y)=\mathbb{P}(X< Y)=\frac{1}{2}$$

(b) Generalize item (a), proving that if the joint distribution of $ X_1,\dots, X_n $ is invariant to permutations and $ X_1, \dots, X_n $ have joint density $ f(x_1,\dots,x_n) $, then

$$\mathbb{P}(X_1< X_2< \dots < X_n)=\mathbb{P}(X_{\pi_1}< X_{\pi_2}< \dots < X_{\pi_n})=\frac{1}{n!}$$

and $ \mathbb{P}(X_i=X_j\text{ para algum par } (i,j)\text{ tal que }i\neq j)=0 $.

$$\mathbb{P}(X_1< X_2< \dots < X_n)=\int_{-\infty}^{\infty}\int_{-\infty}^{x_n}\int_{-\infty}^{x_{n-1}}\dots\int_{-\infty}^{x_2}f(x_1,x_2,\dots, x_n)dx_1dx_2\dots dx_n$$

Making a change of variables $ X_1=X_{\pi_1} $$ \dots $$ X_n=X_{\pi_n} $ we have to

$$\int_{-\infty}^{\infty}\int_{-\infty}^{x_n}\int_{-\infty}^{x_{n-1}}\dots\int_{-\infty}^{x_2}f(x_1,x_2,\dots, x_n)dx_1dx_2\dots dx_n$$

$$=\int_{-\infty}^{\infty}\int_{-\infty}^{x_{\pi_n}}\int_{-\infty}^{x_{\pi_{n-1}}}\dots\int_{-\infty}^{\pi_2}f(x_{\pi_1},x_{\pi_2},\dots, x_{\pi_n})dx_{\pi_1}dx_{\pi_2}\dots dx_{\pi_n}$$

$$=\int_{-\infty}^{\infty}\int_{-\infty}^{x_{\pi_n}}\int_{-\infty}^{x_{\pi_{n-1}}}\dots\int_{-\infty}^{\pi_2}f(x_1,x_2,\dots, x_n)dx_1dx_2\dots dx_n$$

Now being $ B=\lbrace (X_i=X_j : \text{ para algum } (i,j) \text{ tal que } i\neq j)\rbrace\subset\mathbb{R}^n $ and $ \lambda^n(B)=0 $. Just like

$ F_{X_1,X_2, \dots X_n} $ is absolutely continuous, which implies that $ \mathbb{P}(B)=0 $. Now

$$\Omega=\left(\bigcup_{\pi_1,\pi_2,\dots, \pi_n} [X_{\pi_1}< X_{\pi_2}< \dots < X_{\pi_n}]\right)\bigcup B$$

with $ {\pi_1,\pi_2,\dots, \pi_n} $ being permutations of $ (X_1,X_2,\dots, X_n) $ then

$$1=n!\mathbb{P}(X_1< X_2< \dots < X_n)$$

which implies that

$$\mathbb{P}(X_1< X_2< \dots < X_n)=\frac{1}{n!}.$$

Example 2.4.9

We say that the joint distribution of $ X_1,\dots, X_n $ is permutation invariant if every permutation of $ X_i $ has the same distribution, i.e., if

$$X_{\pi_1},X_{\pi_2},\dots, X_{\pi_n}\sim (X_1,\dots, X_n)$$

for every permutation $ (\pi_1,\dots, \pi_n) $ from the vector $ (1,\dots,n) $.

(a) Show that if $ (X,Y)\sim (Y,X) $ and X and Y have joint density $ f(x,y) $, then

$$\mathbb{P}(X< Y)=\mathbb{P}(X> Y)=1/2$$

with $ \mathbb{P}(X=Y)=0 $.

We have to

$$\mathbb{P}(X< Y)=\int_{-\infty}^\infty \int_x^\infty f_{XY}(x,y)dxdy$$

changing the variables $ x^\prime=y $ and $ y^\prime=x $ and

$$\int_{-\infty}^\infty \int_{y^\prime}^\infty f_{X,Y}(y^\prime, x^\prime)dx^\prime dy^\prime=\int_{-\infty}^\infty \int_{y^\prime}^\infty f(y^\prime, x^\prime)dxdy=\int_{-\infty}^\infty \int_{y^\prime}^\infty f(x^\prime,y^\prime)dxdy=\mathbb{P}(Y< X)$$

Now $ \mathbb{P}(X=Y)=0 $, since F is absolutely continuous and $ \lambda^2(B)=0 $ in which

$$B=(\lbrace (x,y): x=y\rbrace) $$

then

$$\mathbb{P}(\Omega)=\mathbb{P}\left([X> Y]\bigcup [Y> X]\bigcup [X=Y]\right)$$

implies that

$$1=\mathbb{P}(X> Y)+\mathbb{P}(Y> X)+\mathbb{P}(X=Y)=2\mathbb{P}(X> Y)$$

then, we obtain that

$$\mathbb{P}(X> Y)=\mathbb{P}(X< Y)=\frac{1}{2}$$

(b) Generalize item (a), proving that if the joint distribution of $ X_1,\dots, X_n $ is invariant to permutations and $ X_1, \dots, X_n $ have joint density $ f(x_1,\dots,x_n) $, then

$$\mathbb{P}(X_1< X_2< \dots < X_n)=\mathbb{P}(X_{\pi_1}< X_{\pi_2}< \dots < X_{\pi_n})=\frac{1}{n!}$$

and $ \mathbb{P}(X_i=X_j\text{ para algum par } (i,j)\text{ tal que }i\neq j)=0 $.

$$\mathbb{P}(X_1< X_2< \dots < X_n)=\int_{-\infty}^{\infty}\int_{-\infty}^{x_n}\int_{-\infty}^{x_{n-1}}\dots\int_{-\infty}^{x_2}f(x_1,x_2,\dots, x_n)dx_1dx_2\dots dx_n$$

Making a change of variables $ X_1=X_{\pi_1} $$ \dots $$ X_n=X_{\pi_n} $ we have to

$$\int_{-\infty}^{\infty}\int_{-\infty}^{x_n}\int_{-\infty}^{x_{n-1}}\dots\int_{-\infty}^{x_2}f(x_1,x_2,\dots, x_n)dx_1dx_2\dots dx_n$$

$$=\int_{-\infty}^{\infty}\int_{-\infty}^{x_{\pi_n}}\int_{-\infty}^{x_{\pi_{n-1}}}\dots\int_{-\infty}^{\pi_2}f(x_{\pi_1},x_{\pi_2},\dots, x_{\pi_n})dx_{\pi_1}dx_{\pi_2}\dots dx_{\pi_n}$$

$$=\int_{-\infty}^{\infty}\int_{-\infty}^{x_{\pi_n}}\int_{-\infty}^{x_{\pi_{n-1}}}\dots\int_{-\infty}^{\pi_2}f(x_1,x_2,\dots, x_n)dx_1dx_2\dots dx_n$$

Now being $ B=\lbrace (X_i=X_j : \text{ para algum } (i,j) \text{ tal que } i\neq j)\rbrace\subset\mathbb{R}^n $ and $ \lambda^n(B)=0 $. Just like $ F_{X_1,X_2, \dots X_n} $ is absolutely continuous, which implies that $ \mathbb{P}(B)=0 $. Now

$$\Omega=\left(\bigcup_{\pi_1,\pi_2,\dots, \pi_n} [X_{\pi_1}< X_{\pi_2}< \dots < X_{\pi_n}]\right)\bigcup B$$

with $ {\pi_1,\pi_2,\dots, \pi_n} $ being permutations of $ (X_1,X_2,\dots, X_n) $ then

$$1=n!\mathbb{P}(X_1< X_2< \dots < X_n)$$

which implies that

$$\mathbb{P}(X_1< X_2< \dots < X_n)=\frac{1}{n!}.$$

Example 2.4.10

A point on the unit circle is selected at random. $(\lbrace (x,y):x^2+y^2\leq 1\rbrace).$ Let X and Y be the coordinates of the selected point.

(a) What is the joint density of X and Y?

$ (X,Y) $ is uniform on the unit circle, then $ A=\lbrace (x,y):x^2+y^2=1\rbrace $. The area $ A=\pi $, then

Screenshot_59

(b) Determine $ \mathbb{P}(X< Y), \mathbb{P}(X> Y) $

Now for item (a) $ (X,Y)\sim (Y,X) $ then explaining exercise 19(a)

$$\mathbb{P}(X< Y)=\mathbb{P}(Y< X)=\frac{1}{2}$$

and $ \mathbb{P}(X=Y)=0 $

Example 2.4.11

A point from the unitary square is selected at random. $ \lbrace ((x,y):0\leq x\leq 1, 0\leq y\leq 1)\rbrace $. Be $ X $ and $ Y $ the coordinates of the selected point.

(a) What is the joint density of X and Y?

$ (X,Y) $ is uniform in $ A=\lbrace (x,y): 0\leq x\leq 1, 0\leq y\leq 1\rbrace $. The area $ A=1 $ then

Screenshot_57

(b) Calculate $ \mathbb{P}\left(\bigg|\frac{Y}{X-1}\bigg|\leq \frac{1}{2}\right) $.

$$\mathbb{P}\left(\bigg|\frac{Y}{X-1}\bigg|\leq \frac{1}{2}\right)=\mathbb{P}\left(-\frac{1}{2}\leq \frac{Y}{X}-1\leq \frac{1}{2}\right)=\mathbb{P}\left(\frac{1}{2}\leq \frac{Y}{X}\leq \frac{3}{2}\right)$$

$$=\int_{0}^{2/3}\int_{1/2}^{3/2}1dxdy+\int_{2/3}^1 \int_{2/2}^1 1dxdy=\left[\frac{x^2}{2}\right]^{2/3}_{0}+\left[x-\frac{x^2}{4}\right]_{2/3}^1=\frac{2}{9}+\frac{3}{4}-\frac{2}{3}+\frac{1}{9}=\frac{5}{12}$$

(c) Calculate $ \mathbb{P}\left(Y\geq X|Y\geq \frac{1}{2}\right) $.

$$\mathbb{P}\left(Y\geq X|Y\geq \frac{1}{2}\right)=\int_{1/4}^{1/2}\int_{\sqrt{x}}^{2x}dydx+\int_{1/2}^1\int_{\sqrt{x}}^1 1dydx$$

Screenshot_58

$$=\frac{1}{4}-\frac{1}{16}+\frac{2}{3}\left(\frac{1}{4}\right)^{3/2}+ \frac{1}{3}-\frac{1}{2}=10,416\char37$$

8.2.4.1 Probability distribution in $R^n$

The Borelians of $R^n$

In this section, we will work with $ \mathbb{R}^n=\mathbb{R}\times\mathbb{R}\times\cdots\times\mathbb{R} $, the set of ordered n-tuples. Our first objective is to build the $ \sigma $-Borel algebra corresponding to $ \mathbb{R}^n $. In this case, the generating set of the $ \sigma $-Borel algebra is given by the rectangles of $ \mathbb{R}^n $. The left-open and right-close intervals will be defined in the form

$$(a,b]=\left(x \in \mathbb{R}: a < x \leq b \right),$$

for everyone $ a $ and $ b $ such that $ -\infty \leq a < b < \infty $. The break $ (a ,\infty] $ is taken as $ (a,\infty) $, this convention is necessary so that the complement of the interval $ (\infty,b] $ be an interval of the same shape (open on the left and closed on the right).

Definition 2.4.1.1

For $ I_k=(a_k,b_k] $ an interval, the set $ I=I_1\times I_2\times \cdots\times I_n $ defined by,

$$(x\in \mathbb{R}^n| x_k\in I_k, k=1,\dots,n)$$

is called a rectangle with sides $ I_k $, with $ k=1,\cdots,n $. The set of all rectangles I will be denoted by $ \mathcal{I} $. In general, a set $ A=A_1\times A_2\times \cdots\times A_n $ is called a rectangle (or cylinder) with sides $ A_i $. Se $ A_i \in \mathfrak{B}(\mathbb{R}) $ we say that $ A $ is a rectangle (or cylinder) with Borelian sides.

Definition 2.4.1.2

A $ \sigma $-Borel algebra of subsets of $ \mathbb{R}^n $, denoted by $ \mathfrak{B}(\mathbb{R}^n) $, is the smallest $ \sigma $-algebra generated by all rectangles of $ \mathbb{R}^n $, that is,$ \mathfrak{B}(\mathbb{R}^n)=\sigma(\mathcal{I}) $.

In the same way that intervals generate the $ \sigma $-Borel algebra on the straight line, the rectangles with sides represented by intervals generate the $ \sigma $-Borel algebra $ \mathbb{R}^n $. Next, we will show that the $ \mathfrak{B}(\mathbb{R}^n) $ can also be defined as the smallest $ \sigma $-algebra that contains rectangles with Borelian sides. Consider

$$\mathcal{R}=(A=A_1\times \cdots\times A_n: A_i \in \beta(\mathbb{R})),$$

the class of rectangles with Borelian sides. We denote by

$$ \sigma(\mathfrak{B}(\mathbb{R})\times\mathfrak{B}(\mathbb{R})\times\cdots\times \mathfrak{B}(\mathbb{R}))=\sigma(\mathcal{R}).$$

Exercise

Show that the class of rectangles $ \mathcal{I} $ and the class of rectangles with Borelian sides $ \mathcal{R} $ form a semi-algebra.

Theorem 2.4.1.1

We have to, $ \mathfrak{B}(\mathbb{R}^n)=\sigma(\mathcal{I})=\sigma(\mathfrak{B}(\mathbb{R})\times\mathfrak{B}(\mathbb{R})\times\cdots\times \mathfrak{B}(\mathbb{R})) $

Demo

Note that the result is trivial if $ n=1 $. Let’s show the case $ n=2 $. We define by

$$\mathcal{C}=(B_1\times B_2: B_i\in \mathfrak{B}(\mathbb{R}), i=1,2),$$

the class of rectangles with Borelian sides.

We know that $ \mathcal{I}\subset \mathcal{C} $, so it is immediate that

$$\mathfrak{B}(\mathbb{R}^2)=\sigma(\mathcal{I})\subset \sigma(\mathcal{C})=\mathfrak{B}(\mathbb{R})\otimes\mathfrak{B}(\mathbb{R})$$

So we just have to show that

$$\mathfrak{B}(\mathbb{R})\otimes\mathfrak{B}(\mathbb{R})\subset\mathfrak{B}(\mathbb{R}^2)$$

Next, consider $ \mathfrak{C} $ a class of subsets of $ \mathbb{R}^2 $ and $ B\subset\mathbb{R}^2 $. So, when we define

$$\mathfrak{C}\cap B=(A\cap B:A\in\mathfrak{{C}}),$$

let’s prove that

$$\sigma(\mathfrak{C}\cap B)=\sigma(\mathfrak{C})\cap B.$$

How $ \mathfrak{C}\subset \sigma(\mathfrak{C}) $, we conclude that

$$\mathfrak{C}\cap B\subset \sigma(\mathfrak{C})\cap B$$

Furthermore, we have to $ \sigma(\mathfrak{C})\cap B $ is a $ \sigma $-algebra (exercise). Thus, we obtain that

$$\sigma(\mathfrak{C}\cap B)\subset \sigma(\mathfrak{C})\cap B$$

Next, we will show

$$\sigma(\mathfrak{C})\cap B\subset \sigma(\mathfrak{C}\cap B) $$

For this, we take $ \mathcal{C}_B=\lbrace A\in\sigma(\mathfrak{C}):A\cap B\in \sigma(\mathfrak{C}\cap B)\rbrace $. Since $ \sigma(\mathfrak{C}) $ and $ \sigma(\mathfrak{C}\cap B) $ are $ \sigma $-algebras, we obtain that $ \mathcal{C}_B $ is also a $ \sigma $-algebra, Therefore, we have to

$$\mathfrak{C}\subset\mathcal{C}_B\subset \sigma(\mathfrak{C})$$

Which implies that $ \mathcal{C}_B= \sigma(\mathfrak{C}) $. Thus, we conclude that

$$A\cap B\in \sigma(\mathfrak{C}\cap B)$$

for everyone $ A\in\mathfrak{C} $. Consequently $ \sigma(\mathfrak{C})\cap B\subset \sigma(\mathfrak{C}\cap B) $.

To finish proving the theorem, consider the following sets $ \mathcal{B}\times \mathbb{R}=(B\times \mathbb{R}| B\in\mathfrak{B}(\mathbb{R})) $ and $ \mathbb{R}\times \mathcal{B}=(\mathbb{R}\times B| B\in\mathfrak{B}(\mathbb{R})) $.

So given $ B_1\times B_2 $, with $ B_1,B_2\in \mathfrak{B}(\mathbb{R}) $, we have to

$$B_1\times B_2=(B_1\times \mathbb{R})\cap (\mathbb{R}\times B_2) \in\sigma(I_1 \times \mathbb{R})\cap (B_2\times \mathbb{R})= \sigma((I_1 \times \mathbb{R})\cap (B_2\times \mathbb{R}))\subset\sigma ((I_1\times \mathbb{R})\cap (I_2\times\mathbb{R}))=\sigma(\mathcal{I})$$

in which, $ I_i $ is the set of all intervals $ \mathbb{R} $ corresponding to $ i $-th coordinate, with $ i=1,2 $.. Therefore the result follows.

How to $ \sigma $-Borel algebra $ \mathcal{R}^n $ is generated by the “direct” product of $ \sigma $-Borel algebra of each coordinate, this can also be denoted by $ \mathfrak{B}(\mathbb{R})\otimes\mathfrak{B}(\mathbb{R})\otimes\cdots\otimes \mathfrak{B}(\mathbb{R})=\sigma(\mathcal{R}). $

Probability distribution in $R^n$

Suppose $ \mathbb{P} $ a probability in measurable space $ (\mathbb{R}^n,\mathfrak{B}(\mathbb{R}^n)) $. The function

$$F_n(x_1,\dots,x_n)=\mathbb{P}((-\infty,x_1]\times (-\infty,x_2]\times\dots\times(-\infty,x_n])$$

is called the probability distribution function $ \mathbb{P} $. We will use a more compact notation, which will be denoted as follows

$$F_n(x)=\mathbb{P}((-\infty,x])$$

in which $ x=(x_1,\dots,x_n) $ and $ (-\infty,x]=(-\infty,x_1]\times (-\infty,x_2]\times\dots\times(-\infty,x_n] $. Next, we introduce the difference operator $ \Delta_{a_i,b_i}:\mathbb{R}^n\rightarrow \mathbb{R} $ defined by

$$\Delta_{a_i,b_i}F_n(x)=F_n(x_1,\dots,x_{i-1},b_i,x_{i+1},\dots,x_n)-F_n(x_1,\dots,x_{i-1},a_i,x_{i+1},\dots,x_n),$$

in which $ a_i\leq b_i $ for $ i=1, \cdots , n $. With this notation, we have

$$\Delta_{a_1,b_1}\dots\Delta_{a_n,b_n} F_n(x)=\mathbb{P}((a,b])$$

in which $ (a,b]=(a_1,b_1]\times\dots\times(a_n,b_n] $. As in example 2.4.2 shown in the previous section in the multidimensional case in general $ \mathbb{P}((a,b])\neq F_n(b)-F_n(a) $, with $ a=(a_1,\dots,a_n) $ and $ b=(b_1,\dots,b_n) $. Furthermore, as $ \mathbb{P} $ is positive we have to

P1

$$\Delta_{a_1,b_1}\dots\Delta_{a_n,b_n} F_n(x)\geq 0$$

From the continuity to the right of $ \mathbb{P} $, we have to $ F_n $ is also continuous to the right, that is, if a sequence $ (x^{k})_{k\in\mathbb{N}} $ and $ x^k\downarrow x $, with $ x^k=(x_1^k,\dots,x_n^k) $ then

P2

$$F_n(x^k)\downarrow F_n(x),\quad k\rightarrow \infty.$$

Furthermore,

P3

$$\displaystyle\lim_{x\rightarrow \infty}F_n(x)=1$$

and

P4

$$\displaystyle \lim_{x\downarrow y}F_n(x)=0$$

if at least one coordinate of $ y $ is $ -\infty $.

Definition 2.4.1.3

A distribution function $ n $-dimensional in $ \mathbb{R}^n $ is a function $ F=F_n(x_1,\dots,x_n) $ with properties P1,P2,P3,P4.

Our objective is to show that if $ F $ is a distribution function, so there is a single probability $ \mathbb{P} $ defined in $ (\mathbb{R}^n,\mathfrak{B}(\mathbb{R}^n)) $, such that

$$\mathbb{P}((a,b])=\Delta_{a_1,b_1}\dots\Delta_{a_n,b_n} F_n(x).$$

To do this, we will construct a probability defined in the algebra generated by the rectangles and then we will use the extension theorem. We remember that $ \mathcal{I} $ denotes semi-algebra composed of sided rectangles composed of intervals in the form $ I_k = (a_k , b_k] $, with $ k=1,\cdots,n $.

Lemma 2.4.1.1

Be $ F $ a distribution function in $ \mathbb{R}^n $. We take the set function $ \mathbb{P_F} $ about semi-algebra $ \mathcal{I} $ in the form

Screenshot_63

Demo

Note that, by the definition of $ F $, $ \mathbb{P_F} $ is non-negative in $ \mathcal{I} $ and $ \mathbb{P_F}(\emptyset)=0 $ . Now to show finite additivity, consider the case n=2, we will only consider this case, for simplicity of notation, the demonstration for the general case can be extended naturally, starting from this case.

So consider

$$\displaystyle \bigcup_{m=1}^{k}I_m\in \mathcal{I}$$

where $ I_m $ are disjoint elements $ \mathcal{I} $. First, let us consider the case in which $ I_m $ has disjoint sides. In this way, we can rewrite

$$\displaystyle \bigcup_{m=1}^k I_m=\bigcup_{i=1}^{K_1}\bigcup_{j=1}^{K_2} I_{i,j}$$

Where

$$\displaystyle \bigcup_{m=1}^k I_m= (a^0,a^{K_1}]\times(b^0,b^{K_2}]$$

and

$$I_{i,j}=(a^{i-1},a^{i}]\times (b^{j-1},b^{j}].$$

in which $ I_m $ is one of $ I_{i,i} $.

Now fixing $ i $, we have to

$$\displaystyle \sum_{j=1}^{K_2}\mathbb{P}(I_{i,j})=\sum_{j=1}^{K_2}(F(a^i,b^j)-F(a^i, b^{j-1})-F(a^{i-1},b^j)+F(a^{i-1},b^{j-1}))=$$

$$\displaystyle \sum_{j=1}^{K_2}(F(a^i, b^j)-F(a^i,b^{j-1}))-\sum_{j=1}^{K_2}(F(a^{i-1},b^j)-F(a^{i-1},b^{j-1}))=$$

$$\displaystyle (F(a^i,b^{K_2})-F(a^i,b^0))-(F(a^{i-1},b^{K_2})-F(a^{i-1},b^0))=$$

$$\displaystyle \Delta_{a^{i-1},a^{i}}\Delta_{b^0,b^{K_2}} F(x_1,x_2)$$

Then, we obtain that

$$\displaystyle \sum_{i=1}^{K_1}\sum_{j=1}^{K_2}\mathbb{P_F}(I_{i,j})=\sum_{j=1}^{K_2}\Delta^1_{a^{i-1},a^{i}}\Delta^2_{b^0,b^{K_2}}F(x_1,x_2)=$$

how

$$\displaystyle \sum_{i}^{K_1}\sum_{j=1}^{K_2}\mathbb{P_F}(I_{i,j})=\displaystyle \bigcup_{m=1}^k\mathbb{P_F}(I_m)$$

$$\displaystyle \sum_{i=1}^{K_1}((F(a^i,b^{K_2})-F(a^i,b^0))-(F(a^{i-1},b^{K_2})-F(a^{i-1},b^0)))=$$

$$\sum_{i=1}^{K_1}(F(a^i,b^{K_2})-F(a^i,b^0))-\sum_{i=1}^{K_1}(F(a^{i-1},b^{K_2})-F(a^{i-1},b^0))=$$

$$F(a^{K_1},b^{K_2})-F(a^0,b^{K_2})-F(a^{K_1},b^0)-F(a^{K_1},b^0)+F(a^0,b^0)=$$

$$\Delta^1_{a^{0},a^{K_1}}\Delta^2_{b^{0},b^{K_2}}F(x_1,x_2)=$$

$$\mathbb{P_F}((a^0,b^{K_2}]\times(a^{K_1},b^{K_2}])=\mathbb{P_F}\left(\bigcup_{m=1}^{k}I_m\right)$$

How

$$\displaystyle \sum_{i=1}^{K_1}\sum_{j=1}^{K_2}\mathbb{P_F}(I_{i,j})=\sum_{m=1}^k \mathbb{P_F}(I_m)$$

It follows that

$$\mathbb{P_F}\left(\bigcup_{m=1}^{k}I_m\right)=\displaystyle \sum_{i=1}^{K_1}\sum_{j=1}^{K_2}\mathbb{P_F}(I_{i,j})=\sum_{m=1}^k \mathbb{P_F}(I_m)$$

Now for the general case, it can always be reduced to the case where the sides of the rectangles are disjoint. For example if

$$I_m=(u_1^{m},u_2^{m}]\times(v_1^m,v_2^m],\quad m=1,\dots,k$$

So just put the values in ascending order for different values

$$u_1^{1},u_2^{1}, u_1^2,u_2^{2},\dots,u_1^{k}, u_2^{k}\quad e \quad v_1^{1},v_2^{1}, v_1^2,v_2^{2},\dots,v_1^{k}, v_2^{k}$$

respectively by

$$a^0< a^{1}<\dots< a^{K_1}\quad e \quad b^{0}< b^{1}<\dots< b^{K_2}$$

So

$$\displaystyle \bigcup_{m=1}^k I_m=\bigcup_{i=1}^{K_1}\bigcup_{j=1}^{K_2} (a^{i-1},a^{i}]\times (b^{j-1},b^{j}]$$

In the previous case, we have

$$\displaystyle \mathbb{P_F}\left(\bigcup_{m=1}^k I_m\right)=\sum_{i=1}^{K_1}\sum_{j=1}^{K_2}\mathbb{P_F}\left((a^{i-1},a^{i}]\times(b^{j-1},b^{j}]\right)$$

Note that each $ I_m $ is the union of disjoint elements with disjoint sides of the form $ (a^{i-1},a^{i}]\times(b^{j-1},b^{j}] $, then each $ I_m $ is the sum of its corresponding terms $ \mathbb{P}\left((a^{i-1},a^{i}]\times(b^{j-1},b^{i}]\right) $. So again using the disjoint case we obtain that

$$\displaystyle \mathbb{P_F}\left(\bigcup_{m=1}^k I_m\right)=\sum_{i=1}^{K_1}\sum_{j=1}^{K_2}\mathbb{P_F}\left((a^{i-1},a^{i}]\times(b^{j-1},b^{j}]\right)=\sum_{m=1}^{k}\mathbb{P}_{F}\left(I_m\right)$$

Therefore we have to $ \mathbb{P_F} $ is finitely additive in $ \mathcal{I} $

Lemma 2.4.1.2

Be $ F $ a distribution function in $ \mathbb{R}^n $ and

$$\mathbb{P_F}((a,b])=\Delta_{a_1,b_1}\dots\Delta_{a_n,b_n} F_n(x)$$

.

Consider in $ \mathcal{I} $ the rectangles in the shape

$$R_k=(a_1^k,b_1^k]\times \cdots\times (a_n^k,b_n^k], \quad -\infty\leq a^k_{i}\leq b_i^k\leq \infty$$

with

$$\displaystyle R\subset \bigcup_{k=1}^{\infty} R_k$$

with $ R\mathcal{I} $. So

$$\displaystyle \mathbb{P_F}(R)\leq \sum_{k=1}^{\infty}\mathbb{P_F}(R_k)$$

Demo:

Firstly, we note that for $ h> 0 $

$$\displaystyle \mathbb{P_F}((a_1^k,b_1^k+h]\times \cdots\times (a_n^k,b_n^k+h])=\Delta^1_{a_1^k,b_1^k+h}\cdots \Delta^n_{a_n^k,b_n^k+h}F(x_1,\dots,x_n)$$

Thus, due to the continuity to the right of F in each coordinate, it follows that

$$\displaystyle \lim_{h\rightarrow 0} \mathbb{P_F}((a_1^k,b_1^k+h]\times \cdots\times (a_n^k,b_n^k+h])=\lim_{h\rightarrow 0}\Delta^1_{a_1^k,b_1^k+h}\cdots \Delta^n_{a_n^k,b_n^k+h}F(x_1,\dots,x_n)=$$

$$\Delta^1_{a_1^k,b_1^k}\cdots \Delta^n_{a_n^k,b_n^k}F(x_1,\dots,x_n)=\mathbb{P_F}((a_1^k,b_1^k]\times \cdots\times (a_n^k,b_n^k])$$

In this way, given $ \epsilon> 0 $, there is a $ h_k $, such that

$$\displaystyle \mathbb{P_F}((a_1^k,b_1^k+h_k]\times \cdots\times (a_n^k,b_n^k+h_k])=\mathbb{P_F}((a_1^k,b_1^k]\times \cdots\times (a_n^k,b_n^k])+\frac{\epsilon}{2^k}$$

First, let us consider the case in which $ R=(a_1^0,b_1^0]\times \cdots\times (a_n^0,b_n^0] $, for $ -\infty< a^k_{i}< b_i^k< \infty $. So for $ h> 0 $ we have

$$\displaystyle [a_1^0+h,b_1^0]\times \cdots\times [a_n^0+h,b_n^0]\subset R\subset\bigcup_{k=1}^{\infty}(a_1^k,b_1^k+h_k]\times \cdots\times (a_n^k,b_n^k+h_k]$$

But $ [a_1^0+h,b_1^0]\times \cdots\times [a_n^0+h,b_n^0] $ is a compact set of $ \mathbb{R}^n $ and therefore by the Heine-Borel theorem every open cover admits a finite undercover. In our case, our open coverage is

$$\displaystyle \bigcup_{k=1}^{\infty}(a_1^k,b_1^k+h_k]\times \cdots\times (a_n^k,b_n^k+h_k]$$

Soon for some $ K $ we have to

$$\displaystyle [a_1^0+h,b_1^0]\times \cdots\times [a_n^0+h,b_n^0]\subset\displaystyle \bigcup_{k=1}^{K}(a_1^k,b_1^k+h_k]\times \cdots\times (a_n^k,b_n^k+h_k]$$

Furthermore, as $ \mathbb{P_F} $ is finitely additive by Lemma 2.4.1.1, we have that it is trivially monotone and sub-additive, and therefore

$$\displaystyle \mathbb{P_F}((a_1^0+h,b_1^0]\times \cdots\times (a_n^0+h,b_n^0])\leq \sum_{k=1}^{K}\mathbb{P_F}((a_1^k,b_1^k+h_k]\times \cdots\times (a_n^k,b_n^k+h_k]) $$

From the above equation we have

$$\sum_{k=1}^{K}\mathbb{P_F}((a_1^k,b_1^k+h_k]\times \cdots\times (a_n^k,b_n^k+h_k])\leq \sum_{k=1}^{\infty}\left(\mathbb{P_F}((a_1^k,b_1^k]\times \cdots\times (a_n^k,b_n^k])+\frac{\epsilon}{2^k}\right)=$$

$$\sum_{k=1}^{\infty}\left(\mathbb{P_F}((a_1^k,b_1^k]\times \cdots\times (a_n^k,b_n^k])\right)+\epsilon=\sum_{k=1}^{\infty}\mathbb{P_F}(R_k)+\epsilon$$

On the other hand, we have that F is continuous to the right in each coordinate, so

$$\displaystyle \lim_{h\rightarrow 0}\displaystyle \mathbb{P_F}((a_1^0+h,b_1^0]\times \cdots\times (a_n^0+h,b_n^0])=\lim_{h\rightarrow 0}\Delta^1_{a_1^0+h,b_1^0}\cdots \Delta^n_{a_n^0+h,b_n^0}F(x_1,\dots,x_n)=$$

$$\Delta^1_{a_1^k,b_1^k}\cdots \Delta^n_{a_n^0,b_n^0}F(x_1,\dots,x_n)=\mathbb{P_F}((a_1^0,b_1^0]\times \cdots\times (a_n^0,b_n^0])=\mathbb{P_F}(R)$$

Therefore

$$\displaystyle \mathbb{P_F}(R)\leq \sum_{k=1}^\infty \mathbb{P_F}(R_k)+\epsilon$$

How $ \epsilon $ it is arbitrary we have

$$\displaystyle \mathbb{P_F}(R)\leq \sum_{k=1}^\infty \mathbb{P_F}(R_k)$$

For the case in which $ R $ it is not finite consider

$$R^N=R\cap ((-N,N]\times\cdots\times (-N,N])$$

Of course $ R^N $ is limited and yet

$$\displaystyle R^N\subset R^{N+1}\subset R\subset \bigcup_{k=1}^{\infty}R_k$$

So from the previous result we have

$$\displaystyle \mathbb{P_F}(R^N)\leq \sum_{k=1}^{\infty}\mathbb{P}(R_k), \quad \forall N$$

How $ F $ is monotone in each coordinate, taking the limit at N tending to infinity, the result follows.

Lemma 2.4.1.3

$ \mathbb{P_F} $ is $ \sigma $-additive in $ \mathcal{I} $

Demo:

Be $ \displaystyle \bigcup_{k=1}^{\infty}R_k \in \mathcal{I} $, in which $ R_k\in\mathcal{I}^n $ and $ R_j\cap R_i=\emptyset $ if $ i\neq j $.

By Lemma 2.4.1.1 we have $ \mathbb{P_F} $ it is finitely additive, therefore monotonous. So

$$\displaystyle \sum_{k=1}^{N}\mathbb{P}(R_k)=\mathbb{P_F}\left(\bigcup_{k=1}^{N} R_k\right)\leq \mathbb{P_F}\left(\bigcup_{k=1}^{\infty}R_k\right), \quad \forall N\in\mathbb{N}$$

Now taking $ N\rightarrow \infty $ we have to

$$\displaystyle \sum_{k=1}^{\infty}\mathbb{P}(R_k)\leq \mathbb{P_F}\left(\bigcup_{k=1}^{\infty}R_k\right).$$

On the other hand, by lemma 2.4.1.2 we have

$$\mathbb{P_F}\left(\bigcup_{k=1}^{\infty} R_k\right)\leq \sum_{k=1}^{\infty}\mathbb{P_F}(R_k)$$

Therefore

$$\mathbb{P_F}\left(\bigcup_{k=1}^{\infty} R_k\right)= \sum_{k=1}^{\infty}\mathbb{P_F}(R_k)$$

And the result follows

Up to this point we have shown that $ \mathbb{P_F} $ is $ \sigma $-additive in semi-algebra but we need $ \mathbb{P_F} $ be defined in the $ \sigma $-algebra and still be $ \sigma $-additive. In the following proposition we will show that we can extend $ \mathbb{P_F} $ for a unique way algebra. To finally be able to invoke Caratheodory’s Theorem and finally extend our measurement to the $ \sigma $-algebra.

The following proposition tells us that if we have any measure of probability (which we will call $ \lambda $), defined only in the semi-algebra and even if it is $ \sigma $-additive, then there is a unique extension of this probability measure to the algebra, such that this extension is $ \sigma $-additive in algebra.

A natural extension of $ \lambda: \mathcal{I}\rightarrow \mathbb{R}^n $ which we will call $ \mu:\mathcal{A}(\mathcal{I})\rightarrow \mathbb{R}^n $, be it $ A\in\mathcal{A}(\mathcal{I}) $ then $ A $ can be written as

$$A=\displaystyle \bigcup_{i=1}^{n} I_i$$

and the natural extension of $ \lambda $ is given by

$$\mu(A)=\displaystyle \sum_{i=1}^{n}\lambda(I_i).$$

The following proposition shows that this extension is unique.

Proposition 2.4.1.1

Be $ \lambda: \mathcal{I}\rightarrow \mathbb{R}^n $, a positive function and $ \sigma $-additive defined in a semi-algebra $ \mathcal{I} $. So there is a single extension, $ \sigma $-additive, of $ \lambda $ for algebra $ \mathcal{A}(\mathcal{I}) $.

Demo:

First consider $ \lambda $ finitely additive in $ \mathcal{I} $ and be $ A\in\mathcal{A}(\mathcal{I}) $ then $ A $ can be written as

$$A=\displaystyle \bigcup_{i=1}^{n} I_i$$

in which the sets $ I_i $ are disjoint elements of $ \mathcal{I} $. So define $ \mu: \mathcal{A}(\mathcal{I})\rightarrow [0,1] $ with $ \mu\mid_{\mathcal{I}}=\lambda $.

$$\mu(A)=\displaystyle \sum_{i=1}^{n}\lambda(I_i)$$

The function $ \mu $ is well defined, and by definition extends $ \lambda $. To see that $ \mu $ is well defined consider

$$\displaystyle \sum_{i=1}^{n}I_i=A=\bigcup_{j=1}^{m} R_j$$

for disjoint sets $ R_j\in\mathcal{I} $, then

$$\mu(A)=\displaystyle \sum_{i=1}^{n}\lambda(I_i)=\sum_{i=1}^{n}\mu(I_i)=\sum_{j=1}^{m}\mu(R_j)=\sum_{j=1}^{m}\lambda(R_j)=\mu(A)$$

In fact, consider

$$I_i\cap R_j, \quad i=1,\cdots,n, \quad j=1,\cdots,m$$

are disjoint elements of $ \mathcal{I} $ and

$$\displaystyle \bigcup_{j=1}^{m}(I_i\cap R_j)= I_i \quad e \quad \displaystyle \bigcup_{i=1}^{n}(I_i\cap R_j)=R_j$$

So

$$\displaystyle \mu(A)=\sum_{i=1}^n \lambda(I_i)=\sum_{i=1}^n\lambda\left(\displaystyle \bigcup_{j=1}^{m}(I_i\cap R_j)\right)=$$

$$\displaystyle \sum_{i=1}^n \sum_{j=1}^m \lambda(I_i\cap R_j)=\sum_{j=1}^m \sum_{i=1}^n \lambda(I_i\cap R_j)=\sum_{j=1}^m\lambda\left(\displaystyle \bigcup_{i=1}^{n}(I_i\cap R_j)\right)=\sum_{j=1}^m\lambda(R_j)=\sum_{j=1}^m\mu(R_j)$$

Therefore $ \mu $ is well defined in $ \mathcal{A}(\mathcal{I}) $. Now we will show that $ \mu $ is finitely additive. So, consider the sets $ A,B\in \mathcal{A}(\mathcal{I}) $, with $ A\cap B=\emptyset $, how then can we rewrite $ A $ and $ B $ as follows

$$\displaystyle A=\bigcup_{i=1}^{n}(I_i)\quad \quad e \quad \quad B=\bigcup_{i=1}^{n}R_j$$

where $ I_i\cap I_{i^\prime}=\emptyset $ for $ i\neq i^\prime $ and $ R_j\cap R_{j^\prime}=\emptyset $ for $ j\neq j^\prime $ and $ I_i,R_j\in \mathcal{I} $. Note that as $ A\cap B=\emptyset $ then

$$I_i\cap R_j=\emptyset \quad \quad e \quad \quad A\cup B= \displaystyle\bigcup_{i=1}^{n}I_i\cup \bigcup_{j=1}^{m}R_j$$

So by the definition of $ \mu $ we have

$$\displaystyle \mu(A\cup B)=\sum_{i=1}^{n}\mu(I_i)+\sum_{j=1}^{m}\mu(R_j)=\mu(A)+\mu(B)$$

Then by induction we have $ \mu $ is finitely additive in $ \mathcal{A}(\mathcal{I}) $. To show the uniqueness of $ \mu $ be $ \theta:\mathcal{A}(\mathcal{I})\rightarrow [0,1] $ with $ \theta\mid_{\mathcal{I}}=\lambda $ and $ \theta $ finitely additive. So for

$$\displaystyle A\in\mathcal{A}(\mathcal{I}),\quad A=\bigcup_{i=1}^n I_i,\quad \quad I_i\cap I_j=\emptyset$$

how $ \theta $ is finitely additive and $ \theta\mid_{\mathcal{I}}=\lambda=\mu\mid_{\mathcal{I}} $ we have

$$\mu(A)=\displaystyle \sum_{i=1}^n\mu(I_i)=\sum_{i=1}^n\lambda(I_i)=\sum_{i=1}^n\theta(I_i)=\theta(A)$$

which implies that

$$\mu=\theta$$

and therefore unique.

Now suppose $ \lambda $$ \sigma $-additive, then we show that $ \mu $ is also $ \sigma $-additive in $ \mathcal{A}(\mathcal{I}) $. In fact, consider

$ (A_j)_{j\in\mathbb{N}} $ a disjoint sequence in $ \mathcal{A}(\mathcal{I}) $. How each $ A_j\in\mathcal{A}(\mathcal{I}) $, we have that there are disjoint sets $ I^j_i\in\mathcal{I} $, such that

$$A_j=\displaystyle \bigcup_{i=1}^{m_j}I^j_i$$

So

$$\displaystyle A=\bigcup_{j=1}^{\infty} A_j =\bigcup_{j=1}^{\infty}\bigcup_{i=1}^{m_j}I^j_i$$

In this way, we have two possibilities for $ A $, or $ A\in\mathcal{A}(\mathcal{I}) $ or $ A\notin \mathcal{A}(\mathcal{I}) $. Let us initially assume that $ A\in\mathcal{A}(\mathcal{I}) $. So how each $ A_i\cap A_j=\emptyset $ for $ i\neq j $ we have to all $ I^j_i $ are disjoint. and how $ \lambda $ is $ sigma $-additive logo

$$\displaystyle \mu(A)=\lambda(A)=\lambda\left(\bigcup_{j=1}^{\infty}\bigcup_{i=1}^{m_j}I^j_i\right)=\sum_{j=1}^{\infty}\sum_{i=1}^{m_j}\lambda(I^j_i)=$$

$$\displaystyle \sum_{j=1}^{\infty}\sum_{i=1}^{m_j}\mu(I^j_i)=\sum_{j=1}^{\infty}\mu\left(\bigcup_{i=1}^{m_j}I^j_i\right)=\sum_{j=1}^{\infty}\mu(A_j)$$

therefore $ \mu $ is $ \sigma $-additive in $ \mathcal{A}(\mathcal{I}) $, if $ A\in\mathcal{I} $.

Now consider the case where $ A\notin\mathcal{I} $. So we have to $ A\in\mathcal{A}(\mathcal{I}) $, therefore

$$A=\displaystyle \bigcup_{i=1}^{n} I_i, \quad \quad \bigcup_{j=1}^{\infty} A_j=A=\bigcup_{i=1}^{n} I_i$$

This way

$$\displaystyle I_i=A\cap I_i=\left(\bigcup_{j=1}^{\infty} A_j\right)\cap I_i=\bigcup_{j=1}^{\infty}(A_j\cap I_i)$$

how $ I_i\in\mathcal{I} $ we have that from the previous case that

$$\mu(I_i)=\displaystyle \sum_{j=1}^{\infty}\mu(A_j\cap I_i)$$

Furthermore, we have to

$$A_j=\displaystyle \bigcup_{i=1}^n (A_j\cap I_i)$$

how $ S_i $ are disjoint we have to

$$(A_j\cap I_i)\cap (A_j\cap I_n), \quad n\neq i$$

It then follows, through the finite additivity of $ \mu $ we have

$$\mu(A_j)=\displaystyle \sum_{i=1}^n (A_j\cap I_i)$$

So

$$\displaystyle \mu(A)=\mu\left(\bigcup_{i=1}^{n} I_i\right)=\sum_{i=1}^n \mu(I_i)$$

And by the previous equation we have

$$\displaystyle \sum_{i=1}^n \mu(I_i)=\sum_{i=1}^n\sum_{j=1}^\infty\mu(A_j\cap I_i)$$

As all terms in the series are positive, we can permute the sum and obtain that

$$\displaystyle \sum_{i=1}^n\sum_{j=1}^\infty\mu(A_j\cap I_i)=\sum_{j=1}^\infty\sum_{i=1}^n\mu(A_j\cap I_i)=\sum_{j=1}^\infty\mu\left(\bigcup_{i=1}^{n}(A_j\cap I_i)\right)=\sum_{j=1}^\infty\mu(A_j)$$

Logo $ \mu $ is $ \sigma $-additive in $ \mathcal{A}(\mathcal{I}) $ and the result follows.

Note that $ \mathbb{P_F} $ satisfies the conditions of the proposition, so there is a single extension of $ \mathbb{P_F} $, such that $ \mathbb{P_F} $ is $ \sigma $-additive in algebra, so we just need to extend $ \mathbb{P_F} $ for the $ \sigma $-algebra, as we see in the following theorem.

Theorem 2.4.1.2

Given a distribution function $ F $ with the properties P1,P2,P3,P4 then there is a single probability measure $ \mathbb{P} $ such that

$$\mathbb{P}((a,b])=\Delta_{a_1,b_1}\dots\Delta_{a_n,b_n} F_n(x)$$

Demo

By the previous Lemmas, and using the extension theorem the result follows

8.2.5 Independent random variables

In this topic, we will introduce the concept of independent random variables and derive criteria for evaluating independence between random variables. Be $ X=(X_1,X_2, \ldots , X_n) $ a random vector.

Informal definition

Random variables $ X_1, X_2, \ldots ,X_n $ are independent if and only if any group of events defined by the “individual” variables are independent.

Definition 2.5.1

Random variables $ (X_1,\ldots ,X_n) $ are independent if and only if, for any sets of real numbers $ B_1,B_2,\ldots ,B_n $ with $ B_i \in X_i, \ \forall \ i=1, \ldots ,n $ we have to

$$\mathbb{P}(X_1 \in B_1,\ldots , X_n \in B_n)=\mathbb{P}(X_1 \in B_1)\ldots \mathbb{P}(X_n \in B_n).$$

Criteria for independence

a) If $ X_1,X_2, \ldots , X_n $ are independent random variables, so

$$F_{X_1,X_2, \ldots , X_n}(x_1,x_2, \ldots ,x_n)=\prod^n_{i=1}F_{X_i}(x_i), \ \forall (x_1, \ldots x_n) \in \mathbb{R}^n$$

b) Conversely, if there are functions $ F_1,F_2, \dots ,F_n $ such that

$$\lim_{x_i\rightarrow \infty}F_i(x_i)=1, \ \forall \ i=1, \ldots ,n \ \text{e} \ F_{X_1, \dots ,X_n}(x_1,…,x_n)=\prod^n_{i=1}F_{i}(x_i), \ \forall \ (x_1, \ldots ,x_n) \in \mathbb{R}^n$$

then the random variables $ (X_1,\dots ,X_n) $ are independent and $ F_{X_i} = F_i $ for everyone $ i=1, \ldots , n $.

Demo

Item (a) is a direct consequence of the definition, we just need to take $ B_i=(-\infty , x_i] $. Next, we will show part (b). Initially we will show that $ F_i=F_{X_i} $. For this,

$$F_{X_i}(x_i)=\lim_{x_1\rightarrow\infty} \dots \lim_{x_{i-1} \rightarrow \infty}\lim_{x_{i+1}\rightarrow \infty} \dots \lim_{x_n\rightarrow \infty}F_{X_1, \dots , X_n}(x_1, \cdots , x_n)$$

whence it follows that

$$F_{X_i}(x_i)=\lim_{x_1\rightarrow \infty}F_1(x_1) \dots \lim_{x_{i-1} \rightarrow \infty}F_{i-1}(x_{i-1}) F_i(x_i) \lim_{x_{i+1} \rightarrow \infty}F_{i+1}(x_{i+1}) \ldots \lim_{x_n \rightarrow \infty}F_n(x_n)=F_i(x_i).$$

Therefore, we conclude that $ F_{X_i}(x_i)=F_i(x_i) $.

Now, to show that the random variables are independent, we need to show that Definition 2.5.1 holds for any Borelians $ B_i $ with $ i=1,\ldots,n $. We know that for $ B_i=(-\infty ,x_i] $,

$$\mathbb{P}\left(X_1 \in B_1, \ldots , X_n \in B_n\right) = F_{X_1, \ldots ,X_n}(x_1, \ldots , x_n)=F_{X_1}(x_1)\ldots F_{X_n}(x_n)=\prod^n_{i=1}\mathbb{P}\left(X_i \in B_i\right).$$

For ease of notation, let us consider the case in which $ n=2 $. If we take $ B_i=(a_i,b_i] $ for everyone $ i=1,2 $, we obtain that

$ \mathbb{P}\left(X_1 \in B_1, X_2 \in B_2\right)=\mathbb{P}\left(a_1 \ < \ X_1 \leq b_1,a_2 \ < \ X_2 \leq b_2\right) $

$$=F_{X_1,X_2}(b_1,b_2) - F_{X_1,X_2}(b_1,a_2) - F_{X_1,X_2}(a_1,b_2)+F_{X_1,X_2}(a_1,a_2)$$

$$=F_{X_1}(b_1)F_{X_2}(b_2)-F_{X_1}(b_1)F_{X_2}(a_2)-F_{X_1}(a_1)F_{X_2}(b_2)+F_{X_1}(a_1)F_{X_2}(a_2)$$

$$=\left(F_{X_1}(b_1)-F_{X_1}(a_1)\right)\left(F_{X_2}(b_2)-F_{X_2}(a_2)\right)$$

$$=\mathbb{P}\left(a_1 < X_1 \leq b_1\right) \mathbb{P}\left(a_2 < X_2 \leq b_2\right).$$

Using results from measure theory (Monotonic Class Theorem) we can show that the independence relation is valid for any Borelian. With this, the result follows.

This criterion tells us that the random variables $ X_1, \cdots , X_n $ are independent if and only if their joint distribution function factors and each factor converges to $ 1 $ when $ x_i \rightarrow \infty $. Note that there is no need to check whether $ F_i $ is a cumulative distribution function. Next, we will adapt the above criterion to continuous random variables.

Corollary 2.5.1

Independence criterion in the absolutely continuous case.

a) If $ X_1,X_2, \dots ,X_n $ are independent random variables with f.d.p. joint $ f_{X_1,\dots ,X_n} $ then

$ f_{X_1,\dots ,X_n}(x_1, \cdots,x_n)=\prod^n_{i=1}f_{X_i}(x_i)~~~~~~~\forall (x_1,\dots, x_n) \in \mathbb{R}^n $

b) Conversely if $ X_1,X_2,\dots ,X_n $ has f.d.p. joint $ f_{X_1,\cdots,X_n}(x_1,\dots,x_n)=\prod^n_{i=1}f_{i}(x_i) $ in which $ 0 \leq f_i $ and

$ \int^{\infty}_{-\infty}f_i(s_i)ds_i =1 ~~~~~~\forall (x_1,\dots ,x_n) \in \mathbb{R}^n $.

So the random variables $ X_1,\dots ,X_n $ are independent and $ f_{X_i}(x_i)=f_i(x_i)~~~~~~ \forall x_i \in \mathbb{R}^n $.

Demo

a) If $ X_1,\dots ,X_n $ are independent

$ F_{X_1,\dots ,X_n}=\prod^n_{i=1}F_{X_i}(x_i)=\prod^n_{i=1}\int^{x_i}_{-\infty}f_{X_i}(s_1)ds_1=\int^{x_1}_{-\infty}\dots \int^{x_n}_{-\infty} f_{X_1}(s_1)\dots f_{X_n}(s_n)ds_1 \dots ds_n $

Therefore, we have to

$$f_{X_1,\dots ,X_n}(x_1,\dots ,x_n)=\prod^n_{i=1}f_{X_i}(x_i)$$

b) On the other hand, we have to

$$F_{X_1,\dots ,X_n}(x_1 , \cdots , x_n)=\int^{x_1}_{-\infty}\dots \int^{x_n}_{-\infty}f_{X_1,\dots ,X_n}(x_1,\dots ,x_n) ds_1\dots ds_n =\prod_{i=1}^n\int^{x_i}_{-\infty}f_i(s_i)ds_i.$$

With this, we conclude that

4caf0dccf011ea18cd3bc11dfc9a76d895394ab8

for everyone $ (x_1,\cdots,x_n) \in \Bbb{R}^n $. The result follows.

Similarly, we can derive a criterion for independence in the case of discrete random variables.

Corollary 2.5.2

Discrete random variables $ X_1 , \cdots , X_n $ are independent if and only if

$$\mathbb{P}\left(X_1 = x_1, \cdots , X_n = x_n\right) = \prod_{i=1}^n \mathbb{P}\left(X_i = x_i\right).$$

Next, we will present some examples.

Example 2.5.1

Consider n + m rolls of a die. Let’s set a value $ i\in(1,2,3,4,5,6) $ and let X be the random variable that counts the number of times that value i appeared in the first n launches and Y be the random variable that counts the number of times that value i appeared in the last m launches.

As the releases are all independent, so for $ x \ < \ n $ and $ y \ < \ m $ we have

3265f509085b1efb9a6c3f898bbc49606060c71f

whence it follows that

$$\mathbb{P}\left(X=x,Y=y\right)=\mathbb{P}\left(X=x\right)\mathbb{P}\left(Y=y\right).$$

Example 2.5.2

Suppose $ X $ and $ Y $ have joint distribution given by the following table:

$ X $ $ 1 $ $ 2 $ $ 3 $
$ 1 $ $ 0 $ $ 1/5 $ $ 0 $
$ 2 $ $ 1/5 $ $ 1/5 $ $ 1/5 $
$ 3 $ $ 0 $ $ 1/5 $ $ 0 $

Determine the marginal distributions and say whether $ X $ and $ Y $ are independent. To find the marginal distribution of $ X $ we just add the lines relating to each value of $ X $ and to find the marginal distribution of $ Y $, we just add the columns related to each value of $ Y $. In this way, we obtain that

$ X $ $ 1 $ $ 2 $ $ 3 $ Marginal of $ X $
$ 1 $ $ 0 $ $ 1/5 $ $ 0 $ $ 1/5 $
$ 2 $ $ 1/5 $ $ 1/5 $ $ 1/5 $ $ 3/5 $
$ 3 $ $ 0 $ $ 1/5 $ $ 0 $ $ 1/5 $
Marginal of $ Y $ $ 1/5 $ $ 3/5 $ $ 1/5 $

We observe that $ X $ and $ Y $ are not independent, as $ \frac{1}{5}=\mathbb{P}(X=2,Y=2)\neq \mathbb{P}(X=2)\mathbb{P}(Y=2)=\frac{9}{25} $.

Example 2.5.3

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

9ed45cd60727787e3083b61456c3591e4a85afc3

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

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

in which $ B_z = ((x,y): x+y \leq z) $. For $ 0 ≤ z ≤ 1 $

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

For $ 1 \ < \ z \leq 2 $, we have to

$$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

f35a8a23504ef61a4bb5665c21c1f97444a0622d

ex2.5.3

Example 2.5.4

Be $ X $ and $ Y $ random variables with distribution given in example 2.5.3. 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,$$

in which $ B_z = ((x,y): x-y \leq z) $. For $ -1\leq z \leq 0 $. So

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

For $ 0 \ < \ z \leq 1 $, we have to

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

Therefore, the cumulative distribution function of Z is given by

444b8929df25caa6ca97d22e547334f6423fe6b3

ex2.5.4_1

Example 2.5.5 (Criterion for independence in the discrete case)

(a) Let $ X $ and $ Y $ discrete random variables, respectively taking the values $ x_1,x_2, \dots $ and $ y_1,y_2,\dots $. Prove that $ X $ and $ Y $ are independent if and only if

$$\mathbb{P}(X=x_i,Y=y_j)=\mathbb{P}(X=x_i)\mathbb{P}(Y=y_j)$$

for everyone $ i,j $.

We have from the definition of independence that:

$ X $ independent of $ Y $ if, and only if, for every pair of Borelians $ B_1 $ and $ B_2 $:

$$\mathbb{P}(X\in B_1, Y\in B_2)=\mathbb{P}(X\in B_1)\mathbb{P}(X\in B_2)$$

So, ($ \Rightarrow $) for each $ (i,j) $ just take $ B_1=(x_i) $ and $ B_2=(y_j) $ then independence implies that

$$\mathbb{P}(X=x_i, Y=y_j)=\mathbb{P}(X=x_i)\mathbb{P}(Y=y_j)$$

For the return, be $ B_1 $ and $ B_2 $ any borelians

8b3a577b0b0030555fd1cc33aa31979e42dd05f8

$$\mathbb{P}(X\in B_1, Y\in B_2)=\mathbb{P}(X\in A_1, Y\in A_2)=\sum_k \sum_m \mathbb{P}(X=x_{i_k}, Y=y_{j_m})$$

$$=\sum_k\sum_m \mathbb{P}(X=x_{i_k})\mathbb{P}(Y=y_{j_m})=\left(\sum_{k}\mathbb{P}(X=x_{i_k}\right)\left(\sum_m \mathbb{P}(Y=y_{j_m})\right)$$

$$\mathbb{P}(X\in A_1)\mathbb{P}(X\in A_2)=\mathbb{P}(X\in B_1)\mathbb{P}(Y\in B_2)$$

(b) Show that if $ X $ and $ Y $ take only a finite number of values, say $ x_1, \dots, x_m $ and $ y_1, \dots,y_n $, then X and Y are independent if

$$\mathbb{P}(X=x_i,Y=y_j)=\mathbb{P}(X=x_i)\mathbb{P}(Y=y_j)$$

for $ 1\leq i\leq m-1 $, (In other words, to prove independence, just check (m-1)(n-1) equations)

Se

$$\mathbb{P}(X=x_i, Y=y_j)=\mathbb{P}(X=x_i)\mathbb{P}(Y=y_j)$$

for $ i=1,2, \dots, m-1 $ and $ j=1,2,\dots,n $. So,

$$\mathbb{P}(X=x_{m}, Y=y_j)=\mathbb{P}(Y=y_j)\left(\mathbb{P}(X=x_1,Y=y_j)+\dots+\mathbb{P}(X=x_{m-1},Y=y_j)\right)$$

$$=\mathbb{P}(Y=y_j)-\mathbb{P}(Y=y_j)\left(\mathbb{P}(X=x_1)+\dots+\mathbb{P}(X=x_{m-1})\right)$$

$$=\mathbb{P}(Y=y_j)-\mathbb{P}(X=x_1)\left[1-\mathbb{P}(X=x_m)\right]=\mathbb{P}(Y=y_j)\mathbb{P}(X=x_m), \quad \quad j=1,2,\dots,n$$

Similarly, we have to

$$\mathbb{P}(X=x_i, Y=y_n)=\mathbb{P}(X=x_i)\mathbb{P}(Y=y_n)$$

From the equations above and using part (a) this implies that $ X $ and $ Y $ are independent.

(c) Generalize item (a) for the case of n random variables. Compare with the independence criteria and explain why it is sufficient to check whether the joint probability function is equal to the product of n one-dimensional probability functions.

$ X_1,X_2,\dots , X_n $ are v.a discrete, where $ X_i $ assumes the values $ x_i^1,x_i^2, \dots $.

So $ X_1, X_2, \dots, X_n $ are independent if and only if

$$\mathbb{P}(X_1=x_i^{i_1},X_2=x_i^{i_2},\dots, X_n=x_i^{i_n})=\mathbb{P}(X_1=x_i^{i_1})\mathbb{P}(X_2=x_i^{i_2})\dots\mathbb{P}( X_n=x_i^{i_n})\quad \quad \forall i_1, i_2, \dots, i_n$$

Now this is enough, for every Borelian $ B $, we have to

$$\mathbb{P}(X_i\in B)=\mathbb{P}(A)$$

in which $ A\subset (x_1^1,x_2^2,\dots ) $, the reasoning in item (a) is generalized.

$$\mathbb{P}(X_1\in B_1, \dots, X_n\in B_n)=\mathbb{P}(X_1\in B_1)\dots \mathbb{P}(X_n\in B_n).$$

Example 2.5.6

Demonstrate or display a counterexample: if X,Y and Z are independent 2 by 2, then they are independent.

Counter-Example: W v.a in which

$$\mathbb{P}(W=1)=\mathbb{P}(W=2)=\mathbb{P}(W=3)=\mathbb{P}(W=4)=\frac{1}{4}$$

X v.a. discreet

0ad070086fd4f78bbfe7be5514ce75116302d3b2

Y v.a. discreet

aaedcee6f721f96a02a2e71ca2f1c84901d57620

Z v.a. discreet

a6bfc45313d88d0db2ec3a474f6035b454b6fc8c

So,

$$\mathbb{P}(X=1,Y=1)=\mathbb{P}(W=2)=\frac{1}{4}=\frac{1}{2}\frac{1}{2}=\mathbb{P}(X=1)\mathbb{P}(Y=1)$$

which implies that $ X $ and $ Y $ are independent

$$\mathbb{P}(Y=1,Z=1)=\mathbb{P}(W=2)=\frac{1}{4}=\frac{1}{2}\frac{1}{2}=\mathbb{P}(Y=1)\mathbb{P}(Z=1)$$

which implies that $ Y $ and $ Z $ are independent

$$\mathbb{P}(X=1,Z=1)=\mathbb{P}(W=2)=\frac{1}{4}=\frac{1}{2}\frac{1}{2}=\mathbb{P}(X=1)\mathbb{P}(Z=1)$$

which implies that $ X $ and $ Z $ are independent. Now $ X,Y, Z $ are not independent because,

$$\mathbb{P}(X=1, Y=1, Z=1)=\mathbb{P}(W=2)=\frac{1}{4}\neq \mathbb{P}(X=1)\mathbb{P}(Y=1)\mathbb{P}(Z=1)$$

because

$$\mathbb{P}(X=1)\mathbb{P}(Y=1)\mathbb{P}(Z=1)=\frac{1}{2}\frac{1}{2}\frac{1}{2}=\frac{1}{8}$$

Example 2.5.7

Find the joint density and marginal distributions of the random variables X and Y whose joint distribution functions are in example 2.4.6, are X and Y independent?

We have

8af0bb7cb546f43b0b3d36d430a0ee02b1a997d1

then,

e8295134f2cbe40628206da024269af9a9137277

Therefore,

$$f_X(x)=\int_{-\infty}^\infty f(x,y)dy=e^{-x}\int_0^\infty e^{-y}dy=e^{-x}$$

$$f_Y(y)=\int_{-\infty}^\infty f(x,y)dy=e^{-y}\int_0^\infty e^{-x}dx=e^{-y}$$

then $ X\sim Exp(1) $ and $ Y\sim Exp(1) $. Now, how

$$f_{X,Y}(x,y)=f_X(x)f_Y(y)$$

and

$$\int_{-\infty}^\infty f_X(x)dx=1$$

and

$$\int_{-\infty}^\infty f_Y(y)dy=1$$

so, X and Y are independent.

Example 2.5.8

Determine the marginal distributions of the discrete random variables X and Y defined in example 2.4.7. Are X and Y independent?

We have the resolution of example 2.4.7

$$\mathbb{P}(X=1)=\mathbb{P}(X=2)=\mathbb{P}(X=3)=\frac{1}{3}$$

$$\mathbb{P}(Y=1)=\mathbb{P}(Y=2)=\mathbb{P}(Y=3)=\frac{1}{3}$$

Now then

$$\mathbb{P}(X=1,Y=1)=0\neq \mathbb{P}(X=1)\mathbb{P}(Y=1)$$

therefore,

$$\mathbb{P}(X=1)\mathbb{P}(Y=1)=\frac{1}{3}\frac{1}{3}=\frac{1}{9}$$

which implies that by example 2.5.5 $ X $ and $ Y $ are not independent.

Example 2.5.9

Demonstrate that:

Se $ f(x,y) $ is the joint density of $ X $ and $ Y $ then $ X $ has density given by:

$$f_X(x)=\int_{-\infty}^\infty f(x,y)dy$$

Let’s see if $ f_X $ thus obtained, it verifies the definition of density of

$$\int_{-\infty}^x\int_{-\infty}^\infty f(x,y)dydx=\int_{-\infty}^\infty \int_{-\infty}^x f(x,y) dx dy$$

$$= \mathbb{P}(X\leq x, -\infty < Y < \infty)=\mathbb{P}(X\leq x)=F_X(x)$$

then the result is valid.

Example 2.5.10

Let X, Y and Z be independent, each having a uniform distribution in $ [0,1] $. What is the probability of the quadratic equation

$$Xt^2+Yt+Z=0$$

have real roots?

We have

4b417c8d22d2ae16810c1857c196e80a20f332fc

We define $ A=(Xt^2+Yt+Z=0, \text{ tem raizes reais })=(Y^2-4XZ\geq 0) $. So,

$$\mathbb{P}(A)=\mathbb{P}([Y^2-4XZ\geq 0])=\int_{y^2-4xz> 0} f_{X,Y,Z}(x,y,z)dxdy dz=\displaystyle \int_0^1\left[\frac{y^2}{4}+\int_{y^2/4}^1\int_{0}^{y^2/4x}1dzdx\right]dy=\int_0^1\left[\frac{y^2}{4}+\frac{y^2}{4}\int_{y^2/4}^1 \frac{1}{x}\right]dy$$

$$=\int_0^1\left[\frac{y^2}{4}-\frac{y^2}{4}\ln\left(\frac{y^2}{4}\right)\right]dy=\int_0^1 \frac{y^2}{4}\left(1+ln(4)\right)dy-\frac{1}{2}\int_0^1 y^2 \ln(y)dy$$

$$\left[\frac{y^3}{12}(1+\ln(4))\right]_0^1-\frac{1}{2}\int_0^1 y^2 \ln(y)dy=\frac{1}{12}(1+\ln(4))-\frac{1}{2}\int_0^1 y^2 \ln(y)dy$$

Now to resolve

$$\frac{1}{2}\int_0^1 y^2 \ln(y)dy$$

let’s make a variable change, $ y=e^{-v} $ and $ dy=e^{-v}dv $, then we have

$$-\frac{1}{2}\int_0^1 e^{-2v} ve^{-v}dv=\frac{1}{2}\int_0^\infty v e^{-3v}$$

we have to $ u=v $ and $ e^{-3v}dv=dw $ which implies that $ w=\frac{-e^{-3v}}{3} $, in this way

$$\frac{1}{2}\int_0^\infty v e^{-3v}=\frac{1}{2}\left[-v\frac{e^{-3v}}{3}\bigg|_0^\infty+\int_0^\infty \frac{e^{-3v}}{3}dv\right]=\frac{1}{18}$$

In this way, $ \mathbb{P}(A)=\frac{\ln(4)}{12}+\frac{1}{12}+\frac{1}{18}= 0,2544 $

Example 2.5.11

Let X and Y be independent random variables, with $ X\sim U[0,a] $ and $ Y\sim U[a,a+b] $, in which $ a> 0 $, $ b> 0 $. What is the probability that the three segments $ [0,X] $, $ [X,Y] $, $ [Y,a+b] $ can form a triangle?

Define the following random variables

$$S_1=X=(\text{Comprimento do Seguimento } [0,X])$$

$$S_2=Y-X=(\text{Comprimento do Seguimento } [X,Y])$$

$$S_3=(a+b)-Y=(\text{Comprimento do Seguimento } [Y,a+b])$$

The geometric conditions for $ S_1,S_2 $ and $ S_3 $ can form a triangle are:

Screenshot_64

Be $ E $=event it is possible to add in triangles with $ [0,X] $, $ [X,Y] $ and $ [Y,a+b] $. So

$$E=\left[X\leq \frac{a+b}{2}\right]\cap \left[X\geq Y-\frac{a+b}{2}\right]\cap\left[Y\geq \frac{a+b}{2}\right]$$

$ A=((x,y); \text{Valem (I), (II), (III)}) $ and so

$$\mathbb{P}(E)=\int_A\int f_{X,Y}(x,y)dxdy=\int_{A\cap([0,a]\times[a,a+b])}\int \frac{1}{ba}dxdy=\frac{1}{ba}\times Area(A\cap([0,a]\times [a,a+b])).$$

Now, taking $ a\geq b $, then

$$Area(A\cap([0,a]\times [a,a+b]))=\frac{b}{2}\left(\frac{a+b}{2}-\frac{a-b}{2}\right)=\frac{b^2}{2}$$

In this way,

$$\mathbb{P}(E)=\frac{b^2}{2ba}=\frac{b}{2a}$$

Now, we assume $ a< b $, then

So,

$$\mathbb{P}\left(A\cap([0,a]\times[a,a+b])\right)=\frac{a}{2}\left(\frac{(a+b)}{2}+a-\frac{(a+b)}{2}\right)=\frac{a^2}{2}$$

So,

$$\mathbb{P}(E)=\frac{a^2}{2ba}\Rightarrow \mathbb{P}(E)=\frac{a}{2b}.$$

In short, we have to

$$\mathbb{P}(E)=\frac{\min(a,b)}{2\max(a,b)}.$$

Example 2.5.12

Prove: if the random variable X is independent of itself, then X is constant with probability 1 (i.e., there exists a constant c such that $ \mathbb{P}(X=c)=1 $).

If X is independent of X, then by the definition of independence for every pair of Borelians, $ B_1 $ and $ B_2 $:

$$\mathbb{P}(X\in B_1, X\in B_2)=\mathbb{P}(X\in B_1)\mathbb{P}(X\in B_2)$$

Now let’s choose a class of Borelians that characterizes the distribution of X:

$$B_1=B_2=[X\leq x]$$

then for everyone $ x\in \mathbb{R} $.

$$F_X(x)=\mathbb{P}([X\leq x])=\mathbb{P}([X\leq x]\cap [X\leq x])=\mathbb{P}^2([X\leq x])=(F_X(x))^2$$

which implies that $ F_X(x)=0 $ or $ F_X(x)=1 $ for everyone $ x\in \mathbb{R} $. Just like $ F $ is non-decreasing so there is a $ c\in \mathbb{R} $ such that

$$\mathbb{P}(X=c)=1.$$

Example 2.5.13

Assume that the useful lives $ T_1 $ and $ T_2 $ of machines I and II are independent random variables having exponential distributions with, respectively, parameter $ \lambda_1 $ and $ \lambda_2 $. An inspector chooses one of the machines at random, each having the same probability of being chosen, and then observes the chosen machine throughout its useful life. (Assume the choice is independent of lives.)

(a) Determine the density of T, where T is the observed life

Define $ E $ v.a. that designates the chosen machine $ E=0 $ machine I and $ E=1 $ the machine II. So,

$$\mathbb{P}(E=0)=\mathbb{P}(E=1)=\frac{1}{2}\Rightarrow \mathbb{P}\left([E=0]\cup [E=1]\right)=1$$

Now

$$\mathbb{P}(T\leq t)=\mathbb{P}\left([T\leq t]\cap ([E=1]\cup [E=0])\right)$$

$$=\mathbb{P}\left(([T\leq t]\cap [E=1])\bigcup ([T\leq t]\cap [E=0])\right)=\mathbb{P}\left(([T\leq t]\cap [E=1])\right)+ \mathbb{P}\left(([T\leq t]\cap [E=0])\right)$$

$$=\mathbb{P}\left(T\leq t| E=1\right)\mathbb{P}\left(E=1\right)+\mathbb{P}(T\leq t| E=0)\mathbb{P}(E=0)$$

Now, we have

$$\mathbb{P}(T\leq t| E=1)=\mathbb{T_2\leq t}=1-e^{-\lambda_2 t}$$

$$\mathbb{P}(T\leq t| E=0)=\mathbb{T_1\leq t}=1-e^{-\lambda_1 t}$$

And therefore:

$$\mathbb{P}(T\leq t)=\frac{1}{2}\left(1-e^{-\lambda_2 t}\right)+\frac{1}{2}\left(1-e^{-\lambda_1 t}\right)=1-\frac{1}{2}\left(e^{-\lambda_1 t}+e^{-\lambda_2 t}\right), \quad \quad t> 0$$

and then

d84e6b704696b08302cf2a5cc2a8bf49fe3bc04a

(b) Suppose the inspector stopped observing the chosen machine after one hundred hours, with the machine still running. What is the conditional probability that the chosen machine was machine I?

$$\mathbb{P}\left(E=0|T> 100\right)=\frac{\mathbb{P}\left(E=0 \cap [T> 100]\right)}{\mathbb{P}\left(T> 100\right)} =\frac{\mathbb{P}\left(T> 100| E=0\right)\mathbb{P}\left(E=0\right)}{\mathbb{P}\left(T> 100\right)}$$

$$=\frac{\mathbb{P}\left(T_1> 100\right)\mathbb{P}\left(E=0\right)}{\mathbb{P}\left(T> 100\right)}=\frac{e^{-\lambda_1 100}\frac{1}{2}}{\frac{1}{2}(e^{-\lambda_1 100}+e^{-\lambda_2 100})}=\frac{e^{\lambda_1 100}}{e^{-\lambda_1 100}+e^{\lambda_2 100}}$$

(c) What is the distribution of $ T $ if $ \lambda_1=\lambda_2=\lambda $?

From (a), we have

ffa1094e9d1bcb5175f91aa45ed39ee71492a4be

Example 2.5.14

Suppose that the time it takes two students to solve a problem are independent and exponential with parameter $ \lambda > 0 $. Calculate the probability that the first student will take at least twice as long as the second to solve the problem?

$$T_1=(\text{ Tempo que o primeiro estudante demora})$$

$$T_2=(\text{ Tempo que o segundo estudante demora})$$

with $ T_1 \sim exp(\lambda) $ and $ T_2 \sim exp(\lambda) $, with $ T_1 $ and $ T_2 $ are independent. So,

Screenshot_65

So,

$$\mathbb{P}(T_1\geq 2 T_2)=\int_A\int f_{T_1,T_2}(t_1,t_2)dt_1dt_2$$

with $ A=\lbrace ((t_1,t_2): 0 < t_1 \quad e \quad t_2\leq 2t_1)\rbrace $. So,

$$\mathbb{P}(T_1\geq 2T_2)=\int_0^\infty \int_0^{t_1/2} \lambda^2 e^{-\lambda t_1}e^{-\lambda t_2}dt_2dt_1=\int_0^\infty \lambda e^{-\lambda t_1}\left[-e^{-\lambda t_2}\right]_0^{t_1/2}dt_1$$

$$=\int_0^\infty \lambda e^{-\lambda t_1}\left(1-e^{-\lambda t_1/2}\right)dt_1=\int_0^\infty \lambda e^{-\lambda t_1}dt_1-\int_0^\infty \lambda e^{-\lambda \frac{3t_1}{2}}dt_1$$

$$=1+\left[\frac{3}{2}e^{-\lambda \frac{3}{2}t_1}\right]_0^\infty=1-\frac{2}{3}=\frac{1}{3}$$

Example 2.5.15

A point is selected at random (i.e., according to uniform distribution) from the following square:

figura-05

Let X and Y be the coordinates of the selected point

(a) What is the joint density of X and Y?

Having $ A=\lbrace ((x,y): |x|+|y|\leq 1)\rbrace $, then how $ (X,Y)\sim U(A) $, that is

78cbb695dfe58995510682a6dc845fb9f70b7fa9

(b) Find the marginal density of X.

2f3ddc45f4feeb342ede2c5e772ed65e228b0fb2

(c) Are X and Y independent?

No, because $ \exists B\subset A $, $ (x,y)\in B $ what does it imply $ f(x,y)\neq f_X(x)f_Y(y) $ and with the Lebesgue measure of $ B $ greater than zero.

So, similarly

4fe6fcadb7b98c979f38a6e646038ffd3c164b84

So be $ B\subset A $ such that $ (x,y)\in B $, which implies that $ (1-|x|)(1-|y|)\notin \frac{1}{2} $ then the lebesgue measure of B is greater than zero which implies that $ X $ and $ Y $ are not independent.

8.2.6 Conditional distribution: discrete case

As for any two events $ E $ and $ F $, the conditional probability of $ E $ given $ F $ is defined, as long as $ \mathbb{P}(F) \ > \ 0 $, by

$$\mathbb{P}(E|F)=\frac{\mathbb{P}(E\cap F)}{\mathbb{P}(F)}$$

so, if $ X $ and $ Y $ are discrete random variables, it is natural to define the conditional probability function of $ X $ given that $ Y=y $, by

$$p_{X|Y}(x|y)=\mathbb{P}(X=x|Y=y)=\frac{\mathbb{P}(X=x,Y=y)}{\mathbb{P}(Y=y)}=\frac{p(x,y)}{p_Y(y)}$$

for all values of y such that $ p_Y(y) \ > \ 0 $. Similarly, the cumulative distribution function of the conditional probability of $ X $ given that $ Y=y $ is defined for all $ y $ such that $ p_Y(y) > 0 $, by

$$F_{X|Y}(x|y)=\mathbb{P}(X\leq x| Y\leq y)=\sum_{a\leq x}p_{X|Y}(a|y)$$

Se $ X $ is independent of $ Y $, then the conditional probability function and the cumulative distribution function are the same as in the unconditional case. This happens because, if $ X $ is independent of $ Y $, then

$$p_{X|Y}(x|y)=\mathbb{P}(X=x|Y=y)=\frac{\mathbb{P}(X=x,Y=y)}{\mathbb{P}(Y=y)}=\frac{\mathbb{P}(X=x)\mathbb{P}(Y=y)}{\mathbb{P}(Y=y)}=\mathbb{P}(X=x).$$

Example 2.6.1

Suppose $ p(x,y) $, the joint probability function of $ X $ and $ Y $ be given by

$$p(0,0)=0,4 \qquad p(0,1)=0,2 \qquad p(1,0)=0,1 \qquad p(1,1)=0,3.$$

Calculate the conditional probability function of $ X $, given that $ Y=1 $.

Firstly, we observe that

$$p_Y(1)=\sum_{x}p(x,1)=p(0,1)+p(1,1)=0,5.$$

So

$$p_{X|Y}(0|1)=\frac{p(0,1)}{p_Y(1)}=\frac{2}{5}$$

and

$$p_{X|Y}(1|1)=\frac{p(1,1)}{p_Y(1)}=\frac{3}{5}.$$

Example 2.6.2

In a test with $ 10 $ true or false questions, what is the probability of getting all the questions right if we answer them all randomly? What if we answered randomly, but we know that there are more true answers than false answers?

Consider the event $ A=(\text{acertar todas as questões}) $. How there are $ 2^{10}=1024 $ possible combinations, then the probability of answering all the correct answers by answering only randomly is given by

$$\mathbb{P}(A)=1/1024.$$

Be $ B $ the set of points with more true answers than false ones.

Then the number of elements of $ B $ is

e85061634ac5bcfaa0d4c327e16cbe63005a3c55

and therefore $ \mathbb{P}(A|B)=\frac{\mathbb{P}(A \cap B)}{\mathbb{P}(B)}=\frac{1}{386} $.

Example 2.6.3

Suppose an urn contains $ 6 $ data, in which $ 3 $ of them are honest and the others $ 3 $ they are addicted. The biased dice have the following probability $ \mathbb{P}(1)=1/2 $ and $ \mathbb{P}(2) = \mathbb{P}(3) = \mathbb{P}(4) = \mathbb{P}(5) = \mathbb{P}(6)=1/10 $. A die is removed at random from the urn. What is the probability of being addicted, knowing that in two rolls the result was 1?

Consider the events $ A=(\text{O dado ser viciado}) $, $ B=(\text{Sair o número 1 na primeira e na segunda jogada}) $.

We want to find $ \mathbb{P}(A|B) $, but by Theorem 1.4.3 we have that

$$\mathbb{P}(A|B)= \frac{\mathbb{P}(B|A)\mathbb{P}(A)}{\mathbb{P}(B)}.$$

Let us then calculate each of the probabilities.

$$\mathbb{P}(B|A)=\mathbb{P}({(Sair 1 na primeira Jogada)}|A) \mathbb{P}({(Sair 1 na segunda Jogada)}|A)=\frac{1}{2}\frac{1}{2}=\frac{1}{4},$$

$$\mathbb{P}(A)=\frac{3}{6}=\frac{1}{2}$$

To find $ \mathbb{P}(B) $, we just need to use Theorem 1.4.2.

$$\mathbb{P}(B)=\mathbb{P}(B\cap A)+\mathbb{P}(B\cap A^{C})=\mathbb{P}(B|A)\mathbb{P}(A)+\mathbb{P}(B|A^{C})=\frac{1}{4}\frac{1}{2}+\frac{1}{36}\frac{1}{2}=\frac{10}{72}.$$

Therefore

$$\mathbb{P}(A|B)=\frac{1/8}{10/72}=\frac{9}{10}.$$

Therefore, the probability that the die is biased given that the number 1 came up twice is 90%.

Example 2.6.4

Assume the same conditions as the example above (Example 2.6.3). Knowing that in $ 3 $ launches in none of them was the result $ 1 $, what is the probability that the die is biased?

Consider the events $ A=(\text{O dado é viciado}) $ and $ B_i=(\text{Sair um número diferente de 1 na i-ésima jogada}) $ and be $ C= B_1 \cap B_2 \cap B_3 $. We want to find the probability of $ \mathbb{P}(A|C) $.

Using Theorem 1.4.3, we have

$$\mathbb{P}(A| C)=\frac{\mathbb{P}(C|A)\mathbb{P}(A)}{\mathbb{P}(C)}.$$

Let us then calculate each of the probabilities.

$$\mathbb{P}(C|A)=\mathbb{P}(B_1|A)\mathbb{P}(B_2|A)\mathbb{P}(B_3|A)=\frac{1}{2}\frac{1}{2}\frac{1}{2}=\frac{1}{8},$$

$$\mathbb{P}(A)=\frac{3}{6}=\frac{1}{2}.$$

To find $ \mathbb{P}(C) $, we just need to use Theorem 1.4.2.

$$\mathbb{P}(C)=\mathbb{P}(C\cap A)+\mathbb{P}(C\cap A^{C})=\mathbb{P}(C|A)\mathbb{P}(A)+\mathbb{P}(C|A^{C})=\frac{1}{8}\frac{1}{2}+\frac{5^3}{6^3}\frac{1}{2}=\frac{152}{432}.$$

Therefore

$$\mathbb{P}(A|B)=\frac{1/16}{152/432}=\frac{27}{152} \thickapprox 0,1776.$$

Therefore, given that number 1 did not come up in the first three rolls, we have an approximately 18% chance that the die is biased.

Example 2.6.5

Be $ X_1 $ and $ X_2 $ independent random variables, each with a geometric distribution defined by

$$ \mathbb{P}(X_i=n)=p(1-p)^n, n=0,1,2,\dots; \quad i=1,2;$$

in which $ 0< p < 1. $.(Note: This version of the geometric distribution corresponds to the distribution of the number of failures before the first success in a sequence of Bernoulli trials.)

(a) Calculate $ \mathbb{P}(X_1=X_2) $ and $ \mathbb{P}(X_1< X_2) $.

$$\mathbb{P}(X_1=X_2)=\sum_{n=0}^\infty \mathbb{P}(X_1=X_2=n)=\sum_{n=0}^\infty \mathbb{P}(X_1=n)\mathbb{P}(X_2=n)$$

$$\sum_{n=0}^\infty p^2[(1-p)^2]^n=\frac{p^2}{1-(1-p)^2}=\frac{p^2}{-p^2+2p}=\frac{p}{2-p}$$

Now $ \mathbb{P}(X_1> X_2)=\mathbb{P}(X_2> X_1) $ (symmetry) then

$$\mathbb{P}(X_1> X_2)+\mathbb{P}(X_2> X_1)+\mathbb{P}(X_1= X_2)=1$$

what does it imply

$$\mathbb{P}(X_1> X_2)=\frac{1-\mathbb{P}(X_1=X_2)}{2}$$

which implies that

$$\mathbb{P}(X_1> X_2)=\frac{\frac{2-p-p}{2-p}}{2}=\frac{2-2p}{4-2p}=\frac{1-p}{2-p}$$

(b) Determine the conditional distribution of $ X_1 $ given $ X_1+X_2 $.

$$\mathbb{P}(X_1=k|X_1+X_2=n)=\frac{\mathbb{P}(X_1=k,X_1+X_2=n)}{\mathbb{P}(X_1+X_2=n)}=\frac{\mathbb{P}(X_1=k,X_2=n+k)}{\mathbb{P}(X_1+X_2=n)}$$

$$\frac{\mathbb{P}(X_1=k)\mathbb{P}(X_2=n-k)}{\mathbb{P}(X_1+X_2=n)}$$

Now:

$$\mathbb{P}(X_1+X_2=n)=\sum_{k=0}^n\mathbb{P}(X_1=k,X_2=n-k)=\sum_{k=0}^n \mathbb{P}(X_1=k)\mathbb{P}(X_2=n-k)$$

$$\sum_{k=0}^n p^2(1-p)^n=(n+1)p^2(1-p)^n$$

So:

$$\mathbb{P}(X_1=k|X_1+X_2=n)=\frac{p(1-p)^kp(1-p)^{n-k}}{(n+1)p^2(1-p)^n}=\frac{1}{n+1}$$

with $ k=0,1,\dots,n $. Therefore, this distribution is uniform at the points $ k=0,1,\dots,n $

Example 2.6.6

A certain lamp has a lifetime, in hours, with an exponential distribution of parameter 1. A player turns on the lamp and, while the lamp is still lit, rolls a balanced die every fifteen seconds. What is the expected number of 3’s thrown by the player until the light bulb goes off?

$$T\sim Exp\left(\frac{1}{3600}s\right)$$

$ [T/15] $= number of times the player rolls the dice while the lamp was on. The experiment of throwing a dice and getting or not getting a 3 is a Bernoulli test conditioned on T.

$$\mathbb{P}(X=k|T=t)=\binom{[T/15]}{k}p^k(1-p)^{[T/15]^{-k}},k=0,1,\dots,[T/15]$$

and $ p=\frac{1}{6} $. So, $ \mathbb{E}(X|T)=p[T/15] $ and $ \mathbb{E}(X)=\mathbb{E}\left(\mathbb{E}(X|T)\right)=\frac{1}{6}\mathbb{E}([T/15]) $. Now,

$$\mathbb{P}([T/15]\geq k)=\mathbb{P}(T> 15k)=e^{-\frac{15}{3600}k}=e^{-\frac{1}{240}k}.$$

So

$$\mathbb{E}([T/15])=\sum_{k=0}^\infty \left(e^{-\frac{1}{240}}\right)^k=\frac{1}{1-e^{-\frac{1}{240}}}$$

So, $ \mathbb{E}(X)=\frac{1}{6}\frac{1}{1-e^{-1/240}}=40,08 $

Example 2.6.7

Particles arrive at a counter following a Poisson process with parameter $ \lambda $. At a certain time $ t $, a voltage is produced by multiplying the number of particles that have already entered the counter by a factor that is independent of this number and that has density:

d9bc8956c2b86386f71f21cad6219ef1feb91e8e

Find the probability that the voltage produced is less than 1.

$$X=Nk$$

in which k has density

d9bc8956c2b86386f71f21cad6219ef1feb91e8e

and $ N\sim Poisson(\lambda t) $. Now

$$\mathbb{P}(X< 1)=\mathbb{P}(0\leq X< 1)=\mathbb{P}(X=0)+\mathbb{P}(0< X< 1)$$

Now

$$\mathbb{P}(X=0)=\mathbb{P}(N=0,k \quad\text{qualquer}\quad)+\mathbb{P}(N\quad \text{qualquer} \quad,k=0)=e^{-\lambda t}$$

However, if $ 0< X < 1 $ if, and only if,

$$(0< k< \frac{1}{n})\Rightarrow \mathbb{P}\left(0< k < \frac{1}{n}\right)=\int_{0}^{1/n}\frac{1}{(1+x)^2}dx$$

making a substitution $ 1+x=y $ and $ dx=dy $.

$$\int_{0}^{1/n}\frac{1}{(1+x)^2}dx=-\frac{1}{y}\bigg|_1^{1+\frac{1}{n}}=1-\frac{1}{1+\frac{1}{n}}=\frac{n+1-n}{n+1}=\frac{1}{n+1}, \quad n=1,2,\dots.$$

So,

$$\mathbb{P}(X< 1)=\mathbb{P}(X=0)+\sum_{n=1}^\infty \mathbb{P}\left(0< k< \frac{1}{n}\right)\mathbb{P}(N=n) $$

$$=e^{-\lambda t}+\sum_{n=1}^\infty \frac{(\lambda t)^n}{(n+1)!}e^{-\lambda t}=e^{-\lambda t}\left(1+\frac{1}{\lambda t }\sum_{k=2}^\infty \frac{(\lambda t)^k}{k!}\right)$$

$$=e^{-\lambda t}\left[1+\frac{1}{\lambda t}\left(e^{\lambda t}-1-\lambda t\right)\right]=\frac{1}{\lambda t}[1-e^{-\lambda t}]$$

Example 2.6.8

Show that if X is a random variable having a symmetric distribution around zero, and if $ \mathbb{P}(X=0)=0 $, then the conditional distribution of $ X^2 $ given that $ X> 0 $ is equal to the distribution of $ X^2 $.

X has a symmetric distribution around zero if and only if $ \mathbb{P}(X\leq -x)=\mathbb{P}(X\geq x), \forall x \in \mathbb{R} $. Furthermore $ \mathbb{P}(X=0)=0 $ which implies that $ \mathbb{P}(0< X \leq x)=\mathbb{P}(-x\leq X < 0) $ for everyone $ x> 0 $. We want to prove that

$$\mathbb{P}(X^2\leq x| X> 0)=\mathbb{P}(X^2\leq x)$$

Now

$$\mathbb{P}(X^2\leq x | X> 0)=\frac{\mathbb{P}(X^2\leq x, X> 0)}{\mathbb{P}(X> 0)}=\frac{\mathbb{P}(0> X\leq \sqrt{x})}{\mathbb{P}(X> 0)}$$

and

$$\mathbb{P}(X^2\leq x | X< 0)=\frac{\mathbb{P}(X^2\leq x, X< 0)}{\mathbb{P}(X> 0)}=\frac{\mathbb{P}(-\sqrt{x}\leq X< 0)}{\mathbb{P}(X> 0)}$$

We then have to

$$\mathbb{P}(X^2\leq x | X< 0)=\mathbb{P}(X^2\leq x | X> 0)$$

are equal due to symmetry around zero, for all $ x> 0 $. So,

$$\mathbb{P}(X^2\leq x)=\mathbb{P}(X^2\leq x| X> 0)\mathbb{P}(X> 0)+\mathbb{P}(X^2\leq x|X=0)\mathbb{P}(X=0)\mathbb{P}(X^2\leq x | X< 0)$$

$$=\mathbb{P}(X^2\leq x |X> 0)\frac{1}{2}+\mathbb{P}(X^2\leq x| X> 0)\frac{1}{2}=\mathbb{P}(X^2\leq x|X> 0), \quad \forall x > 0$$

and for $ X=0 $ we have

dac4657f9ecbb60c4429c92ab68803cc7aa0eeac

From the above equation and the fact that

$$\mathbb{P}(X^2\leq x|X> 0), \quad \forall x > 0$$

then we have to $ X^2 $ and $ X^2|X> 0 $ are identically distributed (The distribution is determined by the probability distribution)

Example 2.6.9

Radioactive particles arrive at a counter following a Poisson process at an average rate of three per second, but the counter records only every second particle (i.e., only particles numbered $ 2,4,6,\dots $).

(a) Be $ X_t $ the number of particles recorded up to time t. It is $ (\lbrace X_t: t\geq 0\rbrace) $ a Poisson process? If so, what is the parameter? If not, explain why.

$ (Y_t)_{t\geq 0} $ is a Poisson process if and only if $ \mathbb{P}(Y_t=k)=\frac{\lambda t }{k!}e^{-\lambda t} $. Now,

$$\mathbb{P}(X_t=k)=\mathbb{P}(Y_t=2k\quad\text{ou}\quad Y_t=2k+1)=\left[\frac{(\lambda t)^{2k}}{(2k)!}+\frac{(\lambda t)^{2k+1}}{(2k+1)!}\right] e^{-\lambda t}$$

then $ X_t $ It is not a Poisson process.

(b) Assuming that the counter recorded exactly one particle during the first second, what is the probability that it will not record any more particles before time 2?

$$\mathbb{P}(X_2=X_1| X_1=1)=\frac{\mathbb{P}(X_2=X_1=1)}{\mathbb{P}(X_1=1)}$$

$$=\frac{\mathbb{P}(Y_1=2, Y_2-Y_1=0)+\mathbb{P}(Y_1=2,Y_2-Y_1=1)+\mathbb{P}(Y_1=3,Y_2Y_1=0)}{\mathbb{P}(Y_1=2)+\mathbb{P}(Y_1=3)}$$

Now $ Y_1\sim Poisson(\lambda) $ and $ Y_2-Y_1\sim Poisson(\lambda) $ are independent. So,

$$\mathbb{P}(X_2=X_1|X_1=1)=\frac{\mathbb{P}(Y_1=2)\left(\mathbb{P}(Y_2-Y_1=1)+\mathbb{P}(Y_2-Y_1=0)\right)\mathbb{P}(Y_1=1)\mathbb{P}(Y_2-Y_1=0)}{ \mathbb{P}(Y_1=2)+\mathbb{P}(Y_1=3)}$$

$$=\frac{\frac{\lambda^2}{2}e^{-\lambda t }(\lambda+1)e^{-\lambda t}+\frac{\lambda^3}{6}e^{-\lambda t}e^{-\lambda t}}{\frac{\lambda^2}{2}e^{-\lambda t}+\frac{\lambda^3}{6}e^{-\lambda t}}$$

$$=\frac{e^{-\lambda t}\lambda^2\left(\frac{\lambda+1}{2}+\frac{1}{6}\right)}{\lambda^2\left(\frac{1}{2}+\frac{\lambda}{6}\right)}=\frac{3\lambda +4}{\lambda+3}e^{-\lambda t}$$

Example 2.6.10

A counter receives pulses from two independent sources, A and B. Source A generates pulses according to a Poisson process with parameter $ \lambda > 0 $, while source B generates impulses according to a Poisson process with parameter $ \xi > 0 $. Suppose the counter records every impulse generated by the two sources.

(a) Be $ X_t $ the number of pulses registered by the counter until the time $ t, t > 0 $ ($ X_0=0 $). Explain why $ (\lbrace X_t: t\geq 0\rbrace) $ it is a Poisson process (an intuitive explanation is enough). What is the parameter?

It is a Poisson process because:

a) Independent increments

b) Stationary increments

c) 2 do not arrive simultaneously and with parameter $ \lambda+\xi $.

(b) What is the probability that the first impulse recorded is from source A?

We know that $ X_{\lambda} $ and $ X_{\lambda+\xi}-X_{\xi} $ are independent with $ X_{\lambda}\sim Poisson(\lambda) $ and $ X_{\lambda+\xi}-X_{\lambda}\sim Poisson(\xi) $. So

$$\mathbb{P}(X_{\lambda}=1|X_{\lambda+\xi}=1)=\frac{\lambda}{\lambda+\xi}$$

(c) Given that exactly 100 pulses were counted during the first unit of time, what distribution would you assign to the number emitted by source A?

$$\mathbb{P}(X_\lambda=k| X_{\lambda+\xi}=100)=\binom{100}{k}\left( \frac{\lambda}{\lambda+\xi}\right)^k\left( \frac{\xi}{\lambda+\xi}\right)^{100-k},$$

$ k=0,1,\dots,100 $ being a $ Binomal\left(100,\frac{\lambda}{\lambda+\xi}\right) $

Example 2.6.11

It is said that $ X=(X_1,\dots, X_k) $ has multinomial distribution with parameters $ p_1,\dots ,p_k $ and n, in which $ p_i\geq 0 $ and $ \displaystyle \sum_{i=1}^k p_i=1 $, if

$$\mathbb{P}(X=(j_1, \dots, j_k))=\frac{n!}{j_1!j_2!\dots j_k!}p_1^{j_1}p_2^{j_2}\dots p_k^{j_k}$$

for every choice of $ j_1,\dots, j_k $ non-negative integers such that $ \sum_{\ell=1}^k j_\ell =n $.

(a) Prove that $ X_i\sim b(n,p_i), i=1,\dots,k. $

We have to:

$$\mathbb{P}(X_i=m)=\sum_{(j_1,\dots, j_k)}\frac{n!}{j_1!\dots j_{i-1}!m!j_{i+1}!\dots j_k!}p_1^{j_1}p_2^{j_2}\dots p_1^m\dots p_k^{j_k}$$

in which $ j_{\ell}\geq 0 $ and $ \sum_{\ell\neq i}^k j_\ell=n-m $.

So,

$$\frac{n!}{m!}p_i^m \sum \frac{1}{j_1!\dots j_k!}p_1^m\dots p_k^{j_k}$$

Now dividing and multiplying by $ (1-p_i)^{n-m} $, we have

$$\mathbb{P}(X_1=m)=\frac{n!}{m!(n-m)!}p_i^m(1-p_i)^{n-m}\sum \frac{(m-n)!}{j_1!\dots j_k!}\left(\frac{p_i}{1-p_i}\right)^{j_1} \dots \left(\frac{p_i}{1-p_i}\right)^{j_k}$$

but the right side of the equation represents a multinomial, and therefore is equal to 1. Therefore we have that $ X_i\sim b(n,p_i),\quad i=1,2,\dots,k $

(b) Let $ 0< s_1< s_2< \dots< s_k=t. $ Show that in the Poisson process, given that $ X_t=n, $ the conditional distribution of $ X_{s_1},X_{s_2}-X_{s_1}, \dots , X_t-X_{s_{k-1}} $ is multinomial with parameters $ \frac{s_1}{t},\frac{s_2-s_1}{t}, \dots, 1- \frac{s_{k-1}}{t} $ and n. (Note that this distribution does not depend on the parameter $ \lambda $ of the process.)

Given that up to time t n particles have arrived, the distribution of arrival times is equal to that of a random sample of n elements from a uniform v.a. $ [0,t] $. So the distribution in question will be:

$$\mathbb{P}(X_{s_1}=j_1,X_{{s_2}}-X_{s_1}=j_2, \dots, X_{t}-X_{s_{k-1}}=j_k|X_t=n)=\frac{n!}{j_1!\dots j_k!}p_1^{j_1}\dots p_k^{j_k}$$

for $ (j_1,j_2,\dots,j_k) $ such that $ \sum_{j=1}^k j_i=n $ and $ j_i $ non-negative integer otherwise it is zero which implies that it is a multinomial.

Example 2.6.12

An exhibition runs for a period of T hours. Visitors arrive at the exhibition according to a Poisson process with a rate $ \lambda $ visitors/hour. Visitors remain in the exhibition until the end of the period. Calculate the total average time spent by visitors at the exhibition. %Given that only one visitor arrived during T hours, what is the average time he stays in the exhibition?

Be $ Y(T) $ number of visitors arriving at T, which implies that $ Y(T)\sim Poisson(\lambda T) $ and then being $ T_1,T_2,\dots, T_n $ the arrival times of n-visitors, we have to $ T_i $ independent $ T_j $ and $ T_i\sim U[0,T] $$ i=1,2,\dots,n $ and

$$\mathbb{E}(T_i)=\frac{T}{2}$$

for any i. So be $ X= $ Total average time spent by visitors at the exhibition:

$$\mathbb{E}(X|Y=n)=\sum_{i=1}^n (T-T_i)=nT - \sum_{i=1}^n T_i.$$

Now then

$$\mathbb{E}(X|Y=n)=nT-\sum_{i=1}^n \mathbb{E}(T_i)=nT-\frac{nT}{2}=n\frac{T}{2}.$$

So $ \mathbb{E}(X)=\mathbb{E}\left(\mathbb{E}(X|Y=n)\right)=\frac{T}{2}\mathbb{E}(Y)=\frac{T^2}{2}\lambda $

Example 2.6.13

Suppose that the number of raisins in an English cake has a Poisson distribution with parameter 60. A player buys a cake, takes out all the raisins one by one and distributes the raisins between him and you in the following way: after extracting each raisin he tosses a balanced coin, giving the raisin to you if it comes up heads, and eating the raisin himself if it comes up tails. What is the distribution of the number of raisins you receive? The hope?

We have to $ X= $ number of raisins you receive and $ Y= $ number of raisins extracted. So, $ X|Y=n\sim b\left(n,\frac{1}{2}\right) $ then

$$\mathbb{P}(X=k)=\sum_{n=k}^\infty \mathbb{P}(X=k|Y=n)\mathbb{P}(Y=n)=\sum_{n=1}^\infty \frac{n!}{(n-k)!k!}\left(\frac{1}{2}\right)^{n} \frac{\lambda^n}{n!}e^{-\lambda}$$

$$=\frac{e^{-\lambda}\left(\frac{\lambda}{2}\right)^k}{k!}\sum_{n=k}^\infty \frac{\left(\frac{\lambda}{2}\right)^{n-k}}{(n-k)!}$$

$$=\frac{e^{-\lambda}\left(\frac{\lambda}{2}\right)^ke^{\lambda/2}}{k!}=\frac{\left(\frac{\lambda}{2}\right)^ke^{-\lambda}}{k!}$$

i.e. $ X\sim Poisson\left(\frac{\lambda}{2}\right) $, like $ \lambda/2=30 $. Now

$$\mathbb{E}(X|Y=n)=n\frac{1}{2}$$

which implies that

$$\mathbb{E}(X)=\mathbb{E}\left(\mathbb{E}(X|Y=n)\right)=\frac{1}{2}\mathbb{E}(n)=\frac{1}{2}60=30.$$

Example 2.6.14

Let X and Y be independent such that $ X\sim b(m,p) $ and $ Y \sim b(n,p) $. Obtain the given conditional distribution of X $ X+Y $. What is this distribution called?

We know that if $ X\sim b(m,p) $ and $ Y\sim b(n,p) $ are independent, which means that $ X+Y\sim b(m+n,p) $. So,

$$\mathbb{P}(X=k|X+Y=z)=\frac{\mathbb{P}(X=k,X+Y=z)}{\mathbb{P}(X+Y=z)}=\frac{\mathbb{P}(X=k)\mathbb{P}(Y=z-k)}{\mathbb{P}(X+Y=z)}$$

$$=\frac{\binom{m}{k}p^k(1-p)^{m-k}\binom{n}{z-k}p^{k-z}(1-p)^{n-(k-z)}}{\binom{m+n}{z}p^z(1-p)^{m+n-z}}=\frac{\binom{m}{k}\binom{n}{k-z}}{\binom{m+n}{z}}$$

which is a hypergeometric distribution with $ N=m+n $ and $ D=m $.

Example 2.6.15

Two radioactive sources, I and II, emit particles (independently) according to Poisson processes with, respectively, parameter $ \lambda $ and $ \xi $. Be $ Z_t $ the total number of particles emitted up to time t, for $ t\geq 0 $. Given that $ Z_t=k $, where $ k> 0 $, what is the conditional probability that the last particle emitted before time t was from source I? (The answer is the same as in example 2.6.10(b). A possible verification method: use example 1.4.13(e), with $ A_n $ the event “n particles emitted up to time t by source I”.)

We have to $ X_t\sim Poisson(\lambda) $ and $ X_{2t}\sim Poisson(\xi) $ independent, which implies that $ Z_t=X_t+X_{2t}\sim Poisson(\lambda+\xi) $. So given that k particles arrive $ X_{\lambda+\xi}=k $, arrival times $ T_1,T_2,\dots,T_k $ are uniform random variables in $ [0,\lambda+\xi] $ then, the probability that the last one was from source I is

$$\mathbb{P}(\text{última é da fonte I})=\frac{\lambda}{\lambda+\xi}$$

Example 2.6.16

Consider a Poisson process with parameter $ \lambda> 0 $.

(a) For $ t> 0 $ fixed, whether $ Z_t $ the time elapsed until instant t since the immediately previous occurrence (“arrival”). ($ Z_t=t $ if there was no arrival in $ (0,t] $.) Calculate the distribution of $ Z_t $.(Note that distribution is approximately exponential when t is large.)

So, $ (X_t)_{t\geq 0} $ It is a Poisson process $ Z_t= $ time elapsed up to time t since the immediate previous occurrence. For $ z< 0 $ and $ \mathbb{P}(Z_t\leq z)=0 $ (since Z is v.a. non-negative), $ \mathbb{P}(Z_t=0)=\mathbb{P}(\text{chega 1 partícula em t=0})=0 $. Now, for $ 0< z< t $:

$$\mathbb{P}(Z_t> z)=\mathbb{P}(\text{não ocorrer nenhuma chegada em} [t-z,t])=e^{-\lambda z}$$

then $ \mathbb{P}(Z_t\leq z)=1-e^{-\lambda z} $. Now for $ z\geq t $

$$\mathbb{P}(Z_t=t)=\mathbb{P}(\text{não ocorrer nenhuma chegada em }[0,t])=e^{-\lambda t}$$

and also $ \mathbb{P}(Z_t\leq t)=1 $ which implies that $ \mathbb{P}(Z_t\leq z)=1 $ for $ z\geq t $. Then the distribution of $ Z_t $ will be

2d15238f39a0ea21bc57fc2ed5f0677322d32eb0

Note: When $ t\rightarrow \infty $, this distribution weakly converges to the distribution $ Exp(\lambda) $.

(b) If $ T_{n+1} $ is the time elapsed between the $ n- $th arrival and arrival number $ n+1 $, what is the distribution of $ T_{n+1} $? Determine the distribution of $ W_t= $ time that elapses between time t and the next arrival.

We know that waiting times are independent and identically distributed random variables with distribution $ Exp(\lambda) $, then

$ T_{n+1}\sim Exp(\lambda) $, like this:

46a1684fe168bec30eb1c9bfeeeed9e4aca730d6

Now be $ W_t= $ times elapsed between time t and the next arrivals. $ W_t $ is a non-decreasing random variable and

$$\mathbb{P}(W_t=0)=\mathbb{P}(\text{ocorreu uma chegada em }t)=0$$

Now $ w> 0 $, we have

$$\mathbb{P}(W_t> w)=\mathbb{P}(\text{não ocorreu nenhuma chegada em }[t,t+w])=e^{-\lambda w}$$

which implies that

$$\mathbb{P}(W_t\leq w)=1-e^{-\lambda w}$$

then $ W_t $ has distribution

46a1684fe168bec30eb1c9bfeeeed9e4aca730d6

(c) Show that $ Z_t+W_t $, the time between arrivals that “surround” instant t, is stochastically strictly greater than $ T_{n+1} $, i.e.

$$\mathbb{P}(Z_t+W_t\leq x)< \mathbb{P}(T_{n+1}\leq x)$$

$ \forall x> 0. $(This is the “waiting time paradox.")

We have $ Z_t $ and $ W_t $ are independent so $ \rho\leq t $, we have

$$\mathbb{P}(Z_t+W_t\leq \rho)=\int_0^\rho \int_0^{\rho-z}\lambda^2e^{-\lambda z}e^{-\lambda w}dwdz$$

$$=\int_0^\rho \lambda e^{-\lambda z}\left[-e^{-\lambda z}\right]_0^{\rho-z}dz=\int_0^\rho \lambda e^{-\lambda z}(1-e^{-\lambda(\rho -z)})dz$$

$$=\int_0^\rho \lambda e^{-\lambda z}dz-\int_0^\rho \lambda e^{-\lambda \rho}dz=1-e^{-\lambda\rho}-\lambda \rho e^{-\lambda \rho}< 1-e^{-\lambda \rho}.$$

Now for $ \rho\geq t $, we have

$$\mathbb{P}(Z_t+W_t\leq \rho)=\int_0^t\int_0^{\rho-z}\lambda^2 e^{-\lambda z}e^{-\lambda w}dwdz=\int_0^t \lambda e^{-\lambda z}dz-\int_0^t \lambda e^{-\lambda \rho}dz=1-e^{-\lambda t}-\lambda te^{-\lambda \rho}$$

So $ \rho\geq t $:

$$\mathbb{P}(Z_t+W_t\leq \rho)=1-e^{-\lambda t}-\lambda te^{-\lambda \rho}$$

Now $ \rho\geq t $ which implies that

$$e^{-\lambda t}\geq e^{-\lambda \rho}$$

so how $ \lambda t e^{-\lambda t}> 0 $, we have to

$$\mathbb{P}(Z_t+W_t\leq \rho)< 1-e^{-\lambda \rho}$$

Summing it all up, we have to

$$Z_t+W_t$$

is stochastically greater than $ T_{n+1} $.

Example 2.6.17

Be $ X_1,X_2,\dots $ a sequence of independent and identically distributed random variables having an exponential distribution with mean $ \frac{1}{\lambda} $, in which $ \lambda > 0 $. For $ t> 0 $ fixed, whether $ N=\max\lbrace n\geq 0: S_n\leq t\rbrace $, in which $ S_0=0 $ or equal to t. Show that N has a Poisson distribution with mean $ \lambda t. $

Screenshot_66

So

$$[N=m]=[\max\lbrace n\geq 0:S_n\leq t\rbrace]=[T_{(m)}\leq t< T_{(m+1)}]=[X_t=m]$$

then

$$\mathbb{P}(N=m)=\mathbb{P}(X_t=m)=\frac{(\lambda t)^m}{m!}e^{\lambda t}\sim Poisson(\lambda t)$$

which implies that $ \mathbb{E}(N)=\lambda t $.

8.2.7 Conditional distribution: continuous case

Se $ X $ and $ Y $ are random variables with a joint probability density function $ f(x,y) $, then the probability density function of $ X $, given that $ Y=y $ is defined for all values $ y $ such that $ f_Y(y) \ > \ 0 $, by

$$f_{X|Y}(x|y)=\frac{f(x,y)}{f_Y(y)}$$

To motivate this definition, we multiply the left side of the equation by $ dx $ and the right side by $ (dx dy)/dy $. In this way, we obtain

$$f_{X|Y}(x|y)dx=\frac{f(x,y)dxdy}{f_Y(y)dy}\approx \frac{\mathbb{P}(x\leq X\leq x+dx,y\leq Y\leq y+dy)}{\mathbb{P}(y\leq Y\leq y+dy)}$$

i.e.

$$f_{X|Y}(x|y)dx=\mathbb{P}(x\leq X\leq x+dx|y\leq Y\leq y+dy).$$

In other words, for small values of $ dx $ and $ dy $, $ f_{X|Y}(x|y)dx $ represents the conditional probability of $ X $ be between $ x $ and $ x+dx $, given that $ Y $ is between $ y+dy $.

The use of conditional densities allows us to define conditional probabilities of events associated with a random variable when given the value of a second random variable. That is, if $ X $ and $ Y $ are jointly distributed, so for any set $ A $,

$$\mathbb{P}(X\in A|Y=y)=\int_A f_{X|Y}(x|y) dx$$

In particular, taking A=(-∞,a], we can define the cumulative distribution function of $ X $, given that $ Y=y $, by

$$F_{X|Y}(a|y)=\mathbb{P}(X\leq a|Y=y)=\int_{-\infty}^a f_{X|Y}(x|y) dx.$$

Furthermore, we have to

$$F_{X,Y}(x,y)=\int_{-\infty}^y F_X(x|Y=t)dF_Y(t), \forall (x,y)\in \mathbb{R}^2$$

In which the integral above is the Lebesgue integral.

Example 2.7.1

The joint density of $ X $ and $ Y $ is given by

bcf366a4df1e0ddeae25547d711463874c222e91

Calculate the conditional density of $ X $, given that $ Y=y $, when $ 0 \ < \ y \ < \ 1 $.

For $ 0 \ < \ x \ < \ 1 $, $ 0 \ < \ y \ < \ 1 $, we have to

$$f_{X|Y}(x|y)=\frac{f(x,y)}{f_Y(y)}=\frac{f(x,y)}{\int_{-\infty}^{\infty} f(x,y)dx}=\frac{x(2-x-y)}{\int_0^1 x(2-x-y)dx}$$

i.e.

$$f_{X|Y}(x|y)=\frac{x(2-x-y)}{\frac{2}{3}-\frac{y}{2}}=\frac{6x(2-x-y)}{4-3y}.$$

Se $ X $ and $ Y $ are independent continuous random variables, the conditional density of $ X $, given $ Y=y $, is precisely the unconditional density of $ X $. This occurs because, in the independent case, we have

$$f_{X|Y}(x|y)=\frac{f(x,y)}{f_Y(y)}=\frac{f_X(x)f_Y(y)}{f_Y(y)}=f_X(x)$$

We can also speak of conditional distributions when the random variables are neither jointly continuous nor jointly discrete. For example, suppose that $ X $ is a continuous random variable with a probability density function $ f $ and $ N $ is a discrete random variable and consider the conditional distribution of $ X $ given that $ N=n $. So

$$\frac{\mathbb{P}(x \ < \ X \ < \ x+dx|N=n)}{dx}=\frac{\mathbb{P}(N=n|x \ < \ X \ < x+dx)}{\mathbb{P}(N=n)}\frac{\mathbb{P}(x \ < \ X \ < \ x+dx)}{dx}$$

and, doing $ dx $ tend to $ 0 $, we have to

$$\lim_{dx\to 0}\frac{\mathbb{P}(x \ < \ X \ < \ x+dx|N=n)}{dx}=\frac{\mathbb{P}(N=n|X=x)}{\mathbb{P}(N=n)}f(x)$$

which shows us that the conditional density of $ X $ given that $ N=n $ is given by

$$f_{X|N}(x|n)=\frac{\mathbb{P}(N=n|X=x)}{\mathbb{P}(N=n)}f(x).$$

Example 2.7.2

Suppose $ Y $ have density $ f_Y(y) $ and that the conditional distribution of X, given that $ Y=y $, has density $ f(x|y) $, for all $ y $ (or at least for “almost every” possible value of Y). Demonstrate that

$$f(x,y)= f_Y(y)f(x|y)$$

is the joint density of $ X $ and $ Y $.

We have for

$$F_{X,Y}(x,y)=\int_{-\infty}^y F_X(x|Y=t)dF_Y(t), (x,y)\in \mathbb{R}^2$$

that

$$F_{X,Y}(x,y)=\int_{-\infty}^y F_X(x|Y=y)dF_Y(t)$$

Now if $ Y $ and $ X|Y $ are absolutely continuous distributions so

$$dF_Y(y)=f_Y(y)dy$$

and

$$F_X(X|Y=y)=\int_{-\infty}^x f_{X|Y=y}(x)dx$$

So,

$$F_{X,Y}(x,y)=\int_{-\infty}^y \left[\int_{-\infty}^x f_{X|Y=y}(x)dx\right]f_Y(y)dy= \int_{-\infty}^y \int_{-\infty}^x f_{X|Y=y}(x) f_Y(y)dxdy$$

So, by the definition of probability density

$$f_{X,Y}(x,y)=f_{X|Y=y}(x)f_Y(y)$$

Example 2.7.3

Consider the following two-step experiment: first, choose a point $ x $ according to the uniform distribution in (0,1); then choose a point $ y $ according to uniform distribution in $ (-x,x) $. If the random vector $ (X,Y) $ represent the result of the experiment, what will be the joint density of X and Y? The marginal density of Y? The conditional density of X given Y?

We have to $ X\sim U[0,1] $ what does it imply

Screenshot_67

Screenshot_68

then using example 2.7.2:

$$f_{X,Y}(x,y)=f_{Y|X=x}(y)f_X(x)$$

then

Screenshot_70

and the result follows

Example 2.7.4

Two lamps are observed during their useful lives. Assume independent and exponential parameter lives $ \lambda $. Let X be the burning time of the first lamp to burn and Y be the burning time of the second to burn ($ X\leq Y $).

(a) What is the conditional distribution of X given Y?

Be $ Z_1\sim Exp(\lambda) $ and $ Z_2\sim Exp(\lambda) $ independent and $ X=\min(Z_1,Z_2) $ and $ Y=\max(Z_1,Z_2) $. So

Screenshot_69

So,

$$f_{X,Y}(x,y)=\frac{\partial^2 F_{X,Y}(x,y)}{\partial x\partial y}=\frac{\partial}{\partial x}\left[2(1-e^{-\lambda y})\lambda e^{-\lambda y} -2(e^{-\lambda x}-e^{-\lambda y})\lambda e^{-\lambda y}=2\lambda^2 e^{-\lambda x}e^{-\lambda y}\right]$$

Screenshot_71

(b) What is the distribution of Y given X?

Example 2.7.5

Suppose that (X,Y) has a uniform distribution in A, where A is a region of positive area. Show that the conditional distribution of X given that $ Y=y $ is uniform in $ A_y $, the section of A by y, where we define $ A_y=\lbrace (x:(x,y)\in A)\rbrace$.

Be $ (X,Y)\sim U(A) $ if, and comment if, $ \mathbb{P}(B\in \mathcal{B}^2)=\frac{\text{área}(B\cap A)}{\text{área}(A)} $

Now how $ \text{Área}(A)> 0 $ what does it imply $ (X,Y) $ is absolutely continuous random variables and

Screenshot_72

then $ X|Y=\bar{y} $ is uniform in $ A\bar{y} $

Example 2.7.6

Demonstrate that if $ \mathbb{P}(X\in B| Y=y)=\mathbb{P}(X\in B) $ for everyone $ B\in \mathcal{B} $ and $ y\in \mathbb{R}, $ then $ X $ and $ Y $ are independent, so that $ X $ and $ Y $ are independent if, and only if, the conditional distribution does not depend on the value of Y.

We have to

$$\mathbb{P}(X\leq x| Y=y)=\mathbb{P}(X\leq x)$$

which implies that $ F_{X|Y=y}(x)=F_X(x) $ so, for

$$F_{X,Y}(x,y)=\int_{-\infty}^y F_X(x|Y=t)dF_Y(t), (x,y)\in \mathbb{R}^2$$

$$F_{X,Y}(x,y)=\int_{-\infty}^y F_{X|Y=y}(x)dF_Y(y)=\int_{-\infty}^y F_X(x)dF_Y(y)-F_X(x)\int_{-\infty}^y dF_Y(y)=F_X(x)F_Y(y)$$

which implies that X and Y are independent. Now, from case II we see that $ X,Y $ independent means that

$$\mathbb{P}(X\in B|Y=y)=\mathbb{P}(X\in B)$$

with $ B\in \mathcal{B} $ and $ y\in \mathbb{R} $.

Example 2.7.7

19- Let X be a random variable with density $ f(x) $, where f is continuous. What is the conditional distribution of X given $ |X| $? Check your answer.

Given that $ |X|=y $ the possible values of X are $ -y $ and $ y $ then the distribution of X given $ |X|=y $ should be concentrated on the points $ -y $ and $ y $ and, by the principle of preserving relative chances, we have to

$$\mathbb{P}(X=y| |X|=y)=\frac{f_X(y)}{f_X(y)+f_X(-y)}$$

and

$$\mathbb{P}(X=-y| |X|=y)=\frac{f_X(-y)}{f_X(y)+f_X(-y)}$$

Now, let’s check the $ \mathbb{P}(X\in B| Y=y)=\lim_{\Delta y\rightarrow 0}\mathbb{P}(X\in B| Y\in I) $, where I is an interval containing y, of length $ \Delta y $. Be $ B\subset \mathcal{B} $ in which $ B $ is an open interval of rational extremes that contains y and $ I=(r_1,r_2)\cup(-r_2,-r_1) $ in which $ r_1< y < r_2 $. So

$$\lim_{\Delta y\rightarrow 0}\mathbb{P}(B\in \mathcal{B}|y\in I)=\lim_{\Delta \rightarrow 0}\frac{\mathbb{P}(B\in \mathcal{B},y\in I)}{\mathbb{P}(y\in I)}.$$

Now,

Screenshot_73

since f is continuous in $ y $ then

$$\mathbb{P}(X=y||X|=y)=\frac{f_X(y)}{f_X(y)+f_X(-y)}.$$

Similarly for $ -y $ we will have:

$$\mathbb{P}(X=-y||X|=y)=\frac{f_X(-y)}{f_X(y)+f_X(-y)}.$$

This defines the conditional distribution.

Example 2.7.8

Be $ X $ and $ Y $ independent, each with distribution $ N(0,\sigma^2) $. What is the conditional distribution of given X $ \sqrt{X^2+Y^2} $?

We know from example 2.6.14 that:

$$\frac{(X,Y)}{\sqrt{X^2+Y^2}=z}$$

is uniform in $ A_z $, in which

Screenshot_74

Now applying the principle of substitution we have

$$\frac{(X,Y)}{\sqrt{X^2+Y^2}=z}\sim \left(\frac{(X)}{\sqrt{X^2+Y^2}=z},\frac{(Y)}{\sqrt{X^2+Y^2}=z}\right)$$

then:

Screenshot_75

$$=\frac{1}{2\pi z}\int_{B_t\cap A_z}dxdy=\frac{1}{2\pi z}\text{Comp}(B_t\cap A_z)$$

Now for $ 0< t< z $, we have to

$$\text{Comp}(B_t^c\cap A_z)=2z\arccos\left(\frac{t}{z}\right)$$

figura-20-leao

So

$$F_{X/z}(t)=\frac{2\pi z-\text{Comp}(B_t^c\cap A_z)}{2\pi z}=1-\frac{1}{\pi}\arccos\left(\frac{t}{z}\right)$$

Then, by analogy, we observe that $ X/z $ is symmetric about zero and so

Screenshot_84

Now how $ X/Z $ is symmetric around zero and limited (and therefore integrable) we have that

$$\mathbb{E}\left(X|\sqrt{X^2+Y^2}\right)=0$$

Example 2.7.9

Explain how the cases below can be considered consequences of the principle of preservation of relative chances.

\textbf{Case I:} Y is a discrete random variable and takes on the values $ y_1,y_2, \dots $. We have to $ B_1=[X\leq x_1] $, $ B_2=[X\leq x_2] $, so for $ y_n $ such that

$$\mathbb{P}(Y=y_n)> 0$$

we have

$$\frac{\mathbb{P}(X\leq x_1|Y=y_n)}{\mathbb{P}(X\leq x_2|Y=y_n)}=\frac{\frac{\mathbb{P}(X\leq x_1,Y=y_n)}{\mathbb{P}(Y=y_n)}}{\frac{\mathbb{P}(X\leq x_2,Y=y_n)}{\mathbb{P}(X\leq x_2,Y=y_n)}}=\frac{\mathbb{P}(X\leq x_1,Y=y_n)}{\mathbb{P}(X\leq x_2,Y=y_n)}$$

Then, the relative flames are preserved and we can consider division by

$$\mathbb{P}(Y=y_n)$$

as a normalization because

$$\mathbb{P}(Y=y_n)=\lim_{x\rightarrow \infty}\mathbb{P}(X\leq x, Y=y_n)$$

\textbf{Case II:} $ X $ and $ Y $ are independent random variables, so if

$$\mathbb{P}(Y=y)> 0$$

So, we have to

$$\frac{\mathbb{P}(X\leq x_1|Y=y)}{\mathbb{P}(X\leq x_2|Y=y)}=\frac{\mathbb{P}(X\leq x_1)}{\mathbb{P}(X\leq x_2)}$$

$$=\frac{\mathbb{P}(X\leq x_1)\mathbb{P}(Y=y)}{\mathbb{P}(X\leq x_2)\mathbb{P}(Y=y)}=\frac{\mathbb{P}(X\leq x_1,Y=y)}{\mathbb{P}(X\leq x_2,Y=y)}$$

Then, the relative chances in this case are preserved as well and we can consider

$$\lim_{x\rightarrow \infty}\mathbb{P}(X\leq x, Y=y)=\mathbb{P}(Y=y).$$

Example 2.7.10

Let X and Y be the minimum and maximum of two independent random variables with common distribution $ Exp(\lambda) $, in which $ \lambda > 0 $. Show in two ways that $ Y-X| X\sim Exp(\lambda) $

(a) From the joint density of X and Y-X.

We have $ T_1\sim Exp(\lambda) $$ T_2\sim Exp(\lambda) $ with $ T_1 $ and $ T_2 $ are independent. Be $ X=\min(T_1,T_2) $ then

$$\mathbb{P}(X\leq x)=1-\mathbb{P}(X> x)=1-\mathbb{P}(T_1> x)\mathbb{P}(T_2> x)=1-e^{-2\lambda x}$$

and $ Y=\max(T_1,T_2) $ then $ \mathbb{P}(Y\leq y)=\mathbb{P}(T_1\leq y)\mathbb{P}(T_2\leq y)=\left(1-e^{-\lambda y}\right)^2 $, $ y\geq 0 $ and also

$$\mathbb{P}(X\leq x, Y\leq y)=\mathbb{P}(Y\leq y)-\mathbb{P}(X> x, Y\leq y)=\mathbb{P}(Y\leq y)-\mathbb{P}(x< T_1\leq y,x< T_2\leq y)$$

$$=\mathbb{P}(Y\leq y)-\left[F_{T_1}(y)-F_{T_1}(x)\right]^2=\left(1- e^{-\lambda y}\right)^2-\left(e^{-\lambda x}-e^{-\lambda y}\right)^2, \quad \quad 0\leq x\leq y$$

then

$$f_X(x)=\frac{\partial F_X(x)}{\partial x}=\frac{\partial}{\partial x}[1-e^{-2\lambda x}]=2\lambda e^{-2\lambda x}, \quad x> 0$$

$$f_Y(y)=\frac{\partial F_Y(y)}{\partial y}=\frac{\partial}{\partial y}[1-e^{-2\lambda y}]^2=2\lambda e^{-\lambda y}(1-e^{\lambda y}), \quad y> 0$$

$$f_{X,Y}(x,y)=\frac{\partial^2 F_{X,Y}(x,y)}{\partial y\partial x}=\frac{\partial}{\partial y\partial x}[(1-e^{-2\lambda x})^2-(e^{-\lambda x}-e^{-\lambda y})^2]=\frac{\partial}{\partial y}\left(2\lambda e^{-\lambda x}(e^{-\lambda x}-e^{-\lambda y})\right)=2\lambda^2 e^{-\lambda (x+y)}, \quad 0\leq x\leq y$$

Now, applying the Jacobian method, we will obtain the joint distribution of W and Z, in which:

$ W=X $ and $ Z=Y-X $ which implies that $ X=W $, $ Y=Z+W $ then

Screenshot_85

In this way,

$$f_{W,Z}(w,z)=|J_{(X,Y),(W,Z)}|f_{X,Y}(w,z-w)=2\lambda^2e^{-\lambda (z+2w)}, w\geq 0 \quad \quad z\geq 0,$$

So, using the case $ III $, we have to $ f_W(w)> 0 $ i.e. $ w=x> 0 $.

$$f_{Z|W=w}(z)=\frac{f_{W,Z}(w,z)}{f_W(w)}=\frac{2\lambda^2e^{-\lambda(z+2w)}}{2\lambda e^{-2\lambda w}}=\lambda e^{-\lambda z}, z\geq 0 \quad \quad w\geq 0$$

i.e. $ Z|W=w\sim Exp(\lambda) $ for any $ w=x\geq 0 $.

(b) Using the substitution principle and the result of example 16b.

By the principle of substitution we have $ (Y-X)|X=x\sim Y-x| X=x $. So

$$\mathbb{P}(Y-X\leq w|X=x)=\mathbb{P}(Y-x\leq w| X=x)=\mathbb{P}(Y\leq w+x| X=x)$$

Now, using exercise 16b, we have

Screenshot_86

So,

$$\mathbb{P}(Y\leq w+x|X=x)=\int_{x}^{w+x}\lambda e^{-\lambda (y-x)}dy=e^{-\lambda(y-x)}\bigg|_{x}^{w+x}=1-e^{-\lambda w}, \quad w> 0$$

So $ (Y-X)|X=x\sim Exp(\lambda) $ for everyone $ x\geq 0 $.

Example 2.7.11

(a) Be $ X=(X_1,\dots, X_n) $ a random vector with density $ f(x_1,\dots,x_n) $. Use the principle of relative chance preservation to obtain data $ (X_{k+1},\dots, X_n)=(x_{k+1},\dots,x_n) $, where $ 1\leq k\leq n-1 $.

Using the principle of relative chance preservation, we have

$$f_{(X_1,X_2,\dots,X_k)|(X_{k+1},\dots,X_n)=(x_{k+1},\dots,x_n)}(x_1,\dots,x_k)=\frac{f_{X_1,X_2,\dots,X_n}(x_1,x_2,\dots,x_n)}{ \int_{-\infty}^{\infty}\int_{-\infty}^{\infty}\dots\int_{-\infty}^{\infty}f_{X_1,X_2,\dots,X_n}(x_1,\dots,x_n)dx_1dx_2\dots dx_k }$$

$$=\frac{f_{X_1,X_2,\dots,X_n}(x_1,x_2,\dots,x_n)}{f_{X_{k+1},\dots,X_n}(x_{k+1},\dots,x_n)}$$

(b) Let $ X_1, X_2 e X_2 $ independent with common distribution $ U[0,1] $, with $ X_{(1)}, X_{(2)} $ and $ X_{(3)} $ the order statistics. Determine the conditional distribution of $ X_{(2)} $ given $ X_{(1)} $ and $ X_{(3)} $

For example 2.5.5 we have:

Screenshot_76

then

$$f_{X_{(1)},X_{(3)}}(x_1,x_3)=\int_{-\infty}^\infty f_{X_{(1)},X_{(2)},X_{(3)}}(x_1,x_2,x_3)dx_2=6\int_{x_1}^{x_3}dx_2=6(x_3-x_1), \quad0\leq x_1< x_3\leq 1.$$

Now, applying item (a):

$$f_{X_{(2)}|(X_{(1)},X_{(3)})}(x_2)=\frac{6}{6(x_3-x_1)}=\frac{1}{x_3-x_1},\quad 0\leq x_1< x_2< x_3\leq 1.$$

So, $ X_{(2)}|X_{(1)},X_{(3)} $ will be a uniform random variable in $ [x_1,x_3] $ in case of $ 0\leq x_1< x_3\leq 1 $.

Example 2.7.12

Be $ X_1,\dots, X_n $ independent and identically distributed random variables, with continuous distribution F. Let $ X=\max_{1\leq i\leq n}X_i $.

(a) Show that for every $ k=1,2, \dots, n, $

Screenshot_77

in which $ I=(a,b) $ with $ a< t< b $. Let us initially take $ x\in [0,t) $ then:

$$[X_k\leq x,X\in I]=[X_k\leq x,a< X< b]=[X_k\leq x]\cap [a< X< b]$$

in which,

$$[a< X< b]=\bigcup_{i=1}^n \left([X_i> a]\bigcap_{i=1}^n [X_i< b]\right)$$

then

$$[X_k\leq x, X\in I]=\bigcup_{i=1}^n \left([X_i> a]\cap [X_k\leq x]\bigcap [X_i< b]\right)$$

for a and b sufficiently close to t, in which $ 0< x< a< t< b $.

$$\mathbb{P}([X_k\leq x,X\in I])=\sum_{i=1}^n \mathbb{P}\left([X_i> a]\cap [X_k\leq x]\bigcap_{i=1}^n [X_i< b]\right)$$

$$=(n-1)\left[F(b^-)\right]^{n-2}\left[F(b^-)-F(a)\right]F(x)=(n-1)\left[F(b)\right]^{n-2}\left[F(b)-F(a)\right]F(x)$$

Now, we also have to

$$\mathbb{P}(X\in I)=\mathbb{P}(a< X< b)=\left[F(b^-)\right]^n-\left[F(a)\right]^n=\left[F(b)\right]^n-\left[F(a)\right]^n$$

So,

Screenshot_78

Now for

$$\mathbb{P}(X_k\leq t,X\in I)=\sum_{i=1}^n \mathbb{P}\left([X_i> a]\bigcap_{i=1}^n[X_i< b]\right)=n[F(b)-F(a)][F(b)]^{n-1}$$

then

Screenshot_79

$$=\frac{n[F(t)]^{n-1}}{n[F(t)]^{n-1}}=1$$

Now, how $ \mathbb{P}(X_k\leq | X=t) $ is continuous to the right, we have

$$\mathbb{P}(X_k\leq t| X=t)=\lim_{h\downarrow t}\mathbb{P}(X_k\leq h| X=t)=1$$

So,

Screenshot_87

So

fig-40

With the jump size of the figure being

$$\mathbb{P}(X_k=t|X=t)=1-\frac{(n-1)}{n}=\frac{1}{n}$$

(b) Suppose F is differentiable. Is there conditional density in item (a)?

As seen in the graph in item a, the distribution of $ X_k|X=t $ It is a mix of discrete and continuous. Thus, the conditional density is the density of the continuous part and is equal to

$$f_{X_k|X=t}(x)=\frac{(n-1)}{n}\frac{f(x)}{F(t)}$$

in which

$$f(x)=\frac{\partial F(x)}{x}, x< t.$$

Example 2.7.13

Suppose $ Y $ have density $ f_Y(y) $ and that the conditional distribution of X, given that $ Y=y $, has density $ f(x|y) $, for all $ y $ (or at least for “almost every” possible value of Y). Demonstrate that

$$f(x,y)= f_Y(y)f(x|y)$$

is the joint density of $ X $ and $ Y $.

We have to

$$F_{X,Y}(x,y)=\int_{-\infty}^y F_X(x|Y=y)dF_Y(t)$$

Now if $ Y $ and $ X|Y $ are absolutely continuous distributions so

$$dF_Y(y)=f_Y(y)dy$$

and

$$F_X(X|Y=y)=\int_{-\infty}^x f_{X|Y=y}(x)dx$$

So,

$$F_{X,Y}(x,y)=\int_{-\infty}^y \left[\int_{-\infty}^x f_{X|Y=y}(x)dx\right]f_Y(y)dy= \int_{-\infty}^y \int_{-\infty}^x f_{X|Y=y}(x) f_Y(y)dxdy$$

So, by the definition of probability density

$$f_{X,Y}(x,y)=f_{X|Y=y}(x)f_Y(y)$$

Example 2.7.14

Consider the following two-step experiment: first, choose a point $ x $ according to the uniform distribution in (0,1); then choose a point $ y $ according to uniform distribution in $ (-x,x) $. If the random vector $ (X,Y) $ represent the result of the experiment, what will be the joint density of X and Y? The marginal density of Y? The conditional density of X given Y?

We have to $ X\sim U[0,1] $ what does it imply

Screenshot_88

then using example 2.7.2:

$$f_{X,Y}(x,y)=f_{Y|X=x}(y)f_X(x)$$

then

Screenshot_80

with $ A=\lbrace (x,y):0\leq x\leq 1 \quad e \quad -x\leq y\leq x\rbrace $ and therefore

$$f_Y(y)=\int_{-\infty}^\infty f_{X,Y}(x,y)dx=\int_{|y|}^1\frac{1}{2x}dx=\frac{1}{2}\left[\ln(x)\right]_{|y|}^1=-\frac{1}{2}\ln(|y|),\quad -1\leq y\leq 1.$$

Now, applying that X and Y having joint density

Screenshot_89

and the result follows

Example 2.7.15

Two lamps are observed during their useful lives. Assume independent and exponential parameter lives $ \lambda $. Let X be the burning time of the first lamp to burn and Y be the burning time of the second to burn ($ X\leq Y $).

(a) What is the conditional distribution of X given Y?

Be $ Z_1\sim Exp(\lambda) $ and $ Z_2\sim Exp(\lambda) $ independent and $ X=\min(Z_1,Z_2) $ and $ Y=\max(Z_1,Z_2) $. So

Screenshot_81

Now,

$$\mathbb{P}(X\leq x,Y\leq y)=\mathbb{P}(Y\leq y)-\mathbb{P}(X> x,Y\leq y)=\mathbb{P}(Y\leq y)-\mathbb{P}(x< Z_1\leq, x< Z_2\leq y)$$

Screenshot_82

(b) What is the distribution of Y given X?

Example 2.7.16

Suppose that (X,Y) has a uniform distribution in A, where A is a region of positive area. Show that the conditional distribution of X given that $ Y=y $ is uniform in $ A_y $, the section of A by y, where we define $ A_y=\lbrace x:(x,y)\in A\rbrace $.

Be $ (X,Y)\sim U(A) $ if, and comment if, $ \mathbb{P}(B\in \mathcal{B}^2)=\frac{\text{área}(B\cap A)}{\text{área}(A)} $

Now how $ \text{Área}(A)> 0 $ what does it imply $ (X,Y) $ is absolutely continuous random variables and

Screenshot_83

then $ X|Y=\bar{y} $ is uniform in $ A\bar{y} $

Example 2.7.17

Demonstrate that if $ \mathbb{P}(X\in B| Y=y)=\mathbb{P}(X\in B) $ for everyone $ B\in \mathcal{B} $ and $ y\in \mathbb{R}, $ then $ X $ and $ Y $ are independent, so that $ X $ and $ Y $ are independent if, and only if, the conditional distribution does not depend on the value of Y.

We have to

$$\mathbb{P}(X\leq x| Y=y)=\mathbb{P}(X\leq x)$$

which implies that $ F_{X|Y=y}(x)=F_X(x) $ So, due to the relationship

$$F_{X,Y}(x,y)=\int_{-\infty}^y F_X(x|Y=t)dF_Y(t),(x,y)\in \mathbb{R}^2$$

$$F_{X,Y}(x,y)=\int_{-\infty}^y F_{X|Y=y}(x)dF_Y(y)=\int_{-\infty}^y F_X(x)dF_Y(y)-F_X(x)\int_{-\infty}^y dF_Y(y)=F_X(x)F_Y(y)$$

which implies that X and Y are independent. Now, from case II we see that $ X,Y $ independent means that

$$\mathbb{P}(X\in B|Y=y)=\mathbb{P}(X\in B)$$

with $ B\in \mathcal{B} $ and $ y\in \mathbb{R} $.

\end{example}

$$F_{X,Y}(x,y)=\int_{-\infty}^y F_X(x|Y=t)dF_Y(t), (x,y)\in \mathbb{R}^2$$

8.2.8 Joint probability distribution of functions of random variables

Be $ X_1 $ and $ X_2 $ jointly continuous random variables with joint probability density $ f_{X_1,X_2} $. Sometimes we are interested in obtaining the joint distribution of random variables $ Y_1 $ and $ Y_2 $ which are functions of $ X_1 $ and $ X_2 $. Specifically, suppose that $ Y_1=g_1(X_1,X_2) $ and $ Y_2=g_2(X_1,X_2) $ for functions $ g_1 $ and $ g_2 $.

Assume that the functions $ g_1 $ and $ g_2 $ satisfy the following conditions:

  1. The equations $ y_1=g_1(x_1,x_2) $ and $ y_2=g_2(x_1,x_2) $ can only be resolved to $ x_1 $ and $ x_2 $ in terms of $ y_1 $ and $ y_2 $ with solutions given by, say, $ x_1=h_1(y_1,y_2) $ and $ x_2=h_2(y_1,y_2) $

  2. The functions $ g_1 $ and $ g_2 $ has continuous partial derivatives at all points $ (x_1,x_2) $ and are such that the following determinant $ 2times;2 $

9ebd0d39d60ed61a088081da184cf883ab78ed58

for all points $ (x_1,x_2) $. Under these two conditions we can show that the random variables $ Y_1 $ and $ Y_2 $ are continuously joint with joint density function given by

$$f_{Y_1Y_2}(y_1,y_2)=f_{X_1,X_2}(x_1,x_2)|J(x_1,x_2)|^{-1}$$

in which $ x_1=h_1(y_1,y_2) $ and $ x_2=h_2(y_1,y_2) $.

Example 2.8.1

Be $ X_1 $ and $ X_2 $ jointly continuous random variables with joint probability density function $ f_{X_1,X_2} $. Be $ Y_1=X_1+X_2 $ and $ Y_2=X_1-X_2 $. Find the cumulative density function of $ Y_1 $ and $ Y_2 $ in terms of $ f_{X_1,X_2} $.

Be $ g_1(x_1,x_2)=x_1+x_2 $ and $ g_2(x_1,x_2)=x_1-x_2 $. So

b4bfda7761870faa9729cb2109d8c5fd1644db43

Furthermore, the equations $ y_1=x_1+x_2 $ and $ y_2=x_1-x_2 $ have as solutions $ x_1=(y_1+y_2)/2 $ and $ x_2=(y_1-y_2)/2 $ and then it follows that the desired density is given by

$$f_{Y_1,Y_2}(y_1,y_2)=\frac{1}{2}f_{X_1,X_2}\left(\frac{y_1+y_2}{2},\frac{y_1-y_2}{2}\right)$$

Sum of random variables and multiplication by constant

It is important to be able to calculate the distribution of $ aX + bY $ from the distributions of $ X $ and $ Y $ when $ X $ and $ Y $ are independent, and $ a $ and $ b $ are constant.

Theorem 2.8.1

Suppose $ X $ and $ Y $ are continuous random variables with joint probability density function $ f $ and be $ Z=aX+bY $. So

$$F_Z(z)= \int_{-\infty}^{z} \int_{- \infty}^{\infty}\frac{1}{|a|}f\left(\frac{s-bt}{a},t\right)dtds.$$

Demo

In fact, we have to

$$F_Z(z)=\mathbb{P}(Z\leq z)=\mathbb{P}(aX+bY \leq z)=\int_{ax+by\leq z}f(t)dt= \int_{-\infty}^{\infty}\int_{- \infty}^{\frac{z-by}{a}}f(x,y)dx dy.$$

Considering variable change $ s=ax+by $ and $ t=y $, we have to $ s=ax+bt \Rightarrow x=\frac{s-bt}{a} $ and that furthermore the determinant of the Jacobian matrix is given by

d3fd13edf2955c95a14444fd79ea940095be541b

therefore

$$\int_{-\infty}^{\infty}\int_{- \infty}^{z}\left|\frac{1}{a}\right| f\left(\frac{s-bt}{a},t\right)ds dt= \int_{-\infty}^{z}\int_{- \infty}^{\infty}\frac{1}{|a|}f\left(\frac{s-bt}{a},t\right)dt ds$$

and thus we conclude that the pdf of the random variable $ Z = aX+bY $ is given by

$$f_Z(s)=\int_{- \infty}^{\infty}\frac{1}{|a|}f\left(\frac{s-bt}{a},t\right)dt,$$

and that its cumulative distribution function is given by

$$F_Z(z)= \displaystyle \int_{-\infty}^{z} \int_{- \infty}^{\infty}\frac{1}{|a|}f\left(\frac{s-bt}{a},t\right)dtds.$$

Theorem 2.8.2

Suppose $ X $ and $ Y $ are independent continuous random variables with probability density functions $ f_X $ and $ f_Y $ and be $ Z=aX+bY $. So

$$F_Z(z)= \int_{-\infty}^{z} \int_{- \infty}^{\infty}\frac{1}{|a|}f_X\left(\frac{s-bt}{a}\right)f_Y(t)dtds.$$

To verify that this theorem is true, simply apply Theorem 2.8.1 and use the hypothesis of independence of variables $ X $ and $ Y $. Therefore $ f(\frac{s-bt}{a},t)=f_X(\frac{s-bt}{a})f_Y(t) $ and the result follows.

When $ a $ and $ b $ are equal to $ 1 $ then $ f_{Z}(s) $ is called convolution of distributions $ f_X $ and $ f_Y $.

Example 2.8.2

Be $ A=(\lbrace (x,y):0\leq x \leq 1, 0\leq y \leq 1 \ \text{e} \ x+y\leq 1\rbrace) $, that is, A is a triangle. Suppose $ X $ and $ Y $ have a joint density given by

e0d21ec0752576ad79339c64bf7cdd3167802e2a

What is the distribution of $ Z = X+Y $?

To calculate this distribution, we simply use theorem 2.8.2 in which $ a=1 $ and $ b=2 $, so in this case

$$F_Z(z)=\int_{-\infty}^{z} \int_{- \infty}^{\infty}\frac{1}{|a|}f\left(\frac{s-bt}{a},t\right) dt ds=\int_{0}^{z}\int_{0}^{z-x}2 dy dx=z^{2}$$

Theorem 2.8.3

Be $ X $ a random variable with probability density $ f_X $. Then the probability density of $ X^{2n} $ is given by

2b13de5aab1ac2b1d072e9811bc4826f9bf7275a

in which the set $ A $ depends on the random variable $ X $.

Be $ Z=X^{2n} $. We then have to:

$$F_Z(z)=\mathbb{P}(Z\leq z)=\mathbb{P}(X^{2n}\leq z)=\mathbb{P}(|X|\leq z^{\frac{1}{2n}})=\mathbb{P}(-z^{\frac{1}{2n}}\leq X \leq z^{\frac{1}{2n}})$$

whence it follows that

$$F_Z(z)=\int_{-z^{\frac{2}{2n}}}^{-z^{\frac{2}{2n}}}f_X(t)dt=\int_{-z^{\frac{2}{2n}}}^{0}f_X(t)+\int_{0}^{-z^{\frac{2}{2n}}}f_X(t)$$

and, using the variable change calculus theorem, it follows that

$$\int_{-z^{\frac{2}{2n}}}^{0}f_X(t)dt+\int_{0}^{-z^{\frac{2}{2n}}}f_X(t)dt=\int_{0}^{z}\frac{f_X(-z^{\frac{1}{2n}})}{2nz^{\frac{2n-1}{2n}}}+\int_{0}^{z}\frac{f_X(z^{\frac{1}{2n}})}{2nz^{\frac{2n-1}{2n}}}=\int_{0}^{z}\frac{f_X(z^{\frac{1}{2n}})+f_X(-z^{\frac{1}{2n}})}{2nz^{\frac{2n-1}{2n}}}.$$

Thus the FDP of $ Z $ is given by

c91eedeb92abe3c5a55bdabd9ff36905dbd8ac36

in which $ A $ depends on the random variable $ X $.

Theorem 2.8.4

Be $ X $ a random variable with probability density $ f_X $. Then the probability density of $ X^2 $ is given by

000a3b78175b8c3ea902eaa9ddc50dc47c1b60cb

in which $ A $ depends on the random variable $ X $.

Demo

Just apply Theorem 2.8.3 with $ n=1 $ and the result follows.

Example 2.8.3

Suppose $ X $ is a random variable with probability density given by

defb74e69891775355028e77272202508d10261f

What is the probability density of $ X^4 $?

To solve this example, simply use Theorem 2.8.3 with $ n=2 $, so we have that the probability density function of $ Z = X^4 $ is given by

1cd42a2697481738f2827ce87af2502b6f925cc9

i.e.

c4222aa32dac89f5c3338b62a17c517e91ef862b

in which $ A $ depends on the random variable $ X $, and in this case $ A=(z \in \mathbb{R}| 0\leq z \leq 1) $.

Theorem 2.8.5

Suppose $ X $ is a random variable with probability density $ f_X $. Then the probability density of $ Y = |X| $ is given by

d3f972fb9877084eea5961da967771387b7bc5b7

in which $ A $ depends on the random variable $ X $.

Be $ Y=|X| $, then

$$F_Y(y)=\mathbb{P}(Y\leq y)=\mathbb{P}(|X|\leq y)=\mathbb{P}(-y\leq X \leq y)=\int_{-y}^{y}f_X(t)dt=\int_{0}^{y}f_X(t)dt+\int_{-y}^{0}f_X(t)dt$$

whence it follows that

$$F_Y(y)=\int_{0}^{y}f(t)+f(-t)dt.$$

Therefore the pdf of $ Y $ is given by

d3f972fb9877084eea5961da967771387b7bc5b7

in which the set $ A $ depends on the random variable $ X $.

Example 2.8.4

Be $ X $ and $ Y $ independent random variables with uniform distribution in $ [\Theta -1/2, \Theta+1/2] $, in which $ \Theta \in \mathbb{R} $. Prove that the distribution of $ X-Y $ does not depend on $ \Theta $, finding its density.

$ X $ and $ Y $ independent means that

4ddf014481ce45c21df763f8a05b94c79e14c206

So, consider $ k\leq 0 $:

(image missing)

b202ee879f63761dd1b9619f50047cfb8eabe768

Similarly, by symmetry for $ k> 0 $

f37738b70d124cdafbdd2cbb8df2f16d0930ae7a

So,

ff7a80a49eee7fb55845b3387b2a1ec8e0ba5894

Example 2.8.5

Let the random variables be $ X_1, \dots, X_n $ independent and exponential with parameters $ \alpha_1, \dots, \alpha_n $.

(a) Show that the distribution of $ Y=\min_{1\leq i\leq n} X_i $ is exponential. What is the parameter?

Consider $ y> 0 $

$$\mathbb{P}(Y> y)=\mathbb{P}(X_1> y,\dots, X_n>)=\prod_{i=1}^n \mathbb{P}(X_i> y)=e^{-(\sum_{i=1}^n\alpha_i)y}$$

which implies that

$$\mathbb{P}(Y\leq y)=1-e^{-(\sum_{n}^\infty \alpha_i)y}$$

Now consider $ y\leq 0 $

$$\mathbb{P}(Y> y)=1$$

which implies that

$$\mathbb{P}(Y\leq y)=0$$

So $ Y\sim Exp\left(\sum_{i=1}^n \alpha_i \right) $

(b) Prove that for $ k=1,\dots,n $

$$\mathbb{P}(X_k=\min_{1\leq i\leq n} X_i)=\frac{\alpha_k}{\alpha_1+\dots+\alpha_n}.$$

We have the event

$$[X_k=\min_{1\leq i\leq n} Y_i]=[X_k\leq \min_{i\neq k}]$$

Now doing $ U_k=\min_{i\neq k} X_i $, we have to $ X_k $ and $ U_k $ are independent then

ee48a5ec5707da2635d8919043eff62275599466

So

$$\mathbb{P}\left(X_k=\min_{1\leq i \leq n} X_i\right)=\mathbb{P}\left([X_k\leq U_k]\right)=\int_0^\infty \int_0^u \alpha_u\left(\sum_{i\neq k}\alpha_i\right)e^{-\left(\sum_{i\neq k}\alpha_i\right)u}e^{-\alpha_k x}dx du$$

$$=\int_0^\infty \left(\sum_{i\neq k}\alpha_i\right)e^{-\left(\sum_{i\neq k}\alpha_i\right)u}\left[-e^{-\alpha_u x}\right]_0^u du= \int_0^\infty \left(\sum_{i\neq k}\alpha_i\right)e^{-\left(\sum_{i\neq k}\alpha_i\right)u} \left(1-e^{-\alpha_k u}\right)du $$

$$=1-\frac{\sum_{i\neq k}\alpha_i }{\sum_{i=1}^n \alpha_i}=\frac{\alpha_k}{\alpha_1+\dots +\alpha_n}$$

Example 2.8.6

Be $ X $ a random variable whose distribution function F is a continuous function on the line. Prove that the distribution of $ Y=F(X) $ is $ U[0,1] $.

Suppose $ F $ is strictly increasing and continuous, then there is an inverse

$$F^{-1}:[0,1]\rightarrow \mathbb{R}$$

and therefore be $ a,b\in [0,1] $, $ a< b $:

$$\mathbb{P}(a< Y \leq b)=\mathbb{P}(a< F(X)\leq b)=\mathbb{P}(F^{-1}(a)< X\leq F^{-1}(b))=F(F^{-1}(b))-F(F^{-1}(a))=b-a$$

so how $ \mathbb{P}(0\leq Y\leq 1)=1 $, we have to $ Y\sim U[0,1] $.

In general, if $ F $ is continuous, non-decreasing in $ \mathbb{F} $ and continuous, with $ \lim_{x\rightarrow \infty}F(x)=1 $ and $ \lim_{x\rightarrow -\infty}F(x)=0 $. So $ F $ will be constant in a countable disjoint union of closed intervals, that is, in the set

$$A=\bigcup_{i} I_i$$

in which $ I_i=[a_i,b_i] $, with $ a_i< b_i< a_{i+1}< b_{i+1} $, for all $ i \in \mathbb{N} $. And also $ F $ will be strictly in

$$B=\mathbb{R}-A=\bigcup_j J_j$$

in which $ J_j=(b_j,a_{j+1}) $. So, $ F $ is strictly increasing when restricted to B. If $ x\in \mathbb{R} $ and $ x\notin B $, which implies that there is a $ i_2 $ such that $ a_{i_2}\leq x\leq b_{i_2} $ with $ F(x)=F(a_{i_2})=F(b_{i_2}) $. In this way,

c2c88e08328bedb876262ba5ef582f3f32356904

In this way we have the function

$ F|_B: B\rightarrow F(B) $, then $ F|_B $ is continuous and strictly increasing, which implies that there is a function

$$(F|_B)^{-1}:[0,1]\rightarrow B.$$

Now be $ w,z\in [0,1] $ and $ w< z $. So,

$$\mathbb{P}(w< Y\leq z)=\mathbb{P}(w< F(X)\leq z)$$

We then have 4 possibilities

Screenshot_90

note that $ \mathbb{P}(F(X)=z)=0 $, because

$ \mathbb{P}(F(X)=z)=\mathbb{P}(a_{i_j}\leq X\leq b_{i_j})=F(b_{i_j})-F(a_{i_j})=0 $

Just in case $ III $ and $ IV $, is analogous, with this we have to $ Y\sim U[0,1] $.

Example 2.8.7

(a) The variables $ X,Y $ and $ Z $ are independent, each uniformly distributed over the interval $ [0,1] $. Determine

$$\mathbb{P}(X< Y < Z)$$

and

$$\mathbb{P}(X\leq Y\leq Z)?$$

How $ X,Y $ and $ Z $ are independent then

55d330680bc0b67cf24ad65d56b556c5dabab9bc

then:

$$\mathbb{P}(X\leq Y\leq Z)=\mathbb{P}(X\leq Y\leq Z)=\mathbb{P}(X< Y< Z)=\int_0^1\int_0^z\int_0^y 1dxdydz=\int_0^1\int_0^z ydydz=\int_0^1\frac{z^2}{2}dz=\frac{1}{6}$$

(b) If $ X,Y $ and $ Z $ are independent and independent and identically distributed, and the common distribution function F is continuous, which is

$$\mathbb{P}(X< Y< Z)?$$

We have

$$\mathbb{P}(X< Y< Z)=\mathbb{P}(X\leq Y \leq Z)$$

because it is absolutely continuous. How $ F $ continuous non-decreasing and $ F(x)\geq 0 $, for $ \forall x $.

$$\mathbb{P}(F(x)\leq F(y)\leq F(z))=\frac{1}{6}$$

for example 2.8.6 for item (a).

Example 2.8.8

(a) Let X and Y be independent with Poisson distributions having, respectively, parameter $ \lambda_1 $ and $ \lambda_2 $. Show that $ X+Y \sim Poisson(\lambda_1+\lambda_2) $.

$$[X+Y=k]=\bigcup_{n=0}^k ([X=n]\cap[Y=k-n]), k=0,1,2,\dots$$

then

$$\mathbb{P}(X+Y=k)=\sum_{n=0}^k \mathbb{P}(X=n,Y=k-n)=\sum_{n=0}^k \mathbb{P}(X=n)\mathbb{P}(Y=k-n)=\sum_{n=0}^k \frac{\lambda_1^n}{n!}e^{-\lambda_1}\frac{\lambda_2^{k-n}}{(k-n)!}e^{-\lambda_2}$$

$$=\frac{e^{-(\lambda_1+\lambda_2)}}{k!}\sum_{n=0}^k \left(\frac{k!}{n!(k-n)!}\lambda_1^n\lambda_2^{k-n}\right)=\frac{e^{-(\lambda_1+\lambda_2)}}{k!} \sum_{n=0}^k\binom{k}{n}\lambda_1^n \lambda_2^{k-n}=\frac{(\lambda_1+\lambda_2)^k}{k!}e^{-(\lambda_1+\lambda_2)}, k=0,1,2, \dots$$

So, $ X+Y\sim Poisson(\lambda_1+\lambda_2) $.

(b) Show that if $ X_1, \dots, X_n $ are independent such that $ X_i\sim Poisson(\lambda_i) $, $ i=1, \dots, n $, then $ X_1+\dots +X_n \sim Poisson(\lambda_1+\dots+ \lambda_n) $.

We have for the item that $ X_1+X_2\sim Poisson(\lambda_1+\lambda_2) $. Now, let’s suppose that $ (2< m< n) $ and

$$X_1+X_2+\dots +X_m\sim Poisson(\lambda_1+\dots +\lambda_m).$$

So, how $ (X_1+X_2+\dots +X_m) $ and $ X_{m+1} $ are independent (by hereditary property) then by item (a)

$$X_1+X_2+\dots+X_{m+1}\sim Poisson(\lambda_1+\lambda_2+\dots+\lambda_{m+1})$$

Then by induction:

$$X_1+X_2+\dots+X_n\sim Poisson(\lambda_1+\dots+\lambda_n)$$

And so the result follows.

Example 2.8.9

A certain supermarket has two entrances, A and B. Customers enter through entrance A according to a Poisson process with an average rate of 15 customers per minute. Through entrance B, customers enter according to another Poisson process, independent of the first, at an average rate of 10 per minute.

(a) Be $ X_t $ the total number of customers entering the supermarket so far $ t $ (inclusive), for $ t\geq 0 $. So $ (\lbrace X_t:t\geq 0\rbrace) $ It is also a Poisson process. What is the parameter of this process?

It is a Poisson process with parameter $ \lambda=\lambda_1+\lambda_2=10+15=25 $. The parameter of $ (\lbrace X_t:t\geq 0\rbrace) $ is $ \lambda=\lambda_1+\lambda_2 $, because fixing a certain t, we have

$$X_t=A_t+B_t$$

in which

$$A_t=(\text{ Variável do número de fregueses que entram até } t \text{ por } A)$$

$$B_t=(\text{ Variável do número de fregueses que entram até } t \text{ por } B)$$

$ A_t\sim Poisson(\lambda_1 t) $ and $ B_t\sim Poisson(\lambda_1 t) $ and $ A_t $ independent of $ B_t $

by item (a) of example 2.8.8. Which implies that $ X_t\sim Poisson[(\lambda_1+\lambda_2)t]=25t $.

(b) Let $ T_1 $ the time in which the first customer enters through entrance A, with $ V_1 $ the time in which the first customer enters through the entrance $ B $. Find the distribution of $ \min(T_1,V_1) $, the minimum of the two times.

We have $ T_1\sim Exp(\lambda_1) $ and $ V_1\sim Exp(\lambda_2) $ with $ T_1 $ independent of $ V_1 $. So, for $ m> 0 $, we have

$$\mathbb{P}(M=\min(T_1,V_1)> m)=\mathbb{P}(T_1> m, V_1> m)=\mathbb{P}(T_1> m)\mathbb{P}(V_1> m)=e^{-\lambda_1 m}e^{-\lambda_2 m}=e^{-(\lambda_1+\lambda_2)m}$$

which implies that $ M\sim Exp(\lambda_1+\lambda_2=25) $

(c) Determine the probability that the first customer to enter the market enters through entrance A.

$$\mathbb{P}(T_1=\min(T_1,V_1))=\frac{\lambda_1}{\lambda_1+\lambda_2}=\frac{15}{10+15}=\frac{3}{5}$$

in which the first equality follows from example 2.8.5.

Example 2.8.10

Let A be the following triangle:

(image missing)

Screenshot_102

(a) Determine the value of the constant c.

We have to

$$1=\int_{-\infty}^\infty \int_{-\infty}^\infty f(x,y)dxdy=c\int_{A}\int dxdy=c Area(A)=c\frac{1}{2}\Rightarrow c=2.$$

(b) Calculate the distribution of X, that of Y and that of $ Z=X+Y $.

The distribution of X:

$$F_X(x)=\int_{-\infty}^{\infty}\int_{-\infty}^{t-x}f(x,y)dydx=2\int_0^t\int_{0}^{t-x}dydx=2\int_0^t(t-x)dx=2\left[tx-\frac{x^2}{2}\right]_0^t=t^2, \quad \quad 0\leq t\leq 1.$$

4ea86a11f526c8e813228a162888a52e66e965e5

(c) Are X and Y independent? Why ?

No, because

Screenshot_91

Example 2.8.11

Screenshot_103

then $ 0\leq z\leq 1 $.

$$\mathbb{P}(Z\leq z)=\mathbb{P}(X^2+Y^2\leq z)=\int_{x^2+y^2\leq z}\int f_{X,Y}(x,y)dxdy=$$

$$\int_{x^2+y^2\leq z}\int \frac{1}{\pi}\mathbb{I}_A dxdy=\frac{1}{\pi}Area\left[\lbrace (x,y):x^2+y^2\leq z\rbrace\cap A\right]=\frac{\pi z^2}{\pi}=z^2$$

Therefore, we have to $ Z\sim U[0,1] $.

Example 2.8.12

Be $ X $ and $ Y $ independent random variables, having common distribution $ U[0,1] $.

(a) What is the density of the random variable $ Z=X+Y $?

For $ 0\leq z\leq 1 $, we have

$$P(X+Y\leq z)=\int_{z-1}^1\int_0^{z-x}1dydx=\left[zx-\frac{x^2}{2}\right]^{1}_{z-1}=-\frac{1}{2}\left(1-z(z-1)\right)$$

and $ z< 0 $, for

$$\mathbb{P}(X+Y\leq z)=0$$

and for $ z> 0 $, we have

$$\mathbb{P}(X+Y\leq z)=1$$

then

Screenshot_92

(b) Find the probability of the quadratic equation $ Xt^2+Yt+Z=0 $ have real roots.

We have to $ Xt^2+Yt+Z $ has real roots if

$$Y^2-4XZ=Y^2-4X(X+Y)> 0$$

which implies that

$$Y^2-4XY-4X> 0$$

roots

$$y_k=\frac{4X\pm \sqrt{16X^2+16X^2}}{2}=2X(1\pm \sqrt{2})$$

(image missing)

So be $ E $ the event $ Xt^2+Yt+Z $ there are real

$$\mathbb{P}(E)=\int_B\int f_{X,Y}(x,y)dxdy=\int_B\int dxdy=Area(B)=\frac{1}{4(1+\sqrt{2})}=0,10355$$

Example 2.8.13

We say that X has a Weibull distribution with parameter $ \alpha $ and $ \lambda $ if $ X $ has density

48921974b026c159ffc6b5c950b09e8f07f0b563

where $ \alpha> 0 $ and $ \lambda > 0 $. Suppose that the useful life of a certain type of machine, i.e., the time it works until it fails, has a distribution $ Weibull(\alpha,\lambda) $. N of these machines are put into operation simultaneously. What is the distribution of waiting time until a machine breaks down?

We have $ X_1, X_2, \dots, X_n $ independent random variables that designate the useful life of $ n $ machines

$$\mathbb{P}(X_1> x_1)=\int_{x_1}^\infty f_{X_1}(x)dx$$

if $ x_1> 0 $ then

$$\mathbb{P}(X_1> x_1)=\int_{x_1}^\infty \lambda \alpha x^{\alpha-1} e^{-\lambda x^\alpha}dx$$

making a variable change $ y=\lambda x^{\alpha} $ and $ dy=\lambda x^{\alpha-1}dx $ then we have

$$\int_{x_1}^\infty \lambda \alpha x^{\alpha-1} e^{-\lambda x^\alpha}dx=\int_{\lambda x_1^\alpha}^\infty \lambda e^{-\lambda y}dy=\left[\right]_{\lambda x_1^\alpha}^\infty =e^{-\lambda x_1^\alpha}, x_1> 0$$

In this way we have to

cd2e9e2f3cde996e2fece5863c7d9966484f7781

Now $ Z=\min(X_1,\dots,X_n) $ time until some machine breaks down.

eedba6c9432f8b8e445fd9f9c3a112af91098327

then,

cf6187ac79fcd0428a7ce718b36bc0b5c7089f0f

which implies that

$ Z\sim Weibull(\alpha,n\lambda) $.

Example 2.8.14

Be $ X $ and $ Y $ independent random variables, X having Poisson distribution with parameter $ \lambda=5 $, and $ Y $ having uniform distribution in $ [0,1] $. Find the density of $ Z=X+Y $.

First we define $ \lceil x\rceil $ as being the entire part of $ x $. So, we have to

$$[X+Y\leq z]=[X\leq \lceil z\rceil-1] \bigcup [X=\lceil z\rceil,y\leq z-\lceil z\rceil ]$$

then if $ z> 0 $ we have

$$F_Z(z)= \mathbb{P}(X\leq \lceil z\rceil -1 )+\mathbb{P}(X= \lceil z\rceil, 0\leq y\leq z- \lceil z\rceil)$$

For independence, we have to

$$\sum_{k=0}^{ \lceil z\rceil-1} \frac{\lambda^k}{k!}e^{-5}+\frac{\lambda^{ \lceil z\rceil}}{ \lceil z\rceil!}e^{-5}(z- \lceil z\rceil)$$

Now, if $ z\leq 0 $ then $ F_{Z}(z)=0 $

In this way we have to

01d67e883c98d64fd19345bed21d34efbf4f4213

Example 2.8.15

A balanced die is rolled twice, independently. Be $ X $ and $ Y $ the random variables that represent the numbers obtained in the first and second throws, respectively.

(a) Determine $ \mathbb{P}(X=Y) $

$ X $ independent $ Y $ by example 2.5.5 and

$$\mathbb{P}(X=x, Y=y)=\frac{1}{36}$$

for any $ x,y\in (1,2,\dots, 6) $. So,

$$\mathbb{P}(X=Y)=\sum_{k=1}^{6}\mathbb{P}(X=k,Y=k)=6\frac{1}{36}=\frac{1}{6}$$

(b) Describe the distribution of $ W=|X-Y| $

$$\mathbb{P}(W=0)=6\frac{1}{36}=\frac{1}{6}$$

$$\mathbb{P}(W=1)=2\frac{5}{36}=\frac{5}{18}$$

$$\mathbb{P}(W=2)=2\frac{4}{36}=\frac{2}{9}$$

$$\mathbb{P}(W=3)=2\frac{3}{36}=\frac{1}{6}$$

$$\mathbb{P}(W=4)=2\frac{2}{36}=\frac{1}{9}$$

$$\mathbb{P}(W=6)=2\frac{1}{36}=\frac{1}{18}$$

$$\mathbb{P}(W\in (0,1,2,3,4,5,6))=0$$

(c) Let

e3f51b7b4bd4cbb4b66c9f1ff6f2dbd0244b57fe

Explain why X and Z are, or are not, independent.

We have $ \mathbb{P}(Z=0)=\mathbb{P}(Z=1)=\frac{(5\cdot 3)+(3\cdot 3)}{36}=\frac{1}{2} $

and yet

$$\mathbb{P}(X=x,Z=1)=\frac{3}{36}=\frac{1}{12}=\mathbb{P}(X=x)\mathbb{P}(Z=1)=\frac{1}{6}\frac{1}{2}$$

and

$$\mathbb{P}(X=x,Z=0)=\frac{3}{36}=\frac{1}{12}=\mathbb{P}(X=x)\mathbb{P}(Z=1)=\frac{1}{6}\frac{1}{2}$$

So, by exercise 22 it implies that X and Z are independent.

Example 2.8.16

A point is chosen at random (i.e. according to uniform distribution) on the sides of the square of vertices $ (1,1);(1,-1);(-1,-1) $ and $ (-1,1) $. Be $ X $ and $ Y $ the coordinates of the chosen point.

(a) Determine the distribution of $ X+Y $.

We have to

$$\mathbb{P}(A)=\frac{Comp(A\cap L)}{L}$$

in which $ L=(\lbrace (x,y):(|x|=1 \text{ ou } |y|=1) \text{ e } x^2+y^2\leq 1\rbrace) $ and $ Comp(L)=8 $. So,

de829c000c3cf2b5f0f3e045fe5cdb7d7e58c9a6

(b) Find $ \mathbb{P}(W> 0) $, in which $ W $ is the maximum $ X $ and $ Y $.

$$\mathbb{P}(W> 0)=\frac{Comp(C\cap L)}{L}$$

with $ C=(\lbrace (-1,1)\times (-1,1)\rbrace-\lbrace (x,y):x\leq 0 \text{ e } y\leq 0 \rbrace) $ then $ Comp(C\cap L)=6 $ which implies that

$$\mathbb{P}(W> 0)=\frac{Comp(C\cap L)}{L}=\frac{6}{8}=\frac{3}{4}$$

Example 2.8.17

Let X and Y be independent random variables with common distribution $ N(0,1) $. Show that $ U=\frac{X+Y}{\sqrt{2}} $ and $ V=\frac{X-Y}{\sqrt{2}} $ are also independent and $ N(0,1) $.

$$f_{X,Y}(x,y)=\frac{1}{2\pi}e^{-\frac{1}{2}(x^2+y^2)}, \quad -\infty< x,y< \infty$$

Now be $ U=\frac{X+Y}{\sqrt{2}} $$ V=\frac{X-Y}{\sqrt{2}} $ and then we have $ X=\frac{U+V}{\sqrt{2}} $ and $ Y=\frac{U-V}{\sqrt{2}} $. So,

cd339baf8affc41b6451b6d0d8ad616b14597098

So:

$$f_{U,V}(u,v)=\bigg| J_{(X,Y),(U,V)}\bigg|f_{X,Y}\left(\frac{u+v}{\sqrt{2}},\frac{u-v}{\sqrt{2}}\right)=\frac{1}{2\pi} e^{-\frac{1}{2}\left(\frac{(u+v)^2}{2}+\frac{(u-v)^2}{2}\right)}=\frac{1}{\sqrt{2\pi}}e^{-\frac{1}{2}u^2} \frac{1}{\sqrt{2\pi}}e^{-\frac{1}{2}v^2}$$

with $ -\infty< u< \infty $ and $ -\infty< v< \infty $

So $ U\sim N(0,1) $ and $ V\sim N(0,1) $ and U independent V.

Example 2.8.18

Let X and Y be independent random variables with common distribution $ U[0,1] $. Find the joint density of $ W $ and $ Z $, where $ W=X+Y $ and $ Z=X-Y $. $ W $ and $ Z $ Are they independent?

We have $ X\sim U[0,1] $ and $ Y\sim U[0,1] $ with X and Y independent which implies that

Screenshot_93

figura-05_0

So,

3791e59b8a4b922a35b7ac59f08d5b4f1384e541

We have that W and Z are not independent, it is analogous to example 2.5.15.

Example 2.8.19

Suppose $ X $ be a random variable with distribution $ N(0,1) $. Calculate the density of $ Y=X^4 $ and the $ Z=1/X $. Do Y and Z have a joint density? Why?

How $ X\sim N(0,1) $ which implies that $ f_X(x)=\frac{1}{\sqrt{2\pi}}e^{-\frac{x^2}{2}} $ with $ -\infty < x< \infty $.

(a) $ Y=X^4 $

figura-06

Be $ G_0=(0,\infty) $, $ G_1=(0,\infty) $ and $ G_2=(-\infty,0) $ then,

$ Y_1: G_1\rightarrow G_0 $ we have to $ y_1=x^4 $ which implies that $ h^{-1}_1(y)=y_1^{1/4} $ and $ Y_2: G_2\rightarrow G_0 $ and $ y_2=x^4 $ which implies that $ h^{-1}_2(y)=-(y)^{1/4} $.

So

$$J_1(x,y)=\frac{dh^{-1}_1}{dy}=\frac{1}{4}y^{-3/4}$$

and

$$J_2(x,y)=\frac{dh^{-1}_2}{dy}=-\frac{1}{4}y^{-3/4}$$

then

$$f_Y=\bigg|J_1(x,y)\bigg|f_X(h^{-1}_1 (y))\bigg|J_2(x,y)\bigg|f_X(h^{-1}_2 (y))$$

so we have to

3e27943161d49cb93bac7f1df38534b74bfb74b0

(b) $ Z=\frac{1}{X} $ which implies that $ h^{-1}(z)=\frac{1}{z} $ which implies that $ J_{X,Z}=-\frac{1}{z^2} $, then

$$f_Z(z)=\bigg|J(x,z)\bigg|f_Z(h^{-1}(z))=\frac{1}{z^2}\frac{1}{\sqrt{2\pi}}e^{-\frac{1}{2z^2}}, -\infty < z < \infty$$

We have to $ Y $ and $ Z $ do not have joint density because $ (Y,Z) $ has a unique distribution. This happens because there is a set

$$A\subset \mathbb{R}$$

such that $ \mathbb{P}((Y,Z)\in A)=1 $ and $ \lambda^2(A)=0 $ where $ A=(\lbrace (y,z): z^4 y=1\rbrace) $

Example 2.8.20

Let X be a random variable having density $ f(x) $.

(a) Find the density of $ Y=|X| $ by the basic method, obtaining the distribution function of X and deriving it.

I fear that

$$\mathbb{P}(Y\leq y)=\mathbb{P}(|X|\leq y)=\mathbb{P}(-y\leq X\leq y)$$

how $ X $ is a continuous variable so

$$\mathbb{P}(-y\leq X\leq y)=\mathbb{P}(-y< X\leq y)=F_X(y)-F_X(-y), y> 0$$

and $ \mathbb{P}(Y\leq y)=0 $, $ y< 0 $ then

11db37b078eb6638e966df038fffa0dbe17d975c

(b) Find the density of Y using the Jacobian method.

Consider $ G_0=(0,\infty) $, $ G_1=(0,\infty) $, $ G_2=(-\infty,0) $. So define

$$Y_1: G_1\rightarrow G_0$$

with $ y_1=x $, which implies that $ h_1^{-1}(y)=y $ then $ J(x,y_1)=1 $. Similarly, set

$$Y_2: G_2\rightarrow G_0$$

with $ y_2=-x $, which implies that $ h_1^{-1}(y)=-y $ then $ J(x,y_2)=-1 $. So,

398877f7a82bc4986db2bbac33faa03c690786f4

Example 2.8.21

Suppose $ X,Y $ and $ Z $ have joint density

398877f7a82bc4986db2bbac33faa03c690786f4

Get the density of the random variable $ W=X+Y+Z $ in two different ways.

First, let’s do it using the basic method:

$$\mathbb{P}(W\leq w)=\mathbb{P}(X+Y+Z\leq w)=\int_0^w\int_0^{w-x}\int_{0}^{w-(x+y)}\frac{6}{1+x+y+z} dz dy dx$$

Then the first integral is given by

$$I=\int_0^{w-(x+y)}\frac{6}{1+x+y+z}dz$$

making a variable change $ v=1+x+y+z $ and $ dv=dz $ then

$$I=\int_0^{w-(x+y)}\frac{6}{1+x+y+z}dz=6\int_{1+x+y}^{w+1}\frac{1}{v}dv=6\left(\ln(v)\right)_{1+x+y}^{w+1}=6\left[\ln(w+1)-\ln( 1+x+y)\right]$$

the second integral

$$II=\int_0^{w-x}6\left[\ln(w+1)-\ln( 1+x+y)\right]dy=6\left((\ln(w+1))(w-x)+\int_0^{w-x}\ln(1+x+y)dy\right)$$

Again making a variable change $ v=1+x+y $ and $ dv=dx $ we have to

$$\int_{1+x}^{w+1}\ln(v)dv=\left[v \ln(v)-v\right]_{1+x}^{w+1}=(w+1)\ln(w+1)-(w+1)-(1+x)\ln(1+x)+(1+x)$$

so we have to

$$II=6\left((\ln(w+1))(w-x)+(w+1)\ln(w+1)-(w+1)-(1+x)\ln(1+x)+(1+x)\right)$$

and finally, the third integral

$$III=\int_0^w 6\left((\ln(w+1))(w-x)+(w+1)\ln(w+1)-(w+1)-(1+x)\ln(1+x)+(1+x)\right)dx= 6\left(xw(\ln(w+1))-\frac{x^2}{2}\ln(w+1)+x(w+1)\ln(w+1)-x(w+1)+x+\frac{x^2}{2}\right)_0^{w}=3(2w+1)^2\ln(w+1)-\frac{9}{2}w^2+3w-3$$

So,

8b746d8687e947df33c9521a747afee58301c0c5

Jacobian Method:

We define $ W=X+Y+Z $, $ U=X $ and $ T=Y $ then $ X=U $, $ Y=T $ and $ Z=W-U-T $ and

Screenshot_94

Example 2.8.22

Let X and Y be independent random variables with common distribution $ exp(\lambda) $. Prove that $ Z=\frac{X}{X+Y}\sim U[0,1] $.

Using the Jacobian method and doing:

$ W=X $ and $ Z=\frac{X}{X+Y} $ which implies that $ X=W $ and $ Y=W\left(\frac{1}{z}-1\right) $ then

Screenshot_95

So,

$$f_{Z}(z)=\int_{-\infty}^{\infty}f_{W,Z}(w,z)dz.$$

So, for $ 0< z < 1 $ we have to

$$f_{Z}(z)=\int_{0}^{\infty}\frac{w}{z^2}\lambda^2 e^{-\lambda \left(\frac{w}{z}\right)}dz$$

making a change $ v=\frac{\lambda w}{z} $ and $ dv=\frac{\lambda}{z}dw $ then

$$f_{Z}(z)=\int_0^{\infty}v e^{-v}dv=1$$

So, $ Z\sim U[0,1] $, since f characterizes the law of Z.

Example 2.8.23 (Extension of the Jacobian method to the case of infinite k.)

Be $ Y=g(X) $, in which $ X=(X_1,X_2, \dots , X_n) $ and $ Y=(Y_1,Y_2, \dots, Y_n) $. Let’s suppose that $ G,G_1, G_2, \dots $ are open subregions of $ \mathbb{R}^n $ such that $ G_1,G_2,\dots $ are disjoint and

$$\mathbb{P}\left(X\in \bigcup_n G_n\right)=1$$

Screenshot_96

in which $ J_n(x,y) $ is the Jacobian of $ h^{(n)} $.

Be $ B\subset G $, under the above conditions, we have:

$$\mathbb{P}(Y\in B)=\mathbb{P}(g(X)\in B)=\sum_{\ell =1}^{\infty}\mathbb{P}(g(X)\in B, X \in G_\ell)=\sum_{\ell=1}^\infty \mathbb{P}(X \in h^{\ell}(B))=$$

$$\sum_{\ell=1}^\infty \int\dots_{h^{\ell}(B)}\int f(x_1,x_2,\dots, x_n)dx_1dx_2\dots dx_n$$

$$=\sum_{\ell=1}^\infty \int\dots_B \int f(h^{(\ell)}(y))|J_\ell(x,y)|dy_1dy_2\dots dy_n$$

as the integrand is continuous and limiting we have to

$$\sum_{\ell=1}^\infty \int\dots_B \int f(h^{(\ell)}(y))|J_\ell(x,y)|dy_1dy_2\dots dy_n=\int\dots_B \int \sum_{\ell=1}^\infty f(h^{(\ell)}(y))|J_\ell(x,y)|dy_1dy_2\dots dy_n$$

therefore the result follows.

Example 2.8.24

Se $ X $ has density $ f(x) $, what is the density of $ Y=\cos(X) $?

Define, $ G=(0,\infty) $ and $ G_k=(k\pi, (k+1)\pi) $. So, $ \mathbb{P}\left(X\in \bigcup_{k\in \mathbb{Z}}\right)=1 $ since we have that X is absolutely continuous, then $ \mathbb{P}\left(X=k\pi,k\in \mathbb{Z}\right)=0 $. We also have to $ Y=cosX $ is biunivocal in $ G_k $, then the inverse function exists and is given by $ X=h^{(k)}(y)=\arccos(y-k\pi) $

$$\frac{dh^{(k)}}{dy}=-\frac{1}{\sqrt{1-y^2}}$$

which is continuous in $ G $, for all $ k \in \mathbb{Z} $. Then, the conditions of example 2.8.23 apply and therefore we have

02ef598ef95e1f6bef7125dd47475701e59bed04

Example 2.8.25

Let X and Y be independent random variables, having a common distribution $ U[0,1] $, and be $ R=\sqrt{2\log(1/(1-X))} $ and $ \Theta = \pi(2Y-1) $.

(a) Show that $ \Theta \sim U[-\pi,\pi] $ and that $ R $ has a Rayleigh distribution with density

a79d1c09e8b9036fc152eeb077a12d1c536043a6

Initially consider $ X,Y \sim U[0,1] $ and independent, which implies that

ab8fd89ddc67bd8c78d86cffa6713148bffb2c58

Using the Jacabian Method, we define

$$R=\sqrt{2\log\left(\frac{1}{1-X}\right)}$$

what does it imply $ \frac{\mathbb{R}^2}{2}=\log\left(\frac{1}{(1-X)}\right) $ which implies that

$$X-1=e^{-r^2/2}$$

which implies that $ x=e^{-r^2/2}-1 $. We also define that

$$\Theta=\pi(2Y-1)$$

which implies that $ 2Y-1 $ which implies that $ Y=\frac{1}{2}\left(\frac{\Theta}{\pi}+1\right) $. So:

7713d4031181d2d1bfa4444e3a125ce425e0b77e

In this way,

$$f_{R,\Theta}(r,\theta)=\bigg|J_{(X,Z),(R,\Theta)}\bigg|f_{X,Y}\left(e^{-r^2/2}+1,\frac{1}{2}\left(\frac{\theta}{\pi}+1\right)\right) = \frac{r}{2\pi}e^{-r^2/2}f_{X,Y}\left(e^{-r^2/2}+1,\frac{1}{2}\left(\frac{\theta}{\pi}+1\right)\right)$$

which implies that

Screenshot_104

So,

$$J_{(R,\Theta);(Z,W)}=\frac{1}{J_{(Z,W);(R,\Theta)}}=\frac{1}{R}$$

In this way,

$$f_{Z,W}(z,w)=\bigg|J_{(R,\Theta);(Z,W)}\bigg|f_{R,\Theta}(h^{-1}(r),h^{-1}(\theta))=\frac{1}{r}\frac{1}{2\pi}re^{-\frac{z^2+w^2}{2}} = \frac{1}{\sqrt{2\pi}}e^{-z^2/2}\frac{1}{\sqrt{2\pi}}e^{-w^2/2}, \quad -\infty< z< \infty, \quad -\infty < w< \infty$$

So, Z is independent of W and $ Z,W\sim N(0,1) $

Example 2.8.26

(a) If $ X $ and $ Y $ has joint density $ f(x,y) $, find the joint density of $ W $ and $ Z $, in which $ W=aX+b $ and $ Z=cY+d $, $ a> 0 $, $ c> 0 $, $ b,d \in \mathbb{R} $.

Using the Jacobian method, we have

$ W=aX+b $ which implies that $ X=\frac{1}{a}\left(W-b\right) $ and $ Z=cY+d $ which implies that $ Y=\frac{1}{c}(Z-d) $. So,

42659b5f3aedce6b5fe21f2d3b8c6e42c18862f8

and therefore,

$$f_{W,Z}(w,z)=\bigg|J_{(X,Y);(W,Z)}\bigg|f_{X,Y}\left(\frac{1}{a}\left(w-b\right),\frac{1}{c}(z-d)\right)= \frac{1}{ab}f_{X,Y}\left(\frac{1}{a}\left(w-b\right),\frac{1}{c}(z-d)\right)$$

for $ -\infty< w< \infty $ and $ -\infty< z< \infty $

(b) Let $ (X,Y) $ a random vector having bivariate normal distribution with density given in Example 2.1.13. What is the density of

$$(W,Z)=\left(\frac{X-\mu_1}{\sigma_1}, \frac{Y-\mu_2}{\sigma_2}\right)?$$

What distribution is this?

We have to

$$f_{X,Y}(x,y)=\frac{1}{2\pi\sigma_1\sigma_2\sqrt{1-\rho^2}}\exp\left(-\frac{1}{2(1-\rho^2)}\left[\left(\frac{X-\mu_1}{\sigma_1}\right)^2- 2\rho\left(\frac{X-\mu_1}{\sigma_1}\right)\left(\frac{y-\mu_2}{\sigma_2}\right)+\left(\frac{y-\mu_2}{\sigma_2}\right)^2\right]\right),$$

in which $ \sigma_1> 0 $, $ \sigma_2> 0 $, $ -1< \rho < 1 $, $ \mu_1\in \mathbb{R} $ and $ \mu_2\in \mathbb{R} $.

Now, we have to $ W=\frac{X-\mu_1}{\sigma_1} $ which implies that if $ a=\frac{1}{\sigma_1} $ and $ b=-\frac{\mu_1}{\sigma_1} $ which implies that $ W=aX+b $.

So, we have to $ Z=\frac{Y-\mu_2}{\sigma_2} $ which implies that if $ c=\frac{1}{\sigma_2} $ and $ b=-\frac{\mu_2}{\sigma_2} $ which implies that $ Z=cY+d $.

Using item (a) we have

$$f_{W,Z}(w,z)=\frac{\sigma_1 \sigma_2}{2\pi\sigma_1\sigma_2\sqrt{1-\rho^2}}\exp\left(-\frac{1}{2(1+\rho^2)}\left[w^2-2\rho wz+z^2\right]\right) = \frac{1}{2\pi\sqrt{1-\rho^2}}\exp\left(-\frac{1}{2(1+\rho^2)}\left[w^2-2\rho wz+z^2\right]\right)$$

with $ -\infty< w< \infty $ and $ -\infty< z< \infty $. Which is a bivariate normal distribution with correlation coefficient $ \rho $. In which, $ W\sim N(0,1) $ and $ Z\sim N(0,1) $.

Screenshot_105

Example 2.8.27

Screenshot_106

Screenshot_107

Example 2.8.28

Suppose $ X_1,X_2,\dots, X_n $ form a random sample from a distribution with density $ f(x) $. Show that

$$\mathbb{P}(X_1< \dots < X_n)=\frac{1}{n!}$$

and that

$$\mathbb{P}(X_i=X_j \text{ para algum par } (i,j) \text{ tal que } i \neq j)=0$$

We have to $ X_1,X_2, \dots X_n $ are a random sample, then they are independent random variables and identically distributed then $ X_1,X_2, \dots X_n $ is invariant to permutations and has joint density $ [f(X_1),f(X_2),\dots, f(X_n)] $ so by example 2.4.9(b) we have that

$$\mathbb{P}(X_1< \dots < X_n)=\frac{1}{n!}$$

and

$$\mathbb{P}(X_i=X_j \text{ para algum par } (i,j) \text{ tal que } i \neq j)=0$$

Example 2.8.29

Suppose $ X_1,X_2, \dots X_n $ are independent and identically distributed, with common density $ f $. Show that the joint density of

$$U=\min_{1\leq i\leq n} X_i \quad \quad\quad \quad e \quad \quad \quad \quad V=\max_{1\leq i \leq n}X_i$$

is

92d66d0c81c50ba74248833a225057a8dcff0062

We have to

$$\mathbb{P}(V\leq v)=\mathbb{P}(X_1< v, \dots, X_n< v)=\left[\mathbb{P}(X_1\leq v)\right]^n=\left[F(v)\right]^n$$

This is due to being independent and identically distributed. So, we have to

$$F_{U,V}(u,v)=\mathbb{P}(U\leq u, V\leq v)=\mathbb{P}(V\leq v)-\mathbb{P}(U> u, V\leq v)=\left[F(v)\right]^n -\mathbb{P}(U> u, V\leq v)$$

Now, we have to

$$\mathbb{P}(U> u, V\leq v)=\mathbb{P}(u< X_1\leq v, u< X_2\leq v, \dots , u< X_n\leq v)$$

as it is independent and identically distributed we have to

$$\mathbb{P}(U> u, V\leq v)=\left[\mathbb{P}(u< X_1\leq v)\right]^n =\left[F(v)-F(u)\right]^n$$

Therefore we have to

Screenshot_101

Example 2.8.30

Be $ X_1,X_2, \dots X_n $ independent and identically distributed variables, with density $ U[0,\theta] $, in which $ \theta > 0 $. Be

$$U=\min_{1\leq i\leq n} X_i \quad \quad\quad \quad e \quad \quad \quad \quad V=\max_{1\leq i \leq n}X_i$$

(a)Prove that the joint density of $ (U,V) $ is

Screenshot_100

and

Screenshot_99

We have to

$$F_W(w)=\mathbb{P}(W\leq w)=\mathbb{P}(V-U\leq w)=\int_0^w \int_0^v f(u,v)du dv+\int_w^\theta \int_{v-w}^v f(u,v)dudv$$

in which

$$\int_0^w \int_0^v f(u,v)du dv= \int_0^w \int_0^v\frac{n(n-1)(v-u)^{n-2}}{\theta^n}dudv$$

making a variable change $ x=v-u $ and $ dx=-du $ then

$$\int_0^w \int_0^v\frac{n(n-1)(v-u)^{n-2}}{\theta^n}dudv=\int_0^w \frac{n(n-1)}{\theta^n}\int_{0}^v x^{n-2}dx=\int_0^w \frac{n(n-1)}{\theta^n(n-1)}v^{n-1}dv=\left[\frac{w}{\theta^n}\frac{v^n}{n}\right]_0^w=\left(\frac{w}{\theta}\right)^n $$

We also have to

$$\int_w^\theta \int_{v-w}^v f(u,v)dudv=\int_w^\theta \int_{v-w}^v \frac{n(n-1)(v-u)^{n-2}}{\theta^n}dudv$$

making a variable change again $ x=v-u $ and $ dx=-du $ then

$$\int_w^\theta \int_{v-w}^v \frac{n(n-1)(v-u)^{n-2}}{\theta^n}dudv=\int_w^\theta \frac{n(n-1)}{\theta^n}\int_0^w x^{n-2}dx=\frac{n(n-1)}{\theta^n(n-1)}\int_w^\theta w^{n-1}dv=\frac{nw^{n-1}}{\theta^n}(\theta-w)=n\left(\frac{w^{n-1}}{\theta^{n-1}}-\frac{w^n}{\theta^n}\right)$$

So,

Screenshot_98

Example 2.8.31

Se $ X_1,X_2, \dots, X_n $ are independent with common distribution $ U[0,1] $, show that

$$-2n\ln Y\sim \chi^2(2n),$$

where Y is the geometric mean of the $ X_i $ defined by

$$Y=\left(\prod_{i=1}^n X_i\right)^{1/n}$$

We have to $ X_1\sim U[0,1] $ so by example 2.4.6, $ \ln(X_1) \sim Exp(1)=\Gamma(1,1) $ (see Note 6.12.2).

So:

$$n\ln(Y)=-\ln(Y^n)=-\ln\left(\prod_{i=1}^n X_i\right)=-\sum_{i=1}^n \ln(X_i).$$

Now for the hereditary property of independence and with distribution $ \Gamma(1,1) $. So,

$$-n\ln(Y)\sim \Gamma(n,1)$$

Now doing $ Z=-n\ln(Y) $. So be $ W=2Z $.

$$f_W(w)=\frac{1}{2}f_Z(w/2)=\frac{1}{2}\frac{1}{\Gamma(n)}\left(\frac{w}{2}\right)^{n-1}e^{-w/2}, \quad \quad w> 0.$$

So, $ W=2n\ln Y\sim \Gamma\left(n,\frac{1}{2}\right) $. Now how $ \chi^2(n) $ has the same distribution as $ \Gamma\left(\frac{n}{2},\frac{1}{2}\right) $(Note 6.3.1).

Furthermore, we have to $ \chi^2(2n) $ has the same distribution as $ \Gamma\left(n,\frac{1}{2}\right) $, which implies that $ -2n\ln(Y)\sim \chi^2(2n) $

Example 2.8.32

Show that if $ X\sim t(1) $, then X has a Cauchy distribution

By the definition of the student variable t, we have that $ Z $ and $ Y $ independent with $ Z\sim N(0,1) $ and $ Y\sim \chi^2(n) $ then

$$\frac{Z}{\sqrt{Y/n}}\sim t(n)$$

Now if $ n=1 $, set $ W=\sqrt{Y} $ which implies that $ Y=W^2 $, using the Jacobian method we have $ J_{(Y,W)}=2W $ and then:

Screenshot_97

8.2.9 Construction of random variables

In this section we construct a random variable associated with the discrete probability distribution $ f $. First, we define that a partition $ \mathcal{K} $ of $ S^{\infty} $, in which $ S^\infty $ is the Cantor space, it is a finite class of sets $ K_{1}, \ldots, K_{n} $ that satisfies

(i) $ K_{i} \in S^\infty, \ i=1, \ldots,n $;

(ii) $ \displaystyle\bigcup_{i=1}^{n}K_{i} = S^{\infty} $;

(iii) $ K_{j}\displaystyle\bigcap K_{l}=\emptyset, ~~j,l=1, \ldots,n ~\hbox{e}~j\neq l $.

We denote by $ S(\mathcal{A}) $ set of all functions $ X:S^{\infty}\rightarrow \mathbb{R} $ such that

595ef300954c8de059e61108e62daaca36ea8ea2

with $ K_1, \ldots, K_{n} $ a partition of $ S^{\infty} $ and $ c_{i} \in \mathbb{R} $, $ i=1,\ldots,n $. The elements of $ S(\mathcal{A}) $ They are called random variables (or measurable functions).

Theorem 2.9.1

Let us consider the probability space ($ S^{\infty}, \mathcal{A}, \mathbb{P} $).

Screenshot_109

$$\mathbb{P}\left(\omega: X(\omega)=c_{i}\right) = \eta(i)$$

Demo

Let us consider $ (B_{1},B_{2},\ldots,B_{2^{j}}) $ any enumerable set such that

$$\Delta_{j} =(\pi_{1}^{-1}((\omega_{1}))\cap \ldots \cap\pi_{1}^{-1}((\omega_{j})): (\omega_{1},\omega_{2},\ldots,\omega_{J})\in S^{j}) = (B_{1},B_{2},\ldots,B_{2^{j}}).$$

We consider

$$A_{1} = B_{1}\cup \cdots \cup B_{j_{1}}$$

$$\vdots$$

$$A_{i}=B_{j_1+\cdots+j_{i-1}}\cup \cdots \cup B_{j_{1}+ \cdots + j_{i}},$$

for $ i=1,2,\ldots,n $. Thus, we obtain a random variable $ X $

Screenshot_108

The image probability $ P $ is the discrete probability distribution $ \eta(i) $ associated with the random variable $ X $ previously defined.

On the other hand, given $ X = \sum_{i=1}^{n}c_i1!!1_{(K_{i})} $ a random variable we obtain that $ \eta(i) = P[K_{i}] $.

Note that the representation of the random variable $ X $ is not unique: any permutation of the elements of $ \Delta_j $ leads us to a distinct random variable. Therefore, we fix the enumeration defined by $ \Delta_j $.

↑