Skip to main content

Engineering Probability Class 7 Thu 2022-02-03

1 Exam one

  1. Will be in class on Feb 28.

  2. The test platform will be gradescope.

  3. The questions will mostly be multiple choice and short answer.

  4. Students with accommodations will start at 2 and run late in my lab.

  5. If you're quarantined, tell me, and do it at home.

  6. I cannot possibly block all the ways you might cheat. So I make a reasonable effort, and beyond that have to trust you. That's how it will work after you graduate.

  7. If you submit a design for, say a new airport terminal, your customer may not be able to double check your calculations. They have to assume you did it right. However:

    1. The 2004 Collapse at Airport Charles de Gaulle

    2. https://en.wikipedia.org/wiki/Ponte_Morandi

2 Probability in the real world - enrichment

Oct. 5, 1960: The moon tricks a radar.

Where would YOU make the tradeoff between type I and type II errors?

3 Chapter 3 Discrete Random Variables

  1. This chapter covers Discrete (finite or countably infinite) r.v.. This contrasts to continuous, to be covered later.

  2. Discrete r.v.s we've seen so far:

    1. uniform: M events 0...M-1 with equal probs

    2. bernoulli: events: 0 w.p. q=(1-p) or 1 w.p. p

    3. binomial: # heads in n bernoulli events

    4. geometric: # trials until success, each trial has probability p.

  3. 3.1.1 p107 Expected value of a function of a r.v.

    1. Z=g(X)

    2. E[Z] = E[g(x)] = \(\sum_k g(x_k) p_X(x_k)\)

  4. Example 3.17 p107 square law device

  5. \(E[a g(X)+b h(X)+c] = a E[g(X)] + b E[h(x)] + c\)

  6. Example 3.18 Square law device continued

  7. Example 3.19 Multiplexor discards packets

  8. Compute mean of a binomial distribution.

  9. Compute mean of a geometric distribution.

  10. 3.3.1, page 107: Operations on means: sums, scaling, functions

  11. 3.3.2 page 109 Variance of an r.v.

    1. That means, how wide is its distribution?

    2. Example: compare the performance of stocks vs bonds from year to year. The expected values (means) of the returns may not be so different. (This is debated and depends, e.g., on what period you look at). However, stocks' returns have a much larger variance than bonds.

    3. \(\sigma^2_X = VAR[X] = E[(X-m_X)^2] = \sum (x-m_x)^2 p_X(x)\)

    4. standard deviation \(\sigma_X = \sqrt{VAR[X]}\)

    5. \(VAR[X] = E[X^2] - m_X^2\)

    6. 2nd moment: \(E[X^2]\)

    7. also 3rd, 4th... moments, like a Taylor series for probability

    8. shifting the distribution: VAR[X+c] = VAR[X]

    9. scaling: \(VAR[cX] = c^2 VAR[X]\)

  12. Derive variance for Bernoulli.

  13. Example 3.20 3 coin tosses

    1. general rule for binomial: VAR[X]=npq

    2. Derive it.

    3. Note that it sums since the events are independent.

    4. Note that variance/mean shrinks as n grows.

  14. Geometric distribution: review mean and variance.

  15. Suppose that you have just sold your internet startup for $10M. You have retired and now you are trying to climb Mt Everest. You intend to keep trying until you make it. Assume that:

    1. Each attempt has a 1/3 chance of success.

    2. The attempts are independent; failure on one does not affect future attempts.

    3. Each attempt costs $70K.

    Review: What is your expected cost of a successful climb?

    1. $70K.

    2. $140K.

    3. $210K.

    4. $280K.

    5. $700K.

  16. 3.4 page 111 Conditional pmf

  17. Example 3.24 Residual waiting time

    1. X, time to xmit message, is uniform in 1...L.

    2. If X is over m, what's probability that remaining time is j?

    3. \(p_X(m+j|X>m) = \frac{P[X =m+j]}{P[X>m]} = \frac{1/L}{(L-m)/L} = 1/(L-m)\)

  18. \(p_X(x) = \sum p_X(x|B_i) P[B_i]\)

  19. Example 3.25 p 113 device lifetimes

    1. 2 classes of devices, geometric lifetimes.

    2. Type 1, probability \(\alpha\), parameter r. Type 2 parameter s.

    3. What's pmf of the total set of devices?

  20. Example 3.26, p114.

  21. 3.5 p115 More important discrete r.v

  22. Table 3.1: We haven't seen \(G_X(z)\) yet.

  23. 3.5.1 p 117 The Bernoulli Random Variable

    We'll do mean and variance.

  24. Example 3.28 p119 Variance of a Binomial Random Variable

  25. Example 3.29 Redundant Systems

  26. 3.5.3 p119 The Geometric Random Variable

    It models the time between two consecutive occurrences in a sequence of independent random events. E.g., the length of a run of white bits in a scanned image (if the bits are independent).

  27. 3.5.4 Poisson r.v.

    1. The experiment is observing how many of a large number of rare events happen in, say, 1 minute.

    2. E.g., how many cosmic particles hit your DRAM, how many people call to call center.

    3. The individual events are independent. (In the real world this might be false. If a black hole occurs, you're going to get a lot of cosmic particles. If the ATM network crashes, there will be a lot of calls.)

    4. The r.v. is the number that happen in that period.

    5. There is one parameter, \(\alpha\). Often this is called \(\lambda\).

      \begin{equation*} p(k) = \frac{\alpha^k}{k!}e^{-\alpha} \end{equation*}
    6. Mean and std dev are both \(\alpha\).

    7. In the real world, events might be dependent.

  28. Example 3.32 p123 Errors in Optical Transmission

  29. 3.5.5 p124 The Uniform Random Variable

4 Xkcd comic

Seashell