PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Statistics & Math/MathWorks

Compute urn-draw probabilities and expectations

Last updated: Mar 29, 2026

Quick Overview

This question evaluates understanding of elementary probability concepts—dependent events, conditional probability, and expected value—using an urn model with draws without replacement.

  • easy
  • MathWorks
  • Statistics & Math
  • Software Engineer

Compute urn-draw probabilities and expectations

Company: MathWorks

Role: Software Engineer

Category: Statistics & Math

Difficulty: easy

Interview Round: Take-home Project

An urn contains 5 red and 7 blue balls. You draw two balls uniformly at random without replacement. (a) What is the probability of drawing at least one red? (b) Given that the first draw is blue, what is the probability the second draw is red? (c) What is the expected number of red balls drawn in two draws? Show calculations.

Quick Answer: This question evaluates understanding of elementary probability concepts—dependent events, conditional probability, and expected value—using an urn model with draws without replacement.

Related Interview Questions

  • Deduce position from logic clues - MathWorks (hard)
  • Compute probability of drawing reds - MathWorks (easy)
  • Deduce row order from logic clues - MathWorks (easy)
  • Calculate tiered cost and break-even - MathWorks (medium)
MathWorks logo
MathWorks
Aug 10, 2025, 12:00 AM
Software Engineer
Take-home Project
Statistics & Math
1
0

Urn Drawing Probabilities (Without Replacement)

You have an urn with 12 balls: 5 red (R) and 7 blue (B). You draw two balls uniformly at random without replacement.

Answer the following:

(a) What is the probability of drawing at least one red ball in the two draws?

(b) Given that the first draw is blue, what is the probability that the second draw is red?

(c) What is the expected number of red balls drawn in two draws? Show your calculations.

Assume all draws are without replacement and equally likely.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Statistics & Math•More MathWorks•More Software Engineer•MathWorks Software Engineer•MathWorks Statistics & Math•Software Engineer Statistics & Math
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.