# Questions tagged [moving-average]

The tag has no usage guidance.

131 questions
Filter by
Sorted by
Tagged with
11 views

### Difference transformation and Stationarization of Moving Average

I have a temperature sensor data, I want to denoise it. The first thing that came to my mind was to take the moving average, it was very smooth but it is still not stationary. If I take the log ...
58 views

### Lowpass Filter to Average sinusoid signal

How to get an average of a sinusoidal signal? The frequency of a signal is 50 Hz and could have harmonics, i.e. high THD. I tried to use exponential moving average with low cut-off frequency (about 1....
1 vote
28 views

### How to implement scale-dependent Gaussian averaging using Morlet wavelet envelope in Python?

I'm trying to reproduce the scale-dependent Gaussian averaging of a time series as described in this paper: https://arxiv.org/pdf/1706.01126.pdf The process involves performing a continuous wavelet ...
• 189
53 views

### Derive PSD of an MA(1) process

Suppose there is a moving average process of order 1 that also includes a zeroth term thus: $$Y_t=\theta\left(B\right)X_t = \left(\theta_0+\theta_1B\right)X_t$$ where $X_t$ ...
• 213
71 views

### Moving average of a signal

Problem is to find 1 second moving average of a signal having sample time as Ts. To solve this, it is suggested to pass the signal through a Butterworth low pass filter having the following ...
• 103
1 vote
31 views

• 189
1 vote
99 views

### How to optimize noise reduction to perform burst detection and detect oscillations?

Let be $\mu_k$ some univariate signals of time $t$. I am performing burst detection to detect oscillations in any signal $\mu_k$. I tested the following methods : Perform noise reduction on $\mu_k$ ...
• 135
317 views

### Average of discrete periodic signal

I am working on a project which, at some point, relies on the computation of the average of discrete signals, which typically look like this: The project generates hundreds of such signals, and: the ...
• 145
194 views

### What happens when filter ringing is far longer than the signal itself?

I'm digging into some (quite popular in my field) analytical practice that I find suspicious. The problem is to remove the trend from some very short (eg. 18-40 data points representing 200 - 800 ms) ...
190 views

### Boxcar, Removing DC signal from an ADC on a FPGA

I have been reading on different ways to do this. I have seen this Linear-phase DC Removal Filter This seems like it would work just fine, but it would take some time to implement. Is there any reason ...
119 views

• 11
1 vote
141 views

### Analysis of the ratio of two moving average filters

I have created a basic segmentation algorithm for 1-D signals (e.g. audio) based on a ratio of energy averages. The classification rule involves comparing the signal energy measured over a short time ...
• 131
1 vote
123 views

### Moving average frequency response over an image

I'm studying image denoising by linear filtering with cross-correlation, in particular with a moving-average kernel (K x K kernel of all equal elements which sum is 1). For clarity, I'd like to refer ...
• 111
1 vote
35 views

### How to select the ARMA model parameters?

I have a series of data containing 120,000 points. The mean of each N(=60) point is zero. I want to forecast the next 60 points using the ARMA model. My question is, specificaly, how to choose the ...
• 11
1 vote
10k views

### Is there a Python method to calculate moving RMS of a signal? How to calculate the moving RMS using the discrete signal formula? [closed]

I'm trying to calculate a moving RMS of an acceleration signal. One of the answers in the post, shows the formula for calculating moving RMS for discrete signal. The formula they suggest: I have a ...
78 views

### How to solve this Laplace integral for an averaging function in an iterative numerical (finite difference) model?

I am trying to implement a mathematical model for vibrational damping described in this article. They provide an equation for damping force ($F$) as a function of: a spring constant ($k$) a damping ...
• 533
224 views

### Is it possible to specify number of taps and cutoff frequency independently?

When specifying the properties of a moving average filter, is it possible to specify the number of taps and the cutoff frequency? My guess is no since taps (the number of samples in a moving average ...
• 101
460 views

### Moving average filter output magnitude in simulink

I was using the Moving average filter provided by simulink. I set the window length equal to 31 samples and i was using a fixed step solver with a step size of $\frac{1}{(50\times24)}$. I used a unit ...
• 15
1 vote
93 views

### Spatial moving average in array antenna processing

In array processing the theoretical spatial response of the array is calculated by doing DFT on sensor locations for some assumed wave number (1/wavelength). The figures below shows the sensor ...
• 405
51 views

### Difference between the average operation and the application of the equivalent LPF

I would be glad if someone could answer my question. I have a bit stream of data and I want to extract the low frequency component. When post processing the data I can calculate the average value over ...
• 1
648 views

### Filtering Angular Measurements

I am trying to apply a filter to reduce noise in angular measurements. Since the data comes with noise, the filter needs to be able to handle measurements that are not smoothly progressing; for ...
• 131
595 views

### How to filter a signal using a bandpass filter consisted of two moving average filters?

I want to filter a PPG signal on a microcontroller. I have limited memory and a was searching for low computational methods. I found the work of Kazuhiro Taniguchi, Earable POCER: Development of a ...
737 views

### moving average rounding error analysis

I have implemented a moving average, similar to the Hogenauer Filter, with a reduced number of computation operations. I expect the expected error to behave as the random walk and its STD to be of ...
• 1,176
640 views

### How to determine windows size of moving average filter

I've recorded acceleration signal data using an accelerometer attached to vehicle , and I want to calculate the displacement of signal data using double integration or any other methods. I read many ...
206 views

### Is it applicable to implement a cascaded moving average filter with variable window on real-time?

I am using a 3-pass cascaded moving average filter for smoothing noisy data. I applied some optimization algorithms to determine the optimal length of the MAF window. For different amplitudes of data ...
760 views

### Moving Average FIR filter coefficients

I am trying to use a FIR filter making software to create a moving average filter and I'm a little confused on what I should put in the coefficients part? I read that the coefficients are always 1 for ...
1 vote
300 views

### Coefficient weights of Simple Moving Average (SMA) on SMA

A simple moving average (SMA: arithmetic mean) is a low-pass FIR-filter. When you cascade 2 SMA's with a window of length $n$, so when you apply the second SMA on the output of the first SMA, and you ...
• 317
413 views

### Group delay plot of a Moving average filter

I am implementing the moving average filter in Matlab. Using fvtool on this filter, gave the following output curve, is this group delay curve correct? Edit: My confusion is regarding the values of ...
1 vote
254 views

### Moving Average Filter's Magnitude Response

I am working on filtering of data using the Moving average filter in MATLAB. My data is recorded temperature values on the Y-axis and Time(in seconds) on the X-axis (I'm getting the magnitude response ...
91 views

### ARMA Filter Output Stationary and set up?

I have questions regarding ARMA Filters. Is the output of a ARMA Filter stationary or just wide sense stationary? I do know that you can obtain an ARMA filter by connecting an MA filter with an AR ...
247 views

### Box filter with non integer length

I'm trying to model a sensor system that has an averaging behaviour. The frequency response is almost identical to a box filter and looks roughly like this: Transferring this into a discrete time ...
504 views

### Determining Loss of Information by Taking Average (Mean of Signal)

So basically information is defined by expected value of Shannon's information i.e. Entropy. I am curious how much information is lost if we simply take the average of the sample given to us. I am ...
1 vote
763 views

### Moving average filter magnitude attenuation

I am dealing with a moving average filter which filters power system signals to rid them of noise or harmonics etc. The fundamental or useful component of these signals is centered around 50 Hz or 60 ...
• 15
1 vote
987 views

### Amplitude reduction of Simple Moving Average on sinusoid

When a -causal/non-centered- simple moving average filter (arithmetic mean) with length $n$, is applied to a sinusoidal curve with period $p$, and the resulting curve is compared to the original input ...
• 317
152 views

### Noise Reduction Moving Average FIR

I read that the noise reduction of a moving average FIR can be expressed as the square root of N where N is the length of the filter. How do you prove? I can't quite get it.
• 21