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

  • 18Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Discrete Random Variables Review

What is the story behind a geometric random variable?

18 questions

  1. 1

    What is the story behind a geometric random variable?

    1. A

      It models the number of successes in a fixed interval of time.

    2. B

      It models the time until a success in a continuous process.

    3. C

      It models the number of successes in a fixed number of independent trials.

    4. D

      It models the number of trials until the first success in independent trials with constant success probability.

    Correct answer
    D

    It models the number of trials until the first success in independent trials with constant success probability.

    Explanation

    The geometric random variable counts the number of independent trials needed to obtain the first success, with each trial having the same probability p of success.

  2. 2

    How does a negative binomial random variable differ from a binomial?

    1. A

      The negative binomial has a fixed number of successes, while binomial has a fixed number of trials.

    2. B

      The negative binomial has a fixed number of trials, while binomial has a fixed number of successes.

    3. C

      The negative binomial can take the value 0, while binomial cannot.

    4. D

      The negative binomial allows for dependent trials, while binomial requires independence.

    Correct answer
    A

    The negative binomial has a fixed number of successes, while binomial has a fixed number of trials.

    Explanation

    A binomial counts the number of successes in a fixed number n of trials. A negative binomial counts the number of trials needed to achieve a fixed number r of successes.

  3. 3

    What is the expectation of a geometric random variable with success probability p?

    1. A

      p / (1 - p)

    2. B

      1 / (1 - p)

    3. C

      (1 - p) / p^2

    4. D

      1 / p

    Correct answer
    D

    1 / p

    Explanation

    The expectation of a geometric random variable is 1/p, derived from the mean of the waiting time until first success.

  4. 4

    Why can a continuous random variable not have a probability mass function?

    1. A

      Because continuous variables are not random.

    2. B

      Because it takes on an infinite number of values, so the probability of any single exact value is zero.

    3. C

      Because the values are always integers.

    4. D

      Because the probabilities would sum to more than 1.

    Correct answer
    B

    Because it takes on an infinite number of values, so the probability of any single exact value is zero.

    Explanation

    For a continuous random variable, the probability of any exact value is zero due to infinite precision, so we use a probability density function instead.

  5. 5

    What does the integral of a probability density function over its entire range equal?

    1. A

      The variance of the distribution

    2. B

      1

    3. C

      The mean of the distribution

    4. D

      The maximum value of the density

    Correct answer
    B

    1

    Explanation

    The total probability must sum to 1, so the integral of the pdf over all possible values equals 1.

  6. 6

    Can the value of a probability density function be greater than 1?

    1. A

      Yes, but only for symmetric distributions.

    2. B

      No, the density function is bounded by 1.

    3. C

      No, probabilities must be between 0 and 1.

    4. D

      Yes, if the distribution is concentrated over a small range.

    Correct answer
    D

    Yes, if the distribution is concentrated over a small range.

    Explanation

    The pdf is not a probability; it is a density. It can exceed 1 if the range is narrow, as the area under the curve must be 1.

  7. 7

    What is the relationship between the probability density function (pdf) and the cumulative distribution function (cdf)?

    1. A

      The pdf and cdf are identical for continuous variables.

    2. B

      The cdf is the derivative of the pdf.

    3. C

      The pdf is the derivative of the cdf.

    4. D

      The cdf is the integral of the pdf, and the pdf is the derivative of the cdf.

    Correct answer
    D

    The cdf is the integral of the pdf, and the pdf is the derivative of the cdf.

    Explanation

    The cdf F(x) is the integral of the pdf f(t) from -∞ to x, and the pdf is the derivative of the cdf: f(x) = d/dx F(x).

  8. 8

    How do you compute P(a < X < b) using the cumulative distribution function F(x)?

    1. A

      1 - F(a) - F(b)

    2. B

      F(b) - F(a)

    3. C

      F(a) - F(b)

    4. D

      F(b) + F(a)

    Correct answer
    B

    F(b) - F(a)

    Explanation

    P(a < X < b) = F(b) - F(a), since F(b) = P(X ≤ b) and F(a) = P(X ≤ a).

  9. 9

    What is the probability density function of a uniform random variable on the interval [α, β]?

    1. A

      f(x) = 1 / (β - α) for α ≤ x ≤ β, and 0 otherwise.

    2. B

      f(x) = 1 for α ≤ x ≤ β, and 0 otherwise.

    3. C

      f(x) = (x - α) / (β - α) for α ≤ x ≤ β, and 0 otherwise.

    4. D

      f(x) = 1 / (β - α) for all x.

    Correct answer
    A

    f(x) = 1 / (β - α) for α ≤ x ≤ β, and 0 otherwise.

    Explanation

    The uniform distribution has constant density over its support, with height 1/(β-α) so that the integral equals 1.

  10. 10

    What is the expectation of a uniform random variable on [α, β]?

    1. A

      (α + β) / 2

    2. B

      α + β

    3. C

      (β - α) / 2

    4. D

      (α + β) / 12

    Correct answer
    A

    (α + β) / 2

    Explanation

    The mean of a uniform distribution is the midpoint of the interval: (α+β)/2.

  11. 11

    If a bus arrival time is uniformly distributed between 0 and 30 minutes, what is the probability of waiting less than 5 minutes?

    1. A

      1 / 6

    2. B

      1 / 5

    3. C

      5 / 30

    4. D

      5 / 25

    Correct answer
    A

    1 / 6

    Explanation

    The probability is the length of the interval (5 minutes) divided by the total range (30 minutes), so 5/30 = 1/6.

  12. 12

    What is the probability density function of an exponential random variable with rate λ?

    1. A

      f(x) = λ e^{-λ x} for all x.

    2. B

      f(x) = λ e^{-λ x} for x ≥ 0, and 0 otherwise.

    3. C

      f(x) = 1 / λ e^{-x/λ} for x ≥ 0, and 0 otherwise.

    4. D

      f(x) = e^{-λ x} for x ≥ 0, and 0 otherwise.

    Correct answer
    B

    f(x) = λ e^{-λ x} for x ≥ 0, and 0 otherwise.

    Explanation

    The standard exponential pdf is f(x) = λ e^{-λ x} for x ≥ 0, where λ is the rate parameter.

  13. 13

    What is the cumulative distribution function of an exponential random variable with rate λ?

    1. A

      F(x) = e^{-λ x} for x ≥ 0.

    2. B

      F(x) = 1 - e^{-λ x} for all x.

    3. C

      F(x) = λ e^{-λ x} for x ≥ 0.

    4. D

      F(x) = 1 - e^{-λ x} for x ≥ 0.

    Correct answer
    D

    F(x) = 1 - e^{-λ x} for x ≥ 0.

    Explanation

    The cdf is obtained by integrating the pdf: F(x) = ∫_0^x λ e^{-λ t} dt = 1 - e^{-λ x} for x ≥ 0.

  14. 14

    What is the expectation of an exponential random variable with rate λ?

    1. A

      λ^2

    2. B

      λ

    3. C

      1 / λ

    4. D

      1 / λ^2

    Correct answer
    C

    1 / λ

    Explanation

    The mean of an exponential distribution is 1/λ.

  15. 15

    In a Poisson process, what does the exponential distribution model?

    1. A

      The number of trials until the first success.

    2. B

      The number of events in a fixed time interval.

    3. C

      The total time until a fixed number of events.

    4. D

      The time between consecutive events.

    Correct answer
    D

    The time between consecutive events.

    Explanation

    The exponential distribution describes the waiting time between events in a Poisson process, while the Poisson counts events in fixed time.

  16. 16

    Given an average earthquake rate of 0.002 per year, what is the probability of no major earthquakes in the next year according to a Poisson model?

    1. A

      1 - e^{-0.002}

    2. B

      e^{-0.002}

    3. C

      e^{-0.002} * 0.002

    4. D

      0.002

    Correct answer
    B

    e^{-0.002}

    Explanation

    For a Poisson with λ=0.002, P(X=0) = e^{-λ} = e^{-0.002}.

  17. 17

    Using the exponential distribution with λ=0.002 per year, what is the probability of a major earthquake in the next 30 years?

    1. A

      e^{-0.06}

    2. B

      0.002 * 30

    3. C

      1 - e^{-0.06}

    4. D

      1 - e^{-0.002}

    Correct answer
    C

    1 - e^{-0.06}

    Explanation

    The exponential cdf gives P(Y ≤ 30) = 1 - e^{-λ * 30} = 1 - e^{-0.06}.

  18. 18

    In the jury selection example, why is the hypergeometric distribution more accurate than the binomial?

    1. A

      Because trials are independent and probability remains constant.

    2. B

      Because the number of trials is not fixed.

    3. C

      Because the binomial assumes a continuous outcome.

    4. D

      Because sampling is without replacement, so probability changes after each draw.

    Correct answer
    D

    Because sampling is without replacement, so probability changes after each draw.

    Explanation

    The hypergeometric models sampling without replacement, where the probability of selecting a minority changes after each draw, unlike the binomial which assumes constant probability.

Question 1 of 18
Question 1 of 18

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent