On this page
8.8 Expectation of random variables
Consider $(\Omega,\mathcal{F})$ a measurable space, in which $\mathcal{F}$ is a $\sigma$-algebra in $\Omega$. We denote by $\mathbb{P}: \mathcal{F}\rightarrow [0,1]$ a probability about $(\Omega, \mathcal{F})$. The probability $\mathbb{P}$ is a set function $\sigma$-additive with $\mathbb{P}(\Omega)=1$, see Notions of Probability. For a detailed discussion on the construction of probability, see Caratheodory’s extension theorem. In this module, we will dedicate ourselves to studying the linear and positive functional, called expectation or lebesgue integral.
Be $X:\Omega \rightarrow \mathbb{R}$ a function. For all $A \subset \mathbb{R}$, we define $$X^{-1}(A)=(\omega\in \Omega |X(\omega)\in A)$$ the inverse image of the function $X$. The inverse image properties listed below will be used in the following: $$X^{-1}(\emptyset)=\emptyset$$ $$X^{-1}(A^c)=(X^{-1}(A))^{c}$$ $$\displaystyle X^{-1}\left(\bigcup_{i}A_i\right)=\bigcup_{i}X^{-1}(A_i)$$ $$\displaystyle X^{-1}\left(\bigcap_{i}A_i\right)=\bigcap_{i}X^{-1}(A_i).$$ We denote by $X^{-1}(\mathcal{E})$ the subset class $X^{-1}(C)$ in which $C \in \mathcal{E}$. With these properties it is not difficult to notice that the inverse image of a $\sigma$-algebra defines a $\sigma$-algebra.
We say that $X$ is a measurable function if $X^{-1}(A)\in \mathcal{F}$ for everyone $A\in \mathcal{B},$ in which $\mathcal{B}$ is the $\sigma$-Borel algebra defined in reals. For ease of notation, in this module, we will identify random variables with measurable functions, without necessarily mentioning a probability over the measurable space.
Definition 8.1

Lemma 8.1

Demo

Indicator function properties

Definition 8.2
We define a simple random variable, in the form

in which $x_i\in \mathbb{R}$ are distinct real numbers and $(A_i:i=1,2, \cdots , n) \subset \mathcal{F}$ is a partition of $\Omega$, that is, $A_i\cap A_j=\emptyset$, if $i\neq j$ and $ \cup_i A_i = \Omega$.
Lemma 8.2
The set $\mathfrak{E}$ composed of simple random variables is a vector space.
Demo

are also simple random variables. Therefore, the class $\mathfrak{E}$ has a lattice structure. For any function $X: \Omega \rightarrow \mathbb{R}$, the following formulas are valid:
(1) $\sup(-X,-Y)=- \inf(X,Y)$;
(2) $\sup(X,Y)+\in(X,Y)=X+Y$.
We denote by $X^{+}=\sup(X,0)$ and for $X^{-}=\sup(-X,0)=-\inf(X,0)$ two non-negative functions. Thus, we obtain that $X=X^{+} - X^{-}$ and $\mid X\mid = X^{+}+X^{-}$.
Definition 8.3
Data $(\Omega, \mathcal{F} , \mathbb{P})$ a probability space and $X:\Omega \rightarrow \mathbb{R}$ a function, we say that $X$ is a random variable if $(\omega \in \Omega: X(w) \leq x) \in \mathcal{F}$ for everyone $x \in \mathbb{R}$.
Lemma 8.3
Every random variable $X$ it is a measurable function.
Demo: We will show that for every Borelian $B \in \mathcal{B}$, we have to $X^{-1}(B) \in \mathcal{F}$. Since $X$ is a random variable, we know that this property is valid for $B=(- \infty, b]$ with $b \in\mathbb{R}$. Using the fact that $\mathcal{F}$ it’s bad $\sigma$-algebra, we conclude that
(1) $X^{-1} ((a, \infty))=X^{-1} \left( (- \infty , a]^c \right)= \left[ X^{-1} ((-\infty, a])\right]^c \in \mathcal{F}$;
(2) $X^{-1} ((a,b]) = X^{-1} ((-\infty,b] \cap (a, \infty))= X^{1}((-\infty , b]) \cap X^{-1} ((a, \infty)) \in \mathcal{F}$.
for everyone $-\infty \leq a < b < \infty$. We denote by $\mathcal{D} = ( B \subset \mathbb{R}: X^{-1} (B) \in \mathcal{F})$. As a consequence of property (2), we conclude that $\mathcal{D}$ contains the semi-algebra formed by the intervals $\mathcal{R} = ((a,b]: -\infty \leq a < b < \infty)$. Since the $\sigma$-Borel algebra is generated by intervals $\mathcal{R}$, we just need to show that $\mathcal{D}$ is a $\sigma$-algebra. So, we have to
(a) $X^{-1} (\emptyset)=\emptyset \in \mathcal{F}$;
(b) Suppose that $B \in \mathcal{D}$, then $X^{-1}(B^c) = \left(X^{-1}(B)\right)^c \in \mathcal{F}$;
(c) Let $A_1 , A_2, \cdots$ elements of $\mathcal{D}$, then we have to $X^{-1} \left(\cup_{i=1}^\infty A_i \right) = \cup_{i=1}^\infty X^{-1}(A_i) \in \mathcal{F}.$
Therefore, we obtain that $\mathcal{D}$ is a $\sigma$-algebra and follow the lemma.
Lemma 8.4
Be $X:\Omega \rightarrow \mathbb{R}$ a function such that $(\omega \in \Omega: X(\omega) < x) \in \mathcal{F}$ for everyone $x \in \mathbb{R}$. So, we have to $X$ is a random variable.
Demo: We just have to observe that $$X^{-1} ((-\infty,b])=X^{-1} \left(\cap_{n=1}^{\infty} (-\infty, b+ \frac{1}{n})\right) = \cap_{n=1}^{\infty} X^{-1} ((-\infty, b+ \frac{1}{n})) \in \mathcal{F},$$ for everyone $b \in \mathbb{R}$. Follow the motto.
With lemmas 8.3 and 8.4, we conclude that if $X:\Omega \rightarrow \mathbb{R}$ satisfies $(\omega \in \Omega: X(\omega)\geq a) \in \mathcal{F}$ for everyone $a \in \mathbb{R}$, then $X$ is also a random variable. Data $X$ and $Y$ random variables, we have $g=\sup (X,Y)$ is also a random variable, since $$(\omega \in \Omega:g(\omega) \leq b)=(\omega \in \Omega:X(\omega) \leq b)\cap (\omega \in \Omega: Y(\omega) \leq b) \in \mathcal{F},$$ for everyone $b \in \mathbb{R}$. Likewise, we can show that $Z=\inf (X,Y)$ is a random variable. Next, we will characterize random variables through sequences of simple random variables. This fact will be important in defining hope or the lebesgue integral.
Theorem 8.1
A function $X: \Omega \rightarrow \mathbb{R}$ is a random variable if and only if there is a sequence of simple random variables $(X_n) \subset \mathfrak{E}$ such that $X_n(\omega) \rightarrow X(\omega)$ for everyone $\omega \in \Omega$. For every positive random variable $Y$, there is a non-decreasing sequence of simple random variables $(Y_n)$ which converges punctually to $Y$. Furthermore, this sequence can be taken in such a way that the limit is uniform in every subset of $\Omega$ for which $Y$ is limited above.
Demo: Suppose there is a sequence of simple random variables $(X_n)$ which converges punctually to $X$. When we define $g_n=\sup_{k \geq n} X_k$, we obtain that $(\omega \in \Omega: g_n(\omega) \leq b) = \cap_{k \geq n} ( \omega \in \Omega : X_k(\omega) \leq b) \in \mathcal{F}$, for all $b \in \mathbb{R}$ and $n \in \mathbb{N}$. In this way, we obtain that $g_n$ is a random variable for all $n$. Since $X_n$ converges punctually to $X$, we know that $$X = \lim \sup_n X_n = \inf_{n \geq 1} \sup_{n \geq k} X_k = \inf_{n \geq 1} g_n.$$ Thus, we conclude that $(\omega \in \Omega: X(\omega) > a)=\cap_{n=1}^{\infty} (\omega \in \Omega: g_n(\omega) > a ) \in \mathcal{F}$ for everyone $a \in \mathbb{R}$. Therefore, we obtain that $X$ is a random variable.
On the other hand, suppose that $X$ be a random variable. Since $X=X^+ - X^-$ is the difference of two positive random variables, we just need to show that every positive random variable is a point limit of simple random variables. Be $X$ a positive random variable, to $n=0,1,2,3,\cdots$ and $0\leq k\leq 2^{2n}-1$ we take $$E_n^k= X^{-1}((k2^{-n},(k+1)2^{-n}]) \quad \text{e} \quad F_n=X^{-1}((2^n,\infty]).$$
Thus, we define the simple random variable

