Study of dispersion and its relationship with power confinement in a single-mode optical fiber