Skip to main content
Log in

A statistical method for estimating piecewise linear sales trends

  • Original Article
  • Published:
Journal of Marketing Analytics Aims and scope Submit manuscript

Abstract

Due to the structural breaks in time series, estimated current trend of product sales differs between the case where data for the entire span are used and the case where only the most recent data are used. The purpose of this study is to establish the piecewise linear approximation (PLA) as a trend analysis method that accounts for the structural breaks. PLA uses the complete data to simultaneously estimate the breakpoints and the continuously connected trends, immediately before and after the break. Thus, PLA not only ensures the ease of interpretation of the results, but also eliminates the probability of using discretion by uniquely determining the current trend, making the estimated result reliable. The case study demonstrates the proposition that, several products’ sales trends and the necessity of determining an appropriate time span for data analysis, underwent changes at least once. The method’s validity is demonstrated by showing the changes of the sales trends immediately after analyzed store’s renovation. Data collection from the time period immediately prior to a structural break can help identify the factors changing the product sales.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7

Similar content being viewed by others

Data availability

Not applicable.

Code availability

Not applicable.

References

  • Ando, T. 2008. Measuring the baseline sales and the promotion effect for incense products: A Bayesian state-space modeling approach. Annals of Institute of Statistical Mathematics 60: 763–780.

    Article  Google Scholar 

  • Armstrong, J.S., K.C. Green, and A. Graefe. 2015. Golden rule of forecasting: Be conservative. Journal of Business Research 68 (8): 1717–1731.

    Article  Google Scholar 

  • Bratina, D., and A. Faganel. 2008. Forecasting the primary demand for a beer brand using time series analysis. Organizacija 41 (3): 116–124.

    Article  Google Scholar 

  • Breur, T. 2011. Data analysis across various media: Data fusion, direct marketing, clickstream data and social media. Journal of Direct, Data and Digital Marketing Practice 13: 95–105.

    Article  Google Scholar 

  • Cao, H., and P. Folan. 2012. Product life cycle: The evolution of a paradigm and literature review from 1950–2009. Production Planning & Control 23 (8): 641–662.

    Article  Google Scholar 

  • Chow, G.C. 1960. Tests of equality between sets of coefficients in two linear regressions. Econometrica 28 (3): 591–605.

    Article  Google Scholar 

  • Dekimpe, M.G., and D.M. Hanssens. 1995. Empirical generalizations about market evolution and stationarity. Marketing Science 14 (3): 109–121.

    Article  Google Scholar 

  • Green, K.C., and J.S. Armstrong. 2015. Simple versus complex forecasting: The evidence. Journal of Business Research 68 (8): 1678–1685.

    Article  Google Scholar 

  • Hadad, Y., B. Keren, and G. Gurevich. 2017. Improving demand forecasting using change point analysis. International Journal of Business Forecasting and Marketing Intelligence 3 (2): 130–151.

    Article  Google Scholar 

  • Karl, T.R., R.W. Knight, and B. Baker. 2000. The record breaking global temperatures of 1997 and 1998: Evidence for an increase in the rate of global warming? Geophysical Research Letters 27 (5): 719–722.

    Article  Google Scholar 

  • Mahajan, V., S.I. Bretschneider, and J.W. Bradford. 1980. Feedback approaches to modeling structural shifts in market response. Journal of Marketing 44 (1): 71–80.

    Article  Google Scholar 

  • Maheu, J.M., and T.H. McCurdy. 2000. Identifying bull and bear markets in stock returns. Journal of Business & Economic Statistics 18: 100–112.

    Google Scholar 

  • Mahmoud, E., R. Gillian, and K.M. Naresh. 1988. Emerging issues in sales forecasting and decision support systems. Journal of the Academy of Marketing Science 16: 47–61.

    Article  Google Scholar 

  • McNown, R., A. Rogers, and J. Little. 1995. Simplicity and complexity in extrapolation population forecasting models. Mathematical Population Studies 5 (3): 235–257.

    Article  Google Scholar 

  • Muggeo, V.M.R. 2008. Segmented: An R package to fit regression models with broken-line relationships. R News 8 (1): 20–25.

    Google Scholar 

  • Park, S., and S. Gupta. 2011. A regime-switching model of cyclical category buying. Marketing Science 30 (3): 469–480.

    Article  Google Scholar 

  • Pauwels, K., and D.M. Hanssens. 2007. Performance regimes and marketing policy shifts. Marketing Science 26 (3): 293–311.

    Article  Google Scholar 

  • Perron, P. 2006. Palgrave handbook of econometrics, vol. 1: Econometric theory. In Dealing with structural breaks, ed. K. Patterson and T.C. Mills, 278–352. London: Palgrave Macmillan.

    Google Scholar 

  • Polli, R.E., and V. Cook. 1969. Validity of the product life cycle. The Journal of Business 42: 385–400.

    Article  Google Scholar 

  • Sichel, B. 2008. Forecasting demand with point of sales data—A case study of fashion products. Journal of Business Forecasting 27 (4): 15–16.

    Google Scholar 

  • Silvapulle, M.J., and P.K. Sen. 2004. Constrained statistical inference: Order, inequality, and shape constraints. New York: Wiley.

    Google Scholar 

  • Suarez, L., N. Hugo, and C.M. Paris. 2020. Understanding Japanese consumer behaviour and cultural relevance of gift giving. African Journal of Hospitality, Tourism and Leisure 9 (1): 1–18.

    Google Scholar 

  • Tomé, A., and P.M.A. Miranda. 2004. Piecewise linear fitting and trend changing points of climate parameters. Geophysical Research Letters 31 (2): L02207.

    Article  Google Scholar 

  • Udokporo, C.K. 2021. Product life cycle—Opportunities for digital and sustainable transformation. In Understanding the stages of the product life cycle, ed. A. Petrillo and F. De Felice, 1–9. New York: IntechOpen.

    Google Scholar 

