In a lot of cases, a ghost will go wherever the person they are haunting is, or wherever their loved possesion is.
If a ghost's home stays the same after they die, for example, if their family closes up their room and never goes in it again, it would be the same. Then they would think they are still alive.