Consider this idea: racism is a manifestation of peoples’ desperate need for certainty.
According to Oxford, certainty is the feeling behind a fact that is definitely true or that is definitely going to take place. Once you are certain about something, it is safe to say that you are in a state of confidence.