Testing a better way of calculating p(type,signal)