1 / 36

6. Continuous Random Variables I

Learn about different models for delivery time, uniform random variables, cumulative distribution functions, and probability density functions.

Télécharger la présentation

6. Continuous Random Variables I

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 6. Continuous Random Variables I

  2. Delivery time A package is to be delivered between noon and 1pm. What is the expected arrival time?

  3. Discrete model I W = {0, 1, …, 59} equally likely outcomes X: minute when package arrives

  4. Discrete model II W = {0, , , …, 1, 1 , …, 59 } equally likely outcomes X: minute when package arrives 59 1 2 1 60 60 60 60

  5. Continuous model W = the (continuous) interval[0, 60) equally likely outcomes X: minute when package arrives

  6. Uncountable sample spaces In Lecture 2 we said: “The probability of an event is the sum of the probabilities of its elements” but in [0, 60) all elements have probability zero! To specify and calculate probabilities, we have to work with the axioms of probability

  7. The uniform random variable Sample space W =[0, 60) Events of interest: intervals [x, y) ⊆ [0, 60) their intersections, unions, etc. P([x, y)) = (y – x)/60 Probabilities: X(w) = w Random variable:

  8. Cumulative distribution function The probability mass function doesn’t make much sense because P(X = x) = 0 for all x. Instead, we can describe X by its cumulative distribution function (CDF)F: FX(x) = P(X ≤ x)

  9. Cumulative distribution functions fX(x) = P(X = x) FX(x) = P(X ≤ x)

  10. What is the Geometric(1/2) CDF?

  11. Cumulative distribution functions f(x) = P(X = x) F(x) = P(X ≤ x)

  12. Uniform random variable If X is uniform over [0, 60) then X ≤ x x 60 0 F(x) forx < 0 0 P(X ≤ x) = x/60 forx ∈[0, 60) forx > 60 1 x

  13. Cumulative distribution functions discreteCDF F(x) = P(X ≤ x) PMF f(x) = P(X = x) ? continuousCDF F(x) = P(X ≤ x)

  14. Discrete random variables: • PMF f(x) = P(X = x) CDF F(x) = P(X ≤ x) f(x) = F(x) – F(x – d) F(a) = ∑x ≤ a f(x) for small d Continuous random variables: The probability density function (PDF) of a random variable with CDF F(x) is • dF(x) • F(x) – F(x – d) = lim f(x) = • dx • d • d → 0

  15. Uniform random variable ifx < 0 0 F(x) = x/60 ifx ∈[0, 60) ifx ≥ 60 1

  16. Probability density functions discreteCDF F(x) = P(X ≤ x) PMF f(x) = P(X = x) continuousCDF F(x) = P(X ≤ x) PDF f(x) = dF(x)/dx

  17. Uniform random variable The Uniform(0, 1) PDF is 1 ifx ∈ (0, 1) f(x) f(x) = ifx <0 orx > 1 0 X The Uniform(a, b) PDF is 1/(b - a) ifx ∈ (a, b) f(x) = b a ifx <aorx > b 0

  18. Calculating the CDF Discrete random variables: • PMF f(x) = P(X = x) CDF F(x) = P(X ≤ x) = ∑x ≤ t f(t) Continuous random variables: • PDF f(x) = dF(x)/dx CDF F(x) = P(X ≤ x) = ∫t ≤ x f(t)dt

  19. A package is to arrive between 12 and 1 What is the probability it arrived by 12.15?

  20. Alice said she’ll show up between 7 and 8, probably around 7.30. It is now 7.30. What is the probability Bob has to wait past 7.45?

  21. Interpretation of the PDF The PDF value f(x) d approximates the probability that Xin an interval of length d around x P(x –d≤ X < x) = f(x) d+ o(d) P(x ≤ X < x + d) = f(x) d+ o(d)

  22. Expectation and variance PMF f(x) PDF f(x) ∑x ≤ a f(x) P(X ≤ a) E[X] ∑x x f(x) ∑x x2 f(x) E[X2] Var[X]

  23. Mean and Variance of Uniform

  24. Raindrops again Rain is falling on your head at an average speed of l drops/second. 2 1 How long do we wait until the next drop?

  25. Geometric(3/10) Geometric(3/100) Exponential(3) Geometric(3/50)

  26. The exponential random variable The Exponential(l) PDF is le-lt ifx ≥ 0 f(t) = ifx < 0. 0 l = 1 l = 1 PDF f(t) CDF F(t) = P(T ≤ t)

  27. The exponential random variable CDF of Exponential(l): E[Exponential(l)] = Var[Exponential(l)] =

  28. Poisson vs. exponential N 2 1 T Exponential(l) Poisson(l) number of events within time unit time until first event happens description • 1/l • l expectation • 1/l • l std. deviation

  29. A bus arrives once every 5 minutes. How likely are you to wait 5 to 10 minutes?

  30. Binomial(64, 1/2) Binomial(1000, 1/2) Binomial(100, 1/2) Normal(0, 1)

  31. The Normal(0, 1)random variable CDF PDF • f(x) = (2p)-½ e-x /2 • F(x) = (2p)-½ ∫t ≤ x e-t /2 dt • 2 • 2 E[Normal(0, 1)] = Var[Normal(0, 1)] =

  32. The Normal(m, s)random variable • f(x) = (2ps2)–½ e– (x – m) /2s • 2 • 2

More Related