Math 525

Math 525: Probability Homeworks

Typst-first worked solutions

Qiulin Fan Β· 2026

Homework 1

Problem 1

Let π‘›βˆˆβ„•.

  • Show that 2𝑛=βˆ‘π‘˜=0𝑛(π‘›π‘˜). Given that a set of 𝑛 elements has 2𝑛 subsets, what is the combinatorial interpretation of this equality?

  • Show that

    βˆ‘π‘˜ odd ,0β‰€π‘˜β‰€π‘›(π‘›π‘˜)=βˆ‘π‘˜ even ,0β‰€π‘˜β‰€π‘›(π‘›π‘˜)
  • Show that

    (2𝑛𝑛)=βˆ‘π‘˜=0𝑛(π‘›π‘˜)2

Hint: You may use (π‘›π‘˜)2=(π‘›π‘˜)(π‘›π‘›βˆ’π‘˜).

Proof
  • By the binomial theorem, we have:

    (1+1)𝑛=βˆ‘π‘˜=0𝑛(π‘›π‘˜)1π‘˜1π‘›βˆ’π‘˜=βˆ‘π‘˜=0𝑛(π‘›π‘˜)

    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:

    |𝒫︀(𝑆)|=βˆ‘π‘˜=0𝑛|π‘†π‘˜|=βˆ‘π‘˜=0𝑛(π‘›π‘˜)=2𝑛
  • Using the binomial theorem, we have:

    0=(1βˆ’1)𝑛=βˆ‘π‘˜=0𝑛(π‘›π‘˜)(βˆ’1)π‘˜1π‘›βˆ’π‘˜=βˆ‘π‘˜=0𝑛(π‘›π‘˜)(βˆ’1)π‘˜

    Thus:

    βˆ‘π‘˜=0𝑛(π‘›π‘˜)(βˆ’1)π‘˜=0βŸΉβˆ‘0β‰€π‘˜β‰€π‘›,π‘˜ odd(π‘›π‘˜)(βˆ’1)+βˆ‘0β‰€π‘˜β‰€π‘›,π‘˜ even(π‘›π‘˜)(1)=0βŸΉβˆ‘0β‰€π‘˜β‰€π‘›,π‘˜ odd(π‘›π‘˜)=βˆ‘0β‰€π‘˜β‰€π‘›,π‘˜ even(π‘›π‘˜)
  • We prove by combinatorial argument.
    Let 𝑆 be a setwith 2𝑛 distinct elements. The number of ways to choose a subset 𝑃 containing 𝑛 elements is (2𝑛𝑛).
    In another way: We can first arbitrarily divide the 2𝑛 distinct elements into two groups: group 𝐴 and group 𝐡, each containing 𝑛 elements:

    𝑆=π΄βŠ”π΅

    And fix the two groups.
    For any subset 𝑃 of the 2𝑛 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 (π‘›π‘˜)(π‘›π‘›βˆ’π‘˜)=(π‘›π‘˜)2.
    Thus, summing over all possible values of π‘˜=0,1,…,𝑛, the number of ways to choose 𝑛 elements from 𝑆 i.e. the number of ways to get 𝑃 from 𝑆, is

    βˆ‘π‘˜=0𝑛(π‘›π‘˜)2

    Thus, we obtain

    (2𝑛𝑛)=βˆ‘π‘˜=0𝑛(π‘›π‘˜)2

    as desired.

β–‘

Problem 2

We roll a fair die three times and record the outcomes π‘Ž,𝑏,π‘βˆˆ{1,2,3,4,5,6}. What is the probability that the equation π‘Žπ‘₯2+𝑏π‘₯+𝑐=0 does not have solutions in the real numbers?

Solution

The equation π‘Žπ‘₯2+𝑏π‘₯+𝑐=0 does not have solutions in the real numbers iff the the discriminant is negative, i.e. Ξ”=𝑏2βˆ’4π‘Žπ‘<0.
Total possible equations is 63=216. For each 𝑏, the total possible (π‘Ž,𝑐) pairs are 36. We can calculate the number of (π‘Ž,𝑐) pairs that satisfy the condition case by case.

  • For 𝑏=1: 4π‘Žπ‘>1 holds for all (π‘Ž,𝑐).

  • For 𝑏=2: 4π‘Žπ‘>4βŸΉπ‘Žπ‘>1, which excludes only (1,1).

  • For 𝑏=3: 4π‘Žπ‘>9βŸΉπ‘Žπ‘β‰₯3 since they are integers, so excluding (1,1),(1,2),(2,1) (3 cases).

  • For 𝑏=4: 4π‘Žπ‘>16βŸΉπ‘Žπ‘β‰₯5, excluding: (1,3),(1,4),(2,2),(3,1),(4,1) besides the previous case, thus 8 cases excluded.

  • For 𝑏=5: 4π‘Žπ‘>25βŸΉπ‘Žπ‘β‰₯7, excluding: (1,5),(1,6),(2,3),(3,2),(5,1),(6,1) besides the previous case, thus 14 cases excluded.

  • For 𝑏=6: 4π‘Žπ‘>36βŸΉπ‘Žπ‘β‰₯10, excluding: (2,4),(3,3),(4,2) besides the previous case, thus 17 cases excluded.

Thus, the total number of triples for which the discriminant is not negative (exlcuded) is

1+3+8+14+17=43

Therefore, the desired probability is

1βˆ’β„™(the equation has solutions in the real numbers)=1βˆ’43216=173216

Problem 3

An ant starts at the origin (0,0) on the integer lattice. At each step it moves either one unit to the right or one unit upward, each with probability 12. The ant continues moving until it reaches the point (205,200).
What is the probability that the ant visits the point (105,100) at some time during its journey?
Hint: Start by counting the number of paths from (0,0) to (205,200).

Solution

Any path from (0,0) to (205,200) must consist of 205 steps to the right and 200 steps upward, for a total of 405 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 (0,0) to (205,200) is

𝑁=(405205)

A path passes through the point (105,100) if and only if it first goes from (0,0) to (105,100) and then from (105,100) to (205,200).
Thus the number of such paths is the product of the number of paths from (0,0) to (105,100) and the number of paths from (105,100) to (205,200), by the fundamental counting principle. For the same reason as deciding the number of total paths from (0,0) to (205,200), the number of paths from (0,0) to (105,100) is

𝑁1=(205105)

And similarly, the number of paths from (105,100) to (205,200) is

𝑁2=(200100)

Note that from a point to another point, all such paths are equally likely to be chosen. Therefore, the desired probability is

β„™(path passes through (105,100))=(205105)(200100)(405205)

Problem 4

From a lottery containing 𝑛 tickets numbered 1,2,…,𝑛, a ticket is drawn, its number is recorded, and then it is returned to the lottery. This process is repeated π‘˜β‰₯3 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 1 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 1,2,3 are each selected at least once.
    For 𝑖=1,2,3, let

    𝐴𝑖≔{ticket 𝑖 is never selected in the π‘˜ draws}

    Thus

    𝑃(𝐹)=1βˆ’π‘ƒ(𝐴1βˆͺ𝐴2βˆͺ𝐴3)

    By the principle of inclusion-exclusion,

    𝑃(𝐴1βˆͺ𝐴2βˆͺ𝐴3)=𝑃(𝐴1)+𝑃(𝐴2)+𝑃(𝐴3)βˆ’π‘ƒ(𝐴1∩𝐴2)βˆ’π‘ƒ(𝐴1∩𝐴3)βˆ’π‘ƒ(𝐴2∩𝐴3)+𝑃(𝐴1∩𝐴2∩𝐴3)

    Since similar to part (a), we have:β„™(𝐴𝑖)=(π‘›βˆ’1𝑛)π‘˜, β„™(π΄π‘–βˆ©π΄π‘—)=(π‘›βˆ’2𝑛)π‘˜, β„™(𝐴1∩𝐴2∩𝐴3)=(π‘›βˆ’3𝑛)π‘˜, we then calculate:

    β„™(𝐹)=1βˆ’(31)(π‘›βˆ’1𝑛)π‘˜+(32)(π‘›βˆ’2𝑛)π‘˜βˆ’(33)(π‘›βˆ’3𝑛)π‘˜=1βˆ’3(π‘›βˆ’1𝑛)π‘˜+3(π‘›βˆ’2𝑛)π‘˜βˆ’(π‘›βˆ’3𝑛)π‘˜

Problem 5

In a house, drawer 𝑆1 contains 3 gold coins and 3 silver coins, while drawer 𝑆2 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 𝑆1 ?

Solution

The thief chooses a drawer uniformly at random, so for each pick, β„™(𝑆1 is chosen)=β„™(𝑆2 is chosen)=12. Given a drawer, he draws two coins without replacement.

  • Using the law of total probability,

    β„™(two gold)=β„™(two goldβˆ£π‘†1 is chosen)β„™(drawer 𝑆1)+β„™(two goldβˆ£π‘†2 is chosen)β„™(drawer 𝑆2)=12β‹…(32)(62)+12β‹…(32)(92)=12(315+336)=36+15360=17120
  • Let 𝐺 be the event that the thief stole two gold coins. By Bayes’ rule,

    β„™(𝑆1∣𝐺)=β„™(πΊβˆ£π‘†1)β„™(𝑆1)β„™(𝐺)

    Since we have β„™(πΊβˆ£π‘†1)=(32)(62)=15, β„™(𝑆1)=12, and β„™(𝐺)=17120 from part (a), we get:

    β„™(𝑆1∣𝐺)=15β‹…1217120=1217

Problem 6

Let 𝐴 and 𝐡 be events of a probability space with β„™(𝐴)>0. Show that:

  • β„™(𝐴βˆͺ𝐡)>0 and β„™(𝐴∩𝐡∣𝐴βˆͺ𝐡)≀ℙ(𝐴∩𝐡∣𝐴).

  • β„™(𝐡∣𝐡βˆͺ𝐴)β‰₯β„™(𝐡∣𝐴).

