Moving Average/Basic Approach

From testwiki
Jump to navigation Jump to search

Generic Approach to Moving Average

An element vV moves in an additive Group (mathematics) or Vector Space V. In a generic approach, we have a moving probability distribution Pv that defines how the values in the environment of vV have an impact on the moving average.

Discrete/continuous Moving Average

According to probability distributions we have to distinguish between a

  • discrete (probability mass function pv) and
  • continuous (probability density function pv)

moving average. The terminology refers to probability distributions and the semantics of probability mass/density function describes the distrubtion of weights around the value vV. In the discrete setting the pv(x)=0.2 means that x has a 20% impact on the moving average MA(v) for v.

Moving/Shift Distributions

If the probility distribution are shifted by v in V. This means that the probability mass functions pv resp. probability density functions pv are generated by a probability distribution p0 at the zero element of the additive group resp. zero vector of the vector space. Due to nature of the collected data f(x) exists for a subset TV. In many cases T are the points in time for which data is collected. The and the shift of a distribution is defined by the following property:

  • discrete: For all xV the probability mass function fulfills pv(x):=p0(xv) for vT
  • continuous: For all probability density function fulfills pv(x):=p0(xv)

The moving average is defined by:

  • discrete: (probability mass function pv)
MA(v):=xTpv(x)f(x)

Remark: pv(x)>0 for a countable subset of V

  • continuous probability density function pv
MA(v):=Tpv(x)f(x)dx

It is important for the definition of probability mass functions resp. probability density functions pv that the support (measure theory) of pv is a subset of T. This assures that 100% of the probability mass is assigned to collected data. The support pv is defined as:

supp(pv):={xVpv(x)>0}T.