estimateVariance function

Estimate noise variance given predictor X and continuous outcome Y.