Calculate the error to detect a single head of household

@konanstephanenekoffi, maybe you could also try this approach that has been discussed previously: