Probabilistic modeling for network analysis