What is the ghost train effect and why does it happen?

We have all heard about ghost trains.When you hear a train go down a hill or down a valley, and you see