<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>Re-smoothing with
window</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Detection of trends in non-stationary time series: a comparison of moving window smoothing methods *</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Roman Kaminsky</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Solomiia Liaskovska</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Systems of Artificial Intelligence, Lviv Polytechnic National University</institution>
          ,
          <addr-line>S. Bandera, str. 12, Lviv, 79013</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2025</year>
      </pub-date>
      <volume>5</volume>
      <issue>7</issue>
      <fpage>03</fpage>
      <lpage>05</lpage>
      <abstract>
        <p>The extraction of time series trends using moving window smoothing methods has been known for a long time and remains widely used. The window-based nature of these methods allows for various applications, including single-pass smoothing with a fixed window size and iterative smoothing of previously smoothed series using the same window or with varying window sizes. This study compares four methods: simple moving average, two weighted moving averages based on formulas by M. Kendall and J. Pollard, and median smoothing. These methods are applied to the same time series-monthly Wolf numbers of the 24th solar activity cycle. The evaluation criteria include the sum of squared deviations, maximum deviation, smoothing coefficient, sums of positive and negative deviations (considering their signs), and shift coefficient. The experimental study indicates that qualitatively, the smoothed series exhibit differences in shape, while quantitatively, the differences in their numerical characteristics are insignificant.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;moving window smoothing</kwd>
        <kwd>smoothing formulas</kwd>
        <kwd>time series</kwd>
        <kwd>trends</kwd>
        <kwd>trend shift</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        The representation of work situations in various areas of human activity is very often
represented by the values of some determining or effective indicator. The sequence in time of its
values has the form of a time series. In this regard, the dynamics of changes in this indicator, i.e.
its trend, is of interest. To determine the trend and describe it, many different methods,
methodologies, and approaches have been developed. One of these methods is sliding window
smoothing of time series level values. In other words, a limited interval of levels slides along the
time series – a window within which their average value is calculated. This value replaces the
level of the time series that is opposite the middle of the window. Further, the window
boundaries move one level in the direction of time and the process repeats. Naturally, the
following question arises: is there a significant difference between these methods. The analysis
of their algorithms does not provide an answer to this question. Therefore, an empirical answer
to this question can only be given by experimental studies, namely, to establish differences in
the results of smoothing and to assess the shift of the trend from its real position. In this case,
the smoothed series itself is considered a trend. In [
        <xref ref-type="bibr" rid="ref1 ref2">1, 2</xref>
        ] provides general ideas about the
methods and methods of processing time series, particular, identifying and highlighting trends
in their development, and briefly describes the methods of smoothing. It is the smoothing
methods that are used to highlight trends and build formal models of time series. As shown in
[
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], smoothing time series levels frequently and fairly accurately detects nonlinear monotonic
trends while smoothing out noise and emissions. This study presents the results of using four
methods of sliding window smoothing of time series levels. These are the method: a simple
moving average, two methods of weighted moving average, proposed by M. Kendel and
      </p>
      <p>
        J. S. Schumacher. Pollard, and the method of median smoothing, better known as median
filtering. The moving average, as noted in [
        <xref ref-type="bibr" rid="ref4 ref5">4, 5</xref>
        ], developed in the 1920s, is the oldest data
smoothing process and continues to be a useful tool. This method relies on the notion that
observations close in time are likely to have similar values, and therefore the averaging
procedure for such values eliminates random variation and noise from the data.
      </p>
      <p>
        As a test for this study, a real time series was used, which describes the lunar dynamics of
solar activity, representing the observed number of spots on the Sun's surface. A feature of this
time series, which corresponds to the 24th cycle, is its non-stationarity. This non-stationarity is
even visually manifested in the monotony and nonlinearity of the trend and the change in the
dispersion of its levels. Information about these data, namely: monthly values – values of time
series levels of a given cycle of solar activity and time limits of cycles are given in the articles
[
        <xref ref-type="bibr" rid="ref6 ref7 ref8">6, 7, 8</xref>
        ]. Identification of trends in the behavior of time series levels by the methods of sliding
