Sometimes a character is really based on research that you do. Other times it's just based on your imagination or perhaps your conversation with the director. Or sometimes all of the above. It depends on the movie and character.
There are kids who get on a BMX bike when they're eight years old and they go...
Television contracts the imagination and radio expands it.
Oh literature oh the glorious Art how it preys upon the marrow in our bones. It scoops the stuffing out of us and chucks us aside. Alas!