On the Effectiveness of Persistent Homology