O'Reilly logo

Get Programming with Haskell by Will Kurt

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

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

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