# Questions tagged [moving-average]

The tag has no usage guidance.

85 questions
Filter by
Sorted by
Tagged with
112 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 ...
2k views

### Group delay of moving average filter

I have implemented a moving average filter (in Python) where I fill a list with values and average them. When new values arrive the oldest will be deleted. Now I am wondering how much delay I get ...
4k views

### Weight vector of an exponential moving average?

With weight vector I mean the vector with weights that you have to multiply the observations in the window that slides over your data with so if you add those products together it returns the value of ...
159 views

### Calculating filter coefficients of a Moving average with error correction

I have an oversampling ADC where I need to correct Gain/offset errors 'during' each conversion. This also links to my previous question - Moving average and linearization of two piecewise linear ...
49 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.
232 views

### Model Validation After Estimation for System Identification Task (Assistance with MATLAB Code)

QUESTION: I want to determine how well the estimated model fits to the future new data. How do I validate the estimated model...what is the procedure? After system identification, how to do model ...
81 views

### How to approximate a moving RMS without iterating over N samples for each required output?

I have a signal with a sampling rate of F Hertz. From it I want to produce an RMS signal, also with F samples per second with a window size of N samples. Using a standard moving RMS algorithm I must ...
4k views

### What Is the Transfer Function of a Moving Average (FIR Filter)?

To make post-processing easier, I export scope measurements as CSV files, which are then post-processed (mostly in Microsoft Excel, which is not the best tool for the job, but it is all I have at my ...
119 views

### Impulse Response of a Moving Average System

According to Discrete Time Signal Processing by Al Oppenheim 3rd Edition, the impulse response of a moving average filter is as below My question is that shouldn't h[n] be having the dirac delta ...
382 views

### autoregressive moving average code implementation

I am new to DSP and i am trying to take a wav (human speech) file and apply ARMA filter and plot its PSD graph in python. I see that there are a lot of AR implementations but almost none ARMA. I ...
64 views

### Magnitude and phase response and cut-off frequency of a moving average filter

The frequency response of a typical moving average filter of length $N$ is given by $H(\omega)=\frac{1}{N}\frac{\sin(\omega N/2) e^{-j \omega ((N-1)/2)}}{\sin(\omega/2)}$. Firstly, isn't the cut off ...
432 views

### MAD and RMS SNR relation

Recently I've found a formula relating mean average deviation (MAD) SNR to root mean square (RMS) SNR: $$\text{SNR}_\text{MAD} = \sqrt{\frac{2}{\pi}} \text{SNR}_\text{RMS}$$ which assumes Gaussian ...
53 views

### temporal smoothing: FWHM of Gaussian kernel vs. window length of moving average

Suppose in one case I convolve Gaussian kernel with FWHM=10 samples. I would like to compare the result with moving average. My question: should I take the moving average window also 10 samples? In ...
87 views

### Is it correct to call a Savitsky-Golay filter of degree 0 a simple moving average?

I had this question after seeing that polynomial regressions fit polynomial functions of different degrees to a time-series, since the mean of a time series is a constant and that a constant is also a ...
135 views

### MATLAB: Implementing Least Squares Estimator for a Given Model

The formula to estimate $\mathbf{h}$ is then $$\hat{\mathbf{h}} = (X^T X)^{-1} X^T \vec{y}\tag{2}$$ I think this can be implemented in Matlab using ...
152 views