window smoothing is described in many information sources, in particular: a simple moving
average, described in detail in [
        <xref ref-type="bibr" rid="ref10 ref9">9, 10</xref>
        ], weighted moving averages, their essence and features are
presented in [
        <xref ref-type="bibr" rid="ref11 ref12">11, 12</xref>
        ], and in relation to this study, the algorithms given in the works of M. Kendel
[13] and J. Pollard [14] are used. The fourth method, median anti-aliasing, is also a sliding window
anti-aliasing method, but it uses a ranking procedure to determine the median of levels in a
window. This procedure is non-linear, since instead of calculations, ordering is performed, which is
actually non-linear. The popularity of median smoothing explains the fact that among all statistical
indicators, the median is the most stable.
      </p>
      <p>The essence of median smoothing as a median filtering of one-dimensional signals is
described in [15]. [16, 17] discusses the use of median filtering and the median criterion for
application to one-dimensional signals and time series. It is the use of median filtering that
contributes to the best elimination of various deviations and noises, and the median filtering also
ignores sharp changes in the behavior of signals. This study also considers the features of window
smoothing in three variants – separately with windows of different sizes, smoothing of a
previously smoothed row, both with a constant window size and with a gradual increase in its size.</p>
      <p>The aim of this study is to identify differences in the application of these sliding window
algorithms for determining time series trends in different variants of their application - multiple
and repeated smoothing.</p>
      <p>Experimental study of these methods was carried out in the Microsoft Excel spreadsheet
environment. Evaluation of the results of the application of these methods from the qualitative side
consists in visual analysis of their graphic image, and from the quantitative side - the ratio of the
maximum deviation between the original and smoothed series to the root of the sum of the squares
of the differences between them, as well as a comparison of the sums of negative and positive
values to determine the trend shift.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Introduction data characteristics</title>
      <p>In the real world, time series are usually non-stationary. The behavior of objects and
phenomena is characterized not only by nonlinear changes during observations, but also by trends,
variances, autocorrelations and other indicators. Therefore, there is no problem in choosing one or
another non-stationary series for its use as a test in experimental studies. In our case, the time
series of the 24th cycle of solar activity, represented by Wolf numbers, is used. From the point of
view of the authors, this time series has the following features:</p>
      <p>1. The trend has a clear, visually pronounced bell-shaped shape, with a slight but noticeable
left-sided asymmetry;</p>
      <p>2. The variance of the levels in the middle of the series is quite significant and gradually
decreases towards the beginning and end of the series;</p>
      <p>3. The graph of residuals (deviations between the time series and its trend) shows their
significant variation.</p>
      <p>4. The volume of the series is quite convenient for processing and modeling by means of
the Excel spreadsheet processor, since it includes 145 levels.
Time series variance
160
140
120
100
80
60
40
20
0
а</p>
      <p>Visual analysis of the image of the time series used indicates the nonlinearity of its trend,
and the non-stationarity of the variance of its levels, i.e. the values of variance at the beginning,
inside and at the end of the time series differ significantly. From the graph of deviations in Fig. 1b it
can be concluded that the greatest concentration of deviations is near zero, that is, their
distribution is unimodal. It can also be assumed that the shape of the distribution density is close to
the shape of the normal distribution law with a slight left-sided asymmetry.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Methods and indicators used</title>
      <p>In most of the various methodological materials devoted to smoothing of time series levels
using sliding window algorithms, simple or weighted formulas of these algorithms are given. They
also indicate their main drawback - the loss of smoothed values at the beginning and end of the
smoothed series, and the size of the losses (corresponding levels) depends on the window size.
However, for some methods there are special formulas for calculating the values lost at the
beginning and end of the smoothed series. The issue of repeated smoothing also remains
problematic, that is, smoothing of a previously smoothed series with the same window or a
window of a different, larger or smaller size. Unfortunately, we also did not find appropriate
criteria for limiting repetitions and choosing the optimal window size.</p>
      <p>Therefore, the way out of this situation – the loss of levels of the smoothed series, is this
