Actually, The Lodger started out as a novel written by a female author,Marie Belloc Lowndes, just prior to WW1. I just finished listening to the audiobook version in fact.
The novel is sort of a pioneer in the true crime thriller genre, and still holds your interest even after many years. The killer in the novel is known as the Avenger, but is clearly based on Jack The Ripper.

Hitchcock filmed it as a silent- and it has been remade two other times. The more famous one is the 1944 version with Laird Cregar.
IIRC- and I'm not completely sure on this- the ending varies from version to version.