Solve Dice Probability and Matrix Questions
Company: Hudson
Role: Data Scientist
Category: Machine Learning
Difficulty: medium
Interview Round: Technical Screen
Answer the following quantitative interview questions.
1. Six fair six-sided dice are rolled independently. Let S be the sum of the six face values.
- What is the probability that S is a multiple of 6, such as 6 or 12?
- Follow-up: What is the probability that S is a multiple of 7?
2. Let A be a finite m by n real matrix. Every row of A has entries summing to 1, and every column of A has entries summing to 1.
- Must A be a square matrix?
- Follow-up: Must A be invertible?
- Follow-up: Can such a matrix satisfy A^7 = 0?
Quick Answer: This question evaluates probability reasoning for modular distributions of sums of independent dice and linear algebra competency regarding matrices whose rows and columns each sum to one.