approach. Starting from the minimum size of the window, smooth out only the parts of the levels
at the beginning and at the end of the time series and fill in the second and penultimate levels with
the calculated value. Then, gradually increasing the size of this window to the size of the working
window, determine the average and fill in the lost values of the smoothed series with these values.
Here the first and last values coincide with the values of the first and last levels of the smoothed
original time series. As a rule, for window anti-aliasing, the window size is a multiple of an odd
number of levels 3, 5, ... , that is, the window size is defined as:
where
where</p>
      <p>is the maximum number of levels in the window.</p>
      <p>Methods and procedures investigated. This study considers four methods of sliding
window smoothing, namely:
a) simple moving average;
b) weighted moving average according to the formulas of M. Kendel;
c) weighted moving average according to the formulas of J. Pollard;
d) median smoothing (filtering).</p>
      <p>The term window smoothing is used here to distinguish these methods from other
antialiasing methods, since it is the influence of the window, i.e. its size and method of application, that
is of interest. Therefore, the main attention in this study is focused on the methods of their
application and changes in the size of the window. Therefore, the essence of this study is to
conduct the following experiments:
a) separate smoothing of the time series with windows of different sizes;
b) repeated smoothing with a constant window size;
c) repeated smoothing with a gradual increase in the window size.</p>
      <p>Here, the words “separate smoothing” mean that the original time series is first smoothed
using the smallest window size, for example 5, then 7, etc., forming the following sequence of
window sizes: 5, 7, 9, 11, 13, 15. In other words, the influence of the window size on the smoothing
result is investigated. The words “repeated smoothing” mean that the original time series: is first
smoothed using the smallest window size, then this already smoothed series will be smoothed
again with the same window size, and so on - this is option 2. If for option 2 the window size is
constant, then for option 3 the window size increases at each step. In each option and with each
method, six repetitions were performed. In these experiments, the main result is the result of the
sixth repetition.</p>
      <p>An important point regarding the result of this work is the choice of the smoothing option,
which will provide the most acceptable form of the trend, that is, its monotonicity, smoothness,
simplicity in the sense of associations with known functions and mathematical expressions for its
further approximation.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Evaluation of smoothing results</title>
      <p>To compare the results of the experimental procedures of sliding window smoothing, a
visual analysis of graphs was used for different variants of application of these methods, and the
following indicators were used as evaluation criteria.</p>
      <p>The sum of squares of deviations, to establish the magnitude of the difference between the
variants and methods of smoothing in the sense of a quantitative indicator of the smoothing effect.</p>
      <p>Maximum deviation. This is the value of the largest deviation between the original and
smoothed time series.</p>
      <p>The smoothing coefficient, introduced by us (the authors), to compare the smoothing effect
itself. This is an empirical coefficient, which is defined as the ratio of the value of the maximum
deviation between the levels of the original and smoothed series to the square root of the sum of
the squares of the values of these deviations. Its values for different methods and variants of their
application may be close or differ from each other. The comparison between the variants indicates
the quality of the fit, namely: the larger this value, the smoother and more monotonous the
envelope of the smoothed series. Small values of this indicator indicate that the smoothed series
repeats the sharp changes of the original series.</p>
      <p>Sum of deviations. Here we mean the sum of positive and negative deviations between the
original and smoothed time series. The fact is that it is quite natural to say: the arithmetic sum of
deviations from the mean value is zero. In this case, the sums of positive and negative deviations
are considered.</p>
      <p>The trend shift coefficient introduced by us (the authors) is based on the ratio of the
