1. Home
  2. Explore
  3. Computer Science
  4. CS109 Course Feedback Process

Study methods

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

CS109 Course Feedback Process

  • 21Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Random Variables and PMF
A random variable is a variable that takes on a
probabilistically.

21 questions

  1. 1
    A random variable is a variable that takes on a
    _____
    probabilistically.
    Hint

    It is not a fixed value; it depends on chance.

    Answer

    number

  2. 2
    The relationship between the values a random variable can take and their probabilities is called the probability
    _____
    function.
    Hint

    It is abbreviated as PMF.

    Answer

    mass

  3. 3
    The expectation of a random variable is defined as the
    _____
    average of its possible values, weighted by their probabilities.
    Hint

    It's like a center of mass of the distribution.

    Answer

    weighted

  4. 4
    Linearity of expectation states that the expectation of a sum of random variables equals the
    _____
    of their expectations.
    Hint

    This property holds regardless of dependence.

    Answer

    sum

  5. 5
    The Law of the Unconscious Statistician (LOTUS) states that for any function g, E[g(X)] = sum over x of g(x) *
    _____
    .
    Hint

    You apply the function to each value before averaging.

    Answer

    P(X=x)

  6. 6
    For a dataset, the expectation is simply the
    _____
    of all observed values.
    Hint

    It's the sum divided by the number of observations.

    Answer

    average

  7. 7
    A binomial random variable counts the number of
    _____
    in a fixed number of independent trials with constant success probability.
    Hint

    Think of coin flips: heads is a success.

    Answer

    successes

  8. 8
    The probability mass function of a binomial random variable X ~ Bin(n,p) is P(X=k) = choose(n,k) * p^k *
    _____
    .
    Hint

    The probability of failure is 1-p, and there must be n-k failures.

    Answer

    (1-p)^(n-k)

  9. 9
    The two parameters of a binomial distribution are n (number of trials) and
    _____
    (probability of success).
    Hint

    It is the chance of success on each trial.

    Answer

    p

  10. 10
    The expectation of a binomial random variable X ~ Bin(n,p) is
    _____
    .
    Hint

    It's the product of the number of trials and the success probability.

    Answer

    n*p

  11. 11
    A Bernoulli random variable is a special case of the binomial with n =
    _____
    .
    Hint

    It represents a single trial.

    Answer

    1

  12. 12
    A Bernoulli random variable takes the value 1 with probability p and the value
    _____
    with probability 1-p.
    Hint

    It only has two possible outcomes.

    Answer

    0

  13. 13
    The expectation of a Bernoulli random variable with success probability p is
    _____
    .
    Hint

    Because E[X] = 1p + 0(1-p).

    Answer

    p

  14. 14
    A binomial random variable can be expressed as the
    _____
    of n independent Bernoulli random variables.
    Hint

    Each Bernoulli indicates a success in one trial.

    Answer

    sum

  15. 15
    Variance is a measure of
    _____
    of a random variable's distribution.
    Hint

    It quantifies how far values typically deviate from the mean.

    Answer

    spread

  16. 16
    The variance of a random variable X is defined as E[
    _____
    ].
    Hint

    μ = E[X]; we square the deviation.

    Answer

    (X - μ)^2

  17. 17
    An equivalent formula for variance is E[X^2] - (
    _____
    )^2.
    Hint

    It's the second moment minus the squared first moment.

    Answer

    E[X]

  18. 18
    Standard deviation is the
    _____
    of variance.
    Hint

    It returns variance to original units.

    Answer

    square root

  19. 19
    In the Galton board, the number of times a marble goes right follows a
    _____
    distribution.
    Hint

    Each pin is an independent trial with 0.5 chance of right.

    Answer

    binomial

  20. 20
    In a best-of-7 basketball series, the probability of winning the series (at least 4 wins) can be computed as the sum of binomial probabilities from k = 4 to
    _____
    .
    Hint

    The series has 7 games total.

    Answer

    7

  21. 21
    A common mistake when computing P(X >= k) for a binomial is to use C(n,k) * p^k, which can give probabilities
    _____
    1 when p=1.
    Hint

    Probabilities must be between 0 and 1.

    Answer

    greater than

1 of 21
Question 1 of 21

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent