sshape function

s shape statistic of (im)balance.