Which of the following best describes the Simple Moving Average (SMA) in time series data?
Think about how SMA uses a window of data points.
The Simple Moving Average calculates the average of a fixed number of recent data points, smoothing short-term fluctuations.
What is the output of the following Python code that calculates an exponential moving average (EMA) with alpha=0.5 on the data [10, 20, 30]?
data = [10, 20, 30] alpha = 0.5 ema = [data[0]] for x in data[1:]: ema.append(alpha * x + (1 - alpha) * ema[-1]) print([round(v, 2) for v in ema])
EMA updates by weighting the new value and previous EMA.
EMA starts at 10, then 0.5*20 + 0.5*10 = 15, then 0.5*30 + 0.5*15 = 22.5.
You have a noisy sensor data stream and want to smooth it while giving more importance to recent readings. Which moving average method is best?
Consider which method weights recent data more.
EMA weights recent data more heavily, making it better for noisy data where recent changes matter.
In an Exponential Moving Average (EMA), what is the effect of increasing the smoothing factor alpha from 0.1 to 0.9?
Alpha controls the weight of the newest data point.
Higher alpha means more weight on recent data, so EMA reacts faster but is less smooth.
You apply two smoothing methods on a noisy time series: SMA with window size 3 and EMA with alpha=0.3. Which metric best compares their smoothing quality against the original clean signal?
Think about measuring how close the smoothed signal is to the true clean signal.
MSE measures average squared difference between smoothed and clean signals, quantifying smoothing quality.