Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Find running median from a stream of integers. Parent comment
Assume V_(n-1) = median(X) for the data stream X_n. Now we have
E[V_n | V_(n-1)] = V_(n-1) + E[signum(V_(n-1) - X_n)]
Proving it'll converge to that value would be harder, though. It'll probably depend on the data being much larger than the step size (which is 1).
There are no comments on this comment yet.
Assume V_(n-1) = median(X) for the data stream X_n. Now we have
but by the definition of the median, the right hand side expectation is 0, so the random process is fixed in expectation.Proving it'll converge to that value would be harder, though. It'll probably depend on the data being much larger than the step size (which is 1).