As a learner of English I know that yes is a standard variant and the other two are informal, spoken words. I know nothing more about it, and always try using the yes variant, just to not sound inappropriate. But I'd like to be able to not sound too formal in a casual conversation.
Could you help me understand the differences between these words and the contexts in which it is okay to use them?