If someone yells at you for no specific reason, make it an absolute priority to ask how their day was going or compliment them. Sometimes when a person acts out against you, it's because they had a bad day or are hurt.
Show them you care, and you may change their entire outlook.