Note that $X_n\leq X_{n+1}$, for all n, and even if $0\leq X-X_n\leq 2^n$, in the set where $X\leq 2^n$, right when $ n\rightarrow \infty$ we have to $X_n\rightarrow X$ punctually and uniformly in the sets in which X is limited. With this, we obtain the theorem.
To illustrate the approximation of random variables by simple random variables, we consider the figures below.

In figure (a) we have in red the function $X_0$ and in figure (b) also in red we have $X_1$, we can notice that as n grows $X_n$ gets closer and closer and even $X_n\leq X_{n+1}$. As a consequence of Theorem 8.1, we obtain the following proposition
Proposition 8.1
Be $X, Y$ measurable functions, then
(a) $cX$;
(b) $X+Y$;
(c) $XY$;
(d) $X/Y$, if $Y(\omega)\neq 0$.
are measurable functions.
Demo: Exercise.
Through proposition 8.1, we conclude that the class of random variables presents an algebraic structure. Furthermore, if $(X_n)$ is a sequence of random variables, the functions $Y=\sup_n X_n$ and $Z=\inf_n X_n$ are also random variables. In this way, for every sequence $(X_n)$ of random variables, we have $\lim \sup_n X_n$ and $\lim \inf_n X_n$ are also random variables. The sequence convergence set $(X_n)$ is defined by $$(\omega \in \Omega: \lim \inf_n X_n = \lim \sup_n X_n) \in \mathcal{F}.$$ Thus, the limit of every convergent sequence of random variables is also a random variable.
Given $Y$ a random variable defined over $(\Omega, \mathcal{F} , \mathbb{P})$ and $\beta \subset \mathcal{F}$ a sub-$\sigma$-algebra. We say that $Y$ is measurable with respect to $\beta$ if $\sigma$-algebra generated by the random variable $Y$, defined by $\beta(Y)=(Y^{-1}(B):B \in \mathcal{B})$, is contained in $\beta$.
Proposition 8.2
Consider $\beta(X)$ to $\sigma$-algebra generated by the random variable $X$. A random variable $Y$ is measurable with respect to $\beta(X)$ if, and only if, $Y=f(X)$ in which $f:\mathbb{R} \rightarrow \mathbb{R}$ it is a measurable function.
Demo: Se $Y=f(X)$ in which $f$ is a measurable function, we have $Y$ is measurable with respect to $\sigma$-algebra $\beta(X)$ (exercise). Next, we will show that if $Y$ is a measurable random variable with respect to $\beta(X)$, then $Y$ has the shape $Y=f(X)$. Initially, we consider the case in which $Y$ is a simple random variable. By definition, there is a finite partition $(B_i:i=1,2, \cdots ,n)$ of $\Omega$ such that

Be $Y$ a measurable random variable with respect to $\beta(X)$ which is not a simple random variable. We take $(Y_n)$ a sequence of simple random variables measurable with respect to $\beta(X)$ such that $Y=\lim_n Y_n$. We know that $Y_n = f_n(X)$ in which $f_n:\mathbb{R} \rightarrow \mathbb{R}$ it is a measurable function. In this way, when we define $f=\lim_n f_n$, we conclude that $f$ is measurable and $Y=f(X)$. The proposition follows.
8.8.1 Lebesgue Integral
Be $(\Omega, \mathcal{F},\mathbb{P})$ a probability space and $X$ a random variable defined over $(\Omega, \mathcal{F}, \mathbb{P})$. In this module, we will define the expectation of the random variable $X$, or Lebesgue integral of $X$. In the hope section of random variables, we introduce simple random variables in the form

in which $(x_i)$ are distinct real numbers and $(A_i) \subset \mathcal{F}$ a finite partition of $\Omega$. In this way, we define the expectation or integral of the simple random variable $X$, by $$\mathbb{E} [X]=\sum_{i=1}^n x_i \mathbb{P}(A_i).$$ Here, we will use the notation $$\mathbb{E}[X],~~ \int X(\omega)d\mathbb{P}(\omega),~~\int Xd\mathbb{P},~~\text{ou simplesmente quando não houver confusão } \int Xd\mathbb{P}.$$
The functional $\mathbb{E}$ takes elements in the space of simple random variables $X \in \mathfrak{E}$ and transforms them into real numbers $\mathbb{E}(X)$. In this way, we say that $\mathbb{E}: \mathfrak{E} \rightarrow \mathbb{R}$ is a functional. We say that a functional $\mathbb{G}:\mathfrak{E}\rightarrow \mathbb{R}$ is positive if $\mathbb{G}(X)\geq 0$ whenever $X\geq 0$. Next, we derive some properties of the hope functional.
Proposition 8.2.1

Demo
By the definition of hope, we have

$$\lim\mathbb{P}({X_n> \epsilon})+\epsilon=\epsilon$$
which implies that $$0\leq \lim E[X_n]\leq \epsilon$$
how $\epsilon$ It’s arbitrary we have to $$\lim E[X_n]=0$$

