I have a digital signal of fixed length (e.g. 100 samples). Somewhere within this signal is a contiguous region characterized by "low variance". The remainder of the signal is characterized by significantly higher variance.
Here is an example:
I need to estimate the start-time and end-time of the "low variance" region. So, in the example above, the ideal outcome would be to estimate that the "low variance" region starts at time 14 and ends at time 38.
My first idea was to exhaustively search (2D) for the start-time $t_0$ and end-time $t_1$ that maximize the difference between the variances of the two guessed regions: $$ \text{metric} = \text{var}(\boldsymbol{x}_\text{high}) - \text{var}(\boldsymbol{x}_\text{low}) $$
where $\boldsymbol{x}_\text{low}$ denotes the vector of samples in the presumed "low variance" region (between guess $\hat{t}_0$ and guess $\hat{t}_1$), and $\boldsymbol{x}_\text{high}$ denotes the vector of other samples.
However, that idea doesn't work well at all. It tends to underestimate the width of the "low variance" region because adding a few samples of the "low variance" region to the "high variance" region can increase $\text{var}(\boldsymbol{x}_\text{high})$.
I also considered maximizing $\left|\text{mean}(\boldsymbol{x}_\text{high}) - \text{mean}(\boldsymbol{x}_\text{low})\right|$, but that fails if the two regions have similar means (which can happen).
What would be a better algorithm for finding this "low variance" region?