1. Home
  2. Explore
  3. Computer Science
  4. Continuous Random Variables

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Continuous Random Variables

  • 28Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Geometric Distribution
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What is the story (narrative) that defines a geometric random variable?

Tap to flipClick to flipspace

It counts the number of independent trials until the first success, where each trial has the same probability ppp of success.

Or swipe the card

28 cards

  1. What is the story (narrative) that defines a geometric random variable?

    It counts the number of independent trials until the first success, where each trial has the same probability ppp of success.

  2. What are the possible values (support) of a geometric random variable?

    Positive integers: 1,2,3,…1, 2, 3, \dots1,2,3,… (cannot be zero because you need at least one trial to get a success).

  3. What is the probability mass function (PMF) of a geometric random variable with success probability ppp?

    P(X=n)=(1−p)n−1pP(X = n) = (1-p)^{n-1} pP(X=n)=(1−p)n−1p for n=1,2,3,…n = 1, 2, 3, \dotsn=1,2,3,…

  4. What are the expectation and variance of a geometric random variable with parameter ppp?

    Expectation: E[X]=1pE[X] = \frac{1}{p}E[X]=p1​; Variance: Var(X)=1−pp2\text{Var}(X) = \frac{1-p}{p^2}Var(X)=p21−p​.

  5. In the dating example, what is the average number of people one must date until finding 'the one' if each date has a 0.2 probability of being the one?

    E[X]=10.2=5E[X] = \frac{1}{0.2} = 5E[X]=0.21​=5
  6. What is the story (narrative) that defines a negative binomial random variable?

    It counts the number of independent trials needed to obtain a fixed number rrr of successes, where each trial has success probability ppp.

  7. What are the possible values (support) of a negative binomial random variable with rrr successes?

    Integers n=r,r+1,r+2,…n = r, r+1, r+2, \dotsn=r,r+1,r+2,… (at least rrr trials are needed to get rrr successes).

  8. What is the relationship between the negative binomial and geometric distributions?

    A negative binomial with r=1r=1r=1 is a geometric. More generally, a negative binomial is the sum of rrr independent geometric random variables (each with the same ppp).

  9. What are the expectation and variance of a negative binomial random variable with parameters rrr and ppp?

    Expectation: E[Y]=rpE[Y] = \frac{r}{p}E[Y]=pr​; Variance: Var(Y)=r(1−p)p2\text{Var}(Y) = \frac{r(1-p)}{p^2}Var(Y)=p2r(1−p)​.

  10. In the Bitcoin mining problem, explain how to model 'number of attempts needed to mine 2 Bitcoins' as a random variable.

    Let XXX be the number of attempts until 2 successes. Then XXX follows a negative binomial distribution with r=2r=2r=2 and p=2−Gp = 2^{-G}p=2−G, where GGG is the number of leading zeros required.

  11. Why can't a probability mass function (PMF) be used for continuous random variables?

    Because continuous random variables can take on infinitely many values with infinite precision; the probability of any exact value is zero.

  12. What is a probability density function (PDF), and what is its key property?

    A PDF f(x)f(x)f(x) describes the relative likelihood of a continuous random variable. The area under the curve between two points gives the probability that the variable falls in that interval. The total area under the PDF equals 1.

  13. Can the value of a probability density function (PDF) be greater than 1? Why?

    Yes, because the PDF is not a probability; it is a density. For a narrow interval, the height can be >1 as long as the area (probability) over any interval does not exceed 1.

  14. What is the cumulative distribution function (CDF), and how is it related to the PDF?

    The CDF F(x)=P(X≤x)F(x) = P(X \leq x)F(x)=P(X≤x) gives the probability that the random variable is less than or equal to xxx. It is the integral of the PDF from −∞-\infty−∞ to xxx: F(x)=∫−∞xf(t)dtF(x) = \int_{-\infty}^x f(t) dtF(x)=∫−∞x​f(t)dt.

  15. How do you compute P(X>a)P(X > a)P(X>a) and P(a<X<b)P(a < X < b)P(a<X<b) using the CDF?

    P(X>a)=1−F(a);P(a<X<b)=F(b)−F(a)P(X > a) = 1 - F(a); \quad P(a < X < b) = F(b) - F(a)P(X>a)=1−F(a);P(a<X<b)=F(b)−F(a)

  16. What is the story and PDF of a uniform random variable on [α,β][\alpha, \beta][α,β]?

    Story: any value between α\alphaα and β\betaβ is equally likely. PDF: f(x)={1β−αα≤x≤β0otherwisef(x) = \begin{cases} \frac{1}{\beta-\alpha} & \alpha \leq x \leq \beta \\ 0 & \text{otherwise} \end{cases}f(x)={β−α1​0​α≤x≤βotherwise​

  17. What are the expectation and variance of a uniform random variable on [α,β][\alpha, \beta][α,β]?

    Expectation: E[X]=α+β2E[X] = \frac{\alpha+\beta}{2}E[X]=2α+β​; Variance: Var(X)=(β−α)212\text{Var}(X) = \frac{(\beta-\alpha)^2}{12}Var(X)=12(β−α)2​.

  18. If a bus arrives uniformly between 0 and 30 minutes after 2 PM, and you arrive at 2:15, what is the probability you wait less than 5 minutes?

    P(15<X<20)=20−1530−0=530=16P(15 < X < 20) = \frac{20-15}{30-0} = \frac{5}{30} = \frac{1}{6}P(15<X<20)=30−020−15​=305​=61​

  19. What is the story and PDF of an exponential random variable with rate λ\lambdaλ?

    Story: models the time until the next event in a Poisson process with average rate λ\lambdaλ events per unit time. PDF: f(x)=λe−λx,x≥0f(x) = \lambda e^{-\lambda x}, \quad x \geq 0f(x)=λe−λx,x≥0

  20. What are the expectation and variance of an exponential random variable with rate λ\lambdaλ?

    Expectation: E[X]=1λE[X] = \frac{1}{\lambda}E[X]=λ1​; Variance: Var(X)=1λ2\text{Var}(X) = \frac{1}{\lambda^2}Var(X)=λ21​.

  21. What is the CDF of an exponential random variable?

    F(x)=P(X≤x)=1−e−λx,x≥0F(x) = P(X \leq x) = 1 - e^{-\lambda x}, \quad x \geq 0F(x)=P(X≤x)=1−e−λx,x≥0

  22. If earthquakes occur at a rate of 0.002 per year, what is the probability that the next major earthquake occurs within 30 years?

    P(T<30)=1−e−0.002⋅30=1−e−0.06≈0.0582P(T < 30) = 1 - e^{-0.002 \cdot 30} = 1 - e^{-0.06} \approx 0.0582P(T<30)=1−e−0.002⋅30=1−e−0.06≈0.0582

  23. How is the exponential distribution related to the Poisson distribution?

    If the number of events in a fixed time follows a Poisson distribution with rate λ\lambdaλ, then the time between events follows an exponential distribution with the same rate λ\lambdaλ.

  24. In the jury selection example, what distribution did Justice Breyer incorrectly use to model the number of minority jurors?

    He used a binomial distribution with n=12n=12n=12 and p=60/1000=0.06p=60/1000=0.06p=60/1000=0.06.

  25. What is the hypergeometric distribution and why is it more accurate than the binomial for the jury problem?

    The hypergeometric models the number of successes when sampling without replacement from a finite population. It accounts for changing probabilities after each draw.

  26. In the dating example, how is the standard deviation of the number of dates until success calculated for a geometric distribution?

    Standard deviation = 1−pp2=0.80.04=20≈4.47\sqrt{\frac{1-p}{p^2}} = \sqrt{\frac{0.8}{0.04}} = \sqrt{20} \approx 4.47p21−p​​=0.040.8​​=20​≈4.47.

  27. What is the probability that the first attempt in Bitcoin mining produces a hash starting with GGG zeros?

    P(success on first try)=(12)G=2−GP(\text{success on first try}) = \left(\frac{1}{2}\right)^G = 2^{-G}P(success on first try)=(21​)G=2−G

  28. Using a Poisson distribution, what is the probability of zero major earthquakes next year if the rate is 0.002 per year?

    P(X=0)=e−0.002(0.002)00!=e−0.002≈0.998P(X=0) = \frac{e^{-0.002} (0.002)^0}{0!} = e^{-0.002} \approx 0.998P(X=0)=0!e−0.002(0.002)0​=e−0.002≈0.998

Card 1 of 28
Card 1 of 28

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent