Projection with the wrong Inner Product and its Application to Regression with Correlated Errors and Linear Filtering of Time Series