The movie Inside Out does a great job of representing the formation of personality. It shows how the different parts of the brain work together to form a person's personality.