Meta·Data Scientist·Technical Phone Screen
- You have a 100-post news feed. Option A inserts ads by giving each post an independent 4% chance of being an ad. Option B places exactly one ad per every 25 posts. For both options, calculate the expected number of ads and the variance. Then find the probability that the number of ads exceeds twice the expected count. Finally, estimate the expected number of adjacent ad pairs for each option and compare which is more likely to produce long runs of consecutive ads.
“This is a four-part question dressed up as one, which I did not fully appreciate until I was halfway through the variance calculation and realized I hadn't even thought about the adjacent pairs part yet.”