I really didn't understand the ending of the movie "The House on Pine Street". I don't even know whether there really were supernatural events happening or it was all on her mind. Can someone explain?
This Director/Writer interview would seem to answer your questions
Was it all in her mind?
No. It's a haunted house. It's not in her mind, genuinely supernatural things are happening.
Why is the ghost there?
The Directors intentionally left the ending (and indeed the whole reasoning behind the ghost being stuck in the house) intentionally vague as a way of fighting back against what they see as an annoying tendency in modern ghost-horror films to overexplain why there are ghosts and how to get rid of them.