This question evaluates understanding of statistical concepts such as population versus sample standard deviation and Bessel’s correction, along with practical competencies in implementing rolling time-series computations, handling edge cases like k=1, and documenting/configuring implementation choices in the Statistics & Math domain.
You are implementing a rolling standard deviation over a fixed-size window of length k for a time series. Clarify how to compute standard deviation within each window, which denominator to use and why, how that choice impacts rolling estimates (especially for small k), what to return when k = 1, and how to expose and document this choice in code and tests.
Login required