Statistical data transformation