We previously showed that any positive random variable can be approximated by a sequence of simple random variables. Thus, we can extend our definition of hope to every positive random variable.
Theorem 8.2.1
Be $X$ a positive random variable and $(X_n)$ a sequence of simple random variables that converges punctually to $X$. In this way, we define $$\mathbb{E}[X]=\lim_{n \rightarrow \infty} \mathbb{E}[X_n].$$ Furthermore, hope satisfies the following properties:
(a) $0 \leq \mathbb{E}[X] \leq \infty$, for every positive random variable $X$;
(b) $\mathbb{E} [cX]=c\mathbb{E}[X]$ for every positive random variable $X$ and real constant $c \geq 0$. Furthermore, if $X,Y$ are positive random variables, we have $\mathbb{E}[X+Y]=\mathbb{E}[X]+\mathbb{E}[Y]$;
(c) If $X\leq Y$ are positive random variables, we have $\mathbb{E}[X] \leq \mathbb{E}[Y]$;
(d) Given $(X_n)$ an increasing sequence of positive random variables, then we have $\mathbb{E}[\lim_{n\rightarrow \infty} X_n]=\lim_{n \rightarrow \infty} \mathbb{E}[X_n]$.
Demo: Initially, we will show that the definition of hope is well defined. In this case, we need to show that the definition of hope is independent of the sequence of simple random variables. Be $(X_n)$ and $(Y_n)$ two increasing sequences of simple random variables, we will show that if $\lim_mX_m\leq \lim_n Y_n$, then we have to $\lim_m \mathbb{E}[X_m] \leq \lim_n \mathbb{E}[Y_n].$ As the sequences are monotonous, we have to $$\lim_n \inf(X_m , Y_n)=X_m\quad m \geq 1,$$ in $\mathfrak{E}$. So, how $\mathbb{E}$ is a positive linear functional with the property of monotone continuity in $\mathfrak{E}$, we have to $$\lim_n \mathbb{E}[Y_n]\geq\lim_n \mathbb{E}[\inf(X_m,Y_n)]=\mathbb{E}[X_m], \quad m\geq 1.$$ Thus, when we take the limit when $m \rightarrow \infty$, we conclude that $\lim_m \mathbb{E}[X_m] \leq \lim_n \mathbb{E}[Y_n].$
As a consequence, we have to $X=\lim_n X_n$ the expression $\lim_n \mathbb{E}[X_n]$ depends only on $X$ and not the sequence of simple random variables $(X_n)$. As a consequence we obtain items (a) and (c). To prove item (b), we simply observe that if $X=\lim_n X_n$ and $Y=\lim_n Y_n$ we have to $cX=c\lim_nX_n$ and $X+Y=\lim_n(X_n+Y_n)$. Next, we apply the definition of hope as a positive random variable.
To prove (d), we take $X_n=\lim_mY_{m,n}$ in which $(Y_{m,n}:m\geq 1)$ is a sequence of simple random variables for all $n\geq 1$. When we denote by $Z_m=\sup_{n\leq m}Y_{m,n} \in \mathfrak{E}$ for everyone $m\geq 1$, we obtain that $Y_{m,n}\leq Z_m\leq X_m$ and obviously $\mathbb{E}[Y_{m,n}]\leq \mathbb{E}[Z_m]\leq \mathbb{E}[X_m]$ for everyone $m\geq n$. Furthermore, we know that $Z_m\leq Z_{m+1}$ which implies that $\mathbb{E}[Z_m]\leq \mathbb{E}[Z_{m+1}]$. Therefore, when we take the limit, we conclude that $$\lim_m X_m=\lim_m Z_m\quad \text{então}\quad \lim_m\mathbb{E}[X_m]=\lim_m \mathbb{E}[Z_m]=\mathbb{E}\left[\lim_m Z_m\right].$$ With this, we obtain the theorem.
With the above proposition, we define hope for any positive random variable, even if hope is $\infty$. Now, if $X$ is any random variable, we know that $X=X^+-X^-$ and $\mid X\mid=X^++X^-$, in which $X^+=\sup(X,0)$ and $X^-=-\inf (X,0)$. Thus, we say that the random variable $X$ is integrable if $\mathbb{E}[X^+]< \infty$ and $\mathbb{E}[X^-]< \infty$, in particular, this is valid for every bounded random variable. For every random variable $X$ integrable, we define $\mathbb{E}[X]=\mathbb{E}[X^+]-\mathbb{E}[X^-]$. Thus, we obtain an extension of the expectation for all random variables that are integrable, which is linear, positive and satisfies the monotone continuity property (see theorem 8.2.2). The definition of hope can be extended to the class of quasi-integrable random variables. A random variable $X$ is called quasi-integrable if at least one of the members $\mathbb{E}[X^+]$ or $\mathbb{E}[X^-]$ is finite. In this case, we define $\mathbb{E}[X]=\mathbb{E}[X^+]-\mathbb{E}[X^-]$.
Theorem 8.2.2 (Expectation of a Random Variable)
Given $(\Omega, \mathcal{F}, \mathbb{P})$ a space of probability, hope $\mathbb{E}$ defined over the space of all quasi-integrable random variables satisfies the following properties:
(a) We have to $-\infty \leq \mathbb{E}[X] \leq \infty$ for every almost integrable random variable $X$. Hope is finite if, and only if, the random variable is integrable. Furthermore, if $X\geq 0$, then we obtain that $\mathbb{E}[X]\geq 0$;
(b) We have to $\mathbb{E}[cX]=c\mathbb{E}[X]$ for every finite constant $c$. Furthermore, we have to $\mathbb{E}[X+Y]=\mathbb{E}[X]+\mathbb{E}[Y]$, if $X^+$ and $Y^+$ (or, $X^-$ and $Y^-$) are integrable;
(c) If $X \leq Y$, then $\mathbb{E}[X]\leq \mathbb{E}[Y]$;

Theorem 8.2.3
Be $(X_n)$ a sequence of positive random variables and $X=\displaystyle \sum_{n=1}^{\infty}X_n$ then $\mathbb{E}[X]=\displaystyle \sum_{n=1}^{\infty}\mathbb{E}[X_n]$.
Demo

$$\mathbb{E}[X_1+X_2]=\lim \mathbb{E}[Y_n+Z_n]=\lim \left(\mathbb{E}[Y_n]+\mathbb{E}[Z_n]\right)=\lim \mathbb{E}[Y_n]+\lim \mathbb{E}[Z_n]= \mathbb{E}[X_1]+\mathbb{E}[X_2]$$
By induction we have $$\displaystyle \mathbb{E}[\sum_{i=1}^{n}X_i]=\sum_{i}^{n} \mathbb{E}[X_i]$$
Now by the monotone convergence theorem, we have $$\mathbb{E}[\sum_{i=1}^{\infty}X_i] =\mathbb{E}[\lim_n \sum_{i=1}^{n}X_i]=\lim \sum_{i=1}^{n}\mathbb{E}[X_i]=\sum_{i=1}^{\infty}\mathbb{E}[X_i].$$ Therefore the result follows.
Corollary 8.2.1 (Fatou-Lebesgue Lemma)
Be $(X_n)$ a sequence of random variables and Y and Z integrable random variables, then $$X_n\leq Y\rightarrow E[\limsup X_n]\geq \limsup \mathbb{E}[X_n]$$ $$X_n\geq Z\rightarrow \mathbb{E}[\liminf X_n]\leq \liminf \mathbb{E}[X_n]$$
In particular, if the sequence $(X_n)$ is convergent and if there exists an integrable random variable U such that $|X_n|\leq U$, then $\mathbb{E}[\lim X_n]=\lim \mathbb{E}[X_n]$.
Demo

For the case in which $-U\leq X_n\leq U$ with integrable U, we have $$E[\liminf X_n]\leq \liminf E[X_n]\leq \limsup E[X_n]\leq E[\limsup X_n].$$ How does the sequence $(X_n)$ is by convergent hypothesis, this implies that the limit exists immediately $$\lim_n E[X_n]=E[\lim X_n].$$ The corollary follows.

Proposition 8.2.2
Let X and Y be independent random variables with $\mathbb{E}[|X|]< \infty$ and $\mathbb{E}[|Y|]< \infty$. So $\mathbb{E}[|XY|]< \infty$ and
$$\mathbb{E}[XY]=\mathbb{E}[X]\mathbb{E}[Y]$$
Demo
First consider $X\geq 0$ and $Y\geq 0$. Taking

Variable Change

Corollary 8.2.2

$$\int_{\Omega} (g\circ X)(\omega)\mathbb{P}(d\omega)=\lim_n\int_{\Omega} (g_n\circ X)(\omega)\mathbb{P}(d\omega)=\lim_n\int_{-\infty}^{\infty} g_n(x)\mathbb{P}_X(dx)=\int_{-\infty}^{\infty} g(x)\mathbb{P}_X(dx).$$ The corollary follows.
An important point of this corollary is that although we deal with positive random variables, we do not need the integrability hypothesis. Next, we will extend this corollary to general random variables with the integrability hypothesis.
Corollary 8.2.3

8.8.2 Properties of L^p space
We will denote by $ L^p=L^p(\Omega,\mathcal{F},\mathbb{P}) $, with $ 0\leq p\leq \infty $ the space of random variables such that $ \mathbb{E}[|X|^p]=\displaystyle \int Xd\mathbb{P}< \infty $, that is, for $ 0\leq p< \infty $ we have
$$L^p=(X:\Omega\rightarrow \mathbb{R}; X \text{ é mensurável e }\mathbb{E}[|X|^p]< \infty),$$
for $ p=\infty $ we have to
$$L^\infty=(X:\Omega \rightarrow \mathbb{R}; X \text{ é mensurável e existe uma constante C tal que } |X(\omega)|\leq C, \quad q.c. \quad em \quad\Omega).$$
There is a traditional norm for this space, which is defined as follows:
$$||X||_p=\mathbb{E}^{1/p}[|X|^p]$$
Just reminding you why $ ||\cdot|| $ is a standard it is necessary that:

