Model-Free Prediction and Regression: A Transformation-Based Approach to Inference