Factor analysis of transaction data bases