Biodiversity is a measure of the complexity of interactions in a given habitat or ecosystem. The greater the number of species and number of interactions/complexity, the greater the biodiversity and ability of an ecosystem or habitat to survive and adapt to environmental pressures. Ecological productivity is a measure of the rate of generation of biomass or carbon per area of habitat or ecosystem. The more biomass (living organisms and organic matter) produced, the greater the productivity.