KatInterview

Four Quick Probability and Inference Problems

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsorder-statisticscovarianceunbiased-estimation

Last updated

Four short statistics problems: covariance of the min and max of two uniforms, why sample variance divides by n-1, z-test sample size, and a proof of the one-sided Chebyshev bound.

Answer each of the following four parts. Give the result first, then a concise justification.

Part 1: Min and max of two uniforms. Draw two independent random variables, each uniform on the interval from 0 to 1. Let U be the smaller of the two and V the larger. Find Cov(U, V).

Part 2: The n-1 in sample variance. The usual sample variance of observations x_1, ..., x_n is

s² = (1 / (n - 1)) · Σ (x_i − x̄)²

Explain why the divisor is n − 1 and not n. Mention what assumptions your argument needs.

Part 3: Sizing a z-test. You want a z-test with significance level α and power 1 − β to detect a true difference of size Δ. Give the formula for the required sample size, show where it comes from, and list the assumptions behind it. Also say how it changes for a two-sample comparison and for a one-sided test.

Part 4: A one-sided tail bound. Let X have mean μ and variance σ². Prove that for every a > 0,

P(X − μ ≥ a) ≤ σ² / (σ² + a²).

Hints

Hint 1

For Part 1, the pair (U, V) is just (X, Y) sorted, so U·V = X·Y and U + V = X + Y. You only need E[U] from the survival function P(U > u) = (1 − u)².

Hint 2

For Parts 2 and 3, start from the identity Σ(x_i − μ)² = Σ(x_i − x̄)² + n(x̄ − μ)² for Part 2. For Part 3, find the distribution of the test statistic when the true effect is Δ, then set the power equation equal to a normal quantile.

Hint 3

For Part 4, center the variable (Y = X − μ), add a free constant t ≥ 0 before squaring so Markov's inequality applies, and then pick the t that minimizes the resulting bound.