environmental_variance function

Environmental variance