difference in absolute values of the sums of added and negative deviations (the smaller absolute
value is subtracted from the larger absolute value) to the value of the larger value with
preservation of its sign, the value of which is given in percentage. Obviously, the smaller the
difference between these two amounts, the smaller the magnitude of the trend shift. This indicator
is an indicator of a possible trend shift. So: the magnitude of the difference in the sums indicates
the magnitude of the trend shift (offset), and its sign indicates the direction of the shift. If the sum
of negative deviations prevails, then the position of the actual trend will be higher than its real
position (i.e., an upward shift), if vice versa, then the position of the trend will be lower than the
real position. Regarding this criterion for assessing the trend shift, the following can be noted: if for
a given set of elements (numbers) of the dynamic series, the sum of deviations exceeding the value
of the smoothed series is equal to the sum of the absolute values of deviations smaller than it. Then
the smoothed series exactly corresponds to the real trend. Therefore, this method provides grounds
to detect the presence of a shift in the envelope of the smoothed series, i.e., its empirical trend.</p>
      <p>The effectiveness of smoothing the levels of the time series in this study is presented as
follows. It is natural to require the smoothing method to represent the existing trend in the form of
a monotonic curve, which can be considered as the trend of the time series. However, the
smoothing procedure makes its own adjustments, since the replacements of the values of the levels
of the original time series are replaced by a calculated or determined ranking of values, that is, by
the values of some sliding subset of values - the window. The power of this subset is determined by
the boundaries of a specific window size.</p>
      <p>The last two methods given for assessing the quality of smoothing the sliding window are
empirical, since they do not take into account the probability distribution of the deviation values.
However, as follows from the analysis of the graph in Fig. 1b, the deviations have a unimodal,
somewhat asymmetric distribution, close to normal, which in principle gives grounds for their use.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Experimental study of sliding window smoothing methods</title>
      <p>The same time series was used to conduct the study. The result of smoothing is taken as its
trend, i.e. trend. In fact, differences in the results of three options for the application of these
methods are experimentally investigated.</p>
      <p>Simple moving average method. This is one of the simplest and most common methods that
calculates the average value of levels in a moving window. Then this value is replaced by the
corresponding level of the original time series, the position of which (time point, level number)
corresponds to the middle of the window. Sliding means shifting the window by one level so that
the levels of the original series remain in their places, and the boundaries of the window are shifted
by one level. The algorithm for calculating a simple moving average has the following form</p>
      <p>N 2k  1 j2k 1
yi  y1*  y2*  yk*    
jk 1  w i j
yi   yN* k    yN* 1  yN* ,

where
– the smoothed value corresponding to the middle of the window;
– the values
lost at the beginning and end of the smoothed series; – the size of the window.</p>
      <p>A simple moving average is the usual arithmetic average of the values of the levels that are
calculated within the window. This average value is some indicator that always reflects the
behavior of the main trend, smoothing out minor deviations. The effect of window size is that with
small window sizes, the trend differs little from the behavior of the levels of the original time
series, but with large window sizes, the resulting trend is more monotonous, smooth, and more
accurately reproduces the main trend.</p>
      <p>Smoothing by M. Kendel's formulas. The basis for deriving these formulas is the selection
within the window size of the values of the coefficients of polynomials. Such selection is a linear
combination of observations with these coefficients. These coefficients are defined in [13] and are
invariant and suitable for any time series. These formulas are in fact weighted moving averages.
The algorithm for calculating the weighted moving average with a specific "window" ,
size sequentially shifts along the levels of the time series and averages the levels covered by this
window. Its form is as follows:</p>
      <p>N 2k  1 j 2k 1 
~yi  y1  y2    yk      i yi   yN k    yN 1  yN
j k 1  w i j 
The content</p>
      <p>and other quantities are the same as in the previous formula, and the
weights are subject to the condition . The averaging operation in the window is
presented in square brackets. The monograph [13] provides recommendations for calculating
missing values of levels at the beginning and end of the time series.</p>
      <p>The main formulas for this smoothing method are given in table 1.</p>
      <p>[ K3*хj + K2*xj+1 + K1*xj+2 + K0*xj+3 + K1*xj+4 + K2*xj+5 + K3*xj+6 ]
where xj are the levels of the time series. In [13], formulas for window sizes up to the 21st
are given and methods for eliminating edge effects are given. The choice of the maximum window
size in this work was made under the following condition: the maximum window size does not
exceed 10% of the volume of the time series elements. The volume of the time series levels used as
the original N = 145.</p>
      <p>Smoothing according to J. Pollard's formulas. These formulas, like the previous ones, are also
