weighted var & std along dimensions