This is not explained in the movie. In Stephen King’s novel, the woman's name is Mrs. Massey and she committed suicide in the bathtub of room 217. Cast members who “Shine” can see visions of what happened there in the past and are able to see her in that bathroom. Stanley Kubrick doubled much from the novel and we now see 2 woman in the bathroom of a different room, 237.
Click here and go back to my blog with almost 400 interesting pictures from the movie, and read more.