I don't think there is an exact answer for this. The developers keep the formulas used in the ratings system for themselves. However, from what I experienced, as long as you do good at all battles at your current rank, when you rank up, your rating will increase significantly. Premium also affects your ratings in some cases but this is just my experience, not coming from the game developers.
Customer support service by UserEcho