Answer
Raymond Babbitt, the character played by Dustin Hoffman in the movie "Rain Man," was inspired by Kim Peek, a real-life savant with an extraordinary memory and cognitive abilities. Peek possessed an encyclopedic knowledge of various subjects, could memorize books in a matter of hours, and had an exceptional ability to perform complex calculations mentally.