Introduction and review of probability
[48/100%]Let and be arbitrary events and show that . Explain which parts of the sample space are being double counted on both sides of this equation and which parts are being counted once.
This exercise derives the probability of an arbitrary (non-disjoint) union of events, derives the union bound, and derives some useful limit expressions.
For two arbitrary events and , show that
Show that and are disjoint.
For an arbitrary sequence of events , let and for each define . Show that , are disjoint events and show that for each , .
Show that
Show that for each , . Use this to show that
Show that . Note that this says that the probability of a limit of unions is equal to the limit of the probabilities. This might well appear to be obvious without a proof, but you will see situations later where similar appearing interchanges cannot be made.
Show that .
This is what Venn diagrams were invented for.
Use induction.
Remember De Morgan's equalities.
Find the probability that a five-card poker hand, chosen randomly from a 52-card deck, contains four aces. That is, if all arrangements of a deck of cards are equally likely, what is the probability that all four aces are in the first five cards of the deck.
Consider a sample space of eight equiprobable sample points and let be three events each of probability such that .
Create an example where but .
Show that, for your example, and are not independent. Note that the definition of statistical independence would be very strange if it allowed to be independent while and are dependent. This illustrates why the definition of independence requires the joint factorization condition on all subsets of events, rather than just pairwise factorization of every pair of events.
Make a table with a row for each sample point and a column for each of the above 3 events and try different ways of assigning sample points to events (the answer is not unique).
This exercise shows that for all rv's , is continuous from the right.
For any given rv , any real number , and each integer , let , and show that . Use this and the corollaries to the axioms of probability to show that .
Show that and that .
Show that for , .
Define . Show that is continuous from the left. In other words, the continuity from the right for the CDF arises from the almost arbitrary (but universally accepted) choice in defining the CDF as rather than .
Show that for a continuous non-negative rv ,
Suppose and are discrete rv's with the PMF . Show (a picture will help) that this is related to the joint CDF by
A variation of Example 1.5.1 is to let be a rv that takes on both positive and negative values with the PMF
In other words, is symmetric around 0 and has the same PMF as the non-negative rv of Example 1.5.1 (the rv with CDF for each integer , PMF , and ).
Show that and . (Thus show that the expectation of not only does not exist but is undefined even as an extended real number.)
Suppose that the terms in are summed in the order of two positive terms for each negative term (i.e., in the order ). Find the limiting value of the partial sums in this series.
Repeat (b) where, for any given integer , the order of summation is positive terms for each negative term.
You may find it helpful to know that
where is the Euler--Mascheroni constant, .
Theorem 1.4.1: Let be the PMF of the binomial distribution for an underlying binary PMF , and let . Then for each integer , ,
where is the binary Kullback--Leibler divergence (relative entropy). Also, with strict inequality for all .
The bounds on the binomial in this theorem are based on the Stirling bounds. These say that for all , is upper and lower bounded by
The ratio of the first two terms is monotonically increasing with toward the limit 1, and the ratio is monotonically decreasing toward 1. The upper bound is more accurate, but the lower bound is simpler and known as the Stirling approximation.
Show from the Stirling bounds above and from the monotone property that
Use the result of (a) to upper bound by
Show that this is equivalent to the upper bound in Theorem 1.4.1.
Show that
Derive the lower bound in Theorem 1.4.1.
Show that is 0 at and non-negative elsewhere.
Let be a ternary rv taking on the three values 0, 1, 2 with probabilities respectively. Find the median of for each of the cases below.
, , .
, , .
, , .
Now suppose that is non-negative and continuous with the density for and for . We know that is positive for all , but it is otherwise unknown. Find the median or interval of medians.
The median is sometimes (incorrectly) defined as that for which . Show that it is possible for no such to exist.
Note 1: The median is not unique in (c). Find the interval of values that are medians. Note 2: Some people force the median to be distinct by defining it as the midpoint of the interval satisfying the definition given here.
For any given rv , express in terms of and .
For some given rv with , let . Using (a), show that
Show that is minimized over by choosing to be a median of . Be careful to show that when the median is an interval, all points in this interval achieve the minimum.
Let be a rv with CDF . Find the CDF of the following rv's.
The maximum of IID rv's, each with CDF .
The minimum of IID rv's, each with CDF .
The difference of the rv's defined in (a) and (b); assume has a density .
Let and be rv's in some sample space and let , i.e., for each , . The purpose of this exercise is to show that is a rv. This is a mathematical fine point that many readers may prefer to simply accept without proof.
Show that the set of for which has probability 0.
To show that is a rv, we must show that for each real number , the set is an event. We proceed indirectly. For an arbitrary positive integer and an arbitrary integer , let . Let and show that is an event.
On a two-dimensional sketch for a given , show the values of and for which .
Show that
Explain why this shows that is a rv.
Explain why (d) implies that if and if are rv's, then is a rv.
This set of values should be bounded by a staircase function.
Only one or two lines of explanation are needed.
Let be rv's with expected values . Show that . You may assume that the rv's have a joint density function, but do not assume that the rv's are independent.
Now assume that are statistically independent and show that the expected value of the product is equal to the product of the expected values.
Again assuming that are statistically independent, show that the variance of the sum is equal to the sum of the variances.
Let and , where is the unit step, i.e., for and for . Using the definition of the Stieltjes integral as the limit of Riemann sums over partitions with , refined as the partition mesh , show that does not exist.
Let and , where and are in . Show that exists if and only if . Show that the integral has the value 1 for and the value 0 for . Argue that this result is still valid in the limit of integration over .
Let and be independent discrete rv's, each with a finite set of possible values. Show that , defined as a Stieltjes integral, is equal to the distribution of at each other than the possible sample values of , and is undefined at each sample value of .
This failure of Stieltjes integration is not a serious problem; is a step function, and the integral is undefined at its points of discontinuity. We automatically define at those step values so that is a CDF (i.e., is continuous from the right). This problem does not arise if either or is continuous.
Let be a sequence of IID continuous rv's with the common PDF ; note that for all and that for all . For , define as a record-to-date of the sequence if for all .
Find the probability that is a record-to-date. Use symmetry to obtain a numerical answer without computation. A one- or two-line explanation should be adequate.
Find the probability that is a record-to-date, as a function of . Again use symmetry.
Find a simple expression for the expected number of records-to-date that occur over the first trials for any given integer . Show that this expected number is infinite in the limit .
Let be the index of the first record-to-date in the sequence. Find for each .
Show that is a rv.
Show that .
Let be the index of the second record-to-date in the sequence. Show that is a rv. You need not find the CDF of here.
Contrast your result in (c) to the result from Exercise 1.16(c) saying that the expected number of records-to-date is infinite over an infinite number of trials. Note: this might be a shock to your intuition -- there is an infinite expected wait for the first of an infinite sequence of occurrences, each of which must eventually occur.
For any given , find the probability that and are both records-to-date.
Is the event that is a record-to-date statistically independent of the event that is a record-to-date?
Find the expected number of adjacent pairs of records-to-date over the sequence .
Assume that is a non-negative discrete rv taking on values , and let for some non-negative function . Let , , be the th value taken on by . Show that . Find an example where exists but .
Let be a non-negative continuous rv with density and let be differentiable, non-negative, and strictly increasing in . Let , i.e., is a th-order approximation to the Stieltjes integral . Show that if , then . Show from this that converges to a finite value. Note: This is a very special case, but it can be extended to many cases of interest. It seems better to consider these convergence questions as required rather than to consider them in general.
Consider a positive, integer-valued rv whose CDF is given at integer values by
Use (equation (1.30)) to show that .
Find the PMF of and use it to check the value of .
Let be another positive, integer-valued rv. Assume its conditional PMF is given by
Find and show that . Explore finding until you are convinced that using the conditional expectation to calculate is considerably easier than using .
Let be another integer-valued rv with the conditional PMF
Find for each integer and find .
Show that, for uncorrelated rv's, the expected value of the product is equal to the product of the expected values (by definition, and are uncorrelated if ).
Show that if and are uncorrelated, then the variance of is equal to the variance of plus the variance of .
Show that if are uncorrelated, then the variance of the sum is equal to the sum of the variances.
Show that independent rv's are uncorrelated.
Let be identically distributed ternary valued rv's with the PMF ; . Find a simple joint probability assignment such that and are uncorrelated but dependent.
You have seen that the MGF of a sum of independent rv's is equal to the product of the individual MGFs. Give an example where this is false if the variables are uncorrelated but dependent.
Suppose has the Poisson PMF, for and has the Poisson PMF, for . Assume that and are independent. Show that is a Poisson rv and find the conditional distribution of conditional on .
Suppose and are binary rv's, each taking on the value 0 with probability and the value 1 with probability . Find a simple example in which are statistically dependent but are pairwise statistically independent (i.e., are statistically independent, are statistically independent, and are statistically independent). Give for your example.
Is pairwise statistical independence enough to ensure that
for a set of rv's ?
Show that is the value of that minimizes .
For each of the following random variables, find the endpoints and of the interval for which the moment generating function exists. Determine in each case whether exists at and . For parts (a) and (b) you should also find and sketch . For parts (c) and (d), has no closed form.
Let , be positive numbers and let have the density
Let be a Gaussian rv with mean and variance .
Let be a non-negative rv with density
where and .
For the of (c), find the limit of as approaches from below. Then replace with in the definition of and and show whether the above limit is then finite or not.
Assume that the MGF of the rv exists (i.e., is finite) in the interval , , and assume throughout. For any finite constant , express the MGF of , i.e., , in terms of the MGF of and show that . Explain why .
Show that .
Use (a) and (b) to show that . Let and show that .
Assume that is non-deterministic, i.e., there is no value of such that . Show that the inequality sign $\geq$' may be replaced by ' everywhere in (a), (b) and (c).
A computer system has users, each with a unique name and password. Due to a software error, the passwords are randomly permuted internally (i.e., each of the possible permutations are equally likely). Only those users lucky enough to have had their passwords unchanged in the permutation are able to continue using the system.
What is the probability that a particular user, say user 1, is able to continue using the system?
What is the expected number of users able to continue using the system?
Suppose the rv is continuous and has the CDF . Consider another rv . That is, for each sample point such that , we have . Show that is uniformly distributed in the interval 0 to 1.
Let be an integer-valued rv with the PMF for . Find the mean, variance, and moment generating function of .
Let be a non-negative rv and be some fixed number. Let be the event that . Show that (i.e., that this inequality is satisfied for every ).
Use your result in (a) to prove the Markov inequality.
Minimize over all non-negative rv's such that for some given and . What is the rv that achieves the minimum?
Use (a) to prove the Markov inequality and also point out the distribution that meets the inequality with equality.
This inequality states that if a zero-mean rv has a variance , then it satisfies the inequality
with equality for some only if is binary and . We prove this here using the same approach as in Exercise 1.31. Let be a zero-mean rv that satisfies for some given and . The variance of can be expressed as
We will first minimize over all zero-mean satisfying .
Show that the second integral above satisfies .
Show that the first integral above is constrained by
Minimize the first integral subject to the constraints in (b).
Combine the results in (a) and (c) to show that . Find the minimizing distribution.
Use (d) to establish the one-sided Chebyshev inequality above. Also show (trivially) that if has a mean and variance , then .
Here we show that if is a zero-mean rv with a variance , then the median satisfies .
The one-sided Chebyshev inequality (Exercise 1.32) states that for a zero-mean rv with variance , for every , with equality for some only if is binary and .
First show that for the special case where is binary with equiprobable values at .
For all zero-mean rv's with variance other than the special case in (a), show that
Show that . Other than the special case in (a), show that this implies that .
Other than the special case in (a), show that . You have then shown that with equality only for the binary case with values . For rv's with a non-zero mean, this shows that .
We stressed the importance of the mean of a rv in terms of its association with the sample average via the WLLN. Here we show that there is a form of WLLN for the median and for the entire CDF, say of via sufficiently many independent sample values of .
For any given , let be the indicator function of the event where are IID rv's with the CDF . State the WLLN for the IID rv's .
Does the answer to (a) require to have a mean or variance?
Suggest a procedure for evaluating the median of from the sample values of . Assume that is a continuous rv and that its PDF is positive in an open interval around the median. You need not be precise, but try to think the issue through carefully.
What you have seen here, without stating it precisely or proving it is that the median has a law of large numbers associated with it, saying that the sample median of IID samples of a rv is close to the true median with high probability.
Show that for any integers ,
Extend (a) to show that, for all ,
Let and . Let be the sum of binary IID rv's with and . Show that for all ,
For , show that
Now let be fixed and for fixed such that . Argue that as ,
where means that .
A sequence of real numbers has the limit 0 if, for all , there is an such that for all . Show that the sequences in (a) and (b) below satisfy but the sequence in (c) does not have a limit.
for for each positive integer and otherwise.
Show that the definition can be changed (with no change in meaning) by replacing with either or for every positive integer .
Represent the MGF of a rv by
In each of the following parts, you are welcome to restrict to be either discrete or continuous.
Show that the first integral always exists (i.e., is finite) for and that the second integral always exists for .
Show that if the second integral exists for a given , then it also exists for all in the range .
Show that if the first integral exists for a given , then it also exists for all in the range .
Show that the range of over which exists is an interval from some to some (the interval might or might not include each endpoint, and the magnitude of either or both endpoints might be 0, , or any point between).
Find an example where and the MGF does not exist for . Find another example where and the MGF does exist for .
Let be a sequence of independent but not identically distributed rv's. We say that the weak law of large numbers (WLLN) holds for this sequence if for all
Show that the WLLN holds if there is some constant such that for all .
Suppose that for some , and for all . Show that the WLLN holds in this case.
Let be IID binary rv's. Let , . Let . Let be an arbitrary but fixed positive integer. Think! Then evaluate the following and explain your answers:
.
.
.
The WLLN is said to hold for a zero-mean sequence if
The CLT is said to hold for if for some and all ,
where is the normal CDF. Show that if the CLT holds, then the WLLN also holds.
Note 1: If you hate arguments, you will hate this. Note 2: It will probably ease the pain if you convert the WLLN statement to: For every there exists an such that for every ,
Show that if are IID, then the truncated versions are also IID.
Show that each has a finite mean and finite variance . Show that the variance is upper bounded by the second moment around the original mean , i.e., show that .
Assume that is truncated to . Show that and that . Use this to show that .
Let and show that for any ,
Use the fact that and have the same CDF from to , along with , to show that for all sufficiently large , . Use this to show that
Use the following equation to justify the truncation argument that and have the same limiting behavior.
Let be IID rv's with mean 0 and infinite variance. Assume that for some given , and some finite . Let .
Show that .
Let be truncated variables defined as
Show that .
Let . Show that .
Show that
Optimize your bound with respect to . How fast does this optimized bound approach 0 with increasing ?
Assume that is a sequence of rv's and is a number with the property that .
Let be arbitrary and show that for each ,
For the above, let be arbitrary. Show that there is an integer such that for all .
Show that this implies convergence in probability.
Let be a sequence of IID rv's each with mean 0 and variance . Let for all and consider the random variable . Find the limiting CDF for this sequence of rv's as . The point of this exercise is to see clearly that the CDF of is converging in but that the sequence of rv's is not converging in any reasonable sense.
Verify that if and .
Show that .
Consider a discrete rv with the PMF
Find the mean and variance of . Assuming that is an IID sequence with the distribution of and that for each , find the mean and variance of . (No explanations needed.)
Let and describe the event in words. Find an exact expression for .
Find a way to use the union bound to get a simple upper bound and approximation of .
Sketch the CDF of for . You can choose the horizontal axis for your sketch to go from to or from to or from to or from 0 to , whichever you think will best describe this CDF.
Now let . Give an exact expression for and show that this can be approximated by . Sketch the CDF of for , using a horizontal axis going from slightly below 0 to slightly more than .
Can you make a qualitative statement about how the CDF of a rv affects the required size of before the WLLN and the CLT provide much of an indication about .
Let be a sequence of rv's and assume that . Show that converges to 0 in probability.