Skip to content

AI & ML · Probability for ML

Expectation & variance

543 problems in this skill, each with a solver-verified answer key. Answers are checked the moment you submit — with a hint if you want one and a worked solution afterwards.

What the problems look like

A few statements from this skill. Answers, hints and worked solutions live in the practice session.

  1. Warm-up

    A binary classifier predicts the positive class on any given input with probability p=1/5p = 1/5. Model this as a Bernoulli random variable XX, where X=1X=1 for a positive prediction and X=0X=0 otherwise. Find (i) E[X]E[X] and (ii) Var⁡(X)\operatorname{Var}(X), each as a fraction.

  2. Warm-up

    A binary classifier predicts the positive class on any given input with probability p=1/4p = 1/4. Model this as a Bernoulli random variable XX, where X=1X=1 for a positive prediction and X=0X=0 otherwise. Find (i) E[X]E[X] and (ii) Var⁡(X)\operatorname{Var}(X), each as a fraction.

  3. Warm-up

    A binary classifier predicts the positive class on any given input with probability p=1/6p = 1/6. Model this as a Bernoulli random variable XX, where X=1X=1 for a positive prediction and X=0X=0 otherwise. Find (i) E[X]E[X] and (ii) Var⁡(X)\operatorname{Var}(X), each as a fraction.

Problems shown under their original terms: Generated (template, solver-computed).

Practice this free, right now

Unlimited math practice is on the free plan — no card, no trial clock.

See every Probability for ML skill for ai & ml