running average envelope fig
estimating length of chain