Homework 1
Problem 1
Let .
Hint: You may use .
Proof
By the binomial theorem, we have:
The combinatorial interpretation of this equality is that: Let be the collection of all subsets that have size . For collection , its size is since it represents choosing elements from elements without regard to order.
Therefore the total number of subsets of is:
Using the binomial theorem, we have:
Thus:
We prove by combinatorial argument.
Let be a setwith distinct elements. The number of ways to choose a subset containing elements is .
In another way: We can first arbitrarily divide the distinct elements into two groups: group and group , each containing elements:
And fix the two groups.
For any subset of the elements with size , some of them are from group , and the rest of them are from group .
Let be the number of elements of that are chosen from , then the number of elements chosen from must be .
Note the number of ways to choose elements from is , and the number of ways to choose elements from is .
Therefore, the total number of ways to get from with elements from is .
Thus, summing over all possible values of , the number of ways to choose elements from i.e. the number of ways to get from , is
Thus, we obtain
as desired.
β‘
Problem 2
We roll a fair die three times and record the outcomes . What is the probability that the equation does not have solutions in the real numbers?
Solution
The equation does not have solutions in the real numbers iff the the discriminant is negative, i.e. .
Total possible equations is . For each , the total possible pairs are . We can calculate the number of pairs that satisfy the condition case by case.
For : holds for all .
For : , which excludes only .
For : since they are integers, so excluding ( cases).
For : , excluding: besides the previous case, thus cases excluded.
For : , excluding: besides the previous case, thus cases excluded.
For : , excluding: besides the previous case, thus cases excluded.
Thus, the total number of triples for which the discriminant is not negative (exlcuded) is
Therefore, the desired probability is
Problem 3
An ant starts at the origin on the integer lattice. At each step it moves either one unit to the right or one unit upward, each with probability . The ant continues moving until it reaches the point .
What is the probability that the ant visits the point at some time during its journey?
Hint: Start by counting the number of paths from to .
Solution
Any path from to must consist of steps to the right and steps upward, for a total of steps. So a path is uniquely determined by the choice of 205 steps to the right (which is equivalent to the choice of 200 steps upward).
Thus total number of paths from to is
A path passes through the point if and only if it first goes from to and then from to .
Thus the number of such paths is the product of the number of paths from to and the number of paths from to , by the fundamental counting principle. For the same reason as deciding the number of total paths from to , the number of paths from to is
And similarly, the number of paths from to is
Note that from a point to another point, all such paths are equally likely to be chosen. Therefore, the desired probability is
Problem 4
From a lottery containing tickets numbered , a ticket is drawn, its number is recorded, and then it is returned to the lottery. This process is repeated times. Find the probabilities of the following events:
Ticket 1 is selected at least once.
Tickets 1, 2, and 3 are each selected at least once.
Solution
Let be the event that ticket is selected at least once. $$\begin{align*} \mathbb{P}(E) &= 1 - \mathbb{P}(\text{ticket $1$ is never selected in $k$ draws}) \\ &= 1 - \left(\frac{n-1}{n}\right)^k \tag*{\text{(by independence of each draw)}} \end{align*}$$
Let be the event that tickets are each selected at least once.
For , let
Thus
By the principle of inclusion-exclusion,
Since similar to part (a), we have:, , , we then calculate:
Problem 5
In a house, drawer contains 3 gold coins and 3 silver coins, while drawer contains 3 gold coins and 6 silver coins. A thief (in the dark) randomly opens one drawer and then randomly takes two coins from it.
What is the probability that both coins are gold?
If it is discovered (upon his arrest) that he has stolen two gold coins, what is the probability that he opened drawer ?
Solution
The thief chooses a drawer uniformly at random, so for each pick, . Given a drawer, he draws two coins without replacement.
Using the law of total probability,
Let be the event that the thief stole two gold coins. By Bayesβ rule,
Since we have , , and from part (a), we get:
Problem 6
Let and be events of a probability space with . Show that:
Proof
Since , we have by monotonicity of probability measure:
Also, since and , both conditional probabilities below are well-defined. Then
This finishes the proof.
Let , , .
so by non-negativity of probability measure.
And since
Thus, we have:
By similar reason, we have:
Thus we have:
and
Note the two probabilities are well-defined since (and so ).
Now it remains to show that:
i.e.
which is equivalent to:
Eliminating common terms, this is equivalent to:
which is true by non-negativity of and . This finishes the proof that:
β‘
Homework 2
Problem 1
Suppose that the cumulative distribution function (CDF) of a random variable is strictly increasing and continuous. Let be a random variable with the uniform distribution on and define
Show that has CDF equal to . This exercise shows us how to construct a random variable with given distribution, assuming that we have a uniform random variable.
Proof
Since is strictly increasing and continuous, it has an inverse function on its range, and is also strictly increasing. Thus for any ,
Therefore for any , we have
Therefore
Since and for a CDF we have , we get
Thus for all , i.e., the CDF of equals .
β‘
Problem 2
A gas station fills its tank completely once a week. Let the weekly sales volume (in thousands of liters) be a random variable with density
Find the constant . What should be the tank capacity so that the probability of running out of fuel during a given week is ?
Solution
Since the density integrates to 1,
Let , then
So , which gives
Now we look for the tank capacity such that .
Let the tank capacity be (in thousands of liters). Running out of fuel in a week occurs when sales exceed , i.e., the event . We need
Since ,
Again let , then we have
Therefore
So the tank capacity should be thousand liters.
Problem 3
Let the random variable have density
Find the probability density function of and compute the probability .
Solution
Since for , we have . Hence almost surely, so for and therefore for (a.e.).
For ,
Compute each integral:
and similarly since the function is even. Therefore, for ,
Combining both cases we have
Notice that on , is differentiable (except on ):
So consider the function
Then for ,
and for
This shows that is absolutely continuous and is a probability density of . Hence
Now we compute .
We have . Thus
Thus,
Problem 4
Let the random variable have density , which is symmetric about , that is, , for all . Show that . If in addition , show that . Can you use this observation if ?
Proof
Since has density ,
Let so that . Then
Similarly,
By symmetry for all , hence the two integrals are equal, i.e. proved
If , then for some , We want to show that this is the same as the one in the symmetry condition. Consider . Since , we also have , so the following integral is well-defined:
Let ; then
Define . The symmetry condition implies that is an even function, thus is an odd function. Since , we may integrate over symmetric limits to get
Therefore , thus
Application to : Since the standard normal density satisfies , so it is symmetric about . Hence
β‘
Problem 5
An airline has observed that of ticket holders do not show up for their flight. Todayβs flight has an airplane with 200 seats, and the airline has sold 203 tickets. What is the probability that the airline will not be able to accommodate a ticketed passenger? Assume that, for each passenger , the event that passenger shows up is independent of all others, for .
Solution
Let be the number of passengers who show up. The condition indicates that is a binomial random variable with parameters and :
The airline cannot accommodate everyone exactly when more than 200 passengers show up, i.e.
Equivalently, letting be the number of no-shows, we have and
Numerically we can calculate
Problem 6
Consider a sequence of tosses of a fair die. We continue tossing until both outcomes 3 and 4 have appeared at least once. For example, one possible sequence of results is
and we then stop. Let be the number of tosses required (in this example, ). What is the expected value of the random variable ?
Solution
We can decompose the waiting time into two stages.
Stage 1: wait until the first time we see either 3 or 4: On each toss, the probability to get a 3 or 4 is . Hence the number of tosses until the first occurrence of is geometric with success probability , so
Stage 2: after seeing one of them, wait until we see the other: Once 3 has appeared, each subsequent toss produces a 4 with probability ; otherwise we are still missing a 4. Thus the additional waiting time is geometric with success probability , so
Since , by linearity of expectation we get
Homework 3
Problem 1
Let be a standard normal random variable . We denote by its distribution function. Answer the questions below
If with , show that the random variable is also normal and find its mean and variance.
Show that .
Show that for any .
Solution
has density
Thus
Note this is the density of a normal distribution with mean and variance . Therefore
Since has mean and variance , use linearity we have
and
Note the standard normal density is an even function:
Thus
Since , the two equal halves are each , so .
For any ,
Let , using we have
Problem 2
Let and be random variables with joint density
Compute the probability .
Compute the expected value .
Are and independent?
Solution
On we have since and , hence this region contributes nothing to .
On , the ineq is equivalent to . Therefore,
Compute the inner integral:
Hence,
By def,
Split over the two rectangles. On ,
On ,
Thus,
Consider: For ,
For ,
And for ,
Thus and are not independent.
Problem 3
Let and . Find and .
Hint: You may leave your answer as a function of the integral .
Solution
Note
Thus,
The roots of are . Since , the event is
Therefore, using the CDF of ,
Nowe we compute the covariance. By def,
For , and . Let
Then
Also,
so
Hence,
Problem 4
Find the conditional density of given that and the corresponding conditional expectation if the pair of random variables has absolutely continuous distribution with joint density: .
Solution
Given the joint density , we first compute the marginal density of . For ,
and for .
Therefore, for ,
This shows that has the same distribution as where , hence
Problem 5
A machine produces a coin that shows heads with a random probability . The value of is unknown to us, but from many observations of the coins produced by the machine we know that the distribution of the random parameter is uniform on . We start tossing the coin. Compute the following probabilities:
Solution
The head probability . Thus the density is:
The unconditional probability of heads on the first toss is
Let be the number of tosses until the first tail occurs. Conditional on , tails occurs with probability each toss, so is geometric with parameter . Hence
Taking expectation over ,
Problem 6
The joint probability density function of the random variables and is given by
Solution
Determine from normalization:
For fixed ,
Thus
so
The marginal density of (for ) is
and otherwise.
Thus
The event corresponds to the region (since ). Hence
For fixed ,
Therefore
By definition,
Calculate each part. First the denominator:
And the numerator:
For fixed ,
Thus
Therefore,
Homework 4
Problem 1
Let be a random variable with values in such that . Explain why almost surely and show that almost surely.
Proof
Since and , by Markovβs inequality, for any ,
Hence for all . In particular,
that is, almost surely.
Also notice that
and by countable subadditivity,
Thus . And since takes values in , we have
, and
This finishes the proof that a.s. and a.s.
β‘
Problem 2
Let be a random variable with and . Show that:
Solution
Compute the variance of :
Observe that
By Chebyshevβs inequality,
Therefore,
Thus,
Problem 3
Let be two random variables such that and . In addition
Compute the moment generating function of .
Solution
Compute each conditional moment generating function:
For
For
For ,
Then we use the law of total expectation conditioning on : for any such that the expectations below are finite, we have
So the moment generating function of is
Problem 4
For any with we set . Consider the sequence of random variables with
Check if converges in probability and if converges in .
Solution
We first show that in probability.
Let .
For large enough s.t. , iff or . Therefore,
Since , we have:
Since is arbitrary, we conclude that
We then show that does not converge to in .
We compute
Hence $$X_n \not\xrightarrow{L^1} 1$$
Problem 5
Let and be independent random variables with densities
Find the distribution function of the sum .
Solution
Since and are independent, the density of is given by convolution:
where we know
Thus
Compute this piecewise: If , then the interval is , so
If , then the interval is , so
If , then the interval is , so
Outside , clearly . Therefore,
Now we integrate to get the cdf. For , .
For ,
For ,
For ,
And for , .
Hence the cdf of is
Problem 6
Let and be positive constants and let be independent random variables with
(i.e., with the same second parameter ). Show that , with .
Proof
Let
We need to show that .
Since , its moment generating function is
Since are independent, the moment generating function of is
Therefore,
Note this is exactly the moment generating function of a random variable. Hence,
β‘
Homework 5
Problem 1
Let be an i.i.d sequence of random variables with . Show that
Proof
Let
Since , for ,
Thus , so . Also,
By the Strong Law of Large Numbers,
Since the exponential function is continuous,
Let
Then from the first part we instantly have
Then for any event in the event of probability one where this convergence holds, choose s.t. , then for all sufficiently large ,
Since , we have . Therefore . Therefore
β‘
Problem 2
A factory produces small resistors, and the resistance of each resistor is a random variable with unknown mean and variance ohms . The quality control engineer wants to estimate the average resistance of a batch. She decides to measure resistors and compute the sample average
Determine approximately the number of resistors she needs to measure so that the probability that the sample mean differs from the true mean by more than 0.005 ohms is less than , i.e.,
Proof
By linearity of expectation,
And (assmuming the are independent), we have
Thus
By Chebyshevβs inequality, for any ,
Taking , we get
We want this upper bound to be less than , so it is enough to require
Therefore, she needs to measure approximately resistors.
β‘
Problem 3
Let be a sequence of random variables with for all . Show that with probability 1, there exists an such that for all .
Proof
Let
Then by assumption. Hence
By Borel-Cantelli lemma,
So with probability , only finitely many of the events occur. In other words, with probability , there exists such that for all ,
occurs. Equivalently,
Therefore, with probability , there exists such that for all .
β‘
Problem 4
Assume that be a sequence of i.i.d random variables with density
Find the distribution function of .
Let for any . Show that , where has distribution function
Proof
For ,
If , then , so
Now consider . Then
Since
and the are independent,
For all sufficiently large , we have , hence
Therefore,
so
Taking , we use the standard limit
with , we obtain
Thus,
which is exactly . Hence
β‘
Problem 5
Let be a sequence of random variables with values in . Show that there exists a sequence with such that
For simplicity you may assume that .
Hint: For any construct such that and use Borel-Cantelli for the events .
Proof
For each , choose such that
Notice such a choice is always possible, since is a well-defined random variable, which implies as .
Now define
Consider the sequence of events
By the definition of , we have
It follows that
By the first Borel-Cantelli lemma,
This means that for almost all , there exists such that: for all , the event does not occur, i.e.,
Since as , it follows immediately that
If we assume , we can provide an explicit sequence. Since
we can choose . So that
Then , the general argument above guarantees that
This completes the proof.
β‘
Problem 6
Let be i.i.d. positive integer-valued random variables with . Interpret as the number of children in family . From the first families, choose a child uniformly at random among all children. Let denote the number of children in the selected childβs family. Show that , where has distribution
Proof
For each , let
be the total number of children in the first families.
Given , we choose one child uniformly at random among these children. Hence, conditionally on , the probability that the chosen child comes from a family with exactly children is
Since , this becomes
By the Strong Law of Large Numbers,
and
Since , it follows that
Taking expectations on both sides, and using dominated convergence because , we obtain
Thus, for every ,
Hence
β‘
Homework 6
Problem 1
Let be a random variable such that , that is . Denote by , its characteristic function.
Show that is differentiable with . (Hint: DCT)
If, in addition, has symmetric distribution(i.e. have the same distribution), then show that for any .
Proof
Fix . Consider the difference quotient
Notice we have (for a.e. ):
Hence
Using the mean value theorem for the function , for we have
Also, , so
Since , we have , therefore is a dominating integrable random variable for . Then by DCT,
Thus is differentiable and
Since random variables with the same distribution have the same expectation under measurable functions for which the expectation exists, we get
On the other hand since , we thus have
A complex number equal to its own conjugate must be real. Therefore,
Writing
Since is symmetric, is odd, so
Therefore .
β‘
Problem 2
Let , where and , where .
Compute the characteristic functions of .
Let be a sequence in such that and be a sequence of random variables with . Show that .
Proof
We have
Therefore,
We factor into and obtain
By the binomial formula,
Next for we have
Hence
Thus
So the characteristic functions are
By part (a),
We now compute the limit as .
Set
Since (as ), we have . Therefore,
Hence
Exponentiating, we get
But by part (a),
Thus for every ,
Since is the characteristic function of , by the uniqueness theorem for characteristic functions, this implies
β‘
Problem 3
Show that
Hint: Observe that the integral is the probability of an event related to a Gamma distribution. Can we apply the central limit theorem?
Proof
Let
Then
is the density of a Gamma distribution with parameters , that is, . Hence
Now let be i.i.d. random variables with
We know that
Also,
Therefore,
Since and , this is
By the Central Limit Theorem,
Hence, since the standard normal distribution function is continuous at ,
Thus
β‘
Problem 4
A casino offers the following random game: A player rolls a fair die once. If the outcome is 2 or 4, then the player wins 3 euros from the casino. If the outcome is , then the player loses 4 euros to the casino. If the outcome is 6 , then the player neither wins nor loses. If 90 players play the above game independently, find approximately the probability that the casino wins at least 30 euros in total.
Solution
Let be the gain of the casino from the -th player, for . Then the random variables are independent and identically distributed, with
Since the die is fair, we have
Let
be the total gain of the casino after 90 players. We want to approximate
We first compute the mean and variance of . The mean is
Also,
Hence
Therefore,
So the standard deviation of is
By the Central Limit Theorem,
Thus,
where . Since
we conclude that
Hence, the probability that the casino wins at least 30 euros in total is approximately 0.9772.
Problem 5
Assume that is an i.i.d. sequence of random variables such that and . Show that
Proof
Let
We want to show that
First, since are i.i.d. with and , we have . And thus by the Central Limit Theorem,
And then, consider . Since are i.i.d. and , by the Law of Large Numbers we have
By continuity of the square root function,
Write
Define
Then we have shown that and .
Now we claim that: .
It suffices to show that for every bounded continuous function .
Let be bounded and continuous. Then
Since , the second term converges to . It remains to show that .
Observe . Because , the sequence is tight. Also, since , we have
It follows that
We now show that
Fix . Since is tight, there exists such that
Since is continuous on the compact interval , it is uniformly continuous there. Thus there exists such that whenever and , we have
Now on the event
we also have , so
Therefore,
The first term is less than , and the second term tends to . Hence
Since is bounded, the random variables are uniformly bounded. Therefore,
Combining this with , we get
Thus
This finishes the proof that
That is,
β‘