streaming statistical calculations for node