plot variance and deviation of w over dimensions