Note that for $ ||\cdot|| $ is a norm, we need to create an equivalence class. So we say that $ X\equiv Y $ if, and only if, $ \mathbb{P}(X=Y)=1 $.
First show that it is in fact an equivalence class. For it to be an equivalence class it is necessary to satisfy 3 properties:
(a) Reflective: $ X\equiv X $
(b) Symmetrical: $ X\equiv Y \Rightarrow Y\equiv X $
(c) Transitive: $ X\equiv Y ~e~Y\equiv Z\Rightarrow X\equiv Z $
Demo
(a) Indeed, $ X\equiv X $, because $ \mathbb{P}(X=X)=1 $.
(b) Indeed, $ X\equiv Y \Rightarrow Y\equiv X $, because $ \mathbb{P}(X=Y)=1=\mathbb{P}(Y=X) $.
(c) Indeed, $ X\equiv Y ~e~Y\equiv Z\Rightarrow X\equiv Z $, because $ \mathbb{P}(X=Y)=1=\mathbb{P}(Y=Z)\Rightarrow \mathbb{P}(X=Z)=1 $.
So within the class of equivalents we have that $ ||\cdot||_p $ in fact it is a norm.
We will now present some fundamental properties of space $ L^p $.
Notation
Let’s use $ L^{q} $ to represent the conjugate exponent of the $ L^p $, that is, $ \displaystyle \frac{1}{p}+\frac{1}{q}=1 $.
Proposition 8.2.1 (Young’s Inequality)
Let p and q be conjugates then for every non-negative real number $ a $ and $ b $, for $ 1\leq p\leq \infty $ we have
$$ab\leq \displaystyle \frac{a^p}{p}+\frac{b^q}{q}$$
Demo
Let’s divide it into cases. Case $ ab=0 $ it’s trivial.
Case $ a^p=b^q $, like $ p $ and $ q $ are conjugated we have $ 1/p+1/q=1 $
$$ab=a(b^q)^{1/q}=aa^{p/q}=a^{p/p}a^{p/q}=a^{p(1/p+1/q)}=a^p1=a^{p}\displaystyle\left(\frac{1}{p}+\frac{1}{q}\right)=\frac{a^P}{p}+\frac{b^q}{q}$$
Now if $ a^p\neq b^q $, then using the exponential function, which is strictly convex we have (the second derivative is greater than zero at every point). So for everyone $ t\in (0,1) $ and $ x,y \in \mathbb{R} $ with $ x\neq y $, we have
$$e^{tx+(1-t)y}\leq t e^x+(1-t)e^y$$
So taking $ t=1/p $ what does it imply $ 1-t=1/q $ and $ x=\ln a^p $ and $ y=\ln b^q $ we have to
$$\displaystyle ab=e^{\ln ab}=exp\left(\frac{\ln a^p}{p}+\frac{\ln b^q}{q}\right)\leq \frac{e^{\ln a^p}}{p}\frac{e^{\ln b^q}}{q}=\frac{a^p}{p}+\frac{b^q}{q}$$
Theorem 8.2.1 (Hölder Inequality)
Let f and g be a random variable, such that $ f\in L^p $, with $ 1\leq p\leq \infty $ and $ g\in L^{q} $. So $ fg\in L^1 $ and
$$||fg||_1\leq ||f||_p||g||_q$$
Demo
By Young’s inequality, we have

Integrating on both sides, we obtain that
$$|fg|_1\leq \frac{|f|_p}{p}+\frac{|g|_q}{q}=1$$
Therefore the result follows. For the general case, just take $ f=f/|f|_p $ and $ g=g/|g|_q $ and the result follows.
Hölder’s inequality can be extended to k functions.
Proposition 8.2.2 (Minkowski Inequality)
Se $ 1\leq p\leq \infty $ and $ f,g\in L^p $, then $ f+g\in L^p $ and
$$|f+g|_p\leq |f|_p+|g|_p$$
Demo
Just in case $ p=1 $ we just need to integrate the inequality
$$|f(x)+g(x)|\leq |f(x)|+|g(x)|$$
Now if $ 1< p< \infty $, then we know that
$$|f(x)+g(x)|^p\leq (|f(x)|+|g(x)|)^p\leq 2^p (|f(x)|^p+|g(x)|^p)$$
which implies that $ f+g\in L^p $. Next consider
$$|f(x)+g(x)|^p=|f(x)+g(x)|^{p-1}|f(x)+g(x)|\leq |f(x)+g(x)|^{p-1}|f(x)|+|f(x)+g(x)|^{p-1}|g(x)|$$
How $ (p-1)q=p $ this implies that $ |f+g|^{(p-1)}\in L^q $, then we can apply Hölder’s inequality. Logo
$$||f||f+g|^{p-1}|_1\leq |f|_p|(f+g)^{p-1}|_q$$
$$||g||f+g|^{p-1}|_1\leq |g|_p|(f+g)^{p-1}|_q$$
Now integrating from both sides
$$|f(x)+g(x)|^p\leq |f(x)+g(x)|^{p-1}|f(x)|+|f(x)+g(x)|^{p-1}|g(x)|$$
and using the above inequalities we obtain
$$|f+g|_p^p\leq |f|_p|(f+g)^{p-1}|_q+|g|_p|(f+g)^{p-1}|_q$$
Additionally, note that
$$|(f+g)^{p-1}|_q=\mathbb{E}[|f+g|^{(p-1)q}]^{1/q}=\mathbb{E}[|f+g|^{p}]^{p/pq}=|(f+g)|_p^{p/q}$$
Therefore
$$|f+g|_p^p\leq |f|_p|(f+g)|_p^{p/q}+|g|_p|(f+g)|_p^{p/q}$$
which implies that dividing both sides by $ |(f+g)|_p^{p/q} $ we have
$$|f+g|_p^{p(1-1/q)}=|f+g|_p\leq |f|_p+|g|_p$$
Therefore the result follows
Theorem 8.2.2
$ L^p $ is a vector space and $ ||\cdot||_p $ is a norm for any $ p\geq 0 $
Demo
Using Minkowski inequality and equivalence classes the result follows.
Definition 8.2.1
A space is said to be a Banach space if it is a normed and complete vector space.
Theorem 8.2.3 (Fischer-Riesz)
$ L^p $ is a Banach space.
Demo

As a consequence we have to $ g(\omega) $ has a finite limit almost certainly in $ \Omega $, with $ g\in L^p $. Furthermore, we have to $ m\geq j\geq 2 $, we have to:
$$|f_{n_m}(\omega)-f_{n_j}(\omega)|\leq |f_{n_m}(\omega)-f_{n_{m-1}}(\omega)|+\dots+|f_{n_{n+1}}(\omega)-f_{n_{j}}(\omega)|\leq g(\omega)-g_{n_{j-1}}(\omega)$$
This almost certainly occurs in $ \Omega $. Now we have to $ f_n(x) $ is Cauchy and therefore converges to a finite limit, say $ f(x) $. So we have to q.c
$$|f(\omega)-f_n(\omega)|\leq g(\omega), \quad n\geq 2$$
Furthermore, $ f\in L^p $, because
$$|f|_p=|f-f_n+f_n|_p\leq |f-f_n|_p+|f_n|_p\leq |g|_p+|f_n|_p\leq \infty$$
Finally since
$$|f_n(x)-f(x)|^p\rightarrow 0\quad e \quad |f_n-f|^p\leq g^p\in L^1$$
By the dominated convergence theorem we have that
$$|f_n-f|_p\rightarrow 0$$
Therefore the result follows.
Proposition 8.2.3 (Jensen Inequality)
Be $ f:\mathbb{R}\rightarrow\mathbb{R} $ a convex function and $ X\in L^1 $. So we have to
$$\mathbb{E}(f(X))\geq f(\mathbb{E}(X)).$$
Demo
We emphasize that a function is said to be convex if its graph is convex, that is, given any points $ a,b\in \mathbb{R} $ the line that passes through the ordered pairs $ (a,f(a)) $ and $ (b,f(b)) $ does not intersect the graph $ f $ at no point in the range $ (a,b) $.
An equivalent definition would be that for any $ x, y \in [a,b] $ and for everyone $ t\in [0,1] $ we have to:
$$f(tx+(1-t)y)\leq tf(x)+(1-t)f(y)$$
In fact if $ f $ is a convex function so given an ordered pair $ (y,f(y)) $ on the graph of $ f $, we have that there is a straight line $ r $ such that the line passes through the point $ (y,f(y)) $ and leave the curve $ f $ all above it, that is, there is a $ \lambda\in\mathbb{R} $ such that $ r(x)=\lambda(x-y)+f(y) $.
So we have to
$$f(x)\geq r(x)=\lambda(x-y)+f(y),~~~\forall x \in\mathbb{R}.$$
Therefore, if we apply the expected value on both sides we obtain:
$$\mathbb{E}(f(X))\geq \mathbb{E}(r(X))=f(y)+\lambda(\mathbb{E}(X)-y).$$
And, taking $ y=\mathbb{E}(X) $, the result follows.
Theorem 8.2.4
Be $ (f_n)_{n\in\mathbb{N}} $ a sequence such that $ f_n\in L^p $ and be $ f\in L^p $, such that $ ||f_n-f||_p\rightarrow 0 $.
Then there is a subsequence $ (f_{n_k}) $ and there is $ h\in L^p $, such as:
(a)$ f_{n_k}\stackrel{q.c}{\rightarrow}f $
(b)$ |f_{n_k}|\leq h $ almost certainly for any $ k\geq 0 $
Lemma 8.2.1 (Chebyshev Inequality)
Be $ f\in L^p $ for $ 1\leq p\leq \infty $. So
$$\mathbb{P}({x:|f(x)|> \alpha})\leq \displaystyle \left(\frac{|f|_p}{\alpha}\right)^p$$
Demo
Be $ E_{\alpha}=(x:|f(x)|> \alpha) $. So
$$|f|^p_p=\displaystyle \int_{\Omega}|f|^pd\mathbb{P}\geq \int_{E_{\alpha}}|f|^p d\mathbb{P}\geq \alpha^p \int_{E_\alpha}d\mathbb{P}=\alpha^p\mathbb{P}(E_\alpha).$$
Therefore the result follows.
Definition 8.2.2