applied to the levels of the dynamic series, and their values, given in Table 2, are somewhat
different.</p>
      <p>Formulas for a window up to 23 levels are given in [14]. References to literature sources on
recalculation of smoothed values at the beginning and end of the dynamics series are also given.</p>
      <p>Median smoothing. This smoothing method is a nonlinear non-computational procedure,
quite stable in a statistical sense. It reacts poorly to anomalous values, outliers, etc.</p>
      <p>Median smoothing is performed by determining the median by the levels in the window.
For this, these levels are ranked, and the median is the value that lies inside the ranked series in the
middle. So, the difference is that inside the window the median is determined by its position in the
window, and in the previous methods their average values are calculated. A feature of median
smoothing is a clearly expressed, for the levels of smoothed time series, non-monotonicity and lack
of smoothness of the trend, the presence of horizontal sections and sharp transitions. This function,
with an optimal choice of window sizes, preserves sharp transitions without distortion, and also
reduces uncorrelated or weakly correlated noise, outliers.</p>
      <p>Median smoothing is a sliding window procedure that replaces the level values of the
original time series with the median values of the levels in the window. Its algorithm has the
following form:
where</p>
      <p>– are the original and pre-smoothed values of the time series, and the word MEDIAN
is a function of the Microsoft Excel spreadsheet processor for determining the median of the
sample. Thus, median smoothing replaces the values of the levels corresponding to the middle of
the window with the values of the median of the levels limited by the window.</p>
      <p>In practice, the window sizes for sliding smoothing methods are chosen by odd numbers,
which in turn greatly simplifies the processing processes and interpretation of the results.</p>
      <p>Edge effects. These include the loss of levels at the beginning and end of the time series. In
this study, this situation is eliminated by the sequential application of different (in the direction of
gradual increase) window sizes.</p>
      <p>Experimental studies of the application of methods.</p>
      <p>This study presents the results of three experiments with the following window sizes: 5, 7,
9, 11, 13 and 15, i.e. with such a number of levels in the window. For preliminary visual assessment,
graphs of smoothing options for each method were used. The quantitative characteristics of the
results are given in Table 3. The results are presented according to the above indicators. the values
of the indicators given in the table correspond to the results at maximum window sizes</p>
      <p>Simple moving average. The results of using this smoothing method are given in Fig. 2.
Depending on the option of use, the contours of the smoothed rows differ from each other. In Fig.
2a, a cut (jaw) is quite clearly visible, which indicates an insufficient degree of smoothing. In Fig. 2b
and Fig. 2c, the teeth are practically absent.</p>
      <sec id="sec-5-1">
        <title>Smoothing with window 15 Re-smoothing with window 5</title>
        <p>The original time series is shown as a thin light line, and the smoothed one as a thick dark
line; the smoothing parameters are indicated as follows: a – single simple moving average with a
window size of 15; b – six-fold repeated smoothing with a window size of 5; c – six-fold repeated
smoothing with a change in the window size, i.e. each repeated smoothing is performed with an
increase in the window size by one step.</p>
        <p>The option with the use of multiple smoothing gives a smoother and more monotonous
trend line. It can be assumed, Fig. 2c, that with further repeated smoothing with increasingly larger
windows, the depression between levels 40 and 66 may disappear. In addition, the trend line itself
looks quite smooth.</p>
        <p>Smoothing of time series levels according to the formulas of M. Kendel. In the
monograph [13] a set of formulas is given, namely the formulas of weighted recalculation of time
series levels. The formulas given in this work provide the size of the smoothing windows from 5 to
21 and represent odd numbers 5, 7, … , 21. Recommendations are also given for eliminating edge
effects. In this experimental study, the following window sizes were used: 5, 7, 9, 11, 13 and 15. In
Fig. 2. the results of three smoothing options according to the formulas given in table. 1 are shown.</p>
        <p>As in the previous description in Fig. 3, the original time series is depicted by a thin light
