Chapter 7.  Predicting Gold Prices

In this chapter, you will be introduced to the basic concepts of Time Series Data and Regression. First, we distinguish some of the basic concepts such as Trend, Seasonality, and Noise, along with the principles of Lineal Regression using the Python library scikit-learn. Then, we will introduce the Historic Gold Prices time series and see how to perform a nonlinear forecast using Kernel Ridge Regression. Later, we will present a regression using the smoothed time series as the input.

This chapter will cover the following topics:

  • Working with time series data
  • Lineal regression
  • The data: historical gold prices
  • Nonlinear regression
  • Kernel Ridge Regression
  • Smoothing the gold prices time series
  • Predicting in the smoothed ...

Get Practical Data Analysis - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.