chapter
    Random Variables, Expectation, Variance and Covariance Practice Questions for GATE CS

    Solve 104+ Random Variables, Expectation, Variance and Covariance practice questions for GATE CS with answers and detailed solutions. Free sample questions be

    Try a question

    Answer it here to see how it works. Nothing is recorded until you sign in.

    Question 1
    Level 1: Warm-up

    Let be a discrete random variable taking values in the set . What is the maximum possible value of the expected value ?

    Question 2
    Level 1: Warm-up

    Consider the following three games:

    \begin{itemize}

    \item Game A: Win 10 with probability 0.5, lose 2 with probability 0.5

    \item Game B: Win 8 with probability 0.6, lose 4 with probability 0.4

    \item Game C: Win 6 with probability 0.7, lose 3 with probability 0.3

    \end{itemize}

    Match each game with its expected payoff and identify the optimal game to play.

    Question 3
    Level 1: Warm-up

    Let be a random variable that takes values in the interval with . The maximum possible value of is:

    Question 4
    Level 1: Warm-up

    Let and be any random variables. Which of the following statements is ALWAYS true?

    Question 5
    Level 1: Warm-up

    Let and be discrete random variables. Which of the following statements is ALWAYS true?

    Question 6
    Level 1: Warm-up

    Let be a random variable with and . The maximum possible value of is:

    Question 7
    Level 1: Warm-up

    A discrete random variable takes values with probabilities , , and . Using the Law of the Unconscious Statistician, what is ?

    Question 8
    Level 1: Warm-up

    Let and be random variables, not necessarily independent, that take real values in the interval . If and , how many of the following values can be the value of ?

    Question 9
    Level 1: Warm-up

    Let be a random variable. How many of the following statements are ALWAYS true?

    implies is a constant

    Question 10
    Level 1: Warm-up

    A student claims that for any fixed point , when the unit interval is divided at a point chosen uniformly at random, the expected length of the subinterval containing is always greater than or equal to . The actual minimum value of that contradicts this statement is:

    Free preview ends here

    Login to view the complete practice questions and solutions

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

    Random Variables, Expectation, Variance and Covariance Practice Questions for GATE CS

    Solve 104+ Random Variables, Expectation, Variance and Covariance practice questions for GATE CS with answers and detailed solutions. Free sample questions below.

    Chapter Roadmap: Probability and Statistics

    Chapter Journey: Probability and Statistics

    1. Random Variables and Distributions

    Discrete vs Continuous, PMF vs PDF, CDF. Map outcomes to numbers.

    2. Expectation and Moments (Current Topic)

    Mean, Variance, Covariance. Calculate expected values for geometric quantities.

    3. Standard Distributions

    Binomial, Poisson, Normal, Exponential. Recognize patterns and apply formulas.

    4. Limit Theorems

    Law of Large Numbers, Central Limit Theorem. Behavior of sums.

    Exam Insight: Questions often blend probability with algorithms (expected running time) or systems (queueing delays). Mastering expectation is non-negotiable.

    Core Idea: Geometric Expectation via Integration

    The Core Idea

    In many problems, a random experiment defines a geometric object (like a sub-interval). We are asked to find the Expected Value (mean) of a property of that object (like its length).

    General Method

    If is a continuous random variable with PDF , and is a geometric quantity derived from , then:

    Key Steps

    1. Identify the Random Variable: Usually the position of a cut or a point, e.g., .
    2. Define the Geometry: Express the target quantity (length, area) as a function . Note that this function might be piecewise.
    3. Determine the PDF: For uniform distributions over , .
    4. Integrate: Compute over the valid range.

    Random Variables, Expectation, Variance and Covariance: Solved Questions with Step-by-Step Explanations (10 Problems)

    Question 1 · Engineering Mathematics MCQ

    Let be a discrete random variable taking values in the set . What is the maximum possible value of the expected value ?

    1. A.

      2

    2. B.

      3

    3. C.

      3.5

    4. D.

      4

    Correct Answer:

    D

    Step-by-Step Solution

    Key idea: The expected value is bounded by the minimum and maximum possible values of the random variable.

    Step 1: Recall that is a weighted average of the possible values.

    Step 2: A weighted average is maximized when all weight is on the largest value.

    Step 3: The maximum value in is 4. This occurs when and all other probabilities are 0.

    Step 4: In this case, .

    Answer: 4

    Common mistake: Thinking is always the middle value (2) or the average of the range (3.5).

    Question 2 · Engineering Mathematics MCQ

    Consider the following three games:

    \begin{itemize}

    \item Game A: Win 10 with probability 0.5, lose 2 with probability 0.5

    \item Game B: Win 8 with probability 0.6, lose 4 with probability 0.4

    \item Game C: Win 6 with probability 0.7, lose 3 with probability 0.3

    \end{itemize}

    Match each game with its expected payoff and identify the optimal game to play.

    1. A.

      A: 4, B: 3.2, C: 3.3; Optimal: A

    2. B.

      A: 4, B: 3.2, C: 3.3; Optimal: B

    3. C.

      A: 6, B: 4.8, C: 4.2; Optimal: A

    4. D.

      A: 4, B: 3.3, C: 3.2; Optimal: C

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a decision problem where we compute the expected payoff for each option and choose the maximum.

    Step 1: Compute for each game. "Lose" means negative payoff.

    Step 2: Game A:

    Step 3: Game B:

    Step 4: Game C:

    Step 5: Compare: .

    Answer: A: 4, B: 3.2, C: 3.3; Optimal: A

    Common mistake: Misreading "lose" as "win" or swapping B and C values.

    Question 3 · Engineering Mathematics MCQ

    Let be a random variable that takes values in the interval with . The maximum possible value of is:

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is an optimization problem using the computational formula for variance and the constraint that .

    Step 1: Recall the computational formula:

    Step 2: To maximize , we need to maximize .

    Step 3: Since , we have (because implies ).

    Step 4: Therefore, .

    Step 5: The maximum value of is , achieved when is a Bernoulli random variable with and .

    Step 6: Maximum variance:

    Answer: A

    Common trap: A student might think can be as large as (since ), giving (option C). However, this ignores the constraint that , which limits how large can be.

    Question 4 · Engineering Mathematics MCQ

    Let and be any random variables. Which of the following statements is ALWAYS true?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a statement truth problem testing the properties of variance, specifically the effect of constants and the requirement of independence.

    Step 1: Analyze each option:

    Option A:

    • This is ONLY true if and are independent (or uncorrelated)
    • In general:
    • NOT always true ✗

    Option B:

    • The correct property is:
    • So , not
    • NOT true ✗

    Option C:

    • Adding a constant shifts the distribution but doesn't change the spread
    • Property: for any constant
    • ALWAYS true ✓

    Option D:

    • The correct formula is:
    • This is NOT
    • NOT true ✗

    Answer: C

    Common trap: A student might choose option A, forgetting that only holds when and are independent. The problem states "any random variables," so we cannot assume independence.

    Question 5 · Engineering Mathematics MCQ

    Let and be discrete random variables. Which of the following statements is ALWAYS true?

    1. A.

    2. B.

      only if and are independent

    3. C.

      for any constants

    4. D.

      must be a possible value of

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a statement truth problem testing the properties of discrete expectation, specifically linearity and common misconceptions.

    Step 1: Analyze each option:

    Option A:

    • This is FALSE in general
    • The correct relationship is:
    • So
    • Equality holds only when (i.e., is constant)
    • NOT always true ✗

    Option B: only if and are independent

    • This is FALSE
    • Linearity of expectation holds regardless of independence
    • is ALWAYS true
    • NOT always true ✗

    Option C: for any constants

    • This is the linearity property of expectation
    • It holds for any random variable and any constants
    • ALWAYS true ✓

    Option D: must be a possible value of

    • This is FALSE
    • Example: Fair die roll has , but 3.5 is not a possible outcome
    • NOT always true ✗

    Answer: C

    Common trap: A student might choose option B, thinking that linearity requires independence. However, linearity of expectation is one of the most powerful properties precisely because it holds regardless of dependence.

    Question 6 · Engineering Mathematics MCQ

    Let be a random variable with and . The maximum possible value of is:

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is an optimization problem using the computational formula for variance and the constraint that .

    Step 1: Recall the computational formula:

    Step 2: To maximize , we need to maximize .

    Step 3: For a random variable with fixed mean , the maximum variance is achieved by a Bernoulli-like distribution that puts all probability mass at the endpoints and .

    Step 4: The maximum variance formula for with is:

    Step 5: Substitute the values:

    Answer: B

    Common trap: A student might think the maximum variance occurs when is uniformly distributed on , giving (option A is not this, but this is a common mistake). Or they might forget the constraint and think the maximum is when takes values and with equal probability, giving and , which is correct but they might not realize this is the maximum.

    Question 7 · Engineering Mathematics MCQ

    A discrete random variable takes values with probabilities , , and . Using the Law of the Unconscious Statistician, what is ?

    1. A.

      3.06

    2. B.

      3.50

    3. C.

      3.75

    4. D.

      4.25

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: LOTUS (Law of the Unconscious Statistician) allows computing directly without finding the distribution of .

    Step 1: Recall LOTUS: .

    Step 2: Here , so we apply the square to each value:

    Step 3: Calculate:

    Answer: 3.75

    Common mistake: Computing instead of . First find , then .

    Question 8 · Engineering Mathematics NAT

    Let and be random variables, not necessarily independent, that take real values in the interval . If and , how many of the following values can be the value of ?

    Correct Answer:

    3.00

    Step-by-Step Solution

    Key idea: This is a casework problem using both the upper and lower bounds for the expectation of a product of bounded random variables.

    Step 1: Compute the upper bound:

    Step 2: Compute the lower bound:

    Step 3: The range of possible values for is .

    Step 4: Check each value:

    • : NOT in range ✗
    • : In range (lower boundary) ✓
    • : In range ✓
    • : In range (upper boundary) ✓

    Step 5: Count the valid values:

    Answer: 3

    Common trap: A student might compute the lower bound as (sign error), then , giving range . This would incorrectly include , yielding a count of .

    Question 9 · Engineering Mathematics NAT

    Let be a random variable. How many of the following statements are ALWAYS true?

    implies is a constant

    Correct Answer:

    2.00

    Step-by-Step Solution

    Key idea: This is a casework problem testing the properties of variance.

    Step 1: Analyze each statement:

    Statement 1:

    • Variance is the expected value of squared deviations
    • Squared values are always non-negative
    • Expectation of non-negative values is non-negative
    • TRUE ✓

    Statement 2: implies is a constant

    • If , then
    • Since , the only way the expectation is 0 is if almost surely
    • This means almost surely, so is a constant
    • TRUE ✓

    Statement 3:

    • Adding a constant shifts the distribution but doesn't change spread
    • Property: for any constant
    • So , not
    • FALSE ✗

    Statement 4:

    • Scaling property:
    • So , not
    • FALSE ✗

    Step 2: Count the true statements: 2

    Answer: 2

    Common trap: A student might make a sign error and think by incorrectly applying the scaling property to addition, or think by forgetting to square the constant.

    Question 10 · Engineering Mathematics MCQ

    A student claims that for any fixed point , when the unit interval is divided at a point chosen uniformly at random, the expected length of the subinterval containing is always greater than or equal to . The actual minimum value of that contradicts this statement is:

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is a direct optimization problem using the formula .

    Step 1: To find the minimum, take the derivative and set it to zero:

    Step 2: Substitute into :

    Step 3: Verify this is a minimum by checking the second derivative:

    Wait, this indicates a maximum, not a minimum! Let me reconsider.

    Actually, is a downward-opening parabola (coefficient of is negative), so gives the MAXIMUM value, not the minimum.

    The minimum occurs at the boundary. Since , we check the limits:

    • As :
    • As :

    So the minimum value is , achieved as approaches or .

    Answer: A

    Common trap: A student might overcount by thinking the expected length should account for both subintervals, getting (option C). But the formula already gives the correct expected length of the single subinterval containing .

    More practice questions in this unit