Let be Bernoulli random variables that are not necessarily mutually independent, and . Then
We can derive the proof by
where the first two equalities hold from linearity of expectation, and the last one holds by conditional expectation. ∎
Let be Bernoulli random variables that are not necessarily mutually independent, and . Then
Recall the Bubblesort algorithm. Determine the variance of the number of inversions that need to be corrected by Bubblesort.
We introduce 0-1 random variables, where and . is 1 if and only if the and the element are inverted during the sorting. The variance of can be expressed by lemma 1.3.2
if and only if the element is greater than element, and thus . Since , therefore .
For , if the two pairs are disjoint, that , then and are independent, therefore .
On the other hand, if have index overlap, there are choices, each breaking into 3 categories:
if , then if and only if element is the largest among 3, and thus .
if , then if and only if element is in the middle, and element is the largest, which halves the probability, and therefore .
if , then if and only if element is the smallest among 3, and thus .
We conclude that
∎
Find an example of random variable with finite moment for , but an unbounded moment.
Let have with . converges, doesn’t. ∎
Ever heard of Pareto tails?
For any random variable and finite expectation , finite , and finite median ,
is the value that minimizes the expression .
is the value that minimizes the expression .
The first one is immediate, as minimizes at by expanding the expression.
For second case, we assume that there exists such that , or . Since or works the same by symmetry, WLOG we let , then
For , we have , and for the expression equals , so
Since for a median , and , the right-hand side is at most , contradicting the prior assumption of existence of , and proves that minimizes the expression . ∎
Let be a random variable, with mean , median , and finite standard deviation . Then .
where the first and the third inequality follow from theorem 1.2.5, and the second one follows from theorem 1.3.6. ∎
Show that, for a random variable with standard deviation and :
Cantelli’s inequality (or one-sided Chebyshev’s inequality) can be proved by:
The last inequality was established by Chebyshev’s inequality.
is minimized at , and thus the first inequality is upper bounded by .
By symmetry, the second inequality is proven. ∎
Using 1.3.8, show lemma 1.3.7.
By 1.3.8, we have and .
By definition of median , and .
Since is finite, is finite, we have , and thus completes the proof for . ∎
Let be a nonnegative integer-valued random variable with positive expectation. Prove
By conditional expectation, we have
where the last inequality follows from Jensen’s inequality.
Again by conditional expectation, we have , and thus
Since is an integer-valued random variable,
Another way of seeing it is by a direct application of Markov’s inequality, that . ∎
If are independent, identically distributed random variables with mean and standard deviation , then for any constant ,