chapter
    Random Variables, Expectation, Variance and Covariance PYQs for GATE CS

    Solve 6+ Random Variables, Expectation, Variance and Covariance previous year questions for GATE CS with answers and detailed solutions. Free sample questions

    Try a question

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

    Question 1
    2026 Slot Set1 PYQ
    Level 2: Moderate
    Let be a random variable which takes values in the set . Further, and .

    The expected value of , denoted by , is equal to ___________. (rounded off to two decimal places)
    Question 2
    2025 Slot Set2 PYQ
    Level 3: Exam Standard
    The unit interval is divided at a point chosen uniformly distributed over in into two disjoint subintervals.

    The expected length of the subinterval that contains 0.4 is ___________. (rounded off to two decimal places)
    Question 3
    2024 Slot Set2 PYQ
    Level 3: Exam Standard

    Let and be random variables, not necessarily independent, that take real values in the interval . Let and let the mean values of , , be , , , respectively. Which one of the following statements is TRUE?

    Question 4
    2021 Slot Set2 PYQ
    Level 3: Exam Standard
    In an examination, a student can choose the order in which two questions (QuesA and QuesB) must be attempted.
    - If the first question is answered wrong, the student gets zero marks.
    - If the first question is answered correctly and the second question is not answered correctly, the student gets the marks only for the first question.
    - If both the questions are answered correctly, the student gets the sum of the marks of the two questions.
    The following table shows the probability of correctly answering a question and the marks of the question respectively.

    questionprobability of answering correctlymarksQuesA0.810QuesB0.520
    Assuming that the student always wants to maximize her expected marks in the examination, in which order should she attempt the questions and what is the expected marks for that order (assume that the questions are independent)?
    Question 5
    2021 Slot Set2 PYQ
    Level 2: Moderate

    For a given biased coin, the probability that the outcome of a toss is a head is 0.4. This coin is tossed 1,000 times. Let denote the random variable whose value is the number of times that head appeared in these 1,000 tosses. The standard deviation of (rounded to 2 decimal places) is __________.

    Question 6
    2021 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider the two statements.





    Which one of the following choices is correct?
    Free preview ends here

    Login to view the complete previous-year 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 PYQs for GATE CS

    Solve 6+ Random Variables, Expectation, Variance and Covariance previous year 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 (6 Problems)

    Question 1 · Engineering Mathematics · 2026_Set1 NAT
    Let be a random variable which takes values in the set . Further, and .

    The expected value of , denoted by , is equal to ___________. (rounded off to two decimal places)
    Correct Answer:

    4.25

    Step-by-Step Solution

    Insight: The expected value of a discrete random variable is the sum of each value multiplied by its probability. Grouping terms with the same probability simplifies the arithmetic.

    Exam route: Group the values by probability. Sum of values with is . . Sum of values with is . . Total .

    Learning route:

    1. Recall the definition of discrete expectation: .
    2. Group the outcomes by their probabilities to simplify calculation:
    • Group 1 (): . Sum of .
    • Group 2 (): . Sum of .
    1. Multiply each group's sum by its probability:
    • Contribution of Group 1: .
    • Contribution of Group 2: .
    1. Add the contributions: .
    Question 2 · Engineering Mathematics · 2025_Set2 NAT
    The unit interval is divided at a point chosen uniformly distributed over in into two disjoint subintervals.

    The expected length of the subinterval that contains 0.4 is ___________. (rounded off to two decimal places)
    Correct Answer:

    0.74

    Step-by-Step Solution

    Insight: The length of the subinterval containing a fixed point depends on whether the random cut is to the left or right of . This requires a piecewise function and splitting the integral.

    Exam route: Use the derived formula for the expected length containing in a unit interval: . For , .

    Learning route:

    1. Define the random variable: Let be the cut point. The PDF is for .
    2. Define the target variable (length containing ):
    • If , the interval containing is , so .
    • If , the interval containing is , so .
    1. Set up the expectation integral:

    .

    1. Evaluate the integrals:
    • First part: .
    • Second part: .
    1. Sum the results: .
    Question 3 · Engineering Mathematics · 2024_Set2 MCQ

    Let and be random variables, not necessarily independent, that take real values in the interval . Let and let the mean values of , , be , , , respectively. Which one of the following statements is TRUE?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    D

    Step-by-Step Solution

    Insight: For random variables bounded in , the product is always less than or equal to (since ) and less than or equal to (since ).

    Exam route: Since , we have . By monotonicity of expectation, , which means . This matches option D.

    Learning route:

    1. Analyze the bounds: We are given .
    2. Establish inequality for the product: Since and , multiplying by gives .
    3. Apply expectation: The expectation operator preserves inequalities. Thus, .
    4. Translate to given notation: .
    5. Check other options: is only true if independent. and are not universally true without knowing the correlation (covariance sign).
    Question 4 · Engineering Mathematics · 2021_Set2 MCQ
    In an examination, a student can choose the order in which two questions (QuesA and QuesB) must be attempted.
    - If the first question is answered wrong, the student gets zero marks.
    - If the first question is answered correctly and the second question is not answered correctly, the student gets the marks only for the first question.
    - If both the questions are answered correctly, the student gets the sum of the marks of the two questions.
    The following table shows the probability of correctly answering a question and the marks of the question respectively.

    questionprobability of answering correctlymarksQuesA0.810QuesB0.520
    Assuming that the student always wants to maximize her expected marks in the examination, in which order should she attempt the questions and what is the expected marks for that order (assume that the questions are independent)?
    1. A.

      First QuesA and then QuesB. Expected marks 14.

    2. B.

      First QuesB and then QuesA. Expected marks 14.

    3. C.

      First QuesB and then QuesA. Expected marks 22.

    4. D.

      First QuesA and then QuesB. Expected marks 16.

    Correct Answer:

    D

    Step-by-Step Solution

    Insight: To maximize expected marks, calculate the expected payoff for each possible ordering (A then B, or B then A) using a decision tree.

    Exam route:

    Order A then B: .

    Order B then A: .

    Max is 16, so attempt QuesA first, then QuesB.

    Learning route:

    1. Define strategies: Strategy 1 is A then B. Strategy 2 is B then A.
    2. Calculate expected marks for Strategy 1 (A then B):
    • Probability of getting A wrong: . Marks = .
    • Probability of getting A right, B wrong: . Marks = .
    • Probability of getting both right: . Marks = .
    • Expected marks = .
    1. Calculate expected marks for Strategy 2 (B then A):
    • Probability of getting B wrong: . Marks = .
    • Probability of getting B right, A wrong: . Marks = .
    • Probability of getting both right: . Marks = .
    • Expected marks = .
    1. Compare: , so attempt QuesA first to maximize expected marks.
    Question 5 · Engineering Mathematics · 2021_Set2 NAT

    For a given biased coin, the probability that the outcome of a toss is a head is 0.4. This coin is tossed 1,000 times. Let denote the random variable whose value is the number of times that head appeared in these 1,000 tosses. The standard deviation of (rounded to 2 decimal places) is __________.

    Correct Answer:

    15.49

    Step-by-Step Solution

    Insight: The number of heads in independent tosses of a biased coin follows a Binomial distribution .

    Exam route: Identify , , . Variance . Standard deviation .

    Learning route:

    1. Recognize the distribution: .
    2. Recall the variance formula for a Binomial random variable: .
    3. Calculate the variance: .
    4. Standard deviation is the square root of variance: .
    5. Round to two decimal places as requested: .
    Question 6 · Engineering Mathematics · 2021_Set1 MCQ
    Consider the two statements.





    Which one of the following choices is correct?
    1. A.

      Both and are true.

    2. B.

      is true, but is false.

    3. C.

      is false, but is true.

    4. D.

      Both and are false.

    Correct Answer:

    D

    Step-by-Step Solution

    Key idea: this is a statement-truth question on covariance. Recognise that the inner expectation in is exactly , and that the RHS of is an expectation of a non-negative quantity.

    Why these methods apply:

    • is a claim about an inequality involving a square of a covariance-like term and a product of variances. The standard tool is the Cauchy–Schwarz inequality for random variables.
    • equates with an expectation involving absolute values. The standard tool is to check the sign behaviour: covariance can be negative, but an expectation of a product of absolute values cannot.

    Step 1 — decode :

    By definition

    So is the claim: there exist with .

    Step 2 — apply Cauchy–Schwarz:

    For any two random variables with finite second moments

    Choose and . Then , , and . Hence

    for every pair . Strict "" is impossible, so is FALSE.

    Step 3 — decode :

    , which can be negative.

    The RHS of is , an expectation of a non-negative random variable, so it is always .

    Therefore cannot hold for all .

    Step 4 — concrete counterexample for :

    Let be any non-constant zero-mean random variable and set . Then

    while

    The two sides disagree, so is FALSE.

    Conclusion: both and are false.

    Common trap: reading as "some cleverly chosen beat the inequality" — but Cauchy–Schwarz is universal, no choice of can violate it. Another trap: forgetting that absolute values destroy the sign information in .

    Verification: plug into Cauchy–Schwarz — the inequality is recovered exactly, confirming is false; the counterexample confirms is false.

    Answer: option (D) — Both and are false.

    More previous year questions (pyqs) in this unit