Sequential analysis of dependent observations. I