Download references

Acknowledgements

The authors especially thank Dr. Yutaka Fukuyama and Ms. Yukari Kobayashi of Tottori Prefectural Government for their great cooperation in the analysis.

Funding

This research was supported by research grants from Tottori University, Japan.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Taku Moriyama.

Ethics declarations

Conflict of interest

The authors declare no conflict of interests.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Appendices

Appendix 1

The piecewise linear function’s objective variable \(y\), explanatory variable \(x\), and \(m\) breaking points \({\psi }_{1},\dots ,{\psi }_{m}\), are given by the following Eq. (1)

$$y = \alpha + \beta_{0} x + \mathop \sum \limits_{s = 1}^{m} \beta_{s} \left( {x - \psi_{s} } \right)_{ + } ,$$
(1)

where

$$\left( z \right)_{ + } : = \left\{ \begin{gathered} z\quad z \ge 0 \hfill \\ 0\quad z < 0. \hfill \\ \end{gathered} \right.$$
(2)

Appendix 2

This study regards explanatory variable \(x\) as time \(t\) and applies the piecewise linear approximation to time-series data. Suppose the time interval is 7 days, \(T\) is the period, the objective variable \({y}_{t}\) is on sale on the \(t\)-th week, and satisfies the following,

$$y_{t} = \alpha + \beta_{0} t + \mathop \sum \limits_{s = 1}^{m} \beta_{s} \left( {t - \psi_{s} } \right)_{ + } + \varepsilon_{t} ,$$
(3)

where the error term \({\varepsilon }_{t}\) is independent and identically normally distributed.

Appendix 3

The piecewise linear model’s parameters \(\left(\alpha ,{\beta }_{0},\dots ,{\beta }_{m},{\psi }_{1},\dots ,{\psi }_{m}\right)\) estimated by the least-squares method, minimize the following squares error.

$$\mathop \sum \limits_{t = 1}^{T} \left\{ {y_{t} - \alpha - \beta_{0} t - \left( {\mathop \sum \limits_{s = 1}^{m} \beta_{s} \left( {t - \psi_{s} } \right)_{ + } } \right)} \right\}^{2} .$$
(4)

Number of breaks \(m\) in the piecewise linear model is determined based on AIC (Akaike’s Information Criterion), which is given by

$${\text{AIC}} = - 2{\text{ln}}L + 2k,$$
(5)

where \(L\) is the maximum value of the likelihood function and \(k\) is the number of the model.

Appendix 4

The recent trend is defined by

$$\mathop \sum \limits_{s = 0}^{m} \beta_{s} .$$

If \({y}_{t}\) satisfies equation (3), the least-squares estimator is normally distributed. The t value is obtained from Muggeo (2008).

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Moriyama, T., Kuwano, M. & Nakayama, M. A statistical method for estimating piecewise linear sales trends. J Market Anal (2023). https://doi.org/10.1057/s41270-023-00207-9

Download citation

  • Revised:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1057/s41270-023-00207-9

Keywords

Navigation