weighted var and std