Moving Average Time Series Forecasting with Excel

  Рет қаралды 209,472

Matt Macarty

Matt Macarty

Күн бұрын

@Matt Macarty
#excel #forecasting
alphabench.com/data/excel-mov...
✅ Please SUBSCRIBE:
kzbin.info_...
Forecast Moving Average Time Series Analysis
Part I of Introductory Time Series Forecasting Series
Introduction to Time Series Forecasting with Moving Averages
✅ Part II & III can be found at the links below:
Forecasting with Exponential Smoothing and Weighted moving average:
alphabench.com/data/excel-tim...
Testing the quality of the forecast with Theil's U:
alphabench.com/data/excel-the...
Introduction to time series forecasting using examples of moving average forecasting. We attempt to forecast the price of Gold using the GLD ETF as a proxy for the price of gold. Includes a discussion of commonly used error measures, mean absolute deviation (MAD), mean squared error (MSE, RMSE) and mean absolute percent error (MAPE). Error measures are used to determine how good your forecast is, in other words, they measure how far off your forecast is on average.

Пікірлер: 54
@Terniedintorni
@Terniedintorni 3 жыл бұрын
Very well done. Amazing explanation. Easy for everyone! Thanks
@MattMacarty
@MattMacarty 3 жыл бұрын
Glad it helped.
@missmona9731
@missmona9731 6 ай бұрын
This was extremely helpful - Thank You!
@MattMacarty
@MattMacarty 6 ай бұрын
Glad it was helpful!
@hassanalianees5530
@hassanalianees5530 Жыл бұрын
Thanks buddy. You saved me
@MattMacarty
@MattMacarty Жыл бұрын
Glad it helped
@thebongscookbook2273
@thebongscookbook2273 4 жыл бұрын
nicely explained
@MattMacarty
@MattMacarty 4 жыл бұрын
Thanks. Glad it helped
@emensonjean7424
@emensonjean7424 4 жыл бұрын
thank you for sharing. I played fantasy sports, can this moving average predict the next performance of player?
@MattMacarty
@MattMacarty 4 жыл бұрын
It's hard for me to imagine a good application of this method for a single football player. Mainly because there are lots of explanatory variables to consider. So if you are looking to forecast something like rushing yards it will depend on things like the defense being played against, are they home or away, how many carries, etc.
@MattMacarty
@MattMacarty 4 жыл бұрын
@@annadad2023 Let me think about this. It's really a different kind of model where we are optimizing some outcome. It will be pretty involved.
@skepptickle1522
@skepptickle1522 4 жыл бұрын
how do you deal with real-life scenarios? i.e., missing data? should we just use interpolation methods?
@MattMacarty
@MattMacarty 4 жыл бұрын
Yes I might use something like the median of the surrounding values assuming there is no reason to believe the missing data is vastly different. You could also just fill forward the last known data point into the missing one.
@denvervegas1909
@denvervegas1909 3 жыл бұрын
where does the 1.28 in cell H4 come from? (towards the end of the video, under 10 week forecast errors)
@MattMacarty
@MattMacarty 3 жыл бұрын
Hi. It's the median absolute deviation, which I forgot to talk about. Just for comparison to the mean. In a "good" forecasting model they should be abolut equal.
@analizamagnaye9906
@analizamagnaye9906 5 жыл бұрын
How can you forecast the data in week 6/4/2018 and so on? Can we use the same method being use before this week and just use the forecasted data(125.45 in week 5/28/2018)?
@MattMacarty
@MattMacarty 5 жыл бұрын
Thanks for your question. With these models, if I am using 5 data points to forecast 1 period into the future, that's really all I can do. If I out one more period, then I will only have 4 actual data points to base the forecast at t+2 on. Going farther out into the future you could rely on the forecast value, but your error tends to increase.
@aryaandhika8613
@aryaandhika8613 2 жыл бұрын
Hi Matt, thanks for the great video. Do you mind to explain what is the difference between Mean Absolute Deviation (MAD) and Mean Absolute Error (MAE)? Because the formula that you are using for calculating MAD is similar with MAE.
@MattMacarty
@MattMacarty 2 жыл бұрын
Glad it helped. Just a different name for the same thing. MAD makes for a catchier acronym!
@NCF80M3
@NCF80M3 2 жыл бұрын
How would you do this for a large data switch non uniform / random dates? I’m trying to show moving average of how open positions have been open since Jon posted date and the dates are all over. All videos like this start with uniform date delta
@MattMacarty
@MattMacarty 2 жыл бұрын
Hi Tyler. This kind of model assumes a sequential time series. It would not be useful for a random sample. You might try regression for random sampling.
@grillvogel3455
@grillvogel3455 Жыл бұрын
If I have monthly totals for the last two years (24 observations) and want to forecast another two years, how do you adjust the formulas to accomplish this? I’d like to use a 3 month moving average. So where my dataset ends, how do I forecast where the observations end?
@MattMacarty
@MattMacarty Жыл бұрын
You really can't do it. Since these models are reliant on past observations, eventually your forecast becomes the last observed data point as you move out into the future.
@alhawraalshams2388
@alhawraalshams2388 4 жыл бұрын
Thank you for the video. My question is how do we determine how many period to include? Why did you choose 5 or 10?
@MattMacarty
@MattMacarty 4 жыл бұрын
It really depends on the data you are looking at, and stock prices are notoriously difficult to forecast. I chose these lookback periods arbitrarily just to compare two different forecasts using the same method.
@Diego-ck9zl
@Diego-ck9zl 4 жыл бұрын
@@MattMacarty and if you were forecasting sales, how do you determine the periods to include? Don´t it have to be the one who minimize the errors?
@MattMacarty
@MattMacarty 4 жыл бұрын
@@Diego-ck9zl It is sort a trial and error approach. Over time you see which forecasts work the best. As a baseline though I would choose something that historically has lower errors. Forecasting is both Art and Science.
@lisaculp6864
@lisaculp6864 4 жыл бұрын
I need to do a forecast of staffing need. How do I do that?
@rainbowdu509
@rainbowdu509 2 жыл бұрын
@@lisaculp6864 how did u go?
@user-vx5vp7ig4t
@user-vx5vp7ig4t 3 жыл бұрын
TQ
@MattMacarty
@MattMacarty 3 жыл бұрын
Glad it helped
@yangli5208
@yangli5208 5 жыл бұрын
how can you forecast the data after week 6/4/2018?
@MattMacarty
@MattMacarty 5 жыл бұрын
Thanks for your question. With these models, if I am using 5 data points to forecast 1 period into the future, that's really all I can do. If I out one more period, then I will only have 4 actual data points to base the forecast at t+2 on. Going farther out into the future you could rely on the forecast value, but your error tends to increase.
@moesadr3342
@moesadr3342 3 жыл бұрын
How I can calculate equivalent EMA in different time frame? i.e. I would like to find stocks which their price is higher than 13 EMA on a weekly chart frame but my options are Daily Moving Averages like 20,50,100 and 200. So what daily EMA number would represent 13 weekly EMA? Can anyone help please?
@MattMacarty
@MattMacarty 3 жыл бұрын
See this video: kzbin.info/www/bejne/f5uohZ6qorFngck EMA 13 is effectively alpha = 0.14ish
@moesadr3342
@moesadr3342 3 жыл бұрын
@@MattMacarty thanks for the input but I am not sure if I understand. Do I have to go through the Excel spreadsheet to generate the result? Or you are saying if a stock's Alfa is around 0.14 then it's price should be at 13 weeks EMA?
@mohammadsalim9547
@mohammadsalim9547 3 жыл бұрын
hi in this case how can we do for next 7 months forecasting
@MattMacarty
@MattMacarty 3 жыл бұрын
You can't use this model to reliably forecast more than one period since moving out farther drops actual observations. Eventually your forecast just becomes the last observation.
@nidhiparker9133
@nidhiparker9133 2 жыл бұрын
Is this simple, exponential or weighted MA?
@MattMacarty
@MattMacarty 2 жыл бұрын
This one is simple moving average. This one is weighted and Exponential: kzbin.info/www/bejne/f5uohZ6qorFngck
@AlyzaJoyPabillore-uu5ql
@AlyzaJoyPabillore-uu5ql 8 ай бұрын
So where did u use the k+1 data?
@MattMacarty
@MattMacarty 7 ай бұрын
That's the forecast
@kalyankumar2790
@kalyankumar2790 Жыл бұрын
I can't understand 😕
@MattMacarty
@MattMacarty Жыл бұрын
Which part?
@raphaelbonillo2192
@raphaelbonillo2192 Ай бұрын
This is not a forecast. Where is the extrapolation with the data? You are just drawing the trend
@MattMacarty
@MattMacarty Ай бұрын
This kind of model will forecast out one period into the future. Most of the work is to fit the model and measure how well it can be expected to forecast.
@user-xn5tb9sc8j
@user-xn5tb9sc8j Жыл бұрын
你算錯了
@MattMacarty
@MattMacarty Жыл бұрын
你是什​​么意思?
@samwoon1947
@samwoon1947 4 жыл бұрын
is there any fast way to forecast 1000 part numbers (inventory) at one go?
@MattMacarty
@MattMacarty 4 жыл бұрын
Do you mean to forecast each one based on its own history?
@samwoon1947
@samwoon1947 4 жыл бұрын
@@MattMacarty yes correct. each part number base on 3 years historical data to forecast.
@MattMacarty
@MattMacarty 4 жыл бұрын
@@samwoon1947 Assuming you can get all of the data in one file, you should be able to do this with a Macro in Excel. I would output the results to a second workbook. It would be pretty easy to do this in Python or other languages as well.
@samwoon1947
@samwoon1947 4 жыл бұрын
@@MattMacarty thanks and appreciate your reply. =) .but even with macro I will need to manually enter one part number at a time (since the formula is based on each PN). and that will also mean that many worksheets need to be created separately . and end of the day, manual entering of each PN is tedious and compile it into one worksheet after that is also tedious.
@MattMacarty
@MattMacarty 4 жыл бұрын
@@samwoon1947 I think I would look at automating this with Python. It might be painful the first time, but after that a big time saver.
Forecasting in Excel Tutorial
11:23
Kevin Stratvert
Рет қаралды 278 М.
He sees meat everywhere 😄🥩
00:11
AngLova
Рет қаралды 11 МЛН
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 52 МЛН
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 53 МЛН
HOW DID HE WIN? 😱
00:33
Topper Guild
Рет қаралды 40 МЛН
Time Series Talk : Moving Average Model
7:10
ritvikmath
Рет қаралды 184 М.
Moving Averages in Excel -MAD (MAE), MSE, MAPE | Forecast + Graph
5:58
Excel - Time Series Forecasting - Part 1 of 3
18:06
Jalayer Academy
Рет қаралды 1,5 МЛН
Forecasting: Moving Averages, MAD, MSE, MAPE
4:52
Joshua Emmanuel
Рет қаралды 967 М.
Moving Average in Excel data analysis add in
10:15
Deyako LTD
Рет қаралды 18 М.
Moving Averages - Forecasting Methods
3:08
Avercast, LLC
Рет қаралды 80 М.
Excel Weighted Moving Average (WMA) with Customizable Weights
8:22
Chris Menard
Рет қаралды 4,5 М.
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 8 МЛН
⚡️Супер БЫСТРАЯ Зарядка | Проверка
1:00
WATERPROOF RATED IP-69🌧️#oppo #oppof27pro#oppoindia
0:10
Fivestar Mobile
Рет қаралды 17 МЛН
Mastering Picture Editing: Zoom Tools Tutorial
0:52
Photoo Edit
Рет қаралды 505 М.