ESS function

Effective Sample Size (ESS)