Lesson 20. Capstone: Time series

This capstone covers

  • Learning the basics of time-series analysis
  • Combining multiple time series with Monoid and Semigroup
  • Using Map to solve problems of duplicate values in a time series
  • Avoiding errors involving missing values by using Maybe

In this capstone, you’ll model time-series data by using tools you’ll build in Haskell. Time-series data is, in theory, relatively simple: it’s a series of values and dates for each piece of data. Figure 20.1 presents sales data from the Box & Jenkins data set that’s commonly used to demonstrate a time series (the data used in this capstone is also a subset of the first 36 months of this same data).

Figure 20.1. An example of time-series data for sales

Although conceptually ...

Get Get Programming with Haskell 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.