O'Reilly logo

Practical Data Analysis - Second Edition by Dr. Sampath Kumar, Hector Cuesta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required