line, and the result, the trend, is depicted by a thick dark line. The three graphs presented
correspond to the applied smoothing options. Here, the option: a – single simple moving average
with a window size of 15; b – six-fold repeated smoothing with a window size of 5; c – six-fold
repeated smoothing with a change in the window size up to and including 15, i.e. each repeated
smoothing is performed with an increase in the window size by one step.</p>
        <p>This method of weighted smoothing of the sliding window in all three options tries to
repeat the nature of the level position, while reducing only the amplitude of the levels and slightly
removing sharp changes. Obviously, using this method to smooth a time series with significant
dispersion and fluctuation in its levels becomes problematic.</p>
        <p>Smoothing of time series levels according to J. Pollard's formulas. In [14], a set of
formulas is given, which also provides a weighted moving average by recalculating the levels of the
smoothed time series. The results of smoothing by this method, in three variants of application, are
shown in the form of graphs in Fig. 4. Visual analysis of the results of applying this method
indicates that the smoothed series practically reproduces the behavior of the levels of the original
series. In Fig. 4b, the smoothed series practically preserves the oscillations of the trend and reacts
poorly to large deviations. When smoothing according to the third variant, Fig. 4c, new fluctuations
of the trend arise, in particular in the region of the initial and final levels. In general, it can be
stated that the use of these formulas is justified only for the first variant, i.e., one-time use with a
previously checked window size.
140
120
100
80
60
40
20
0
160
140
120
100
80
60
40
20
0</p>
        <p>The original time series is depicted by a thin light line, and its trend, i.e. the smoothed
series, by a thick dark line. The application of this method is also considered in three variants: a –
single simple moving average with a window size of 15; b – six-fold repeated smoothing with a
window size of 5; c – six-fold repeated smoothing with a change in the window size up to and
including 15.</p>
        <p>Significant fluctuations after smoothing indicate that the method is possible only with
insignificant dispersion and slow smooth fluctuations with small amplitude.</p>
        <p>Median smoothing. This type of smoothing, unlike the previous methods, is a nonlinear
procedure. Smoothing a time series by determining the median in a sliding window is widely used
not only to highlight trends in time series, but also in processing various signals and images to
eliminate various interference, noise, etc.</p>
        <p>In this experiment, the same conditions were used regarding the parameters of the
application program and the sizes of the windows, that is, these three options, as in the previous
ones. Median smoothing has several important features, including: eliminating outliers and
anomalies in the data, it preserves sharp changes and is resistant to changes in the distribution. A
visual representation of the application of median smoothing is shown in Fig. 5. The fact that sharp
transitions are preserved, especially at the beginning and end of the series, is obvious.</p>
      </sec>
      <sec id="sec-5-2">
        <title>Re-smoosing with</title>
        <p>window 5</p>
        <p>Re-smoosing with
window 5, 7, 9, 11, 13,</p>
        <p>15
160
140
120
100
80
60
40
20
0
160
140
120
100
80
60
40
20
0</p>
        <p>Fig. 5 shows how the appearance (shape) of the trend changes as a result of applying
median smoothing (thick dark line). Here, the original time series is depicted by a thin light line,
and the options for its application are as follows: a – single simple moving average with a window
size of 15; b – six-fold repeated smoothing with a window size of 5; c – six-fold repeated smoothing
with a change in the window size up to and including 15, i.e. each repeated smoothing is performed
with an increase in the window size by one step. The graph clearly shows horizontal sections of the
smoothed series, which indicate that within their boundaries, when the window was sliding, the
median value remained constant. In addition, sharp transitions also remained unchanged.</p>
        <p>An important point of median smoothing is that, provided that the distribution of levels is
symmetrical, the position of the trend corresponds to its real position. In other words, for
symmetric distributions, the median and mean coincide.</p>
        <p>Interpretation of smoothing results. The values of the resulting indicators obtained in the
experiments regarding the smoothing features for these four methods are given in Table 3. The
conducted studies of these sliding window smoothing methods showed that there are no significant
differences between them.</p>
        <p>The two indicators proposed by the authors can be considered as estimates of the applications
