Compute the root mean square error. Assumes that knownValues and predictedValues contain numerical values, rather than categorical data.