Question: ) Write your own Python script to implement smoothing using the CMA-24 method and plot the smoothed time series of the original time series
) Write your own Python script to implement smoothing using the CMA-24 method and plot the smoothed time series of the original time series series in (a) against it. And write Python code to use pandas package's rolling_mean function (ver 0.17) or rolling function (ver 0.20+) to re-do the CMA-24 smoothing. Compare results of your own implementation and the results of pandas implementation. Have you got the same results? Why? Please refer to pandas documentation regarding how to use rolling or rolling_mean.
Step by Step Solution
3.53 Rating (153 Votes )
There are 3 Steps involved in it
import numpy as np import matplotlibpyplot as plt import pandas as pd Original time series originals... View full answer
Get step-by-step solutions from verified subject matter experts
