Modeling of persistent homology