Definition 8.2.3

Definition 8.2.4
A space E is said to be separable if it has a countable and dense subset D in E.
At this point we will show that the space $ L^p $ is reflective and separable and the dual space of $ L^p $ is its conjugate exponent $ L^q $, we will not demonstrate these results, but they can be found in any functional analysis book, such as Brezis.
Definition 8.2.5
Let X be a Banach space. We say that X is a uniformly convex space if, for all $ \epsilon > 0 $, there is $ \delta> 0 $ such that, if $ |x|\leq 1 $, $ |y|\leq 1 $ and $ |x-y|> \epsilon $, then
$$\displaystyle \left|\frac{x+y}{2}\right|< 1-\delta$$
Theorem 8.2.5 (Milman-Pettis)
If X is a uniformly convex Banach space, then X is reflexive
Lemma.8.2.2 (Clarkson inequality)
Se $ f,g \in L^p $, $ 1< p< \infty $
$ 1^\circ $ Clarkson inequality. Se $ p\geq 2 $, then
$$\displaystyle \left|\frac{f+g}{2}\right|^p_p+\left|\frac{f-g}{2}\right|^p_p\leq \frac{1}{2}(|f|_p^p+|g|^p_p)$$
$ 2^\circ $ Clarkson inequality. Se $ 1< p< 2 $, then
$$\displaystyle \left|\frac{f+g}{2}\right|^q_p+\left|\frac{f-g}{2}\right|^q_p\leq \frac{1}{2^{q-1}}(|f|_p^p+|g|^p_p)^{q-1}$$
Demo
For Clarkson’s first inequality, note that
$$a^p+b^p\leq (a^2+b^2)^{p/2}$$
taking $ a=\displaystyle \frac{\alpha +\beta}{2} $ and $ b=\displaystyle \frac{\alpha-\beta}{2} $. So
$$\left(\displaystyle \frac{\alpha +\beta}{2}\right)^p+\left(\displaystyle \frac{\alpha-\beta}{2}\right)^p\leq \left(\left(\displaystyle \frac{\alpha +\beta}{2}\right)^2+\left(\displaystyle \frac{\alpha-\beta}{2}\right)^2\right)^{p/2}$$
$$=\left(\displaystyle \frac{\alpha^2}{2}\frac{\beta^2}{2}\right)^{p/2}$$
$$\displaystyle \leq \frac{|\alpha|^p}{2}+\frac{|\beta|^p}{2}$$
Now we just integrate and the inequality follows. In Clarkson’s second inequality, it suffices to show that
$$\left|\displaystyle \frac{\alpha +\beta}{2}\right|^q+\left|\displaystyle \frac{\alpha-\beta}{2}\right|^q\leq \frac{1}{2^{q-1}} (|\alpha|^p+|b|^p)^{q-1}$$
It is equivalent to showing that
$$\left|\frac{1+t}{2}\right|^{q}+\left|\frac{1-t}{2}\right|^q\leq \frac{1}{2^{q-1}}(1+t^p)^{q-1}$$
for $ 0\leq t\leq 1 $. Note that for $ t=1 $ and $ t=0 $ the inequality follows trivially. For, then be $ 0< t< 1 $, making a change of variable we have
$$t=\displaystyle \frac{1-s}{1+s}$$
with $ 0< s < 1 $ Then the above equation is given by
$$\displaystyle \frac{1}{2}[(1+s)^q+(1-s)^p]-(1+s^q)^p-1\geq 0$$
Thus, doing an expansion by power series we have
$$\displaystyle \frac{1}{2}\sum_{k=0}^\infty \binom{p}{k}s^k+\frac{1}{2}\sum_{k=0}^\infty \binom{p}{k}(-s)^k-\sum_{k=0}^\infty \binom{p-1}{k}s^{qk}=$$
$$\displaystyle \sum_{k=1}^\infty \left[\binom{p}{2k}s^{2k}-\binom{p-1}{2k-1}s^{q(2k-1)}-\binom{p-1}{2k}s^{2qk}\right]$$
in which it is convergent to $ 0\leq s\leq 1 $. Thus, it is enough to prove that each term is positive for $ 0< s < 1 $ and in this way the result follows. After some algebraic manipulations we have $ k $-th term of the series is given by
$$\displaystyle \frac{(2-p)(3-p)\cdots (2k-p)}{(2k-1)!}s^{2k}\left[\frac{1-s^{(2^k-p)/(p-1)}}{(2k-p)/(p-1)}-\frac{1-s^{2k/(p-1)}}{2k/(p-1)}\right]$$
How $ p< 2 $, we have to
$$\displaystyle \frac{(2-p)(3-p)\cdots (2k-p)}{(2k-1)!}s^{2k}> 0$$
Furthermore, since the function $ f(x)=(1-s^x)/x $ is decreasing for $ x> 0 $ and the fact that
$$\displaystyle 0< \frac{(2k-p)}{(p-1)}< \frac{2k}{(p-1)} $$
which implies that
$$\displaystyle \left[\frac{1-s^{(2^k-p)/(p-1)}}{(2k-p)/(p-1)}-\frac{1-s^{2k/(p-1)}}{2k/(p-1)}\right]> 0$$
therefore the kth term is always positive and as the series is convergent we have
$$\displaystyle \frac{1}{2}[(1+s)^q+(1-s)^p]-(1+s^q)^p-1\geq 0$$
which implies that
$$\left|\frac{1+t}{2}\right|^{q}+\left|\frac{1-t}{2}\right|^q\leq \frac{1}{2^{q-1}}(1+t^p)^{q-1}$$
is true and therefore
$$\left|\displaystyle \frac{\alpha +\beta}{2}\right|^q+\left|\displaystyle \frac{\alpha-\beta}{2}\right|^q\leq \frac{1}{2^{q-1}} (|\alpha|^p+|b|^p)^{q-1}$$
Thus, we just need to integrate both sides of the inequality and therefore Clarkson’s second inequality is valid.
Theorem 8.2.6
$ L^p $ is a uniformly convex space for any $ 1< p< \infty $.
Demo
Given $ \epsilon> 0 $, be $ f,g \in L^p $ such that
$$|f|_p=|g|_p=1\quad e \quad |f-g |> \epsilon$$
Se $ p\geq 2 $, then using Clarkson’s first inequality we have
$$\displaystyle \left|\frac{f+g}{2}\right|_p^p\leq\frac{1}{2}(|f|^p_p+|g|_p^p)-\left|\frac{f-g}{2}\right|^p_p\leq 1-\frac{\epsilon^p}{2^p} $$
taking $ \delta =\displaystyle 1-\left(\frac{1-\epsilon^p}{2^p}\right)^{1/p} $ we have to
$$\displaystyle \left|\frac{f+g}{2}\right|_p< 1-\delta$$
which shows that $ L^p $ is uniformly convex for $ p\geq 2 $. To $ 1< p\leq 2 $, using Clarkson’s second inequality we have
$$\displaystyle \left|\frac{f+g}{2}\right|^q_p\leq \frac{1}{2^{q-1}}(|f|^p_p+|g|_p^p)^{q-1}-\left|\frac{f-g}{2}\right|^q_p$$
$$1-\frac{\epsilon^q}{2^q}$$
taking $ \delta =\displaystyle 1-\left(1-\frac{\epsilon^q}{2^q}\right)^{1/q} $
Therefore we have to $ L^p $ is a uniformly convex space for any $ 1< p< \infty $.
Theorem 8.2.7
$ L^p $ is a reflective space for any $ 1< p< \infty $
Demo
Note that $ L^p $ is a Banach space. Therefore, by theorem 8.2.6 it is uniformly convex and thus reflexive by the Milman-Pettis theorem
Theorem 8.2.8
The space of continuous functions $ C(\mathbb{R}^n) $ is dense in $ L^p $
Theorem 8.2.9
$ L^p $ is separable for any $ p\geq 1 $.
Demo

