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

  • 36Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Geometric Distribution
The geometric random variable models the number of independent trials until the
success.

36 questions

  1. 1
    The geometric random variable models the number of independent trials until the
    _____
    success.
    Hint

    Think about the story: how many trials do you need to get the first success?

    Answer

    first

  2. 2
    A geometric random variable can only take on
    _____
    values.
    Hint

    Consider the number of coin flips needed to get a head: you can't have zero flips.

    Answer

    positive integers

  3. 3
    The probability mass function of a geometric random variable with parameter p is P(X=n)=P(X=n) =P(X=n)=
    _____
    for n=1,2,3,…n = 1,2,3,\ldotsn=1,2,3,….
    Hint

    Think about the sequence: n-1 failures followed by a success.

    Answer

    (1−p)n−1p(1-p)^{n-1}p(1−p)n−1p

  4. 4
    The expected value of a geometric random variable with success probability p is
    _____
    .
    Hint

    Recall that for a geometric distribution, the average number of trials to get the first success is the reciprocal of the success probability.

    Answer

    1/p1/p1/p

  5. 5
    The variance of a geometric random variable with parameter p is
    _____
    .
    Hint

    The variance formula for geometric is similar to the expectation but more complex.

    Answer

    (1−p)/p2(1-p)/p^2(1−p)/p2

  6. 6
    The negative binomial random variable models the number of independent trials until
    _____
    successes.
    Hint

    It generalizes the geometric to multiple successes.

    Answer

    r

  7. 7
    A negative binomial random variable with parameters r and p takes on values n such that
    _____
    .
    Hint

    You need at least r trials to get r successes.

    Answer

    n≥rn \geq rn≥r

  8. 8
    The probability mass function of a negative binomial random variable is P(X=n)=P(X=n) =P(X=n)=
    _____
    for n=r,r+1,…n = r, r+1, \ldotsn=r,r+1,….
    Hint

    The last trial must be a success, and the previous n-1 trials contain r-1 successes.

    Answer

    (n−1r−1)pr(1−p)n−r\binom{n-1}{r-1} p^r (1-p)^{n-r}(r−1n−1​)pr(1−p)n−r

  9. 9
    The expected value of a negative binomial random variable with parameters r and p is
    _____
    .
    Hint

    It is r times the expectation of a geometric.

    Answer

    r/pr/pr/p

  10. 10
    The variance of a negative binomial random variable is
    _____
    .
    Hint

    Variance scales with r.

    Answer

    r(1−p)/p2r(1-p)/p^2r(1−p)/p2

  11. 11
    The negative binomial distribution can be expressed as the sum of
    _____
    independent geometric random variables.
    Hint

    It is the number of trials until r successes.

    Answer

    r

  12. 12
    For a continuous random variable, the probability of it taking on any exact value is
    _____
    .
    Hint

    Think about the infinite precision required for an exact value.

    Answer

    0

  13. 13
    The function that describes the relative likelihood of a continuous random variable is called the
    _____
    .
    Hint

    It is the continuous analog of the probability mass function.

    Answer

    probability density function

  14. 14
    The integral of a probability density function over its entire range equals
    _____
    .
    Hint

    Total probability must sum to one, and for continuous we integrate.

    Answer

    1

  15. 15
    A probability density function can have values
    _____
    one.
    Hint

    Since it's not a probability itself, it can exceed 1.

    Answer

    greater than

  16. 16
    To find the probability that a continuous random variable X lies between a and b, one must
    _____
    the PDF from a to b.
    Hint

    It's the continuous analog of summing probabilities.

    Answer

    integrate

  17. 17
    A uniform random variable on [α, β] has a probability density function equal to
    _____
    for x between α and β.
    Hint

    The height is constant and chosen so that the total area is 1.

    Answer

    1/(β−α)1/(\beta-\alpha)1/(β−α)

  18. 18
    The expected value of a uniform random variable on [α, β] is
    _____
    .
    Hint

    It's the midpoint of the interval.

    Answer

    (α+β)/2(\alpha+\beta)/2(α+β)/2

  19. 19
    The variance of a uniform random variable on [α, β] is
    _____
    .
    Hint

    Variance depends on the square of the range.

    Answer

    (β−α)2/12(\beta-\alpha)^2/12(β−α)2/12

  20. 20
    If a bus arrives uniformly between 0 and 30 minutes, the probability of waiting less than 5 minutes is
    _____
    .
    Hint

    It's the fraction of the total interval.

    Answer

    5/305/305/30

  21. 21
    The parameters of a uniform distribution are the minimum value
    _____
    and the maximum value β.
    Hint

    Two parameters define the range.

    Answer

    α\alphaα

  22. 22
    The exponential distribution models the
    _____
    until an event in a Poisson process.
    Hint

    It is the continuous counterpart of the Poisson distribution.

    Answer

    time

  23. 23
    The probability density function of an exponential random variable with rate λ is f(x)=f(x) =f(x)=
    _____
    for x≥0x \geq 0x≥0.
    Hint

    It decays exponentially.

    Answer

    λe−λx\lambda e^{-\lambda x}λe−λx

  24. 24
    The expected value of an exponential random variable with rate λ is
    _____
    .
    Hint

    It is the reciprocal of the rate.

    Answer

    1/λ1/\lambda1/λ

  25. 25
    The variance of an exponential random variable with rate λ is
    _____
    .
    Hint

    Variance is the square of the mean.

    Answer

    1/λ21/\lambda^21/λ2

  26. 26
    The cumulative distribution function of an exponential random variable is F(x)=F(x) =F(x)=
    _____
    for x≥0x \geq 0x≥0.
    Hint

    It gives the probability that the waiting time is less than x.

    Answer

    1−e−λx1 - e^{-\lambda x}1−e−λx

  27. 27
    The exponential distribution is the continuous analogue of the
    _____
    distribution.
    Hint

    Both model waiting times for success, but one is discrete and one continuous.

    Answer

    geometric

  28. 28
    If earthquakes occur at a rate of 0.002 per year, the probability of no major earthquake in the next year using an exponential distribution is
    _____
    .
    Hint

    Use the CDF: P(Y>1)=1−F(1)=e−λP(Y > 1) = 1 - F(1) = e^{-\lambda}P(Y>1)=1−F(1)=e−λ.

    Answer

    e−0.002e^{-0.002}e−0.002

  29. 29
    The cumulative distribution function F(x)F(x)F(x) is defined as the probability that the random variable is
    _____
    xxx.
    Hint

    It accumulates probability from negative infinity up to x.

    Answer

    less than or equal to

  30. 30
    For an exponential random variable, the CDF can be used to compute P(X>a)P(X > a)P(X>a) as
    _____
    .
    Hint

    Use complement rule.

    Answer

    1−F(a)1 - F(a)1−F(a)

  31. 31
    Using the CDF, the probability P(a<X≤b)P(a < X \leq b)P(a<X≤b) can be expressed as
    _____
    .
    Hint

    Subtract the cumulative probabilities.

    Answer

    F(b)−F(a)F(b) - F(a)F(b)−F(a)

  32. 32
    The derivative of the cumulative distribution function is the
    _____
    .
    Hint

    It's the density that we integrate to get the CDF.

    Answer

    probability density function

  33. 33
    If the probability of finding a life partner on a date is 0.2, the expected number of dates until success is
    _____
    .
    Hint

    Use the expectation of a geometric distribution.

    Answer

    5

  34. 34
    In the jury selection problem, the probability of selecting a minority person from the urn is 60/100060/100060/1000. The binomial approximation for the probability that a jury of 12 has at least one minority is approximately
    _____
    .
    Hint

    Compute 1−P(X=0)1 - P(X=0)1−P(X=0) for binomial with n=12n=12n=12, p=0.06p=0.06p=0.06.

    Answer

    0.5241

  35. 35
    In Bitcoin mining, the probability that the first attempt produces a bitstring starting with G zeros is
    _____
    .
    Hint

    Each bit has a 1/2 chance of being zero.

    Answer

    (1/2)G(1/2)^G(1/2)G

  36. 36
    The probability that it takes fewer than 100 attempts to mine 2 Bitcoins (with success probability ppp per attempt) can be found using the
    _____
    distribution.
    Hint

    It models the number of trials until a given number of successes.

    Answer

    negative binomial

1 of 36
Question 1 of 36

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent