Statistical Codes