So choosing so that $ \delta |R|^{1/p}< \epsilon $ we get
$$|f-f_2|_p\leq 2\epsilon$$
This concludes the proof in the case where $ \Omega=\mathbb{R}^n $.
In the general case where $ \Omega\subset \mathbb{R}^n $, we see that we can extend each function of $ L^p(\Omega) $ as being zero outside of $ \Omega $. In this way,
we see that $ L^p(\Omega) $ can be seen with a closed subspace of $ L^p(\mathbb{R}^n) $. There is a canonical isometry and therefore we have that it is separable.
Theorem 8.2.10
O $ L^\infty $ is not separable.
Demo
Be $ \Omega \subset \mathbb{R}^n $ an open one, so we choose $ \Lambda \subset \Omega $ one open, with $ \Lambda \neq \Omega $ in such a way that the projection of $ \Lambda $ over the first coordinate contained a range $ [a,b] $. Then we define a subset $ B_t $ of $ \Lambda $ how

In this case, for $ t, s\in[0,1] $ with $ t\neq s $, we have
$$|u_t-u_s|_\infty=1$$

$$B_{u_t}=(f\in L^\infty;|f-u_t|< 1/2)$$

Proposition 8.2.4
The space $ L^1 $ it is not reflective.
Demo
Suppose $ L^1 $ be reflective. In this case, it would be reflexive and separable. Consequently your dual $ (L^1)^\star=L^\infty $ would be separable, which is absurd.
It is important to note that as space $ L^p $ is a Banach space, that is, a complete space, every sequence is convergent if, and only if, it is a Cauchy sequence.
Lemma 8.2.3
Let’s suppose that $ p_0\leq p_1 $. So
$$L^{p_1}\subset L^{p_0}$$
Furthermore, for all $ f\in L^{p_1} $

that is, the inclusion of $ L^{p_1} $ in $ L^{p_0} $ is a limited operator
Demo
Define $ F:=|f|^{p_0}\in L^{p_1/p_0} $, with $ f\in L^{p_1} $, we can assume without loss of generality that $ p_1> p_0 $, then set $ p=\displaystyle \frac{p_1}{p_0}> 1 $ and its conjugate exponent, given by
$$q=\displaystyle \frac{p_1}{p_1-p_0}.$$
We apply Hölder’s Inequality:
$$\displaystyle \int_{\Omega}Fd\mathbb{P}\leq \left(\int_\Omega 1d\mathbb{P}\right)^{1/q}\left(\int_{\Omega}F^pd\mathbb{P}\right)^{1/p}$$
$$\leq \mathbb{P}(\Omega)^{1-\frac{p_0}{p_1}}\left(\int_{\Omega}|f|^{p_1}d\mathbb{P}\right)^{p_0/p_1}$$
$$=|f|^{p_0}_{p_1},$$
which implies that

Covariance and the Inner Product
Definition 8.2.6
Be $ Cov(\cdot,\cdot):L^2\times L^2\rightarrow \mathbb{R} $ which is defined by
$$Cov(X,Y)=\mathbb{E}(XY)-\mathbb{E}(X)\mathbb{E}[Y]$$
Note that the $ Cov(\cdot,\cdot) $ is well defined for $ X,Y \in L^2 $, because in this case it is enough to use Hölder’s inequality and we obtain that
$$\mathbb{E}[XY]\leq \mathbb{E}[X^2]\mathbb{E}[Y^2]< \infty$$
which implies that $ Cov(\cdot,\cdot) $, if $ X,Y \notin L^2 $, we cannot guarantee that the $ Cov(\cdot,\cdot) $ exist.
Proposition 8.2.5
Covariance is symmetric and bilinear
Demo
Symmetry: $ Cov(X,Y)=Cov(Y,X) $, for $ X,Y\in L^2 $
In fact,
$$Cov(X,Y)=\mathbb{E}(XY)-\mathbb{E}(X)\mathbb{Y}=\mathbb{E}(YX)-\mathbb{E}(Y)\mathbb{X}=Cov(Y,X)$$
Bilinear: $ Cov(aX+bY,W)=aCov(X,W)+bCov(Y,W) $, for $ X,Y,W\in L^2 $ and $ a,b\in \mathbb{R} $
In fact,
$$Cov(aX+bY,W)=\mathbb{E}([aX+bY]W)-\mathbb{E}(aX+bY)\mathbb{E}(W)=$$
$$\mathbb{E}(aXW+bYW)-[a\mathbb{E}(X)\mathbb{E}(W)+b\mathbb{E}(Y)\mathbb{E}(W)]=$$
$$a\mathbb{E}(XW)+b\mathbb{E}(YW)-a\mathbb{E}(X)\mathbb{E}(W)-b\mathbb{E}(Y)\mathbb{E}(W)=$$
$$a(\mathbb{E}(XW)-\mathbb{E}(X)\mathbb{E}(W))+b(\mathbb{E}(YW)-\mathbb{E}(Y)\mathbb{E}(W))=$$
$$aCov(X,W)+bCov(Y,W)$$
Therefore the result follows
Definition 8.2.7 (Internal product)
Be $ \langle\cdot,\cdot\rangle:V\times V\rightarrow K $, in which, V is a vector space. In which this function has the following properties
(i) Symmetry: $ \langle u,v\rangle=\langle v,u\rangle $
(ii) Bilinearity: $ \langle au+bv,w\rangle=a\langle u,w\rangle+b\langle v,w\rangle $, with $ a,b \in\mathbb{R} $
(iii) Positivity: $ \langle u,u\rangle\geq 0 $ and is equal to zero if and only if $ u=0 $
Many properties of covariance can be easily obtained if we can identify the covariance as an inner product. Note that it satisfies all inner product properties except that it is equal to zero if and only if $ X=0 $ this occurs for $ X=c $ with $ c $ constant is called semi-positivity.
So, we create the following equivalence class $ \mathbb{P}[X-Y=c]=1 $ for some constant $ c\in \mathbb{R} $, which implies that the covariance defines an inner product over the equivalence class, this is the subspace of random variables with finite second moment and zero expectation. In this subspace, the covariance is exactly the inner product of $ L^2 $.
In this case we will show the Cauchy-Schwarz inequality, which is nothing more than a particular case of the Hölder inequality, for norms that come from an inner product.
Proposition 8.2.6 (Cauchy-Schwarz Inequality)
Be $ X,Y \in L^2 $, with $ \mathbb{E}(X)=0=\mathbb{E}(Y) $, then
$$|Cov(X,Y)|\leq|X|_2|Y|_2$$
Demo
It follows directly from Hölder’s Inequality.
8.8.3 Convergence of Sum of random variables
We know that the series $\displaystyle \sum_{n=1}^{\infty} 1/n$ diverges, and even though $\displaystyle \sum_{n=1}^{\infty} (-1)^n/n$ converges. However, the question remains whether $P(X_n=1)=P(X_n=-1)=1/2$ to $\displaystyle \sum_{n=1}^{\infty} X_n/n$ converge? How can we analyze the convergence of a random series? $$A_1=(\omega|\displaystyle \sum_{n=1}^{\infty} X_n/n~~ converge )$$
This is the set of points to which the series converges. But later we will demonstrate by Kolmogorov’s Theorem known as “zero-one law” $P(A_1)$
it can just be 0 or 1.
Definition 8.3.1

