Comedians have varying levels of training. It can range from classically trained actors (like Robin Williams) to people who took comedy classes to folks who just started doing it. That’s the beauty of comedy: it’s close to a pure meritocracy.