Question: Write a script in Python to find simple moving average, weighted moving average, double moving average, centered moving average of the following data series: [21,
Write a script in Python to find simple moving average, weighted moving average, double moving average, centered moving average of the following data series:
[21, 33, 56, 45, 23, 30, 61, 38, 17, 36, 53, 48, 25, 28, 58, 42]. Also, print the results. Don't use chatGPT as I have already used it and it prints incorrect results. If your answer is incorrect I will downvote it. Else, I will upvote for sure!!
The results for simple moving average(5), weighted moving average(5), double moving average(3x3), centered moving average(4) is the following

123456789101112131415162133564523306138173653482528584235,6037,4043,0039,4033,8036,4041,0038,4035,8038,0042,4040,2042,4040,1035,9037,1039,8942,0037,4033,0037,0042,2041,2036,3036,8040,8939,5637,3337,8937,2537,3334,7837,1141,0040,4437,5637,7839,0038,8839,1338,8837,2537,0037,2539,5039,5039,1339,00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
