The study of the interactions that determine the distribution and abundance of groups of organisms of the same species.