Sample ECE 203 questions
  1. Sample Spaces and Counting · Problem · 4 marks

    A five-card hand is dealt from a well-shuffled standard 5252-card deck, so all (525)=2 598 960\binom{52}{5} = 2\,598\,960 hands are equally likely.

    1. How many hands contain exactly two aces? [1]

    2. Find the probability that a hand contains exactly two aces, to four decimal places. [1]

    3. Find the probability that a hand contains at least one ace, using a complement. [2]

    Show solution

    (a) Choose the two aces from the four aces and the other three cards from the 4848 non-aces: (42)(483)=6⋅17 296=103 776\binom{4}{2}\binom{48}{3} = 6 \cdot 17\,296 = 103\,776 hands.

    (b) 103 7762 598 960≈0.0399\dfrac{103\,776}{2\,598\,960} \approx 0.0399.

    (c) The complement of “at least one ace” is “no ace”, and (485)=1 712 304\binom{48}{5} = 1\,712\,304 hands have no ace. Hence P(at least one ace)=1−1 712 3042 598 960≈1−0.6588=0.3412P(\text{at least one ace}) = 1 - \dfrac{1\,712\,304}{2\,598\,960} \approx 1 - 0.6588 = 0.3412.

  2. Conditional Probability, Bayes and Independence · Short answer · 2 marks

    A message is split into 55 packets. Each packet is lost independently with probability 0.10.1. Given that at least one packet is lost, find the probability that exactly one packet is lost. Give an exact expression and a decimal to four places.

    Show solution

    Let XX be the number of lost packets, so X∼Binomial(5,0.1)X \sim \text{Binomial}(5, 0.1). Then P(X=1∣X≥1)=P(X=1)P(X≥1)=5(0.1)(0.9)41−0.95=0.328050.40951≈0.8011P(X = 1 \mid X \ge 1) = \dfrac{P(X = 1)}{P(X \ge 1)} = \dfrac{5(0.1)(0.9)^4}{1 - 0.9^5} = \dfrac{0.32805}{0.40951} \approx 0.8011.

  3. Discrete Random Variables · Multiple choice · 1 mark

    A printer produces 200 labels, each independently misprinted with probability 0.010.01. Let XX be the number of misprinted labels. A Poisson approximation to P(X=2)P(X = 2) is

    1. 4e−24e^{-2}

    2. 2e−22e^{-2}

    3. 5e−25e^{-2}

    4. 1−3e−21 - 3e^{-2}

    Show solution

    Answer: (B)

    X∼Binomial(200,0.01)X \sim \text{Binomial}(200, 0.01) with nn large and pp small, so XX is approximately Poisson(λ)\text{Poisson}(\lambda) with λ=np=2\lambda = np = 2, and P(X=2)≈e−222/2!=2e−2≈0.2707P(X = 2) \approx e^{-2}2^2/2! = 2e^{-2} \approx 0.2707. The expression 4e−24e^{-2} forgets to divide by 2!2!, 5e−25e^{-2} is the approximation to P(X≤2)P(X \le 2), and 1−3e−21 - 3e^{-2} is the approximation to P(X≥2)P(X \ge 2).

  4. Continuous Random Variables · Problem · 5 marks

    File sizes on a server, measured in multiples of the 11 MB minimum size, have pdf f(x)=2x3f(x) = \dfrac{2}{x^3} for x≥1x \ge 1 and f(x)=0f(x) = 0 for x<1x < 1.

    1. Find the cdf of XX and P(X>3)P(X > 3). [1]

    2. Find the median file size. [1]

    3. Find E[X]E[X]. [1]

    4. Show that E[X2]E[X^2] is infinite, so Var⁡(X)\operatorname{Var}(X) does not exist. [2]

    Show solution

    (a) For x≥1x \ge 1, F(x)=∫1x2t−3 dt=1−1x2F(x) = \int_1^x 2t^{-3}\,dt = 1 - \dfrac{1}{x^2} (and F(x)=0F(x) = 0 for x<1x < 1). So P(X>3)=19P(X > 3) = \dfrac{1}{9}.

    (b) The median mm solves 1−m−2=121 - m^{-2} = \tfrac12, so m=2≈1.414m = \sqrt2 \approx 1.414.

    (c) E[X]=∫1∞x⋅2x3 dx=∫1∞2x−2 dx=2E[X] = \int_1^\infty x\cdot\tfrac{2}{x^3}\,dx = \int_1^\infty 2x^{-2}\,dx = 2.

    (d) E[X2]=∫1∞x2⋅2x3 dx=∫1∞2x dx=lim⁡b→∞2ln⁡b=∞E[X^2] = \int_1^\infty x^2\cdot\tfrac{2}{x^3}\,dx = \int_1^\infty \tfrac{2}{x}\,dx = \lim_{b\to\infty} 2\ln b = \infty. The mean is finite but the second moment is not, so the variance is undefined (infinite).

  5. Joint Distributions, Covariance and Correlation · Problem · 5 marks

    A fair die is rolled 6 times. Let XX be the number of 1s and YY the number of 6s.

    1. Find P(X=2,Y=1)P(X = 2, Y = 1). [1]

    2. Given X=2X = 2, name the distribution of YY (with parameters) and find P(Y=1∣X=2)P(Y = 1 \mid X = 2) and E[Y∣X=2]E[Y \mid X = 2]. [2]

    3. Find Cov⁡(X,Y)\operatorname{Cov}(X,Y) and ρX,Y\rho_{X,Y}. [2]

    Show solution

    (a) The counts of 1s, 6s and other faces are multinomial with probabilities 16\tfrac16, 16\tfrac16, 46\tfrac46: P(X=2,Y=1)=6!2! 1! 3!(16)2(16)1(46)3=60⋅6466=20243P(X=2, Y=1) = \dfrac{6!}{2!\,1!\,3!}\big(\tfrac16\big)^2\big(\tfrac16\big)^1\big(\tfrac46\big)^3 = 60\cdot\dfrac{64}{6^6} = \dfrac{20}{243}.

    (b) Given X=2X = 2, the other 4 rolls are uniform on the five faces 2,…,62,\dots,6, so each is a 6 with probability 15\tfrac15: Y∣X=2∼Binomial(4,15)Y \mid X = 2 \sim \text{Binomial}(4, \tfrac15). Hence P(Y=1∣X=2)=4⋅15(45)3=256625P(Y=1 \mid X=2) = 4\cdot\tfrac15\big(\tfrac45\big)^3 = \tfrac{256}{625} and E[Y∣X=2]=45E[Y \mid X=2] = \tfrac45.

    (c) Let IiI_i indicate that roll ii is a 1 and JjJ_j that roll jj is a 6. Then E[XY]=∑i≠jE[IiJj]=30⋅136=56E[XY] = \sum_{i \ne j}E[I_iJ_j] = 30\cdot\tfrac1{36} = \tfrac56 (the terms with i=ji = j vanish, since a roll cannot be both), and E[X]E[Y]=1⋅1E[X]E[Y] = 1\cdot 1. So Cov⁡(X,Y)=56−1=−16\operatorname{Cov}(X,Y) = \tfrac56 - 1 = -\tfrac16. With Var⁡(X)=Var⁡(Y)=6⋅16⋅56=56\operatorname{Var}(X) = \operatorname{Var}(Y) = 6\cdot\tfrac16\cdot\tfrac56 = \tfrac56, we get ρX,Y=−1/65/6=−15\rho_{X,Y} = \dfrac{-1/6}{5/6} = -\tfrac15.

About ECE 203 practice exams

ECE 203 practice exams

Probability Theory and Statistics 1 · University of Waterloo (Waterloo, UWaterloo, UW) · also written ECE203

Make a free, printable ECE 203 practice exam: choose the topics, the length and the difficulty above, and get an exam-style PDF with a full answer key. Each paper draws on 360 original questions and skips the ones you have already seen.

Looking for ECE 203 past exams?

Start with the past exams and tests your instructor or the Waterloo library shares: they show what your course actually asks. Most courses only have a few, so once you have worked through them, make fresh ECE 203 practice exams here on the same topics, with full answer keys, as many as you need. The questions here are original, not copies of past exams.

Topics covered

  • Sample Spaces and Counting · 60 questions
  • Conditional Probability, Bayes and Independence · 60 questions
  • Discrete Random Variables · 60 questions
  • Continuous Random Variables · 60 questions
  • Expectation and Variance · 60 questions
  • Joint Distributions, Covariance and Correlation · 60 questions

More Waterloo courses

questionbank.dev is independent and not affiliated with University of Waterloo. Course codes only say which topics a paper covers; papers are original practice material, not past or upcoming exams.