IDEAS home Printed from https://ideas.repec.org/h/spr/sprchp/978-3-031-31636-4_3.html

Trend and Seasonality Model Learning with Least Squares

In: Data Driven Model Learning for Engineers

Author

Listed:
  • Guillaume Mercère

    (Université de Poitiers)

Abstract

In this chapter, a specific attention is paid to the determination of parametric models of the time series deterministic components: the trend and the seasonal patterns. In order to reach this goal, least squares data fitting methods are favored in this chapter. By least squares data fitting, we mean solutions that determine the unknown parameters of a parametric mathematical function by minimizing the sum of squared differences between the observed data and the fitted outputs provided by the model. Herein, it is more precisely shown that: The linear least squares approach should be considered when the model to determine is linear with respect to the unknown parameters. When N > n θ $$N > n_\theta $$ and rank ( Φ ) $$\text{rank}{(\boldsymbol {\varPhi })}$$ , the linear least squares solution is analytically equivalent to the solution to the normal equations Φ ⊤ Φ θ = Φ ⊤ y $$\boldsymbol {\varPhi }^\top \boldsymbol {\varPhi } \boldsymbol {\theta } = \boldsymbol {\varPhi }^\top \boldsymbol {y}$$ . The linear least squares solution is unique if N ≥ n θ $$N \geq n_\theta $$ and Φ $$\boldsymbol {\varPhi }$$ has full rank. If Φ $$\boldsymbol {\varPhi }$$ has full rank and has the QR factorization Φ = Q R $$\boldsymbol {\varPhi } = \boldsymbol {Q} \boldsymbol {R}$$ , then the linear least squares solution can be found by back substitution R θ = Q ⊤ y $$\boldsymbol {R} \boldsymbol {\theta } = \boldsymbol {Q}^\top \boldsymbol {y}$$ . By using the SVD of Φ $$\boldsymbol {\varPhi }$$ , the minimum norm solution of the linear least squares problem is given by V Σ † U ⊤ y = ∑ i = 1 r u i ⊤ y σ i v i $$\boldsymbol {V} \boldsymbol {\varSigma }^\dagger \boldsymbol {U}^\top \boldsymbol {y} = \sum _{i = 1}^r \frac {\boldsymbol {u}_i^\top \boldsymbol {y}}{\sigma _i} \boldsymbol {v}_i$$ , where r = rank ( Φ ) $$r = \text{rank}{(\boldsymbol {\varPhi })}$$ . The SVD of Φ $$\boldsymbol {\varPhi }$$ is the tool to use to determine the condition number of Φ $$\boldsymbol {\varPhi }$$ . When the initial linear least squares problem is ill conditioned, the user can either change the basis functions composing Φ $$\boldsymbol {\varPhi }$$ or use a regularization approach to lead to better fits and less ill conditioned linear least squares problems. When nonlinear models are involved, iterative minimization algorithms must be used to determine the unknown parameter vector θ $$\boldsymbol {\theta }$$ . For nonlinear least squares problem, the Levenberg–Marquardt method (also known as the damped nonlinear least squares method) is the generic algorithm used in many software applications for solving curve fitting problems. Because the Levenberg–Marquardt method finds only a local minimum, a specific attention must be paid to the initialization in order to guarantee that, in the end, the estimated local minimum is the global minimum of the nonlinear least squares cost function. Resampling techniques such as the K-fold procedure can be used for ( i ) $$(i)$$ assessing how the results of a linear least squares minimization problem can generalize to an independent data set and ( i i ) $$(ii)$$ tuning the hyperparameters used in the linear least squares solutions. Model order selection can be performed by resorting to information criteria such as the famous AIC.

Suggested Citation

  • Guillaume Mercère, 2023. "Trend and Seasonality Model Learning with Least Squares," Springer Books, in: Data Driven Model Learning for Engineers, chapter 0, pages 31-71, Springer.
  • Handle: RePEc:spr:sprchp:978-3-031-31636-4_3
    DOI: 10.1007/978-3-031-31636-4_3
    as

    Download full text from publisher

    To our knowledge, this item is not available for download. To find whether it is available, there are three options:
    1. Check below whether another version of this item is available online.
    2. Check on the provider's web page whether it is in fact available.
    3. Perform a
    for a similarly titled item that would be available.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:spr:sprchp:978-3-031-31636-4_3. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.