Fourier Analysis For Demand Forecasting in A Fashion Company
Fourier Analysis For Demand Forecasting in A Fashion Company
DOI: 10.5772/56839
© 2013 Fumi et al.; licensee InTech. This is an open access article distributed under the terms of the Creative
Commons Attribution License (http://creativecommons.org/licenses/by/3.0), which permits unrestricted use,
distribution, and reproduction in any medium, provided the original work is properly cited.
Where k = N/2.
www.intechopen.com Andrea Fumi, Arianna Pepe, Laura Scarabotti and Massimiliano M. Schiraldi: 3
Fourier Analysis for Demand Forecasting in a Fashion Company
time buckets. On top of this, product sales are often Clearly, θk may easily differ from item to item. Despite
grouped by category or sub-category and/or shops are choosing a unique θ = θk ∀k, it may provide acceptable
grouped by market region. Thus, forecasts are first results through an easier and more straightforward
calculated at an aggregated level and then the volumes procedure, and a first tuning analysis is advisable,
are brought back to the most appropriate level of detail particularly when product categories drastically differ
through heuristic ratios. Hence, after having chosen the (e.g., purses, scarves and coats all belong to the general
most appropriate time bucket and product aggregation, a “women fashion products” category but may show very
10-step procedure to attain an accurate forecast through different sales patterns over the same time period). In the
Fourier analysis is employed, as follows: following section, the application of the procedure is
1. Extract the historical series of data related to the shown with two examples of the use of Fourier analysis
item to be analysed over a significant time interval to forecast the sales in the trolley category and the belt
(e.g., 4 years); category.
2. Divide the data into two subsets: a calibration data
set (e.g., the first 3 years) and a validation data set 4. Application to fashion products
(e.g., the 4th year), which allows the quality of the
results to be analysed; the calibration set should be This section presents the application of Fourier analysis to
composed of N values (e.g., in Excel, N needs to be a calculate the sales forecasts for a medium- to large-sized
power of two); Italian fashion company operating in the women’s
3. Calculate a linear trend of the series of the textiles, apparel and clothing sectors. Several product
calibration set and subtract it from the data series categories were analysed and, as a result, the application
[68] (e.g., in Excel, the TREND function may help); of the proposed method generally yielded more accurate
4. Calculate the FFT on the detrended data (e.g., in forecasts in comparison with two of the most commonly-
Excel, the Fourier analysis tool gives a range of used approaches based on moving average and
complex numbers); exponential smoothing. Two examples are presented
5. Create the frequency spectrum by calculating, for here: the trolley sub-category and the belt sub-category.
each of the first N/2 components, their amplitude The Fourier analysis applied to the historical series of the
and phase (e.g., in Excel, using (1) and (2) in the former returned a much more precise forecast, while with
complex numbers’ range); the latter the forecasting error was comparable with that
6. Except for f0, order the f1… fN/2 components in a obtained with the other two approaches. In all cases, the
decreasing order of amplitude; historical series included the calibration data set (sales
7. Perform the inverse Fourier transform N/2 times (or during 2007, 2008 and 2009) and the validation data set
sum the wave components), taking into account (sales during 2010). With the moving average and
each of the N/2 components progressively, starting exponential smoothing techniques, the traditional
from f0 up to the N/2-th; approaches [70] were used to calculate weekly ratios
8. Re-apply the eliminated trend, calculated in step 3, using three periods of historical data (2007, 2008 and
to each of the N/2 inverse Fourier transforms; 2009). The forecast (α) parameter in the exponential
9. Compare the validation data set with each of the smoothing was chosen in a different way in each case, by
N/2 inverse Fourier transforms, calculating the using the one that returned the best results. In the Fourier
forecast error with the preferred method [69] (e.g., analysis, since the input range must be a power of two,
mean absolute percentage error, MAPE). the calibration set was reduced to the period from
10. Choose the most appropriate number of wave 19/07/2007 to 31/12/2009 - i.e., N = 128 weeks - while the
components to consider in order to minimize the error. validation set was kept the same (from 01/01/2010 to
31/12/2010). As the sampling frequency is equal to fc = 1
ଵ
Note that this 10-step procedure needs to be performed week, the spectral resolution is equal to ο݂ ൌ ଵଶ଼. Despite
only the first time a given item k (product, category, that the Fourier analysis operated within a smaller
subcategory, etc.) is analysed. This is because, once the historical data range, the forecast turned out to be more
most appropriate number of wave components to be accurate, as may be seen in the following cases.
applied has been chosen (say, θk), to further improve the
forecast, steps 6, 7, 8, 9 and 10 can be substituted with the 4.1 The trolley sub-category
following: The calibration data set of the trolley sub-category sales is
6. Perform the inverse Fourier transform, taking into shown in Figure 2.
account f0 and the first θk components with
decreasing amplitude; Starting from f0, the other components in the spectrum
7. Re-apply the eliminated trend, calculated in step 3, were sorted by decreasing amplitude, according to step 6
to the inverse Fourier transform calculated in the in the mentioned procedure. The result is shown in
previous step 6. Figure 4.
40 60%
30 40%
20 20%
10
0%
0
1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58 61 64
Fo
0.01
0.02
0.02
0.03
0.04
0.05
0.05
0.06
0.07
0.08
0.09
0.09
0.10
0.11
0.12
0.13
0.13
0.14
0.15
0.16
0.16
0.17
0.18
0.19
0.20
0.20
0.21
0.22
0.23
0.23
0.24
0.25
0.26
0.27
0.27
0.28
0.29
0.30
0.30
0.31
0.32
0.33
0.34
0.34
0.35
0.36
0.37
0.38
0.38
0.39
0.40
0.41
0.41
0.42
0.43
0.44
0.45
0.45
0.46
0.47
0.48
0.48
0.49
Figure 3. Frequency spectrum computed on the calibration data set. Figure 5. MAPE for all of the 64 possible forecasts.
Frequencies
the same period of the previous season; on the contrary, the
Figure 4. Components ordered by decreasing amplitude Fourier analysis forecast tends to confirm only those
(the first is f0). increments that are recorded cyclically.
Then, N/2 inverse Fourier transforms can be calculated These results are confirmed by the numerical comparison
using different numbers of components, as mentioned in shown in Table 2, where the Fourier analysis is shown to
step 7 of the procedure described. Next, the trend is yield a much smaller error, both in terms of MAPE and
applied to each of them and the results are compared MAD (the exponential smoothing α parameter was set to
with the validation set. Figure 5 shows the MAPE index its best value, α = 0.96).
for each of the N/2 possible forecasts: the smallest error is
Forecasting technique MAD MAPE
recorded using 6 components, thus θtrolley = 6.
Moving average 38.0 104.0%
Trolley
www.intechopen.com Andrea Fumi, Arianna Pepe, Laura Scarabotti and Massimiliano M. Schiraldi: 5
Fourier Analysis for Demand Forecasting in a Fashion Company
Forecasting results comparison
Components ordered by decreasing amplitude
Fourier
400 Validation data set 1200
350 Mov average
1000
Exp smoothing
300
800
250
units
200 600
150
400
100
50 200
0 0
129 132 135 138 141 144 147 150 153 156 159 162 165 168 171 174 177 180
0.04
0.08
0.13
0.06
0.09
0.09
0.15
0.30
0.10
0.13
0.03
0.02
0.18
0.19
0.34
0.22
0.26
0.14
0.40
0.07
0.27
0.44
0.12
0.38
0.05
0.48
0.23
0.17
0.11
0.16
0.36
0.05
0.30
0.34
0.48
0.20
0.47
0.37
0.02
0.21
0.41
0.33
0.46
0.41
0.45
0.32
0.25
0.38
0.45
0.42
0.24
0.16
0.31
0.29
0.43
0.28
0.49
0.01
0.27
0.35
0.39
0.20
0.23
Fo
Weeks Frequencies
8000 60%
40%
6000
20%
4000 0%
2000 1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58 61 64
Number of considered components
0 Figure 10. MAPE index for all 64 possible frequencies.
15
22
29
36
43
50
57
64
71
78
85
92
99
106
113
120
127
1
8
Weeks
It is clear that, in this example, the forecasts gave more
Figure 7. calibration data set of belt sub-category sales (in units)
accurate results compared to the trolley case depicted in
The Fast Fourier Transform yielded the frequency Figure 5: the smallest error is recorded using 17
spectrum shown in Figure 9.
components, thus θbelt = 17. Figure 11 shows the
Belt sub-category sales spectrum comparison between the forecasts attained through
Fourier analysis, exponential smoothing and moving
1200
average. In this case, despite the fact that the Fourier
1000
analysis followed the validation data set more accurately,
800 the difference between the suggested method and the
600 results attained with the moving average and the
exponential smoothing techniques is not as clear as in the
400
trolley case. In terms of MAD and MAPE, the numerical
200
values are shown in Table 3 (the exponential smoothing α
0 parameter was set to its best value, α = 0.98).
0.01
0.02
0.02
0.03
0.04
0.05
0.05
0.06
0.07
0.08
0.09
0.09
0.10
0.11
0.12
0.13
0.13
0.14
0.15
0.16
0.16
0.17
0.18
0.19
0.20
0.20
0.21
0.22
0.23
0.23
0.24
0.25
0.26
0.27
0.27
0.28
0.29
0.30
0.30
0.31
0.32
0.33
0.34
0.34
0.35
0.36
0.37
0.38
0.38
0.39
0.40
0.41
0.41
0.42
0.43
0.44
0.45
0.45
0.46
0.47
0.48
0.48
0.49
Fo
Frequencies
The differences between the results obtained in the trolley
Figure 8. frequency spectrum calculated on calibration data set
and belt cases originate from the specific patterns of their
historical time series. As may be seen comparing Figure 2
Starting from f0, the other components in the spectrum with Figure 7, the belt sub-category historical sales show
were sorted by decreasing amplitude, according to step 6 a much clearer cyclic pattern, with periodic peaks
in the mentioned procedure. The results are shown in repeating over time and gradually decreasing in value. In
Figure 9. the belt sub-category, both the moving average and the
exponential smoothing methods were able to capture the
The results for all 64 possible frequencies, expressed by pattern’s cyclicality, despite the decreasing trend in the
the index MAPE, are represented in Figure 10. peak values not being perfectly forecast, as would be
expected when using these original techniques [19]. On
the other hand, the trolley sub-category historical sales
pattern was more irregular, with a sudden high peak of
www.intechopen.com Andrea Fumi, Arianna Pepe, Laura Scarabotti and Massimiliano M. Schiraldi: 7
Fourier Analysis for Demand Forecasting in a Fashion Company
[7] Fisher ML, Hammond JH, Obermeyer WR, Ramen A. [21] Yu Y, Hui CL, Choi TM. (2012) An empirical study of
(1994) Making Supply Meet Demand in an Uncertain intelligent expert systems on forecasting of fashion
World. Harvard Business Review. May-June 1994: color trend. Expert Systems with Applications. 39(4):
83-93. 4383–4389.
[8] Xia M, Zhang Y, L. W, Ye X. (2012) Fashion retailing [22] Au KF, Choi TM, Yu Y. (2008) Fashion retail
forecasting based on extreme learning machine with forecasting by evolutionary neural networks.
adaptive metrics of inputs. Knowledge-Based International Journal of Production Economics.
Systems. 36: 253–259. 114(2): 615-630.
[9] Guo ZX, Wong WK, Li M. (2013) A multivariate [23] Hammond JH. (1991) Quick response in the apparel
intelligent decision-making model for retail sales Industries. Harvard Business School Background
forecasting. Decision Support Systems. 55(1): 217-255. Note 690-038, April 1991..
[10] Smith CD, Mentzer JT. (2010) Forecasting task- [24] Battista C, Schiraldi MM. (2013) The Logistic
technology t: The inuence of individuals,systems Maturity Model: application to a fashion firm.
and procedures on forecast performance. International Journal of Engineering Business
International Journal of Forecasting. 26(1): 144–161. Management. in press.
[11] Haq AN, Kannan G. (2006) Effect of forecasting on [25] Mostard J, Teunter R, de Koster R. (2011) Forecasting
the multi-echelon distribution inventory supply demand for single-period products: A case study in
chain cost using neural networks, genetic algorithm the apparel industry. European Journal of
and particle swarm optimization. Internation Journal Operational Research. 211(1): 139–147.
of Services Operations. 1(1/2): 1-22. [26] Wong WK, Guo V. (2010) A hybrid intelligent model
[12] Bregni A, D’Avino M, De Simone V, Schiraldi MM. for medium-term sales forecasting in fashion retail
(2013) Formulas of Revised MRP. International supply chains using extreme learning machine and
Journal of Engineering Business Management. 5(10): harmony search algorithm. International Journal of
1-10. Production Economics. 128(2): 614–624.
[13] D’Avino M, De Simone V, Schiraldi MM. (2013) [27] Sen A. (2008) The US fashion industry: A supply
Revised MRP for reducing inventory level and chain review. International Journal of Production
smoothing order releases: a case in manufacturing Economics. 114(2): 571–593.
industry. Production Planning & Control. in press - [28] Thomassey S. (2010) Sales forecasts in clothing
DOI:10.1080/09537287.2013.764579. industry: The key success factor of the supply chain
[14] D’Avino M, Bregni A, Schiraldi MM. (2013) A management. International Journal of Production
revised and improved version of the MRP algorithm: Economics. 128(2): 470-483.
Rev MRP. Applied Mechanics and Materials. 328: [29] Chen FL, Ou TY. (2011) Sales forecasting system
276-280. based on Gray extreme learning machine with
[15] D'Avino M, Macry Correale M, Schiraldi MM. (2013) Taguchi method in retail industry. Expert Systems
No news, good news: positive impacts of delayed with Applications. 38(3): 1336–1345.
information in MRP. International Journal of [30] De Toni A. (2000) The production planning process
Management and Decision Making. 12 (3), in press. for a network of firms in the textile–apparel industry.
[16] Nenni ME, Schiraldi MM. (2013) Validating Virtual International Journal of Production Economics. 65(1):
Safety Stock Effectiveness through Simulation. 17-32.
International Journal of Engineering Business [31] Chatfield DC, Hayya JC. (2007) All-zero forecasts for
Management. in press. lumpy demand: a factorial study. International
[17] Moon MA, Mentzer JT, Smith CD. (2003) Conducting Journal of Production Research. 45(4): 935–950.
a sales forecasting audit. International Journal of [32] Sanuwar R (2013) The Role of Quick Response for
Forecasting. 19(1): 19-25. Demand Driven Globalized Apparel Supply Chain
[18] Fildes R, Beard C. (1992) Forecasting systems for Management London: Springer.
production and inventory control. International [33] Martin C, Lowson R, Peck H. (2004) Creating agile
Journal of Production and Operations Management. supply chains in the fashion industry. International
12(5): 4-27. Journal of Retail and Distribution Management.
[19] Holt CC. (2004) Forecasting seasonals and trends by 32(8): 367-376.
exponentially weighted moving averages. [34] Caniato F, Kalchschmidt M, Ronchi S. (2011)
International Journal of Forecasting. 20(1): 5-10. Integrating quantitative and qualitative forecasting
[20] Lawrence M, Goodwin P, O’Connor M, Onkal D. approaches: organizational learning in an action
(2006) Judgmental forecasting: A review of progress research case. Journal of the Operational Research
over the last 25 years. International Journal of Society. 62: 413–424.
Forecasting. 22(3): 493-518. [35] Abraham B, J Ledolter J (2009) Statistical Methods for
Forecasting New Jersey: Wiley Interscience.
www.intechopen.com Andrea Fumi, Arianna Pepe, Laura Scarabotti and Massimiliano M. Schiraldi: 9
Fourier Analysis for Demand Forecasting in a Fashion Company
[67] Bartafai I. (2002) An illustration of harmonic [69] Armstrong JS, Collopy F. (1992) Error measures for
regression based on the results of the Fast Fourier generalizing about forecasting methods: Empirical
transformation. Yugoslav Journal of Operations comparisons. International Journal of Forecasting.
Research. 12(2): 185-201. 8(1): 69-80.
[68] Garcia-Ferrer A, Del Hoyo J. (1992) On trend [70] Wei WWS (1994) Time Series Analysis Boston:
extraction models: Interpretation, empirical evidence Pearson / Addison Wesley.
and forecasting performance. Journal of Forecasting.
11(8): 645-655.