PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Statistics & Math/Voleon

Solve Markov, OLS-rotation, and coin-toss probability

Last updated: Mar 29, 2026

Quick Overview

This multi-part question evaluates understanding of Markov chain and stochastic matrix properties, linear-algebra facts about eigenvalues and stationary distributions, invariance and sampling-distribution properties of OLS under orthonormal rotations, and discrete stopping-time probability reasoning for coin-flip processes.

  • easy
  • Voleon
  • Statistics & Math
  • Data Scientist

Solve Markov, OLS-rotation, and coin-toss probability

Company: Voleon

Role: Data Scientist

Category: Statistics & Math

Difficulty: easy

Interview Round: Technical Screen

Answer the following three interview questions. ## 1) Basic properties of a Markov (transition) matrix Let \(P\) be a transition matrix of a (time-homogeneous) Markov chain on \(n\) states. - State the defining properties of \(P\) (stochasticity, non-negativity, etc.). - State key linear-algebra properties that always hold (e.g., eigenvalue facts, stationary distribution existence conditions). - Briefly describe conditions under which \(P^k\) converges as \(k\to\infty\) and what it converges to. ## 2) OLS properties after a rotation (two independent uniforms) You observe i.i.d. data \((x_{i1}, x_{i2}, y_i)\) for \(i=1,\dots,n\), where - \(x_{i1}, x_{i2}\) are independent and identically distributed \(\mathrm{Unif}(-1,1)\) (mean 0), - the data follow a linear model \(y_i = \beta_0 + \beta_1 x_{i1} + \beta_2 x_{i2} + \varepsilon_i\) with \(\mathbb{E}[\varepsilon_i\mid x_{i1},x_{i2}]=0\) and \(\mathrm{Var}(\varepsilon_i\mid x_{i1},x_{i2})=\sigma^2\). You fit OLS with an intercept. Now define a rotated feature vector \[x_i^* = R\,x_i,\qquad x_i = (x_{i1},x_{i2})^\top,\] where \(R\) is a 2D rotation matrix (orthonormal: \(R^\top R=I\)). You refit OLS using \(x_i^*\) (with an intercept). - How do the estimated coefficients transform (relationship between \(\hat\beta\) and \(\hat\beta^*\))? - Are the fitted values \(\hat y\) invariant to this rotation? - Under what conditions (on the design distribution) is the *sampling distribution* of the slope estimator “rotation-invariant” (at least in second moments)? ## 3) Two players flipping coins in parallel A and B flip fair coins simultaneously each round. - A’s stopping time \(T_A\): the first round \(t\ge 2\) at which A has flipped **two consecutive heads** (i.e., A has \(H\) at rounds \(t-1\) and \(t\)). - B’s stopping time \(T_B\): the first round \(t\ge 1\) at which B flips a **tail**. Compute \(\mathbb{P}(T_A < T_B)\). (If both events happen in the same round, that is not counted as “A before B”.)

Quick Answer: This multi-part question evaluates understanding of Markov chain and stochastic matrix properties, linear-algebra facts about eigenvalues and stationary distributions, invariance and sampling-distribution properties of OLS under orthonormal rotations, and discrete stopping-time probability reasoning for coin-flip processes.

Voleon logo
Voleon
Oct 6, 2025, 12:00 AM
Data Scientist
Technical Screen
Statistics & Math
44
0

Answer the following three interview questions.

1) Basic properties of a Markov (transition) matrix

Let PPP be a transition matrix of a (time-homogeneous) Markov chain on nnn states.

  • State the defining properties of PPP (stochasticity, non-negativity, etc.).
  • State key linear-algebra properties that always hold (e.g., eigenvalue facts, stationary distribution existence conditions).
  • Briefly describe conditions under which PkP^kPk converges as k→∞k\to\inftyk→∞ and what it converges to.

2) OLS properties after a rotation (two independent uniforms)

You observe i.i.d. data (xi1,xi2,yi)(x_{i1}, x_{i2}, y_i)(xi1​,xi2​,yi​) for i=1,…,ni=1,\dots,ni=1,…,n, where

  • xi1,xi2x_{i1}, x_{i2}xi1​,xi2​ are independent and identically distributed Unif(−1,1)\mathrm{Unif}(-1,1)Unif(−1,1) (mean 0),
  • the data follow a linear model yi=β0+β1xi1+β2xi2+εiy_i = \beta_0 + \beta_1 x_{i1} + \beta_2 x_{i2} + \varepsilon_iyi​=β0​+β1​xi1​+β2​xi2​+εi​ with E[εi∣xi1,xi2]=0\mathbb{E}[\varepsilon_i\mid x_{i1},x_{i2}]=0E[εi​∣xi1​,xi2​]=0 and Var(εi∣xi1,xi2)=σ2\mathrm{Var}(\varepsilon_i\mid x_{i1},x_{i2})=\sigma^2Var(εi​∣xi1​,xi2​)=σ2 .

You fit OLS with an intercept. Now define a rotated feature vector

xi∗=R xi,xi=(xi1,xi2)⊤,x_i^* = R\,x_i,\qquad x_i = (x_{i1},x_{i2})^\top,xi∗​=Rxi​,xi​=(xi1​,xi2​)⊤,

where RRR is a 2D rotation matrix (orthonormal: R⊤R=IR^\top R=IR⊤R=I). You refit OLS using xi∗x_i^*xi∗​ (with an intercept).

  • How do the estimated coefficients transform (relationship between β^\hat\betaβ^​ and β^∗\hat\beta^*β^​∗ )?
  • Are the fitted values y^\hat yy^​ invariant to this rotation?
  • Under what conditions (on the design distribution) is the sampling distribution of the slope estimator “rotation-invariant” (at least in second moments)?

3) Two players flipping coins in parallel

A and B flip fair coins simultaneously each round.

  • A’s stopping time TAT_ATA​ : the first round t≥2t\ge 2t≥2 at which A has flipped two consecutive heads (i.e., A has HHH at rounds t−1t-1t−1 and ttt ).
  • B’s stopping time TBT_BTB​ : the first round t≥1t\ge 1t≥1 at which B flips a tail .

Compute P(TA<TB)\mathbb{P}(T_A < T_B)P(TA​<TB​). (If both events happen in the same round, that is not counted as “A before B”.)

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Statistics & Math•More Voleon•More Data Scientist•Voleon Data Scientist•Voleon Statistics & Math•Data Scientist 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.