Rigidity, Algebraic Statistics and Topological Data Analysis