Inference and Prediction for High Dimensional Data via Penalized Regression and Kernel Machine Methods