Statistics for Error-correcting coders with variable length and non-uniform errors