Biodiversity is the various types of organisms in the ecosystem. Genetic diversity, species diversity and ecosystem diversity are three important components of biodiversity. Genetic diversity takes into account the genetic variations present in a species whereas ecosystem diversity refers to types of ecosystem present on earth. Species diversity refers to species richness.