of these methods: the trend smoothing coefficient – V and the trend shift coefficient – D. The
calculation of the coefficient V is determined by the following formula:
,
where is the maximum deviation between the original and smoothed series, and is the
sum of the squares of these deviations.</p>
        <p>The data presented in Table 3 indicate that the differences in the components of this
indicator apply only to both methods of weighted sliding window smoothing according to the
formulas of M. Kendel and J. Pollard and median smoothing, only when using the second option
six-fold repeated smoothing with a constant window size equal to 5 levels. However, the value of
the smoothing coefficient itself, and it is within the set of all values in this study, namely . From
this point of view, all these methods differ little from each other.</p>
        <p>To estimate the shift of the smoothed trend, the authors used the D indicator in the
following form</p>
        <p>where – the sum of positive deviations; – the sum of negative deviations; – є is
one of the sums that has a larger modulus value.</p>
        <p>The expression in the denominator can be explained as follows: the «Sing» function
determines the sign of the sum, i.e.: if
=
&gt; 0, then Sing(
) = +1, and if
=
&lt; 0,
then Sing( ) = –1.</p>
        <p>In other words, the sign of the denominator indicates the direction of the shift, and the
value of this indicator «shows» the relative magnitude of the shift itself, which for the trends
obtained in this study lies in the interval
V
,</p>
        <p>656
639
659
600
394
575
505
383
544
643
448
571</p>
        <p>D
– 0.57
5.38
– 5.81
– 1.76
0.83
– 1.86
– 3.98
0.93
– 2.50
16.32
23.48
30.48</p>
        <p>However, the value of this indicator, like the previous one, is only the relative values of the
empirical assessment of the results obtained and requires separate studies for their practical use.</p>
        <p>An interesting fact is that for the first and third options for using moving averages, the
trend shifts up, and for the second - down. As for median smoothing, there is a significant
downward trend shift.</p>
        <p>6. Conclusion</p>
        <p>According to the results of the experimental study in the methodological plan, the
following conclusion can be made.</p>
        <p>First, no significant differences were found between the considered methods in the three
variants of their application. In a certain sense, the differences exist, but for categorical conclusions
they are insignificant.</p>
        <p>Secondly, the smoothing coefficient introduced by the authors also does not indicate a
significant difference between them, although when comparing these methods, the values of this
indicator can be taken into account in practice.</p>
        <p>Thirdly, the trend shift coefficient introduced by the authors clearly and quantitatively
indicates the presence of a shift and its direction. The trend shift is important for automatic control
of systems and objects.</p>
        <p>Fourthly, median smoothing is characterized, in particular, by a significant downward
trend shift and insufficient smoothness of the trend curve. However, if the level values have a
distribution, the median trend is more realistic.</p>
        <p>The results of this study show the feasibility of using all four methods in the three considered
variants, obviously with arbitrary window sizes. It can be assumed that at least these three ways
of using them, namely: single with arbitrary or justified choice of window size, multiple
sequential application to a pre-smoothed series of levels with the same window size and
multiple sequential application to a pre-smoothed series with increasing window size, have
practical application. Actually, one of the aspects of the purpose of this study is to identify the
features of using these methods to highlight the trend of a non-stationary time series and build
its mathematical model.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Declaration on Generative AI</title>
      <p>During the preparation of this work, the authors utilised ChatGPT and LanguageTool to identify
