We start with a data series and choose a window function: expanding or exponentially weighted mean (EWM). For each new data point, expanding mean calculates the average of all points from the start up to that point, so the window grows. EWM calculates a weighted average giving more importance to recent points using a decay factor alpha. The execution table shows step-by-step how the expanding mean and EWM mean update as new data points arrive. Variables track the series and the calculated means after each step. Key moments clarify why expanding mean changes with every point, how EWM differs by weighting recent data more, and why EWM does not simply average all points. The quiz tests understanding of values at specific steps and effects of changing alpha. The snapshot summarizes that expanding windows grow and average all data so far, while EWM weights recent data more, useful for analyzing trends in time series.