Skip to main content

Problem Sets

Click below to expand the problem sets that you should complete after each class. For optional problems beyond these, see Extra Practice. You should also watch the lecturer’s demonstration lectures on Canvas when they become available. These will mainly cover past exam questions.

Try each problem before revealing its solution. Each problem has its solution in a collapsed box directly beneath it. Problems 1–3 come from a previous year’s demonstration lecture. Problems 4–8 come from exams that I wrote for Econ 103 at the University of Pennsylvania and from the probability collections that I set for my Oxford students in previous years.

  1. Prove, using the probability axioms

    1. The Complement Rule: \(P(A^c) = 1 - P(A)\).
    2. The Probability of the Union of Two Events Rule: \(P(A\cup B) = P (A) + P (B) - P (A\cap B)\)
    3. The Bounds on Probabilities Rule (Boole’s inequality): \(P (A \cup B) \leq P (A) + P (B)\)
    4. The Logical Consequence Rule: If \(B\) logically entails \(A\) then \(P (B) \leq P (A)\)

    The axioms are: (1) \(P(A) \geq 0\) for any event \(A\); (2) \(P(\Omega) = 1\); and (3) if \(A_1, A_2, \ldots\) are mutually exclusive then \(P(A_1 \cup A_2 \cup \cdots) = P(A_1) + P(A_2) + \cdots\).

    1. Either \(A\) happens or it does not, so \(A \cup A^c = \Omega\). By Axiom 2, \(P(A \cup A^c) = P(\Omega) = 1\). Since \(A\) and \(A^c\) are mutually exclusive, \(P(A \cup A^c) = P(A) + P(A^c)\) by Axiom 3. Hence \(P(A) + P(A^c) = 1\), and rearranging gives \(P(A^c) = 1 - P(A)\).

    2. Split \(A \cup B\) into two mutually exclusive pieces, according to whether \(A\) happens: \(A \cup B = A \cup (A^c \cap B)\), since an outcome in \(A \cup B\) that is not in \(A\) must be in \(B\). By Axiom 3, \(P(A \cup B) = P(A) + P(A^c \cap B)\). Now split \(B\) according to whether \(A\) happens: \(B = (A \cap B) \cup (A^c \cap B)\). These two pieces are also mutually exclusive. By Axiom 3, \(P(B) = P(A \cap B) + P(A^c \cap B)\), so \(P(A^c \cap B) = P(B) - P(A \cap B)\). Substituting into the first expression gives \(P(A \cup B) = P(A) + P(B) - P(A \cap B)\).

    3. By part (b), \(P(A \cup B) = P(A) + P(B) - P(A \cap B)\). By Axiom 1, \(P(A \cap B) \geq 0\). Hence \(P(A \cup B) \leq P(A) + P(B)\).

    4. If \(B\) logically entails \(A\), then \(A\) happens whenever \(B\) happens, so \(B \subseteq A\). Because \(B \subseteq A\), every outcome in \(A\) is either in \(B\) or in \(A \cap B^c\), so \(A\) splits into two mutually exclusive pieces: \(A = B \cup (A \cap B^c)\). By Axiom 3, \(P(A) = P(B) + P(A \cap B^c)\). By Axiom 1, \(P(A \cap B^c) \geq 0\), so \(P(A) \geq P(B)\).

  2. Consider the experiment of tossing a coin repeatedly and counting the number of coin tosses required until the first head appears.

    1. Write down the sample space.
    2. Let \(A\) be the event that the number of coin tosses required for the first head to appear is even. Let \(B\) be the event that the number of coin tosses required until the first head appears is less than 5. Describe events \(A\) and \(B\) as sets.
    1. The basic outcomes are the possible numbers of tosses: the first head could appear on the first toss, the second, the third, and so on. Hence \(\Omega = \{1, 2, 3, \ldots\}\). This sample space is infinite, because there is no upper limit on the number of tosses needed for the first head.

    2. \(A = \{2, 4, 6, \ldots\}\) and \(B = \{1, 2, 3, 4\}\).

  3. Consider the experiment of tossing a coin 2 times. Consider the events: \[ \begin{aligned} A &= \text{There is at most one Head}\\ B &= \text{There is at least one Head and there is at least one Tail} \end{aligned} \]

    1. Are events \(A\) and \(B\) independent?
    2. What if you toss the coin 3 times?
    3. What if you toss the coin 4 times?

    Assume that the coin is fair and that the tosses are independent, so that every sequence of heads and tails is equally likely. In each case, \(A \cap B\) is the event that there is exactly one head. “At most one head” rules out two or more heads, and “at least one head” rules out zero. With two or more tosses, exactly one head leaves at least one tail, so the requirement of a tail in \(B\) adds nothing. The events are independent if and only if \(P(A \cap B) = P(A)P(B)\).

    1. There are four equally likely outcomes: HH, HT, TH, TT. \(A = \{HT, TH, TT\}\), so \(P(A) = 3/4\). \(B = \{HT, TH\}\), so \(P(B) = 1/2\). \(A \cap B = \{HT, TH\}\), so \(P(A \cap B) = 1/2\). Since \(P(A)P(B) = (3/4)(1/2) = 3/8 \neq 1/2 = P(A \cap B)\), \(A\) and \(B\) are not independent. In fact \(B \subseteq A\), so if \(B\) happens then \(A\) must happen, and \(P(A|B) = 1 \neq 3/4 = P(A)\).

    2. There are eight equally likely outcomes. \(A\) contains TTT and the three outcomes with exactly one head, so \(P(A) = 4/8 = 1/2\). \(B\) contains every outcome except HHH and TTT, so \(P(B) = 6/8 = 3/4\). \(A \cap B\) contains the three outcomes with exactly one head, so \(P(A \cap B) = 3/8\). Since \(P(A)P(B) = (1/2)(3/4) = 3/8 = P(A \cap B)\), \(A\) and \(B\) are independent.

    3. There are sixteen equally likely outcomes. \(A\) contains TTTT and the four outcomes with exactly one head, so \(P(A) = 5/16\). \(B\) contains every outcome except HHHH and TTTT, so \(P(B) = 14/16 = 7/8\). \(A \cap B\) contains the four outcomes with exactly one head, so \(P(A \cap B) = 4/16 = 1/4\). Since \(P(A)P(B) = (5/16)(7/8) = 35/128 \neq 32/128 = P(A \cap B)\), \(A\) and \(B\) are not independent.

    Events with the same descriptions are independent with three tosses but not with two or four. Whether two events are independent depends on their probabilities, so it has to be checked by computing whether \(P(A \cap B) = P(A)P(B)\), or equivalently whether \(P(A|B) = P(A)\).

  4. Let \(A\) and \(B\) be two events where \(0<P(B)<1\). Prove that \[P(A) = P(A|B)P(B) + P(A|B^c)P(B^c)\] You may use any rule except the one you are being asked to prove. Name each rule that you use.

    First, note that \(A\cap B\) and \(A \cap B^c\) are mutually exclusive and \[A = (A\cap B) \cup (A \cap B^c)\] Therefore, by the third axiom of probability, \[P(A) = P(A\cap B) + P(A \cap B^c)\] Finally, by the multiplication rule, \[P(A\cap B) = P(A|B)P(B)\] and \[P(A \cap B^c) = P(A|B^c)P(B^c)\] Combining these, \[P(A) = P(A|B)P(B) + P(A|B^c)P(B^c)\]

  5. From my HT 2022 probability collection.

    Ruth wants to know the fraction of undergraduates who smoke marijuana. Because she worries that her subjects may be unwilling to admit to breaking the law, Ruth conducts her interviews as follows:

    Hi, I’m carrying out a survey on marijuana use. In a moment I’m going to ask if you smoke marijuana, but before I do I’d like you to flip this fair coin in secret. If you get heads, answer my question truthfully. If you get tails, answer YES regardless of whether you smoke marijuana. Because I don’t know the outcome of your coin flip, if you answer YES I’ll never know whether you really smoke marijuana or just flipped a tails.

    Ruth interviews a large number of subjects who all follow her instructions exactly: 85% answer YES. Calculate the fraction of undergraduates who smoke marijuana.

    Let \(Y\) be the event that someone answers YES, \(M\) be the event she smokes marijuana, and \(T\) be the event that she flips a tails. Since \(Y = M \cup T\), by the Probability of the Union of Two Events Rule we have \[P(Y) = P(M) + P(T) - P(M\cap T)\] Since the coin is fair, \(P(T) = 0.5\). Since the outcome of a coin toss doesn’t depend on whether someone does or doesn’t smoke marijuana, \(M\) and \(T\) are independent which implies \(P(M\cap T) = P(M)P(T)\). Substituting this information along with \(P(Y) = 0.85\), \[0.85 = P(M) + 0.5 - 0.5 \times P(M)\] and solving we see that \(P(M) = 0.7\).

    Alternatively, you could solve this using the Law of Total Probability: \[\begin{aligned} P(Y) &= P(Y|T)P(T) + P(Y|T^c)P(T^c) \\ 0.85 &= 1 \times 1/2 + P(Y|T^c)\times 1/2\\ 0.7 &= P(Y|T^c) \end{aligned}\] using the fact that \(P(Y|T^c) = P(M)\) since anyone who flips heads answers truthfully, and the outcome of the coin flip has no bearing on whether someone smokes marijuana.

  6. Suppose that 1 out of \(N\) coins is defective and I chose my coin at random. Whereas a regular coin is equally likely to come up heads or tails, a defective coin always comes up heads. I choose a coin at random and flip it ten times: I get ten heads. Let \(D\) be the event that my coin is defective and \(A\) be the event that I get ten heads in ten flips of my coin.

    1. What is \(P(A|D)\)?

      \(P(A|D) = 1\) since a defective coin always comes up heads.

    2. What is \(P(A|D^c)\)?

      \(P(A|D^c) = 1/2^{10} = 1/1024\) since a regular coin is equally likely to come up heads or tails, and each flip is independent.

    3. Expressed as a function of \(N\), what is \(P(D)\)?

      \(P(D) = 1/N\) since 1 out of \(N\) coins is defective and I chose a coin at random.

    4. Expressed in terms of \(N\), what is \(P(D^c)\)?

      By the complement rule \(P(D^c) = 1 - P(D) = 1 - 1/N = (N-1)/N\).

    5. Expressed in terms of \(N\), what is \(P(A)\)?

      By the law of total probability: \[\begin{aligned} P(A) &= P(A|D) \times P(D) + P(A|D^c) \times P(D^c)\\ &= 1/N \times 1 + (N-1)/N \times 1/1024 = (1024 + N - 1) / (N \times 1024) \end{aligned}\]

    6. Expressed in terms of \(N\), what is \(P(D|A)\)?

      By Bayes’ rule \[P(D|A) = \frac{P(A|D)P(D)}{P(A)} = \frac{1/N}{(1024 + N - 1)/(N \times 1024)} = \frac{1024}{1024 + N - 1}\]

  7. Approximately 80% of all emails sent over the internet are spam. About 10% of spam emails contain the word “viagra” compared to 1% of non-spam emails. About 5% of spam emails contain the word “herbal” compared to 3% of non-spam.

    1. Assume that the occurrences of words in emails are independent for both spam and non-spam. If an email contains both the words “viagra” and “herbal” what is the probability that it is spam?

      Use Bayes’ Rule: \[P(\text{spam}|\text{herbal}\cap\text{viagra}) = \frac{P(\text{herbal}\cap\text{viagra}|\text{spam})P(\text{spam})}{P(\text{herbal}\cap\text{viagra})}\] By the Law of Total Probability, \[\begin{aligned} P(\text{herbal}\cap\text{viagra}) &= P(\text{herbal}\cap\text{viagra}|\text{spam})P(\text{spam})\\ &\quad + P(\text{herbal}\cap\text{viagra}|\text{non-spam})P(\text{non-spam})\\ &= 1/10 \times 1/20 \times 4/5 + 1/100 \times 3/100 \times 1/5\\ &= 1/1000 \times (4 + 3/50) \end{aligned}\] Hence, \[P(\text{spam}|\text{herbal}\cap\text{viagra}) = \frac{4}{4 + 3/50} \approx 99\%\]

    2. After completing your calculations, you learn an additional piece of information: approximately 14.5% of spam emails contain the word “herbal” or “viagra.” Does this new information support or contradict the assumption that words appear independently in emails? Explain.

      This question is only for spam emails, so we won’t explicitly write the conditioning on spam. Let \(H\) be the event that a spam email contains at least one occurrence of “herbal” and \(V\) be the event that it contains at least one occurrence of “viagra.” We are given that \(P(V) = 0.1\), \(P(H) = 0.05\) and \(P(V\cup H) = 0.145\). By the Probability of the Union of Two Events Rule \(P(V\cup H) = P(V) + P(H) - P(V\cap H)\) Substituting the known probabilities, we see that \(0.145 = 0.15 - P(V\cap H)\). Hence, \(P(V\cap H) = 0.15 - 0.145 = 0.005\). Independence requires that \(P(V\cap H) = P(H)P(V)= 0.1 \times 0.05 = 0.005\) so this piece of information tells us that, at least for spam emails, the words “herbal” and “viagra” occur independently.

  8. From my HT 2022 probability collection.

    A plane has crashed in one of three possible locations: the mountains (\(M\)), the desert (\(D\)), or the sea (\(S\)). Based on its flight path, experts have calculated the following prior probabilities that the plane is in each location: \(P(M) = 0.5\), \(P(D) = 0.3\) and \(P(S) = 0.2\). If we search the mountains then, given that the plane is actually there, we have a 30% chance of failing to find it. If we search the desert then, given that the plane is actually there, we have a 20% chance of failing to find it. Finally, if we search the sea then, given that the plane is actually there, we have a 90% chance of failing to find it. Naturally if the plane is not in a particular location but we search for it there, we will not find it. You may assume that searches in each location are independent given the location of the plane. Let \(F_M\) be the event that we fail to find the plane in the mountains. Define \(F_D\) and \(F_S\) analogously.

    1. We started by searching the mountains. We failed to find the plane. What is the conditional probability that the plane is nevertheless in the mountains? Explain.

      By Bayes’ Rule: \(P(M|F_M) = P(F_M|M)P(M)/P(F_M)\). We first calculate the denominator using the Law of Total Probability: \[\begin{aligned} P(F_M) &= P(F_M|M)P(M) + P(F_M|M^c)P(M^c) \\ &= 0.3 \times 0.5 + 1 \times 0.5 = 0.15 + 0.5 = 0.65 \end{aligned}\] Hence, the desired probability is \(15/65 = 3/13 \approx 0.23\).

    2. After failing to find the plane in the mountains, we searched the desert, and the sea. We did not find the plane in either location. After this more exhaustive search what is the conditional probability that the plane is in the mountains? Explain.

      We are asked to calculate \(P(M|F_M \cap F_D \cap F_S)\). By Bayes’ rule, \[P(M|F_M \cap F_D \cap F_S) = \frac{P(F_M \cap F_D \cap F_S|M)P(M)}{P(F_M \cap F_D \cap F_S)}\] Define the shorthand \(A = F_M \cap F_D \cap F_S\). By the Law of Total Probability \[\begin{aligned} P(A) &= P(A|M)P(M) + P(A|D)P(D) + P(A|S)P(S) \\ &= (0.3 \times 1 \times 1) \times 0.5 + (1 \times 0.2 \times 1) \times 0.3 + (1 \times 1 \times 0.9 ) \times 0.2 \\ &= 0.15 + 0.06 + 0.18 = 0.39 \end{aligned}\] using independence. Hence, the desired probability is \(15/39 \approx 0.38\).

