Cosmic Reionization and the 21 cm Signal: Comparison between an Analytical Model and a Simulation