$\xi$ is a $\sigma$-algebra called $\sigma$-cald algebra, is also known as $\sigma$-terminal algebra or asymptotic algebra.
Note
Note that for every event $A\in \xi$ we have that A is independent of $X_1,\cdots, X_n$ for every finite n.
So for everyone $k\geq 1$ we have to $$A_1=(\omega|\displaystyle \sum_{n=1}^{\infty} X_n/n ~~converge )=(\omega|\displaystyle \sum_{n=k}^{\infty} X_n/n ~~converge)\in \mathcal{F}_k$$
We have to $A_1\in \displaystyle \bigcap_{ k=1}^{\infty} \mathcal{F}_k^{\infty}=\xi$. In the same way we have to, if $X_1,X_2,\cdots$ is any sequence, $$A_2=(\displaystyle \sum_{n=1}^{\infty}X_n~~ converge)\in \xi$$
Furthermore, we have to $$A_3=(X_n \in I_n\text{para um numero infinito de n})$$
where $I_n$ belongs to $\sigma$-borel algebra. Therefore, if we consider the independent variables, according to the Borel-Cantelli lemma, it follows that:

Thus the probability of $A_3$ It can only take on the value 0 or 1, depending only on whether or not the series converges. This is known as Borel’s 0-1 Law.
Lemma 8.3.1
Be $\mathcal{B}$ an algebra then, for any $\epsilon> 0$ and $B\in\mathcal{F}$, with $\sigma{(\mathcal{B})}=\mathcal{F}$, there is $A\in\mathcal{B}$ such that $$P(A\Delta B)\leq \epsilon$$
Theorem 8.3.1
Kolmogorov’s zero-one law. Be $(X_n)_{n\in \mathbb{N}}$ a sequence of independent random variables and be $A\in \xi$. A $P(A)$ only takes on a value of zero or one.
Demo

therefore $$P(A_n)\rightarrow P(A), P(A_n\cap A)\rightarrow P(A)$$
However $A\in \xi$ and therefore A is independent of $A_n$ for everyone $n\geq 1$. And so the result follows.
Corollary 8.3.1
Be $Y$ a random variable measurable with respect to $\sigma$-tail algebra $\xi$. So there is $c \in\mathbb{R}$ talque P(Y=c)=1.
Demo
Firstly note that as $Y$ is $\xi$-measurable then for any $A\in\sigma(Y)\subset \xi$, then $$P(Y\in B_1\cap Y=B_2)=P(Y\in B_1)P(Y\in B_2), \forall B_i\in\mathfrak{B}$$
with $\mathfrak{B}$ being the $\sigma$-Borel algebra. So, consider the probability of the event $[Y \leq x]$ is 0 or 1, because $$P([Y \leq x])=P([Y \leq x]\cap[Y \leq x])=P([Y \leq x])P([Y \leq x])=P^2([Y \leq x])$$
Therefore, the distribution function of Y has a single jump point, which is the supremum of the set $(x\in \mathbb{R} : P(Y \leq x) = 0)$. So be it $c=sup(x\in \mathbb{R} : P(Y \leq x) = 0)$, then $$P(Y=c)=1$$
which implies that Y=c almost certainly.

Theorem 8.3.2
a) Se $p=1/2$, then $P(S_n=0, i.v.)=1$, where i.v.=infinite times.
b) Se $p\neq 1/2$, then $P(S_n=0,i.v.)=0$
Demo
a) Note first that $B={[S_n=0,i.v.]}$ does not belong to $\sigma$-algebra $\xi$ So it is not immediate that $P(B)=0$ or $P(B)=1$. It is sufficient to prove that the event $$A=(\displaystyle \limsup \frac{S_n}{\sqrt{n}}=\infty,\liminf \frac{S_n}{\sqrt{n}}=-\infty)$$
that $P(A)=1$, like $A\subset B$. Therefore, it is equivalent to consider the following case.
Since we want to use the Borel-Cantelli lemma we need to look at an independent sequence. So consider a subsequence $n_1< n_2< \cdots$ of integers. So for any event $(C_k)$ powder each $C_k$ it just depends on $(X_{n_k +1},X_{n_k +2},\cdots, X_{n_{k +1}})$ are independent and the Borel-Cantelli lemma can be applied. So be it $n_k< m_k < n_{k+1}$ and we define $$C_k=(X_{n_k+1}+\cdots+X_{m_k}\leq -n_k)\cap(X_{m_k+1}+\cdots +X_{n_{k+1}}\geq m_k)$$
It is important to note that we chose to define $C_k$ in this way because we know the following fact $$S_{n_k}=X_1+\cdots +X_{n_k}\leq n_k$$
because $X_i=\pm 1$. Therefore $(\omega \in C_k)\rightarrow S_{n_k}\leq 0$. On the other hand, as $S_{m_k}\geq -m_k$, then adding we have $$(\omega\in C_k)\rightarrow S_{n_{k+1}}\geq 0$$

