Intermediate Algebra for Statistics