Try each problem before revealing its solution. Each problem has its solution in a collapsed box directly beneath it. Problems 4–6 come from a previous year’s demonstration lecture. The others come from exams that I wrote for Econ 103 at the University of Pennsylvania and from the probability collections that I set for my Oxford students in previous years.

  1. Suppose we carry out a sequence of independent Bernoulli trials, each with probability of success \(p\), and stop as soon as we get the first success.

    1. What is the probability that we get a success on our first trial?
    2. What is the probability that we get our first success on the second trial? (That is, what is the probability of a Failure followed by a Success?)
    3. What is the probability that we get our first success on the \(n\)th trial?
    4. Suppose that we define a random variable \(X\) that equals the trial number of the first success in a sequence of independent Bernoulli trials, each with probability \(p\) of success. This is the definition of a Geometric\((p)\) random variable. What is the probability mass function \(f(x)=P(X=x)\) of \(X\)? What is the support of this random variable?
    1. \(p\)

    2. \(p(1-p)\)

    3. \(p(1-p)^{n-1}\)

    4. The support of \(X\) is \(\{1, 2, 3, \ldots\}\) and the pmf is \[f(x) = \left\{ \begin{array}{ll} p(1-p)^{x-1} & \text{for } x \in \{1, 2, 3, \ldots\} \\ 0 & \text{elsewhere} \end{array} \right.\]

  2. Let \(X\) be a continuous random variable with support set \([0,\infty)\) and pdf \(f(x) = e^{-x}\). This is a special case of the so-called “Exponential” random variable, an example we did not cover in class. This question asks you to apply what you know about continuous random variables in general to this new example.

    1. Calculate the CDF \(F(x_0)\) of \(X\).
    2. Calculate \(P(0 \leq X \leq 1)\).
    3. Derive the quantile function \(Q(p)\) of \(X\). This is the function that gives, for each probability \(p\), the value \(x\) such that \(P(X \leq x) = p\).
    4. The “Survival Function” of a continuous RV \(Y\) is defined as \(S(t) = P(Y>t)\) where \(t\) is some threshold. Calculate the survival function of \(X\).
    1. \(F(x_0) = \int_{-\infty}^{x_0} f(x)\, dx = \int_{0}^{x_0} e^{-x}\, dx = \left. -e^{-x}\right|_0^{x_0} = -e^{-x_0} -\left( -e^{0} \right) = 1 - e^{-x_0}\)

    2. \(P(0\leq X \leq 1) = F(1) - F(0) = F(1) = 1 - 1/e \approx 0.63\)

    3. Since \(Q(p) = F^{-1}(p)\), we simply solve \(p = F(x) = 1-e^{-x}\) for \(x\), yielding: \(Q(p) = -\log(1-p)\) where \(\log\) denotes the natural logarithm.

    4. By the complement rule: \[S(t) = P(X>t) = 1-P(X\leq t) = 1 - F(t) = e^{-t}\]

  3. Suppose that \(X\) is a continuous RV with PDF \(f(x) = 3x^2\) for \(x \in [0,1]\), zero otherwise. Calculate the median of \(X\).

    To answer this question, we need to derive the quantile function of \(X\). Since \(Q(p)\) is simply the inverse of the CDF, we first need to derive \(F(x_0)\). We have: \[F(x_0) \equiv \int_{-\infty}^{x_0} f(x) \,dx = \int_{0}^{x_0} 3x^2\, dx = x_0^3\] for \(x_0 \in [0,1]\), \(F(x_0) = 0\) for \(x_0 < 0\) and \(F(x_0) = 1\) for \(x_0 > 1\). Hence the quantile function of \(X\) is \(Q(p) = F^{-1}(p) = \sqrt[3]{p}\). To find the median of \(X\), we simply evaluate this at \(p = 0.5\), yielding \(\text{median} = \sqrt[3]{0.5} \approx 0.79\).

  4. Consider a random variable \(X\) which is normally distributed with mean 2 and variance of 9.

    1. What is the distribution of \(Z = -2 + X\)?
    2. What is the distribution of \(Z = X/\sqrt{9}\)?
    3. What is the distribution of \(Z = (-2+X)/\sqrt{9}\)?

    If \(X \sim N(\mu, \sigma^2)\) and \(a, b\) are constants, then \(a + bX \sim N(a + b\mu, b^2\sigma^2)\): adding a constant shifts the mean and leaves the variance unchanged, while multiplying by \(b\) multiplies the mean by \(b\) and the variance by \(b^2\). Here \(\mu = 2\) and \(\sigma^2 = 9\), so \(\sigma = 3\).

    1. \(Z = -2 + X \sim N(0, 9)\).

    2. \(Z = X/3 \sim N(2/3, 9/9) = N(2/3, 1)\).

    3. \(Z = (X - 2)/3 \sim N(0, 1)\). Subtracting the mean and dividing by the standard deviation standardizes \(X\).

  5. If \(X \sim N (\mu=-1, \sigma^2 =2)\) what is

    1. \(P(X = 0)\)?
    2. \(P(X \leq -1)\)?
    3. \(P(-1 \leq X \leq 1)\)?
    4. the value of \(t\) such that \(P(X \leq t) = 0.25\)
    5. the value of \(t\) such that \(P(X > t) = 0.80\)
    6. the values of \(t_0\) and \(t_1\) (symmetric around the mean) such that \(P(t_0 \leq X \leq t_1) = 0.9\)

    Throughout, let \(Z = (X + 1)/\sqrt{2} \sim N(0,1)\), so that \(X = -1 + \sqrt{2}\,Z\), and note that \(\sqrt{2} \approx 1.414\).

    1. \(P(X = 0) = 0\), since \(X\) is continuous.

    2. \(-1\) is the mean of \(X\) and the Normal distribution is symmetric about its mean, so \(P(X \leq -1) = 0.5\).

    3. \(P(-1 \leq X \leq 1) = P\left(0 \leq Z \leq 2/\sqrt{2}\right) = P(0 \leq Z \leq 1.414) = \Phi(1.414) - 0.5 \approx 0.921 - 0.5 = 0.421\).

    4. From the tables, \(P(Z \leq -0.674) = 0.25\), so \(t = -1 + \sqrt{2} \times (-0.674) \approx -1.95\).

    5. \(P(X > t) = 0.80\) means \(P(X \leq t) = 0.20\). From the tables, \(P(Z \leq -0.842) = 0.20\), so \(t = -1 + \sqrt{2} \times (-0.842) \approx -2.19\).

    6. \(P(-1.645 \leq Z \leq 1.645) = 0.9\), so \(t_0 = -1 - 1.645\sqrt{2} \approx -3.33\) and \(t_1 = -1 + 1.645\sqrt{2} \approx 1.33\).

  6. Suppose that students’ marks on the economics prelims paper are normally distributed with mean 61 and standard deviation 9.5.

    1. What is the probability that a student scores (i) less than 50? (ii) 70 or more?
    2. What score is exceeded by only 10% of students?
    3. Find the median, and the upper and lower quartiles.
    4. What proportion of students have scores within 5 marks of the mean?

    Let \(X\) be a student’s mark, so \(X \sim N(61, 9.5^2)\), and let \(Z = (X - 61)/9.5 \sim N(0,1)\).

      1. \(P(X < 50) = P\left(Z < (50 - 61)/9.5\right) = P(Z < -1.158) \approx 0.123\). (ii) \(P(X \geq 70) = P\left(Z \geq (70 - 61)/9.5\right) = P(Z \geq 0.947) \approx 1 - 0.828 = 0.172\).
    1. We need the 90th percentile. From the tables, \(P(Z \leq 1.282) = 0.90\), so the score is \(61 + 1.282 \times 9.5 \approx 73.2\).

    2. The Normal distribution is symmetric about its mean, so the median is 61. From the tables, \(P(Z \leq 0.674) = 0.75\), so the quartiles are \(61 \pm 0.674 \times 9.5\). The lower quartile is about 54.6 and the upper quartile is about 67.4.

    3. \(P(56 \leq X \leq 66) = P(-5/9.5 \leq Z \leq 5/9.5) = P(-0.526 \leq Z \leq 0.526) = 2\Phi(0.526) - 1 \approx 2 \times 0.701 - 1 = 0.40\).

  7. From my HT 2024 probability collection.

    Let \(X\) and \(Y\) be independent random variables with \(X \in \left\{ -1, 1 \right\}\) and \(p_X(1) = 0.5\) while \(Y \in \left\{0, 1 \right\}\) and \(p_Y(1) = 0.8\). Write out the joint pmf \(p_{XY}\) of \((X,Y)\) in tabular form, with \(X\) in the rows of the table and \(Y\) in the columns.

    Because \(X\) and \(Y\) are independent, their joint pmf equals the product of their marginal pmfs: \(p_{XY}(x,y) = p_X(x) p_Y(y)\) so we have:

    \(Y = 0\) \(Y = 1\)
    \(X = -1\) 0.1 0.4
    \(X = 1\) 0.1 0.4
  8. Let \(Z \sim\) Bernoulli\((1/2)\) and construct a second random variable, \(X\), as follows: if \(Z\) takes on the value one then \(X \sim \text{Bernoulli}(2/3)\); otherwise \(X \sim \text{Bernoulli}(1/4)\).

    1. What is the support set of \(X\)?
    2. What is the conditional pmf of \(X\) given that \(Z = 0\)?
    3. What is the conditional pmf of \(X\) given that \(Z = 1\)?
    4. Write out the joint pmf of \(X\) and \(Z\) in a table.
    1. \(\{0,1\}\)

    2. Bernoulli(1/4), i.e. \(p_{X|Z}(0|0) = 3/4, \; p_{X|Z}(1|0) = 1/4\).

    3. Bernoulli(2/3), i.e. \(p_{X|Z}(0|1) = 1/3, \; p_{X|Z}(1|1) = 2/3\).

    4. The probability calculations for the table are as follows: \[\begin{aligned} P(X = 0, Z = 0) &= P(X=0|Z=0)P(Z=0)= 3/4\times 1/2 = 3/8\\ P(X = 0, Z = 1) &= P(X=0|Z=1)P(Z=1)= 1/3\times 1/2 = 1/6\\ P(X = 1, Z = 0) &= P(X=1|Z=0)P(Z=0)= 1/4 \times 1/2 = 1/8 \\ P(X = 1, Z = 1) &= P(X=1|Z=1)P(Z=1)= 2/3\times 1/2 = 1/3 \end{aligned}\]

    \(Z = 0\) \(Z = 1\)
    \(X = 0\) 3/8 1/6
    \(X = 1\) 1/8 1/3
  9. Let \(X\) be a Binomial\((2,1/3)\) random variable (RV). Define the RV \(Y\) as follows. Given that \(X=0\), \(Y\) can only take on the values \(-1,0\) or \(1\), each with probability 1/3. Given that \(X=1\), \(Y\) can only take on the values \(0,1\) or \(2\) each with probability 1/3. Finally given that \(X=2\), \(Y\) can only take on the values \(1,2\) or \(3\), each with probability \(1/3\).

    1. Write down the marginal pmf of \(X\). Be sure to specify the support set.
    2. Write out the joint pmf of \(X,Y\) in a table. Please put the values of \(X\) in the rows of your table.
    3. Calculate the marginal pmf of \(Y\). Make sure to specify its support set.
    1. \(p_X(x) = {2\choose x}\left( 1/3 \right)^x(2/3)^{2-x}\) with support set \(\left\{ 0, 1, 2 \right\}\)

    2. We are given the marginal distribution of \(X\) and the conditional distribution of \(Y\) given \(X\). By the multiplication rule, \(p_{XY}(x,y)= p_{Y|X}(y|x)p_X(x)\). From the problem statement, we know that the only possible values \(Y\) can take on given that \(X=x\) are \(\left\{ x-1, x, x+1 \right\}\) and that these each occur with probability \(1/3\). Using the result of the preceding part, we calculate the marginal probabilities for \(X\) as follows: \[p_X(0) = 4/9, \quad p_X(1) = 4/9, \quad p_X(2) = 1/9\] Thus, we find that:

    \(Y = -1\) \(Y = 0\) \(Y = 1\) \(Y = 2\) \(Y = 3\)
    \(X = 0\) 4/27 4/27 4/27 0 0
    \(X = 1\) 0 4/27 4/27 4/27 0
    \(X = 2\) 0 0 1/27 1/27 1/27
    1. The support is \(\left\{-1, 0, 1, 2, 3 \right\}\) and \(p_Y(-1) = 4/27\), \(p_Y(0)= 8/27\), \(p_Y(1) = 9/27\), \(p_Y(2) = 5/27\), and \(p_Y(3) = 1/27\).

Try each problem before revealing its solution. Each problem has its solution in a collapsed box directly beneath it. Problems 3 and 7–9 come from a previous year’s demonstration lecture. The others come from exams that I wrote for Econ 103 at the University of Pennsylvania and from the probability collections that I set for my Oxford students in previous years.

  1. Let \(X\) be a continuous random variable with support \([1,c]\) and pdf \(f(x) = 1/x\).

    1. What is the value of the constant \(c\)?
    2. Calculate the CDF of \(X\).
    3. Calculate \(E[X]\).
    4. Calculate \(E[X^2]\).
    1. \[\int_1^c \frac{dx}{x} = \left.\log(x)\right|_1^c = \log(c) - \log(1) = \log(c)\] Since a pdf must integrate to one, we have \(1 = \log(c)\). Exponentiating, \(c = e\).

    2. \[F(x_0) = \int_{-\infty}^{x_0} f(x)\; dx = \int_1^{x_0} \frac{dx}{x} = \left. \log(x) \right|_1^{x_0} = \log(x_0) - \log(1) = \log(x_0)\]

    3. \[E[X] = \int_1^e x\frac{dx}{x}= \int_1^e dx = \left. x\right|_1^e = e - 1\]

    4. \[E[X^2] = \int_1^e x^2\frac{dx}{x}= \int_1^e x \; dx = \left. \frac{x^2}{2}\right|_1^e = \frac{e^2 - 1}{2}\]

  2. From my HT 2024 probability collection.

    I flip 20 fair coins, and discard any that come up heads. I then flip the remaining coins a second time and count up the number of tails \(T\) that I obtain. Use the linearity of expectation to calculate \(\mathbb{E}(T)\).

    Let \(X_i = 1\) if the \(i\)th coin comes up tails on both its first and second toss, zero otherwise. Then \(T = \sum_{i=1}^{20} X_i\) and \(\mathbb{E}[T] = \sum_{i=1}^{20} \mathbb{E}[X_i]\) by linearity. Since each of the coins is fair, \(\mathbb{E}[X_i]=\mathbb{E}[X_1]\) for all \(i\). Thus \(\mathbb{E}[T] = 20 \mathbb{E}[X_1]\). Finally, since \[\begin{aligned} \mathbb{E}[X_1] &= 0 \times [1 - \mathbb{P}(\text{Tails, Tails})] + 1 \times \mathbb{P}(\text{Tails, Tails})\\ &= \mathbb{P}(\text{Tails, Tails}) \\ &= 1/2 \times 1/2 = 1/4 \end{aligned}\] we obtain \(\mathbb{E}[T] = 20/4 = 5\).

  3. Let \(X\) and \(Y\) be random variables and \(a,b,c\) be constants. Use the linearity of expectation to derive the following results:

    1. \(\text{Cov}(X,Y) = \mathbb{E}(XY) - \mathbb{E}(X)\mathbb{E}(Y)\)
    2. \(\text{Var}(a + bX + cY) = b^2 \text{Var}(X) + c^2 \text{Var}(Y) + 2bc \text{Cov}(X,Y)\)

    Write \(\mu_X = \mathbb{E}(X)\) and \(\mu_Y = \mathbb{E}(Y)\). These are constants.

    1. By definition, \(\text{Cov}(X,Y) = \mathbb{E}[(X - \mu_X)(Y - \mu_Y)]\). Multiplying out the product and using the linearity of expectation, \[\begin{aligned} \text{Cov}(X,Y) &= \mathbb{E}[XY - \mu_Y X - \mu_X Y + \mu_X \mu_Y]\\ &= \mathbb{E}(XY) - \mu_Y \mathbb{E}(X) - \mu_X \mathbb{E}(Y) + \mu_X \mu_Y\\ &= \mathbb{E}(XY) - \mu_X \mu_Y - \mu_X \mu_Y + \mu_X \mu_Y = \mathbb{E}(XY) - \mathbb{E}(X)\mathbb{E}(Y). \end{aligned}\]

    2. Let \(W = a + bX + cY\). By linearity, \(\mathbb{E}(W) = a + b\mu_X + c\mu_Y\), so \(W - \mathbb{E}(W) = b(X - \mu_X) + c(Y - \mu_Y)\). The constant \(a\) drops out. Hence \[\begin{aligned} \text{Var}(W) &= \mathbb{E}\left\{[b(X - \mu_X) + c(Y - \mu_Y)]^2\right\}\\ &= \mathbb{E}\left[b^2(X - \mu_X)^2 + c^2(Y - \mu_Y)^2 + 2bc(X - \mu_X)(Y - \mu_Y)\right]\\ &= b^2\,\mathbb{E}[(X - \mu_X)^2] + c^2\,\mathbb{E}[(Y - \mu_Y)^2] + 2bc\,\mathbb{E}[(X - \mu_X)(Y - \mu_Y)]\\ &= b^2 \text{Var}(X) + c^2 \text{Var}(Y) + 2bc \text{Cov}(X,Y). \end{aligned}\]

  4. Dr. Evil teaches Reverse Psychology at Minion State University. Grades in his course are based solely on a midterm and final exam but students are allowed to choose their own weights at the start of the semester. The only restrictions are that you cannot give an exam negative weight, and your weights must sum to one. You are allowed to give an exam zero weight. By testing both exams on a very large number of students, Dr. Evil has determined that the population mean score on the midterm is 75 points out of 100 with a standard deviation of 10 points. In contrast, the population mean score on his final is 85 points out of 100 with a standard deviation of 15 points. Scores on the midterm and final are not independent: the population correlation equals 0.5.

    1. Let \(w\) be the weight you elect to place on the midterm, and let \((X,Y,Z)\) be three RVs representing your grades: \(X\) is your midterm exam score, \(Y\) your final exam score, and \(Z\) your overall course grade. Express \(Z\) as a function of \(X,Y\) and \(w\).
    2. Express the expected value of your course grade as a function of \(w\). Simplify your result: you’ll need this expression below.
    3. Suppose you wanted to maximize your expected grade in Dr. Evil’s course using the population information given above. What weights should you choose?
    4. Calculate the covariance between scores on Dr. Evil’s midterm and final exams.
    5. Express the variance of your course grade as a function of \(w\). Simplify your result: you’ll need this expression below.
    6. Suppose you wanted to minimize the variance of your grade in Dr. Evil’s course using the population information given above. What weights should you choose? You do not need to check the second order condition.
    1. \(Z = wX + (1-w)Y\)

    2. By the Linearity of Expectation, \[E[Z] = w E[X] + (1-w)E[Y] = 75w + 85(1-w) = 85 - 10w\]

    3. To maximize the function from the preceding part we need to make \(w\) as small as possible. Since you cannot give an exam negative weight, you should set \(w=0\) which corresponds to giving 100% of the weight to the final.

    4. \(Cov(X,Y) = SD(X) \times SD(Y) \times Corr(X,Y) = 10 \times 15 \times 0.5 = 75\)

    5. \[\begin{aligned} Var(Z) &= w^2 Var(X) + (1-w)^2 Var(Y) + 2w(1-w)Cov(X,Y)\\ &= 100 w^2 + 225 (1-2w+w^2) + 150(w - w^2)\\ &= 225 - 300w + 175 w^2 \end{aligned}\]

    6. Differentiating the solution from the previous part with respect to \(w\) yields the first order condition \(350w - 300 =0\). Solving, \(w^* = 6/7 \approx 0.86\).

  5. Suppose that \(X\) is a random variable with support \(\{1,2\}\) and \(Y\) is a random variable with support \(\{0,1\}\) where \(X\) and \(Y\) have the following joint pmf: \[p_{XY}(1,0) = 0.4, \quad p_{XY}(1,1) = 0.3, \quad p_{XY}(2,0) = 0.3, \quad p_{XY}(2,1) = 0\]

    1. Express the joint probability mass function (pmf) in a \(2\times 2\) table.
    2. Using the table, calculate the marginal pmfs of \(X\) and \(Y\).
    3. Calculate the conditional pmfs of \(Y|X=1\) and \(Y|X=2\).
    4. Calculate \(E[Y|X=1]\) and \(E[Y|X=2]\).
    5. Calculate the covariance between \(X\) and \(Y\).
    6. Are \(X\) and \(Y\) independent? Explain briefly.
    \(Y = 0\) \(Y = 1\)
    \(X = 1\) 0.4 0.3
    \(X = 2\) 0.3 0
    1. \[\begin{aligned} p_X(1) &= p_{XY}(1,0) + p_{XY}(1,1)= 0.7\\ p_X(2) &= p_{XY}(2,0) + p_{XY}(2,1)= 0.3\\ p_Y(0) &= p_{XY}(1,0) + p_{XY}(2,0) = 0.7\\ p_Y(1) &= p_{XY}(1,1) + p_{XY}(2,1) = 0.3 \end{aligned}\]

    2. The distribution of \(Y|X = 1\) is \[P(Y = 0|X = 1) = \frac{p_{XY}(1,0)}{p_X(1)} = 4/7, \quad P(Y = 1|X= 1) = \frac{p_{XY}(1,1)}{p_X(1)} = 3/7\] while the distribution of \(Y|X = 2\) is \[P(Y = 0|X = 2) = \frac{p_{XY}(2,0)}{p_X(2)} = 1, \quad P(Y = 1|X= 2) = \frac{p_{XY}(2,1)}{p_X(2)} = 0\]

    3. \[\begin{aligned} E[Y | X =1 ] &= 0 \times 4/7 + 1 \times 3/7 = 3/7 \\ E[Y | X =2 ] &= 0 \end{aligned}\]

    4. First, from the marginal distributions we calculate \(E[Y]= 3/10\) and \(E[X] =1 \times 7/10 + 2 \times 3/10 =13/10\). Hence \(E[X]E[Y] = 0.39\). Second, \[E[XY] = (0\times 1)\times 0.4 + (0\times 2)\times 0.3+ (1\times 1) \times 0.3 + (1\times 2) \times 0 = 0.3\] Finally \(Cov(X,Y) = E[XY] - E[X]E[Y] = 0.3 - 0.39 = -0.09\)

    5. No: non-zero covariance implies dependence. Another way to see this is simply to notice that \(X\) clearly gives us information about \(Y\) because \(X = 2\) rules out \(Y=1\).

  6. From my HT 2023 probability collection.

    Let \(X_1 \sim \text{Bernoulli}(1/2)\) independently of \(X_2 \sim \text{Bernoulli}(2/3)\) and define \(Y = 2X_1\) and \(Z = X_2 - X_1\).

    1. Express the joint pmf of \(Y\) and \(Z\) in tabular form. Please put the realizations of \(Y\) in the rows of the table and realizations of \(Z\) in the columns.
    2. What is the marginal pmf of \(Y\)?
    3. What is the marginal pmf of \(Z\)?
    4. Calculate the covariance between \(Y\) and \(Z\). Are \(Y\) and \(Z\) independent?
    \(Z = -1\) \(Z = 0\) \(Z = 1\)
    \(Y = 0\) 0 1/6 1/3
    \(Y = 2\) 1/6 1/3 0
    • \(p_{YZ}(0,-1) = 0\) since \(Y=0\) implies \(X_1 = 0\) so \(Z\) is at least \(0\).
    • \(p_{YZ}(0,0) = 1/2 \times 1/3 = 1/6\) since this corresponds to \(X_1 = X_2 = 0\).
    • \(p_{YZ}(0,1) = 1/2 \times 2/3 = 1/3\) since this corresponds to \(X_1 = 0, X_2 = 1\).
    • \(p_{YZ}(2,-1)= 1/2\times 1/3 = 1/6\) since this corresponds to \(X_1 = 1, X_2 = 0\).
    • \(p_{YZ}(2,0) = 1/2 \times 2/3 = 1/3\) since this corresponds to \(X_1 = X_2 = 1\).
    • \(p_{YZ}(2,1) = 0\) since \(Y=2\) implies \(X_1 = 1\) so \(Z\) is at most \(0\).
    1. Since \(X_1\) is a Bernoulli\((1/2)\) random variable and \(Y = 2X_1\), the support of \(Y\) is \(\{0,2\}\), \(p_Y(0) = 1/2\) and \(p_Y(2) = 1/2\). This agrees with the values we obtain by summing over the rows of the table in the previous part.

    2. The support of \(Z\) is \(\{-1,0,1\}\). Summing over the columns of the table we find that \(p_Z(-1) = 1/6\), \(p_Z(0) = 1/2\) and \(p_Z(1) = 1/3\).

    3. We proceed via the shortcut formula: \[\text{Cov}(Y,Z) = \mathbb{E}[YZ] - \mathbb{E}[Y]\mathbb{E}[Z]\] From the marginal pmfs, \[\begin{aligned} \mathbb{E}[Y] &= 0 \times 1/2 + 2 \times 1/2 = 1\\ \mathbb{E}[Z] &= -1 \times 1/6 + 0 \times 1/2 + 1 \times 1/3 = 1/6 \end{aligned}\] Calculating \(\mathbb{E}[YZ]\) is easy since there is only one non-zero term in the sum: \(2\times -1 \times 1/6 = -1/3\). Thus, we have \[\text{Cov}(Y,Z) = -1/3 - 1/6\times 1 = -1/2.\] Because they have a nonzero covariance, \(Y\) and \(Z\) cannot be independent.

  7. Let \(X\) be a random variable and \(a, b\) be constants. Suppose that \(Y = a + b X\). Calculate the correlation between \(X\) and \(Y\) in each of the following cases:

    1. \(b > 0\)
    2. \(b < 0\)
    3. \(b = 0\)

    Assume that \(\text{Var}(X) > 0\), since otherwise no correlation involving \(X\) is defined. Adding the constant \(a\) changes neither variances nor covariances, so \(\text{Var}(Y) = b^2\,\text{Var}(X)\) and \(\text{Cov}(X,Y) = \text{Cov}(X, bX) = b\,\text{Var}(X)\). Hence, whenever \(b \neq 0\), \[\text{Corr}(X,Y) = \frac{\text{Cov}(X,Y)}{\sqrt{\text{Var}(X)\text{Var}(Y)}} = \frac{b\,\text{Var}(X)}{\sqrt{b^2}\,\text{Var}(X)} = \frac{b}{|b|}.\]

    1. If \(b > 0\), then \(\text{Corr}(X,Y) = 1\).

    2. If \(b < 0\), then \(\text{Corr}(X,Y) = -1\).

    3. If \(b = 0\), then \(Y = a\) is a constant, so \(\text{Var}(Y) = 0\) and \(\text{Cov}(X,Y) = 0\). The correlation is \(0/0\), which is undefined: a constant does not vary, so it cannot vary together with \(X\).

  8. Let \(X\) and \(U\) be random variables and \(a, b\) be constants. Suppose that \(Y = a + b X + U\) where \(\mathbb{E}(U) = 0\) and \(\text{Cov}(X, U) = 0\).

    1. Calculate \(\mathbb{E}(Y)\).
    2. Calculate \(\text{Var}(Y)\).
    3. Show that \(\text{Cov}(X, Y) = b \text{Var}(X)\)
    4. Show that \(\text{Corr}(X,Y) = b \sqrt{\frac{\text{Var}(X)}{b^2 \text{Var}(X) + \text{Var}(U)}}\).
    1. By linearity, \(\mathbb{E}(Y) = a + b\,\mathbb{E}(X) + \mathbb{E}(U) = a + b\,\mathbb{E}(X)\).

    2. By Problem 3(b) with \(c = 1\) and \(U\) in place of \(Y\), \(\text{Var}(Y) = b^2\,\text{Var}(X) + \text{Var}(U) + 2b\,\text{Cov}(X,U) = b^2\,\text{Var}(X) + \text{Var}(U)\).

    3. Covariance is linear in each argument, and the covariance of anything with a constant is zero, so \[\text{Cov}(X,Y) = \text{Cov}(X, a) + b\,\text{Cov}(X,X) + \text{Cov}(X,U) = 0 + b\,\text{Var}(X) + 0 = b\,\text{Var}(X).\]

    4. Combining parts (b) and (c), \[\text{Corr}(X,Y) = \frac{\text{Cov}(X,Y)}{\sqrt{\text{Var}(X)\text{Var}(Y)}} = \frac{b\,\text{Var}(X)}{\sqrt{\text{Var}(X)}\sqrt{b^2\,\text{Var}(X) + \text{Var}(U)}} = b\sqrt{\frac{\text{Var}(X)}{b^2 \text{Var}(X) + \text{Var}(U)}}.\]

  9. Let \(X\) be a \(\text{Bernoulli}(p)\) random variable, i.e. \(X \in \{0, 1\}\) with \(\mathbb{P}(X=1) = p\). Show that, for any other random variable \(Y\) such that the relevant expectations exist and are finite \[ \frac{\text{Cov}(X,Y)}{\text{Var}(X)} = \mathbb{E}(Y|X=1) - \mathbb{E}(Y|X=0). \]

    Assume \(0 < p < 1\), so that \(\text{Var}(X) = p(1-p) > 0\) and both conditional expectations are defined. Write \(\mu_1 = \mathbb{E}(Y|X=1)\) and \(\mu_0 = \mathbb{E}(Y|X=0)\).

    By the Law of Iterated Expectations, \(\mathbb{E}(Y) = p\mu_1 + (1-p)\mu_0\). Likewise, \(\mathbb{E}(XY) = p\,\mathbb{E}(XY|X=1) + (1-p)\,\mathbb{E}(XY|X=0) = p\,\mathbb{E}(Y|X=1) + 0 = p\mu_1\), since \(XY = Y\) when \(X = 1\) and \(XY = 0\) when \(X = 0\). Using \(\mathbb{E}(X) = p\), \[\begin{aligned} \text{Cov}(X,Y) &= \mathbb{E}(XY) - \mathbb{E}(X)\mathbb{E}(Y) = p\mu_1 - p\left[p\mu_1 + (1-p)\mu_0\right]\\ &= p(1-p)\mu_1 - p(1-p)\mu_0 = p(1-p)(\mu_1 - \mu_0). \end{aligned}\] Dividing by \(\text{Var}(X) = p(1-p)\) gives the result.

  10. From my HT 2024 probability collection.

    Let \(X\) and \(Y\) be random variables such that \(\mathbb{E}[Y] \neq 0\). Show that, provided that all of the relevant expectations exist and are finite, \[\frac{\mathbb{E}[X]}{\mathbb{E}[Y]} - \mathbb{E}\left[ \frac{X}{Y}\right] = \frac{\text{Cov}(X/Y,\, Y)}{\mathbb{E}[Y]}.\]

    By the “shortcut rule” for covariance \[\begin{aligned} \text{Cov}(X/Y, Y) &= \mathbb{E}\left[ \frac{X}{Y} \cdot Y \right] - \mathbb{E}\left[ \frac{X}{Y} \right]\mathbb{E}\left[ Y \right]\\ &= \mathbb{E}\left[ X \right] - \mathbb{E}\left[ \frac{X}{Y} \right]\mathbb{E}\left[ Y \right]. \end{aligned}\] Dividing both sides by \(\mathbb{E}\left[ Y \right]\) gives the desired result.

  1. Define the terms “estimand”, “estimator”, and “estimate” using the median as an example.
  2. Let \(X_1, X_2, \dots, X_N \sim \text{iid}\) with mean \(\mu\) and variance \(\sigma^2\) and let \(\bar{X}_N \equiv \frac{1}{N} \sum_{i=1}^N X_i\).
    1. Is \(\bar{X}_N\) an unbiased estimator of \(\mu\)?
    2. Is \((0.1 X_1 + 0.9 X_2)\) an unbiased estimator of \(\mu\)? Why or why not?
    3. Which is a more efficient estimator of \(\mu\): \((0.1 X_1 + 0.9 X_2)\) or \((0.5 X_1 + 0.5 X_2)\)? Explain.
    4. Suppose that \(\mu\) is known. Is \(\widehat{\sigma}^2 \equiv \frac{1}{N-1}\sum_{i=1}^N (X_i - \mu)^2\) an unbiased estimator of \(\sigma^2\)? Explain.
  3. Consider a fictional university, Camford University, which is composed of a large number of colleges. Each college has the same number of first-year economics students. Suppose that students’ marks on the economics prelims paper are normally distributed with mean 61 and standard deviation 9.5.
    1. What is the distribution of the sample mean in a random sample of size \(N\)?
    2. In a random sample of 10 students, what is the probability that their average mark exceeds 63?
    3. Suppose that you have a sample of 10 students that is selected by choosing a college at random, and then choosing 10 students at random from the college. What can you say about the expected value and variance of their average mark? Explain.
  1. In a random sample of 1165 Oxford PPE applicants, the average score on the TSA test was 60.86, with a standard deviation of 8.02. Construct a 95% confidence interval for the population mean score.
  2. Suppose you are studying the impact of COVID-19 on the labor market. In a random sample of 1000 workers, you find that 354 had been “furloughed” in July 2020. Construct a 90% confidence interval for the population mean furlough rate.
  3. Suppose that we observe hourly wages for a random sample of 150 university graduates: the sample mean is £31 with a standard deviation of £15. In contrast, the sample mean wage is £17 with a standard deviation of £10 for a sample of 225 non-university graduates. Construct an approximate 95% confidence interval for the difference in population mean wages \((\mu_X - \mu_Y)\) between university graduates (X) and non-university graduates (Y).
  4. You are interested in whether the average rent for a room in Oxford is £500 per month. In a random sample of 300 rooms to rent in Oxford, the average rent is £525 per month with a standard deviation of £200. Test the hypothesis that the average Oxford room rent per month is £500.
  5. Suppose you have a large random sample \(X_1, \ldots, X_n \sim \text{iid} \, N(\mu, \sigma^2)\), and you test \(H_0: \mu = \mu_0\) vs. \(H_1: \mu \neq \mu_0\) where \(\mu_0\) is some hypothesized value of \(\mu\). You decide to set a significance level, \(\alpha\), at which to conduct the hypothesis test.
    1. Say you choose \(\alpha = 0.05\) and reject. Would you still have rejected if you had instead chosen \(\alpha = 0.1\)? Explain.
    2. Say you choose \(\alpha = 0.01\) and fail to reject. Would you have failed to reject if you had instead chosen \(\alpha = 0.05\)? Explain.
  6. A random sample of 35 Netflix users are asked to rate two shows: The Queen’s Gambit and Bridgerton. You can access the dataset as a .csv file from this url. Use the data to test the null hypothesis that both shows are equally highly rated.
  7. You are interested in whether the Oxford unemployment rate is the same as the national unemployment rate (5%). In a random sample of 1,000 Oxford residents, you find that 63 are unemployed. Test the hypothesis that the Oxford unemployment rate is the same as the national rate.
  8. Consider two groups A and B composed of 100 people who are suffering from a disease. A drug is given to group A. A placebo is given to group B. It is found that in group A 75 people recover whereas in group B only 65 people recover.
    1. Test the hypothesis that the drug helped cure the disease.
    2. Now suppose that each group contains 300 people, of whom 225 recover in group A and 195 recover in group B. What do you conclude?
  1. At this url you can find a plot illustrating the change in global surface temperatures over time, relative to the 1951-1980 average. With reference to the plot, discuss the key differences between time series and cross-sectional data.
  2. If \(X_t\) is white noise with mean \(\mu\) and variance \(\sigma^2\), what process does its first difference (\(\Delta X_t = X_t - X_{t-1}\)) follow? What is the mean, variance, first order autocovariance, and second order autocovariance of the process?
  3. Consider the following time series process: \[X_t = \epsilon_t + 0.5\epsilon_{t-1} + 0.5\epsilon_{t-2}\] where \(\epsilon_t\) is identically and independently distributed with \(\epsilon_t \sim N(0, \sigma^2)\).
    1. What is the mean and variance of \(X_t\)?
    2. What are the first, second, and third order autocovariances?
  4. Let \(\epsilon_t\) be identically and independently distributed with \(\epsilon_t \sim N(0, \sigma^2)\). Consider the following time series process: \[X_t = \alpha + \beta X_{t-1} + \epsilon_t\]
    1. What is the name commonly given to this type of process? What if \(\alpha = 0\) and \(\beta = 1\)? What if \(\alpha = 0\) and \(\beta = 0\)?
    2. By recursing back one period, show that: \[X_t = \alpha + \beta \alpha + \beta^2 X_{t-2} + \epsilon_t + \beta \epsilon_{t-1}\]
    3. By using the results on sequences covered in Chapter 4 of the Maths Workbook, show that \[ X_t = \frac{1 - \beta^t}{1 - \beta} \alpha + \beta^t X_0 + \sum_{j=0}^{t-1} \beta^j \epsilon_{t-j}\] Suppose \(0 \leq \beta < 1\) and \(X_0\) is a random variable with mean \(\frac{\alpha}{1 - \beta}\) and variance \(\frac{\sigma^2}{1 - \beta^2}\), and is uncorrelated with \(\epsilon_t\) for all \(t > 0\).
    4. Find the mean, variance and autocovariance function of \(X_t\) for any \(t \geq 1\)? Is the process (weakly) stationary?
  5. In studies dating back over 100 years, it’s well established that “regression toward the mean” occurs between the heights of parents and the heights of their adult children. Indicate whether the following statement is true or false: “Parents of tall children will tend to be taller than their children.”
  1. In “Long-Lasting Effects of Socialist Education” by Nicola Fuchs-Schundeln and Paolo Masella the authors study the effects of a socialist education among children educated in the former East Germany (GDR). Socialist teaching was an official school subject in the GDR from 7th grade on and aimed to provide a deep knowledge of Marxism-Leninism, and of the socialist system of the GDR. The authors also suggest that an important feature of this educational system was that “critical thinking was not incentivized and divergent opinions were suppressed”. The authors were interested in the causal effect of exposure to the GDR’s educational system on subsequent labor market outcomes. To study this they exploit the very rapid reorganization of the school system in the East after the fall of the Berlin Wall (November 9, 1989). The socialist elements of the curriculum were dropped almost immediately. The authors used the German Microcensus (2005-08) to look at individuals in date-of-birth cohorts born between 1974 and 1977 in the GDR. These date-of-birth cohorts were still in education at reunification. The outcome variable of interest was whether or not they were employed at the time of the Microcensus (2005-08). The study relies on the following institutional feature: in the GDR, children turning six on or before May 31 of a given year were automatically enrolled in the first grade by September 1 of the same year. Children born on or after June 1 waited another year before starting school. The authors define their control group as consisting of individuals born on or after June 1. The treatment group consisted of individuals born on or before May 31. Treated individuals within each date-of-birth cohort were exposed to a year more of socialist teaching (and one year less of Western education) than individuals in the control group. The authors find that, comparing males in the treatment and control groups, the proportion of males who were employed was 0.021 lower in the treatment than the control group with a standard error of 0.004. Comparing females in the treatment and control groups, the proportion of females who were employed was 0.009 lower in the treatment than the control group with a standard error of 0.019.

    1. Conduct suitable hypothesis tests to determine whether the difference in employment rates between the treatment and control groups for men and women respectively were statistically significant. What do you conclude?
    2. The authors interpret their results (subject to the results of the statistical tests above) as causal effects. Using the potential outcomes framework and the standard notation write down an expression describing this causal effect.
    3. What are the principal assumptions which would justify the authors’ claim that this effect is causal? Why might these assumptions not hold?
    4. Unfortunately the German Microcensus only records the current residence of respondents and not their residence at the time when they were at school. The authors therefore assumed that respondents currently residing in the East also received their education in the East. Why might this not be the case? If this is not the case how would it bias the results of the study?
  2. You are interested in the effect of taking extra online classes (e.g. edX or Khan Academy courses) on whether teenagers apply to university. In a sample of 1000 young adults you observe whether or not they applied to university and whether or not they took at least one online class. You also observe whether they got at least five A*-C grades at GCSE. The tables show the numbers in the sample of the various types of young adult and the proportion who applied to university.

    Numbers of young adults by GCSE grades and whether took at least one online course
    No. Online Courses 0 ≥1
    GCSE Grades < 5 A*-C 150 100
    ≥ 5 A*-C 250 500
    Proportion applying to University
    No. Online Courses 0 ≥1
    GCSE Grades < 5 A*-C 0.3 0.8
    ≥ 5 A*-C 0.3 0.5
    1. Calculate the average difference in university application rates between those who did at least one online course and those who did not.
    2. Does this difference have a causal interpretation? Why or why not?
    3. A friend who has done a statistics course suggests that controlling for GCSE grades might help in this context. What does this mean and why might it help?
    4. Calculate the conditional treatment effects for those with less than 5 A*-C grades at GCSE and for those with at least 5 A*-C at GCSE.
    5. Calculate the Average Treatment Effect and the Average Effect of Treatment on the Treated and compare them to the difference you found in part (a).