Before we learn about linear regression we first learn the equation of a line / hyperplane. Of course the same can be said with regards linear classification, the linear autoencoder, etc., as well as their nonlinear extensions: we need to have a basic understanding of fundamental mathematical models before we try to perform supervised / unsupervised learning (on static datasets) using them. In this Section and the one that follows we introduce dynamic systems, which are the basic modeling tools used to model dynamic datasets - that is ordered data (often ordered in time). These modeling tools are used throughout virtually all fields of science, engineering, and mathematics, just as the line / hyperplane, polynomials, the relu
and tanh
functions, etc., are. Once we have a firm grasp on how these models we can then use them to perform e.g., supervised learning - much in the same way we fit a hyperplane to data when performing linear regression by tuning its paramters via the minimization of a cost function.
In this Section we introduce the most fundamental dynamic systems model: the dynamic system with fixed order.
Suppose we have a time series like the one shown below. As discussed first in Chapter 14 in the context of convolutional networks, when analyzing such time series for trends it is quite common to first smooth them. One way to do this is via a moving average - wherein we take a small window and slide it along the time series from its start to finish and average the values inside. Taking the average inside of each little window tends to cancel out noisy values, resulting in a smoothed version of the original series that is easier to study. Below we animate the process of building a moving average, and as you move the slider from left to right you will see the window in which each average is computed, which strattled on both sides by vertical blue bars, move from left to right across the series with the resulting moving average shown as a pink series.