and rectify grammatical, typographical, and spelling errors. Following the use of these tools, the
authors conducted a thorough review and made necessary revisions, and accept full responsibility
for the final content of this publication.</p>
      <p>Available</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>O.I.</given-names>
            <surname>Biloborodko</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.H.</given-names>
            <surname>Yemelianenko</surname>
          </string-name>
          .
          <article-title>Analysis of Dynamic Series (in Ukrainian)</article-title>
          .
          <source>Dnipro: RVV DNU</source>
          ,
          <year>2014</year>
          , 80 p.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>J.</given-names>
            <surname>Brownlee</surname>
          </string-name>
          .
          <article-title>Moving Average Smoothing for Data Preparation</article-title>
          and Time Series Forecasting in Python. Available at: https://machinelearningmastery.com
          <article-title>/moving-average-smoothing-fortime-series-forecasting-</article-title>
          <source>python/ [Accessed 30 Apr</source>
          .
          <year>2025</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>ESRI</surname>
          </string-name>
          . How Time Series Smoothing Works. Available at: https://pro.arcgis.com/en/pro-app/3.3/tool-reference/spatial-statistics/
          <article-title>how-time-seriessmoothing-works</article-title>
          .
          <source>htm [Accessed 30 Apr</source>
          .
          <year>2025</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Jose</given-names>
            <surname>Camacho-Collados</surname>
          </string-name>
          and
          <article-title>Mohammad Taher Pilehvar, On the Role of Text Preprocessing in Neural Network Architectures: An Evaluation Study on Text Categorization and Sentiment Analysis</article-title>
          ,
          <source>in: Proceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, Association for Computational Linguistics</source>
          , Brussels, Belgium,
          <year>2018</year>
          , pp
          <fpage>40</fpage>
          -
          <lpage>46</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>J.</given-names>
            <surname>Frost</surname>
          </string-name>
          . Time Series Analysis Introduction. Available at: https://statisticsbyjim.com/timeseries/time-series
          <source>-analysis-introduction/ [Accessed 30 Apr</source>
          .
          <year>2025</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Marco</given-names>
            <surname>Siino</surname>
          </string-name>
          , Ilenia Tinnirello, Marco La Cascia,
          <article-title>Is text preprocessing still worth the time? A comparative survey on the influence of popular preprocessing methods on Transformers and traditional classifiers</article-title>
          , volume
          <volume>121</volume>
          <source>of Information Systems</source>
          ,
          <year>2024</year>
          , ISSN 0306-4379, https://doi.org/10.1016/j.is.
          <year>2023</year>
          .102342
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>SILSO. Monthly</given-names>
            <surname>Mean Total Sunspot Number</surname>
          </string-name>
          [
          <volume>1</volume>
          /1749 - now]. Available at: https://www.sidc.be/SILSO/datafiles[Accessed 30 Apr.
          <year>2025</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <article-title>[8] Bureau of Meteorology. Monthly Sunspot Numbers</article-title>
          . https://www.sws.bom.gov.au/Solar/1/6 [Accessed 30 Apr.
          <year>2025</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Wikipedia</surname>
          </string-name>
          . List of Solar Cycles. Available at: https://en.wikipedia.org/wiki/List_of_solar_
          <source>cycles [Accessed 30 Apr</source>
          .
          <year>2025</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>FXOpen. Simple</surname>
          </string-name>
          , Weighted, and
          <article-title>Exponential Moving Averages: The Differences</article-title>
          . Available at: https://fxopen.com/blog/en/what
          <article-title>-is-the-difference-between-simple-weightedand-exponential-moving-</article-title>
          <source>averages/ [Accessed 30 Apr</source>
          .
          <year>2025</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>O.I.</given-names>
            <surname>Biloborodko</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.H.</given-names>
            <surname>Yemelianenko</surname>
          </string-name>
          .
          <article-title>Analysis of Dynamic Series (in Ukrainian)</article-title>
          .
          <source>Dnipro: RVV DNU</source>
          ,
          <year>2014</year>
          , 80 p.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          <source>[12] [13] Mathspace. 5</source>
          .02 Moving
          <string-name>
            <surname>Averages</surname>
          </string-name>
          (Lesson). Available at: https://mathspace.co/textbooks/syllabuses/Syllabus-1023/topics/Topic-20212/subtopics/ Subtopic-266115
          <source>[Accessed 30 Apr</source>
          . 2025
          <string-name>
            <given-names>]. N.</given-names>
            <surname>Okde</surname>
          </string-name>
          .
          <article-title>Weighted Moving Average (WMA): Calculation and Interpretation</article-title>
          . Available at: https://www.xs.com/en/blog/weighted-moving-average
          <source>/ [Accessed 30 Apr</source>
          .
          <year>2025</year>
          ].
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>