I think it's appearances, amount of friends you have and how generally good/bad your school is on tackling bullying that matters. I wouldn't really say it was bullying, but a few guys have made fun of me because of my race and my sheer nerdiness. Those guys have now left my school or stopped teasing me because they just realized they have no hope in the future i.e. getting a decent job.
As for popularity, I've befriended one of the most popular people in my year, and if friends of a friend help you out, it's fine.
As for how good/bad the school deals with bullying, it can vary. When it comes to bullying, my high school is as shit as my toilet after fajita night. Let's say person A punched person B in the face, both persons A and B were to have detention everyday for an entire week.
I go to Derp High School by the way.