Stress and mange are the two most common causes. If it is stress try and find out whats causing it if it is mange take him to the vet and they will tell you treatment.
Eczema is one cause of hair loss in Yorkies if not treated. Another reasons for hair loss are allergies and hot spots. Yorkies have very sensitive skin.