KatInterview

OLS Derivation, CLT Approximation, and Kelly Betting

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentslinear-regressioncentral-limit-theoremkelly-criterion

Last updated

Derive the OLS slope estimator, apply the CLT to a Bernoulli sample mean, and find the Kelly-optimal bet fraction for a biased coin.

Setup

This problem has three independent parts. Each can be answered in sequence during a technical screen. Show your work: interviewers care about the reasoning chain, not just the final number.


Part 1: OLS Slope Estimator

You observe n data points $(x_i, y_i)$ generated by the model:

$$y_i = \beta_0 + \beta_1 x_i + \varepsilon_i$$

where the errors $\varepsilon_i$ are i.i.d. with mean zero and constant variance $\sigma^2$, and are independent of the $x_i$.

  1. Starting from the least-squares objective, derive a closed-form expression for $\hat{\beta}_1$.
  2. Write down $\text{Var}(\hat{\beta}_1 \mid x)$ and explain what happens to it as $n \to \infty$, given that $\text{Var}(x)$ is finite and strictly positive.

Part 2: Sample Mean of Bernoulli Trials

Let $X_1, X_2, \ldots, X_n$ be independent Bernoulli random variables, each with success probability $p = 0.6$. Define the sample mean $\bar{X}n = \frac{1}{n}\sum{i=1}^n X_i$.

  1. State the Law of Large Numbers and the Central Limit Theorem as they apply to $\bar{X}_n$.
  2. For $n = 100$, use the Normal approximation to compute $P(\bar{X}_{100} > 0.65)$. Round to four decimal places.

Part 3: Optimal Bet Sizing

You start with a bankroll of $10,000. Each round you bet a fraction $f$ of your current wealth on an event that pays even money (win: gain your stake; lose: lose your stake) with win probability $p = 0.55$.

  1. Define the Kelly Criterion in terms of maximizing expected log-wealth growth, and derive the optimal fraction $f^*$ for even-money bets in general.
  2. Compute $f^$ and the dollar amount wagered on the first round. State the per-round compounded growth rate at $f^$, rounded to four decimal places.

Constraints and notes

  • Use the standard Normal distribution for all approximations; treat $\Phi(1.02) \approx 0.8461$.
  • Express closed-form answers symbolically before substituting numbers.
  • Round numerical answers to four decimal places.
  • Briefly note what breaks if a key assumption is violated for each part.

Hints

Hint 1

For Part 1, take the partial derivative of the sum of squared residuals with respect to β₁, substitute the expression for β̂₀ = ȳ − β̂₁x̄, and simplify by noting that deviations from the mean sum to zero. The result is a ratio of a sample covariance to a sample variance.

Hint 2

For Part 2, the standard deviation of the sample mean is √(p(1−p)/n), not √(p(1−p)). Compute the z-score by centering at p = 0.6 and scaling by that standard deviation before looking up the tail area.

Hint 3

For Part 3, write the expected log-wealth change per round as p·ln(1+f) + (1−p)·ln(1−f) for even-money bets, differentiate with respect to f, set equal to zero, and solve. The answer simplifies neatly to p − q.