KatInterview

Shared vs. split queues, height mixtures, and shrinkage bias

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsqueueing theorydistributionsmixture models

Last updated

Compare a single bank queue with separate lines, reason about height and social-degree distributions, and check whether lasso and ridge estimators are unbiased.

This is a multi-part statistics screen. Answer each part with a clear position, the reasoning behind it, and a few numbers where they help.

1. Queueing design. A bank has 5 tellers and can be set up in one of two ways:

  • Setup A: all 5 tellers draw from a single shared line.
  • Setup B: each teller has a dedicated line.

Assume customers arrive at random, the tellers are similar but not identical in speed, each line is served first-come-first-served, and a few customers take much longer than the rest. As a customer, which setup would you join? Compare the two on expected waiting time, variance of waiting time, and fairness. For a numerical check, assume total arrivals are Poisson with rate 4 per minute, and each teller serves at rate 1 per minute with exponential service times.

2. Adult heights. Describe the distribution of adult heights for US men and, separately, for US women. Give rough shape and parameters.

3. Pooled heights. If you combine men and women and ignore sex, what does the combined distribution look like? Is it bimodal?

4. Social network degree. On a platform like LinkedIn, describe the distribution of the number of connections per user. Is it symmetric, left-skewed, or right-skewed? Justify it.

5. Summary statistics. For that connections distribution, how do the mean, median, and mode compare? If someone asks you to estimate the mean, what factors would drive it?

6. Shrinkage bias. Are the lasso (L1) and ridge (L2) estimators unbiased? Explain.

Hints

Hint 1

For part 1, compare the two setups as queueing models: one pooled M/M/5 system versus five independent M/M/1 systems at the same total load. Work out the wait for each, then reason about why pooling helps.

Hint 2

For part 3, check the condition under which a 50/50 mixture of two equal-variance normals has two peaks. The answer depends on the gap between means measured in standard deviations.

Hint 3

For part 6, work in the orthonormal design case, where X'X = I. Both estimators then have a closed form, and you can compare each to the true coefficient to see the bias.