0
0
ML Pythonml~5 mins

Moving averages in ML Python - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a moving average in data analysis?
A moving average is a way to smooth out data by taking the average of a fixed number of recent points. It helps show trends by reducing noise.
Click to reveal answer
intermediate
Explain the difference between a simple moving average (SMA) and an exponential moving average (EMA).
SMA calculates the average of data points equally over a fixed window. EMA gives more weight to recent data points, making it respond faster to changes.
Click to reveal answer
beginner
Why are moving averages useful in machine learning?
They help smooth noisy data, making patterns clearer. This can improve model training by focusing on trends rather than random fluctuations.
Click to reveal answer
intermediate
How does the window size affect a moving average?
A larger window smooths data more but reacts slower to changes. A smaller window reacts faster but may keep more noise.
Click to reveal answer
beginner
Write the formula for a simple moving average (SMA) of window size N.
SMA at time t = (x_t + x_{t-1} + ... + x_{t-N+1}) / N, where x_i are data points.
Click to reveal answer
What does a moving average help to reduce in data?
AData size
BTrends
CNoise
DAccuracy
Which moving average type gives more weight to recent data?
AExponential Moving Average (EMA)
BCumulative Moving Average (CMA)
CWeighted Moving Average (WMA)
DSimple Moving Average (SMA)
If you want a moving average to react quickly to recent changes, you should use:
AA large window size
BNo moving average
COnly past data
DA small window size
Which of these is NOT a benefit of using moving averages?
AIncreasing data noise
BHighlighting trends
CSmoothing noisy data
DHelping model training
The formula SMA at time t = (x_t + x_{t-1} + ... + x_{t-N+1}) / N means:
ASum of all data points
BAverage of last N data points
CDifference between data points
DProduct of data points
Describe what a moving average is and why it is useful in analyzing data.
Think about how averaging recent values helps see the bigger picture.
You got /4 concepts.
    Explain the difference between simple moving average and exponential moving average and when you might use each.
    Consider how quickly you want the average to respond to new data.
    You got /5 concepts.