User blog comment:Rose Hunter/Hogwarts Houses/@comment-26958589-20160301120636/@comment-26958589-20160301135552

Forgive me, I meant to type Ravenclaw for Hermione, I'm not sure why I wrote Gryffindor!

No, I agree. They are parts of their personality but not immediate parts of them. It has a lot to do with what a person can be but might not currently be (like Neville), what they want to be/who they admire (like with Peter Pettigrew) and what they value (Like Hermione).

Hermione is a super obvious example, because her immediate surface traits are to do with her being smart. She is the brightest witch of her age, and the thing she brings to the table is her smarts. However, the Sorting Hat can see beyond surface traits and can see what she values. She values bravery and that can affect the way she acts (as you have pointed out), which is why she is in Gryffindor, not Ravenclaw. Often the traits you can value can dictate the way you act, which is why many people think it's based only on personality.