Advanced techniques with simple Python code By the end of this story you will understand how to use the popular Python library Scikit-Learn to predict gold prices. We will compare a linear regression model with a train / test split to a model trained using a rolling out-of-sample dataset. TABLE OF CONTENTS: Use the Pandas library to read our csv dataset. Import ‘Linear Regression’ from Scikit-Learn. Create ‘Return’ and ‘Lagged Return’ columns. Plot USD value of Gold.