Proof
  • Since π΄βŠ†π΄βˆͺ𝐡, we have by monotonicity of probability measure:

    β„™(𝐴βˆͺ𝐡)β‰₯β„™(𝐴)>0

    Also, since π΄βˆ©π΅βŠ†π΄ and β„™(𝐴βˆͺ𝐡)β‰₯β„™(𝐴)>0, both conditional probabilities below are well-defined. Then

    β„™(𝐴∩𝐡∣𝐴βˆͺ𝐡)=β„™((𝐴∩𝐡)∩(𝐴βˆͺ𝐡))β„™(𝐴βˆͺ𝐡)=β„™(𝐴∩𝐡)β„™(𝐴βˆͺ𝐡)≀ℙ(𝐴∩𝐡)β„™(𝐴)=β„™(𝐴∩𝐡∣𝐴)

    This finishes the proof.

  • Let π‘₯≔ℙ(𝐴∩𝐡), 𝑦≔ℙ(𝐴\𝐡), 𝑧≔ℙ(𝐡\𝐴).
    so π‘₯,𝑦,𝑧β‰₯0 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 π‘₯+𝑦=β„™(𝐴)>0 (and so π‘₯+𝑦+𝑧>0).
    Now it remains to show that:

    π‘₯+𝑧π‘₯+𝑦+𝑧β‰₯π‘₯π‘₯+𝑦

    i.e.

    (π‘₯+𝑧)(π‘₯+𝑦)β‰₯π‘₯(π‘₯+𝑦+𝑧)

    which is equivalent to:

    π‘₯(π‘₯+𝑦)+𝑧(π‘₯+𝑦)β‰₯π‘₯(π‘₯+𝑦)+π‘₯𝑧

    Eliminating common terms, this is equivalent to:

    𝑧𝑦β‰₯0

    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 (0,1) and define

π‘‹β‰”πΉβˆ’1(π‘ˆ)

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 πΉβˆ’1 on its range, and πΉβˆ’1 is also strictly increasing. Thus for any π‘₯,π‘¦βˆˆβ„,

πΉβˆ’1(𝑦)≀π‘₯⇔𝑦≀(πΉβˆ’1)βˆ’1(π‘₯)=𝐹(π‘₯)

Therefore for any π‘₯βˆˆβ„, we have

{π‘₯βˆ£π‘‹(π‘₯)≀π‘₯}={π‘₯βˆ£πΉβˆ’1(π‘ˆ(π‘₯))≀π‘₯}={π‘₯βˆ£π‘ˆ(π‘₯)≀𝐹(π‘₯)}

Therefore

β„™(𝑋≀π‘₯)=β„™(π‘ˆ(π‘₯)≀𝐹(π‘₯))

Since π‘ˆβˆΌUnif(0,1) and for a CDF we have 𝐹(π‘₯)∈[0,1], 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

