compare two beta hat