Python Exercise
Let's put into practice what we've learned in this chapter so far. We'll be doing a model in Prophet, a Markov Switching model, a Fuzzy time-series model, and a BSTS model.
Let's get started with Prophet!
Prophet
First, let's make sure we have everything installed that we need. Let's quickly install the required libraries. We can do this from the terminal (or similarly from the Anaconda navigator):
pip install -U pandas-datareader plotly
You'll need a recent version of pandas-datareader, otherwise you might get a RemoteDataError
.
We'll use the Prophet model through Facebook's Prophet library. Let's install it:
pip install prophet
Once this is done, we are set to go.
In this example, we'll use the daily Yahoo closing stock values in this chapter that we used in several examples in Chapter 7, Machine Learning Models for Time-Series.
To recap, we can download the daily Yahoo...