𝑓(π‘₯)={π‘Ž(1βˆ’π‘₯)4,π‘₯∈(0,1),0, otherwise

Find the constant π‘Ž. What should be the tank capacity so that the probability of running out of fuel during a given week is 1/100 ?

Solution

Since the density integrates to 1,

1=βˆ«βˆ’βˆžβˆžπ‘“(π‘₯)𝑑π‘₯=∫01π‘Ž(1βˆ’π‘₯)4𝑑π‘₯=π‘Žβˆ«01(1βˆ’π‘₯)4𝑑π‘₯

Let 𝑒=1βˆ’π‘₯, then

∫01(1βˆ’π‘₯)4𝑑π‘₯=∫01𝑒4𝑑𝑒=15

So 15π‘Ž=1, which gives

π‘Ž=5

Now we look for the tank capacity 𝑐 such that β„™(𝑋>𝑐)=1100.
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

β„™(𝑋>𝑐)=1100

Since π‘Ž=5,

β„™(𝑋>𝑐)=βˆ«π‘15(1βˆ’π‘₯)4𝑑π‘₯

Again let 𝑒=1βˆ’π‘₯, then we have

βˆ«π‘15(1βˆ’π‘₯)4𝑑π‘₯=5∫1βˆ’π‘0𝑒4(βˆ’π‘‘π‘’)=5∫01βˆ’π‘π‘’4𝑑𝑒=5β‹…(1βˆ’π‘)55=(1βˆ’π‘)5

Therefore

(1βˆ’π‘)5=1100⟹1βˆ’π‘=100βˆ’1/5=10βˆ’2/5βŸΉπ‘=1βˆ’10βˆ’2/5

So the tank capacity should be 1βˆ’10βˆ’2/5 thousand liters.

Problem 3

Let the random variable 𝑋 have density

𝑓𝑋(π‘₯)={12π‘₯2,|π‘₯|β‰₯1,0,|π‘₯|<1.

Find the probability density function of π‘Œβ‰”π‘‹2 and compute the probability β„™(2π‘Œ+3≀10).

Solution

Since 𝑓𝑋(π‘₯)=0 for |π‘₯|<1, we have β„™(|𝑋|β‰₯1)=1. Hence π‘Œ=𝑋2β‰₯1 almost surely, so πΉπ‘Œ(𝑦)=0 for 𝑦<1 and therefore π‘“π‘Œ(𝑦)=0 for 𝑦<1 (a.e.).

For 𝑦β‰₯1,

πΉπ‘Œ(𝑦)=β„™(𝑋2≀𝑦)=β„™(βˆ’π‘¦β‰€π‘‹β‰€π‘¦)=βˆ«βˆ’π‘¦βˆ’112π‘₯2𝑑π‘₯+∫1𝑦12π‘₯2𝑑π‘₯

Compute each integral:

∫1𝑦12π‘₯2𝑑π‘₯=12∫1𝑦π‘₯βˆ’2𝑑π‘₯=12βˆ’π‘₯βˆ’11𝑦=12(1βˆ’1𝑦)

and similarly βˆ«βˆ’π‘¦βˆ’112π‘₯2𝑑π‘₯=12(1βˆ’1𝑦) since the function is even. Therefore, for 𝑦β‰₯1,

πΉπ‘Œ(𝑦)=1βˆ’1𝑦

Combining both cases we have

πΉπ‘Œ(𝑦)={0,𝑦<1,1βˆ’1𝑦𝑦β‰₯1

Notice that on 𝑦β‰₯1, πΉπ‘Œ(𝑦) is differentiable (except on 𝑦=1):

πΉπ‘Œβ€²(𝑦)=𝑑𝑑𝑦(1βˆ’π‘¦βˆ’1/2)=12π‘¦βˆ’3/2

So consider the function

𝑔(𝑦)={12𝑦3/2,𝑦β‰₯1,0,𝑦<1.

Then for π‘₯<1,

βˆ«βˆ’βˆžπ‘₯𝑔(𝑦)𝑑𝑦=0=πΉπ‘Œ(π‘₯)

and for π‘₯β‰₯1

βˆ«βˆ’βˆžπ‘₯𝑔(𝑦)𝑑𝑦=∫1π‘₯12𝑦3/2𝑑𝑦=[βˆ’π‘¦βˆ’1/2]1π‘₯=1βˆ’1π‘₯=πΉπ‘Œ(π‘₯)

This shows that π‘Œ is absolutely continuous and 𝑔 is a probability density of π‘Œ. Hence

π‘“π‘Œ(𝑦)={12𝑦3/2,𝑦β‰₯1,0,𝑦<1

Now we compute β„™(2π‘Œ+3≀10).

We have 2π‘Œ+3≀10β‡”π‘Œβ‰€72. Thus

β„™(2π‘Œ+3≀10)=β„™(π‘Œβ‰€72)=πΉπ‘Œ(72)=1βˆ’17/2=1βˆ’27

Thus,

β„™(2π‘Œ+3≀10)=1βˆ’27

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 π‘‹βˆΌπ‘(0,1) ?

Proof

Since 𝑋 has density 𝑓,

β„™(π‘‹β‰€πœ‡)=βˆ«βˆ’βˆžπœ‡π‘“(𝑑)𝑑𝑑

Let 𝑑=πœ‡βˆ’π‘₯ so that 𝑑𝑑=βˆ’π‘‘π‘₯. Then

βˆ«βˆ’βˆžπœ‡π‘“(𝑑)𝑑𝑑=∫∞0𝑓(πœ‡βˆ’π‘₯)(βˆ’π‘‘π‘₯)=∫0βˆžπ‘“(πœ‡βˆ’π‘₯)𝑑π‘₯

Similarly,

β„™(𝑋β‰₯πœ‡)=βˆ«πœ‡βˆžπ‘“(𝑑)𝑑𝑑=∫0βˆžπ‘“(πœ‡+π‘₯)𝑑π‘₯

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

βˆ«βˆ’βˆžβˆžπ‘₯𝑔(π‘₯)𝑑π‘₯=0

Therefore 𝔼[π‘‹βˆ’πœ‡]=0, thus

𝔼[𝑋]=πœ‡

Application to π‘‹βˆΌπ‘(0,1): Since the standard normal density πœ‘(π‘₯)=12πœ‹π‘’βˆ’π‘₯2/2 satisfies πœ‘(0+π‘₯)=πœ‘(0βˆ’π‘₯), so it is symmetric about πœ‡=0. Hence

β„™(𝑋≀0)=β„™(𝑋β‰₯0)=12and𝔼[𝑋]=0

β–‘

Problem 5

An airline has observed that 5% 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 1≀𝑖≀203.

Solution

Let 𝑆 be the number of passengers who show up. The condition indicates that 𝑆 is a binomial random variable with parameters 𝑛=203 and 𝑝=0.95:

π‘†βˆΌBinomial(𝑛=203,𝑝=0.95)

The airline cannot accommodate everyone exactly when more than 200 passengers show up, i.e.

β„™(cannot accommodate)=β„™(𝑆β‰₯201)=βˆ‘π‘˜=201203(203π‘˜)(0.95)π‘˜(0.05)203βˆ’π‘˜

Equivalently, letting 𝑁≔203βˆ’π‘† be the number of no-shows, we have π‘βˆΌBinomial(203,0.05) and

β„™(𝑆β‰₯201)=β„™(𝑁≀2)=βˆ‘π‘—=02(203𝑗)(0.05)𝑗(0.95)203βˆ’π‘—

Numerically we can calculate

β„™(cannot accommodate)β‰ˆ0.206%

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

5,1,1,4,6,5,4,2,6,3,

and we then stop. Let 𝑋 be the number of tosses required (in this example, 𝑋=10 ). 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 2/6=1/3. Hence the number of tosses 𝑇1 until the first occurrence of {3,4} is geometric with success probability 1/3, so

𝔼[𝑇1]=11/3=3

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 1/6; otherwise we are still missing a 4. Thus the additional waiting time 𝑇2 is geometric with success probability 1/6, so

𝔼[𝑇2]=11/6=6

Since 𝑋=𝑇1+𝑇2, by linearity of expectation we get

𝔼[𝑋]=𝔼[𝑇1]+𝔼[𝑇2]=3+6=9

Homework 3

Problem 1

Let 𝑍 be a standard normal random variable π‘βˆΌπ‘(0,1). We denote by Ξ¦ its distribution function. Answer the questions below

  • If π‘Ž,π‘βˆˆβ„ with π‘Ž>0, show that the random variable π‘Žπ‘+𝑏 is also normal and find its mean and variance.

  • Show that Ξ¦(0)=1/2.

  • Show that Ξ¦(βˆ’π‘₯)=1βˆ’Ξ¦(π‘₯) for any π‘₯βˆˆβ„.

Solution
  • π‘βˆΌπ‘(0,1) has density

    𝑓𝑍(𝑧)=12πœ‹π‘’βˆ’π‘§2/2𝐹𝑋(π‘₯)=β„™(𝑋≀π‘₯)=β„™(π‘Žπ‘+𝑏≀π‘₯)=β„™(𝑍≀π‘₯βˆ’π‘π‘Ž)=Ξ¦(π‘₯βˆ’π‘π‘Ž)

    Thus

    𝑓𝑋(π‘₯)=𝑑𝑑π‘₯Ξ¦(π‘₯βˆ’π‘π‘Ž)=1π‘Žπœ‘(π‘₯βˆ’π‘π‘Ž)=1π‘Ž22πœ‹π‘’βˆ’(π‘₯βˆ’π‘)22π‘Ž2

    Note this is the density of a normal distribution with mean 𝑏 and variance π‘Ž2. Therefore

    π‘Žπ‘+π‘βˆΌπ‘(𝑏,π‘Ž2)

    Since 𝑍 has mean 0 and variance 1, use linearity we have

    𝔼[π‘Žπ‘+𝑏]=π‘Žπ”Ό[𝑍]+𝑏=𝑏

    and

    Var(π‘Žπ‘+𝑏)=π‘Ž2Var(𝑍)=π‘Ž2
  • Note the standard normal density is an even function:

    πœ‘(π‘₯)=12πœ‹π‘’βˆ’π‘₯2/2=πœ‘(βˆ’π‘₯)

    Thus

    Ξ¦(0)=βˆ«βˆ’βˆž0πœ‘(π‘₯)𝑑π‘₯=∫0βˆžπœ‘(π‘₯)𝑑π‘₯

    Since βˆ«βˆ’βˆžβˆžπœ‘(π‘₯)𝑑π‘₯=1, the two equal halves are each 1/2, so Ξ¦(0)=1/2.

  • For any π‘₯βˆˆβ„,

    Ξ¦(βˆ’π‘₯)=βˆ«βˆ’βˆžβˆ’π‘₯πœ‘(𝑑)𝑑𝑑

    Let 𝑒=βˆ’π‘‘, using πœ‘(βˆ’π‘’)=πœ‘(𝑒) we have

    Ξ¦(βˆ’π‘₯)=∫∞π‘₯πœ‘(βˆ’π‘’)(βˆ’π‘‘π‘’)=∫π‘₯βˆžπœ‘(𝑒)𝑑𝑒=1βˆ’βˆ«βˆ’βˆžπ‘₯πœ‘(𝑒)𝑑𝑒=1βˆ’Ξ¦(π‘₯)

Problem 2

Let 𝑋 and π‘Œ be random variables with joint density

𝑓(π‘₯,𝑦)={βˆ’π‘₯𝑦,(π‘₯,𝑦)∈(βˆ’1,0)Γ—(0,1)βˆͺ(1,2)Γ—(βˆ’1,0),0, otherwise
  • Compute the probability β„™(𝑋+π‘Œ<0).

  • Compute the expected value 𝔼[π‘‹π‘Œ].

  • Are 𝑋 and π‘Œ independent?

Solution
  • On (1,2)Γ—(βˆ’1,0) we have π‘₯+𝑦>0 since π‘₯>1 and 𝑦>βˆ’1, hence this region contributes nothing to {𝑋+π‘Œ<0}.

    On (βˆ’1,0)Γ—(0,1), the ineq π‘₯+𝑦<0 is equivalent to 0<𝑦<βˆ’π‘₯. Therefore,

    β„™(𝑋+π‘Œ<0)=βˆ«βˆ’10∫0βˆ’π‘₯(βˆ’π‘₯𝑦)𝑑𝑦𝑑π‘₯

    Compute the inner integral:

    ∫0βˆ’π‘₯(βˆ’π‘₯𝑦)𝑑𝑦=βˆ’π‘₯β‹…(βˆ’π‘₯)22=βˆ’π‘₯32

    Hence,

    β„™(𝑋+π‘Œ<0)=βˆ«βˆ’10(βˆ’π‘₯32)𝑑π‘₯=βˆ’12β‹…π‘₯44βˆ’10=18
  • By def,

    𝔼[π‘‹π‘Œ]=βˆ«β„2π‘₯𝑦𝑓(π‘₯,𝑦)𝑑π‘₯𝑑𝑦=βˆ’βˆ«(βˆ’1,0)Γ—(0,1)βˆͺ(1,2)Γ—(βˆ’1,0)π‘₯2𝑦2𝑑π‘₯𝑑𝑦=βˆ’βˆ«βˆ’10∫01π‘₯2𝑦2𝑑𝑦𝑑π‘₯βˆ’βˆ«12βˆ«βˆ’10π‘₯2𝑦2𝑑𝑦𝑑π‘₯

    Split over the two rectangles. On (βˆ’1,0)Γ—(0,1),

    βˆ’βˆ«βˆ’10∫01π‘₯2𝑦2𝑑𝑦𝑑π‘₯=βˆ’(βˆ«βˆ’10π‘₯2𝑑π‘₯)(∫01𝑦2𝑑𝑦)=βˆ’(13)(13)=βˆ’19

    On (1,2)Γ—(βˆ’1,0),

    βˆ’βˆ«12βˆ«βˆ’10π‘₯2𝑦2𝑑𝑦𝑑π‘₯=βˆ’(∫12π‘₯2𝑑π‘₯)(βˆ«βˆ’10𝑦2𝑑𝑦)=βˆ’(73)(13)=βˆ’79

    Thus,

    𝔼[π‘‹π‘Œ]=βˆ’19βˆ’79=βˆ’89
  • Consider: For π‘₯∈(βˆ’1,0),

    𝑓𝑋(π‘₯)=∫01(βˆ’π‘₯𝑦)𝑑𝑦=βˆ’π‘₯2

    For π‘¦βˆˆ(0,1),

    π‘“π‘Œ(𝑦)=βˆ«βˆ’10(βˆ’π‘₯𝑦)𝑑π‘₯=π‘¦βˆ«βˆ’10(βˆ’π‘₯)𝑑π‘₯=𝑦2

    And for (π‘₯,𝑦)∈(βˆ’1,0)Γ—(0,1),

    𝑓𝑋(π‘₯)π‘“π‘Œ(𝑦)=(βˆ’π‘₯2)(𝑦2)=βˆ’π‘₯𝑦4β‰ βˆ’π‘₯𝑦=𝑓(π‘₯,𝑦)

    Thus 𝑋 and π‘Œ are not independent.

Problem 3

Let π‘‹βˆΌExp(1) and π‘Œ=𝑋+1𝑋+1. Find β„™((𝑋+1)π‘Œβ‰€2) and Cov(𝑋,π‘Œ).
Hint: You may leave your answer as a function of the integral ∫0βˆžπ‘’βˆ’π‘₯1+π‘₯𝑑π‘₯.

Solution

Note

(𝑋+1)π‘Œ=(𝑋+1)(𝑋+1𝑋+1)=𝑋(𝑋+1)+1=𝑋2+𝑋+1

Thus,

(𝑋+1)π‘Œβ‰€2⇔𝑋2+π‘‹βˆ’1≀0

The roots of π‘₯2+π‘₯βˆ’1=0 are βˆ’1Β±52. Since 𝑋β‰₯0, the event is

0≀𝑋≀5βˆ’12

Therefore, using the CDF of Exp(1),

β„™((𝑋+1)π‘Œβ‰€2)=β„™(𝑋≀5βˆ’12)=1βˆ’π‘’βˆ’5βˆ’12=1βˆ’exp(βˆ’5βˆ’12)

Nowe we compute the covariance. By def,

Cov(𝑋,π‘Œ)=𝔼[π‘‹π‘Œ]βˆ’π”Ό[𝑋]𝔼[π‘Œ]

For π‘‹βˆΌExp(1), 𝔼[𝑋]=1 and 𝔼[𝑋2]=2. Let

πΌβ‰”βˆ«0βˆžπ‘’βˆ’π‘₯1+π‘₯𝑑π‘₯=𝔼[11+𝑋]

Then

𝔼[π‘Œ]=𝔼[𝑋]+𝔼[11+𝑋]=1+𝐼

Also,

π‘‹π‘Œ=𝑋(𝑋+11+𝑋)=𝑋2+𝑋1+𝑋=𝑋2+(1βˆ’11+𝑋)

so

𝔼[π‘‹π‘Œ]=𝔼[𝑋2]+1βˆ’π”Ό[11+𝑋]=2+1βˆ’πΌ=3βˆ’πΌ

Hence,

Cov(𝑋,π‘Œ)=(3βˆ’πΌ)βˆ’(1)(1+𝐼)=2βˆ’2𝐼=2βˆ’2∫0βˆžπ‘’βˆ’π‘₯1+π‘₯𝑑π‘₯

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: 𝑓𝑋,π‘Œ(π‘₯,𝑦)=πœ†2π‘’βˆ’πœ†π‘¦πŸ{0≀π‘₯≀𝑦}.

Solution

Given the joint density 𝑓𝑋,π‘Œ(π‘₯,𝑦)=πœ†2π‘’βˆ’πœ†π‘¦πŸ{0≀π‘₯≀𝑦}, we first compute the marginal density of 𝑋. For π‘₯β‰₯0,

𝑓𝑋(π‘₯)=βˆ«π‘¦=π‘₯βˆžπœ†2π‘’βˆ’πœ†π‘¦π‘‘π‘¦=πœ†2β‹…π‘’βˆ’πœ†π‘₯πœ†=πœ†π‘’βˆ’πœ†π‘₯

and 𝑓𝑋(π‘₯)=0 for π‘₯<0.

Therefore, for π‘₯β‰₯0,

π‘“π‘Œ|𝑋(𝑦|π‘₯)=𝑓𝑋,π‘Œ(π‘₯,𝑦)𝑓𝑋(π‘₯)=πœ†2π‘’βˆ’πœ†π‘¦πŸ{𝑦β‰₯π‘₯}πœ†π‘’βˆ’πœ†π‘₯=πœ†π‘’βˆ’πœ†(π‘¦βˆ’π‘₯)𝟏{𝑦β‰₯π‘₯}

This shows that π‘Œ|𝑋=π‘₯ has the same distribution as π‘₯+𝐸 where 𝐸∼Exp(πœ†), hence

𝔼[π‘Œ|𝑋=π‘₯]=π‘₯+1πœ†

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 (0,1/2). We start tossing the coin. Compute the following probabilities:

  • The coin shows heads on the first toss.

  • The expected number of tosses until tails show up.

Solution
  • The head probability π‘βˆΌUnif(0,1/2). Thus the density is:

    𝑓𝑃(𝑝)=2𝟏(0,1/2)(𝑝)

    The unconditional probability of heads on the first toss is

    β„™(H on first toss)=𝔼[𝑝]=∫01/2𝑝⋅2𝑑𝑝=2⋅𝑝2201/2=14
  • Let 𝑇 be the number of tosses until the first tail occurs. Conditional on 𝑝, tails occurs with probability 1βˆ’π‘ each toss, so 𝑇 is geometric with parameter 1βˆ’π‘. Hence

    𝔼[𝑇|𝑝]=11βˆ’π‘

    Taking expectation over 𝑝,

    𝔼[𝑇]=𝔼[11βˆ’π‘]=∫01/211βˆ’π‘β‹…2𝑑𝑝=2βˆ’ln(1βˆ’π‘)01/2=2ln2

Problem 6

The joint probability density function of the random variables 𝑋 and π‘Œ is given by

𝑓𝑋,π‘Œ(π‘₯,𝑦)={𝑐(π‘₯2+π‘₯𝑦2),(π‘₯,𝑦)∈(0,1)Γ—(0,2)0, otherwise
  • Find the constant 𝑐.

  • Find the marginal density of 𝑋 and compute 𝔼[𝑋].

  • Compute β„™(𝑋>π‘Œ).

  • Compute β„™(π‘Œ>12|𝑋<12).

Solution
  • Determine 𝑐 from normalization:

    1=∫01∫02𝑐(π‘₯2+π‘₯𝑦2)𝑑𝑦𝑑π‘₯

    For fixed π‘₯,

    ∫02(π‘₯2+π‘₯𝑦2)𝑑𝑦=2π‘₯2+π‘₯2⋅𝑦2202=2π‘₯2+π‘₯

    Thus

    1=π‘βˆ«01(2π‘₯2+π‘₯)𝑑π‘₯=𝑐(23+12)=𝑐⋅76

    so 𝑐=67

  • The marginal density of 𝑋 (for 0<π‘₯<1) is

    𝑓𝑋(π‘₯)=∫02𝑐(π‘₯2+π‘₯𝑦2)𝑑𝑦=𝑐(2π‘₯2+π‘₯)=67(2π‘₯2+π‘₯)

    and 𝑓𝑋(π‘₯)=0 otherwise.

    Thus

    𝔼[𝑋]=∫01π‘₯𝑓𝑋(π‘₯)𝑑π‘₯=67∫01(2π‘₯3+π‘₯2)𝑑π‘₯=67(12+13)=57
  • The event {𝑋>π‘Œ} corresponds to the region 0<𝑦<π‘₯<1 (since π‘₯∈(0,1)). Hence

    β„™(𝑋>π‘Œ)=∫01∫0π‘₯𝑐(π‘₯2+π‘₯𝑦2)𝑑𝑦𝑑π‘₯

    For fixed π‘₯,

    ∫0π‘₯(π‘₯2+π‘₯𝑦2)𝑑𝑦=π‘₯3+π‘₯2⋅𝑦220π‘₯=π‘₯3+π‘₯34=54π‘₯3

    Therefore

    β„™(𝑋>π‘Œ)=π‘βˆ«0154π‘₯3𝑑π‘₯=𝑐⋅54β‹…14=𝑐⋅516=67β‹…516=1556
  • By definition,

    β„™(π‘Œ>12|𝑋<12)=β„™(π‘Œ>12,𝑋<12)β„™(𝑋<12)

    Calculate each part. First the denominator:

    β„™(𝑋<12)=∫01/2𝑓𝑋(π‘₯)𝑑π‘₯=π‘βˆ«01/2(2π‘₯2+π‘₯)𝑑π‘₯=𝑐(112+18)=𝑐⋅524=528

    And the numerator:

    β„™(π‘Œ>12,𝑋<12)=∫01/2∫1/22𝑐(π‘₯2+π‘₯𝑦2)𝑑𝑦𝑑π‘₯

    For fixed π‘₯,

    ∫1/22(π‘₯2+π‘₯𝑦2)𝑑𝑦=π‘₯2(2βˆ’12)+π‘₯2⋅𝑦221/22=32π‘₯2+π‘₯4(4βˆ’14)=32π‘₯2+1516π‘₯

    Thus

    β„™(π‘Œ>12,𝑋<12)=π‘βˆ«01/2(32π‘₯2+1516π‘₯)𝑑π‘₯=𝑐(116+15128)=𝑐⋅23128=69448

    Therefore,

    β„™(π‘Œ>12|𝑋<12)=69/4485/28=6980

Homework 4

Problem 1

Let 𝑋 be a random variable with values in [0,+∞] such that 𝔼[𝑋]=0. Explain why 𝑋<∞ almost surely and show that 𝑋=0 almost surely.

Proof

Since 𝑋β‰₯0 and 𝔼[𝑋]=0<∞, by Markov’s inequality, for any 𝑑>0,

β„™(𝑋β‰₯𝑑)≀𝔼[𝑋]𝑑=0

Hence β„™(𝑋β‰₯𝑑)=0 for all 𝑑>0. In particular,

β„™(𝑋=+∞)=lim𝑑→+βˆžβ„™(𝑋β‰₯𝑑)=lim𝑑→+∞0=0

that is, 𝑋<∞ almost surely.

Also notice that

{𝑋>0}=⋃𝑛=1∞{𝑋β‰₯1𝑛}

and by countable subadditivity,

β„™(𝑋>0)β‰€βˆ‘π‘›=1βˆžβ„™(𝑋β‰₯1𝑛)=0

Thus β„™(𝑋>0)=0. And since 𝑋 takes values in [0,+∞], we have

β„™({𝑋=0})=β„™({𝑋≀0})=1βˆ’β„™({𝑋>0})=1

, and

This finishes the proof that 𝑋<∞ a.s. and 𝑋=0 a.s.

β–‘

Problem 2

Let 𝑋 be a random variable with 𝔼[𝑋]=3 and 𝔼[𝑋2]=13. Show that:

β„™(βˆ’2≀𝑋≀8)β‰₯2125
Solution

Compute the variance of 𝑋:

Var(𝑋)=𝔼[𝑋2]βˆ’(𝔼[𝑋])2=13βˆ’32=4

Observe that

β„™(βˆ’2≀𝑋≀8)=β„™(|π‘‹βˆ’3|≀5)

By Chebyshev’s inequality,

β„™(|π‘‹βˆ’3|β‰₯5)≀Var(𝑋)52=425

Therefore,

β„™(|π‘‹βˆ’3|≀5)=1βˆ’β„™(|π‘‹βˆ’3|β‰₯5)β‰₯1βˆ’425=2125

Thus,

β„™(βˆ’2≀𝑋≀8)β‰₯2125

Problem 3

Let 𝑋,π‘Œ be two random variables such that β„™(π‘Œ=1)=1/5,β„™(π‘Œ=2)=3/5 and β„™(π‘Œ=3)=1/5. In addition

𝑋|{π‘Œ=1}∼Exp(2),𝑋|{π‘Œ=2}∼Exp(3) and π‘‹βˆ£{π‘Œ=3}=7.

Compute the moment generating function of 𝑋.

Solution

Compute each conditional moment generating function:

For π‘‹βˆ£{π‘Œ=1}∼Exp(2)

𝔼[π‘’π‘‘π‘‹βˆ£π‘Œ=1]=22βˆ’π‘‘,𝑑<2

For π‘‹βˆ£{π‘Œ=2}∼Exp(3)

𝔼[π‘’π‘‘π‘‹βˆ£π‘Œ=2]=33βˆ’π‘‘,𝑑<3

For π‘‹βˆ£{π‘Œ=3}=7,

𝔼[π‘’π‘‘π‘‹βˆ£π‘Œ=3]=𝑒7𝑑

Then we use the law of total expectation conditioning on π‘Œ: for any 𝑑 such that the expectations below are finite, we have

𝑀𝑋(𝑑)=𝔼[𝑒𝑑𝑋]=βˆ‘π‘¦=13𝔼[π‘’π‘‘π‘‹βˆ£π‘Œ=𝑦]β„™(π‘Œ=𝑦)=15β‹…22βˆ’π‘‘+35β‹…33βˆ’π‘‘+15𝑒7𝑑=25(2βˆ’π‘‘)+95(3βˆ’π‘‘)+15𝑒7𝑑,𝑑<2

So the moment generating function of 𝑋 is

𝑀𝑋(𝑑)=25(2βˆ’π‘‘)+95(3βˆ’π‘‘)+15𝑒7𝑑,𝑑<2

Problem 4

For any π‘›βˆˆβ„• with 𝑛β‰₯1 we set π‘Žπ‘›=1/(2𝑛2). Consider the sequence of random variables (𝑋𝑛)π‘›βˆˆβ„• with

𝑋𝑛={0, with probability π‘Žπ‘›1, with probability 1βˆ’2π‘Žπ‘›π‘›2, with probability π‘Žπ‘›

Check if (𝑋𝑛) converges in probability and if (𝑋𝑛) converges in 𝐿1.

Solution

We first show that 𝑋𝑛→1 in probability.

Let πœ€>0.
For 𝑛 large enough s.t. 𝑛2βˆ’1>πœ€, |π‘‹π‘›βˆ’1|>πœ€ iff 𝑋𝑛=0 or 𝑋𝑛=𝑛2. Therefore,

β„™(|π‘‹π‘›βˆ’1|>πœ€)=β„™(𝑋𝑛=0)+β„™(𝑋𝑛=𝑛2)=π‘Žπ‘›+π‘Žπ‘›=2π‘Žπ‘›=1𝑛2

Since 1𝑛2β†’0, we have:

limπ‘›β†’βˆžβ„™(|π‘‹π‘›βˆ’1|>πœ€)=0

Since πœ€>0 is arbitrary, we conclude that

𝑋𝑛→ℙ1

We then show that 𝑋𝑛 does not converge to 1 in 𝐿1.

We compute

𝔼[|π‘‹π‘›βˆ’1|]=|0βˆ’1|π‘Žπ‘›+|1βˆ’1|(1βˆ’2π‘Žπ‘›)+|𝑛2βˆ’1|π‘Žπ‘›=π‘Žπ‘›+(𝑛2βˆ’1)π‘Žπ‘›=𝑛2π‘Žπ‘›=12β†’ΜΈ0

Hence $$X_n \not\xrightarrow{L^1} 1$$

Problem 5

Let 𝑋 and π‘Œ be independent random variables with densities

𝑓𝑋(π‘₯)={2π‘₯,0≀π‘₯≀1,0, otherwise π‘“π‘Œ(𝑦)={1/2,0≀𝑦≀20, otherwise

Find the distribution function of the sum 𝑍=𝑋+π‘Œ.

Solution

Since 𝑋 and π‘Œ are independent, the density of 𝑍=𝑋+π‘Œ is given by convolution:

𝑓𝑍(𝑧)=βˆ«βˆ’βˆžβˆžπ‘“π‘‹(π‘₯)π‘“π‘Œ(π‘§βˆ’π‘₯)𝑑π‘₯

where we know

𝑓𝑋(π‘₯)=2π‘₯𝟏[0,1](π‘₯),π‘“π‘Œ(𝑦)=12𝟏[0,2](𝑦)

Thus

𝑓𝑍(𝑧)=βˆ«βˆ’βˆžβˆž2π‘₯β‹…12𝟏[0,1](π‘₯)𝟏[0,2](π‘§βˆ’π‘₯)𝑑π‘₯=βˆ«βˆ’βˆžβˆžπ‘₯𝟏[0,1](π‘₯)𝟏[0,2](π‘§βˆ’π‘₯)𝑑π‘₯=∫max(0,π‘§βˆ’2)min(1,𝑧)π‘₯𝑑π‘₯

Compute this piecewise: If 0≀𝑧≀1, then the interval is [0,𝑧], so

𝑓𝑍(𝑧)=∫0𝑧π‘₯𝑑π‘₯=𝑧22

If 1≀𝑧≀2, then the interval is [0,1], so

𝑓𝑍(𝑧)=∫01π‘₯𝑑π‘₯=12

If 2≀𝑧≀3, then the interval is [π‘§βˆ’2,1], so

𝑓𝑍(𝑧)=βˆ«π‘§βˆ’21π‘₯𝑑π‘₯=1βˆ’(π‘§βˆ’2)22

Outside [0,3], clearly 𝑓𝑍(𝑧)=0. Therefore,

𝑓𝑍(𝑧)={0,𝑧<0,𝑧22,0≀𝑧≀1,12,1≀𝑧≀2,1βˆ’(π‘§βˆ’2)22,2≀𝑧≀3,0,𝑧>3

Now we integrate to get the cdf. For 𝑧<0, 𝐹𝑍(𝑧)=0.

For 0≀𝑧≀1,

𝐹𝑍(𝑧)=∫0𝑧𝑑22𝑑𝑑=𝑧36

For 1≀𝑧≀2,

𝐹𝑍(𝑧)=𝐹𝑍(1)+∫1𝑧12𝑑𝑑=16+π‘§βˆ’12=𝑧2βˆ’13

For 2≀𝑧≀3,

𝐹𝑍(𝑧)=𝐹𝑍(2)+∫2𝑧1βˆ’(π‘‘βˆ’2)22𝑑𝑑=23+π‘§βˆ’22βˆ’(π‘§βˆ’2)36

And for 𝑧β‰₯3, 𝐹𝑍(𝑧)=1.

Hence the cdf of 𝑍=𝑋+π‘Œ is

𝐹𝑍(𝑧)={0,𝑧<0,𝑧36,0≀𝑧≀1,𝑧2βˆ’13,1≀𝑧≀2,23+π‘§βˆ’22βˆ’(π‘§βˆ’2)36,2≀𝑧≀3,1,𝑧β‰₯3

Problem 6

Let π‘Ž1,π‘Ž2,…,π‘Žπ‘› and πœ† be positive constants and let {𝑋𝑖:1≀𝑖≀𝑛} be independent random variables with

π‘‹π‘–βˆΌΞ“(π‘Žπ‘–,πœ†),𝑖=1,2,…,𝑛

(i.e., with the same second parameter πœ† ). Show that 𝑋1+𝑋2+β‹―+π‘‹π‘›βˆΌΞ“(π‘Ž,πœ†), with π‘Ž=βˆ‘π‘–=1π‘›π‘Žπ‘–.

Proof

Let

𝑆𝑛≔𝑋1+𝑋2+β‹―+𝑋𝑛,π‘Ž=βˆ‘π‘–=1π‘›π‘Žπ‘–

We need to show that π‘†π‘›βˆΌΞ“(π‘Ž,πœ†).

Since π‘‹π‘–βˆΌΞ“(π‘Žπ‘–,πœ†), its moment generating function is

𝑀𝑋𝑖(𝑑)=𝔼[𝑒𝑑𝑋𝑖]=(πœ†πœ†βˆ’π‘‘)π‘Žπ‘–,𝑑<πœ†

Since 𝑋1,…,𝑋𝑛 are independent, the moment generating function of 𝑆𝑛 is

𝑀𝑆𝑛(𝑑)=𝔼[𝑒𝑑(𝑋1+β‹―+𝑋𝑛)]=βˆπ‘–=1𝑛𝔼[𝑒𝑑𝑋𝑖]=βˆπ‘–=1𝑛𝑀𝑋𝑖(𝑑)

Therefore,

𝑀𝑆𝑛(𝑑)=βˆπ‘–=1𝑛(πœ†πœ†βˆ’π‘‘)π‘Žπ‘–=(πœ†πœ†βˆ’π‘‘)βˆ‘π‘–=1π‘›π‘Žπ‘–=(πœ†πœ†βˆ’π‘‘)π‘Ž,𝑑<πœ†

Note this is exactly the moment generating function of a Ξ“(π‘Ž,πœ†) random variable. Hence,

𝑆𝑛=𝑋1+β‹―+π‘‹π‘›βˆΌΞ“(π‘Ž,πœ†),π‘Ž=βˆ‘π‘–=1π‘›π‘Žπ‘–

β–‘

Homework 5

Problem 1

Let (π‘ˆπ‘–)π‘–βˆˆβ„• be an i.i.d sequence of random variables with π‘ˆπ‘–βˆΌπ‘ˆ([0,1]). Show that

  • limπ‘›β†’βˆž(π‘ˆ1π‘ˆ2β€¦π‘ˆπ‘›)1/𝑛=π‘’βˆ’1 almost surely.

  • limπ‘›β†’βˆžπ‘ˆ1π‘ˆ2β€¦π‘ˆπ‘›=0 almost surely.

Proof
  • Let

    π‘‹π‘–β‰”βˆ’logπ‘ˆπ‘–,π‘–βˆˆβ„•

    Since π‘ˆπ‘–βˆΌπ‘ˆ([0,1]), for π‘₯β‰₯0,

    β„™(𝑋𝑖≀π‘₯)=β„™(βˆ’logπ‘ˆπ‘–β‰€π‘₯)=β„™(π‘ˆπ‘–β‰₯π‘’βˆ’π‘₯)=1βˆ’π‘’βˆ’π‘₯

    Thus π‘‹π‘–βˆΌExp(1), so 𝔼[𝑋𝑖]=1. Also,

    log((π‘ˆ1π‘ˆ2β‹―π‘ˆπ‘›)1/𝑛)=1π‘›βˆ‘π‘–=1𝑛logπ‘ˆπ‘–=βˆ’1π‘›βˆ‘π‘–=1𝑛𝑋𝑖

    By the Strong Law of Large Numbers,

    1π‘›βˆ‘π‘–=1𝑛𝑋𝑖=1π‘›βˆ‘π‘–=1𝑛logπ‘ˆπ‘–β†’1a.s.

    Since the exponential function is continuous,

    (π‘ˆ1π‘ˆ2β‹―π‘ˆπ‘›)1/𝑛=exp(1π‘›βˆ‘π‘–=1𝑛logπ‘ˆπ‘–)β†’π‘’βˆ’1a.s.
  • Let

    π‘ƒπ‘›β‰”π‘ˆ1π‘ˆ2β‹―π‘ˆπ‘›

    Then from the first part we instantly have

    𝑃𝑛1/π‘›β†’π‘’βˆ’1<1a.s.

    Then for any event πœ” in the event of probability one where this convergence holds, choose π‘Ÿ s.t. π‘’βˆ’1<π‘Ÿ<1, then for all sufficiently large 𝑛,

    𝑃𝑛(πœ”)1/𝑛<π‘Ÿ,i.e.𝑃𝑛(πœ”)<π‘Ÿπ‘›

    Since 0<π‘Ÿ<1, we have π‘Ÿπ‘›β†’0. Therefore 𝑃𝑛(πœ”)β†’0. Therefore

    π‘ˆ1π‘ˆ2β‹―π‘ˆπ‘›β†’0a.s.

β–‘

Problem 2

A factory produces small resistors, and the resistance of each resistor is a random variable 𝑋𝑖 with unknown mean πœ‡ and variance 𝜎2=0.25 ohms 2. The quality control engineer wants to estimate the average resistance of a batch. She decides to measure 𝑛 resistors and compute the sample average

𝑋̄𝑛≔𝑋1+𝑋2+β‹―+𝑋𝑛𝑛

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 1%, i.e.,

β„™(|π‘‹Μ„π‘›βˆ’πœ‡|>0.005)<0.01
Proof

By linearity of expectation,

𝔼[𝑋̄𝑛]=πœ‡

And (assmuming the 𝑋𝑖 are independent), we have

Var(βˆ‘π‘–=1𝑛𝑋𝑖)=βˆ‘π‘–=1𝑛Var(𝑋𝑖)+βˆ‘π‘–β‰ π‘—Cov(𝑋𝑖,𝑋𝑗)=π‘›πœŽ2=0.25𝑛

Thus

Var(𝑋̄𝑛)=𝜎2𝑛=0.25𝑛

By Chebyshev’s inequality, for any πœ€>0,

β„™(|π‘‹Μ„π‘›βˆ’πœ‡|>πœ€)≀Var(𝑋̄𝑛)πœ€2

Taking πœ€=0.005, we get

β„™(|π‘‹Μ„π‘›βˆ’πœ‡|>0.005)≀0.25/𝑛(0.005)2=0.25𝑛⋅0.000025=10000𝑛

We want this upper bound to be less than 0.01, so it is enough to require

10000𝑛<0.01

Therefore, she needs to measure approximately π‘›β‰ˆ1,000,000 resistors.

β–‘

Problem 3

Let (𝑋𝑛)π‘›βˆˆβ„• be a sequence of random variables with β„™(𝑋𝑛≠0)=1/𝑛2 for all π‘›βˆˆβ„•. Show that with probability 1, there exists an 𝑛0βˆˆβ„• such that 𝑋𝑛=0 for all 𝑛β‰₯𝑛0.

Proof

Let

𝐴𝑛≔{𝑋𝑛≠0},π‘›βˆˆβ„•

Then β„™(𝐴𝑛)=1𝑛2 by assumption. Hence

βˆ‘π‘›=1βˆžβ„™(𝐴𝑛)=βˆ‘π‘›=1∞1𝑛2<∞

By Borel-Cantelli lemma,

β„™(lim supπ‘›β†’βˆžπ΄π‘›)=0

So with probability 1, only finitely many of the events 𝐴𝑛 occur. In other words, with probability 1, there exists 𝑛0βˆˆβ„• such that for all 𝑛β‰₯𝑛0,

𝐴𝑛𝑐={𝑋𝑛=0}

occurs. Equivalently,

𝑋𝑛=0for all 𝑛β‰₯𝑛0

Therefore, with probability 1, there exists 𝑛0βˆˆβ„• such that 𝑋𝑛=0 for all 𝑛β‰₯𝑛0.

β–‘

Problem 4

Assume that (𝑋𝑛)π‘›βˆˆβ„• be a sequence of i.i.d random variables with density

𝑓(π‘₯)={12π‘₯, if π‘₯∈(0,1),0, otherwise
  • Find the distribution function of 𝑋1.

  • Let π‘Œπ‘›=min{𝑋1,…,𝑋𝑛} for any π‘›βˆˆβ„•. Show that 𝑛2π‘Œπ‘›β†’π‘‘π‘Œ, where π‘Œ has distribution function

    πΉπ‘Œ(π‘₯)={0, if π‘₯≀01βˆ’π‘’βˆ’π‘₯, otherwise
Proof
  • For π‘₯βˆˆβ„,

    𝐹𝑋1(π‘₯)=β„™(𝑋1≀π‘₯)=βˆ«βˆ’βˆžπ‘₯𝑓(𝑑)𝑑𝑑={0,π‘₯≀0,∫0π‘₯12𝑑𝑑𝑑=π‘₯,0<π‘₯<1,1,π‘₯β‰₯1.
  • If π‘₯≀0, then 𝑛2π‘Œπ‘›β‰₯0, so

    β„™(𝑛2π‘Œπ‘›β‰€π‘₯)=0

    Now consider π‘₯>0. Then

    β„™(𝑛2π‘Œπ‘›>π‘₯)=β„™(π‘Œπ‘›>π‘₯𝑛2)

    Since

    π‘Œπ‘›>π‘₯𝑛2⇔𝑋1>π‘₯𝑛2,…,𝑋𝑛>π‘₯𝑛2

    and the 𝑋𝑖 are independent,

    β„™(π‘Œπ‘›>π‘₯𝑛2)=(β„™(𝑋1>π‘₯𝑛2))𝑛

    For all sufficiently large 𝑛, we have 0<π‘₯𝑛2<1, hence

    β„™(𝑋1>π‘₯𝑛2)=1βˆ’πΉπ‘‹1(π‘₯𝑛2)=1βˆ’π‘₯𝑛2=1βˆ’π‘₯𝑛

    Therefore,

    β„™(𝑛2π‘Œπ‘›>π‘₯)=(1βˆ’π‘₯𝑛)𝑛

    so

    𝐹𝑛2π‘Œπ‘›(π‘₯)=β„™(𝑛2π‘Œπ‘›β‰€π‘₯)=1βˆ’(1βˆ’π‘₯𝑛)𝑛

    Taking π‘›β†’βˆž, we use the standard limit

    (1βˆ’π‘Žπ‘›)π‘›β†’π‘’βˆ’π‘Ž

    with π‘Ž=π‘₯, we obtain

    𝐹𝑛2π‘Œπ‘›(π‘₯)β†’1βˆ’π‘’βˆ’π‘₯,π‘₯>0

    Thus,

    𝐹𝑛2π‘Œπ‘›(π‘₯)β†’{0,π‘₯≀0,1βˆ’π‘’βˆ’π‘₯,π‘₯>0

    which is exactly πΉπ‘Œ(π‘₯). Hence

    𝑛2π‘Œπ‘›β†’π‘‘π‘Œ

β–‘

Problem 5

Let (𝑋𝑛)π‘›βˆˆβ„• be a sequence of random variables with values in ℝ. Show that there exists a sequence (π‘Žπ‘›)π‘›βˆˆβ„• with π‘Žπ‘›>0 such that

π‘‹π‘›π‘Žπ‘›β†’ a.s. 0

For simplicity you may assume that π‘‹π‘›βˆΌExp(1/𝑛).

Hint: For any π‘›βˆˆβ„• construct 𝑏𝑛 such that β„™(|𝑋𝑛|β‰₯𝑏𝑛)≀12𝑛 and use Borel-Cantelli for the events {|𝑋𝑛|/𝑏𝑛β‰₯𝑛}.

Proof

For each π‘›βˆˆβ„•, choose 𝑏𝑛>0 such that

β„™(|𝑋𝑛|β‰₯𝑏𝑛)≀12𝑛

Notice such a choice is always possible, since |𝑋𝑛| is a well-defined random variable, which implies β„™(|𝑋𝑛|β‰₯𝑑)β†’0 as π‘‘β†’βˆž.

Now define

π‘Žπ‘›β‰”π‘›π‘π‘›>0

Consider the sequence of events

𝐸𝑛≔{|𝑋𝑛|π‘Žπ‘›β‰₯1𝑛}

By the definition of π‘Žπ‘›, we have

𝐸𝑛={|𝑋𝑛|𝑛𝑏𝑛β‰₯1𝑛}={|𝑋𝑛|β‰₯𝑏𝑛}

It follows that

βˆ‘π‘›=1βˆžβ„™(𝐸𝑛)=βˆ‘π‘›=1βˆžβ„™(|𝑋𝑛|β‰₯𝑏𝑛)β‰€βˆ‘π‘›=1∞12𝑛<∞

By the first Borel-Cantelli lemma,

β„™(𝐸𝑛 infinitely often)=0

This means that for almost all πœ”βˆˆΞ©, there exists 𝑁(πœ”)βˆˆβ„• such that: for all 𝑛β‰₯𝑁(πœ”), the event 𝐸𝑛 does not occur, i.e.,

|𝑋𝑛(πœ”)|π‘Žπ‘›<1𝑛

Since 1/𝑛→0 as π‘›β†’βˆž, it follows immediately that

π‘‹π‘›π‘Žπ‘›β†’0a.s.

If we assume π‘‹π‘›βˆΌExp(1/𝑛), we can provide an explicit sequence. Since

β„™(𝑋𝑛β‰₯𝑑)=π‘’βˆ’π‘‘/𝑛for 𝑑β‰₯0

we can choose 𝑏𝑛=𝑛2log2. So that

β„™(𝑋𝑛β‰₯𝑏𝑛)=π‘’βˆ’(𝑛2log2)/𝑛=π‘’βˆ’π‘›log2=12𝑛

Then π‘Žπ‘›=𝑛𝑏𝑛=𝑛3log2, the general argument above guarantees that

π‘‹π‘›π‘Žπ‘›=𝑋𝑛𝑛3log2β†’a.s.0

This completes the proof.

β–‘

Problem 6

Let {𝑋𝑖}𝑖β‰₯1 be i.i.d. positive integer-valued random variables with 0<𝔼[𝑋1]<∞. 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 𝑁𝑛→𝑑𝑋1βˆ—, where 𝑋1βˆ— has distribution

β„™(𝑋1βˆ—=π‘˜)=π‘˜β„™(𝑋1=π‘˜)𝔼[𝑋1]
Proof

For each π‘›βˆˆβ„•, let

𝑆𝑛≔𝑋1+β‹―+𝑋𝑛

be the total number of children in the first 𝑛 families.

Given 𝑋1,…,𝑋𝑛, we choose one child uniformly at random among these 𝑆𝑛 children. Hence, conditionally on 𝑋1,…,𝑋𝑛, the probability that the chosen child comes from a family with exactly π‘˜ children is

β„™(𝑁𝑛=π‘˜βˆ£π‘‹1,…,𝑋𝑛)=βˆ‘π‘–=1π‘›π‘‹π‘–πŸ{𝑋𝑖=π‘˜}𝑆𝑛

Since π‘‹π‘–πŸ{𝑋𝑖=π‘˜}=π‘˜πŸ{𝑋𝑖=π‘˜}, this becomes

β„™(𝑁𝑛=π‘˜βˆ£π‘‹1,…,𝑋𝑛)=π‘˜βˆ‘π‘–=1π‘›πŸ{𝑋𝑖=π‘˜}𝑆𝑛=π‘˜β‹…1π‘›βˆ‘π‘–=1π‘›πŸ{𝑋𝑖=π‘˜}1π‘›βˆ‘π‘–=1𝑛𝑋𝑖

By the Strong Law of Large Numbers,

1π‘›βˆ‘π‘–=1π‘›πŸ{𝑋𝑖=π‘˜}→𝔼[𝟏{𝑋1=π‘˜}]=β„™(𝑋1=π‘˜)a.s.

and

1π‘›βˆ‘π‘–=1𝑛𝑋𝑖→𝔼[𝑋1]a.s.

Since 0<𝔼[𝑋1]<∞, it follows that

β„™(𝑁𝑛=π‘˜βˆ£π‘‹1,…,𝑋𝑛)β†’π‘˜β„™(𝑋1=π‘˜)𝔼[𝑋1]a.s.

Taking expectations on both sides, and using dominated convergence because 0≀ℙ(𝑁𝑛=π‘˜βˆ£π‘‹1,…,𝑋𝑛)≀1, we obtain

β„™(𝑁𝑛=π‘˜)=𝔼ℙ(𝑁𝑛=π‘˜βˆ£π‘‹1,…,𝑋𝑛)β†’π‘˜β„™(𝑋1=π‘˜)𝔼[𝑋1]

Thus, for every π‘˜βˆˆβ„•,

β„™(𝑁𝑛=π‘˜)β†’β„™(𝑋1βˆ—=π‘˜)

Hence

𝑁𝑛→𝑑𝑋1βˆ—

β–‘

Homework 6

Problem 1

Let 𝑋 be a random variable such that 𝔼[|𝑋|]<∞, that is π‘‹βˆˆπΏ1. 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

    πœ™π‘‹(𝑑+β„Ž)βˆ’πœ™π‘‹(𝑑)β„Ž=𝔼[π‘’π‘–π‘‘π‘‹π‘’π‘–β„Žπ‘‹βˆ’1β„Ž]

    Notice we have (for a.e. πœ”):

    limβ„Žβ†’0π‘’π‘–β„Žπ‘‹βˆ’1β„Ž=𝑖𝑋

    Hence

    π‘’π‘–π‘‘π‘‹π‘’π‘–β„Žπ‘‹βˆ’1β„Žβ†’π‘–π‘‹π‘’π‘–π‘‘π‘‹a.s.as β„Žβ†’0

    Using the mean value theorem for the function 𝑒↦𝑒𝑖𝑒𝑋, for |β„Ž|≀1 we have

    |π‘’π‘–β„Žπ‘‹βˆ’1β„Ž|≀|𝑋|

    Also, |𝑒𝑖𝑑𝑋|=1, so

    |π‘’π‘–π‘‘π‘‹π‘’π‘–β„Žπ‘‹βˆ’1β„Ž|=|𝑒𝑖𝑑𝑋||π‘’π‘–β„Žπ‘‹βˆ’1β„Ž|≀|𝑋|

    Since π‘‹βˆˆπΏ1, we have 𝔼[|𝑋|]<∞, therefore |𝑋| is a dominating integrable random variable for π‘’π‘–π‘‘π‘‹π‘’π‘–β„Žπ‘‹βˆ’1β„Ž. Then by DCT,

    limβ„Žβ†’0πœ™π‘‹(𝑑+β„Ž)βˆ’πœ™π‘‹(𝑑)β„Ž=𝔼[limβ„Žβ†’0π‘’π‘–π‘‘π‘‹π‘’π‘–β„Žπ‘‹βˆ’1β„Ž]=𝔼[𝑖𝑋𝑒𝑖𝑑𝑋]

    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

    πœ™π‘‹(𝑑)=𝔼[cos(𝑑𝑋)]+𝑖𝔼[sin(𝑑𝑋)]

    Since 𝑋 is symmetric, sin(𝑑π‘₯) is odd, so

    𝔼[sin(𝑑𝑋)]=0

    Therefore πœ™π‘‹(𝑑)=𝔼[cos(𝑑𝑋)]βˆˆβ„.

β–‘

Problem 2

Let π‘‹βˆΌBin(𝑛,𝑝), where π‘›βˆˆβ„•,π‘βˆˆ(0,1) and π‘ŒβˆΌPois(πœ†), where πœ†>0.

  • Compute the characteristic functions of 𝑋,π‘Œ.

  • Let (𝑝𝑛)π‘›βˆˆβ„• be a sequence in (0,1) such that limπ‘›β†’βˆžπ‘›π‘π‘›=πœ† and (𝑋𝑛)π‘›βˆˆβ„• be a sequence of random variables with π‘‹π‘›βˆΌBin(𝑛,𝑝𝑛). Show that π‘‹π‘›β†’π‘‘π‘Œ.

Proof
  • We have

    β„™(𝑋=π‘˜)=(π‘›π‘˜)π‘π‘˜(1βˆ’π‘)π‘›βˆ’π‘˜,π‘˜=0,1,…,𝑛

    Therefore,

    πœ™π‘‹(𝑑)=𝔼[𝑒𝑖𝑑𝑋]=βˆ‘π‘˜=0π‘›π‘’π‘–π‘‘π‘˜(π‘›π‘˜)π‘π‘˜(1βˆ’π‘)π‘›βˆ’π‘˜

    We factor π‘’π‘–π‘‘π‘˜ into (𝑝𝑒𝑖𝑑)π‘˜/π‘π‘˜ and obtain

    πœ™π‘‹(𝑑)=βˆ‘π‘˜=0𝑛(π‘›π‘˜)(𝑝𝑒𝑖𝑑)π‘˜(1βˆ’π‘)π‘›βˆ’π‘˜

    By the binomial formula,

    πœ™π‘‹(𝑑)=(1βˆ’π‘+𝑝𝑒𝑖𝑑)𝑛

    Next for π‘ŒβˆΌPois(πœ†) we have

    β„™(π‘Œ=π‘˜)=π‘’βˆ’πœ†πœ†π‘˜π‘˜!,π‘˜=0,1,2,…

    Hence

    πœ™π‘Œ(𝑑)=𝔼[π‘’π‘–π‘‘π‘Œ]=βˆ‘π‘˜=0βˆžπ‘’π‘–π‘‘π‘˜π‘’βˆ’πœ†πœ†π‘˜π‘˜!

    Thus

    πœ™π‘Œ(𝑑)=π‘’βˆ’πœ†βˆ‘π‘˜=0∞(πœ†π‘’π‘–π‘‘)π‘˜π‘˜!=π‘’βˆ’πœ†π‘’πœ†π‘’π‘–π‘‘=π‘’πœ†(π‘’π‘–π‘‘βˆ’1)

    So the characteristic functions are

    πœ™π‘‹(𝑑)=(1βˆ’π‘+𝑝𝑒𝑖𝑑)𝑛,πœ™π‘Œ(𝑑)=π‘’πœ†(π‘’π‘–π‘‘βˆ’1)
  • By part (a),

    πœ™π‘‹π‘›(𝑑)=(1βˆ’π‘π‘›+𝑝𝑛𝑒𝑖𝑑)𝑛=(1+𝑝𝑛(π‘’π‘–π‘‘βˆ’1))𝑛

    We now compute the limit as π‘›β†’βˆž.

    Set

    π‘Žπ‘›β‰”π‘π‘›(π‘’π‘–π‘‘βˆ’1)

    Since 𝑝𝑛→0 (as π‘›π‘π‘›β†’πœ†<∞), we have π‘Žπ‘›β†’0. Therefore,

    log(1+π‘Žπ‘›)β†’π‘Žπ‘›,π‘›β†’βˆž

    Hence

    𝑛log(1+π‘Žπ‘›)β†’π‘›π‘Žπ‘›=𝑛𝑝𝑛(π‘’π‘–π‘‘βˆ’1)βŸΉπœ†(π‘’π‘–π‘‘βˆ’1)

    Exponentiating, we get

    πœ™π‘‹π‘›(𝑑)=exp𝑛log(1+π‘Žπ‘›)β†’expπœ†(π‘’π‘–π‘‘βˆ’1)

    But by part (a),

    expπœ†(π‘’π‘–π‘‘βˆ’1)=πœ™π‘Œ(𝑑)

    Thus for every π‘‘βˆˆβ„,

    πœ™π‘‹π‘›(𝑑)β†’πœ™π‘Œ(𝑑)

    Since πœ™π‘Œ is the characteristic function of π‘ŒβˆΌPois(πœ†), by the uniqueness theorem for characteristic functions, this implies

    π‘‹π‘›β†’π‘‘π‘Œ

β–‘

Problem 3

Show that

limπ‘›β†’βˆžβˆ«0𝑛/22𝑛(π‘›βˆ’1)!π‘‘π‘›βˆ’1π‘’βˆ’2𝑑𝑑𝑑=12

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

πΌπ‘›β‰”βˆ«0𝑛/22𝑛(π‘›βˆ’1)!π‘‘π‘›βˆ’1π‘’βˆ’2𝑑𝑑𝑑

Then

𝑓𝑛(𝑑)=2𝑛(π‘›βˆ’1)!π‘‘π‘›βˆ’1π‘’βˆ’2π‘‘πŸ(0,∞)(𝑑)

is the density of a Gamma distribution with parameters (𝑛,2), that is, π‘‡π‘›βˆΌΞ“(𝑛,2). Hence

𝐼𝑛=β„™(𝑇𝑛≀𝑛/2)

Now let 𝑋1,𝑋2,… be i.i.d. random variables with

π‘‹π‘–βˆΌExp(2)

We know that

𝑇𝑛=𝑋1+β‹―+𝑋𝑛

Also,

πœ‡β‰”π”Ό[𝑋1]=12,𝜎2≔Var(𝑋1)=14

Therefore,

𝐼𝑛=β„™(𝑋1+β‹―+𝑋𝑛≀𝑛/2)=β„™(π‘‡π‘›βˆ’π‘›πœ‡πœŽπ‘›β‰€0)

Since πœ‡=1/2 and 𝜎=1/2, this is

𝐼𝑛=β„™(π‘‡π‘›βˆ’π‘›/2𝑛/2≀0)

By the Central Limit Theorem,

π‘‡π‘›βˆ’π‘›πœ‡πœŽπ‘›=π‘‡π‘›βˆ’π‘›/2𝑛/2→𝑑𝑍,π‘βˆΌπ‘(0,1)

Hence, since the standard normal distribution function is continuous at 0,

limπ‘›β†’βˆžπΌπ‘›=limπ‘›β†’βˆžβ„™(π‘‡π‘›βˆ’π‘›/2𝑛/2≀0)=β„™(𝑍≀0)=12

Thus

limπ‘›β†’βˆžβˆ«0𝑛/22𝑛(π‘›βˆ’1)!π‘‘π‘›βˆ’1π‘’βˆ’2𝑑𝑑𝑑=12

β–‘

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 1,3,5, 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 𝑖=1,…,90. Then the random variables 𝑋1,…,𝑋90 are independent and identically distributed, with

𝑋𝑖={βˆ’3,if the player wins 3 euros4,if the player loses 4 euros0,if the outcome is 6

Since the die is fair, we have

β„™(𝑋𝑖=βˆ’3)=26=13,β„™(𝑋𝑖=4)=36=12,β„™(𝑋𝑖=0)=16

Let

𝑆90=𝑋1+β‹―+𝑋90

be the total gain of the casino after 90 players. We want to approximate

β„™(𝑆90β‰₯30)

We first compute the mean and variance of 𝑋1. The mean is

πœ‡β‰”π”Ό[𝑋1]=(βˆ’3)β‹…13+4β‹…12+0β‹…16=βˆ’1+2=1

Also,

𝔼[𝑋12]=9β‹…13+16β‹…12+0=3+8=11

Hence

𝜎2≔Var(𝑋1)=𝔼[𝑋12]βˆ’πœ‡2=11βˆ’1=10

Therefore,

𝔼[𝑆90]=90πœ‡=90,Var(𝑆90)=90𝜎2=900

So the standard deviation of 𝑆90 is

900=30

By the Central Limit Theorem,

𝑆90βˆ’9030β‰ˆπ‘(0,1)

Thus,

β„™(𝑆90β‰₯30)=β„™(𝑆90βˆ’9030β‰₯30βˆ’9030)β‰ˆβ„™(𝑍β‰₯βˆ’2)

where π‘βˆΌπ‘(0,1). Since

β„™(𝑍β‰₯βˆ’2)=β„™(𝑍≀2)β‰ˆ0.9772

we conclude that

β„™(𝑆90β‰₯30)β‰ˆ0.9772

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 𝔼[𝑋1]=0 and 𝔼[𝑋12]=1. Show that

βˆ‘π‘–=1π‘›π‘‹π‘–βˆ‘π‘–=1𝑛𝑋𝑖2→𝑑𝑍,π‘βˆΌπ‘(0,1)
Proof

Let

π‘†π‘›β‰”βˆ‘π‘–=1𝑛𝑋𝑖,π‘„π‘›β‰”βˆ‘π‘–=1𝑛𝑋𝑖2

We want to show that

𝑆𝑛𝑄𝑛→𝑑𝑍,π‘βˆΌπ‘(0,1)

First, since (𝑋𝑛)π‘›βˆˆβ„• are i.i.d. with 𝔼[𝑋1]=0, and 𝔼[𝑋12]=1, we have Var(𝑋1)=1. And thus by the Central Limit Theorem,

𝑆𝑛𝑛→𝑑𝑍,π‘βˆΌπ‘(0,1)

And then, consider 𝑄𝑛. Since (𝑋𝑖2) are i.i.d. and 𝔼[𝑋12]=1<∞, by the Law of Large Numbers we have

𝑄𝑛𝑛→𝑃1

By continuity of the square root function,

𝑄𝑛𝑛→𝑃1

Write

𝑆𝑛𝑄𝑛=𝑆𝑛𝑛⋅1𝑄𝑛/𝑛

Define

𝐴𝑛≔𝑆𝑛𝑛,𝐡𝑛≔1𝑄𝑛/𝑛

Then we have shown that 𝐴𝑛→𝑑𝑍 and 𝐡𝑛→𝑃1.

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 0. It remains to show that 𝔼[𝑓(𝐴𝑛𝐡𝑛)]βˆ’π”Ό[𝑓(𝐴𝑛)]β†’0.

Observe π΄π‘›π΅π‘›βˆ’π΄π‘›=𝐴𝑛(π΅π‘›βˆ’1). Because 𝐴𝑛→𝑑𝑍, the sequence (𝐴𝑛) is tight. Also, since 𝐡𝑛→𝑃1, we have

π΅π‘›βˆ’1→𝑃0

It follows that

𝐴𝑛(π΅π‘›βˆ’1)=π΄π‘›π΅π‘›βˆ’π΄π‘›β†’π‘ƒ0

We now show that

𝑓(𝐴𝑛𝐡𝑛)βˆ’π‘“(𝐴𝑛)→𝑃0

Fix πœ€>0. Since (𝐴𝑛) is tight, there exists 𝑀>0 such that

sup𝑛β‰₯1β„™(|𝐴𝑛|>𝑀)<πœ€

Since 𝑓 is continuous on the compact interval [βˆ’π‘€βˆ’1,𝑀+1], it is uniformly continuous there. Thus there exists 𝛿>0 such that whenever π‘₯,π‘¦βˆˆ[βˆ’π‘€βˆ’1,𝑀+1] and |π‘₯βˆ’π‘¦|<𝛿, we have

|𝑓(π‘₯)βˆ’π‘“(𝑦)|<πœ€

Now on the event

{|𝐴𝑛|≀𝑀,|π΄π‘›π΅π‘›βˆ’π΄π‘›|<min(𝛿,1)}

we also have |𝐴𝑛𝐡𝑛|≀𝑀+1, so

|𝑓(𝐴𝑛𝐡𝑛)βˆ’π‘“(𝐴𝑛)|<πœ€

Therefore,

β„™|𝑓(𝐴𝑛𝐡𝑛)βˆ’π‘“(𝐴𝑛)|>πœ€β‰€β„™(|𝐴𝑛|>𝑀)+β„™(|π΄π‘›π΅π‘›βˆ’π΄π‘›|β‰₯min(𝛿,1))

The first term is less than πœ€, and the second term tends to 0. Hence

𝑓(𝐴𝑛𝐡𝑛)βˆ’π‘“(𝐴𝑛)→𝑃0

Since 𝑓 is bounded, the random variables 𝑓(𝐴𝑛𝐡𝑛)βˆ’π‘“(𝐴𝑛) are uniformly bounded. Therefore,

𝔼[𝑓(𝐴𝑛𝐡𝑛)βˆ’π‘“(𝐴𝑛)]β†’0

Combining this with 𝔼[𝑓(𝐴𝑛)]→𝔼[𝑓(𝑍)], we get

𝔼[𝑓(𝐴𝑛𝐡𝑛)]→𝔼[𝑓(𝑍)]

Thus

𝐴𝑛𝐡𝑛→𝑑𝑍

This finishes the proof that

𝑆𝑛𝑄𝑛=𝐴𝑛𝐡𝑛→𝑑𝑍

That is,

βˆ‘π‘–=1π‘›π‘‹π‘–βˆ‘π‘–=1𝑛𝑋𝑖2→𝑑𝑍,π‘βˆΌπ‘(0,1)

β–‘