$(C_k, i.v.)\subset (S_n=0,i.v.)$
So we just need to prove that there is $n_k$ and $m_k$ talc $\sum P(C_k)=\infty$, and using Borel-Cantelli we have $P[C_k,i.v]=1$, which implies that $P[S_n=0,i.v.]=1$. Let us first note that given any $0<\alpha<1$, and an integer $k\geq 1$, there is an integer $p_k$, talc $$P(|S_{p_k}|=k)\leq \alpha$$
Define $n_k, m_k$ as follows $n_1=1$, $m_k=n_k+p_k$ and $n_{k+1}=m_k+p_k$. So $P(C_k)$ is given as follows $$P(C_k)=P(X_{n_k+1}+\cdots+X_{m_k}\leq - n_k)P(X_{m_k+1}+\cdots+X_{n_{k+1}}\geq m_k)$$
By symmetry we have $$P(C_k)=\frac{1}{4}P(|X_{n_k+1}+\cdots+X_{m_k}|\geq n_k)P(|X_{m_k+1}+\cdots+X_{n_{k+1}}|\geq m_k)$$
Furthermore, note that the distribution of $P(S_{n+j}-S_n)=P(S_j)$, then we have to $$P(C_k)=\frac{1}{4}P(|X_{1}+\cdots+X_{m_k-n_k}|\geq n_k)P(|X_{1}+\cdots+X_{n_{k+1}-m_k}|\geq m_k)\geq \frac{1}{4}(1-\alpha)^2$$
which implies that $$\displaystyle \sum_{k=1}^{\infty} P(C_k)\geq \sum_{k=1}^{\infty}\frac{1}{4}(1-\alpha)^2=\infty$$
Therefore by Borel-Cantelli we have $P(S_n=0,i.v.)=1$.
(b) Analogous to letter (a) but using the complement.
Theorem 8.3.3: (Hewitt-Savage 0-1 Law)
Be $X_1,X_2,\cdots$ a sequence of iid random variables, and $$A=(\omega | (X_1,X_2,\cdots)\in B)$$
a symmetrical event. So P(A)=0 or P(A)=1
Demo
Be $A=[X\in B]$ a symmetrical event. Be $B_n\in \mathfrak{B}(R^n)$, with $\mathfrak{B}(R^n)$ to $\sigma$-borel algebra $R^n$, such that for $A_n=(\omega | (X_1,\cdots, X_n)\in B_n)$ with
$P(A\Delta A_n)\rightarrow 0, ~~ n\rightarrow \infty$
So $P(A_n)\rightarrow P(A)$. Since A is symmetric then $$P(A_n\cap A_n)=P((X_1,\cdots X_n)\in B_n;(X_{n+1}, \cdots X_{2n})\in B_n)$$
And for the independence of $X_i$ we have to $$P((X_1,\cdots X_n)\in B_n;(X_{n+1}, \cdots X_{2n})\in B_n)=P((X_1,\cdots X_n)\in B_n)P((X_{n+1}, \cdots X_{2n})\in B_n)$$
So when $n\rightarrow \infty$ we have to $$P(A)=P^2(A)$$
which implies that P(A)=0 or P(A)=1.
Example 8.3.1
Suppose $(X_n)_{n\geq 1}$ a sequence of v.a’s such that $P(X=0)=1-\displaystyle \frac{1}{n}$, $P(X_n=1)=\displaystyle \frac{1}{2n}=P(X_n=-1)$. Show that $X_n\stackrel{P}{\rightarrow} 0$ and $X_n\stackrel{L^p}{\rightarrow} 0$.
Firstly, let us show that $X_n\stackrel{P}{\rightarrow} 0$, $$P(|X_n|\geq \epsilon)=P(X_n=1)+P(X_n=-1)$$ $$=\displaystyle \frac{1}{2n}+\frac{1}{2n}=\frac{1}{n}.$$
How $$\displaystyle \lim_{n\rightarrow}P(|X_n|\geq \epsilon)=0$$
Therefore we conclude that, $$X_n\stackrel{P}{\rightarrow} 0.$$
Now let us show that $X_n\stackrel{L^p}{\rightarrow} 0$.
We have to $$E[|X_n|^p]=\displaystyle \frac{1}{n}$$
How $$\displaystyle \lim_{n\rightarrow}E[|X_n|^p]=0$$
And so the result follows.
Example 8.3.2
For $c\in\mathbb{R}$, constant, show that $X_n\stackrel{L^2}{\rightarrow} c$ if, and only if, $E[X_n]\rightarrow c$ and $Var[X_n]\rightarrow 0$.
Firstly, let’s assume that $X_n\stackrel{L^2}{\rightarrow} c$. How $X_n\stackrel{L^2}{\rightarrow} 0$ we have to $$E[|X_n-c|^2]\rightarrow 0\rightarrow Var[X_n]+(E[X_n]-c)^2\rightarrow 0$$ $$\rightarrow Var[X_n]\rightarrow 0$$
and $$(E[X_n]-c)^2\rightarrow 0\rightarrow E[X_n]\rightarrow 0$$
how we wanted to demonstrate
Now suppose that $E[X_n]\rightarrow c$ and $Var[X_n]\rightarrow 0$. Note that $$E[|X_n-c|^2]=Var[X_n]+(E[X_n]+c)^2\rightarrow 0$$
8.8.4 Random Variables with finite second moment.
We discuss some properties of spaces $L^p$ in the section. In this section we will work with space $L^2$, which is a Banach space. Within this context, that is, within the context of random variables of $L^2$, we will introduce a geometric vision within this space.
For this section, all random variables considered will be variables belonging to $L^2$.
Just like $L^2$ has vector space structure, so we will define an inner product and the norm induced by this inner product.
Be $X,Y\in L^2$ $$(X,Y)=E[XY]$$
It’s easy to see that $(X,Y)$ is an inner product and furthermore, that the norm induced by this inner product is given by $$||X||=E^{1/2}[|X^2|]$$
which we have already shown is a norm in the space properties section $L^p$. So to introduce our geometric view into this space, now that we have our definition of the inner product in this space, we can define orthogonality.
Definition 8.4.1
We say that X and Y are orthogonal variables if, $(XY)=E[XY]=0$
Note that two variables are uncorrelated if they have zero covariance, this implies that $Cov(X,Y)=0\rightarrow E[XY]=E[X]E[Y]$, which implies that orthogonal random variables are uncorrelated.
Definition 8.4.2
We say that M is a system of orthogonal variables if X is orthogonal to Y for all $X,Y\in M$.
Definition 8.4.3
We say that M is an orthonormal system if it is an orthogonal system and furthermore for all $X\in M$ we have to $||X||=1$.
Note
We can make an analogy with linear algebra, when we have an orthonormal basis, for example for the $R^2$, this being for example $M=((0,1);(1,0))$. However, there is a small peculiarity in the $L^2$, it is a space with infinite dimensions and therefore the orthonormal basis of the entire space is a set M with infinite terms. Remembering that how $L^2$ is a Hilbert space (for $L^p$, with $p\neq 2$, we have to $L^p$ is not Hilbert) and as we showed in the space properties section $L^p$ we have to $L^2$ is separable. Furthermore, we have that every separable Hilbert space admits an orthonormal basis.
Theorem 8.4.1
Every separable H and Hilbert space has an orthonormal basis.
Demo
Be $(v_n)$ a dense enumerable subset in H (this set exists and the proof can be found in Brezis). Let it be a linear space $F_k$ whose base is formed by $(v_1, \dots, v_k)$. The sequence of spaces $(F_k)$ is non-decreasing and finite dimensional and yet $\displaystyle \bigcup_{k=1}^{\infty}F_k$ is dense in H. Take the vector $e_1$ orthonormal basis of $F_1$. Se $F_1\neq F_2$, then there is $e_2$ such that $(e_1,e_2)$ are orthonormal basis for $F_2$. Repeating this construction we find a countable orthonormal basis for H.
8.8.4.1 Best quadratic mean estimator
Be $M=(X_1,X_2,\cdots, X_n)$ an orthonormal system and X any random variable with $X\in L^2$. We can find a class of linear estimators. We just need to note that $$E[|X-\displaystyle \sum_{i=1}^{n}a_iX_i|^2]=||X-\displaystyle \sum_{i=1}^{n}a_iX_i||^2 =\left(X-\displaystyle \sum_{i=1}^{n}a_iX_i,X-\displaystyle \sum_{i=1}^{n}a_iX_i\right)$$ $$||X||^2 -2\displaystyle \sum_{i=1}^{n}a_i(X,X_i)+\left(\displaystyle \sum_{i=1}^{n}a_iX_i,\displaystyle \sum_{i=1}^{n}a_iX_i \right)$$ $$=||X||^2 -2\displaystyle \sum_{i=1}^{n}a_i(X,X_i)+ \sum_{i=1}^{n}a_i^2$$ $$=||X||^2 -\displaystyle \sum_{i=1}^{n}|(X,X_i)|^2+ \sum_{i=1}^{n}|a_i-(X,X_i)|^2$$ $$\geq ||X||^2- \displaystyle \sum_{i=1}^{n}|(X,X_i)|$$
So the $\inf E[|X-\displaystyle \sum_{i=1}^{n}a_iX_i|^2]$ is $a_i=(X,X_i)$. In this way, we can write X in terms of $X_i$ in the best way possible. With $a_i=(X,X_i)$, we write $$\widehat{X}=\displaystyle \sum_{i=1}^{n}(X,X_i)X_i$$
As we say in observation the basis for space $L^p$ has infinite dimension. And as shown in the theorem we can always find an orthonormal basis $M=(X_1,X_2,\dots)$, using this basis there is an important inequality known as Bessel’s inequality. Which says that $\forall X \in L^2$, we have to $$\displaystyle \sum_{i=1}^{\infty}|(X,X_i)|^2\leq ||X||^2$$
with equality being verified if, and only if, $$X=\displaystyle \sum_{i=1}^{\infty}(X,X_i)X_i$$
Furthermore, it is important to say that if we consider all estimators $e\in L^2$ of X, which are a function of $X_i$, we have that the best estimator is given by $$\widehat{X}=E(X|X_1,\dots, X_n)$$
(image missing)
A geometric view in this regard can be analyzed in the figure. Where A is a subset of $L^2$ and furthermore, A is generated by the orthonormal system M. Note that $\widehat{X}$ (in red) is the projection of X (in black) onto set A.