The variance of a variable X, denoted Var(X) or σ2, is defined as the arithmetic mean of the squares of the deviations of all the observations from their own arithmetic mean: Var(X)=σ2=n1∑i=1n(xi−xˉ)2 Working directly with this definition means computing every deviation (xi−xˉ) and squaring it, which can be tedious. A more convenient computational formula is obtained by expanding the square: Var(X)=n1∑i=1n(xi2−2xixˉ+xˉ2)=n1∑xi2−2xˉ⋅n1∑xi+xˉ2⋅n1∑1 Since n1∑xi=xˉ and n1∑1=1 (there are n terms, each equal to 1, divided by n), this becomes Var(X)=n1∑xi2−2xˉ2+xˉ2=n1∑xi2−xˉ2 So the two formulas σ2=n1∑(xi−xˉ)2 and σ2=n1∑xi2−xˉ2 are math …