iterates through different categories, compares with log cauchy formula