categorical inference