Equations for statistical calculations